OSDN Git Service

* adaint.c: Fix warnings.
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
2
3         * adaint.c: Fix warnings.
4
5 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
6
7         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
8
9 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
10
11         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
12         Fix problem of status check for null file
13
14 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
15
16         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
17         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
18         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
19         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
20         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
21         comments.
22
23 2008-03-26  Thomas Quinot  <quinot@adacore.com>
24
25 PR ada/33688
26
27         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
28         Get_Socket_Option): Add support for Receive_Packet_Info.
29
30         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
31         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
32         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
33         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
34         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
35         new constants SO_REUSEPORT and IP_PKTINFO
36
37 2008-03-26  Robert Dewar  <dewar@adacore.com>
38
39         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
40         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
41         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
42         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
43         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
44         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
45         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
46         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
47         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
48         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
49         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
50         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
51         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
52         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
53         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
54         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
55         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
56         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
57         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
58         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
59         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
60         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
61         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
62         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
63         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
64         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
65         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
66         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
67         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
68         s-tasloc.adb: Minor reformatting.
69         Update comments.
70         Remove "used for" sections from comments.
71
72 2008-03-26  Robert Dewar  <dewar@adacore.com>
73
74         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
75         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
76         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
77         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
78         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
79         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
80         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
81         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
82         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
83         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
84         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
85         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
86         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
87         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
88         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
89         double spaced if it fits on one line and otherwise single spaced.
90
91 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
92
93         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
94         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
95         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
96         or task info if the thread could not be created.
97
98 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
99
100         * gnatvsn.ads (Library_Version): Bump to 4.4.
101         (Current_Year): Bump to 2008.
102
103 2008-03-26  Robert Dewar  <dewar@adacore.com>
104
105         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
106
107         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
108
109         * debug.adb: Add debug flags d.r and d.v
110         Add debug flag .T (Optimize_Alignment (Time))
111         Add debug flag .S (Optimize_Alignment (Space))
112
113         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
114         depending on setting of relevant debug flags.
115         Replace use of Warnings_Off by Has_Warnings_Off
116         (Freeze_Entity): In circuit for warning on suspicious convention
117         actuals, do not give warning if subprogram has same entity as formal
118         type, or if subprogram does not come from source.
119         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
120         if Optimize_Alignment set to Space.
121
122         * frontend.adb: Add call to Sem_Warn.Initialize
123         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
124         Reset Optimize_Alignment mode from debug switches .S and .T
125
126         * layout.adb (Layout_Composite_Object): Rewritten for
127         Optimize_Aligment pragma.
128
129         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
130         mode.
131
132         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
133
134         * par-prag.adb (N_Pragma): Chars field removed, use Chars
135         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
136         this change. Add entry for pragma Optimize_Alignment
137
138         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
139         (Pragma_Identifier (..
140         instead, adjustments throughout to accomodate this change.
141         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
142         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
143         Add implementation of pragma Optimize_Alignment
144
145 2008-03-26  Vincent Celier  <celier@adacore.com>
146
147         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
148         Improve memory usage to avoid use of stack.
149
150 2008-03-26  Robert Dewar  <dewar@adacore.com>
151
152         * a-teioed.ads: Correct value of Default_Fill
153
154         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
155
156 2008-03-26  Robert Dewar  <dewar@adacore.com>
157
158         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
159         with Current_Output (introduce Self).
160
161 2008-03-26  Robert Dewar  <dewar@adacore.com>
162
163         * checks.adb (Ensure_Valid): Capture valid status if possible
164         (eliminate checks)
165
166 2008-03-26  Robert Dewar  <dewar@adacore.com>
167
168         * stand.ads: Deal with reordering of package standard declarations
169
170         * cstand.adb: Put package Standard declarations in proper order
171
172 2008-03-26  Robert Dewar  <dewar@adacore.com>
173
174         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
175         (Pragma_Identifier (.. instead.
176         (OK_To_Reorder_Components): New flag
177         (Has_Entries): Code cleanup.
178         (Warnings_Off_Used): New flag
179         (Warnings_Off_Used_Unmodified): New flag
180         (Warnings_Off_Used_Unreferenced): New flag
181         (Has_Warnings_Off): New function
182         (Has_Unmodified): New function
183         (Has_Unreferenced): New function
184         (Is_Trivial_Subprogram): New flag
185         (Is_Static_Dispatch_Table_Entity): New attribute.
186         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
187         (more consistent with other similar names)
188         (Access_Subprogram_Type): New classification function
189
190 2008-03-26  Robert Dewar  <dewar@adacore.com>
191
192         * errout.ads: Document new !! insertion sequence
193
194         * errout.adb (N_Pragma): Chars field removed, use Chars
195         (Pragma_Identifier (..  instead.
196         Replace use of Warnings_Off by Has_Warnings_Off
197         (Error_Msg_Internal): Don't delete warning ending in !!
198
199 2008-03-26  Robert Dewar  <dewar@adacore.com>
200
201         * par.adb (Check_No_Right_Paren): Removed no longer used
202
203         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
204         (Pragma_Identifier (..  instead.
205
206         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
207
208         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
209         par-ch4.adb: Minor improvements in error recovery and messages.
210
211         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
212         non-serious
213
214         * par-ch9.adb: Minor improvements in error recovery and messages
215         (P_Protected): Better error recovery for "protected type x;"
216
217         * par-util.adb: Minor improvements in error recovery and messages
218         (Check_No_Right_Paren): Removed no longer used
219
220 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
221
222         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
223         that the prefix of an attribute is the type of the aggregate being
224         expanded.
225
226 2008-03-26  Javier Miranda  <miranda@adacore.com>
227             Robert Dewar  <dewar@adacore.com>
228
229         * exp_attr.adb (N_Pragma): Chars field removed.
230         (Expand_N_Attribute_Reference): If the designated type associated with
231         attribute 'Unrestricted_Access is a subprogram entity then replace it
232         by an E_Subprogram_Type itype.
233         Implement attribute Old
234
235         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
236
237         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
238         Replace call to
239         New_Internal_Entity by call to Create_Itype to centralize calls
240         building itypes, ad propagate the convention of the designated
241         subprogram. In addition, disable the machinery cleaning constant
242         indications from all entities in current scope when 'Unrestricted_Access
243         corresponds with a node initializing a dispatch table slot.
244         (Analyze_Attribute): Parameterless attributes returning a string or a
245         type will not be called with improper arguments, so we can remove junk
246         code that was dealing with this case.
247         Implement attribute Old
248
249         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
250         Add entry for pragma Optimize_Alignment
251         New standard names Sync and Synchronize
252
253 2008-03-26  Robert Dewar  <dewar@adacore.com>
254             Arnaud Charlet  <charlet@adacore.com>
255
256         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
257         stmt.
258         (No_Exception_Propagation_Active): New function.
259         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
260         Update comments, and review all uses of No_Exception_Propagation, which
261         are now correct and in sync with what gigi expects.
262
263         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
264         function.
265         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
266         Update comments, and review all uses of No_Exception_Propagation, which
267         are now correct and in sync with what gigi expects.
268
269 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
270
271         * sem_ch3.adb (Access_Definition): If the access type is the return
272         result of a protected function, create an itype reference for it
273         because usage will be in an inner scope from the point of declaration.
274         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
275         OK_To_Reorder_Components.
276         (Make_Index): If an overloaded range includes a universal integer
277         interpretation, resolve to Standard.Integer.
278         (Analyze_Subtype_Indication): Copy Convention to subtype
279         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
280         limited an synchronized progenitors in type declaration and private
281         extension declarations.
282
283         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
284         protected subprogram body, determine proper scope from subprogram
285         declaration.
286
287 2008-03-26  Robert Dewar  <dewar@adacore.com>
288
289         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
290         No_Run_Time_Mode
291
292 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
293
294         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
295         of a heap allocator for a limited unconstrained function return when
296         resstriction No_Allocators is active.
297         (Analyze_Allocator): The restriction No_Allocators is now only checked
298         on allocators that have Comes_From_Source set, as per RM-H.4(7).
299
300         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
301         of a heap allocator for a limited unconstrained function return when
302         resstriction No_Allocators is active.
303         (Analyze_Allocator): The restriction No_Allocators is now only checked
304         on allocators that have Comes_From_Source set, as per RM-H.4(7).
305         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
306         operands are fixed-point types, the universal_fixed predefined operation
307         is used, regardless of whether the operand type (s) have a primitive
308         operation of the same name.
309
310 2008-03-26  Javier Miranda  <miranda@adacore.com>
311
312         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
313         Is_Static_Dispatch_Table
314         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
315         to Exchange_Declarations to exchange the private and full-view. Bug
316         found working in this issue.
317         (Expand_Dispatching_Call): Propagate the convention of the subprogram
318         to the subprogram pointer type.
319         (Make_Secondary_DT): Replace generation of Prim'Address by
320         Address (Prim'Unrestricted_Access)
321         (Make_DT): Replace generation of Prim'Address by
322         Address (Prim'Unrestricted_Access)
323         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
324         simple call form for single entry.
325         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
326         tables of predefined primitives).
327         (Make_Secondary_DT): Add support to handle access to dispatch tables of
328         predefined primitives.
329         (Make_Tags): Add entities to Access_Dispatch_Table associated with
330         access to dispatch tables containing predefined primitives.
331
332         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
333         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
334         this change.
335         (Register_Predefined_DT_Entry): Updated to handle the new contents
336         of attribute Access_Disp_Table (pointers to dispatch tables containing
337         predefined primitives).
338
339         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
340         subprogram.
341         (Find_Interface_ADT): Updated to skip the new contents of attribute
342         Access_Dispatch_Table (pointers to dispatch tables containing predefined
343         primitives).
344
345         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
346         concurrent types.
347         (Set_Convention): Use new function Is_Access_Subprogram_Type
348         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
349         Access_Dispatch_Table (pointers to dispatch tables containing predefined
350         primitives).
351
352         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
353         expanded code avoiding calls to Build_Predef_Prims.
354         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
355         call to Build_Get_Predefined_Prim_Op_Address.
356
357 2008-03-26  Javier Miranda  <miranda@adacore.com>
358
359         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
360         subprogram Corresponding_Runtime_Package to know the runtime package
361         that will provide support to a given protected type.
362
363         * exp_ch9.adb (Add_Private_Declarations,
364         Build_Protected_Subprogram_Call,
365         Build_Protected_Entry, Build_Simple_Entry_Call,
366         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
367         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
368         cleanup using the new centralized subprogram Corresponding_Runtime
369         Package to know the runtime package that provides support to
370         a given protected type.
371
372 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
373
374         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
375         assignment is within the initialization procedure for a packed array,
376         and Initialize_Scalars is enabled, compile right-hand side with checks
377         off, because the value is purposely out of range.
378
379 2008-03-26  Vincent Celier  <celier@adacore.com>
380
381         * gnatcmd.adb: Add processing for GNAT SYNC
382
383         * vms_conv.ads: (Command_Type): Add command Sync
384
385         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
386
387         * vms_data.ads: Add entries for -gnatw.w
388         Add qualifier for gnatstub --header-file option
389         Add switches for GNAT SYNC
390
391         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
392         (Add_Package_Name): New procedure
393         (Package_Name_List): New function
394         (Initialize): Add known package names to the list
395         (Register_New_Package): Add the new package name to the list
396
397 2008-03-26  Robert Dewar  <dewar@adacore.com>
398
399         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
400         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
401         Raise_Exception by "raise with" construct.
402
403 2008-03-26  Pascal Obry  <obry@adacore.com>
404
405         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
406         supported platforms.
407         
408         * Makefile.rtl: Add g-sercom.o.
409         
410         * impunit.adb: Add g-sercom.adb.
411         
412         * s-crtl.ads (open): New routine.
413         (close): Likewise.
414         (write): Likewise.
415         
416         * s-osinte-mingw.ads (BYTE): New type.
417         (CHAR): Likewise.
418         (OVERLAPPED): Likewise.
419         (GENERIC_READ): New constant.
420         (GENERIC_WRITE): Likewise.
421         (OPEN_EXISTING): Likewise.
422         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
423         type instead.
424         (CreateFile): New routine.
425         (WriteFile): Likewise.
426         (ReadFile): Likewise.
427         (CloseHandle): Move next to the other file oriented routines.
428
429         * g-sercom.ads: New unit.
430
431         * g-sercom.adb: Default implementation, calls to this unit will raise
432         a program error exception.
433         
434         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
435         GNU/Linux implementations.
436
437 2008-03-26  Robert Dewar  <dewar@adacore.com>
438
439         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
440
441         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
442         unchecked conversion for different conventions only for subprogram
443         pointers or on VMS.
444
445 2008-03-26  Vincent Celier  <celier@adacore.com>
446
447         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
448         to check if the specified object file is correct.
449
450 2008-03-26  Thomas Quinot  <quinot@adacore.com>
451
452         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
453         Comes_From_Source to exclude primitives from being checked. We want to
454         exclude predefined primitives only, so use the appropriate specific
455         predicate. Also, flag a formal parameter of an anonymous
456         access-to-subprogram type as illegal for a primitive operation of a
457         remote access to class-wide type.
458
459 2008-03-26  Vincent Celier  <celier@adacore.com>
460
461         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
462         known, check if it may be a missspelling of a known package name. In
463         not verbose, not mode, issue warnings only if the package name is a
464         possible misspelling.
465         In verbose mode, always issue a warning for a not known package name,
466         plus a warning if the name is a misspelling of a known package name.
467
468         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
469         limited withs or limited withs are parse during one call.
470         (Parse_Single_Project): Post parse context clause in two passes: non
471         limited withs before current project and limited withs after current
472         project.
473
474         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
475         project with the name With_Name, even if it is only extended indirectly.
476         (Recursive_Process): Process projects in order: first single withs, then
477         current project, then limited withs.
478
479         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
480         project with the name With_Name, even if it is only extended indirectly.
481
482 2008-03-26  Robert Dewar  <dewar@adacore.com>
483
484         * scn.adb (Initialize_Scanner): Format messages belong on standard error
485
486 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
487
488         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
489         a generic subprogram that is imported, do not attempt to compile
490         non-existent body.
491
492         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
493         imported, do not generate a raise_program_error for the non-existent
494         body.
495         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
496         perform minimal name resolution on the generic to avoid spurious
497         warnings.
498         (Find_Actual_Type): the designated type of the actual in a child unit
499         may be declared in a parent unit without being an actual.
500
501 2008-03-26  Robert Dewar  <dewar@adacore.com>
502
503         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
504         * sinfo.ads, sinfo.adb (From_At_End): New flag
505
506 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
507
508         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
509         operations that have an interface parameter.
510         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
511         Don't treat No_Return call as raise.
512
513         * sem_disp.adb (Check_Dispatching_Operations): apply check for
514         non-primitive interface primitives to access parameters, not to all
515         parameters of an access type.
516
517 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
518
519         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
520         declarations of a parent unit are made visible when compiling a child
521         instance, the parent is not a hidden open scope, even though it may
522         contain other pending instance.
523         
524         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
525         hidden open scope for some child instance, it does affect the
526         visibility status of other stach entries.
527         (Analyze_Object_Renaming): Check that a class-wide object cannot be
528         renamed as an object of a specific type.
529
530 2008-03-26  Robert Dewar  <dewar@adacore.com>
531
532         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
533         recursion and raise SE directly.
534         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
535         set for formal type for IN mode parameter.
536
537 2008-03-26  Robert Dewar  <dewar@adacore.com>
538
539         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
540         (Initialize): New procedure
541         (Output_Warnings_Off_Warnings): New procedure
542         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
543         (Output_Non_Modifed_In_Out_Warnings): Ditto
544         (Warn_On_Unreferenced_Entity): Ditto
545
546 2008-03-26  Vincent Celier  <celier@adacore.com>
547
548         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
549         readable.
550
551 2008-03-26  Matthew Heaney  <heaney@adacore.com>
552
553         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
554         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
555         Marked with clauses as private, and controlled operations as overriding
556
557 2008-03-26  Robert Dewar  <dewar@adacore.com>
558
559         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
560
561 2008-03-26  Robert Dewar  <dewar@adacore.com>
562
563         * back_end.adb, back_end.ads: Minor reformatting
564
565         * bindgen.adb: Minor clarification of comments
566
567         * fname.ads: Minor comment fixes
568
569         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
570         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
571
572         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
573         xsnames.adb: Remove warnings off pragma no longer needed
574
575         * a-catizo.ads, a-calari.ads, a-calfor.adb,
576         a-calfor.ads: Fix header.
577
578 2008-03-26  Tristan Gingold  <gingold@adacore.com>
579
580         * init.c: Do not adjust pc for HPARITH on alpha/vms.
581
582 2008-03-26  Robert Dewar  <dewar@adacore.com>
583
584         * lib-xref.adb: (OK_To_Set_Reference): New function
585         (Generate_Reference): Don't set referenced from occurrence in Warnings,
586         Unmodified, or Unreferenced pragma
587
588 2008-03-26  Robert Dewar  <dewar@adacore.com>
589
590         * alloc.ads: Add entries for Warnings_Off_Pragmas table
591
592 2008-03-26  GNAT Script  <nobody@adacore.com>
593
594         * Make-lang.in: Makefile automatically updated
595
596 2008-03-26  Robert Dewar  <dewar@adacore.com>
597
598         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
599         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
600         removed, use Chars (Pragma_Identifier (..  instead, adjustments
601         throughout to accomodate this change.
602
603         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
604
605         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
606         Einfo.Set_Needs_Debug_Info)
607
608 2008-03-26  Robert Dewar  <dewar@adacore.com>
609
610         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
611         Add description for the new gnatstub option '--header-file'
612         clarification of -gnatwz/-gnatwZ
613         Add a "Irix-Specific Considerations" section to document the need to
614         set LD_LIBRARY_PATH when using the default shared runtime library.
615         Added documentation for both gcov and gprof.
616
617         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
618         messages that are not suppressed when clients are compiled.
619         Add documentation of s-pooglo s-pooloc
620         Document the new GNAT.Serial_Communications API.
621         Add documentation for 'Old attribute
622         Add description of pragma Optimize_Alignment
623
624         * ug_words: Add entries for -gnatw.w -gnatw.W
625
626         * usage.adb: Add line for -gnatw.w (warn on warnings off)
627
628 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
629
630         Revert
631         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
632         PR ada/35186
633         * decl.c (maybe_pad_type): Avoid padding an integral type when
634         bumping its alignment is sufficient.
635
636 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
637
638         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
639         Fix wrong formatting (lines too long)
640
641 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
642
643         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
644         a-calend-vms.adb, a-calend.adb, a-calend.ads,
645         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
646         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
647         a-cohama.ads, a-comlin.ads, a-coorse.adb,
648         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
649         a-except-2005.ads, a-except.adb, a-except.ads,
650         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
651         a-exextr.adb, a-filico.ads, a-finali.ads,
652         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
653         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
654         a-sequio.ads, a-strbou.ads, a-strfix.adb,
655         checks.adb, exp_ch3.adb, exp_ch4.adb,
656         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
657         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
658         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
659         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
660         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
661
662 2008-03-24  Robert Dewar  <dewar@adacore.com>
663
664         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
665         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
666         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
667         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
668         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
669         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
670         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
671         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
672         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
673         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
674         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
675         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
676         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
677         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
678         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
679         double spaced if it fits on one line and otherwise single spaced.
680
681 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
682
683         PR documentation/15479
684         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
685         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
686         (doc/gnat_ugn.info): Renamed from ...
687         (doc/gnat_ugn_unw.info): ... this.
688         (doc/gnat_ugn.dvi): Renamed from ...
689         (doc/gnat_ugn_unw.dvi): ... this.
690         (doc/gnat_ugn.pdf): Renamed from ...
691         (doc/gnat_ugn_unw.pdf): ... this.
692         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
693         Adjusted.
694         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
695         unconditionally to gnat_ugn.info.  Fix cross references to the
696         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
697         and GNU make manuals to be proper texinfo links.
698         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
699
700 2008-03-21  Olivier Hainque  <hainque@adacore.com>
701
702         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
703         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
704
705 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
706
707         * trans.c (addressable_p): Add notes on addressability issues.
708
709 2008-03-21  Olivier Hainque  <hainque@adacore.com>
710             Ed Schonberg  <schonberg@adacore.com>
711
712         * trans.c (addressable_p): Accept COND_EXPR when both arms
713         are addressable.
714         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
715         (call_to_gnu): Do not use name reference in the error message
716         for a misaligned by_reference_parameter. The actual may be a
717         general expression.
718
719 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
720
721         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
722         
723 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
724
725         * gnat_rm.texi (Implementation Defined Characteristics)
726         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
727         appropriate.
728         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
729         (Switches for gnatchop, Installing a library): Likewise.
730
731 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
732
733         * trans.c (emit_range_check): Do not emit the check if the base type
734         of the expression is the type against which its range must be checked.
735
736 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
737
738         * decl.c (maybe_pad_type): Use value_factor_p.
739
740 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
741
742         * lang.opt (nostdlib): Move around.
743         * misc.c (gnat_handle_option): Fix formatting.
744         (gnat_dwarf_name): Move around.
745         * trans.c (Case_Statement_to_gnu): Fix formatting.
746         (gnat_to_gnu): Likewise.
747         * utils.c (aggregate_type_contains_array_p): Likewise.
748         (create_subprog_decl): Likewise.
749
750 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
751
752         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
753         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
754
755 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
756
757         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
758         BIGGEST_ALIGNMENT when capping the alignment of records with
759         strict alignment and size clause.
760
761 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
762
763         * lang-specs.h: Pass -gnatwa if -Wall is passed.
764         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
765         and -Wuninitialized.
766         (gnat_post_options): Clear warn_unused_parameter.
767
768 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
769
770         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
771         aligned bit-fields, bumping the alignment of the record type if deemed
772         profitable.
773         (value_factor_p): Return false instead of 0.
774
775 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
776
777         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
778         for scalar types with small alignment.
779
780 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
781
782         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
783         from that of the front-end's end label.
784         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
785         from that of the loop label.
786
787 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
788
789         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
790         comment for the packed array type case.
791         * utils.c (build_template): Use a loop to strip padding or
792         containing records for justified modular types.
793
794 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
795
796         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
797         large alignments specified for types.
798         (validate_alignment): Minor cleanup.
799
800 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
801
802         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
803         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
804         the component for packing, if possible, as well as if a component
805         size clause is specified.
806         <E_Record_Subtype>: For an array type used to implement a packed
807         array, get the component type from the original array type.
808         Try to get a smaller form of the component for packing, if possible,
809         as well as if a component size clause is specified.
810         (round_up_to_align): New function.
811         (make_packable_type): Add in_record parameter.
812         For a padding record, preserve the size.  If not in_record and the
813         size is too large for an integral mode, attempt to shrink the size
814         by lowering the alignment.
815         Ditch the padding bits of the last component.
816         Compute sizes and mode manually, and propagate the RM size.
817         Return a BLKmode record type if its size has shrunk.
818         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
819         Use Original_Array_Type to retrieve the type in case of an error.
820         Adjust call to make_packable_type.
821         (gnat_to_gnu_field): Likewise.
822         (concat_id_with_name): Minor tweak.
823         * trans.c (larger_record_type_p): New predicate.
824         (call_to_gnu): Compute the nominal type of the object only if the
825         parameter is by-reference.  Do the conversion actual type -> nominal
826         type if the nominal type is a larger record.
827         (gnat_to_gnu): Do not require integral modes on the source type to
828         avoid the conversion for types with identical names.
829         (addressable_p): Add gnu_type parameter.  If it is specified, do not
830         return true if the expression is not addressable in gnu_type.
831         Adjust recursive calls.
832         * utils.c (finish_record_type): Remove dead code.
833
834 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
835
836         PR ada/35186
837         * decl.c (maybe_pad_type): Avoid padding an integral type when
838         bumping its alignment is sufficient.
839
840 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
841
842         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
843         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
844         statement.
845         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
846         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
847         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
848         code output strings.
849         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
850         system-vms_64.ads: Fix typos in ada source code comments.
851         * sinfo-cn.adb: Remove incomplete sentence.
852
853         PR documentation/15479
854         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
855
856 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
857
858         PR ada/22255
859         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
860
861 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
862
863         PR ada/34799
864         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
865         that underlying type is present.
866
867 2008-02-26  Tom Tromey  <tromey@redhat.com>
868
869         * misc.c (internal_error_function): Remove test of
870         USE_MAPPED_LOCATION.
871         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
872         (Sloc_to_locus): Remove old location code.
873
874 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
875
876         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
877         `i.e.' by adding comma or `@:' as appropriate.
878         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
879         plain characters `C', use `@samp{C}'.
880         * gnat_ugn.texi (File Naming Rules, About gnatkr)
881         (Krunching Method): Likewise.
882
883         * gnat_ugn.texi (Conventions): List environment variables and
884         metasyntactic variables.
885         (Compiling Programs): Fix notation of metasyntactic variables.
886         Add @file where appropriate.  Use @file for file extensions,
887         @samp for strings.
888         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
889         instead of @file, @env instead of @code.
890
891 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
892
893         PR documentation/15479
894         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
895         and `...' with `@dots{}' or `@enddots{}'.
896
897         PR documentation/15479
898         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
899         use @command instead of @code, @option instead of @samp or @code,
900         @code instead of @var, @samp instead of @file.
901
902         PR documentation/15479
903         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
904         in Makefile rules, by using `&&' rather than `;'.
905
906 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
907
908         PR documentation/15479
909         * gnat_ugn.texi: In non-code, avoid space before colon.
910         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
911         (Examples of gnatxref Usage): Use @command{vi} instead of
912         @file{vi}.
913         (Character Set Control): Do not use @code for UTF-8.
914         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
915         use @code for IEEE.
916         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
917         sample.
918         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
919
920 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
921
922         PR ada/35143
923         * env.c: Add __rtems__ to if defined.
924         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
925         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
926         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
927         pragma Convention as required.
928         * gsocket.h: Make compile in and out of RTS.
929         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
930         Use g-soccon-rtems.ads.
931         * g-soccon-rtems.ads, system-rtems.ads: New files.
932
933 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
934
935         PR other/35107
936         * Make-lang.in (gnat1): Add $(GMPLIBS).
937
938 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
939
940         * decl.c (components_to_record): Improve comment.
941
942 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
943
944         * decl.c (components_to_record): Do not reuse the empty union type
945         if there is a representation clause on the record.
946         * trans.c (addressable_p): Return true for INTEGER_CST.
947
948 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
949
950         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
951         in pointer arithmetics.
952         * utils2.c (build_allocator): Likewise.
953
954 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
955
956         * utils.c (build_function_stub): Properly build the call expression.
957
958 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
959
960         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
961         before converting the expression to the type of the object.
962         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
963         Stabilize constructors for special wrapping types.
964
965 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
966
967         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
968         when necessary.  Merge some conditional statements.  Update comments.
969         Rename unchecked_convert_p local variable to suppress_type_conversion.
970         Do not suppress conversions in the In case.
971         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
972         into account on non strict-alignment platforms.
973
974 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
975
976         * utils.c (aggregate_type_contains_array_p): New predicate.
977         (create_field_decl): In a packed record, force byte alignment
978         for fields without specified position that contain an array.
979
980 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
981
982         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
983
984 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
985
986         PR ada/34466
987         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
988         sysconf call.
989         (bit_field): New packed boolean type used by cpu_set_t.
990         (cpu_set_t): New type corresponding to the C type with
991         the same name. Note that on the Ada side we use a bit
992         field array for the affinity mask. There is not need
993         for the C macro for setting individual bit.
994         (pthread_setaffinity_np): New imported routine.
995
996 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
997
998         PR ada/34647
999         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
1000         on OpenBSD as is done on other BSD systems.
1001
1002         PR ada/34645
1003         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
1004         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
1005         I/O.
1006
1007         PR ada/34644
1008         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
1009         clearenv().
1010
1011         PR ada/34646
1012         * init.c (__gnat_error_handler, __gnat_install_handler,
1013         __gnat_init_float): Define for OpenBSD.
1014
1015         * initialize.c (__gnat_initialize): Define for OpenBSD.
1016
1017 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
1018
1019         PR ada/34553
1020         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
1021         instead of mktemp() or tmpnam() on NetBSD.
1022
1023 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
1024
1025         * trans.c (call_to_gnu): Make the temporary for non-addressable
1026         In parameters passed by reference.
1027         (addressable_p): Return true for STRING_CST and CALL_EXPR.
1028
1029 2007-12-19  Robert Dewar  <dewar@adacore.com>
1030
1031         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
1032         Add pragma Warnings (Off) for unassigned IN OUT arguments
1033
1034         * sem_warn.adb (Output_Reference): Suppress messages for internal names
1035         (Check_References): Extensive changes to tune up warnings
1036         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
1037         (Has_Pragma_Unmodifed_Check_Spec): New function
1038         (Check_References): Implement pragma Unmodified
1039         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
1040
1041         * par-prag.adb: Dummy entry for pragma Unmodified
1042
1043         * sem_prag.adb: Implement pragma Unmodified
1044
1045         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
1046         (Proc_Next_Component_Or_Discriminant): Fix typo.
1047         Update comments.
1048
1049         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
1050         Unmodified.
1051         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
1052         because the former already takes care of discarding the result.
1053         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
1054         Add comment.
1055
1056         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
1057
1058 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
1059
1060         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
1061         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
1062         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
1063         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
1064         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
1065         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
1066         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
1067         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
1068         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
1069         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
1070         (Dynamic_Trampolines_Used): Delete.
1071
1072         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
1073         Turn on stack probing mechanism on LynxOS.
1074
1075 2007-12-19  Bob Duff  <duff@adacore.com>
1076
1077         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
1078         the resulting tail recursion by hand. This prevents running out of
1079         memory on deeply nested concatenations, since Field2 is where the left
1080         operand of concatenations is stored.
1081         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
1082         clarify that it can only return OK or Abandon.
1083
1084         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
1085         operand by iteration, in order to avoid running out of memory on
1086         deeply-nested concatenations. Use the Parent pointer to get back up the
1087         tree.
1088         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
1089          Resolve_Op_Concat_Rest): New procedures split out of
1090         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
1091         clearer.
1092
1093         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
1094         Traverse_Func, because the former already takes care of discarding the
1095         result.
1096
1097         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
1098         because the former already takes care of discarding the result.
1099         (Remove_Warning_Messages): Use appropriate subtype for Status and
1100         Discard 
1101
1102 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
1103
1104         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
1105         discriminants forces expansion of the aggregate into assignments.
1106         (Init_Record_Controller):  If the type of the aggregate is untagged and
1107         is not inherently limited, the record controller is not limited either.
1108
1109 2007-12-19  Robert Dewar  <dewar@adacore.com>
1110
1111         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
1112         handling compile time known size of record or array (case of front end
1113         layout active, e.g. in GNAAMP).
1114
1115 2007-12-19  Javier Miranda  <miranda@adacore.com>
1116
1117         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
1118         that forces the construction of static dispatch tables in case of
1119         record subtypes.
1120
1121 2007-12-19  Robert Dewar  <dewar@adacore.com>
1122
1123         * exp_ch9.adb (Null_Statements): Moved to library level
1124         (Trivial_Accept_OK): New function
1125         (Expand_Accept_Declaration): Use Trivial_Accept_OK
1126         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
1127
1128 2007-12-19  Robert Dewar  <dewar@adacore.com>
1129
1130         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
1131         in complex case where array is Volatile.
1132
1133 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
1134
1135         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
1136         properly the Ada2005 rules concerning when the current instance of a
1137         record type is aliased.
1138
1139 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
1140
1141         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
1142         mangled declaration
1143         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
1144         declarations.
1145         (P_Variant_Part): Cleaner patch for parenthesized discriminant
1146
1147 2007-12-19  Vincent Celier  <celier@adacore.com>
1148
1149         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
1150         package is not known
1151
1152         * prj-attr.ads (Unknown_Package): New constant
1153         Do not crash when an unknown package is in several projects
1154
1155         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
1156         ignored
1157
1158         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
1159         existing package Language_Processing.
1160
1161 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
1162             Gary Dismukes  <dismukes@adacore.com>
1163             Samuel Tardieu  <sam@rfc1149.net>
1164
1165         PR ada/15803, ada/15805
1166         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
1167         illegal access subtypes when there is a constrained partial view.
1168         (Check_For_Premature_Usage): New procedure inside
1169         Access_Subprogram_Declaration for checking that an access-to-subprogram
1170         type doesn't reference its own name within any formal parameters or
1171         result type (including within nested anonymous access types).
1172         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
1173         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
1174         context is an access_to_variable, the expression cannot be an
1175         access_to_constant.
1176
1177 2007-12-19  Bob Duff  <duff@adacore.com>
1178
1179         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
1180         (Analyze_Concatenation): Use iteration instead of recursion in order
1181         to avoid running out of stack space for deeply nested concatenations.
1182
1183 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
1184             Gary Dismukes  <dismukes@adacore.com>
1185
1186         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
1187         whose renamed entity is a subprogram that requires overriding.
1188         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
1189         issuing an error for premature usage and issue a message that says
1190         'type' rather than 'object'.
1191
1192 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
1193
1194         PR ada/34149
1195         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
1196         presence of a statically tagged operand (Present (Static_Tag)) with
1197         test for Indeterm_Ancestor_Call when determining whether to propagate
1198         the static tag to tag-indeterminate operands (which forces dispatching
1199         on such calls).
1200         (Check_Controlling_Formals): Ada2005, access parameters can have
1201         defaults.
1202         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
1203         not insert subprogram in list of primitive operations if already there.
1204
1205 2007-12-19  Tristan Gingold  <gingold@adacore.com>
1206
1207         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
1208         global variable.
1209
1210 2007-12-19  Thomas Quinot  <quinot@adacore.com>
1211
1212         Part of PR ada/33688
1213         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
1214         datagram info on Linux.
1215
1216 2007-12-19  Vincent Celier  <celier@adacore.com>
1217
1218         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
1219         that the source path name is always found in the dependencies.
1220
1221 2007-12-19  Robert Dewar  <dewar@adacore.com>
1222
1223         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
1224         Fix name of Wide_Wide_Latin_1/9 file names
1225         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
1226         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
1227         Add missing documentation for Ada.Command_Line.Response_File
1228         Update list of warning letters for Warnings pragma
1229         Add documentation for pragma Unmodified
1230
1231 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
1232
1233         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
1234
1235 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
1236
1237         * s-vxwork-alpha.ads: Removed, no longer used.
1238
1239 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
1240
1241         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
1242
1243 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
1244
1245         PR ada/34360
1246         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
1247         mlib-tgt-specific.adb.
1248
1249 2007-12-13  Bob Duff  <duff@adacore.com>
1250
1251         * trans.c (Attribute_to_gnu): Check for violations of the
1252         No_Implicit_Dynamic_Code restriction. This checking used to be done in
1253         the front end, but is moved here so we can make it more accurate.
1254
1255 2007-12-13  Pascal Obry  <obry@adacore.com>
1256
1257         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
1258          version is provided for older GNU/Linux distribution not
1259          supporting thread affinity sets.
1260         
1261         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
1262         call.
1263         (bit_field): New packed boolean type used by cpu_set_t.
1264         (cpu_set_t): New type corresponding to the C type with
1265         the same name. Note that on the Ada side we use a bit
1266         field array for the affinity mask. There is not need
1267         for the C macro for setting individual bit.
1268         (pthread_setaffinity_np): New imported routine.
1269         
1270         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
1271         no null.
1272         (Create_Task): Set the processor affinity mask if information
1273         is present.
1274         
1275         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
1276         
1277 2007-12-13  Robert Dewar  <dewar@adacore.com>
1278
1279         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
1280         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
1281         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
1282         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
1283         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
1284         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
1285         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
1286         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
1287         for subprogram pointers.
1288
1289         * g-ctrl_c.adb: New file.
1290
1291         * g-ctrl_c.ads (Install_Handler): New body.
1292
1293         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
1294         instead of obsolete function Is_Always_Inlined.
1295         (Freeze_Entity): check for tagged type in imported C subprogram
1296         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
1297         (Freeze_Entity): check for convention Ada subprogram pointer in
1298         imported C subprogram.
1299         (Freeze_Fixed_Point_Type): In the case of a base type where the low
1300         bound would be chopped off and go from negative to zero, force
1301         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
1302         bound) so that the size computation for the base type will take
1303         negative values into account.
1304
1305 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
1306             Bob Duff  <duff@adacore.com>
1307             Tristan Gingold  <gingold@adacore.com>
1308
1309         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
1310         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
1311         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
1312         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
1313         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
1314         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
1315         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
1316         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
1317         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
1318         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
1319         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
1320         (Always_Compatible_Rep): New flag to control trampolines globally.
1321         (Dynamic_Trampolines_Used): New flag for implementing the
1322         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
1323         and not yet set correctly for some targets).
1324
1325         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
1326         Simply indirectly call s-stchop when a task is created.
1327
1328         * ali.ads: 
1329         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
1330         appears as an argument (entries A) in an ALI file.
1331
1332         * fe.h (Stack_Check_Limits): Declare new target parameter.
1333         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
1334
1335         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
1336         This variable is declared in C to be sure not subject to elaboration
1337         code.
1338         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
1339         Storage_Error.
1340
1341         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
1342         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
1343
1344         * s-stchop.ads: Add comments.
1345
1346         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
1347         limit method of stack checking.
1348
1349         * s-stchop-limit.ads: New file.
1350
1351 2007-12-13  Robert Dewar  <dewar@adacore.com>
1352
1353         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
1354         a-cihama.adb, g-awk.adb, 
1355         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
1356         warnings
1357
1358         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
1359
1360         * sem.adb: Update handling of assigned value/unreferenced warnings
1361
1362         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
1363
1364         * lib-xref.ads: Improve documentation for k xref type
1365
1366         * lib-xref.adb: 
1367         Update handling of assigned value/unreferenced warnings
1368         (Generate_Reference): Warning for reference to entity for which a
1369         pragma Unreferenced has been given should be unconditional.
1370         If the entity is a discriminal, mark the original
1371         discriminant as referenced.
1372
1373         * sem_warn.ads, sem_warn.adb
1374         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
1375         no entities referenced in package
1376         (Check_One_Unit): Don't give message about no entities referenced in
1377         a package if a pragma Unreferenced has appeared.
1378         Handle new warning flag -gnatw.a/-gnatw.A
1379         Update handling of assigned value/unreferenced warnings
1380
1381         * atree.h: Add flags up to Flag247
1382         (Flag231): New macro.
1383
1384 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
1385
1386         * adaint.h: (__gnat_plist_init): Not defined for RTX.
1387
1388         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
1389         RTX systems.
1390
1391         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
1392         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
1393         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
1394         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
1395
1396         * mingw32.h: 
1397         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
1398
1399         * sysdep.c (winflush_function for RTX): Procedure that does nothing
1400         since we only have problems with Windows 95/98, which are not
1401         supported by RTX.
1402         (__gnat_ttyname): Return the empty string on Nucleus, just as
1403         done on vxworks.
1404
1405 2007-12-13  Robert Dewar  <dewar@adacore.com>
1406
1407         * a-textio.adb, a-textio.ads: 
1408         Extensive changes to private part for wide character encoding
1409
1410         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
1411         (Look_Ahead): Fix mishandling of encoded sequences
1412         Move declaration of Wch_Con to private part (should not be visible)
1413
1414         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
1415         UTF-8. Probably this is never used, but if it is, brackets is
1416         clearly correct.
1417
1418         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
1419         setting wide character encoding for no main program case and when
1420         encoding is specified using -W?
1421         Initialize stack limit of environment task if stack limit method of
1422         stack checking is enabled.
1423         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
1424         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
1425         (Get_Main_Unit_Name): New function.
1426         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
1427         (Gen_Output_File): Set Bind_Main_Program to True for .NET
1428
1429         * bindusg.adb: Add line for -Wx switch
1430
1431         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
1432         Add comments
1433         Add new useful constant WC_Longest_Sequences
1434
1435         * switch-b.adb: Clean up handling of -Wx switch
1436         For -gnatWx, set Wide_Character_Encoding_Method_Specified
1437
1438         * switch-c.adb: -gnatg activates warning on assertion errors
1439         For -gnatWx, set Wide_Character_Encoding_Method_Specified
1440
1441         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
1442
1443 2007-12-13  Robert Dewar  <dewar@adacore.com>
1444             Ed Schonberg  <schonberg@adacore.com>
1445
1446         * a-ngcoty.adb: New pragma Fast_Math
1447
1448         * opt.adb: New pragma Fast_Math
1449
1450         * par-prag.adb: 
1451         Add Implemented_By_Entry to the list of pragmas which do not require any
1452         special processing.
1453         (Favor_Top_Level): New pragma.
1454         New pragma Fast_Math
1455
1456         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
1457         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
1458         Expand_Allocator_Expression): Take into account VM_Target
1459         (Expand_Attribute, case 'Identity):  Handle properly the case where
1460         the prefix is a task interface.
1461         New pragma Fast_Math
1462
1463         * par.adb (Next_Token_Is): New function
1464         (P_Pragma): Add Skipping parameter
1465         (U_Left_Paren): New procedure
1466         (U_Right_Paren): New procedure
1467         New pragma Fast_Math
1468
1469         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
1470         subunit
1471         New pragma Fast_Math
1472
1473         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
1474         Implemented_By_Entry.
1475         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
1476         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
1477         items, since it can apply to more than one overloadable entity. Set
1478         new flag Has_Pragma_Inline_Always for Inline_Always case.
1479         (Analyze_Pragma, case Complex_Representation): Improve error message.
1480         (Analyze_Pragma, case Assert): When assertions are disabled build the
1481         rewritten code with Sloc of expression rather than pragma, so new
1482         warning about failing is not deleted.
1483         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
1484         protected types and update error message to reflect that. Test whether
1485         the protected type is allowed for the pragma (an error is issued if the
1486         type has any entries, or components that do not have preelaborable
1487         initialization).
1488         New pragma Fast_Math
1489         (Analyze_Pragma, case No_Return): Handle generic instance
1490
1491         * snames.h, snames.ads, snames.adb: 
1492         Add new predefined name for interface primitive _Disp_Requeue.
1493         New pragma Fast_Math
1494
1495         * a-tags.ads, a-tags.adb: New calling sequence for
1496         String_To_Wide_[Wide_]String
1497         (Secondary_Tag): New subprogram.
1498
1499         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
1500         from Exp_Attr
1501         New calling sequence for String_To_Wide_[Wide_]String
1502         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
1503         the use of the secondary stack for image routines.
1504
1505         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
1506         calling sequence for String_To_Wide_[Wide_]String
1507
1508         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
1509         Ada 95 mode
1510         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
1511         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1512
1513         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
1514         (P_Formal_Part): Use Skipping parameter in P_Pragma call
1515         to improve error recovery
1516
1517         * par-util.adb (Next_Token_Is): New function
1518         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
1519
1520         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
1521         semicolon if missing
1522         (P_Pragma): Implement new Skipping parameter
1523         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1524         Fix location of flag for unrecognized pragma message
1525
1526         * par-tchk.adb (U_Left_Paren): New procedure
1527         (U_Right_Paren): New procedure
1528
1529 2007-12-13  Geert Bosch  <bosch@adacore.com>
1530
1531         * a-tifiio.adb: 
1532         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
1533         the second or later Scaled_Divide would omit leading zeroes,
1534         resulting in too few digits produced and a Layout_Error as result.
1535         (Put): Initialize Pos.
1536
1537 2007-12-13  Robert Dewar  <dewar@adacore.com>
1538
1539         atree.ads, atree.adb (Flag231..Flag247): New functions
1540         (Set_Flag231..Set_Flag247): New procedures
1541         (Basic_Set_Convention): Rename Set_Convention to be
1542         Basic_Set_Convention
1543         (Nkind_In): New functions
1544         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1545
1546         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
1547         instead
1548          of obsolete function Is_Always_Inlined
1549         (Register_Predefined_DT_Entry): Initialize slots of the second
1550         secondary dispatch table.
1551         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1552         (Expand_N_Function_Call): Remove special provision for stack checking.
1553
1554         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
1555         Include _Disp_Requeue in the list of predefined operations.
1556         (Find_Interface_ADT): Modified to fulfill the new specification.
1557         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1558
1559         * par-ch4.adb, nlists.ads, nlists.adb: 
1560         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
1561
1562         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
1563         Fix location of flag for unrecognized pragma message
1564
1565         * sem_ch7.adb: Use Nkind_In
1566
1567 2007-12-13  Vincent Celier  <celier@adacore.com>
1568
1569         * opt.ads: 
1570         Indicate what flags are used by the Project Manager, gprbuild and
1571         gprclean.
1572         (Opt.Follow_Links_For_Dirs): New flag
1573         (Warn_On_Assertion_Failure): New flag
1574         (Wide_Character_Encoding_Method_Specified): New flag
1575         (Suppress_All_Inlining): New switch set by -fno-inline
1576         (Real_VMS_Target): New flag
1577         New pragma Fast_Math
1578
1579 2007-12-13  Robert Dewar  <dewar@adacore.com>
1580
1581         * back_end.adb: Recognize -fno-inline
1582
1583 2007-12-13  Robert Dewar  <dewar@adacore.com>
1584
1585         * checks.adb: Fix optimization problem with short-circuited form
1586
1587 2007-12-13  Bob Duff  <duff@adacore.com>
1588
1589         * clean.adb (Usage): Add line for -aP
1590         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
1591         with a parameter "procedure Usage", instead of passing a pointer to a
1592         procedure. This is to eliminate trampolines (since the Usage procedure
1593         is often nested in a main procedure, and it would be inconvenient to
1594         unnest it).
1595
1596         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
1597         to be generic, with a parameter "procedure Callback (...)", instead of
1598         passing a pointer to a procedure. This is to eliminate trampolines
1599         (since the Callback procedure is usually nested).
1600
1601         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
1602         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
1603         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
1604
1605         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
1606         Use the generic Heap_Sort_G instead of Heap_Sort_A.
1607
1608 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
1609
1610         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
1611         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
1612         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
1613         (Renamed_In_Spec): New flag
1614         (Has_Pragma_Inline_Always): New flag
1615         Add missing doc for pragma Obsolescent_Warning
1616         Add missing doc for 17 additional unused flags (230-247)
1617         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
1618         Alphabetize with clauses.
1619         Separate Is_Thunk and Has_Thunks flags
1620         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
1621         (Related_Interface): Renamed to Related_Type.
1622         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
1623         (Set_Is_Flag): Restrict the assertion.
1624
1625 2007-12-13  Vincent Celier  <celier@adacore.com>
1626
1627         * errout.adb (Output_Source_Line): Do not keep a trailing space after
1628         the source line number if the source line is empty.
1629
1630 2007-12-13  Geert Bosch  <bosch@adacore.com>
1631
1632         * eval_fat.adb (Decompose_Int): Handle argument of zero.
1633         (Compose): Remove special casing of zero.
1634         (Exponent): Likewise.
1635         (Fraction): Likewise.
1636         (Machine): Likewise.
1637         (Decompose): Update comment.
1638
1639 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
1640
1641         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
1642         limited ancestor part, initialize controllers of enclosing record
1643         before expanding ancestor aggregate.
1644         (Gen_Assign): If a component of the aggregate is box-initialized, add
1645         code to call Initialize if the component is controlled, and explicit
1646         assignment of null if the component is an access type.
1647
1648         Handle properly aggregates for limited types that appear in object
1649         declarations when the aggregate contains controlled values such as
1650         protected types.
1651         When expanding limited aggregates into individual components, do not
1652         call Adjust on controlled components that are limited.
1653
1654 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
1655
1656         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
1657
1658 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
1659
1660         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
1661         predefined primitive _Disp_Requeue.
1662         (Make_Predefined_Primitive_Specs): Create the spec for predefined
1663         primitive _Disp_Requeue.
1664         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
1665         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
1666         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
1667         an interface type. In case of limited interfaces we now declare all the
1668         predefined primitives associated with synchronized interfaces as
1669         abstract.
1670         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
1671         declarations.
1672         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
1673         tagged type is an interface type and there is no user-defined equality
1674         function.
1675         Add also bodies of predefined primitives associated with synchronized
1676         interfaces.
1677         (Freeze_Record_Type): Do not build bodies of predefined primitives of
1678         interface types because they are now defined abstract.
1679         Add missing documentation.
1680         (Expand_Record_Controller): Update occurrence of Related_Interface
1681         to Related_Type.
1682         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
1683         (Expand_N_Object_Declaration): Take into account VM_Target when handling
1684         class wide interface object declaration.
1685         (Expand_Previous_Access_Type): Do not create a duplicate master entity
1686         if the access type already has one.
1687         (Expand_N_Object_Declaration): Defend against attempt to validity check
1688         generic types. Noticed for -gnatVcf specified with previous errors.
1689
1690 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
1691
1692         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
1693         Expand_Allocator_Expression): Take into account VM_Target
1694
1695         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
1696         secondary stack when VM_Target /= No_VM
1697
1698 2007-12-13  Javier Miranda  <miranda@adacore.com>
1699             Ed Schonberg  <schonberg@adacore.com>
1700
1701         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
1702         Is_Complation_Unit by Is_Library_Level_Entity in the code
1703         that decides if the static dispatch tables need to be built.
1704         (Wrap_Transient_Declaration): Do not generate a finalization call if
1705         this is a renaming declaration and the renamed object is a component
1706         of a controlled type.
1707
1708 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
1709
1710         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
1711         In the case where the renamed subprogram is a dereference, call
1712         Force_Evaluation on the prefix.
1713
1714 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
1715             Ed Schonberg  <schonberg@adacore.com>
1716
1717         * exp_ch9.adb (Expand_N_Asynchronous_Select,
1718         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
1719         comment reformatting.
1720         (Set_Privals): Inherit aliased flag from formal. From code reading.
1721         (Build_Simple_Entry_Call): Out parameters of an access type are passed
1722         by copy and initialized from the actual. This includes entry parameters.
1723         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
1724         and Ada 2005 models of requeue.
1725         (Null_Statements): Still connsider do-end block null if it contains
1726         Unreferenced and Warnings pragmas.
1727         (Expand_N_Accept_Statement): Do not optimize away null do end if
1728         dispatching policy is other than defaulted.
1729         (Expand_N_Timed_Entry_Call): When the triggering statement is a
1730         dispatching call, manually analyze the delay statement.
1731         (Find_Parameter_Type): Move subprogram to Sem_Util.
1732
1733 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
1734             Javier Miranda  <miranda@adacore.com>
1735
1736         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
1737         _Disp_Requeue occupies dispatch table slot number 15. Move
1738         _Disp_Timed_Select to slot 16.
1739         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
1740         generate the spec and body of _Disp_Reqeueue.
1741         (Make_DT): Build and initialize the second dispatch table.
1742         Handle initialization of RC_Offset when the parent
1743         is a private type with variable size components.
1744         (Make_Secondary_DT): Complete documentation. Add support to
1745         initialize the second dispatch table.
1746         (Make_Tags): Generate the tag of the second dispatch table.
1747         (Register_Primitive): Add support to register primitives in the
1748         second dispatch table.
1749
1750 2007-12-13  Pascal Obry  <obry@adacore.com>
1751
1752         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
1753         Windows. This signal is used by gnatmake to kill child processes for
1754         example.
1755
1756 2007-12-13  Javier Miranda  <miranda@adacore.com>
1757
1758         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
1759         support for generic dispatching constructor calls in which we need to
1760         locate the tag of a secondary dispatch table associated with an
1761         interface type to properly dispatch the call.
1762         (Expand_N_Attribute_Reference [case Address],
1763         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
1764         handling of VM targets.
1765
1766 2007-12-13  Robert Dewar  <dewar@adacore.com>
1767             Ed Schonberg  <schonberg@adacore.com>
1768
1769         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
1770         assert fail
1771
1772         * ug_words: Add entries for -gnatw.a -gnatw.A
1773
1774         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
1775         literal is a subtype with non-static constraints, use the base type of
1776         the context as the base of the string subtype, to prevent type
1777         mismatches in gigi.
1778         (Resolve_Actuals): If the actual is an entity name, generate a
1779         reference before the actual is resolved and expanded, to prevent
1780         spurious warnings on formals of enclosing protected operations.
1781         (Analyze_Overloaded_Selected_Component): If type of prefix if
1782         class-wide, use visible components of base type.
1783         (Resolve_Selected_Component): Ditto.
1784         (Resolve_Short_Circuit): Detect case of pragma Assert argument
1785         evaluating to False, and issue warning message.
1786
1787         * usage.adb: Add lines for -gnatw.a and -gnatw.A
1788
1789 2007-12-13  Emmanuel Briot  <briot@adacore.com>
1790
1791         * g-calend.ads (No_Time): New constant, to represent an uninitialized
1792         time value
1793
1794         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
1795         formats.
1796         (Month_Name_To_Number): New subprogram
1797
1798         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
1799         letter to upper-case.
1800
1801 2007-12-13  Robert Dewar  <dewar@adacore.com>
1802             Ed Schonberg  <schonberg@adacore.com>
1803
1804         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
1805
1806         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
1807         context is a limited view, use non-limited view when available. If the
1808         non-limited view is an unconstrained array, this enforces consistency
1809         requirements in 3.10.2 (27).
1810         (Layout_Type): For an access type whose designated type is a limited
1811         view, examine its declaration to determine if it is an unconstrained
1812         array, and size the access type accordingly.
1813         (Layout_Type): Do not force 32-bits for convention c subprogram
1814         pointers in -gnatdm mode, only if real vms target.
1815
1816         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
1817         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
1818         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
1819         violations of the No_Implicit_Dynamic_Code restriction.
1820         (Resolve_Attribute, case 'Access): If designated type of context is a
1821         limited view, use non-limited view when available. If the non-limited
1822         view is an unconstrained array, this enforces consistency requirements
1823         in 3.10.2 (27).
1824         (Layout_Type): For an access type whose designated type is a limited
1825         view, examine its declaration to determine if it is an unconstrained
1826         array, and size the access type accordingly.
1827
1828 2007-12-13  Vincent Celier  <celier@adacore.com>
1829
1830         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
1831         object directory of main project does not exist.
1832         On VMS, correctly set then environment variable for the source
1833         directories.
1834
1835 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
1836
1837         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
1838         set to True this procedure will create the value of type REG_EXPAND_SZ.
1839         It was only possible to create REG_SZ values before.
1840
1841 2007-12-13  Robert Dewar  <dewar@adacore.com>
1842
1843         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
1844         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
1845         namet-sp.adb, namet-sp.ads: New files.
1846
1847         * g-speche.adb: Use generic routine in g-spchge
1848
1849         * s-wchcnv.ads, s-wchcnv.adb: 
1850         Minor code cleanup (make formal type consistent with spec)
1851
1852         * namet.adb: Update comments.
1853
1854         * par-endh.adb (Evaluate_End_Entry): Use new
1855         Namet.Sp.Is_Bad_Spelling_Of function
1856
1857         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
1858
1859         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
1860         ancestor is an access type initialized with a box, set its type
1861         explicitly, for use in subsequent expansion.
1862         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
1863         function
1864
1865 2007-12-13  Robert Dewar  <dewar@adacore.com>
1866
1867         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
1868         access Vstring)
1869
1870 2007-12-13  Robert Dewar  <dewar@adacore.com>
1871
1872         * inline.adb (Back_End_Cannot_Inline): Use new flag
1873         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
1874
1875         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
1876         Has_Pragma_Inline_Always instead.
1877         of obsolete function Is_Always_Inlined
1878         (Build_Body_To_Inline): Same change
1879         (Cannot_Inline): Same change
1880         Do not give warning on exception raise in No_Return function
1881
1882         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
1883         component has two inconsistent component clauses in the same record
1884         representation clause, favor the message that complains about
1885         duplication rather than inconsistency.
1886         Update comments.
1887         (Record_Representation_Clause): Do not warn on missing component
1888         clauses for inherited components of a type extension.
1889         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
1890         an overloadable item if it is a pragma that can apply to multiple
1891         overloadable entities (e.g. Inline) because a pragma cannot be on
1892         more than one chain at a time.
1893         (Validate_Unchecked_Conversion): Add code to warn on unchecked
1894         conversion where one of the operands is Ada.Calendar.Time.
1895         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
1896         For now, ignore Component_Size clause on VM targets, as done for
1897         pragma Pack.
1898
1899 2007-12-13  Emmanuel Briot  <briot@adacore.com>
1900             Vincent Celier  <celier@adacore.com>
1901
1902         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
1903         string
1904         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
1905         prj.ads
1906         (Hash): Move instantiation of System.HTable.Hash from spec to body
1907         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
1908         systems, since we do not need to recompute the Name_Id for the canonical
1909         file name.
1910         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
1911         as a parameter. This parameter is in fact always "ada" in all calls, and
1912         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
1913         while loading a project with 40000 files
1914
1915         * prj-attr.adb: Fix name of attribute Dependency_Driver
1916         Change the kind of indexing for attribute Root
1917
1918         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
1919         variables already declared, in case constructions.
1920
1921         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
1922         Current_Object_Path_File to No_Path.
1923
1924         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
1925         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
1926
1927         * prj-makr.adb: new parameter Current_Dir
1928
1929         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
1930         Ada sources when language is not Ada.
1931         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1932         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
1933         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
1934         (Locate_Directory): Always resolve links when computing Canonical_Path
1935         (Look_For_Sources): Make sure that Name_Buffer contains the file name
1936         in Source_Files before checking for the presence of a directory
1937         separator.
1938         Optimize calls to Name_Find when on case sensitive systems.
1939         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
1940         as a parameter.
1941         (Prj.Nmsc.Check): new parameter Current_Dir
1942         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
1943         cannot be empty and the spec suffix cannot be the same as the body or
1944         separate suffix.
1945         (Get_Unit): When a file name can be of several unit kinds (spec, body or
1946         subunit), always consider the longest suffix.
1947         (Check_Configuration): Do not issue an error if there is no compiler
1948         for a language. Just issue a warning and ignore the sources for the
1949         language.
1950         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
1951         not empty.
1952         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
1953         (Unit_Exceptions): New hash table
1954         (Check_Naming_Schemes): Check if a file that could be a unit because of
1955         the naming scheme is not in fact a source because there is an exception
1956         for the unit.
1957         (Look_For_Sources): Put the unit exceptions in hash table
1958         Unit_Exceptions
1959         (Get_Unit_Exceptions): Give initial value No_Source to local variable
1960         Other_Part to avoid exception when code is compiled with validity
1961         checking.
1962         (Get_Sources_From_File): Check that there is no directory information
1963         in the file names.
1964         (Look_For_Sources): Check that there is no directory information in the
1965         list of file names in Source_Files.
1966         (Look_For_Sources): In multi-language mode, do not allow exception file
1967         names that are excluded.
1968         (Excluded_Sources_Htable): New hash table
1969         (Search_Directories.Check_File): New procedure to simplify
1970         Search_Directories.
1971         (Search_Directories): Do not consider excluded sources
1972         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
1973         Search_Directories.
1974         (Get_Exceptions): Set component Lang_Kind of Source_Data
1975         (Get_Unit_Exceptions): Ditto
1976         (Search_Directories): Ditto
1977
1978         * prj-pars.adb: new parameter Current_Dir
1979
1980         * prj-part.ads, prj-part.adb: 
1981         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
1982         (Opt.Follow_Links_For_Dirs): New flag
1983         (Project_Path_Name_Of): Cache information returned by this routine as
1984         Locate_Regular_File is a costly routine. The code to output a log
1985         information and the effective call to Locate_Regular_File is now
1986         factorized into a routine (code clean-up).
1987         (Parse, Parse_Single_Project): new parameter Current_Dir
1988         When main project file cannot be found, indicate in the error
1989         message the project path that was used to do the search.
1990
1991         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
1992         (Prj.Proc.Process*): new parameter Current_Dir
1993
1994         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
1995
1996 2007-12-13  Bob Duff  <duff@adacore.com>
1997
1998         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
1999         procedure to be called from the back end to check the
2000         No_Implicit_Dynamic_Code restriction.
2001
2002 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
2003
2004         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
2005         Fixes another case where RTE_Available_Call was ignored instead of being
2006         taken into account.
2007         (Load_Fail): Ditto.
2008
2009         * rtsfind.ads: Add new entries.
2010
2011 2007-12-13  Robert Dewar  <dewar@adacore.com>
2012
2013         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
2014         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
2015
2016         * scn.adb: Implement BOM recognition
2017
2018 2007-12-13  Thomas Quinot  <quinot@adacore.com>
2019             Ed Schonberg  <schonberg@adacore.com>
2020
2021         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
2022         subprogram body that acts as its own spec may not have a non-private
2023         WITH clause on a private sibling.
2024         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
2025         child unit is a renaming, create an implicit with_clause on that
2026         parent, and not on the unit it renames, to prevent visibility errors
2027         in the current unit.
2028
2029 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
2030
2031         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
2032         renaming declaration, use the Slocs of the formal parameters from the
2033         declaration of the formal subprogram when creating the formal parameter
2034         entities in the renaming declaration.
2035         (Analyze_Formal_Type_Declaration): Change the placement of the error
2036         message concerning illegal known discriminants. It is now posted on the
2037         type rather than on the first discriminant. This change ensures early
2038         error report.
2039         (Freeze_Subprogram_Body): If the generic subprogram is nested within
2040         the package body that contains the instance, do not generate an
2041         out-of-place freeze node for the enclosing package.
2042         (Collect_Previous_Instantiations): Ignore internal instantiations
2043         generated for formal packages.
2044         (Validate_Derived_Type_Instance): Add a check that when a formal
2045         derived type is Known_To_Have_Preelab_Init then the actual type must
2046         have preelaborable initialization, and issue an error when this
2047         condition is violated.
2048
2049 2007-12-13  Robert Dewar  <dewar@adacore.com>
2050
2051         * s-imenne.adb, s-imenne.ads: New files.
2052
2053         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
2054         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
2055         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
2056         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
2057         s-imgwch.ads: New calling sequence for Image routines to avoid sec
2058         stack usage.
2059
2060 2007-12-13  Javier Miranda  <miranda@adacore.com>
2061             Ed Schonberg  <schonberg@adacore.com>
2062
2063         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
2064         generation of spurious error if parent is an interface type; caused
2065         because predefined primitive bodies will be generated later by
2066         Freeze_Record_Type.
2067         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
2068         flag.
2069         (Derive_Subprograms): Handle derivations of predefined primitives
2070         after all the user-defined primitives to ensure that they are
2071         found in proper order in instantiations.
2072         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
2073         of Related_Interface to Related_Type.
2074         (Record_Type_Declaration): Minor reordering of calls to decorate the
2075         Tag component because the entity must have set its Ekind attribute
2076         before setting its Is_Tag attribute.
2077         (Analyze_Subtype_Declaration): In the case of subtypes with
2078         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
2079
2080 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
2081             Ed Schonberg  <schonberg@adacore.com>
2082
2083         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
2084         statement to the list of contexts where a selected component with a
2085         concurrent tagged type prefix should yield a primitive operation.
2086         (Find_Primitive_Operation): Handle case of class-wide types.
2087         (Analyze_Overloaded_Selected_Component): If type of prefix is
2088         class-wide, use visible components of base type.
2089         (Resolve_Selected_Component): Ditto.
2090         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
2091         formal of a generic subprogram. find candidate interpretations by
2092         scanning the list of generic formal declarations.:
2093         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
2094         type from a limited_with_clause, and the full view is available, use it
2095         for subsequent semantic checks.
2096         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
2097         (Find_Primitive_Operation): New function.
2098         (Analyze_Overloaded_Selected_Component): insert explicit dereference
2099         only once if several interpretations of the prefix yield an access type.
2100         (Try_Object_Operation): Code and comment cleanup.
2101         (Analyze_Selected_Component): Reorder local variables. Minot comment and
2102         code reformatting. When the type of the prefix is tagged concurrent, a
2103         correct interpretation might be available in the primitive and
2104         class-wide operations of the type.
2105
2106 2007-12-13  Robert Dewar  <dewar@adacore.com>
2107             Ed Schonberg  <schonberg@adacore.com>
2108
2109         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
2110         renaming entry as subprogram using rename-as-body if subprogram spec
2111         frozen.
2112         (Use_One_Type): The clause is legal on an access type whose designated
2113         type has a limited view.
2114         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
2115         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
2116         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
2117         operation denoted by a selected component.
2118         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
2119         it can be an expression, possibly overloaded, that returns a task or
2120         an access to one.
2121
2122 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
2123             Gary Dismukes  <dismukes@adacore.com>
2124
2125         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
2126         requeue statement is dispatching. Do not emit an error when the name is
2127         not an entry and the context is a dispatching select. Add code to
2128         perform subtype conformance between the formals of the current entry
2129         and those of the target interface primitive.
2130         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
2131         Timed_Entry_Call): Analyze the triggering statement as the first step of
2132         the processing. If this is a dispatching select, postpone the analysis
2133         of all select statements until the Expander transforms the select. This
2134         approach avoids generating duplicate identifiers after the Expander has
2135         replicated some of the select statements. In case the Expander is
2136         disabled, perform regular analysis.
2137         (Check_Triggering_Statement): New routine.
2138         (Analyze_Requeue): Exclude any interpretations that are not entries when
2139         checking overloaded names in a requeue. Also test type conformance for
2140         matching interpretations rather than requiring subtype conformance at
2141         that point to conform with the RM's resolution rule for requeues.
2142
2143 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
2144
2145         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
2146         inherited operation is a defaulted tag-indeterminate call, and there is
2147         a statically tagged actual, use the static tag as a controlling actual
2148         for the defaulted actual.
2149
2150 2007-12-13  Geert Bosch  <bosch@adacore.com>
2151
2152         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
2153         context, so do not call Check_Non_Static_Context.
2154
2155 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
2156
2157         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
2158         whether formal E is an entity which may have parameters.
2159
2160 2007-12-13  Bob Duff  <duff@adacore.com>
2161             Javier Miranda  <miranda@adacore.com>
2162             Robert Dewar  <dewar@adacore.com>
2163
2164         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
2165         (Set_Convention): New procedure to set the Convention flag, and in
2166         addition make sure the Favor_Top_Level flag is kept in sync (all
2167         foreign-language conventions require Favor_Top_Level = True).
2168         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
2169         to Related_Type.
2170         (Collect_Interfaces_Info): Minor update to handle the two secondary
2171         dispatch tables. Update occurrence of Related_Interface to Related_Type.
2172         (Generate_Parent_Ref): Add parameter to specify entity to check
2173         (Is_Preelaborable_Expression): Allow the name of a discriminant to
2174         initialize a component of a type with preelaborable initialization.
2175         This includes the case of a discriminal used in such a context.
2176         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
2177         latest Ada 2005 rules about renaming and 'Access of
2178         discriminant-dependent components.
2179         (Check_Nested_Access): Add handling when there are no enclosing
2180         subprograms (e.g. case of a package body).
2181         (Find_Parameter_Type): Factor routine from several other compiler files.
2182         Remove routine from Find_Overridden_Synchronized_Primitive.
2183
2184 2007-12-13  Thomas Quinot  <quinot@adacore.com>
2185
2186         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
2187         an invalid access to an uninitialized slot in the
2188         Source_File_Index_Table.
2189
2190 2007-12-13  Thomas Quinot  <quinot@adacore.com>
2191
2192         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
2193
2194 2007-12-13  Bob Duff  <duff@adacore.com>
2195
2196         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
2197         access-to-subprogram types in this package.
2198
2199 2007-12-13  Olivier Hainque  <hainque@adacore.com>
2200
2201         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
2202         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
2203         Stack_Overlay_Address and document that we are using an internal
2204         abstraction.
2205         (Byte_Size, Unsigned_32_Size): Remove, now useless.
2206         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
2207         consistently throughout the various implementation pieces.
2208
2209         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
2210         overlay we are using to fill the stack area with patterns.
2211         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
2212         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
2213         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
2214
2215 2007-12-13  Robert Dewar  <dewar@adacore.com>
2216
2217         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
2218
2219 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
2220
2221         * s-tassta.adb: 
2222         (Create_Task): Take into account tasks created by foreign threads.
2223         Code clean up: use constants instead of hard coded values.
2224
2225 2007-12-13  Robert Dewar  <dewar@adacore.com>
2226
2227         * styleg.adb (Check_Comment): More liberal rules for comment placement
2228
2229 2007-12-13  Olivier Hainque  <hainque@adacore.com>
2230
2231         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
2232         of Procedure Value instead of Frame Pointer as the invocation
2233         identifier associated with the instruction pointer in each traceback
2234         entry.
2235
2236         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
2237         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
2238         Pointer as the invocation identifier passed to tbk$symbolize.
2239
2240         * s-traent-vms.ads, s-traent-vms.adb
2241         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
2242         Procedure Value instead of Frame Pointer as the invocation identifier
2243         passed to tbk$symbolize.
2244
2245 2007-12-13  Robert Dewar  <dewar@adacore.com>
2246
2247         * tbuild.ads, tbuild.adb: 
2248         Fix location of flag for unrecognized pragma message
2249
2250 2007-12-13  Robert Dewar  <dewar@adacore.com>
2251
2252         * treepr.ads, treepr.adb: (pl): implement use of positive value
2253         shorthands
2254
2255 2007-12-13  Robert Dewar  <dewar@adacore.com>
2256
2257         * xeinfo.adb: Remove warnings
2258         * xnmake.adb: Remove warnings
2259         * xsinfo.adb: Remove warnings
2260         * xtreeprs.adb: Remove warnings
2261         * xsnames.adb: Remove warnings
2262
2263         * a-ngcoar.adb: Fix typo.
2264         * s-interr.adb: Minor reformatting
2265         * env.c: Minor reformatting.
2266         * g-bytswa.adb: Minor reformatting.
2267         * g-rannum.ads: Minor documentation improvements
2268         * s-tasinf-mingw.adb: Minor header fix
2269         * a-clrefi.adb: Minor reformatting
2270         * g-sttsne.ads: Minor documentation improvement
2271         * g-sttsne-locking.ads: Minor documentation improvement
2272         * g-soliop-solaris.ads: Minor documentation improvement
2273         * g-soliop-mingw.ads: Minor documentation improvement
2274         * g-soliop.ads: Minor documentation improvement
2275         * exp_aggr.ads: Minor reformatting
2276         * debug.adb: Add documentation for the gprbuild debug flags
2277         * exp_ch2.adb: Use Nkind_In to simplify code throughout
2278         * exp_pakd.adb: Minor reformatting
2279
2280         * g-altive.ads, g-alleve.adb: Remove assertions.
2281         Add comment about minor differences between targets regarding
2282         floating-point operations.
2283
2284         * g-thread.adb: Remove pragma unreferenced.
2285         * lib.ads: Minor reformatting
2286         * par-ch9.adb: Minor reformatting of error messages
2287         * sem_case.adb: Minor reformatting
2288         * s-fileio.adb: Minor reformattinng
2289         * s-vmexta.ads: Minor typo
2290         * vxaddr2line.adb: 
2291         Take into account 'Success' value as per new GNAT warning.
2292
2293 2007-12-13  Vincent Celier  <celier@adacore.com>
2294
2295         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
2296         even on Windows
2297
2298 2007-12-13  Robert Dewar  <dewar@adacore.com>
2299             Bob Duff  <duff@adacore.com>
2300
2301         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
2302         Document that suffixes may be terminations of each others
2303         Add doc for -gnatw.a and -gnatw.A
2304         Document gnatbind -Wx switch
2305         Document BOM recognition
2306         Document pragma Implemented_By_Entry.
2307         Document new units.
2308
2309         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
2310         Add doc for pragma Unreferenced suppressing no entities referenced msg
2311         Add documentation of GNAT.Directory_Operations.Iteration
2312         Add documentation of GNAT.Random_Numbers
2313         Add documentation for pragma Shared.
2314         Correct documentation for Bit_Order
2315         Add documentation for the Pool_Address attribute.
2316         Fix and improve documentation of pragma machine_attribute.
2317         New pragma Fast_Math
2318         Document BOM recognition
2319
2320         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
2321         Add /Wide_Character_Encoding for binder
2322         Add qualifier for the new gnatpp option --no-separate-loop-then
2323
2324 2007-12-13  Matthew Heaney  <heaney@adacore.com>
2325
2326         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
2327         which generic formal operations are called for each operation.
2328
2329 2007-12-13  Olivier Hainque  <hainque@adacore.com>
2330
2331         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
2332         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
2333
2334 2007-12-13  Emmanuel Briot  <briot@adacore.com>
2335
2336         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
2337         Reference_Dir unless we actually need it.
2338
2339 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
2340             Tristan Gingold  <gingold@adacore.com>
2341
2342         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
2343
2344         * s-osprim-vms.adb,
2345         a-calend-vms.adb: Remove pragma warning off and add pragma
2346         unreferenced.
2347
2348 2007-12-13  Robert Dewar  <dewar@adacore.com>
2349
2350         * impunit.adb: Add entries for missing units
2351
2352         * Makefile.rtl: Add new run-time units.
2353
2354         * Make-lang.in:  Update dependencies.
2355
2356 2007-12-13  Bob Duff  <duff@adacore.com>
2357
2358         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
2359         types, set Can_Use_Internal_Rep appropriately, based on
2360         Always_Compatible_Rep_On_Target.
2361
2362 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
2363             Arnaud Charlet  <charlet@adacore.com>
2364
2365         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
2366         it to the front end and setting the aamp_target environment variable
2367         to the switch's argument to ensure that gnaampbind and gnaamplink will
2368         take the specified library into account.
2369         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
2370         target, since the CIL compiler supports an "object" file (.il files).
2371
2372 2007-12-13  Vincent Celier  <celier@adacore.com>
2373
2374         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
2375         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
2376
2377 2007-12-13  Geert Bosch  <bosch@adacore.com>
2378
2379         * s-parame-vxworks.adb: 
2380         Update comments to reflect usage of this package by Nucleus.
2381
2382 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
2383
2384         * i-vxwork.ads: Kill new warning on Convention C, since changing the
2385         spec would break code.
2386
2387         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
2388
2389         * system-vxworks-alpha.ads: Removed.
2390
2391 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
2392
2393         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
2394
2395 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
2396
2397         PR ada/34366
2398         * sem_ch3.adb (Designates_T): New function.
2399         (Mentions_T): Factor reusable part of the logic into Designates_T.
2400         Consider non-access parameters and access and non-access result.
2401         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
2402         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
2403
2404         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
2405
2406 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
2407
2408         PR ada/34361
2409         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
2410         the new implementation of target-specific calls.
2411
2412 2007-12-07  Olivier Hainque  <hainque@adacore.com>
2413
2414         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
2415         the designated full view, only follow a second level Full_View link
2416         for Non_Limited_Views of from_limited_with references.
2417         
2418 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
2419
2420         PR ada/15805
2421         * sem_ch6.adb (Process_Formals): Prevent an access type formal
2422         to be initialized with an access to constant object.
2423
2424         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
2425         when an access to constant is used to initialize an access
2426         value.
2427
2428         PR ada/21346
2429         * a-direct.adb (Compose): Containing_Directory can be an empty string.
2430
2431 2007-12-07  Olivier Hainque  <hainque@adacore.com>
2432
2433         PR ada/34173
2434         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
2435         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
2436         this is from an alignment clause on the GNAT entity.
2437         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
2438         to distinguish the case where we set it from the type's alignment.
2439         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
2440         whether this alignment was set from an explicit alignment clause.
2441
2442 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
2443
2444         * decl.c (make_packable_type): Revert last change.
2445         (gnat_to_gnu_field): Avoid setting size and position multiple times.
2446         * utils.c (finish_record_type): Retrieve the real name of the type.
2447
2448 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
2449
2450         * trans.c (lvalue_required_p): Take base node directly instead
2451         of its parent.  Rename second parameter to 'gnu_type'.
2452         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
2453         <N_Slice>: Likewise.
2454         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
2455         Adjust calls to lvalue_required_p.
2456
2457 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
2458
2459         PR ada/21489
2460         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
2461         parameters of an entry call.
2462
2463 2007-12-03  Robert Dewar  <dewar@adacore.com>
2464             Samuel Tardieu  <sam@rfc1149.net>
2465
2466         PR ada/34287
2467         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
2468         of variables declared in a library-level package.
2469     
2470 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
2471
2472         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
2473         of Empty_String'Unchecked_Access.
2474
2475         * Makefile.in: Add support for sh4-linux.
2476
2477         * system-linux-sh4.ads: New file.
2478
2479 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
2480
2481         PR ada/33722
2482         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
2483         and its argument must not be free()ed.
2484
2485 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
2486
2487         * decl.c (make_packable_type): Retrieve the real name of the type.
2488         (maybe_pad_type): Simplify similar code.
2489
2490 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
2491
2492         PR ada/15804
2493         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
2494         than an identifier is used after "case" in a variant_part.
2495
2496         PR ada/17318
2497         * par-ch4.adb (Is_Parameterless_Attribute): New map.
2498         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
2499         attribute name or not depending on the new map.
2500
2501         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
2502         returning a string or a type will not be called with improper
2503         arguments.
2504
2505         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
2506
2507         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
2508
2509         PR ada/32792
2510         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
2511         Signal an error when attribute argument is a fixed-point value of
2512         an unknown type.
2513
2514         PR ada/22559
2515         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
2516         a derived ordinary fixed point type.
2517
2518         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
2519         RM_Size when a Small clause is found.
2520
2521 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
2522
2523         PR 34081/C++
2524         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
2525         Pass 'false' for the new allocate_struct_function parameter.
2526         * utils.c (build_function_stub): Likewise.
2527
2528 2007-11-25  Richard Guenther  <rguenther@suse.de>
2529
2530         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
2531         (gnat_poplevel): Likewise.
2532
2533 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
2534
2535         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
2536         strict alignment, no alignment clause and a known static size, cap
2537         the type alignment to the greatest power of 2 factor of the size.
2538         (gnat_to_gnu_field): If the field has a component clause, is aliased
2539         or of a type with strict alignment, require that its size be equal to
2540         that of the type.
2541         (validate_size): Use the type size as the minimum size for a type with
2542         strict alignment.
2543
2544 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
2545
2546         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
2547         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
2548         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
2549         Use 'Access instead of 'Unchecked_Access in second and third
2550         arguments of pthread_sigmask.
2551
2552 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
2553
2554         * decl.c (ceil_alignment): New function.
2555         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
2556         (make_packable_type): Likewise.
2557
2558 2007-11-22  Olivier Hainque  <hainque@adacore.com>
2559
2560         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
2561         to fit in 80 columns.
2562
2563 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
2564
2565         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
2566         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
2567
2568 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2569
2570         PR ada/34098
2571         * misc.c (gnat_adjust_rli): Delete.
2572         (gnat_init): Do not initialize the translation code here.
2573         Do not call set_lang_adjust_rli.
2574         * trans.c (init_code_table): Make static.
2575         (gnat_init_stmt_group): Delete.
2576         (gigi): Initialize the translation code entirely here.
2577         Emit debug info for the common types here instead of...
2578         * utils.c (gnat_init_decl_processing): ...here.
2579         * gigi.h (init_code_table): Delete.
2580         (gnat_init_stmt_group): Likewise.
2581
2582 2007-11-16  Olivier Hainque  <hainque@adacore.com>
2583
2584         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
2585         retrieving an allocator return value from a super-aligned address from
2586         here to ...
2587         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
2588         expect a super-aligned address for a fat or thin pointer.
2589         
2590 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
2591
2592         * trans.c (call_to_gnu): Always set the source location on the call
2593         expression.  If the function returns-by-target, also set it on the
2594         address expression.
2595
2596 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
2597
2598         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
2599         sections of non-supported Interix target.
2600
2601         * s-osinte-interix.ads: Removed.
2602
2603         * i-cstrin.ads (chars_ptr): Make it a C convention type.
2604
2605 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
2606
2607         * a-tasatt.adb: Add a comment at the beginning of the package
2608         explaining why in general 'Unchecked_Access must be used instead
2609         of 'Access.
2610
2611         * sem_prag.adb (Process_Convention): Move the test for the
2612         entity on which the Convention pragma applies down to also
2613         forbid pragma Convention on enumeration literals reached
2614         through renamings.
2615
2616 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
2617
2618         * a-tasatt.adb: Revert previous change for this file as it will
2619         generate an error when this package is instantiated from a
2620         local context.
2621
2622 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
2623
2624         * a-tasatt.adb: Type Wrapper should be declared in comment instead
2625         of already declared type Node_Access.
2626         Use 'Access instead of 'Unchecked_Access when applicable. Local
2627         lifetime is the one of the package.
2628         (Set_Value): W is allocated on the heap.
2629
2630         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
2631         applicable.
2632         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
2633         access type.
2634         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
2635         access type.
2636
2637         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
2638         applicable.
2639         (elaboration code): Timer_Queue lifetime is the one of the
2640         package.
2641
2642         * tracebak.c (i386 alternative): Remove useless comparaison
2643         which is always false; LOWEST_ADDRESS is 0 and is never greater
2644         than an unsigned integer.
2645
2646         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
2647         embedded check for "Ada_Version >= Ada_05".
2648
2649 2007-11-07  Olivier Hainque  <hainque@adacore.com>
2650
2651         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
2652         craft and expand comment.
2653
2654 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
2655
2656         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
2657
2658 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
2659
2660         * misc.c (gnat_handle_option): Replace call to abort with
2661         call to gcc_unreachable.
2662         (gnat_init): Likewise.
2663         (gnat_expand_expr): Likewise.
2664         (fp_prec_to_size): Likewise.
2665         (fp_size_to_prec): Likewise.
2666
2667 2007-10-23  Richard Guenther  <rguenther@suse.de>
2668
2669         PR bootstrap/33608
2670         * tracebak.c: #undef abort after including system.h.
2671
2672 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
2673
2674         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
2675         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
2676         for win32 targets.
2677         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
2678
2679 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
2680
2681         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
2682         Set the protection status of the guard page based on the value of On.
2683
2684         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
2685
2686         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
2687         (Exit_Task): Pass False to Hide_Yellow_Zone.
2688
2689 2007-10-15  Robert Dewar  <dewar@adacore.com>
2690
2691         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
2692         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
2693         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
2694         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
2695         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
2696         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
2697         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
2698         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
2699         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
2700         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
2701         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
2702         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
2703         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
2704         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
2705         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
2706         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
2707         Minor reformatting.
2708         Add Unreferenced and Warnings (Off) pragmas for cases of
2709         variables modified calls where they are IN OUT or OUT parameters and
2710         the resulting values are not subsequently referenced. In a few cases,
2711         we also remove redundant code found by the new warnings.
2712
2713         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
2714         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
2715         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
2716         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
2717         warning controlled by -gnatw.o that warns on cases of out parameter
2718         values being ignored.
2719
2720 2007-10-15  Geert Bosch  <bosch@adacore.com>
2721
2722         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
2723
2724         * expect.c: Initial port to arm-mentor-nucleus.
2725         Use kill for __gnat_kill() on VMS.
2726
2727 2007-10-15  Emmanuel Briot  <briot@adacore.com>
2728
2729         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
2730         value.
2731         (Xref_Record): Change type for Line, since in the case of a reference to
2732         a predefined entity (as happens for array index types), the line is set
2733         to 0.
2734         Add support for parsing multiple array index types info, or
2735         multiple inherited interfaces info. This information cannot be stored
2736         in Xref_Entity_Record, which only supports a single instance of Tref_*,
2737         and is therefore stored in the list of references instead. It has a
2738         special treatement later on in tools that use this information.
2739
2740 2007-10-15  Tristan Gingold  <gingold@adacore.com>
2741
2742         * debug.adb: Document use of -gnatd.a and -gnatd.I
2743
2744         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
2745
2746 2007-10-15  Javier Miranda  <miranda@adacore.com>
2747
2748         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
2749         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
2750         care of access to class-wide interface types plus removal of bizarre
2751         conversion of tagged object to access type (reported by Gary
2752         Dismukes). After this patch there is no need to perform any
2753         additional management on these nodes in Expand_Interface_Actuals.
2754
2755         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
2756         that handles use of 'Access and 'Unchecked_Access applied to
2757         actuals covering interface types. Such code is now
2758         centralized in Expand_N_Attribute_Reference.
2759
2760 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
2761
2762         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
2763         of tagged types whose ultimate ancestor is a CPP type.
2764         (Freeze_Array_Type): For a packed array type, generate an initialization
2765         procedure if the type is public, to handle properly a client that
2766         specifies Normalize_Scalars.
2767
2768 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
2769
2770         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
2771         inside a generic body, retrieve the full view of the entry family
2772         discrete subtype if available.
2773
2774 2007-10-15  Thomas Quinot  <quinot@adacore.com>
2775
2776         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
2777         attempt to generate stubs for hidden primitive operations.
2778
2779 2007-10-15  Vincent Celier  <celier@adacore.com>
2780
2781         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
2782         returning None, used when there is no platform specific body for
2783         MLib.Tgt.Specific.
2784
2785 2007-10-15  Bob Duff  <duff@adacore.com>
2786
2787         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
2788         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
2789         the generic Heap_Sort_G, in order to avoid trampolines.
2790
2791 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
2792             Jose Ruiz  <ruiz@adacore.com>
2793
2794         * vx_stack_info.c: New file.
2795
2796         * i-forbla-unimplemented.ads: New file.
2797
2798         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
2799         for unsupported configurations; use it on VMS targets instead of the
2800         real one.
2801         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
2802         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
2803         used by VxWorks targets to have access to task-specific data and be
2804         able to extract the stack boundaries for stack checking.
2805         Use system-vms-ia64.ads on ivms.
2806
2807         * Make-lang.in: Update dependencies.
2808
2809         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
2810         (vx_stack_info.c).
2811
2812 2007-10-15  Vincent Celier  <celier@adacore.com>
2813
2814         * snames.adb, snames.ads: Add new standard name runtime_library_dir
2815
2816         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
2817
2818         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
2819
2820         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
2821         the source is unknown.
2822
2823         * prj-ext.adb: Spelling error fix
2824
2825         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
2826         95 reserved word in its name.
2827         (Process_Project_Level_Array_Attributes): Process new attribute
2828         Runtime_Library_Dir.
2829
2830         * prj-part.adb (Parse_Single_Project): Do not check the name of the
2831         config project against the user project names.
2832
2833         * prj-proc.adb (Expression): In multi-language mode, indexes that do
2834         not include a dot are always case insensitive.
2835         (Process_Declarative_Items): Ditto
2836         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
2837         detected.
2838
2839         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
2840         True, compare both indexes in lower case.
2841
2842 2007-10-15  Robert Dewar  <dewar@adacore.com>
2843
2844         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
2845
2846 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
2847
2848         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
2849         association for an access component, add an association with null as
2850         the expression. Remove testing for array subtypes and the setting in
2851         that case of Ctyp to the array component type, which prevented proper
2852         inclusion of an association for null-initialized arrays. Collapse
2853         condition that tests for array subtypes into just a test of
2854         Is_Partially_Initialized_Type (which already covers arrays anyway).
2855
2856 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
2857
2858         * sem_ch12.adb: Minor code reformatting.
2859         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
2860         find the parent package which may have been hidden by local
2861         declarations.
2862
2863 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
2864
2865         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
2866         flag of derived concurrent types, taking into account the flag setting
2867         on the parent subtype and any new set of discriminants.
2868
2869 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
2870
2871         * sem_ch4.adb: Minor code and comment reformatting.
2872         (Analyze_Allocator): When the designated type of an unconstrained
2873         allocator is a record with unknown discriminants or an array with
2874         unknown range bounds, emit a detailed error message depending on the
2875         compilation mode and whether the designated type is limited.
2876
2877 2007-10-15  Tristan Gingold  <gingold@adacore.com>
2878
2879         * system-vms-ia64.ads: New file.
2880
2881         * system-vms_64.ads: Minor comment fix.
2882
2883 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
2884
2885         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
2886         body generated for a function with a controlling result that is a null
2887         extension, discard the generated body in favor of the current explicit
2888         one.
2889
2890 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
2891
2892         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
2893         examining its original form, to handle properly operator calls that
2894         have been rewritten.
2895
2896 2007-10-15  Olivier Hainque  <hainque@adacore.com>
2897
2898         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
2899         instead of a procedure value in each traceback entry.
2900
2901         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
2902         instead of procedure value to TBK$SYMBOLIZE.
2903
2904         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
2905         field.
2906         (TB_Entry_For): Account for the PV/FP renaming.
2907
2908         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
2909         add comment.
2910         (Null_TB_Entry): Account for change of component name.
2911         (PV_For): Rename as FP_For.
2912
2913 2007-10-15  Tristan Gingold  <gingold@adacore.com>
2914
2915         * trans.c (gnat_to_gnu): Remove the padding structure more often.
2916         This optimize assignment to over-aligned record.
2917
2918 2007-10-15  Emmanuel Briot  <briot@adacore.com>
2919
2920         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
2921         interfaces.
2922
2923         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
2924         type, for dispatching calls.
2925
2926 2007-10-15  Vincent Celier  <celier@adacore.com>
2927             Robert Dewar  <dewar@adacore.com>
2928
2929         * gnat_ugn.texi: Add documentation for switches --version and --help
2930         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
2931         gnatxref, gnatfind, gnatls, and gnatclean.
2932         Document -gnatw.o.
2933         Mention attribute Excluded_Source_Dirs
2934         Replace obsolescent attribute Locally_Removed_Files with attribute
2935         Excluded_Source_Files.
2936         Improve documentation of -u (gnatbind)
2937         Document how to do reliable stack checking for the environmental task
2938         on iVMS.
2939
2940         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
2941         Document attribute Excluded_Source_Files and indicate that attribute
2942         Locally_Removed_Files is obsolescent.
2943
2944 2007-10-15  Thomas Quinot  <quinot@adacore.com>
2945
2946         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
2947
2948         * gen-soccon.c: 
2949         Update documentation to note that OpenVMS 8.3 or later must be used
2950         to generate g-soccon-vms.ads.
2951
2952         * atree.adb: Add ??? comment
2953
2954         * exp_util.adb: Minor reformatting.
2955         Add ??? comment in Kill_Dead_Code.
2956
2957 2007-10-15  Robert Dewar  <dewar@adacore.com>
2958
2959         * errout.ads: Comment clarification
2960
2961         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
2962         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
2963
2964         * lib.ads: Comment update
2965
2966         * init.c: Minor reformatting.
2967
2968         * sem_attr.adb: Minor formatting
2969
2970         * osint-b.ads: Minor reformatting
2971
2972         * sem_ch9.adb: Implement -gnatd.I switch
2973
2974         * g-comlin.adb: (Start): Fix handling of empty command line.
2975
2976         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
2977         even when -rules follows the -cargs section.
2978
2979 2007-10-08  Ollie Wild  <aaw@google.com>
2980
2981         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
2982         gnat_return_tree.
2983         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
2984         gnat_return_tree.
2985         (gnat_eh_runtime_type): Removed.
2986         (gnat_return_tree): New function.
2987
2988 2007-10-08  Ben Elliston  <bje@au.ibm.com>
2989
2990         PR ada/33454
2991         Revert:
2992         2007-08-31  Ben Elliston  <bje@au.ibm.com>
2993
2994         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
2995         when compiling for powerpc64-*-linux.
2996         * system-linux-ppc64.ads: New file.
2997
2998 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2999
3000         Mapped location support
3001         * back_end.adb (Call_Back_End): Pass information about source
3002         files instead of units to gigi.
3003         * gigi.h (struct File_Info_Type): New.
3004         (gigi): Rename and change type of number_units parameter, change
3005         type of file_info_ptr parameter.
3006         * trans.c (number_files): New global variable.
3007         (gigi): Rename and change type of number_units parameter, change
3008         type of file_info_ptr parameter.
3009         If mapped location support is enabled, create the isomorphic mapping
3010         between source files and line maps.
3011         (Sloc_to_locus): If mapped location support is enabled, translate
3012         source location into mapped location.
3013         (annotate_with_node): Rename into set_expr_location_from_node.
3014         Call set_expr_location instead of annotate_with_locus.
3015         (Pragma_to_gnu): Adjust for above change.
3016         (Loop_Statement_to_gnu): Likewise.
3017         (call_to_gnu): Likewise.
3018         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3019         (gnat_to_gnu): Likewise.
3020         (add_stmt_with_node): Likewise.
3021         (add_cleanup): Likewise.
3022         * utils.c (gnat_init_decl_processing): Do not set input_line.
3023
3024 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
3025
3026         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
3027         (Applicable_Use): Emit a warning when a package tries to use itself.
3028         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
3029         is already in use or the package where it is declared is in use or is
3030         declared in the current package.
3031         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
3032
3033         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
3034         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
3035         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
3036
3037 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
3038
3039         * a-calend-vms.adb, a-calend.adb: 
3040         Add a section on leap seconds control along with two entities used to
3041         enable and disable leap seconds support. The array Leap_Second_Times is
3042         now constant and contains hard time values pre-generated. Remove
3043         all elaboration code used to populate the table of leap seconds.
3044
3045         * bindgen.adb: 
3046         Add entity Leap_Seconds_Support to the list of global run-time variables
3047         along with a comment on its usage and values.
3048         (Gen_Adainit_Ada): Add code to generate the declaration and import of
3049         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
3050         or one (enabled) depending on the presence of binder switch "-y".
3051         (Gen_Adainit_C): Add code to generate the declaration of external int
3052         __gl_leap_seconds_support. Set is value to zero (disabled) or one
3053         (enabled) depending on the presence of binder switch "-y".
3054
3055         * init.c: Add __gl_leap_seconds_support to the list of global values
3056         computed by the binder.
3057
3058 2007-09-26  Jerome Guitton  <guitton@adacore.com>
3059
3060         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
3061         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
3062          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
3063         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
3064
3065         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
3066
3067         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
3068         function which can be called by the debugger to interrupt the tasks of
3069         an Ada application asynchronously, as needed on VxWorks.
3070         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
3071
3072         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
3073         renamed from Stop_All_Tasks. Update comments.
3074         (Stop_All_tasks): New function declaration.
3075
3076 2007-09-26  Olivier Hainque  <hainque@adacore.com>
3077
3078         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
3079         #include <utime.h> and #define GCC_RESOURCE_H before
3080         #include <sys/wait.h>.
3081         Add more protections in __gnat_translate_vms.
3082
3083         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
3084         #include <sys/wait.h>.
3085
3086 2007-09-26  Thomas Quinot  <quinot@adacore.com>
3087             Sergey Rybin  <rybin@adacore.com>
3088
3089         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
3090
3091         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
3092         where it belongs.
3093
3094         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
3095
3096         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
3097         where it belongs.
3098
3099         * sem_dist.ads: Minor comment fix
3100
3101         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
3102
3103 2007-09-26  Javier Miranda  <miranda@adacore.com>
3104             Eric Botcazou  <ebotcazou@adacore.com>
3105
3106         * a-tags.adb: 
3107         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
3108          indirection added to the HT_Link component of the TSD. This is required
3109          to statically allocate the TSD.
3110
3111         * a-tags.ads: 
3112         Minor reordering of the declarations in the private part. Required to
3113         add a level of indirection to the contents of the TSD component HT_Link.
3114         This is required to statically allocate the TSD.
3115
3116         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
3117         Is_Statically_Allocated set from constant objects.
3118         Do not make exported constants created by the compiler volatile.
3119         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
3120         as read-only.
3121
3122         * trans.c (Identifier_to_gnu): For constants, unshare initializers
3123         before returning them.
3124
3125         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
3126         public part of the package.
3127         (Make_DT): Move HT_Link component out of the TSD record. For this
3128         purpose Make_DT now declares a separate object that stores the
3129         HT_Link value, and initializes the TSD component with the address
3130         of this new object. The addition of this level of indirection is
3131         required to statically allocate the TSD because the TSD cannot
3132         have variable components.
3133         (Expand_Interface_Conversion): Improve the expanded code.
3134         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
3135
3136         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
3137         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
3138         if we are building static dispatch tables then we must not generate
3139         extra code to register the primitive because the dispatch table will
3140         be built at the end of the library package; otherwise we notify that
3141         we cannot build the static dispatch table.
3142
3143 2007-09-26  Robert Dewar  <dewar@adacore.com>
3144
3145         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
3146         overlays.
3147
3148         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
3149         (Analyze_Record_Representation_Clause): Suppress junk warning for
3150         missing component clause.
3151         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
3152         tests for controlled type overlay to composites with controlled
3153         components.
3154         (Analyze_Record_Representation_Clause): Add reference for component name
3155
3156 2007-09-26  Javier Miranda  <miranda@adacore.com>
3157             Gary Dismukes  <dismukes@adacore.com>
3158
3159         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
3160         for thunks associated with interface types.
3161
3162         * einfo.ads: Improve documentatation of Is_Internal
3163         (Is_Thunk): New attribute applicable to subprograms. True for thunks
3164         associated with interface types.
3165         Extensive comment fixes regarding flags that appear in all entities. The
3166         documentation is now consistent for all such flags (there were a number
3167         of errors in the documentation in this regard).
3168
3169         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
3170
3171         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
3172         of these procedures are passed a function call that already has
3173         build-in-place actuals (testing new flag
3174         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
3175         the case where processing continues.
3176         (Expand_Call): If the call is generated from a thunk body then we
3177         propagate the extra actuals associated with the accessibility
3178         level of the access type actuals.
3179
3180         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
3181         of each extra formal of a protected operation to reference the
3182         corresponding extra formal of the subprogram denoted by the
3183         operation's Protected_Body_Subprogram.
3184         
3185         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
3186         N_Function_Call nodes.
3187
3188 2007-09-26  Robert Dewar  <dewar@adacore.com>
3189
3190         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
3191
3192         * debug.adb: Add d.s flag.
3193
3194 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
3195
3196         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
3197         debug variable so that it won't be initialized when pragma
3198         Initialize_Scalars is in effect.
3199
3200 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
3201
3202         * freeze.adb (Freeze_Entity): Remove check for preelaborable
3203         initialization of a full view. This is moved to
3204         Analyze_Package_Specification.
3205
3206         * sem_ch7.adb (Analyze_Package_Specification): Add check for
3207         preelaborable initialization of a full view in entity loop.
3208         (Uninstall_Declarations): If entity is a use-visible compilation unit,
3209         its child units are use-visible only if they are visible child units.
3210
3211         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
3212         whether an expression can be used within a type declaration that
3213         requires preelaborable init.
3214         (Check_Components): Replace inline code that does partial checking for
3215         preelaborable default expressions with call to
3216         Is_Preelaborable_Expression.
3217         (Has_Preelaborable_Initialization): In the case of a generic actual
3218         subtype, (that is, Is_Generic_Actual is True), return the result of
3219         applying Has_Preelaborable_Initialization to the generic actual's base
3220         type.
3221
3222 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
3223
3224         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
3225         call to Jan_1_Day _Of_Week to optimize its performance.
3226         (Is_Leap): Move the routine to the scope of Week_In_Year.
3227         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
3228         weekday on which January 1 falls of Year - 1 and Year + 1. This function
3229         avoids calling Time_Of and Split, thus making it more efficent.
3230         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
3231
3232         * g-calend.ads (Week_In_Year): Change comment to reflect new
3233         implementation.
3234
3235 2007-09-26  Emmanuel Briot  <briot@adacore.com>
3236
3237         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
3238         Command_Line): New types
3239         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
3240         support for defining how switches can be grouped on a command line (as
3241         is the case for -gnatw... for GNAT), and how simple switches can be
3242         used as aliases for more complex switches (-gnatwa is same as
3243         -gnatwbcef...)
3244         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
3245         (Start, Current_*): New subprograms
3246         Added support for parsing an array of strings in addition to the real
3247         command line.
3248         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
3249          be moved from the body to the private part of the spec.
3250         (*): All subprograms now have an extra parameter with default value to
3251         specify which parser should be used. For backward compatibility, it
3252         defaults to parsing the command line of the application. They were also
3253         modified to properly handle cases where each of the argument does not
3254         start at index 1 (which is always true for Ada.Command_Line, but not
3255         when processing any Argument_List).
3256         (Free): New subprogram
3257         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
3258         Argument): New subprograms
3259         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
3260         special characters like ':', '=',... are now handled in a single place,
3261         which makes the code more extensible eventually.
3262         (Getopt, Full_Switch): When the switch was returned as part of the
3263         special character '*', make sure it is prepended by the switch character
3264         ('-' in general), so that the application knows whether "foo" or "-foo"
3265         was specified on the command line.
3266
3267 2007-09-26  Florian Villoing  <villoing@adacore.com>
3268
3269         * g-dirope.adb (Remove_Dir): In case we are removing directories
3270         recursively, make sure that if an exception is raised during the
3271         processing, the current working directory is reset to its initial
3272         value before propagating the exception.
3273
3274 2007-09-26  Vincent Celier  <celier@adacore.com>
3275
3276         * gnatbind.adb: If there are several ALI files specified and there is
3277         a main program to bind, the first ALI is expected to contain the main
3278         subprogram and the names of the binder generated files will be derived
3279         from the first ALI file name.
3280         (Gnatbind): Fix insertion character in invocation of Error_Msg
3281
3282 2007-09-26  Vincent Celier  <celier@adacore.com>
3283
3284         * gnatcmd.adb (Check_Files): Do not include sources that have been
3285         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
3286
3287 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
3288
3289         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
3290         information about each of its index types, following the type
3291         reference for its component type.
3292
3293 2007-09-26  Vincent Celier  <celier@adacore.com>
3294
3295         * make.adb: (Kill): New procedure (__gnat_kill imported)
3296         (Running_Compile, Outstanding_Compiles): Global variables that
3297         were previously local to procedure Compile_Sources.
3298         (Sigint_Intercepted): Send signal SIGINT to all outstanding
3299         compilation processes.
3300
3301         (Gnatmake): If project files are used, create the mapping of all the
3302         sources, so that the correct paths will be found.
3303
3304         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
3305
3306 2007-09-26  Vincent Celier  <celier@adacore.com>
3307
3308         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
3309
3310         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
3311         Replace components Compiler_Min_Options and Binder_Min_Options with
3312         Compiler_Required_Switches and Binder_Required_Switches in record
3313         Language_Config.
3314         Remove components Default_Language and Config in Project_Tree_Data,
3315         no longer used.
3316
3317         * prj-attr.adb: New attributes Required_Switches (<language>) in
3318         packages Compiler and Binder.
3319
3320         * prj-nmsc.adb: Major rewrite of the processing of configuration
3321         attributes for gprbuild. No impact on GNAT tools.
3322
3323         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
3324         process configuration attributes: this is done in Prj.Nmsc.Check.
3325         (Recursive_Process): Make a full copy of packages inherited from project
3326         being extended, instead of a shallow copy.
3327         (Process_Project_Tree_Phase_1): New procedure
3328         (Process_Project_Tree_Phase_1): New procedure
3329         (Process): Implementation now uses the two new procedures
3330
3331         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
3332         from the project config, not the tree config that no longer exists.
3333
3334 2007-09-26  Vincent Celier  <celier@adacore.com>
3335
3336         * Make-lang.in: Update dependencies..
3337
3338 2007-09-26  Vincent Celier  <celier@adacore.com>
3339
3340         * osint.adb, osint.ads: Minor reformatting
3341
3342         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
3343
3344 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
3345
3346         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
3347         message to cite use of <> in aggregate component associations rather
3348         than wrongly indicating use of limited aggregates.
3349
3350 2007-09-26  Robert Dewar  <dewar@adacore.com>
3351
3352         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
3353         Address_Taken.
3354
3355 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
3356
3357         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
3358         ancestor of the derived type, the operations are inherited from the
3359         primary dispatch table of the parent.
3360         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
3361         when the context is an explicit type conversion.
3362
3363 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
3364
3365         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
3366         rule for qualified expressions properly, to detect improper conversions
3367         and resolve some cases of overloading.
3368
3369 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
3370
3371         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
3372         proper kind of reference to the primitive operation, for better source
3373         navigation.
3374         (Valid_Conversion): A tagged conversion is legal if both operands are
3375         tagged.
3376
3377 2007-09-26  Robert Dewar  <dewar@adacore.com>
3378
3379         * sem_warn.adb (Check_References): Catch more cases of unreferenced
3380         packages.
3381
3382 2007-09-26  Vincent Celier  <celier@adacore.com>
3383
3384         * snames.adb, snames.ads: Change Include_Option to Include_Switches
3385
3386 2007-09-26  Robert Dewar  <dewar@adacore.com>
3387
3388         * s-wchstw.adb: provide messages for run time unit exceptions
3389
3390         * a-witeio.adb: Minor reformatting
3391
3392         * exp_ch13.adb: Minor reformatting
3393
3394 2007-09-26  Sergey Rybin  <rybin@adacore.com>
3395
3396         * vms_data.ads: Revise gnatmetric qualifiers.
3397         Add qualified for the new gnatbind option '-y'
3398
3399         * gnat_ugn.texi: Revise the gnatmetric section.
3400         Add entry for new gnatbind option '-y'.
3401
3402         * gnat_rm.texi: Minor spelling correction.
3403         Document restriction on overlaying controlled types
3404
3405 2007-09-26  Vincent Celier  <celier@adacore.com>
3406
3407         * makegpr.adb (Link_Executables): Do not fail when the root project has
3408         no sources, but is an extending project.
3409
3410 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
3411
3412         * trans.c: Fix misplaced #define.
3413
3414 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
3415
3416         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
3417         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
3418
3419 2007-09-21  Olivier Hainque  <hainque@adacore.com>
3420
3421         * utils.c (type_for_nonaliased_component_p): Return false for
3422         all AGGREGATE_TYPEs.
3423
3424 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
3425
3426         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
3427         object covered by 13.3(19) volatile.
3428
3429 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
3430
3431         PR ada/26797
3432         PR ada/32407
3433         * utils.c (unchecked_convert): Use a subtype as the intermediate type
3434         in the special VIEW_CONVERT_EXPR case.
3435
3436 2007-09-12  Robert Dewar  <dewar@adacore.com>
3437
3438         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
3439
3440         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
3441         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
3442         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
3443         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
3444         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
3445         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
3446         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
3447         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
3448         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
3449         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
3450         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
3451         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
3452         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
3453         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
3454         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
3455         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
3456         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
3457         pragma Compiler_Unit and adds it to relevant library units.
3458
3459 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
3460
3461         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
3462         a box need not correspond to any component.
3463
3464 2007-09-12  Robert Dewar  <dewar@adacore.com>
3465
3466         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
3467         the tasking version of the Ada run time when foreign threads are
3468         present and there are no explicit Ada tasks or tasking constructs.
3469
3470         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
3471
3472 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
3473
3474         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
3475         the usage of switch -y.
3476
3477         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
3478         when switch -y is present.
3479
3480         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
3481         leap seconds in Ada.Calendar and its children.
3482
3483 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
3484
3485         * a-extiti.ads (Timer): The discriminant is a "not null access
3486         constant" in the Reference Manual.
3487         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
3488
3489 2007-09-12  Robert Dewar  <dewar@adacore.com>
3490
3491         * a-swuwha.adb: Remove junk RM header
3492
3493 2007-09-12  Vincent Celier  <celier@adacore.com>
3494
3495         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
3496         indicator
3497
3498         * g-bytswa.ads: Minor reformatting
3499
3500 2007-09-12  Thomas Quinot  <quinot@adacore.com>
3501
3502         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
3503         Add new constant Thread_Blocking_IO, always True by default, set False
3504         on a per-runtime basis.
3505         (Need_Netdb_Buffer): New constant.
3506
3507 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
3508
3509         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
3510         Added renames for corresponding functions in System.Partition_Interface.
3511
3512 2007-09-12  Doug Rupp  <rupp@adacore.com>
3513
3514         * Makefile.in: Remove VMS specific System.CRTL packages which are no
3515         longer needed.
3516
3517         * s-crtl-vms64.ads: Removed.
3518
3519 2007-09-12  Olivier Hainque  <hainque@adacore.com>
3520
3521         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
3522         with discriminant constraints, generalize the code for BIT_FIELDs
3523         to PACKED fields of constant size and propagate DECL_PACKED.
3524
3525 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
3526
3527         * decl.c (array_type_has_nonaliased_component): New predicate.
3528         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
3529         set the TYPE_NONALIASED_COMPONENT flag on the type.
3530         <E_Array_Subtype>: Likewise.
3531         * gigi.h (type_for_nonaliased_component_p): Declare.
3532         * utils.c (type_for_nonaliased_component_p): New predicate.
3533         (create_field_decl): Invoke the above predicate to set the
3534         DECL_NONADDRESSABLE_P flag on the field.
3535
3536 2007-09-11  Javier Miranda  <miranda@adacore.com>
3537
3538         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
3539         in library level record type entities if we are generating statically
3540         allocated dispatch tables.
3541
3542         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
3543         importing/exporting the _tag declaration by new code
3544         importing/exporting the dispatch table wrapper. This change allows us
3545         to statically allocate of the TSD.
3546         (Make_DT.Export_DT): New procedure.
3547         (Build_Static_DT): New function.
3548         (Has_DT): New function.
3549
3550         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
3551         True_Constant and Current_Value. Required to statically
3552         allocate the dispatch tables.
3553         (Check_Allocator): Make function iterative instead of recursive.
3554         Also return inner allocator node, when present, so that we do not have
3555         to look for that node again in the caller.
3556
3557 2007-09-11  Jan Hubicka  <jh@suse.cz>
3558
3559         * misc.c (gnat_expand_body): Kill.
3560         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
3561
3562 2007-09-10  Robert Dewar  <dewar@adacore.com>
3563
3564         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
3565         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
3566         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3567         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
3568         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
3569         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
3570         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
3571         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
3572         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
3573         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
3574         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
3575         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
3576         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
3577         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
3578         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
3579         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
3580         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
3581         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
3582         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
3583         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
3584         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
3585         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
3586         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
3587         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
3588         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
3589         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
3590         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
3591         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
3592         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
3593         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
3594         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
3595         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
3596         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
3597         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
3598         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
3599         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
3600         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
3601         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
3602         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
3603         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
3604         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
3605         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
3606         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
3607         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
3608         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
3609         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
3610         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
3611         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
3612         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
3613         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
3614         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
3615         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
3616         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
3617         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
3618         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
3619         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
3620         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
3621         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
3622         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
3623         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
3624         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
3625         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
3626         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
3627         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
3628         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
3629         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
3630         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
3631         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
3632         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
3633         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
3634         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
3635         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
3636         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
3637         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
3638         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
3639         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
3640         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
3641         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
3642         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
3643         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
3644         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
3645         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
3646         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
3647
3648 2007-09-10  Emmanuel Briot  <briot@adacore.com>
3649
3650         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
3651         classes ("[]").
3652
3653 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
3654
3655         * adaint.c (__gnat_translate_vms): new function.
3656
3657 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
3658             Thomas Quinot  <quinot@adacore.com>
3659
3660         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
3661         create an abstract subprogram in the case of 'Input. For 'Output we now
3662         create a real spec/body when the type is abstract, since it can
3663         potentially be called.
3664         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
3665         body for 'Output when the type is abstract (only the creation of the
3666         body for 'Input is excluded when the type is abstract).
3667         (Stream_Operation_OK): Add an additional condition in the return
3668         statement, so that False will be returned for TTS_Stream_Input if the
3669         associated tagged type is an abstract extension. Add comments for
3670         return statement.
3671         (Expand_N_Object_Declaration): For the case of a shared passive
3672         variable, insert init proc call only after the shared variable
3673         procedures have been processed, because the IP call needs to undergo
3674         shared passive variable reference expansion, which requires these
3675         procedures to be available (and elaborated).
3676
3677 2007-09-10  Vincent Celier  <celier@adacore.com>
3678
3679         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
3680         parameter Runtime_Project.
3681
3682 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
3683
3684         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
3685         given a box association, the type of the component is discriminated,
3686         and the value of the discriminant is the discriminant of the enclosing
3687         type, retrieve its value from the aggregate itself, where it must have
3688         been supplied.
3689
3690         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
3691         to remove other spurious ambiguities on arithmetic operations involving
3692         literals and addresses, on systems where Address is a visible integer
3693         type, when the operator is called in functional notation.
3694         (Try_Primitive_Operation): Within an instance, a call in prefixed form
3695         is legal when the types match, even if the operation is currently
3696         hidden.
3697
3698 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
3699
3700         * sem_ch12.adb (Build_Local_Package): A formal package with no
3701         associations is legal if all formals have defaults. It is not
3702         equivalent to a formal declared with a box.
3703
3704 2007-09-10  Sergey Rybin  <rybin@adacore.com>
3705
3706         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
3707
3708 2007-09-10  Sergey Rybin  <rybin@adacore.com>
3709
3710         * gnat_ugn.texi: Add description of the new '-lratio' option
3711         Update 7.3.1 section about availability of the feature.
3712
3713 2007-09-10  Thomas Quinot  <quinot@adacore.com>
3714
3715         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
3716         inserted node.
3717
3718 2007-09-10  Olivier Hainque  <hainque@adacore.com>
3719
3720         * Makefile.in: (mips-irix section): Activate build of libgmem.
3721
3722 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
3723
3724         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
3725         x87 registers.
3726
3727 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
3728
3729         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
3730         a debug renaming declaration specially.
3731
3732 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
3733
3734         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
3735         which a constant renaming is treated as a normal object declaration.
3736         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
3737         the N_Indexed_Component case.
3738         <N_Indexed_Component>: Fall through to above case.
3739         <N_Object_Renaming_Declaration>: Return true for all composite types.
3740
3741 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
3742
3743         * decl.c (make_packable_type): If the new type has been given BLKmode,
3744         try again to get an integral mode for it.
3745
3746 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
3747
3748         Re-apply accidentally reverted change:
3749
3750         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
3751
3752         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
3753         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
3754         and _Unwind_SWord with _sleb128_t.
3755
3756 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3757
3758         * trans.c (convert_with_check): Update call to real_2expN.
3759
3760 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
3761
3762         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
3763         * utils.c (end_subprog_body): Likewise.
3764
3765 2007-09-03  Nick Clifton  <nickc@redhat.com>
3766
3767         * Make-lang.in: Change copyright header to refer to version 3 of
3768         the GNU General Public License and to point readers at the
3769         COPYING3 file and the FSF's license web page.
3770         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
3771         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
3772         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
3773         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
3774         Likewise.
3775
3776 2007-08-31  Vincent Celier  <celier@adacore.com>
3777
3778         PR ada/4720
3779
3780         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
3781         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
3782         (Check_Version_And_Help): New procedure in package Switch to process
3783         switches --version and --help.
3784         Use Check_Version_And_Help in GNAT tools
3785
3786         * make.adb:  Ditto.
3787         (Compile_Sources): Make sure that sources that are "excluded" are not
3788         compiled.
3789         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
3790         project file is used.
3791         (Version_Switch): Remove, moved to Switch
3792         (Help_Switch): Remove, moved to Switch
3793         (Display_Version): Remove, moved to Switch
3794
3795         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
3796         package Switch to process switches --version and --help.
3797         (Display_Version): New procedure
3798
3799         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
3800
3801 2007-08-31  Javier Miranda  <miranda@adacore.com>
3802
3803         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
3804         internal tags.
3805
3806 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
3807
3808         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
3809         (Mark_Non_Null): If the node for which we just generated an access check
3810         is a reference to an *in* parameter and the reference appears in the
3811         declarative part of a subprogram body, mark the node as known non null.
3812
3813 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
3814
3815         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
3816         structure of E_Exception to reflect the new flag.
3817         (Is_Raised, Set_Is_Raised): New inlined routines.
3818         Update the usage of available flag to reflect the addition of Is_Raised.
3819         (Is_Raised, Set_Is_Raised): Bodies of new routines.
3820         (Write_Entity_Flags): Write the status of flag Is_Raised.
3821         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
3822         spurious ambiguities when integer literals appear in the context of an
3823         address type that is a visible integer type.
3824
3825         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
3826         exceptions never being raised.
3827         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
3828         explicitly raised.
3829
3830 2007-08-31  Javier Miranda  <miranda@adacore.com>
3831
3832         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
3833         statement when compiling under restriction No_Exceptions_Proparation.
3834
3835 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
3836
3837         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
3838         initialization aggregate for the type, generate itype references for
3839         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
3840
3841 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
3842
3843         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
3844         library-level package renaming, pass the declaration associated with
3845         the renaming's special debug variable to Qualify_Entity_Names to ensure
3846         that its encoded name is properly qualified.
3847
3848         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
3849         occurring in the list of entities to qualify, and do not attempt to
3850         traverse an entity list in that case. Variables associated with
3851 `       library-level package renamings can now occur in the table.
3852
3853         * exp_dbug.ads: Revise documentation of the encoding for renaming
3854         declarations.
3855
3856 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3857
3858         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
3859         access type points to an unconstrained array.
3860
3861 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
3862
3863         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
3864         conversion.
3865
3866         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
3867         simple redundant qualifications. The check is performed whenever the
3868         expression is a non-overloaded identifier.
3869         (Resolve_Type_Conversion): Enchance the redundant type conversion check
3870         to include loop parameters.
3871         (Valid_Conversion): Avoid generation of spurious error message.
3872
3873 2007-08-31  Bob Duff  <duff@adacore.com>
3874
3875         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
3876         concatenations of string literals into a single literal, in order to
3877         avoid very deep recursion in the front end, which was causing stack
3878         overflow.
3879
3880         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
3881         string, and the right operand is a string literal (the case of "" &
3882         "..."), optimize by avoiding copying the right operand -- just use the
3883         value of the right operand directly.
3884
3885         * stringt.adb (Store_String_Chars): Optimize by growing the
3886         String_Chars table all at once, rather than appending characters one by
3887         one.
3888         (Write_String_Table_Entry): If the string to be printed is very long,
3889         just print the first few characters, followed by the length. Otherwise,
3890         doing "pn(n)" in the debugger can take an extremely long time.
3891
3892         * sem_prag.adb (Process_Interface_Name): Replace loop doing
3893         Store_String_Char with Store_String_Chars.
3894
3895 2007-08-31  Vincent Celier  <celier@adacore.com>
3896
3897         * prj-attr.adb: Add new attribute Excluded_Source_Files
3898
3899         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
3900         Locally_Removed_Files.
3901
3902         * snames.ads, snames.adb: New standard name Excluded_Source_Files
3903
3904 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
3905
3906         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
3907         clauses of subunits, ignore limited_with_clauses that are illegal and
3908         have not been fully analyzed.
3909
3910 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
3911
3912         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
3913         flag, for effiency. It is called when analyzing arithmetic operators
3914         and also for actuals in calls that are universal_integers. The flag is
3915         set for the predefined type address, and for any type or subtype
3916         derived from it.
3917
3918         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
3919         Universal_Integer, when the formal is a descendent of address and the
3920         call appears in user code.
3921         (Analyze_Selected_Component): if the prefix is a private extension, the
3922         tag component is visible.
3923
3924         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
3925         entity flag.
3926
3927 2007-08-31  Robert Dewar  <dewar@adacore.com>
3928
3929         * s-fileio.adb (Open): Normalize file name to lower case in non-case
3930         sensitive file name systems to avoid unexpected mismatch in Vista.
3931
3932 2007-08-31  Vincent Celier  <celier@adacore.com>
3933
3934         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
3935
3936 2007-08-31  Vincent Celier  <celier@adacore.com>
3937
3938         * symbols-vms.adb (Initialize): Read symbol files with continuation
3939         lines
3940         (Finalize): If symbol is long, split the line
3941
3942 2007-08-31  Vincent Celier  <celier@adacore.com>
3943
3944         * fmap.ads: Minor comment updates
3945
3946 2007-08-31  GNAT Script  <nobody@adacore.com>
3947
3948         * Make-lang.in: Makefile automatically updated
3949
3950 2007-08-31  Bob Duff  <duff@adacore.com>
3951
3952         * sinfo.ads: Minor comment fix.
3953
3954 2007-08-31  Thomas Quinot  <quinot@adacore.com>
3955
3956         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
3957         with implementation.
3958         Documentation cleanup only.
3959
3960 2007-08-31  Sergey Rybin  <rybin@adacore.com>
3961
3962         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
3963         gnatpp '--separate-stmt-name' option.
3964         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
3965         option.
3966
3967         * gnat_ugn.texi: Add description for the new gnatpp
3968         '--separate-stmt-name' and '--use-on-new-line' options.
3969
3970 2007-08-31  Ben Elliston  <bje@au.ibm.com>
3971
3972         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
3973         when compiling for powerpc64-*-linux.
3974         * system-linux-ppc64.ads: New file.
3975
3976 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
3977
3978         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
3979         NetBSD.
3980
3981 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3982
3983         * misc.c (gnat_type_max_size): Constify.
3984
3985 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
3986
3987         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
3988         associated with Standard_Debug_Renaming_Type, to be used as the type of
3989         the special variables whose names provide debugger encodings for
3990         renaming declarations.
3991
3992         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
3993         (Set_Debug_Renaming_Link): Change to set Node25.
3994         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
3995         (Write_Field25_Name): Add case for E_Variable to output
3996         "Debug_Renaming_Link".
3997         (Write_Field23_Name): Correct the output string for "Limited_View".
3998
3999         * exp_dbug.adb: Add with and use of Tbuild.
4000         (Debug_Renaming_Declaration): Replace creation of an enumeration type
4001         and literal with creation of a variable of type
4002         Standard_Debug_Renaming_Type whose name encodes both the renamed object
4003         and the entity of the renaming declaration.
4004         (Qualify_Entity_Name): Add the delayed qualification of the entity name
4005         part of the name of a variable that has a Debug_Renaming_Link.
4006
4007         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
4008         special type to be associated with variables that provide debugger
4009         encodings for renaming declarations.
4010
4011 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
4012             Ed Schonberg  <schonberg@adacore.com>
4013             Javier Miranda  <miranda@adacore.com>
4014
4015         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
4016         ancestor part given by an aggregate to test for an unchecked conversion,
4017         since this can occur in some cases when the ancestor part is a function
4018         call, and we don't want to fall into the recursive call to this
4019         procedure in that case.
4020
4021         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
4022         stream attributes on limited types to account for user-specified
4023         attributes as well as whether Input (resp. Output) becomes available
4024         due to Read (resp. Write) being available for the type. Change Boolean
4025         variable to the more accurate name
4026         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
4027         double-"not" predicate at beginning of return statement to more
4028         understandable form.
4029
4030         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
4031         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
4032         in a block statement and use that as the first statement of the
4033         expanded return rather than incorrectly using the handled sequence as
4034         the first statement.
4035
4036         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
4037         operation, generate an explicit freeze node for it rather than
4038         generating extra formals, to ensure that gigi has the proper order of
4039         elaboration for anonymous subtypes in the signature of the subprograms.
4040         (Build_In_Place_Formal): Move assertion to beginning of loop.
4041         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
4042         applied to a function call (occurs for some cases of 'Input).
4043         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
4044         applied to a function call (occurs for some cases of 'Input).
4045
4046         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
4047         2005, generate an extended return statement enclosing the result object
4048         and 'Read call.
4049
4050         * freeze.adb (Freeze_Record_Type): Extend the current management of
4051         components that are access type with an allocator as default value: add
4052         missing support to the use of qualified expressions of the
4053         allocator (which also cause freezing of the designated type!)
4054         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
4055         dispatching operation, since extra formals may be needed by calls to
4056         build-in-place functions (such as stream 'Input).
4057
4058         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
4059         formals for 'Constrained and accessibility level in the case of a
4060         predefined dispatching operation.
4061
4062         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
4063         point, no need to find the parent node.
4064
4065 2007-08-16  Javier Miranda  <miranda@adacore.com>
4066
4067         * exp_attr.adb (Attribute_Priority): Add missing support for entries
4068         and entry barriers.
4069
4070 2007-08-16  Javier Miranda  <miranda@adacore.com>
4071
4072         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
4073         is not really required and can introduce regression with the debugger.
4074         The original problem is fixed with the patch written for checks.adb.
4075
4076 2007-08-16  Thomas Quinot  <quinot@adacore.com>
4077
4078         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
4079         Range_Check on Allocated_Table.
4080
4081 2007-08-16  Vincent Celier  <celier@adacore.com>
4082
4083         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
4084         Including_Non_Switch set to False.
4085         (Gnatmake): For the compiler, call Test_If_Relative_Path with
4086         Including_Non_Switch set to False.
4087
4088         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
4089         parameter Including_Non_Switch, defaulted to True. When
4090         Including_Non_Switch is False, options that are not switches and
4091         appear as relative path are not converted to absolute paths.
4092
4093 2007-08-16  Nicolas Roche  <roche@adacore.com>
4094
4095         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
4096         makefiles
4097
4098         * Make-lang.in: Update dependencies
4099
4100 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
4101
4102         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
4103         currently inspected is a selected component, retrieve the entity of
4104         its selector.
4105         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
4106         from the immediate ancestor of Main_Unit_Entity.
4107         (Install_Limited_Withed_Unit): Do not install the limited view of
4108         package P if P is reachable through an ancestor chain from package C
4109         and C also has a with clause for P in its body.
4110         (Has_Limited_With_Clause): New routine.
4111         (Has_With_Clause): New routine.
4112
4113 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
4114
4115         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
4116         generic for an enclosing instance is a global reference, even though
4117         its scope is the enclosing instance.
4118
4119 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
4120             Javier Miranda  <miranda@adacore.com>
4121
4122         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
4123         initialize a limited object.
4124         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
4125         13/2 and 14/2.
4126         Make sure Has_Complex_Representation is inherited by derived type.
4127
4128 2007-08-16  Robert Dewar  <dewar@adacore.com>
4129
4130         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
4131         exception case
4132
4133 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
4134
4135         * sem_disp.adb (Check_Dispatching_Operation): If the operation
4136         implements an operation inherited from a progenitor interface, verify
4137         that they are subtype-conformant.
4138
4139 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
4140             Bob Duff  <duff@adacore.com>
4141             Nicolas Setton  <setton@adacore.com>
4142
4143         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
4144         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
4145         the statement which is being resolved comes from a predefined library
4146         unit, all non-predefined library interpretations are skipped.
4147         (Resolve_Op_Concat): If string concatenation was folded in the parser,
4148         but the "&" is user defined, give an error, because the folding would
4149         be wrong.
4150
4151         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
4152         the parser has folded a long sequence of concatenations of string
4153         literals.
4154
4155         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
4156         and "JMP_BUF" variables as artificial.
4157         (N_String_Literal): Do not use alloca for very long string literals. Use
4158         xmalloc/free instead. Otherwise the stack might overflow.
4159
4160         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
4161         compiler.
4162
4163 2007-08-16  Vincent Celier  <celier@adacore.com>
4164
4165         * vms_conv.adb (Process_Argument): Ensure that project related options
4166         are not put in the -cargs section when using GNAT COMPILE.
4167
4168 2007-08-16  Robert Dewar  <dewar@adacore.com>
4169
4170         * gnat_ugn.texi: Add note on preprocessing (output file not written)
4171
4172 2007-08-16  Thomas Quinot  <quinot@adacore.com>
4173
4174         * a-tags.adb: Minor reformatting.
4175
4176 2007-08-16  Bob Duff  <duff@adacore.com>
4177
4178         * sem_type.ads, sem_ch4.adb: Minor reformatting.
4179
4180 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4181
4182         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
4183         s-osinte-interix.ads, system-interix.ads: Removed.
4184
4185 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
4186
4187         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
4188         calls to Check_Within_Time_Bounds.
4189         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
4190         (Difference): Account for possible rounding of the resulting difference
4191
4192 2007-08-14  Robert Dewar  <dewar@adacore.com>
4193
4194         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
4195         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
4196         s-osinte-solaris.adb, s-osinte-solaris.ads,
4197         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
4198
4199         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
4200         switch -gnatyS. Enable -gnatyS in GNAT style check mode
4201
4202 2007-08-14  Robert Dewar  <dewar@adacore.com>
4203             Ed Schonberg  <schonberg@adacore.com>
4204
4205         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
4206         Suppress unmodified in-out parameter warning in some cases
4207         This patch is a also fairly significant change to the way suppressible
4208         checks are handled.
4209
4210         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
4211         needed for access to concurrent record types generated by the expander.
4212         (Generate_Range_Check): When generating a temporary to capture the
4213         value of a conversion that requires a range check, set the type of the
4214         temporary before rewriting the node, so that the type is always
4215         properly placed for back-end use.
4216         (Apply_Float_Conversion_Check): Handle case where the conversion is
4217         truncating.
4218         (Get_Discriminal): Code reformatting. Climb the scope stack looking
4219         for a protected type in order to examine its discriminants.
4220
4221 2007-08-14  Robert Dewar  <dewar@adacore.com>
4222             Gary Dismukes  <dismukes@adacore.com>
4223             Ed Schonberg  <schonberg@adacore.com>
4224             Thomas Quinot  <quinot@adacore.com>
4225
4226         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
4227         a-stwisu.adb, a-strsup.adb: Fix warnings for range
4228         tests optimized out.
4229
4230         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
4231         (Get_Allocator_Final_List): For the case of an anonymous access type
4232         that has a specified Associated_Final_Chain, do not go up to the
4233         enclosing scope.
4234         (Expand_N_Type_Conversion): Test for the case of renamings of access
4235         parameters when deciding whether to apply a run-time accessibility
4236         check.
4237         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
4238         aggregate code before allocator, and ahead of declaration for
4239         temporary, to prevent access before elaboration when the allocator is
4240         an actual for an access parameter.
4241         (Expand_N_Type_Conversion): On an access type conversion involving an
4242         access parameter, do not apply an accessibility check when the
4243         operand's original node was an attribute other than 'Access. We now
4244         create access conversions for the expansion of 'Unchecked_Access and
4245         'Unrestricted_Access in certain cases and clearly accessibility should
4246         not be checked for those.
4247
4248         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
4249         includes a type conversion of a packed component that has been expanded,
4250         recover the original expression for the object, and use this expression
4251         in the post-call assignment statement, so that the assignment is made
4252         to the object and not to a back-end temporary.
4253         (Freeze_Subprogram): In case of primitives of tagged types not defined
4254         at the library level force generation of code to register the primitive
4255         in the dispatch table. In addition some code reorganization has been
4256         done to leave the implementation clear.
4257         (Expand_Call): When expanding an inherited implicit conversion,
4258         preserve the type of the inherited function after the intrinsic
4259         operation has been expanded.
4260
4261         * exp_ch2.ads, exp_ch2.adb
4262         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
4263         of an entry formal appearing in an assignment statement does not assign
4264         to the formal.
4265         (Expand_Current_Value): Instead of calling a routine to determine
4266         whether the prefix of an attribute reference should be optimized or
4267         not, prevent the optimization of such prefixes all together.
4268
4269         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
4270         component whose prefix is known to be of an access type is an implicit
4271         dereference and does not assign to the prefix.
4272
4273 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4274             Robert Dewar  <dewar@adacore.com>
4275
4276         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
4277         itype is visited, make an entry into table to link associated node and
4278         new itype.
4279         Add comments and correct harmless error in Build_NCT_Hash_Tables
4280         (Array_Aggr_Subtype): Associate each itype created for an index type to
4281         the corresponding range construct, and not to the aggregate itself. to
4282         maintain a one-to-one correspondence between itype and its associated
4283         node, to prevent errors when complex expression is copied.
4284         Fix mishandling of multiple levels of parens
4285
4286         * sem_aggr.adb: Create a limited view of an incomplete type, to make
4287         treatment of limited views uniform for all visible declarations in a
4288         limited_withed package.
4289         (New_Copy_Tree): If hash table is being used and itype is visited,
4290         make an entry into table to link associated node and new itype.
4291         (Resolve_Record_Aggregate): Do not add an others box association for a
4292         discriminated record component that has only discriminants, when there
4293         is a box association for the component itself.
4294
4295         * par-ch4.adb: Fix mishandling of multiple levels of parens
4296
4297 2007-08-14  Robert Dewar  <dewar@adacore.com>
4298
4299         * comperr.adb: Fix problem with suppressing warning messages from gigi
4300
4301         * erroutc.ads, erroutc.adb, errout.ads, 
4302         errout.adb (Write_Eol): Remove trailing spaces before writing the line
4303         (Write_Eol_Keep_Blanks): New procedure to write a line, including
4304         possible trailing spaces.
4305         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
4306         Fix problem with suppressing warning messages from back end
4307         Improve handling of deleted warnings
4308
4309         * gnat1drv.adb: 
4310         Fix problem with suppressing warning messages from back end
4311         Handle setting of Static_Dispatch_Tables flag.
4312
4313         * prepcomp.adb: 
4314         Fix problem with suppressing warning messages from back end
4315
4316         * exp_intr.adb: Improve handling of deleted warnings
4317
4318 2007-08-14  Robert Dewar  <dewar@adacore.com>
4319
4320         * debug.adb: Improve -gnatdI to cover all cases of serialization
4321         Add documentation of dZ, d.t
4322
4323         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
4324         serialization.
4325         (Sprint_Node_Actual): Generate new output associated with implicit
4326         importation and implicit exportation of object declarations.
4327
4328 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4329             Robert Dewar  <dewar@adacore.com>
4330             Javier Miranda  <miranda@adacore.com>
4331             Gary Dismukes  <dismukes@adacore.com>
4332
4333         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
4334         to make treatment of limited views uniform for all visible declarations
4335         in a limited_withed package.
4336         Improve warnings for in out parameters
4337         (Set_Related_Interaface/Related_Interface): Allow the use of this
4338         attribute with constants.
4339         (Write_Field26_Name): Handle attribute Related_Interface in constants.
4340         Warn on duplicate pragma Preelaborable_Initialialization
4341
4342         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
4343         generation of a freezing node to ensure proper management of null
4344         excluding access types in the backend.
4345         (Create_Extra_Formals): Test base type of the formal when checking for
4346         the need to add an extra accessibility-level formal. Pass the entity E
4347         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
4348         originally being done in a couple of cases), to ensure that the
4349         Extra_Formals list gets set on the entity E when the first entity is
4350         added.
4351         (Conforming_Types): Add missing calls to Base_Type to the code that
4352         handles anonymous access types. This is required to handle the
4353         general case because Process_Formals builds internal subtype entities
4354         to handle null-excluding access types.
4355         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
4356         functions that need it, even when not marked Requires_Overriding.
4357         Improve warnings for in out parameters
4358         (Analyze_Function_Return): Warn for disallowed null return
4359         Warn on return from procedure with unset out parameter
4360         Ensure consistent use of # in error messages
4361         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
4362         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
4363         the implicit conversion of the expression done for anonymous access
4364         types. This is required to generate the code of the null excluding
4365         check (if required).
4366
4367         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
4368         A formal parameter is never publicly referenceable outside of its body.
4369         (Check_References): For an unreferenced formal parameter in an accept
4370         statement, use the same warning circuitry as for subprogram formal
4371         parameters.
4372         (Warn_On_Unreferenced_Entity): New subprogram, taken from
4373         Output_Unreferenced_Messages, containing the part of that routine that
4374         is now reused for entry formals as described above.
4375         (Goto_Spec_Entity): New function
4376         (Check_References): Do not give IN OUT warning for dispatching operation
4377         Improve warnings for in out parameters
4378         (Test_Ref): Check that the entity is not undefinite before calling
4379         Scope_Within, in order to avoid infinite loops.
4380         Warn on return from procedure with unset out parameter
4381         Improved warnings for unused variables
4382
4383 2007-08-14  Robert Dewar  <dewar@adacore.com>
4384             Javier Miranda  <miranda@adacore.com>
4385             Gary Dismukes  <dismukes@adacore.com>
4386
4387         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
4388         (Expand_N_Attribute_Reference): Further unify the handling of the
4389         three forms of access attributes, using common code now for all three
4390         cases. Add a test for the case of applying an access attribute to
4391         an explicit dereference when the context is an access-to-interface
4392         type. In that case we need to apply the conversion to the prefix
4393         of the explicit dereference rather than the prefix of the attribute.
4394         (Attribute_Version, UET_Address): Set entity as internal to ensure
4395         proper dg output of implicit importation.
4396         (Expand_Access_To_Type): Removed.
4397         (Expand_N_Attribute_Reference): Merge the code from the three cases
4398         of access attributes, since the processing is largely identical for
4399         these cases. The substantive fix here is to process the case of a
4400         type name prefix (current instance case) before handling the case
4401         of interface prefixes.
4402
4403 2007-08-14  Thomas Quinot  <quinot@adacore.com>
4404             Ed Schonberg  <schonberg@adacore.com>
4405             Javier Miranda  <miranda@adacore.com>
4406             Robert Dewar  <dewar@adacore.com>
4407
4408         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
4409         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
4410         type that is an anonymous access to controlled object, establish
4411         an associated finalization chain to avoid corrupting the global
4412         finalization list when a dynamically allocated object designated
4413         by such a component is deallocated.
4414         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
4415         functions that need it, even when not marked Requires_Overriding.
4416         (Initialize_Tag): Replace call to has_discriminants by call to
4417         Is_Variable_Size_Record in the circuitry that handles the
4418         initialization of secondary tags.
4419         (Is_Variable_Size_Record): New implementation.
4420         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
4421         Suppress_Initialization pragma for a derived type.
4422         (Is_Variable_Size_Record): New subprogram.
4423         (Build_Offset_To_Top_Functions): New implementation that simplifies the
4424         initial version of this routine and also fixes problems causing
4425         incomplete initialization of the table of interfaces.
4426         (Build_Init_Procedure): Improve the generation of code to initialize the
4427         the tag components of secondary dispatch tables.
4428         (Init_Secondary_Tags): New implementation that simplifies the previous
4429         version of this routine.
4430         (Make_DT): Add parameter to indicate when type has been frozen by an
4431         object declaration, for diagnostic purposes.
4432         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
4433         diagnose attemps to freeze a subprogram when some untagged type of its
4434         profile is a private type whose full view has not been analyzed yet.
4435         (Freeze_Array_Type): Generate init proc for packed array if either
4436         Initialize or Normalize_Scalars is set.
4437         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
4438         constructing the new profile, copy the null_exclusion indicator for each
4439         parameter, to ensure full conformance of the new body with the spec.
4440
4441         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
4442         Create wrappers for constructor functions that need it, even when not
4443         marked Requires_Overriding.
4444         (Covers): Handle properly designated types of anonymous access types,
4445         whose non-limited views are themselves incomplete types.
4446         (Add_Entry): Use an entity to store the abstract operation which hides
4447         an interpretation.
4448         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
4449         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
4450         initialization aggregate.
4451         (Function_Interp_May_Be_Hidden): Rename to
4452         Function_Interp_Has_Abstract_Op.
4453         (Has_Compatible_Type): Remove machinery that skips interpretations if
4454         they are labeled as potentially hidden by an abstract operator.
4455         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
4456         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
4457         (Write_Overloads): Output the abstract operator if present.
4458         (Add_Entry): Before inserting a new entry into the interpretation table
4459         for a node, determine whether the entry will be disabled by an abstract
4460         operator.
4461         (Binary_Op_Interp_May_Be_Hidden): New routine.
4462         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
4463         aggregate.
4464         (Function_Interp_May_Be_Hidden): New routine.
4465         (Has_Compatible_Type): Do not consider interpretations hidden by
4466         abstract operators when trying to determine whether two types are
4467         compatible.
4468         (Has_Hidden_Interp): New routine.
4469         (Set_May_Be_Hidden_Interp): New routine.
4470         (Write_Overloads): Write the status of flag May_Be_Hidden.
4471
4472 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4473             Javier Miranda  <miranda@adacore.com>
4474
4475         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
4476         types declared in the declarative part of a nested package body or in
4477         the proper body of a stub.
4478         (Set_All_DT_Position): Add missing check to avoid wrong assignation
4479         of the same dispatch table slot to renamed primitives.
4480         (Make_Select_Specific_Data_Table): Handle private types.
4481         (Tagged_Kind): Handle private types.
4482         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
4483         output of implicit importation and exportation.
4484         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
4485         first formal of the thunk is always associated with the controlling
4486         type. In addition perform the following code cleanup: remove formal
4487         Thunk_Alias which is no longer required, cleanup evaluation of the
4488         the controlling type, and update the documentation.
4489         Replace occurrence of Default_Prim_Op_Count by
4490         Max_Predef_Prims. Addition of compile-time check to verify
4491         that the value of Max_Predef_Prims is correct.
4492         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
4493         (Make_DT): Add parameter to indicate when type has been frozen by an
4494         object declaration, for diagnostic purposes.
4495         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
4496         construction of statically allocated dispatch tables.
4497         (Make_DT): In case of library-level tagged types export the declaration
4498         of the primary tag. Remove generation of tags (now done by Make_Tags).
4499         Additional modifications to handle non-static generation of dispatch
4500         tables. Take care of building tables for asynchronous interface types
4501         (Make_Tags): New subprogram that generates the entities associated with
4502         the primary and secondary tags of Typ and fills the contents of Access_
4503         Disp_Table. In case of library-level tagged types imports the forward
4504         declaration of the primary tag that will be declared later by Make_DT.
4505         (Expand_Interface_Conversion): In case of access types to interfaces
4506         replace an itype declaration by an explicit type declaration to avoid
4507         problems associated with the scope of such itype in transient blocks.
4508
4509 2007-08-14  Robert Dewar  <dewar@adacore.com>
4510             Ed Schonberg  <schonberg@adacore.com>
4511             Javier Miranda  <miranda@adacore.com>
4512
4513         * exp_util.ads, exp_util.adb: 
4514         This patch replaces a number of occurrences of explicit tests for N_Null
4515         with calls to Known_Null. This improves tracking of null values, since
4516         Known_Null also catches null constants, and variables currently known to
4517         be null, so we get better tracking.
4518         (Ensure_Defined): create an itype reference only in the scope of the
4519         itype.
4520         (Side_Effect_Free): A selected component of an access type that
4521         denotes a component with a rep clause must be treated as not
4522         side-effect free, because if it is part of a linked structure its
4523         value may be affected by a renaming.
4524         (Expand_Subtype_From_Expr): For limited objects initialized with build
4525         in place function calls, do nothing; otherwise we prematurely introduce
4526         an N_Reference node in the expression initializing the object, which
4527         breaks the circuitry that detects and adds the additional arguments to
4528         the called function. Bug found working in the new patch for statically
4529         allocated dispatch tables.
4530         (Is_Library_Level_Tagged_Type): New subprogram.
4531         (Remove_Side_Effects): If the expression of an elementary type is an
4532         operator treat as a function call.
4533         (Make_Literal_Range): If the index type of the array is not integer, use
4534         attributes properly to compute the constraint on the resulting aggregate
4535         which is a string.
4536
4537         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
4538         class-wide type whose base type is an incomplete private type, leave
4539         class-wide type unfrozen so that freeze nodes can be generated
4540         properly at a later point.
4541         (Freeze_Entity, array case): Handle case of pragma Pack and component
4542         size attributre clause for same array.
4543
4544 2007-08-14  Vincent Celier  <celier@adacore.com>
4545
4546         * prj.ads, prj.adb: Update Project Manager to new attribute names for
4547         gprbuild.
4548         Allow all valid declarations in configuration project files
4549         (Reset): Initialize all tables and hash tables in the project tree data
4550         Major update of the Project Manager and of the project aware tools,
4551         including gprmake, so that the same sources in the GNAT repository
4552         can be used by gprbuild.
4553         (Slash_Id): Change type to be Path_Name_Type
4554         (Slash): Return a Path_Name_Type instead of a File_Name_Type
4555
4556         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
4557         gprbuild.
4558         Update Project Manager to new attribute names for ghprbuild
4559         Allow all valid declarations in configuration project files
4560         Major update of the Project Manager and of the project aware tools,
4561         including gprmake, so that the same sources in the GNAT repository
4562         can be used by gprbuild.
4563
4564         * prj-com.ads: 
4565         Major update of the Project Manager and of the project aware tools,
4566         including gprmake, so that the same sources in the GNAT repository
4567         can be used by gprbuild.
4568
4569         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
4570         insensitive flag for attributes with optional index.
4571         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
4572         array attribute, put the index in lower case.
4573         Update Project Manager to new attribute names for ghprbuild
4574         Allow all valid declarations in configuration project files
4575         Major update of the Project Manager and of the project aware tools,
4576         including gprmake, so that the same sources in the GNAT repository
4577         can be used by gprbuild.
4578
4579         * prj-env.ads, prj-env.adb: 
4580         Major update of the Project Manager and of the project aware tools,
4581         including gprmake, so that the same sources in the GNAT repository
4582         can be used by gprbuild.
4583         (Get_Reference): Change type of parameter Path to Path_Name_Type
4584
4585         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
4586         removing '-' from the path to start with the first character of the
4587         next directory.
4588         Major update of the Project Manager and of the project aware tools,
4589         including gprmake, so that the same sources in the GNAT repository
4590         can be used by gprbuild.
4591         Major update of the Project Manager and of the project aware tools,
4592         including gprmake, so that the same sources in the GNAT repository
4593         can be used by gprbuild.
4594
4595         * prj-nmsc.ads, prj-nmsc.adb: 
4596         Update Project Manager to new attribute names for ghprbuild
4597         Allow all valid declarations in configuration project files
4598         (Search_Directories): Detect subunits that are specified with an
4599         attribute Body in package Naming. Do not replace a source/unit in the
4600         same project when the order of the source dirs are known. Detect
4601         duplicate sources/units in the same project when the order of the
4602         source dirs are not known.
4603         (Check_Ada_Name): Allow all identifiers that are not reserved words
4604         in Ada 95.
4605         Major update of the Project Manager and of the project aware tools,
4606         including gprmake, so that the same sources in the GNAT repository
4607         can be used by gprbuild.
4608         (Look_For_Sources): If the list of sources is empty, set the object
4609         directory of non extending project to nil.
4610         Change type of path name variables to be Path_Name_Type
4611         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
4612         otherwise creating missing directories will fail.
4613
4614         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
4615         prj-part.ads, prj-part.adb:
4616         Major update of the Project Manager and of the project aware tools,
4617         including gprmake, so that the same sources in the GNAT repository
4618         can be used by gprbuild.
4619
4620         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
4621         insensitive flag for attributes with optional index.
4622         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
4623         array attribute, put the index in lower case.
4624         (Parse_Variable_Reference): Allow the current project name to be used in
4625         the prefix of an attribute reference.
4626
4627         * prj-util.ads, prj-util.adb
4628         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
4629         defaulted to False. When True, always check against indexes in lower
4630         case.
4631
4632         * snames.ads, snames.h, snames.adb: 
4633         Update Project Manager to new attribute names for gprbuild
4634         Allow all valid declarations in configuration project files
4635
4636 2007-08-14  Robert Dewar  <dewar@adacore.com>
4637             Ed Schonberg  <schonberg@adacore.com>
4638
4639         * opt.ads: Warning for non-local exception propagation now off by
4640         default
4641         New switch -gnatI to disable representation clauses
4642         Implement new pragma Implicit_Packing
4643
4644         * usage.adb: 
4645         Warning for non-local exception propagation now off by default
4646         Add warning for unchecked conversion of pointers wi different
4647         conventions.
4648         New switch -gnatI to disable representation clauses
4649
4650         * usage.adb: new switch -gnatyS
4651
4652         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
4653         note that aggregates of anonymous array types are not flagged.
4654         -gnatwc now includes membership tests optimized away
4655         -gnatw.x warnings are now off by default
4656         Added conditional compilation Appendix
4657         Add documentation of -gnatI
4658         Add documentation for new -gnatyS style check
4659         Update documentation about SAL and auto-init on Windows.
4660
4661         * gnat_rm.texi: 
4662         Add documentation for pragma Check_Name and 'Enabled attribute
4663         Document that Eliminate on dispatching operation is ignored
4664         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
4665         Document pragma Main
4666         Document pragma Implicit_Packing
4667
4668         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
4669         different conventions
4670         New switch -gnatI to disable representation clauses
4671
4672         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
4673         recognized, report the invalid characters including "-gnat" instead of
4674         just the first character in the switch.
4675         New switch -gnatI to disable representation clauses
4676         Set Warn_On_Object_Renames_Function true for -gnatg
4677
4678         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
4679         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
4680         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
4681         to switch -aP (add directory to project search dir).
4682
4683         * par-prag.adb: Implement new pragma Implicit_Packing
4684
4685         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
4686         type as having a non-standard representation, to force expansion on
4687         conversion to related types.
4688         (Analyze_Pragma): Warn on misspelled pragma
4689         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
4690         Ensure consistent use of # in error messages
4691         Implement pragma Implicit_Packing
4692
4693 2007-08-14  Olivier Hainque  <hainque@adacore.com>
4694             Eric Botcazou  <ebotcazou@adacore.com>
4695
4696         * targtyps.c (get_target_maximum_default_alignment): New function.
4697         Maximum alignment
4698         that the compiler might choose by default for a type or object.
4699         (get_target_default_allocator_alignment): New function. Alignment known
4700         to be honored by the target default allocator.
4701         (get_target_maximum_allowed_alignment): New function. Maximum alignment
4702         we might accept for any type or object on the target.
4703         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
4704
4705         * gigi.h (get_target_maximum_default_alignment): Declare new function.
4706         (get_target_default_allocator_alignment): Likewise.
4707         (get_target_maximum_allowed_alignment): Likewise.
4708
4709         PR ada/19037
4710         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
4711         result of a function call, first try to use a stabilized reference for
4712         a constant renaming too.
4713         (validate_alignment): Use target_maximum_allowed_alignment instead of
4714         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
4715         (gnat_to_gnu_entity): Use common nodes directly.
4716         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
4717         alignment and size for the object.
4718         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
4719         and N_Procedure_Call_Statement.
4720         (takes_address): Rename to lvalue_required_p, add third parameter
4721         'aliased' and adjust recursive calls.
4722         <N_Indexed_Component>: Update 'aliased' from the array type.
4723         <N_Selected_Component>: New case.
4724         <N_Object_Renaming_Declaration>: New Likewise.
4725         (Identifier_to_gnu): Adjust for above changes.
4726         (maybe_stabilize_reference) <CONST_DECL>: New case.
4727
4728         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
4729         between type variants.
4730         (build_simple_component_ref): Likewise.
4731         (build_call_alloc_dealloc): Use target_default_allocator_alignment
4732         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
4733         aligning type circuitry for allocations from the default storage pool.
4734         (build_allocator): Likewise.
4735         (build_simple_component_ref): Manually fold the reference for a
4736         constructor if the record type contains a template.
4737
4738         * utils.c (value_zerop): Delete.
4739         (gnat_init_decl_processing): Emit debug info for common types.
4740         (rest_of_record_type_compilation): If a union contains a field
4741         with a non-constant qualifier, treat it as variable-sized.
4742         (finish_record_type): Give the stub TYPE_DECL a name.
4743         (rest_of_record_type_compilation): Likewise.
4744         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
4745         types are equivalent array types.
4746         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
4747         even if the type is not passed by reference.
4748         (static_ctors, static_dtors): Delete.
4749         (end_subprog_body): Do not record constructors and destructors.
4750         (build_global_cdtor): Delete.
4751         (gnat_write_global_declarations): Do not call build_global_cdtor.
4752
4753         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
4754         -fRTS=rtp is specified.
4755         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
4756         specified.
4757
4758         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
4759         of the personality function with SJLJ exceptions.
4760
4761         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
4762         the name of the personality function with SJLJ exceptions.
4763
4764 2007-08-14  Robert Dewar  <dewar@adacore.com>
4765             Ed Schonberg  <schonberg@adacore.com>
4766
4767         * par.ads, par.adb: Improve handling of extra right parens.
4768         (Par): Remove flag From_Limited_With_Clause.
4769
4770         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
4771         Improve handling of extra right parens.
4772
4773 2007-08-14  Robert Dewar  <dewar@adacore.com>
4774
4775         * par-tchk.adb (TF_Semicolon): Improve error recovery
4776
4777 2007-08-14  Robert Dewar  <dewar@adacore.com>
4778             Ed Schonberg  <schonberg@adacore.com>
4779
4780         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
4781         enumeration type, mark all literals as referenced.
4782         (Eval_Attribute, case 'Image): If the argument is an enumeration
4783         literal and names are available, constant-fold but mark nevertheless as
4784         non-static.
4785         Clean up function names.
4786         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
4787         comment.
4788         (Requires_Simple_Name_Prefix): Removed.
4789
4790 2007-08-14  Robert Dewar  <dewar@adacore.com>
4791             Ed Schonberg  <schonberg@adacore.com>
4792
4793         * sem_ch11.adb: Improved warnings for unused variables
4794
4795         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
4796         is a synchronized interface, the derived type is limited.
4797         (Analyze_Object_Declaration): Mark the potential coextensions in the
4798         definition and expression of an object declaration node.
4799         (Build_Derived_Type): For the completion of a private type declaration
4800         with a derived type declaration, chain the parent type's representation
4801         items to the last representation item of the derived type (not the
4802         first one) if they are not present already.
4803         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
4804         object declaration of forward references to tags.
4805         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
4806         subprogram types can appear as access discriminants of synchronized
4807         types.
4808         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
4809         given in prefixed form as a selected component.
4810         (Process_Discriminants): If not all discriminants have defaults, place
4811         error message on a default that is present.
4812         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
4813         extend a synchronized tagged type.
4814         Improved warnings for unused variables
4815         (Is_Visible_Component): Fix a visibility hole on a component inherited
4816         by a private extension when parent is itself declared as a private
4817         extension, and the derivation is in a child unit.
4818         (Find_Hidden_Interface): Move spec from the package body.
4819
4820 2007-08-14  Robert Dewar  <dewar@adacore.com>
4821             Ed Schonberg  <schonberg@adacore.com>
4822
4823         * sem_ch5.adb: Improve warnings on redundant assignments
4824
4825         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
4826         parameter
4827         (Is_Synchronized_Tagged_Type): New subprogram that returns true
4828         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
4829         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
4830         is set to False. Improves handling of Known_[Not_]Null.
4831         (Wrong_Type): Special case address arithmetic attempt
4832         (Collect_Abstract_Interfaces): Add new formal to allow collecting
4833         abstract interfaces just using the partial view of private types.
4834         (Has_Abstract_Interfaces): Add new formal to allow checking types
4835         covering interfaces using the partial view of private types.
4836         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
4837         component still needs to be defined in this case, but is never
4838         initialized as VMs are using other dispatching mechanisms.
4839         (Abstract_Interface_List): For a protected type, use base type to get
4840         proper declaration.
4841         Improve warnings on redundant assignments
4842         (Is_Variable): Handle properly an implicit dereference of a prefixed
4843         function call.
4844         (Build_Actual_Subtype): If this is an actual subtype for an
4845         unconstrained formal parameter, use the sloc of the body for the new
4846         declaration, to prevent anomalises in the debugger.
4847
4848 2007-08-14  Robert Dewar  <dewar@adacore.com>
4849
4850         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
4851         dispatching operation
4852
4853 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4854             Gary Dismukes  <dismukes@adacore.com>
4855
4856         * exp_aggr.ads, 
4857         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
4858         expanded aggregate code before allocator, and ahead of declaration for
4859         temporary, to prevent access before elaboration when the allocator is
4860         an actual for an access parameter.
4861         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
4862         the TSD and the table of interfaces.
4863         (Convert_To_Assignments): Augment the test for delaying aggregate
4864         expansion for limited return statements to include the case of extended
4865         returns, to prevent creation of an unwanted transient scope.
4866         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
4867         (Expand_Array_Aggregate): Handle aggregates associated with
4868         statically allocated dispatch tables.
4869         (Expand_Record_Aggregate): Handle aggregates associated with
4870         statically allocated dispatch tables.
4871         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
4872         of anonymous access type.
4873
4874 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4875
4876         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
4877         is a variable that renames a slice, use the variable itself in the
4878         expannsion when the renamed expression itself may be modified between
4879         the declaration of the renaming and the array assignment.
4880
4881 2007-08-14  Jerome Guitton  <guitton@adacore.com>
4882
4883         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
4884         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
4885         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
4886         New functions; dummy implementations.
4887
4888         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
4889         functions, used to implement the multi-tasks mode routines on VxWorks.
4890
4891         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
4892         New functions, thin
4893         binding to the VxWorks routines which have changed between VxWorks 5
4894         and 6.
4895         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
4896         which are not callable from a RTP.
4897
4898         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
4899         implemented for the multi-tasks mode on VxWorks 5 and 6.
4900
4901         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
4902
4903         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
4904         functions.
4905
4906 2007-08-14  Vincent Celier  <celier@adacore.com>
4907
4908         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
4909         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
4910         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
4911         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
4912         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
4913         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
4914         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
4915         procedure.
4916         (Major_Id_Name): New function.
4917         mlib-tgt.ads/mlib.tgt.adb:
4918         (Library_Major_Minor_Id_Supported): New function, default returns True
4919         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
4920         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
4921         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
4922         Implementation of Library_Major_Minor_Id_Supported returns False
4923         clean.adb:
4924         (Clean_Library_Directory): If major/minor ids are supported, clean all
4925         library files.
4926         Major update of the Project Manager and of the project aware tools,
4927         including gprmake, so that the same sources in the GNAT repository
4928         can be used by gprbuild.
4929
4930 2007-08-14  Olivier Hainque  <hainque@adacore.com>
4931
4932         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
4933         (GCC_ZCX_Support): Switch to True.
4934         
4935         * s-intman-solaris.adb (Notify_Exception): Call
4936         Adjust_Context_For_Raise before raising, as expected for signal
4937         handlers in general.
4938         
4939         * s-intman-posix.adb (Notify_Exception): Remove declaration of
4940         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
4941         to other implementation bodies.
4942         
4943         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
4944         be visible by multiple implementation bodies.
4945         
4946         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
4947         only for conditions coming from hardware.
4948         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
4949         adjustments to signal context prior to exception raise from signal
4950         handler.
4951         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
4952         mode.
4953         Solaris section: (__gnat_adjust_context_for_raise): New function.
4954         Implementation of the machine context adjustments to perform prior to
4955         raise from a signal handler. Version for both sparc and x86.
4956         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
4957         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
4958         prior to raising as expected for any handler, before possible nested
4959         faults to make sure all the contexts in a chain have been adjusted by
4960         the time we propagate.
4961
4962 2007-08-14  Pascal Obry  <obry@adacore.com>
4963
4964         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
4965         (SYSTEM_INFO): New record.
4966         (SetThreadIdealProcessor): New imported routine needed for supporting
4967         task_info pragma on Windows.
4968
4969         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
4970         info can be applied to the current host.
4971         (Create_Task): Set the ideal processor if information is present.
4972
4973         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
4974         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
4975
4976 2007-08-14  Olivier Hainque  <hainque@adacore.com>
4977
4978         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
4979         stack size and initial stack pointer value for a given task.
4980         (Enter_Task): Get the stack attributes of the task we are entering and
4981         let the stack checking engine know about them.
4982
4983         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
4984         Let the stack-checking engine know about the initial sp value and stack
4985         size associated with the current task.
4986         (Set_Stack_Info): If a stack base has been notified for the current
4987         task, honor it. Fallback to the previous less accurate method otherwise.
4988
4989         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
4990
4991 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
4992
4993         * sem_ch10.adb: Create a limited view of an incomplete type, to make
4994         treatment of limited views uniform for all visible declarations in a
4995         limited_withed package.
4996         Set flag indicating that a subprogram body for a child unit has a
4997         generated spec.
4998         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
4999         separate declaration, remove the unit name from visibility after
5000         compilation, so that environment is clean for subsequent compilations.
5001         (Install_Limited_Context_Clauses): Do not install a
5002         limited_private_with_clause unless the current unit is a body or a
5003         private child unit.
5004         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
5005         in the same fashion.
5006         (Install_Limited_Withed_Unit): Do not install a limited with clause if
5007         it applies to the declaration of the current package body.
5008         (Remove_Private_With_Clauses): If there is a regular with_clause for
5009         the unit, delete Private_With_Clause from context, to prevent improper
5010         hiding when processing subsequent nested packages and instantiations.
5011
5012 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
5013
5014         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
5015         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
5016         representing absolute path names.
5017         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
5018
5019         * cstreams.c (__gnat_full_name for VxWorks): Use
5020         __gnat_is_absolute_path to detect whether we need to add the current
5021         directory to normalize the path.
5022
5023 2007-08-14  Javier Miranda  <miranda@adacore.com>
5024
5025         * a-tags.ads, 
5026         a-tags.adb (Displace): Associate a message with the raised CE
5027         exception.
5028         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
5029         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
5030         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
5031         spec.
5032         (Default_Prim_Op_Count): Removed.
5033         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
5034         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
5035         Remove pragma Inline_Always.
5036
5037         * rtsfind.ads (Default_Prim_Op_Count): Removed
5038         (Max_Predef_Prims): New entity
5039         (RE_Expanded_Name): Removed
5040         (RE_HT_Link): Removed
5041         (RE_Iface_Tag): Remmoved
5042         (RE_Ifaces_Table): Removed
5043         (RE_Interfaces_Array): Removed
5044         (RE_Interface_Data_Element): Removed
5045         (RE_Nb_Ifaces): Removed
5046         (RE_RC_Offset): Removed
5047         (RE_Static_Offset_To_Top): Removed
5048
5049         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
5050         formal.
5051         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
5052         Prim_Op_Count by Max_Predef_Prims.
5053
5054 2007-08-14  Thomas Quinot  <quinot@adacore.com>
5055             Vincent Celier  <celier@adacore.com>
5056
5057         * binde.adb (Elab_All_Links): Remove unnecessary call to
5058         Generic_Separately_Compiled (if a unit satisfies this predicate, there
5059         won't be an associated Afile).
5060         (Elab_All_Links): Fail if a referenced unit cannot be found
5061
5062         * bindgen.adb: 
5063         Fix comments in bindgen regarding consistency checks done in Bcheck:
5064         the checks are made across units within a partition, not across several
5065         partitions.
5066         Fix generation of C binder file for VxWorks.
5067
5068         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
5069         Generic_May_Lack_ALI, more descriptive of the current use of the
5070         predicate, and update documentation.
5071
5072         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
5073         reorganization and documentation update for the case of predefined
5074         library generics (for which we do not reference an Afile).
5075
5076 2007-08-14  Robert Dewar  <dewar@adacore.com>
5077
5078         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
5079         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
5080         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
5081         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
5082         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
5083         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
5084         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
5085         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
5086         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
5087         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
5088         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
5089         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
5090         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
5091         g-altcon.adb: Minor reformatting
5092
5093         ada-tree.h: Delete empty line.
5094
5095         ali.ads: Minor reformatting
5096         Clarification of comments.
5097         Minor spelling correction
5098
5099         * exp_dbug.adb: Add Warnings Off to suppress new warning
5100
5101         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
5102         formal
5103
5104         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
5105         value
5106
5107         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
5108
5109         * a-textio.ads: Reorder the standard input/output/error declarations
5110         for consistency.
5111
5112         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
5113
5114         * par-ch2.adb: Recognize RM specially in errout
5115         Change 'R'M to RM in all error messages
5116
5117         * scng.adb: Recognize RM specially in errout
5118
5119         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
5120         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
5121
5122         * s-direio.adb: Add missing routine header box.
5123
5124         * sem_attr.ads: Add ??? comments
5125
5126         * sem_eval.adb: Recognize RM specially in errout
5127         Change 'R'M to RM in all error messages
5128
5129         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
5130
5131         * s-tasinf.ads: Fix minor comment typo.
5132
5133         * a-cihama.adb: Minor comment addition
5134
5135         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
5136         formal
5137
5138         * s-tasinf-tru64.ads: Fix minor comment typo.
5139
5140         * itypes.ads: Comment update.
5141
5142         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
5143         anymore.
5144
5145         * argv.c: Added protection against null gnat_argv and gnat_envp.
5146
5147         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
5148         warning message when Tolerate_Consistency_Errors is True.
5149
5150         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
5151         Any_Id, as this subprogram is only applicable to *type* entities (it
5152         sets RM_Size). Instead initialize just Esize and Alignment.
5153
5154 2007-08-14  Bob Duff  <duff@adacore.com>
5155
5156         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
5157         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
5158         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
5159         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
5160         a-coorse.ads (Next): Applied pragma Inline.
5161         Make all Containers packages Remote_Types (unless they are already
5162         Pure).
5163         (Previous): applied pragma Inline
5164         (Elements_Type): is now a record instead of an array
5165
5166 2007-08-14  Thomas Quinot  <quinot@adacore.com>
5167
5168         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
5169         of Set_Item.
5170         (Set_Item): When the new item is an element of the currently allocated
5171         table passed by reference, save a copy on the stack if we're going
5172         to reallocate. Also, in Table.Set_Item, make sure we test the proper
5173         variable to determine whether to call Set_Last.
5174
5175         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
5176         symbols-vms.adb, symbols-processing-vms-alpha.adb,
5177         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
5178         some occurrences of the pattern
5179            T.Increment_Last;
5180            T.Table (T.Last) := Value;
5181         with a cleaner call to
5182            T.Append (Value);
5183
5184 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
5185             Gary Dismukes  <dismukes@adacore.com>
5186             Thomas Quinot  <quinot@adacore.com>
5187
5188         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
5189         derived type with interface progenitors use the analyzed formal as the
5190         parent of the actual, to create renamings for all the inherited
5191         operations in Derive_Subprograms.
5192         (Collect_Previous_Instances): new procedure within of
5193         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
5194         unit being loaded, to ensure that the generation of global symbols is
5195         consistent in different compilation modes.
5196         (Is_Tagged_Ancestor): New function testing the ancestor relation that
5197         takes progenitor types into account.
5198         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
5199         traversing over the primitives of the formal and actual types to locate
5200         any abstract subprograms of the actual type that correspond to a
5201         nonabstract subprogram of the formal type's ancestor type(s), and issue
5202         an error if such is found.
5203         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
5204         Instantiate_Package_Body, Instantiate_Subprogram_Body):
5205         Remove bogus guard around calls to Inherit_Context.
5206         (Reset_Entity): If the entity is the selector of a selected component
5207         that denotes a named number, propagate constant-folding to the generic
5208         template only if the named number is global to the generic unit.
5209         (Set_Instance_Env): Only reset the compilation switches when compiling
5210         a predefined or internal unit.
5211
5212 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
5213
5214         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
5215         parameter to determine whether operation applies to the prefix.
5216         (Complete_Object_Operation): If actual has an access type and
5217         controlling formal is not an in_parameter, reject the actual if it is
5218         an access_to_constant type.
5219         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
5220         type, the candidate operations are found in the scope of declaration of
5221         the type, because the type has no primitive subprograms.
5222         (Analyze_Selected_Component): If prefix is class-wide, and root type is
5223         a private extension, only examine visible components before trying to
5224         analyze as a prefixed call.
5225         Change Entity_List to Type_To_Use, for better readability.
5226         (Has_Fixed_Op): Use base type when checking whether the type of an
5227         operator has a user-defined multiplication/division
5228         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
5229         user-defined operators are available for fixed-point types.
5230
5231 2007-08-14  Thomas Quinot  <quinot@adacore.com>
5232             Ed Schonberg  <schonberg@adacore.com>
5233
5234         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
5235         formal At_Any_Place indicating, when True, that we want to test for
5236         availability of the stream attribute at any place (as opposed to the
5237         current visibility context only).
5238         (Missing_Read_Write_Attributes): A stream attribute is missing for the
5239         purpose of enforcing E.2.2(8) only if it is not available at any place.
5240         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
5241         when checking the legality of an extension aggregate in a preelaborable
5242         package. Treat the literal null as a valid default expression in a
5243         component declaration for a type with preelaborable initialization.
5244         A limited interface is a legal progenitor for the designated type of a
5245         remote access to class-wide type.
5246
5247 2007-08-14  Thomas Quinot  <quinot@adacore.com>
5248             Ed Schonberg  <schonberg@adacore.com>
5249
5250         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
5251         reference): Use correct entity as denoted entity for the selector of
5252         the rewritten node.
5253         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
5254         setting the Referenced_As_LHS flag for entities that are implicitly
5255         dereferenced.
5256         (Find_Type): If the type is an internally generated incomplete type,
5257         mark the full view as referenced, to prevent spurious warnings.
5258         (Find_Selected_Component, Has_Components): Handle properly non-limited
5259         views that are themselves incomplete types.
5260         Handle interfaces visible through limited-with clauses.
5261         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
5262         subprogram generic actual for which we have generated a renaming.
5263         Warn when the renaming introduces a homonym of
5264         the renamed entity, and the renamed entity is directly visible.
5265
5266 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
5267             Hristian Kirtchev  <kirtchev@adacore.com>
5268
5269         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
5270         appear in the subtree to the current allocator if it is not a static
5271         coextension.
5272         (Resolve_Allocator): Perform cleanup if resolution has determined that
5273         the allocator is not a coextension.
5274         (Resolve): Skip an interpretation hidden by an abstract operator only
5275         when the type of the interpretation matches that of the context.
5276         (Resolve): When looping through all possible interpretations of a node,
5277         do not consider those that are hidden by abstract operators.
5278         (Resolve_Actuals): When verifying that an access to class-wide object
5279         is an actual  for a controlling formal, ignore anonymous access to
5280         subprograms whose return type is an access to class_wide type.
5281         (Resolve_Slice): If the prefix of the slice is a selected component
5282         whose type depends on discriminants, build its actual subtype before
5283         applying range checks on the bounds of the slice.
5284         (Valid_Conversion): In an instance or inlined body, compare root types,
5285         to prevent anomalies between private and public views.
5286         (Resolve): Improve error message for ambiguous fixed multiplication
5287         expressions that involve universal_fixed multiplying operations.
5288
5289 2007-08-14  Javier Miranda  <miranda@adacore.com>
5290             Hristian Kirtchev  <kirtchev@adacore.com>
5291
5292         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
5293         location to allow the correct generation of errors in case of
5294         restrictions applied to the expanded code.
5295         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
5296         function if the condition does not reference them.
5297         (Expand_Entry_Body_Declarations): Mark the index constant as having a
5298         valid value.
5299
5300 2007-08-14  Thomas Quinot  <quinot@adacore.com>
5301             Pablo Oliveira  <oliveira@adacore.com>
5302
5303         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
5304         typecode parameters for a union (in a variant record), remove
5305         extraneous layer of Any wrapping for member label.
5306         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
5307         elabration statements, register the package with the name server
5308         at the beginning, not at the end, of the elaboration statements so
5309         that they can create remote access to subprogram values that designate
5310         remote subprograms from the package.
5311
5312 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
5313
5314         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
5315         values to compute the number of seconds since the Unix Epoc in order to
5316         account for Daylight Savings Time. Perform special processing for dates
5317         that are earlier than the Unix Epoc to obtain a negative number.
5318
5319 2007-08-14  Emmanuel Briot  <briot@adacore.com>
5320
5321         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
5322         switches.
5323
5324 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
5325
5326         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
5327         binder-generated file is not in Ada.
5328         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
5329         recorded in the ALI file.
5330         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
5331
5332 2007-08-14  Vincent Celier  <celier@adacore.com>
5333
5334         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
5335         (Output_Source): Do nothing if parameter is No_Sdep_Id
5336
5337         * make.adb (Gnatmake): Do not rebuild an archive simply because a
5338         shared library it imports has a later time stamp.
5339         (Check): Resolve the symbolic links in the path name of the object
5340         directory.
5341         Check that the ALI file is in the correct object directory
5342         Check if a file name does not correspond to the mapping of units
5343         to file names.
5344         (Display_Version): New procedure
5345         (Initialize): Process switches --version and --help
5346         Use type Path_Name_Type for path name
5347
5348 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
5349
5350         * impunit.adb: Re-organize System.Random_Numbers and
5351         GNAT.Random_Numbers and add to builds.
5352
5353         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
5354
5355         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
5356
5357         * a-assert.ads, a-assert.adb: New files.
5358
5359 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
5360
5361         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
5362         if AAMP_On_Target is True, then the size of the type encompasses two
5363         addresses (a static link and a subprogram address), except in the case
5364         of library-level access types.
5365
5366 2007-08-14  Vincent Celier  <celier@adacore.com>
5367
5368         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
5369         writing the line.
5370         (Write_Eol_Keep_Blanks): New procedure to write a line, including
5371         possible trailing spaces.
5372         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
5373
5374 2007-08-14  Javier Miranda  <miranda@adacore.com>
5375
5376         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
5377         null-excluding access types.
5378
5379 2007-08-14  Javier Miranda  <miranda@adacore.com>
5380
5381         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
5382         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
5383         of private types add missing check on matching interfaces in the
5384         partial and full declarations.
5385         (Analyze_Protected_Type): Code cleanup.
5386         (Analyze_Task_Type): Code cleanup.
5387
5388 2007-08-14  Javier Miranda  <miranda@adacore.com>
5389
5390         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
5391         generated interface thunk.
5392
5393 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
5394
5395         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
5396         obsolescent warning on application of 'Class to an incomplete type.
5397
5398         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
5399         prevent obsolescent warning on application of 'Class to an incomplete
5400         type.
5401
5402 2007-08-14  Pascal Obry  <obry@adacore.com>
5403
5404         * s-fileio.adb (Is_Open): Add check for usability of the underlying
5405         file stream.
5406
5407 2007-08-14  Cyrille Comar  <comar@adacore.com>
5408
5409         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
5410         since it is potentially used in cases implying double finalization of
5411         the same object.
5412
5413 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
5414
5415         * s-tasini.adb (Get_Stack_Info): Move this function to
5416         System.Soft_Links.Tasking because it is common to the full and the
5417         restricted run times.
5418         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
5419         in SSL.Tasking.Init_Tasking_Soft_Links.
5420
5421         * s-solita.adb (Get_Stack_Info): Function moved from
5422         System.Tasking.Initialization because it is common to the full and the
5423         restricted run times.
5424         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
5425
5426 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
5427
5428         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
5429         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
5430         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
5431         parameter.
5432
5433         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
5434         guard to 12K.
5435
5436 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
5437
5438         * s-veboop.adb (SU): New named number initialized to
5439         System.Storage_Unit.
5440         (True_Val): The initialization expression is revised to use SU (=
5441         Storage_Unit) rather than assuming 8 for the component size of an
5442         unpacked Boolean array.
5443
5444 2007-08-14  Tristan Gingold  <gingold@adacore.com>
5445
5446         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
5447
5448         * tb-ivms.c: New file.
5449
5450         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
5451
5452 2007-08-14  Geert Bosch  <bosch@adacore.com>
5453
5454         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
5455         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
5456         Add required linker pragmas for automatically linking with the gnalasup
5457         linear algebra support library, and the systems math library.
5458         Rename cdot to cdotu and zdot to zdotu.
5459         Update header comment to describe purpose of package.
5460
5461 2007-08-14  Thomas Quinot  <quinot@adacore.com>
5462
5463         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
5464         an explicitly specified Associated_Final_Chain, use that list.
5465         (Expand_N_Package_Body): Build dispatch tables of library level tagged
5466         types.
5467         (Expand_N_Package_Declaration): Build dispatch tables of library level
5468         tagged types. Minor code cleanup.
5469
5470 2007-08-14  Vincent Celier  <celier@adacore.com>
5471
5472         * gnatchop.adb (Terminate_Program): Remove exception and use
5473         Types.Terminate_Program instead.
5474
5475         * osint.ads, osint.adb (Current_Exit_Status): New global variable
5476         (Find_Program_Name): Added protection against empty name.
5477         (OS_Exit_Through_Exception): New procedure
5478
5479         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
5480         (OS_Exit_Default): New procedure that contains the previous
5481         implementation of procedure OS_Exit.
5482         (Final_Value): Remove obsolete Interix stuff.
5483
5484 2007-08-14  Thomas Quinot  <quinot@adacore.com>
5485
5486         * g-socket.ads: Reorganize example code so that it also works on
5487         Windows XP.
5488
5489 2007-08-14  Tristan Gingold  <gingold@adacore.com>
5490
5491         * g-trasym.ads: AIX now supports symbolic backtraces.
5492
5493 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
5494
5495         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
5496         units being loaded to detect circularities. A circularity may be
5497         present even if the current chain of pending units to load starts from
5498         a limited_with_clause.
5499
5500         * lib-load.ads: Change profile of Load_Unit to use a with_clause
5501         rather than a boolean flag, in order to detect circularities in
5502         with_clauses.
5503
5504         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
5505         than propagating the From_Limited_With flag, in order to handle
5506         properly circularities involving with_clauses.
5507
5508 2007-08-14  Nicolas Setton  <setton@adacore.com>
5509
5510         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
5511         warnings.
5512
5513 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
5514
5515         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
5516         to build for libgnala.
5517         libgnat: Add rules to build libgnala.a
5518         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
5519         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
5520         Add s-osinte-vxworks-kernel.adb to the target pairs of the
5521         kernel run-time lib for VxWorks 6, which would provide a different
5522         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
5523         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
5524         running ZCX by default.
5525         Add g-sttsne-locking to LynxOS version.
5526         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
5527         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
5528
5529         * system-darwin-x86.ads: New file.
5530
5531         * Make-lang.in: Delete files before copying onto them, so if they are
5532         read-only, the copy won't fail.
5533         Update dependencies
5534
5535 2007-08-14  Pascal Obry  <obry@adacore.com>
5536
5537         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
5538         naming scheme.
5539
5540 2007-08-14  Vincent Celier  <celier@adacore.com>
5541
5542         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
5543         (Gcc): Initialize Gcc_Name at the first call
5544
5545 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
5546
5547         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
5548         with_clauses of the enclosing unit when analyzing the package
5549         specification of a nested instance.
5550
5551 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
5552
5553         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
5554         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
5555         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
5556         layout of N_Allocator.
5557
5558 2007-08-14  Thomas Quinot  <quinot@adacore.com>
5559
5560         * rtsfind.adb (Check_RPC): Add PCS version check.
5561
5562         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
5563         (Gnat_Free_Software): New function.
5564
5565         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
5566         the PCS_Version value from s-parint, used to check that it is consistent
5567         with what exp_dist expects.
5568
5569         * s-parint.ads (PCS_Version): New entity for checking consistency
5570         between exp_dist and PCS.
5571
5572         * gen-soccon.c: (SO_REUSEPORT): New constant.
5573
5574 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
5575
5576         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
5577         variable Sub_Second to Duration in order to accomodate a larger range
5578         of arithmetic operations.
5579
5580 2007-08-14  Bob Duff  <duff@adacore.com>
5581
5582         * g-sttsne-locking.ads: Move comments from spec to body.
5583         * g-sttsne-locking.adb: Move comments from spec to body.
5584         * g-sttsne-vxworks.ads: Removed.
5585         * g-sttsne-vxworks.adb: Removed.
5586
5587 2007-08-11  Ian Lance Taylor  <iant@google.com>
5588
5589         * misc.c (gnat_get_alias_set): Change return type to
5590         alias_set_type.
5591
5592 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5593
5594         * decl.c, utils2.c: Fix whitespace in last change.
5595
5596 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5597
5598         * decl.c (compare_field_bitpos): Constify.
5599         * utils2.c (compare_elmt_bitpos): Likewise.
5600
5601 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
5602
5603         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
5604         anonymous access type.
5605         (pthread_sigmask): Now take an access sigset_t.
5606
5607 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
5608
5609         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
5610         
5611 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
5612
5613         PR tree-optimization/25737
5614         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
5615
5616 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5617
5618         * trans.c (Attribute_to_gnu): When subtracting an
5619         offset from a pointer, use POINTER_PLUS_EXPR with
5620         NEGATE_EXPR instead of MINUS_EXPR.
5621         (gnat_to_gnu): Likewise.
5622         * utils.c (convert): When converting between
5623         thin pointers, use POINTER_PLUS_EXPR and sizetype
5624         for the offset.
5625         * utils2.c (known_alignment): POINTER_PLUS_EXPR
5626         have the same semantics as PLUS_EXPR for alignment.
5627         (build_binary_op): Add support for the semantics of
5628         POINTER_PLUS_EXPR's operands.
5629         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
5630
5631 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
5632
5633         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
5634         of get_signed_or_unsigned_type.
5635         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
5636
5637 2007-06-11  Bob Duff  <duff@adacore.com>
5638             Thomas Quinot  <quinot@adacore.com>
5639
5640         * g-stsifd-sockets.adb (Create): Work around strange behavior of
5641         'bind' on windows that causes 'connect' to fail intermittently, by
5642         retrying the 'bind'.
5643         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
5644
5645 2007-06-10  Duncan Sands  <baldrick@free.fr>
5646
5647         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
5648         than to void, for the fields when making a new fat pointer type.
5649         (gnat_substitute_in_type): Now substitute_in_type.
5650         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
5651         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
5652         * utils.c (update_pointer_to): Update fat pointers by updating the
5653         dummy node pointers used for the fields.
5654
5655 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5656             Bob Duff  <duff@adacore.com>
5657
5658         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
5659         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
5660         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
5661         constant Thread_Blocking_IO, always True by default, set False
5662         on a per-runtime basis.
5663         (Need_Netdb_Buffer): New constant.
5664
5665         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
5666         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
5667         files.
5668
5669         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
5670         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
5671         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
5672         child package Task_Safe_NetDB
5673         (Host_Error_Messages): Add stub body.
5674         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
5675
5676         * g-soccon-mingw.ads: Add Windows-specific constants.
5677         (Need_Netdb_Buffer): New constant.
5678         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
5679         wrapper and import inet_addr(3) from the standard sockets library
5680         directly instead.
5681         (In_Addr): Add alignment clause.
5682         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
5683
5684 2007-06-06  Robert Dewar  <dewar@adacore.com>
5685
5686         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5687         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
5688         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
5689         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
5690         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
5691         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
5692         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
5693         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
5694         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
5695         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
5696         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
5697         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
5698         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
5699         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5700         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
5701         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
5702         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
5703         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
5704         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
5705         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
5706         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
5707         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
5708         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
5709         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
5710         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
5711         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
5712         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
5713         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
5714         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
5715         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
5716         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
5717         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
5718         Unchecked_* by Ada.Unchecked_*
5719
5720 2007-06-06  Robert Dewar  <dewar@adacore.com>
5721
5722         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
5723         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
5724         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
5725         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
5726         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
5727         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
5728
5729         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
5730         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
5731         s-tasloc.adb, s-tasloc.ads: New files.
5732
5733 2007-06-06  Bob Duff  <duff@adacore.com>
5734
5735         * g-expect-vms.adb: 
5736         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
5737         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
5738         (Send_Signal, Close): Raise Invalid_Process if the process id is
5739         invalid.
5740         (Pattern_Matcher_Access): Is now a general access type to be able to
5741         use aliased string.
5742
5743 2007-06-06  Thomas Quinot  <quinot@adacore.com>
5744             Arnaud Charlet  <charlet@adacore.com>
5745
5746         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
5747         (SIGEMT is now used instead of SIGTERM on AIX).
5748
5749         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
5750         (Time_Slice_Supported): Set to True.
5751         Use SIGEMT instead of SIGTERM as SIGADAABORT.
5752
5753 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
5754
5755         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
5756         (Time, Time)): Use To_Relative_Time rather than manual calculation to
5757         express the bounds of Duration as Time. Raise Time_Error when the
5758         result is greater or equal to the higher bound of Duration (on the
5759         margin case).
5760         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
5761         Ada_High_And_Leaps.
5762         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
5763         Ada_High_And_Leaps.
5764         ("-" (Time, Time)): Reorder code.
5765         (All_Leap_Seconds): Removed.
5766         (Arithmetic_Operations.Add): Remove sign related kludge.
5767         (Arithmetic_Operations.Difference): Control the leaps seconds processing
5768         with flag Leap_Support.
5769         (Arithmetic_Operations.Subtract): Remove sign related kludge.
5770         (Check_Within_Time_Bounds): New procedure.
5771         (Clock): Control the leap seconds processing with flag Leap_Support.
5772         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
5773         (Formatting_Operations.Split): Control the leap seconds processing with
5774         flag Leap_Support.
5775         (Formatting_Operations.Time_Of): Control the leaps seconds processing
5776         with flag Leap_Support. Adjust the year, month and day (if applicable)
5777         when the value of day seconds designates a new day.
5778         (Split): Use parameter associations for better readability. Integrate
5779         flag Is_Ada_05.
5780         (Time_Of): Use parameter associations for better readability. Integrate
5781         flag Is_Ada_05.
5782
5783         * a-calfor.adb (Split): Use parameter associations for better
5784         readability. Integrate flag Is_Ada_05.
5785         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
5786         better readability. Integrate flag Is_Ada_05.
5787
5788 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5789
5790         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
5791         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
5792         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
5793         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
5794         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
5795         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
5796         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
5797         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
5798         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
5799         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
5800         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
5801         time when entering this routine to detect a backward clock setting
5802         (manual setting or DST adjustment), to avoid waiting for a longer delay
5803         than needed.
5804         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
5805         Remove handling of deferred priority change, and replace by setting the
5806         task priority directly, as required by AI-188.
5807         Update comments.
5808         (Max_Task_Image_Length): New constant.
5809         Replace Warnings (Off) by Unreferenced pragma, cleaner.
5810         (Dynamic_Priority_Support): Removed, no longer needed.
5811         (Poll_Base_Priority_Change): Ditto.
5812         (Set_Ceiling): Add this procedure to change the ceiling priority
5813         associated to a lock. This is a dummy implementation because dynamic
5814         priority ceilings are not supported by the underlying system.
5815
5816         * a-dynpri.adb (Set_Priority): Take into account case where Target is
5817         accepting a RV with its priority boosted.
5818         Remove handling of deferred priority change, and replace by setting the
5819         task priority directly, as required by AI-188.
5820
5821         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
5822         Succeeded = True.
5823         Remove handling of deferred priority change, and replace by setting the
5824         task priority directly, as required by AI-188.
5825         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
5826         of Self_Id earlier.
5827
5828         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
5829         (Poll_Base_Priority_Change): Removed.
5830         Code clean up: use SSL.Current_Target_Exception.
5831
5832         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
5833         to run as this is a potentially dispatching point.
5834         (Call_Synchronous): Use Local_Defer_Abort.
5835         (Callable): Relax assertion.
5836         (Selective_Wait): Relax assertion in case abort is not allowed.
5837         Remove handling of deferred priority change, and replace by setting the
5838         task priority directly, as required by AI-188.
5839
5840         * s-tasuti.adb (Make_Passive): Adjust assertions.
5841         Remove handling of deferred priority change, and replace by setting the
5842         task priority directly, as required by AI-188.
5843
5844 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5845
5846         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
5847         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
5848         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
5849         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
5850         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
5851         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
5852         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
5853         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
5854         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
5855         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
5856         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
5857         This patch changes the largest non-binary modulus from 2**31-1 to
5858         2**32-1.
5859         (Compiler_System_Version): Removed, no longer used.
5860         Clean up system files by removing flags only used on a single target.
5861         Also remove obsolete flags, only used during bootstrap from system.ads
5862         (Address): Add a pragma Preelaborable_Initialization.
5863
5864         * system-aix.ads:  Ditto.
5865         (GCC_ZCX_Support): Set to true.
5866         Update priority range on AIX and map Ada priorities to target
5867         priorities appropriately for different scheduling policies.
5868
5869         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
5870
5871 2007-06-06  Vincent Celier  <celier@adacore.com>
5872
5873         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
5874         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
5875
5876         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
5877         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
5878         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
5879         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
5880         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
5881         MLib.Tgt, containing the default versions of the exported subprograms.
5882         For each platform, create a specific version of the body of new child
5883         package MLib.Tgt.Specific that contains only the body of subprograms
5884         that are different from the default.
5885         (Archive_Builder_Append_Options): New function.
5886
5887 2007-06-06  Matthew Gingell  <gingell@adacore.com>
5888
5889         * s-osinte-aix.adb: Map Ada priorities to target priorities
5890         appropriately for different scheduling policies.
5891
5892 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
5893
5894         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
5895         its C counterpart.
5896         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
5897         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
5898
5899 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
5900
5901         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
5902         Noop on VMS, added for interface commonality.
5903
5904 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5905             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5906             Olivier Hainque  <hainque@adacore.com>
5907
5908         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
5909         renamed expression of a full renaming at toplevel.
5910         (gnat_to_gnu_entity, case object): If not defining, do not look inside
5911         the values the constant is initialized to if it is an N_Allocator.
5912         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
5913         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
5914         (make_aligning_type): Accept an extra ROOM argument for storage to be
5915         made available before the aligned field, and an extra BASE_ALIGN
5916         argument for callers to pass the alignment guaranteed to be honored for
5917         the whole aligning object. Avoid call to finish_record_type, which only
5918         interferes with the sizes we want to set.
5919         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
5920         make_aligning_type for super-aligned objects on stack.
5921         (components_to_record): Pass the adjusted size of the type when creating
5922         fields in the qualified union for the variant part.
5923         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
5924         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
5925         packed array type.
5926         (maybe_pad_type): Set TYPE_USER_ALIGN.
5927         (make_aligning_type): Likewise.
5928         ALIGN argument is unsigned int.
5929         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
5930         (gnat_to_gnu_param): Likewise, for parameters.
5931         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
5932         if it is constant and stems from a function call.
5933         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
5934         of the record is specified.  Adjust accordingly.
5935         (adjust_packed): New static function.
5936         (gnat_to_gnu_field): Use it to adjust the packedness setting.
5937         (components_to_record): Likewise.
5938         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
5939         side-effects if the object is deemed constant.
5940         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
5941         type instead of merely finalizing it.  Tidy.
5942         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
5943         <E_Access_Type>: Likewise.
5944         (defer_debug_incomplete_list): Rename to defer_finalize_list.
5945         (defer_debug_level): Delete.
5946         (gnat_to_gnu_entity) <debug_deferred>: Likewise
5947         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
5948         type.
5949         <E_Record_Type>: Do not explicitly defer finalizing the type.
5950         Adjust for write_record_type_debug_info renaming.
5951         <E_Subprogram_Type>: Likewise.
5952         Finalize deferred types right after deferred incomplete types are
5953         expanded.
5954         (rest_of_type_decl_compilation): New global function.
5955         (components_to_record): Rename defer_debug parameter to do_not_finalize.
5956         (components_to_record): Propagate the packedness to the fields of the
5957         qualified union type if there is a variant part.
5958         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
5959         instead of inline code to adjust the XUT field offsets.
5960         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
5961         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
5962         and write the debug info if the type derives from a discriminated one.
5963         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
5964         <E_Array_Subtype>: Likewise.
5965         <E_String_Literal_Subtype>: Likewise.
5966         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
5967         an alignment clause.
5968         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
5969         before giving warning.
5970         (prepend_one_attribute_to): New function, helper to prepend an attribute
5971         to an attribute list.
5972         (gnat_to_gnu_entity) <E_Procedure>: Use it.
5973         (prepend_attributes): Likewise.
5974         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
5975         <E_Array_Type>: Declare the padding type for the element type, if any.
5976         <E_Array_Subtype>: Likewise.
5977         (defer_limited_with): New variable.
5978         (Gigi_Equivalent_Type): New function.
5979         (gnat_to_gnu_entity): Use it at start and use result throughout.
5980         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
5981         Gigi_Equivalent_Type, support Limited_With, allow two levels of
5982         indirection, precompute if unconstrained array to simplify logic, and
5983         use defer_limited_with to defer elaboration of some types from limited
5984         with.
5985         (finalize_from_with_types): New function.
5986
5987 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
5988             Eric Botcazou  <ebotcazou@adacore.com>
5989             Tristan Gingold  <gingold@adacore.com>
5990             Olivier Hainque  <hainque@adacore.com>
5991
5992         * trans.c (Identifier_to_gnu): Change test for deferred constant by
5993         adding guard that the entity is an E_Constant before testing presence
5994         of Full_view (and remove unnecessary test that entity is not a type).
5995         For a CONST_DECL used by reference, manually retrieve
5996         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
5997         (struct language_function): Move from utils.c to here.
5998         (struct parm_attr): New structure.
5999         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
6000         (f_parm_attr_cache): New macro.
6001         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
6002         expressions for the 'First, 'Last and 'Length attributes of the
6003         unconstrained array IN parameters.
6004         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
6005         Allocate the information structure for the function earlier, as well
6006         as the language-specific part.
6007         If the parameter attributes cache has been populated, evaluate the
6008         cached expressions on entry.
6009         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
6010         N_Procedure_Call_Statement and N_Indexed_Component.
6011         (Pragma_to_gnu): Translate inspection_point to an asm statement
6012         containaing a comment and a reference to the object (either its address
6013         for BLKmode or its value).
6014         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
6015         to go to DECL_INITIAL. Together with the size constraint relaxation
6016         in create_var_decl, enlarges the set of situations in which an
6017         identifier may be used as an initializer without implying elaboration
6018         code.
6019         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
6020         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
6021         node.
6022         (maybe_stabilize_reference): Remove lvalues_only parameter.
6023         (gnat_stabilize_reference): Adjust for above change.
6024         (gnat_to_gnu): Do not set location information on the result
6025         if it is a reference.
6026         (add_cleanup): Add gnat_node parameter and set the location of the
6027         cleanup to it.
6028         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
6029         (Exception_Handler_to_gnu_zcx): Likewise.
6030         (gigi): Remove the cgraph node if the elaboration procedure is empty.
6031         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
6032         the former right after the latter.
6033         (start_stmt_group): Make global.
6034         (end_stmt_group): Likewise.
6035         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
6036         vars.
6037         (gnu_program_error_label_stack): Likewise.
6038         (gigi): Initialize them.
6039         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
6040         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
6041         New cases.
6042         (push_exception_label_stack): New function.
6043         (takes_address): New function.
6044
6045         * utils.c (struct language_function): Move to trans.c from here.
6046         (unchecked_convert): Do not wrap up integer constants in
6047         VIEW_CONVERT_EXPRs.
6048         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
6049         the latter for aggregate types, unexpected by later passes, and relax an
6050         arbitrary size constraint on the former.
6051         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
6052         to compare the sizes.
6053         (convert_vms_descriptor): When converting to a fat pointer type, be
6054         prepared for a S descriptor at runtime in spite of a SB specification.
6055         (shift_unc_components_for_thin_pointers): New function.
6056         (write_record_type_debug_info): For variable-sized fields, cap the
6057         alignment of the pointer to the computed alignment.
6058         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
6059         If REP_LEVEL is 2, do not compute the sizes.
6060         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
6061         (build_unc_object_type): Likewise.
6062         (declare_debug_type): New function.
6063
6064         * ada-tree.def: USE_STMT: removed (not emitted anymore).
6065
6066         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
6067         no statement is expandable anymore.
6068         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
6069         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
6070         when the user requested it explicitely.
6071         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
6072         to 0 for Ada.
6073         (get_alias_set): Return alias set 0 for a type if
6074         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
6075
6076         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
6077         (DECL_FUNCTION_STUB): New accessor macro.
6078         (SET_DECL_FUNCTION_STUB): New setter macro.
6079
6080         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
6081
6082         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
6083         declarations.
6084
6085 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
6086
6087         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
6088         Rename to Abort_Task_Interrupt to be able to keep the same interface
6089         as the rest of the targets.
6090
6091         * s-osinte-vxworks.ads s-osinte-vxworks.adb
6092         (To_VxWorks_Priority): Remove explicit "in" mode indicator
6093
6094         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
6095         New files.
6096
6097 2007-06-06  Robert Dewar  <dewar@adacore.com>
6098
6099         * a-chahan.ads: Remove obsolescent pragmas
6100
6101         * a-chlat1.ads: Minor reformatting
6102
6103 2007-06-06  Robert Dewar  <dewar@adacore.com>
6104
6105         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
6106         for Errout
6107
6108         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
6109         implementation
6110
6111         * errout.ads (Finalize): Changed interface
6112         (Output_Messages): New procedure
6113         (Compilation_Errors): New Interface
6114
6115         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
6116         Finalize/Output_Messages interface for Errout
6117         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
6118         Errout.
6119
6120 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6121             Olivier Hainque  <hainque@adacore.com>
6122             Robert Dewar  <dewar@adacore.com>
6123
6124         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
6125         check.
6126         (Raise_Current_Excep): Call Debug_Raise_Exception just before
6127         propagation starts, to let debuggers know about the event in a reliable
6128         fashion.
6129         (Local_Raise): Moved to System.Exceptions
6130         More convenient to have this as a separate unit
6131
6132         * s-except.adb, s-except.ads: New files.
6133
6134         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
6135         Debug_Unhandled_Exception in System.Exceptions where it belongs
6136         together with a couple of other debug helpers.
6137         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
6138         the former Unhandled_Exception.
6139
6140         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
6141         (Warn_No_Exception_Propagation): New procedure
6142         (Warn_If_No_Propagation): Rewritten for new warning generation
6143         (Expand_Exception_Handlers): New warning generation
6144         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
6145         (Add_Exception_Label): Use Special_Exception_Package_Used for test
6146         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
6147         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
6148         even if restriction is set (makes life easier in Check_Returns)
6149         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
6150         checking exception identities.
6151         (Expand_Local_Exception_Handlers): Do not optimize when all others case
6152         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
6153         block for handler (used by Check_Returns)
6154         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
6155         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
6156         remove all exception handlers when optimizing local raise statements.
6157         (Find_Local_Handler): Use Get_Renamed_Entity
6158         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
6159         marked analyzed after expanding exception handlers, do not generate
6160         redundant cleanup actions, because they have been constructed already.
6161
6162 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6163
6164         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
6165         presence of this categorization pragma is mandated by the language.
6166         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
6167         for this type.
6168
6169 2007-06-06  Vincent Celier  <celier@adacore.com>
6170             Robert Dewar  <dewar@adacore.com>
6171
6172         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
6173         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
6174         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
6175         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
6176         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
6177         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
6178         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
6179         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
6180         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
6181         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
6182         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
6183         ali.ads, ali.adb: 
6184         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
6185         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
6186         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
6187         Use variables of types File_Name_Type and Unit_Name_Type in error
6188         messages.
6189         (Get_Name): Add parameter Ignore_Special, and set it reading file name
6190         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
6191         here.
6192         Define flags Flag217-Flag230 with associated subprograms
6193         (Flag_Word5): New record type.
6194         (Flag_Word5_Ptr): New access type.
6195         (To_Flag_Word5): New unchecked conversion.
6196         (To_Flag_Word5_Ptr): Likewise.
6197         (Flag216): New function.
6198         (Set_Flag216): New procedure.
6199
6200 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
6201
6202         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
6203         instead of 'Size.
6204
6205         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
6206
6207 2007-06-06  Javier Miranda  <miranda@adacore.com>
6208
6209         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
6210         the package.
6211         (Object_Specific_Data_Array): This is now internal to the package.
6212         (Object_Specific_Data): This is now internal to the package.
6213         (Select_Specific_Data_Element): This is now internal to the package.
6214         (Select_Specific_Data_Array): This is now internal to the package.
6215         (Select_Specific_Data): This is now internal to the package.
6216         (Offset_To_Top_Function_Ptr): This is now public.
6217         (To_Offset_To_Top_Function_Ptr): Removed.
6218         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
6219          local to subprogram Offset_To_Top.
6220         (Predefined_DT): Removed.
6221         (Typeinfo_Ptr): Removed.
6222         (OSD): This function is now internal to this package.
6223         (SSD): This function is now internal to this package.
6224         (DT): New function that displaces the pointer to the table of primitives
6225          to get access to the enclosing wrapper record.
6226         (IW_Membership): Code cleanup.
6227         (Offset_To_Top): Code cleanup.
6228         (Predefined_DT): Removed.
6229         (Register_Interface_Tag): Removed.
6230         (Set_Interface_Table): Removed.
6231         (Set_Offset_Index): Removed.
6232         (Set_Offset_To_Top): Code cleanup.
6233         (Set_OSD): Removed.
6234         (Set_Signature): Removed.
6235         (Set_SSD): Removed.
6236         (Set_Tagged_Kind): Removed.
6237         (Typeinfo_Ptr): Removed.
6238         (TSD): Removed.
6239         (Displace): Add missing check on null actual.
6240
6241         * exp_disp.ads, exp_disp.adb
6242         (Select_Expansion_Utilities): Removed.
6243         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
6244         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
6245         the interface requires a new parameter.
6246         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
6247         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
6248         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
6249         Done to remove package Select_Expansion_Utilities.
6250         (Make_DT): New implementation for statically allocated dispatch tables.
6251         (Make_Secondary_DT): Moved to the scope of Make_DT.
6252         (Register_Primitive): Code cleanup plus incoporate the use of the new
6253         function DT_Address_Attribute.
6254         (Expand_Interface_Thunk): The profile of this subprogram has been
6255         changed to return the Thunk_Id and the corresponding code.
6256         (Fill_DT_Entry): Removed. Its functionality is now provided by
6257         subprogram Register_Primitive.
6258         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
6259         subprogram Register_Primitive.
6260         (Register_Primitive): New subprogram that incorporates the previous
6261         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
6262         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
6263         was only required to call Make_DT_Access_Action, which is now removed.
6264         (Ada_Actions): Removed
6265         (Action_Is_Proc): Removed
6266         (Action_Nb_Arg): Removed
6267         Replace all the calls to Make_DT_Access_Action by direct calls to
6268         Make_Procedure_Call_Statement or Make_Function_Call.
6269         (Set_DTC_Entity_Value): New subprogram.
6270         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
6271         (Expand_Interface_Thunk): Add missing support for primitives that are
6272         functions with a controlling result (case in which there is no need
6273         to generate the thunk).
6274
6275         * exp_atag.ads, exp_atag.adb
6276         (Build_DT): New subprogram that displaces the pointer to reference the
6277         base of the wrapper record.
6278         (Build_Typeinfo_Offset): Removed.
6279         (RTE_Tag_Node): Removed.
6280         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
6281         (Build_Get_RC_Offset): Removed.
6282         (Build_Inherit_Predefined_Prims): Removed.
6283         (Build_Inherit_TSD: Removed.
6284         (Build_New_TSD): Removed.
6285         (Build_Set_External_Tag): Removed.
6286         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
6287         (Build_Set_Prim_Op_Address): Add documentation.
6288         (Build_Set_TSD): Removed.
6289
6290         * rtsfind.ads, rtsfind.adb
6291         (Load_Fail): If load fails and we are not in configurable run-time
6292         mode, then raise Unrecoverable_Error.
6293         (Text_IO_Kludge): Generate an error message if a run-time library is
6294         not available in a given run-time (ie. zfp run-time).
6295         (RTE_Record_Component): Add code to check that the component we search
6296         for is not found in two records in the given run-time package.
6297         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
6298         (RE_DT_Predef_Prims_Offset): New entity
6299         (RE_Static_Offset_To_Top): New entity
6300         (RE_HT_Link): New entity.
6301         (System_Address_Image): Addition of this run-time package.
6302         (RE_Address_Image): New entity.
6303         (RE_Abstract_Interface): Removed.
6304         (RE_Default_Prim_Op_Count): Removed.
6305         (RE_DT_Entry_Size): Removed.
6306         (RE_DT_Min_Prologue_Size): Removed.
6307         (RE_DT_Prologue_Size): Removed.
6308         (RE_Ifaces_Table_Ptr): Removed.
6309         (RE_Interface_Data_Ptr): Removed.
6310         (RE_Type_Specific_Data): Removed.
6311         (RE_Primary_DT): Removed.
6312         (RE_Register_Interface_Tag): Removed.
6313         (RE_Set_Offset_Index): Removed.
6314         (RE_Set_OSD): Removed.
6315         (RE_Set_SSD): Removed.
6316         (RE_Set_Signature): Removed.
6317         (RE_Set_Tagged_Kind): Removed.
6318         (RE_Address_Array): New entity.
6319         (RE_DT): New entity.
6320         (RE_Iface_Tag): New entity.
6321         (RE_Interfaces_Table): New entity.
6322         (RE_No_Dispatch_Table): New entity.
6323         (RE_NDT_Prims_Ptr): New entity.
6324         (RE_NDT_TSD): New entity.
6325         (RE_Num_Prims): New entity.
6326         (RE_Offset_To_Top_Function_Ptr): New entity.
6327         (RE_OSD_Table): New entity.
6328         (RE_OSD_Num_Prims): New entity.
6329         (RE_Predef_Prims): New entity
6330         (RE_Predef_Prims_Table_Ptr): New entity.
6331         (RE_Primary_DT): New entity.
6332         (RE_Signature): New entity.
6333         (RE_SSD): New entity.
6334         (RE_TSD): New entity.
6335         (RE_Type_Specific_Data): New entity.
6336         (RE_Tag_Kind): New entity.
6337
6338 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6339
6340         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
6341         C imported variable.
6342         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
6343         on entry.
6344
6345 2007-06-06  Robert Dewar  <dewar@adacore.com>
6346
6347         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
6348         character
6349
6350 2007-06-06  Vincent Celier  <celier@adacore.com>
6351
6352         * a-tifiio.adb (Put, internal): For negative numbers, check that there
6353         is room for at least one digit and the minus sign.
6354         (Put.Put_Character): Never put a character outside of the range of
6355         string To.
6356
6357 2007-06-06  Olivier Hainque  <hainque@adacore.com>
6358             Eric Botcazou  <ebotcazou@adacore.com>
6359
6360         * utils2.c (build_allocator): Provide the extra arguments to
6361         make_aligning_type for super-aligned objects allocated from the default
6362         pool. Leave enough room for a pointer before the aligning field, and
6363         store the system's allocator return value there.
6364         (build_call_alloc_dealloc): When releasing a super-aligned object,
6365         retrieve the system's allocator return value from where build_allocator
6366         has stored it, just ahead of the adjusted address we are passed.
6367         (build_call_raise): Handle properly the generation of line numbers when
6368         the node is marked No_Location.
6369         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
6370         by using DECL_UID on ties.
6371         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
6372         main variant.
6373         (build_call_raise): Handle converting exception into goto; support new
6374         argument KIND.
6375         (build_component_ref): Add new arg to build_call_raise.
6376
6377 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
6378
6379         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
6380         "." in the case of nnn.xxx when nnn terminates with an underscore.
6381         Parse the remaining "#" or ":" in the case of nnn#.xxx#
6382
6383 2007-06-06  Robert Dewar  <dewar@adacore.com>
6384
6385         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
6386
6387 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
6388             Vincent Celier  <celier@adacore.com>
6389             Robert Dewar  <dewar@adacore.com>
6390
6391         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
6392         needed.
6393         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
6394         ((destructor)) for adafinal, even when switch -a is used.
6395         Do not issue pragma Linker_Destructor for adafinal when switch -a is
6396         used.
6397         (Gen_Object_Files_Options): Add formatting of Linker Options, when
6398         Output_Linker_Option_List is set. Suppress this formatting when
6399         Zero_Formatting is set.
6400         Add case for CLI_Target.
6401         (System_Restrictions_Used): New flag, used to avoid generating with of
6402         System_Restrictions and initialization of the data unless there is
6403         some use of System.Restrictions in the partition.
6404         (Check_System_Restrictions_Used): New procedure
6405
6406         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
6407         since we only with this unit in the binder file if it is used elsewhere
6408         in the partition.
6409
6410 2007-06-06  Vincent Celier  <celier@adacore.com>
6411
6412         * bindusg.adb: Add line for @<response file>
6413         Add lines for new switches -R and -Z
6414
6415         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
6416         hierarchy in the list of files of the closure when -R is used
6417         (Gnatbind): Accept arguments starting with '@' to indicate response
6418         files and take the arguments from the response files.
6419         If List_Closure is set, display the referenced files
6420
6421 2007-06-06  Javier Miranda  <miranda@adacore.com>
6422             Robert Dewar  <dewar@adacore.com>
6423             Ed Schonberg  <schonberg@adacore.com>
6424
6425         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
6426         which the address-clause is applied to in-mode actuals (allowed by
6427         13.1(22)).
6428         (Apply_Discriminant_Check): Do not generate a check if the type is
6429         constrained by a current instance.
6430         (Activate_Division_Check): New procedure
6431         (Activate_Overflow_Check): New procedure
6432         (Activate_Range_Check): New procedure
6433         Call these new Activate procedures instead of setting flags directly
6434         (Apply_Array_Size_Check): Removed, no longer needed.
6435         Code clean up: remove obsolete code related to GCC 2.
6436         (Get_E_Length): Protect against bomb in case scope is standard
6437         (Selected_Range_Checks): If the node to be checked is a conversion to
6438         an unconstrained array type, and the expression is a slice, use the
6439         bounds of the slice to construct the required constraint checks.
6440         Improve NOT NULL error messages
6441         (Apply_Constraint_Check): If the context is a null-excluding access
6442         type, diagnose properly the literal null.
6443
6444 2007-06-06  Pascal Obry  <obry@adacore.com>
6445
6446         * clean.adb (Clean_Archive): Use untouched casing for the archive name
6447         and the corresponding .deps file.
6448         (Clean_Interface_Copy_Directory): Use untouched casing for the library
6449         src directory. Minor code-clean-up. Use untouched casing for files
6450         read into the library src dir.
6451         (Clean_Library_Directory): Idem.
6452         (Parse_Cmd_Line): Accept new switch -aP
6453
6454 2007-06-06  Javier Miranda  <miranda@adacore.com>
6455             Ed Schonberg  <schonberg@adacore.com>
6456             Robert Dewar  <dewar@adacore.com>
6457             Eric Botcazou  <ebotcazou@adacore.com>
6458             Arnaud Charlet  <charlet@adacore.com>
6459
6460         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
6461         applicable to types that have the With_Type flag set. Returns the
6462         non-limited view of the type, if available, otherwise the type itself.
6463         For class-wide types, there is no direct link in the tree, so we have
6464         to retrieve the class-wide type of the non-limited view of the Etype.
6465         New attributes Static_Initialization and Static_Elaboration_Desired.
6466         Remove the pragma Thread_Body, and the associated flag
6467         Is_Thread_Body in entities, and all related code.
6468         (Suppress_Value_Tracking_On_Call): New flag
6469         E_Exception has Esize and Alignment fields
6470         (Universal_Aliasing): New function.
6471         (Set_Universal_Aliasing): New procedure.
6472         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
6473         (Check_Nested_Access): New procedure.
6474         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
6475         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
6476         (Related_Interface): New attribute. Present in dispatch table pointer
6477         components of records. Set to point to the entity of the corresponding
6478         interface type.
6479         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
6480         (Original_Access_Type): Remove, not needed.
6481         (Root_Type): Handle properly subtypes of class-wide-types.
6482         Update comments.
6483
6484         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
6485         class-wide types visible through limited-with clauses.
6486         (Try_Primitive_Operation): When examining all primitive operations of a
6487         tagged type, do not consider subprograms labeled as hidden unless they
6488         belong to a private generic type with a tagged parent.
6489         (Try_Object_Operation): Extensive rewriting, to handle properly various
6490         overloading cases, when several ancestors may have class-wide operations
6491         that are possible candidates, and when the overloaded functions return
6492         array types and have defaulted parameters so that the call may be
6493         interpreted as an indexing.
6494         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
6495         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
6496         successive actuals before analyzing the call itself.
6497         (Try_Primitive_Operation): A primitive operation is compatible with the
6498         prefix if the prefix has a synchronized type and the type of the formal
6499         is its corresponding record, as can be the case when the primitive
6500         operation is declared outside of the body of the type.
6501         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
6502         perform homonym traversal, looking for class-wide operation matches
6503         (formerly done in statements of Try_Class_Wide_Operation). Matches on
6504         access parameters are now restricted to anonymous access types.
6505         (Mark_Allocator): An allocator with a discriminant association parent is
6506         a coextension.
6507         (Try_One_Prefix_Interpretation): If the type of the object is
6508         incomplete, as can be happen when it is a limited view obtained through
6509         a limited_with_clause, the selected component is not part of a prefixed
6510         call.
6511         (Complete_Object_Operation): Diagnose properly an object that is not
6512         aliased when the corresponding controlling formal is an access
6513         parameter.
6514         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
6515         ambiguous calls in prefixed notation, where two primitives differ only
6516         in that the controlling argument of one is an access parameter.
6517
6518         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
6519         whether a function that returns an unconstrained type can be inlined.
6520         (Process_Formals): Diagnose properly the illegal use of an incomplete
6521         type in the profile of an access_to_subprogram declaration.
6522         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
6523         operations are attached to the corresponding record.
6524         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
6525         When processing a primitive of a concurrent type which implements an
6526         interface change the type of all controlling formals to that of the
6527         corresponding record type.
6528         (Check_Synchronized_Overriding): Relax the conditional logic when trying
6529         to determine the tagged type to which a primitive belongs.
6530         (Check_Conventions): Capture condition to ignore a primitive operation
6531         (which is shared between the loop in Check_Conventions and the one in
6532         Check_Convention) in a new local function Skip_Check.
6533         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
6534         confusion with Check_Conventions' own Prim_Op local variable.
6535         (Create_Extra_Formals): Test for a tagged result type rather than a
6536         controlling result when determining whether to add a BIP_Alloc_Form
6537         formal and a BIP_Final_List formal to the function.
6538         (Check_Conformance); For parameters that are anonymous access types,
6539         subtype conformance requires that the not null and the constant
6540         indicators must match
6541         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
6542         to retrieve the appropriate type when processing a concurrent type
6543         declared within a generic. Minor comment reformatting. Change invocation
6544         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
6545         mitive.
6546         (Analyze_Subprogram_Body): If the return type of a function is an
6547         anonymous access to the limited view of a class-wide type, and the
6548         non-limited view of the type is available, update the type of the
6549         function so that code can be generated.
6550         (Process_Formals): In case of access-subtype itype whose designated
6551         type is also an itype (situation that happens now with access to
6552         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
6553         attribute to avoid backend problems.
6554         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
6555         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
6556         anonymous types' designated types are same before testing
6557         Subtypes_Statically_Match.
6558         (Create_Extra_Formals): Test for a named access parameter that is a
6559         controlling formal as an additional condition for adding an
6560         accessibility level formal. This can occur in the subp type created for
6561         dispatching calls in Expand_Dispatching_Call, and allows calling
6562         Create_Extra_Formals from that procedure rather than special-casing the
6563         extra formals there.
6564         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
6565         when the function has a controlling result.
6566         (Check_Returns): Add much more knowledge of the optimization of local
6567         raise statements to gotos, to retain proper warnings in this case.
6568         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
6569         nodes when looking for last statement.
6570
6571         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
6572         class-wide types visible through limited with clauses.
6573         (Add_One_Interp): If the operands are anonymous access types, the
6574         predefined operator on universal_access is immediately visibles
6575         (Find_Unique_Type): Handle anonymous access to subprogram types just as
6576         other anonymous access types.
6577         (Disambiguate): Take into account CIL convention.
6578         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
6579
6580 2007-06-06  Robert Dewar  <dewar@adacore.com>
6581
6582         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
6583         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
6584         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
6585         Fix lower bound of tables.
6586         Add rep clauses.
6587
6588         * nlists.adb: Ditto.
6589         (Prev_Node, Next_Node): Change index type to Int so that it properly
6590         covers the range First_Node_Id - 1 up.
6591
6592 2007-06-06  Javier Miranda  <miranda@adacore.com>
6593             Ed Schonberg  <schonberg@adacore.com>
6594             Bob Duff  <duff@adacore.com>
6595             Hristian Kirtchev  <kirtchev@adacore.com>
6596
6597         * exp_aggr.ads, exp_aggr.adb: 
6598         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
6599         in extension aggregates.
6600         (Flatten): Other conditions being met, an aggregate is static if the
6601         low bound given by component associations is different from the low
6602         bound of the base index type.
6603         (Packed_Array_Aggregate_Handled): If the component type is itself a
6604         packed array or record, the front-end must expand into assignments.
6605         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
6606         Init_Pr, instead of Ancestor_Is_Expression.
6607         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
6608         coextension chain root, either generate a list controller or use the
6609         already existing one.
6610         (Static_Array_Aggregate): New procedure to construct a positional
6611         aggregate that can be handled by the backend, when all bounds and
6612         components are compile-time known constants.
6613         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
6614         types covering interface types into assignments.
6615         (Replace_Type): move to Build_Record_Aggr_Code.
6616         (Expand_Record_Aggr_Code): if the target of the aggregate is an
6617         interface type, convert to the definite type of the aggregate itself,
6618         so that needed components are visible.
6619         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
6620         components and the context is an extended return statement do not
6621         create a transient block for it, to prevent premature finalization
6622         before the return is executed.
6623         (Gen_Assign): Do not generate a call to deep adjust routine if the
6624         component type is itself an array of controlled (sub)-components
6625         initialized with an inner aggregate.
6626         (Component_Check): New name for Static_Check. This name is now more
6627         appropriate, and documentation is added which was missing.
6628         (Component_Check): Add test for bit aligned component value
6629         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
6630         Tagged_Comps, name is more appropriate given added function below.
6631         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
6632
6633 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
6634             Javier Miranda  <miranda@adacore.com>
6635             Robert Dewar  <dewar@adacore.com>
6636
6637         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
6638         Terminated: Add unchecked type conversion from System.Address to
6639         System.Tasking.Task_Id when calling the predefined primitive
6640         _disp_get_task_id.
6641         Disable new Ada 05 accessibility check for JVM.NET targets, which
6642         cannot be implemented in a practical way.
6643         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
6644         the sources always references the tag of the actual object. Therefore,
6645         if 'Tag is applied in the sources to class-wide interface objects we
6646         generate code that displaces "this" to reference the base of the object.
6647         (Expand_N_Attribute_Reference, case Size): Return specified size if
6648         known to front end.
6649         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
6650         has code that displaces the pointer of the object to manage interface
6651         types. However this code must not be executed when the prefix is a
6652         subprogram. This bug caused the wrong expansion of the internally
6653         generated assignment that fills the dispatch table when the primitive
6654         is a function returning a class-wide interface type.
6655         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
6656         Set_Attribute_Name for Name_Unaligned_Valid.
6657
6658 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6659             Gary Dismukes  <dismukes@adacore.com>
6660
6661         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
6662         If the initialization is the equivalent aggregate of the initialization
6663         procedure of the type, do not remove it.
6664         (Expand_N_Attribute_Definition_Clause): Exclude access variables
6665         initialized to null from having their expression reset to empty and
6666         note this exception in the comment.
6667
6668 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
6669             Robert Dewar  <dewar@adacore.com>
6670             Ed Schonberg  <schonberg@adacore.com>
6671             Gary Dismukes  <dismukes@adacore.com>
6672
6673         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
6674         Add "with" and "use" clauses for Sem_Attr.
6675         (Expand_Current_Value): Do not replace occurences of attribute
6676         references where the prefix must be a simple name.
6677
6678         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
6679         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
6680         Attribute_Requires_Simple_Name_Prefix.
6681         (Name_Modifies_Prefix): Body of new function.
6682         (Requires_Simple_Name_Prefix): Body of new function.
6683         (Resolve_Attribute, case Access): Improve error message for case of
6684         mismatched conventions.
6685         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
6686         incomplete type.
6687         (Analyze_Attribute, case 'Access): If the type of the prefix is a
6688         constrained subtype for a nominal unconstrained type, use its base type
6689         to check for conformance with the context.
6690         (Resolve_Attribute): Remove test of the access type being associated
6691         with a return statement from condition for performing accessibility
6692         checks on access attributes, since this case is now captured by
6693         Is_Local_Anonymous_Access.
6694         (Analyze_Access_Attribute): Set Address_Taken on entity
6695         (Analyze_Attribute, case Address): Set Address_Taken on entity
6696         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
6697         validating an access attribute whose prefix is a current instance.
6698         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
6699         applied to dispatching operations, if freezing is required then we set
6700         the attribute Has_Delayed_Freeze in the prefix's entity.
6701         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
6702         current scope if access of local subprogram taken
6703         (Analyze_Access_Attribute): Check legality of self-reference even if the
6704         expression comes from source, as when a single component association in
6705         an aggregate has a box association.
6706         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
6707         the prefix if it is a protected operation and the attribute is
6708         Unrestricted_Access.
6709         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
6710         reference to the base type of the context, to force a constraint check
6711         when the context is an access subtype with an explicit constraint.
6712         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
6713         node is rewritten as an interface conversion. leave unanalyzed after
6714         resolution, to ensure that type checking against the context will take
6715         place.
6716
6717 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6718             Javier Miranda  <miranda@adacore.com>
6719             Robert Dewar  <dewar@adacore.com>
6720
6721         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
6722         wrapper when the full view of the controlling type of an inherited
6723         function that dispatches on result implements interfaces.
6724         (Expand_N_Object_Declaration): In cases where the type of the
6725         declaration is anonymous access, create finalization list for it.
6726         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
6727         if the object has no explicit initialization, to match description of
6728         functionality of pragam Persistent_BSS.
6729         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
6730         new function to build static aggregates, to replace initialization call
6731         when static initialization is desired.
6732         (Freeze_Type): Generate a list controller for an access type whenever
6733         its designated type has controlled anonymous access discriminants.
6734         (Build_Equivalent_Aggregate): New procedure to compute a static
6735         aggregate to be used as default initialization for composite types,
6736         instead of a generating a call to the initialization procedure for the
6737         type.
6738         (Build_Initialization_Call): When available, replace a call to the
6739         initialization procedure with a copy of the equivalent static aggregate
6740         for the type.
6741         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
6742         declarations for objects of a class-wide interface type, rather than
6743         just identifiers, to prevent visibility problems.
6744         (Expand_N_Object_Declaration): When expanding the declaration for an
6745         object of a class-wide interface type, preserve the homonym chain of
6746         the original entity before exchanging it with that of the generated
6747         renaming declaration.
6748         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
6749         active, because there is no way to handle the exception.
6750         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
6751         to do a minimum decoration of the Access_Disp_Table list.
6752         (Expand_Record_Controller): Avoid the addition of the controller between
6753         the component containing the tag of a secondary dispatch table and its
6754         adjacent component that stores the offset to the base of the object.
6755         This latter component is only generated when the parent type has
6756         discriminants ---documented in Add_Interface_Tag_Components).
6757         (Apply_Array_Size_Check): Removed, no longer needed.
6758         (Expand_N_Full_Type_Declaration): If the type has anonymous access
6759         components, create a Master_Entity for it only if it contains tasks.
6760         (Build_Init_Procedure): Suppress the tag assignment compiling under
6761         no run-time mode.
6762         (Freeze_Record_Type): Remove code associated with creation of dispatch
6763         table.
6764         (Init_Secondary_Tags): Update type of actuals when generating calls to
6765         Ada.Tags.Set_Offset_To_Top
6766         (Stream_Operation_OK): Disable use of streams compiling under no
6767         run-time mode
6768         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
6769         if Has_Init_Expression set.
6770         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
6771         Register_Primitive, which provides the same functionality.
6772         (Requires_Init_Proc): Return false in case of interface types.
6773         (Add_Secondary_Tables): Use the new attribute Related_Interface to
6774         cleanup the code.
6775         (Predefined_Primitive_Freeze): Do not assume that an internal entity
6776         is always associated with a predefined primitive because the internal
6777         entities associated with interface types are not predefined primitives.
6778         Therefore, the call to Is_Internal is replaced by a call to the
6779         function Is_Predefined_Dispatching_Operation.
6780         (Make_Eq_If): When generating the list of comparisons for the
6781         components of a given variant, omit the controller component that is
6782         present if the variant has controlled components.
6783
6784 2007-06-06  Javier Miranda  <miranda@adacore.com>
6785             Hristian Kirtchev  <kirtchev@adacore.com>
6786             Bob Duff  <duff@adacore.com>
6787
6788         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
6789         handle the creation of finalization lists and calls for nested
6790         coextensions when the root of the chains is part of a return statement.
6791         (Inside_A_Return_Statement): New function inside Complete_Coextension_
6792         Finalization.
6793         (Expand_Record_Equality): Skip components that are interface types.
6794         (Displace_Allocator_Pointer): Add missing support for interface subtypes
6795         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
6796         with Rewrite_Coextension. Change the condition for detecting coextension
6797         root nodes.
6798         (Is_Local_Access_Discriminant): Removed.
6799         (Rewrite_Coextension): New routine which rewrites a static coextension
6800         as a temporary and uses its unrestricted access in the construction of
6801         the outer object.
6802         (Complete_Coextension_Finalization): New routine. Generate finalization
6803         attachment calls to all delayed coextensions.
6804         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
6805         the allocator is not a coextension itself and has delayed coextensions.
6806         If the current allocator is controlled, but also a coextension, delay
6807         the generation of the finalization attachment call.
6808         Rename local variable "Node" to "Nod" in order to avoid confusion with
6809         "Elists.Node".
6810         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
6811         limited types that are not inherently limited. Such an allocator is
6812         illegal, but is generated by the expander for a return statement, to
6813         copy the result onto the secondary stack. This is the only case where a
6814         limited object can be copied. Generate code to displace the pointer
6815         to the object if the qualified expression is a class-wide interface
6816         object. Such displacement was missing and hence the copy of the object
6817         was wrong.
6818         (Apply_Accessibility_Check): Handle allocated objects initialized in
6819         place.
6820         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
6821         and Expand_Allocator_Expression. Allocating class-wide interface objects
6822         this routine displaces the pointer to the allocated object to reference
6823         the component referencing the corresponding secondary dispatch table.
6824         Expand_Allocator_Expression): Add missing support to allocate class-wide
6825         interface objects initialized with a qualified expression.
6826         (Get_Allocator_Final_List): Test for an anonymous access type that is a
6827         function result type, and use the finalization list associated with the
6828         function scope in that case (such an anonymous type should not be
6829         treated like an access parameter's type).
6830
6831 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6832             Gary Dismukes  <dismukes@adacore.com>
6833             Javier Miranda  <miranda@adacore.com>
6834
6835         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
6836         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
6837         required exception handler.
6838         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
6839         properly the case of a function whose return type is a limited
6840         class-wide interface type. Modify the code of the accessibility
6841         check to handle class-wide interface objects. In this case we need to
6842         displace "this" to reference the primary dispatch table to get access
6843         to the TSD of the object (to evaluate its accessibility level).
6844         (Expand_N_Extended_Return_Statement): Test for a tagged result type
6845         rather than a controlling result as one of the conditions for
6846         generating tests of the implicit BIP_Alloc_Form formal. The
6847         initialization assignment is also handled according to whether the
6848         result is tagged instead of controlling.
6849         In the case where the init assignment is inserted in the "then" part of
6850         the allocation conditional, rewrite the target to be a dereference of
6851         the implicit BIP_Object_Access formal.
6852         If the returned value is unconstrained and created on the secondary
6853         stack, mark the enclosing block and function so that the secondary
6854         stack is not reclaimed on return.
6855         Treat returns from functions with controlling results similarly to
6856         returns from functions with unconstrained result subtypes.
6857         If the object returned is unconstrained, and an allocator must be
6858         created for it, analyze the allocator once the block for the extended
6859         return is installed, to ensure that finalizable components
6860         of the expression use the proper finalization list. Guard the call to
6861         Move_Final_List with a check that there is something to finalize.
6862         (Make_Tag_Ctrl_Assignment): Use "old" handling
6863         of controlled type assignment for virtual machines, since new code uses
6864         unsupported features (such as direct access to bytes in memory).
6865
6866 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
6867             Ed Schonberg  <schonberg@adacore.com>
6868
6869         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
6870         accessibility actual, check for the case of an aliased object that has
6871         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
6872         we fall into processing for the attribute rather than the name of the
6873         object.
6874         (Expand_Inline_Call): If an actual is a literal, and the corresponding
6875         formal has its address taken in the body, create a temporary to capture
6876         value.  If the return type is a limited interface, do not treat the
6877         return value as Controlled.
6878         (Is_In_Place_Function):  If the return type is a limited interface,
6879         treat as returning in place. The actual returned object may not always
6880         be limited, but the caller has to assume that it is returned in place.
6881         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
6882         context of an allocator, use the correct finalization chain (that is,
6883         the chain belonging to the access type, rather than the chain belonging
6884         to the current scope).
6885         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
6886         result type rather than a controlling result as a precondition for
6887         adding an allocation form actual to a build-in-place call.
6888         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
6889         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
6890         primitive in the dispatch tables. This work is now done by Make_DT when
6891         the type is frozen.
6892         (Register_Predefined_DT_Entry): Removed.
6893         (Add_Return): If end label is not present, use sloc of last statement
6894         for generated return statement in procedure, for better gdb behavior
6895         on expanded code.
6896         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
6897         object address nodes to ensure proper processing by routines like
6898         Insert_After*.
6899         (Expand_Call): Fix generation of validity check for parameter
6900         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
6901         the allocation form parameter if the result subtype is constrained,
6902         except when the function has a controlling result.
6903         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
6904         rather than Is_Controlled and Has_Controlled_Component, since we want to
6905         include class-wide result types in this treatment. Also test for a
6906         controlling result, since that also requires passing a finalization
6907         list.
6908         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
6909         even when the result subtype is constrained, to handle calls involving
6910         controlling results.
6911         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
6912         is now called even when the result subtype is constrained, to handle
6913         calls involving controlling results.
6914         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
6915         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
6916         now performs the test).
6917         (Make_Build_In_Place_Call_In_Object_Declaration):
6918         Add_Alloc_Form_Actual_* is now called even when the result subtype is
6919         constrained, to handle calls involving controlling results.
6920         (Add_Return): Accomodate rewritten pattern from local raise to goto
6921         transformation, so that we still recognize an transfer statement
6922         and do the right thing here in that case.
6923         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
6924         and end of subprogram code.
6925         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
6926         support for primitives that are functions (without formals) with a
6927         controlling result.
6928         (Inherited_From_Formal): If the actual subtype has not generic parent
6929         type, it is not an actual for a formal derived type, and there is no
6930         operation to inherit from the formal.
6931
6932 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6933             Thomas Quinot  <quinot@adacore.com>
6934
6935         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
6936         inserted cleanup code appropriately for GDB use.
6937         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
6938         exception handler for Deep_Adjust or Deep_Finalize.
6939         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
6940         Raise_From_Controlled_Operation is available, use a call to that
6941         subprogram instead of a plain "raise Program_Error" node to raise
6942         Program_Error if an exception is propagated from an Adjust or Finalize
6943         operation.
6944         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
6945         appears in the optional statement list of a triggering alternative, the
6946         scope actions can be inserted directly there, and not in the list that
6947         includes the asynchronous select itself.
6948
6949 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
6950             Robert Dewar  <dewar@adacore.com>
6951             Hristian Kirtchev  <kirtchev@adacore.com>
6952
6953         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
6954         generated exception handler appropriately when debugging generated code.
6955         Deal properly with No_Exception_Propagation restriction mode.
6956         (Expand_N_Abort_Statement): Add an unchecked type conversion from
6957         System.Address to System.Tasking.Task_Id when processing the result of
6958         the predefined primitive _disp_get_task_id.
6959         (Expand_N_Asynchronous_Select): Clarify comment.
6960         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
6961         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
6962         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
6963         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
6964         privals and for generated call to Complete_Entry_Body, for better gdb
6965         behavior.
6966         (Copy_Result_Type): Utility to construct a parameter and result profile
6967         for protected functions whose return type is an anonymous access to
6968         subprogram.
6969         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
6970         call the above.
6971         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
6972         point when the local-raise-to-goto transformation has taken place.
6973
6974 2007-06-06  Javier Miranda  <miranda@adacore.com>
6975             Nicolas Setton  <setton@adacore.com>
6976
6977         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
6978         functionality when the backend is generating code.
6979         Otherwise any serious error
6980         reported by the backend calling the frontend routine Error_Msg
6981         changes the Compilation_Mode to Check_Semantics, disables the
6982         functionality of this routine and causes the generation of
6983         spureous additional errors.
6984
6985         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
6986         debugging information now generated by the compiler for fat-pointer
6987         types.
6988         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
6989         DWARF2/3.
6990         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
6991
6992 2007-06-06  Thomas Quinot  <quinot@adacore.com>
6993
6994         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
6995         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6996         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6997         For a remote call to a function with a classwide return type, apply an
6998         E.4(18) check to the returned value.
6999         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
7000         stream attributes of the designated type of an RACW, as they are not
7001         dispatching primitive operations.
7002
7003 2007-06-06  Geert Bosch  <bosch@adacore.com>
7004
7005         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
7006         negative literal
7007         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
7008         positive
7009         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
7010         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
7011         positive
7012         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
7013
7014 2007-06-06  Javier Miranda  <miranda@adacore.com>
7015
7016         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
7017         attribute compiling package Ada.Tags under No_Run_Time_Mode.
7018
7019 2007-06-06  Javier Miranda  <miranda@adacore.com>
7020
7021         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
7022         deallocation of class-wide interface objects.
7023         (Expand_Dispatching_Constructor_Call): Take into account that if the
7024         result of the dispatching constructor is an interface type, the
7025         function returns a class-wide interface type; otherwise the returned
7026         object would be actual. The frontend previously accepted returning
7027         interface types because Expand_Interface_Actuals silently performed
7028         the management of the returned type "as if" it were a class-wide
7029         interface type.
7030         (Expand_Dispatching_Constructor_Call): Replace call to
7031         Make_DT_Access_Action by direct call to Make_Function_Call.
7032
7033 2007-06-06  Robert Dewar  <dewar@adacore.com>
7034             Ed Schonberg  <schonberg@adacore.com>
7035
7036         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
7037         compute masking constant, since we now set Esize properly to the
7038         underlying size.
7039         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
7040         to match the alignment.
7041         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
7042         packed arrays of 8 bits or less.
7043
7044         * freeze.adb (Freeze_Entity): When freezing the formals of a
7045         subprogram, freeze the designated type of a parameter of an access type
7046         only if it is an access parameter.
7047         Increase size of C convention enumeration object
7048         (Freeze_Entity, array type case): Make sure Esize value is properly
7049         adjusted for the alignment if it is known.
7050         (Freeze_Entity, array type case): When checking bit packed arrays for
7051         the size being incorrect, check RM_Size, not Esize.
7052         (Freeze_Record_Type): Check for bad discriminated record convention
7053         (In_Exp_Body): Return true if the body is generated for a subprogram
7054         renaming, either an attribute renaming or a renaming as body.
7055         (Check_Itype): If the designated type of an anonymous access component
7056         is a non-protected subprogram type, indicate that it is frozen, to
7057         prevent out-of-scope freeze node at some subsequent call.
7058         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
7059         only if the subprogram is neither imported nor exported, as well as the
7060         NCA descriptor class if the subprogram is exported.
7061
7062 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
7063             Arnaud Charlet  <charlet@adacore.com>
7064             Robert Dewar  <dewar@adacore.com>
7065             Gary Dismukes  <dismukes@adacore.com>
7066
7067         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
7068         default initialization on an imported object, when there is no
7069         initialization call generated for it.
7070         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
7071         restriction
7072
7073         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
7074         Static_Elaboration_Desired.
7075         Remove pragma Thread_Body.
7076         Implement a new pragma No_Body
7077         Removes the Explicit_Overriding pragma
7078         Remove Optional_Overriding pragma
7079         (Prag): Deal with Universal_Aliasing.
7080         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
7081         Pragma_CIL_Constructor): New names.
7082
7083         * sem_cat.adb (Validate_Object_Declaration): An initialization that
7084         uses the equivalent aggregate of a type must be treated as an implicit
7085         initialization.
7086         (Get_Categorization): Check a unit for pragma Preelaborate only if it
7087         has none of the other categories.
7088         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
7089         to apply Import to an object renaming declaration.
7090
7091         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
7092         from a C++ class should be declared as limited and that it will be
7093         considererd limited.
7094         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
7095         should be declared as limited and that it will be considererd limited.
7096         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
7097         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
7098         (Analyze_Pragma): Deal with Universal_Aliasing.
7099         (Sig_Flags): Likewise.
7100         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
7101         (Overflow_Checks_Unsuppressed): New flag.
7102         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
7103         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
7104         case of JVM or .NET targets, and compiling user code.
7105         Add debugging convenience routine rv
7106
7107 2007-06-06  Robert Dewar  <dewar@adacore.com>
7108
7109         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
7110         are interface type.
7111         (Build_Elementary_Input_Call): For floating-point use right type in the
7112         absence of strange size or stream size clauses.
7113         (Build_Elementary_Write_Call): Same fix
7114         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
7115         set to value that does not match base type size.
7116
7117 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
7118
7119         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
7120         object of a limited type can be initialized with a call to a function
7121         that returns in place. If the limited type has unknown discriminants,
7122         and the underlying type is a constrained composite type, build an actual
7123         subtype from the function call, as is done for private types.
7124         (Side_Effect_Free): An expression that is the renaming of an object or
7125         whose prefix is the renaming of a object, is not side-effect free
7126         because it may be assigned through the renaming and its value must be
7127         captured in a temporary.
7128         (Has_Controlled_Coextensions): New routine.
7129         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
7130         as is done for other limited types.
7131         (Non_Limited_Designated_Type): new predicate.
7132         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
7133         objects.
7134         Remove all handling of with_type clauses.
7135
7136         * par-ch10.adb: Remove all handling of with_type clauses.
7137
7138         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
7139         checksum if the main source could not be parsed.
7140         (Loat_Unit): When processing a child unit, determine properly whether
7141         the parent unit is a renaming when the parent is itself a child unit.
7142         Remove handling of with_type clauses.
7143
7144         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
7145         (Set_Is_Static_Coextension): New procedure.
7146         (Has_Local_Raise): New function
7147         (Set_Has_Local_Raise): New procedure
7148         (Renaming_Exception): New field
7149         (Has_Init_Expression): New flag
7150         (Delay_Finalize_Attach): Remove because flag is obsolete.
7151         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
7152         Remove all handling of with_type clauses.
7153         (Exception_Junk): Can now be set in N_Block_Statement
7154
7155 2007-06-06  Vincent Celier  <celier@adacore.com>
7156             Robert Dewar  <dewar@adacore.com>
7157
7158         * frontend.adb (Frontend): Return immediately if the main source could
7159         not be parsed, because of preprocessing errors.
7160
7161         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
7162         (Gnat1drv): Exit with errors if the main source could not be parsed,
7163         because of preprocessing errors.
7164         (Check_Rep_Info): New procedure
7165
7166 2007-06-06  Robert Dewar  <dewar@adacore.com>
7167
7168         * g-hesorg.ads, g-heasor.ads,
7169         g-busorg.ads, g-bubsor.ads: Update documentation
7170         GNAT.Heap/Bubble_Sort_G is now pure
7171
7172 2007-06-06  Robert Dewar  <dewar@adacore.com>
7173
7174         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
7175
7176 2007-06-06  Robert Dewar  <dewar@adacore.com>
7177             Ed Schonberg  <schonberg@adacore.com>
7178
7179         * g-comlin.ads, g-comlin.adb: 
7180         Add new warning for renaming of function return objects
7181
7182         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
7183         (Tree_Read): Use size of object instead of type'object_size, since the
7184         latter is incorrect for packed array types.
7185         (Tree_Write): Same fix
7186
7187         * opt.ads: Add new warning for renaming of function return objects
7188         (Generating_Code): New boolean variable used to indicate that the
7189         frontend as finished its work and has called the backend to process
7190         the tree and generate the object file.
7191         (GCC_Version): Is now private
7192         (Static_Dispatch_Tables): New constant declaration.
7193         (Overflow_Checks_Unsuppressed): New flag.
7194         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
7195         (List_Closure): New flag for gnatbind (-R)
7196         Zero_Formatting: New flag for gnatbind (-Z)
7197         (Special_Exception_Package_Used): New flag.
7198         (Warn_On_Unrepped_Components): New flag.
7199
7200         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
7201         unit is a compilation unit, rather than relying on its scope, so that
7202         Standard can be renamed.
7203         (Analyze_Object_Renaming): Add new warning for renaming of function
7204         return objects.
7205         Also reject attempt to rename function return object in Ada 83 mode.
7206         (Attribute_Renaming): In case of tagged types, add the body of the
7207         generated function to the freezing actions of the type.
7208         (Find_Type): A protected type is visible right after the reserved word
7209         "is" is encountered in its type declaration. Set the entity and type
7210         rather than emitting an error message.
7211         (New_Scope): Properly propagate Discard_Names to inner scopes
7212         (Check_Nested_Access): New procedure.
7213         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
7214         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
7215
7216         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
7217         Add new warning for renaming of function return objects
7218         (Check_References): Suppress warnings for objects whose type or
7219         base type has Warnings suppressed.
7220         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
7221         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
7222
7223 2007-06-06  Vincent Celier  <celier@adacore.com>
7224             Emmanuel Briot  <briot@adacore.com>
7225             Olivier Hainque  <hainque@adacore.com>
7226
7227         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
7228         absolute value of Header.Block_Size when displaying the freed physical
7229         memory in traces.
7230         (Allocate): Compute Storage_Address using Integer_Address, not
7231         Storage_Offset, because the range of Storage_Offset may not be large
7232         enough.
7233         (Configure): New parameter Low_Level_Traces
7234         (Allocate, Deallocation, Free_Physically): Added low-level traces
7235         (Configure): new parameter Errors_To_Stdout.
7236         (Output_File): new subprogram
7237         (Deallocate, Dereference): Send error messages to the proper stream
7238         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
7239         documented. Previous code would send it to the current output file
7240         defined in GNAT.IO, which might not be stdout
7241         (Is_Valid): Adjust comment to mention that a positive reply means that
7242         Header_Of may be used to retrieve the allocation header associated with
7243         the subprogram Storage address argument. Return False early if this
7244         address argument is misaligned.
7245
7246 2007-06-06  Vincent Celier  <celier@adacore.com>
7247
7248         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
7249         switch -P
7250         (ASIS_Main): New global variable
7251         (Get_Closure): New procedure
7252         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
7253         check, metric or pretty. Call Get_Closure in this case.
7254         (Check_Files): For GNAT LIST, check all sources of all projects when
7255         All_Projects is True.
7256         (GNATCmd): Accept -U for GNAT LIST
7257
7258 2007-06-06  Vincent Celier  <celier@adacore.com>
7259
7260         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
7261         has been specified
7262         Correct error message when invocation of the linker fails
7263         Add explicit size clause for the C imported variables
7264         Object_List_File_Supported and Using_GNU_Linker to emphasize that
7265         we expect char size.
7266         Read target parameters earlier, since this is needed to set
7267         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
7268         targets.
7269
7270 2007-06-06  Vincent Celier  <celier@adacore.com>
7271
7272         * gnatls.adb: 
7273         Add 3 spaces before the default project directory when displaying
7274         the project search path.
7275         Add new command line switch '-l' to display license information.
7276
7277 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
7278
7279         * gmem.c: Add support for timestamps on memory operations.
7280
7281         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
7282         operations (not used currently, just foundation for future
7283         enhancements). Add possibility to perform full dump of gmem.out file.
7284         (Print_Back_Traces): Declare accesses to root arrays constants since
7285         they aren't modified.
7286         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
7287
7288 2007-06-06  Vincent Celier  <celier@adacore.com>
7289
7290         * gnatsym.adb: Update Copyright notice
7291         (Parse_Cmd_Line): Accept new switch -D
7292         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
7293          file.
7294
7295         * prj.ads (Policy): New policy Direct
7296         (Yes_No_Unknown): New enumeration type
7297         (Project_Data): New component Libgnarl_Needed
7298
7299         * prj-nmsc.adb (Check_For_Source): When recording a source file make
7300         use the untouched pathname casing.
7301         (Get_Directories): Ensure that the Display_Exec_Directory is using the
7302         proper casing on non case-sensitive platforms like Windows.
7303         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
7304         on all platforms, as it is not possible to know which one is allowed
7305         before processing the project files.
7306         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
7307         specified when symbol policy is Direct. Check that when there is a
7308         symbol file defined (either by default or with attribute
7309         Library_Symbol_File) it is not the same as the reference symbol file.
7310         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
7311         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
7312         extending projects.
7313         (Record_Ada_Source): Record a source that has been locally removed in an
7314         imported project.
7315
7316         * symbols.ads (Policy): New policy Direct
7317
7318         * symbols-vms.adb (Initialize): Take new policy Direct in case
7319         statement
7320
7321 2007-06-06  Vincent Celier  <celier@adacore.com>
7322
7323         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
7324         Correct obvious bug (return Dir; instead of return Directory;).
7325         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
7326
7327 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7328
7329         * g-pehage.adb (Produce): Open output files in Binary mode, so that
7330         they have UNIX line endings (LF only) even on Windows, and thus pass
7331         all GNAT style checks.
7332
7333 2007-06-06  Emmanuel Briot  <briot@adacore.com>
7334
7335         * g-regpat.adb (Quote): Fix improper quoting of '.'
7336
7337 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7338
7339         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
7340         default, set False on a per-runtime basis.
7341         (Need_Netdb_Buffer): New constant.
7342
7343         * g-socket.ads, g-socket.adb: Import new package
7344         GNAT.Sockets.Thin.Task_Safe_NetDB.
7345         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
7346         binding to obtain proper message.
7347         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
7348         Replace various occurrences of Arry (Arry'First)'Address with the
7349         equivalent Arry'Address (GNAT always follows implementation advice from
7350         13.3(14)).
7351         (Get_Host_By_Address, Get_Host_By_Name,
7352         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
7353         instead, rely on platform-specific task safe netdb operations provided
7354         by g-socthi.
7355
7356         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
7357         parameter Process_Blocking_IO.
7358         (Host_Error_Messages): Add stub body.
7359         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7360         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
7361         Safe_Getservbyport): Move functions into new child package
7362         Task_Safe_NetDB.
7363         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
7364         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
7365         (In_Addr): Add alignment clause.
7366
7367 2007-06-06  Robert Dewar  <dewar@adacore.com>
7368
7369         * g-trasym.ads, g-traceb.ads: Update list of supported targets
7370         Add note about symbolic traceback
7371
7372 2007-06-06  Pascal Obry  <obry@adacore.com>
7373
7374         * hostparm.ads (Normalized_CWD): Use the host directory separator
7375         instead of the hardcoded forward slash which is not the proper
7376         character on Windows for example.
7377         (Java_VM): Removed.
7378
7379 2007-06-06  Vincent Celier  <celier@adacore.com>
7380             Arnaud Charlet  <charlet@adacore.com>
7381
7382         * a-clrefi.adb, a-clrefi.ads: New files
7383
7384         * impunit.adb: Add s-os_lib in the list of user visible units.
7385         (Non_Imp_File_Names_95): Add a-clrefi to this list
7386         Remove obsolete run-time entries.
7387         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
7388          "a-exetim" -- Ada.Execution_Time
7389          "a-extiti" -- Ada.Execution_Time.Timers
7390
7391         * mlib-prj.ads, mlib-prj.adb
7392         (Build_Library): Use untouched object dir and library dir. At the
7393         same time makes sure that the checks are done using the canonical
7394         form. Removes hard-coded directory separator and use the proper host
7395         one instead.
7396         (Process_Project): Do not look in object directory to check if libgnarl
7397         is needed for a library, if there is no object directory.
7398         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
7399         linking.
7400         (Build_Library): When invoking gnatbind, use a response file if the
7401         total size of the arguments is too large.
7402
7403         * Makefile.rtl: (g-sttsne): New object file.
7404         Add entry for a-clrefi, s-utf_32, System.Exceptions
7405
7406         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
7407         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
7408         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
7409         Change g-string to s-string, g-os_lib to s-os_lib
7410         Change all g-utf_32 references to s-utf_32
7411
7412 2007-06-06  Tristan Gingold  <gingold@adacore.com>
7413             Olivier Hainque  <hainque@adacore.com>
7414
7415         * init.c: Do not adjust IP of an imported VMS exception of ia64.
7416         LIB$STOP is called to raise an exception and the IP of the exception
7417         is the instruction right after the call.
7418         (__gnat_adjust_context_for_raise, AIX): Implement.
7419         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
7420          adjust_context_for_raise before Raise_From_Signal_Hanler.
7421         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
7422         siginfo is passed to the handler, necessary to let the zcx propagation
7423         engine unwind past it.
7424
7425 2007-06-06  Olivier Hainque  <hainque@adacore.com>
7426
7427         * initialize.c (__gnat_initialize for vxworks):  Update documentation
7428         on the ZCX support, using different sets of crtstuff objects than with
7429         GCC 3.4.
7430
7431 2007-06-06  Robert Dewar  <dewar@adacore.com>
7432
7433         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
7434         spec from body
7435         (Layout_Type): Fix recomputation of size from alignment.
7436
7437 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
7438             Javier Miranda  <miranda@adacore.com>
7439
7440         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
7441         association in an instance.
7442         (Copy_Generic_Node): If the node is a string literal, no need to copy
7443         its descendants.
7444         (Is_Generic_Formal): For a formal subprogram, the declaration is the
7445         grandparent of the entity.
7446         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
7447         to simplify handling of formal interfaces that derive from other formal
7448         interfaces.
7449         (Instantiate_Subprogram_Body): The defining unit name of the body of
7450         the instance should be a defining identifier.
7451         (Install_Formal_Packages): make global to the package, for use in
7452         instantiations of child units.
7453         (Analyze_Package_Instantiation): Do not attempt to set information on an
7454         enclosing master of an entry when expansion is disabled.
7455         (Instantiate_Type): If the actual is a tagged synchronized type and the
7456         generic ancestor is an interface, create a generic actual for the
7457         corresponding record.
7458         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
7459         declaration, to ensure that the interface list is processed correctly.
7460         (Inline_Instance_Body): If enclosing scope is an instance body, remove
7461         its entities from visibiility as well.
7462         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
7463         given with a named association, analyze the expression only, not the
7464         discriminant association itself.
7465         (Reset_Entity): If the analysis of a selected component is transformed
7466         into an expanded name in the prefix of a call with parameters, do not
7467         transform the original node into an expanded name, to prevent visibility
7468         errors in the case of nested generics.
7469         (Check_Private_View): For an array type, check whether the index types
7470         may need exchanging.
7471
7472 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7473             Vincent Celier  <celier@adacore.com>
7474
7475         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
7476         since both are separated.
7477         Add support for imported CIL packages.
7478         Add further special handling of "value_type" for CIL.
7479         Add special handling of pragma Import for CIL.
7480
7481         * make.ads, make.adb: When switch -eS is used, direct all outputs to
7482         standard output instead of standard error, except errors.
7483         (Absolute_Path): Use untouched casing for the parent directory.
7484         (Add_Library_Search_Dir): Use the untouched directory name.
7485         (Add_Source_Search_Dir): Idem.
7486         (Change_To_Object_Directory): Update output to use proper casing.
7487         (Create_Binder_Mapping_File): Use the untouched filename to set
7488         ALI_Name.
7489         (Gnatmake): Use untouched library and executable directory names.
7490         (Insert_Project_Sources): Use untouched filename for spec and body.
7491         (Is_In_Object_Directory): Use untouched object directory.
7492         (Mark_Directory): Idem.
7493         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
7494         contains the non-canonical filename in all cases.
7495         (Change_To_Object_Directory): In verbose mode, display the name of the
7496         object directory we're changing to.
7497         (Compile_Sources): Make sure, when a project file is used, to compile
7498         the body of the unit, when there is one, even when only the spec is
7499         recorded in an ALI file.
7500         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
7501         spec to the body.
7502         (Report_Compilation_Failed): New procedure
7503         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
7504         procedures moved from the spec to the body.
7505         (Extract_Failure): Removed, not used
7506         Replace explicit raises of exception Bind_Failed and Link_Failed with
7507         calls to Make_Failed with the proper message.
7508         Replace explicit raises of exception Compilation_Failed with calls to
7509         procedure Report_Compilation_Failed.
7510         (Initialize): Create mapping files unconditionally when using project
7511         files.
7512
7513         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
7514         Pragma_CIL_Constructor): New names.
7515
7516         * targparm.ads, targparm.adb
7517         (Compiler_System_Version): Removed, no longer used.
7518         (Get_Target_Parameters): Relax checks on system.ads validity. Add
7519         handling of two new system flags: JVM and CLI.
7520
7521 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
7522             Arnaud Charlet  <charlet@adacore.com>
7523
7524         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
7525         time, use the default s-interr body that provides interrupt support
7526         based on signals.
7527         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
7528         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
7529         g-soccon.ads, and s-taprop.adb for the marte run time.
7530         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
7531         timers are supported on marte.
7532         (EH_MECHANISM for marte): Do not use ZCX.
7533         (THREADSLIB for marte): Use -lmarte.
7534         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
7535         Add mlib-tgt-specific.o to gnatmake objects
7536         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
7537         longer of MLib.Tgt.
7538         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
7539         6, either kernel or rtp, use a specialized version of s-osinte.ads.
7540
7541 2007-06-06  Pascal Obry  <obry@adacore.com>
7542
7543         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
7544
7545 2007-06-06  Vincent Celier  <celier@adacore.com>
7546
7547         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
7548         separator, use instead the proper host directory separator.
7549         (Copy_ALI_Files): Make sure that an already existing ALI file in the
7550         ALI copy dir is writable, before doing the copy.
7551
7552         * mlib-utl.ads, mlib-utl.adb: 
7553         (Gcc): If length of command line is too long, put the list of object
7554         files in a response file, if this is supported by the platform.
7555         (Ar): If invocation of the archive builder is allowed to be done in
7556         chunks and building it in one shot would go above an OS dependent
7557         limit on the number of characters on the command line, build the archive
7558         in chunks.
7559
7560 2007-06-06  Vincent Celier  <celier@adacore.com>
7561
7562         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
7563         of specified object file is not equal to base name of source.
7564
7565 2007-06-06  Javier Miranda  <miranda@adacore.com>
7566             Hristian Kirtchev  <kirtchev@adacore.com>
7567             Ed Schonberg  <schonberg@adacore.com>
7568
7569         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
7570         the full type declaration.
7571         (Analyze_Component_Declaration): Add local variable E to capture the
7572         initialization expression of the declaration. Replace the occurences of
7573         Expression (N) with E.
7574         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
7575         limited interface object with a function call.
7576         (Array_Type_Declaration): If the declaration lacks subtype marks for
7577         indices, create a simple index list to prevent cascaded errors.
7578         (Is_Null_Extension): Ignore internal components created for secondary
7579         tags when checking whether a record extension is a null extension.
7580         (Check_Abstract_Interfaces): Add missing support for interface subtypes
7581         and generic formals.
7582         (Derived_Type_Declaration): Add missing support for interface subtypes
7583         and generic formals.
7584         (Analyze_Object_Declaration): If an initialization expression is
7585         present, traverse its subtree and mark all allocators as static
7586         coextensions.
7587         (Add_Interface_Tag_Component): When looking for components that may be
7588         secondary tags, ignore pragmas that can appear within a record
7589         declaration.
7590         (Check_Abstract_Overriding): an inherited function that dispatches on
7591         result does not need to be overriden if the controlling type is a null
7592         extension.
7593         (Mentions_T): Handle properly a 'class attribute in an anonymous access
7594         component declaration, when the prefix is an expanded name.
7595         (Inherit_Component): If the derivation is for a private extension,
7596         inherited components remain visible and their ekind should not be set
7597         to Void.
7598         (Find_Type_Of_Object): In the case of an access definition, always set
7599         Is_Local_Anonymous_Access. We were previously not marking the anonymous
7600         access type of a return object as a local anonymous type.
7601         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
7602         range with character literal bounds.
7603         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
7604         (Access_Subprogram_Declaration): Indicate that the type declaration
7605         depends on an incomplete type only if the incomplete type is declared
7606         in an open scope.
7607         (Analyze_Subtype_Declaration): Handle properly subtypes of
7608         synchronized types that are tagged, and that may appear as generic
7609         actuals.
7610         (Access_Subprogram_Declaration): An anonymous access to subprogram can
7611         appear as an access discriminant in a private type declaration.
7612         (Add_Interface_Tag_Components): Complete decoration of the component
7613         containing the tag of a secondary dispatch table and the component
7614         containing the offset to the base of the object (this latter component
7615         is only generated when the parent type has discriminants --as documented
7616         in this routine).
7617         (Inherit_Components): Use the new decoration of the tag components to
7618         improve the condition that avoids inheriting the components associated
7619         with secondary tags of the parent.
7620         (Build_Discriminanted_Subtype): Indicate to the backend that the
7621         size of record types associated with dispatch tables is known at
7622         compile time.
7623         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
7624         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
7625         to include task, protected, and synchronized interfaces as limited
7626         interfaces.
7627         (Process_Discriminants): Remove the setting of
7628         Is_Local_Anonymous_Access on the type of (anonymous) access
7629         discriminants of nonlimited types.
7630         (Analyze_Interface_Type_Declaration): Complete the decoration of the
7631         class-wide entity it is is already present. This situation occurs if
7632         the limited-view has been previously built.
7633         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
7634         field.
7635         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
7636         Related_Interface.
7637
7638 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
7639
7640         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
7641         of the type that specify the position of interface tags when the type
7642         inherits discriminated array components from the parent type.
7643         If a component is initialized with a box, check for the presence of a
7644         default expression in its declaration before using its default
7645         initialization procedure.
7646         (Resolve_Record_Aggregate): If a component is box-initialized, and the
7647         component type has a discriminants, create a partial aggregate for it
7648         by copying the discriminants of the component subtype.
7649         Reject attempt to initialize a discriminant with a box.
7650         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
7651         associated with dispatch tables is known at compile time.
7652         (Get_Value): If an association in a record aggregate has a box
7653         association, and the corresponding record component has a default
7654         expression, always copy the default expression, even when the
7655         association has a single choice, in order to create a proper
7656         association for the expanded aggregate.
7657
7658 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
7659             Robert Dewar  <dewar@adacore.com>
7660
7661         * par-ch12.adb (P_Generic_Associations): The source position of an
7662         Others association is that of the others keyword, not that of the token
7663         that follows the box.
7664         (P_Formal_Type_Definition): Handle formal access types that carry a
7665         not null indicator.
7666
7667         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
7668         multiple identifier are present, save Scan_State before scanning the
7669         colon, to ensure that separate trees are constructed for each
7670         declaration.
7671         (P_Identifier_Declarations): For object declaration, set new flag
7672         Has_Init_Expression if initialization expression present.
7673         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
7674         Improve NOT NULL error messages
7675
7676 2007-06-06  Robert Dewar  <dewar@adacore.com>
7677
7678         * par-ch4.adb: (P_Name): Recover from literal used as name
7679
7680 2007-06-06  Vincent Celier  <celier@adacore.com>
7681
7682         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
7683         defaulted to False.
7684         In the "not" case, recursive call with Complemented set to True.
7685         Do not allow "or" or "and" operators when Complemented is True.
7686
7687 2007-06-06  Vincent Celier  <celier@adacore.com>
7688
7689         * prj.adb (Project_Empty): Gives default value for new component
7690         Libgnarl_Needed
7691
7692         * prj-attr.ads: Minor reformatting
7693
7694         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
7695         directory using the untouched casing.
7696         (For_All_Source_Dirs): Idem.
7697
7698         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
7699         directories specified with switches -aP.
7700         (Add_Search_Project_Directory): New procedure
7701         (Initialize_Project_Path): Put the directories in table
7702         Search_Directories in the project search path.
7703         (Initialize_Project_Path): For VMS, transform into canonical form the
7704         project path.
7705
7706 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7707
7708         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
7709         true if configurable run-time or No_Run_Time is set.
7710         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
7711         processing an unit which is not the one being compiled.
7712
7713 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7714
7715         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
7716         Replace UC by Ada.UC
7717
7718         * s-bitops.adb: Get rid of System.Pure_Exceptions.
7719         Replace UC by Ada.UC
7720
7721 2007-06-06  Robert Dewar  <dewar@adacore.com>
7722
7723         * scng.adb: (Check_End_Of_Line): Deal with very long lines
7724
7725 2007-06-06  Robert Dewar  <dewar@adacore.com>
7726
7727         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
7728         Remove no longer used nodes.
7729
7730 2007-06-06  Javier Miranda  <miranda@adacore.com>
7731             Ed Schonberg  <schonberg@adacore.com>
7732             Robert Dewar  <dewar@adacore.com>
7733
7734         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
7735         on obsolescent withed unit in case of limited-withed units.
7736         (Analyze_Compilation_Unit): Add guard to code that removed an
7737         instantiation from visibility, to prevent compiler aborts when
7738         instantiation is abandoned early on.
7739         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
7740         current unit being analyzed, and Distinguish local incomplete types
7741         from limited views of types declared elsewhere.
7742         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
7743         to state that the class-wide entity is shared by the limited-view
7744         and the full-view.
7745         (Analyze_With_Clause): Improve placement of flag for case of
7746         unimplemented unit.
7747         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
7748         manner similar to GNAT.Current_Exception. This is a violation of
7749         restriction (No_Exception_Propagation), and also inhibits the
7750         optimization of local raise to goto.
7751         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
7752         and if so set Most_Recent_Exception_Used flag in Opt, and also check
7753         for violation of restriction No_Exception_Propagation.
7754
7755 2007-06-06  Javier Miranda  <miranda@adacore.com>
7756             Hristian Kirtchev  <kirtchev@adacore.com>
7757             Gary Dismukes  <dismukes@adacore.com>
7758
7759         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
7760         use of entity Exception_Occurrence if it is not available in the
7761         target run-time.
7762
7763         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
7764         concurrent types are declared within an Ada 2005 generic, build their
7765         corresponding record types since they are needed for overriding-related
7766         semantic checks.
7767         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
7768         protected type does not implement a task interface or a nonlimited
7769         interface.
7770         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
7771         type does not implement a protected interface or a nonlimited interface.
7772         (Single_Task_Declaration, Single_Protected_Declaration): use original
7773         entity for variable declaration, to ensure that debugging information
7774         is correcty generated.
7775         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
7776         routines if the expander is not active.
7777         (Analyze_Task_Body): Mark all handlers to stop optimization of local
7778         raise, since special things happen for task exception handlers.
7779
7780         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
7781         concurrent types declared within a generic.
7782         (Check_Dispatching_Operation): Do not emit warning about late interface
7783         operations in the context of an instance.
7784         (Check_Dispatching_Call): Remove restriction against calling a
7785         dispatching operation with a limited controlling result.
7786         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
7787         Register_Interface_DT_Entry by calls to Register_Primitive.
7788         (Check_Dispatching_Formals): Handle properly a function with a
7789         controlling access result.
7790
7791 2007-06-06  Robert Dewar  <dewar@adacore.com>
7792             Arnaud Charlet  <charlet@adacore.com>
7793
7794         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
7795         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
7796         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
7797         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
7798         message when using a VM, since this attribute is not supported.
7799         (Analyze_Record_Representation_Clause): Give unrepped component warnings
7800
7801         * usage.adb: Add new warning for renaming of function return objects
7802         Indicate that -gnatwp and -gnatwP concern front-end inlining
7803         Add line for -gnatyg
7804         Add usage information for -gnatw.c/C
7805
7806 2007-06-06  Robert Dewar  <dewar@adacore.com>
7807             Ed Schonberg  <schonberg@adacore.com>
7808
7809         * sem_ch5.adb
7810         (Find_Var): Do not consider function call in test for infinite loop
7811         warning if warnings set off for function entity.
7812         (One_Bound): Do not create a temporary for a loop bound if it is a
7813         character literal.
7814         (Analyze_Assignment): Traverse the right hand side of an assignment and
7815         mark all allocators as static coextensions.
7816         (Analyze_Assignment): Exempt assignments involving a dispatching call
7817         to a function with a controlling access result from the check requiring
7818         the target to be class-wide.
7819
7820 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
7821             Ed Schonberg  <schonberg@adacore.com>
7822             Robert Dewar  <dewar@adacore.com>
7823             Javier Miranda  <miranda@adacore.com>
7824
7825         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
7826         chain of coextensions when an allocator serves as the root of such a
7827         chain.
7828         (Propagate_Coextensions): Remove the test for the root being an
7829         allocator.
7830         (Resolve_Allocator): Add condition to ensure that all future decoration
7831         occurs on an allocator node. Add processing and cleanup for static
7832         coextensions.
7833         (Valid_Conversion): If the operand type is the limited view of a
7834         class-wide type, use the non-limited view is available to determine
7835         legality of operation.
7836         (Ambiguous_Character): move to spec, for use elsewhere.
7837         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
7838         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
7839         character literals.
7840         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
7841         Do_Division_Check flag explicitly.
7842         (Resolve_Actuals): If the actual is of a synchronized type, and the
7843         formal is of the corresponding record type, this is a call to a
7844         primitive operation of the type, that is declared outside of the type;
7845         the actual must be unchecked-converted to the type of the actual
7846         (Resolve_Call): Kill all current values for any subprogram call if
7847         flag Suppress_Value_Tracking_On_Call is set.
7848         (Resolve_Type_Conversion): Generate error message the the operand
7849         or target of interface conversions come from a limited view.
7850         (Check_Infinite_Recursion): Ignore generated calls
7851         (Check_Allocator_Discrim_Accessibility): New procedure for checking
7852         that an expression that constrains an access discriminant in an
7853         allocator does not denote an object with a deeper level than the
7854         allocator's access type.
7855         (Resolve_Allocator): In the case of an allocator initialized by an
7856         aggregate of a discriminated type, check that associations for any
7857         access discriminants satisfy accessibility requirements by calling
7858         Check_Allocator_Discrim_Accessibility.
7859         (Resolve_Equality_Op): Handle comparisons of anonymous access to
7860         subprogram types in the same fashion as other anonymous access types.
7861         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
7862         message that is not a continuation message.
7863         (Resolve_Type_Conversion): Add missing support for conversion to
7864         interface type.
7865         (Resolve_Actuals): Introduce a transient scope around the call if an
7866         actual is a call to a function returning a limited type, because the
7867         resulting value must be finalized after the call.
7868         (Resolve_Actuals): If the call was given in prefix notations, check
7869         whether an implicit 'Access reference or implicit dereference must be
7870         added to make the actual conform to the controlling formal.
7871
7872 2007-06-06  Robert Dewar  <dewar@adacore.com>
7873             Javier Miranda  <miranda@adacore.com>
7874
7875         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
7876         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
7877         overriding of an inherited private subprogram now there is no need to
7878         inherit its dispatching slot and reduce the size of the dispatch table.
7879         Set_All_DT_Position now ensures that the same slot is now assigned to
7880         both entities. This is required to statically build the dispatch table.
7881         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
7882         of calling Set_All_DT_Position to re-evaluate the position of the
7883         entries in the dispatch table. Such reevaluation is not desired if
7884         the tagged type is already frozen.
7885
7886 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
7887             Gary Dismukes  <dismukes@adacore.com>
7888             Robert Dewar  <dewar@adacore.com>
7889             Javier Miranda  <miranda@adacore.com>
7890
7891         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
7892         reference acts as an lvalue when the attribute name modifies the prefix
7893         (Is_Coextension_Root): New routine.
7894         (Mark_Static_Coextensions): New routine.
7895         (Type_Access_Level): Revise code for checking the level of the
7896         anonymous access type of a return object.
7897         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
7898         (Matches_Prefixed_View_Profile): Remove the no longer necessary
7899         retrieval of the corresponding controlling record type.
7900         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
7901         concurrent types declared within a generic as well as class wide types.
7902         Emit a mode incompatibility error whenever a protected entry or routine
7903         override an interface routine whose first parameter is not of mode
7904         "out", "in out" or access to variable.
7905         (Overrides_Synchronized_Primitive): Rename to
7906         Find_Overridden_Synchronized_Primitive.
7907         (Collect_Interface_Components): New subprogram that collects all the
7908         components of a tagged record containing tags of secondary dispatch
7909         tables.
7910         (Add_Global_Declaration): New procedure
7911         (Abstract_Interface_List): Handle properly the case of a subtype of a
7912         private extension.
7913         (Type_Access_Level): In the case of a type whose parent scope is a
7914         return statement, call Type_Access_Level recursively on the enclosing
7915         function's result type to determine the level of the return object's
7916         type.
7917         (Build_Elaboration_Entity): Build name of elaboration entity from the
7918         scope chain of the entity, rather than the unit name of the file name.
7919         (Check_Nested_Access): New procedure.
7920         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
7921         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
7922         (Get_Renamed_Entity): Utility routine for performing common operation
7923         of chasing the Renamed_Entity field of an entity.
7924
7925 2007-06-06  Robert Dewar  <dewar@adacore.com>
7926
7927         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
7928         elaboration model
7929         (Check_A_Call): Add check for entry call which was causing blowup
7930
7931 2007-06-06  Olivier Hainque  <hainque@adacore.com>
7932
7933         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
7934         special code on ia64-vms to handle major incompatibilities between the
7935         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
7936         this routine with a very different set of arguments and expectations on
7937         the return value.
7938
7939 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7940
7941         * socket.c (__gnat_close_signalling_fd): New function.
7942         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
7943         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
7944         New supporting functions for task safe Netdb operations.
7945
7946 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7947             Olivier Hainque  <hainque@adacore.com>
7948
7949         * a-except-2005.ads, a-except-2005.adb
7950         (Raise_From_Controlled_Operation): New procedure in
7951         (private part of) Ada.Exceptions (standard runtime version). Used to
7952         provide informational exception message when Program_Error is raised as
7953         a result of an Adjust or Finalize operation propagating an exception.
7954         (Rmsg_28): Fix description for E.4(18) check.
7955         (Raise_Current_Excep): Call Debug_Raise_Exception just before
7956         propagation starts, to let debuggers know about the event in a reliable
7957         fashion.
7958         Take the address of E and dereference to make sure it is homed on stack
7959         and prevent the stores from being deleted, necessary for proper
7960         debugger behavior on "break exception" hits.
7961         (Local_Raise): Moved to System.Exceptions
7962
7963         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
7964         exception message from the current occurrence and raise Program_Error
7965         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
7966
7967 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
7968             Arnaud Charlet  <charlet@adacore.com>
7969
7970         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
7971         lock, if needed.
7972
7973         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
7974         priority associated to a lock.
7975
7976         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
7977         assertion to take into account case of no abort restriction.
7978         (Initialize_Protection_Entries): Add initialization for the field
7979         New_Ceiling associated to the protected object.
7980         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
7981         needed.
7982
7983         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7984         since this function needs to be set consistently with Update_Exception.
7985
7986         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
7987         since this function needs to be set consistently with Update_Exception.
7988
7989         * s-taskin.ads: Update comments on
7990         Interrupt_Server_Blocked_On_Event_Flag.
7991         (Unbind_Handler): Fix handling of server_task wakeup
7992         (Server_Task): Set self's state so that Unbind_Handler can take
7993         appropriate actions.
7994         (Common_ATCB): Now use a constant from System.Parameters to determine
7995         the max size of the Task_Image field.
7996
7997         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
7998         Initialize_Analyzer function.
7999         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
8000         take into account case of no abort restriction.
8001         ([Vulnerable_]Complete_Master): Modify assertion.
8002
8003         * s-tataat.adb (Finalize): Use the nestable versions of
8004         Defer/Undefer_Abort.
8005
8006         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
8007
8008         * s-tpobop.ads: Update comments.
8009
8010         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
8011         of locking the object manually, to avoid inconsistencies between
8012         Lock/Unlock_Entry assertions.
8013
8014         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
8015         terminating
8016         application and System.Parameters.No_Abort is True.
8017         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
8018         (Unbind_Handler): Fix handling of server_task wakeup
8019         (Server_Task): Set self's state so that Unbind_Handler can take
8020         appropriate actions.
8021
8022 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8023
8024         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
8025         declarations instead of an explicit null body, for conciseness.
8026
8027 2007-06-06  Robert Dewar  <dewar@adacore.com>
8028
8029         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
8030         illegal aggregate and the type is still Any_Composite.
8031         (Subtypes_Statically_Match): Fix problem of empty discriminant list
8032
8033 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8034
8035         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
8036         to prevent subsequent expansion.
8037
8038 2007-06-06  Robert Dewar  <dewar@adacore.com>
8039
8040         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
8041
8042 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8043             Robert Dewar  <dewar@adacore.com>
8044
8045         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
8046         exceptions.
8047         (Write_Itype): Handle case of string literal subtype, which
8048         comes up in this context.
8049         (Update_Itype): when debugging expanded code, update sloc of itypes
8050         associated with defining_identifiers and ranges, for gdb use.
8051         (Sprint_Node_Actual): Add static keyword to object or exception
8052         declaration output if Is_Statically_Allocated is True.
8053         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
8054         or task body, so that the tree carries the proper Sloc information for
8055         debugging use.
8056         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
8057
8058 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
8059
8060         * s-secsta.adb (Chunk): Ensure this object has a static size known at
8061         compile time, to avoid dynamic memory allocation
8062         (Elaboration code): Only use dynamic memory allocation when needed.
8063
8064 2007-06-06  Quentin Ochem  <ochem@adacore.com>
8065
8066         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
8067         "Overflow_Guard".
8068         (Stack_Analyzer): Added field "Overflow_Guard"
8069         (Task_Result): Added field "Overflow_Guard".
8070         (Index_Str): New constant.
8071         (Task_Name_Str): New constant.
8072         (Actual_Size_Str): New constant.
8073         (Pattern_Array_Element_Size): New constant.
8074         (Get_Usage_Range): New subprogram.
8075         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
8076         Now align the output.
8077         Added comments.
8078         (Initialize): Added value for Overflow_Guard.
8079         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
8080         Update the value of the overflow guard according to the actual
8081         beginning of the pattern array.
8082         (Initialize_Analyzer): Added parameter Overflow_Guard.
8083         Take this parameter into accound when computing the max size.
8084         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
8085         (Report_Result): Removed extra useless procedure.
8086         Updated call to Output_Result.
8087         Moved full computation of the Task_Result here.
8088
8089 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8090
8091         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
8092         Thread_Blocking_IO, always True by default, set False on a per-runtime
8093         basis.
8094         Add Windows-specific constants
8095         Add new constant Need_Netdb_Buffer.
8096         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
8097         not, whether to use getXXXbyYYY_r.
8098
8099         * gsocket.h: Add new constant Need_Netdb_Buffer.
8100         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
8101         not, whether to use getXXXbyYYY_r.
8102
8103 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
8104
8105         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
8106         than their first call.
8107         Add type Dummy_Communication_Block used in the generation of the pre-
8108         defined dispatching primitive _disp_asynchronous_select.
8109         (Storage_Element): Put Pragma Universal_Aliasing on it.
8110
8111 2007-06-06  Vincent Celier  <celier@adacore.com>
8112
8113         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
8114         function.
8115
8116         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
8117         letter if it is not followed by a '/' or a '\'.
8118         (Windows): New Boolean function
8119
8120         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
8121         Ada 2005.
8122         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
8123         drive letter.
8124         (Containing_Directory): Raise Use_Error when the directory is a root
8125         directory.
8126         (Extension): When returning the result, use a conversion to Result_Type,
8127         not a qualification.
8128
8129 2007-06-06  Robert Dewar  <dewar@adacore.com>
8130
8131         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
8132         (Set_Style_Check_Options): Recognize new -gnatyg style switch
8133
8134         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
8135         Warn_On_Non_Local_Exception to False, to turn off warnings for
8136         No_Exception_Propagation in ZFP runtime.
8137         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
8138         back-ends.
8139         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
8140
8141 2007-06-06  Vincent Celier  <celier@adacore.com>
8142
8143         * switch-b.adb (Scan_Binder_Switches): Add processing for new
8144         switches -R and -Z
8145
8146         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
8147         (Scan_Make_Switches): Recognize new switch -aP
8148
8149 2007-06-06  Matthew Gingell  <gingell@adacore.com>
8150             Jose Ruiz  <ruiz@adacore.com>
8151
8152         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
8153         VxWorks task descriptor in the Ada run time, call a C subprogram
8154         (__gnat_get_stack_info) that extracts the required information.
8155
8156         * sysdep.c: Back out temporary lynxos workaround.
8157         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
8158         time the stack information associated to the currently executing task.
8159         Only VxWorks systems require this function.
8160
8161 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
8162
8163         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
8164         add the stack bias if the offset is computed from a frame address.
8165         (__gnat_backtrace): Adjust for above change.
8166
8167 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8168
8169         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
8170         PE_Non_Transportable_Actual.
8171         (By_Descriptor_Last): New constant.
8172         (By_Copy_Return): Likewise.
8173
8174 2007-06-06  Vincent Celier  <celier@adacore.com>
8175
8176         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
8177         is.
8178
8179         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
8180         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
8181         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
8182         Add missing comment for /OPTIMIZE=SPACE
8183         Add entry for OPTIMIZE=SPACE
8184         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
8185         Add documentation for new qualifiers corresponding to -gnatw.c/.C
8186
8187 2007-06-06  Vincent Celier  <celier@adacore.com>
8188             Robert Dewar  <dewar@adacore.com>
8189
8190         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
8191         -gnatw.C)
8192
8193         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
8194         Document gnatbind switch -a
8195         (case Constructions): Document that variables declarations are allowed
8196         for previously declared variables.
8197         Fix external lib project example
8198         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
8199         Indicate that "#if not X or Y then" is not allowed in input files to
8200         gnatprep.
8201         Document gnatw.x and gnatw.X warning flags
8202         Mention -Winline switch to activate warnings when back-end inlining is
8203         ineffective.
8204         Add gnatcheck rule descriptions
8205         Describe how to use the GNAT driver to call a tool on a closure.
8206         Describe how to run project-wide checks or metrics.
8207         Document gnatbind's -R option
8208         Updated to account for Ada 2005 support
8209
8210         * gnat_rm.texi (Case Construction): Allow variable declarations for
8211         previously declared variables.
8212         (Representation Clauses and Pragmas): Lift restriction on alignment
8213         clauses for record types.
8214         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
8215         Document No_Exception_Propagation restriction
8216         Document No_Body pragma
8217         Updated to account for Ada 2005 support; corrected some typos
8218         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
8219
8220         * gnat-style.texi: Make it clear that we never use mode IN for
8221         procedures or functions
8222
8223         * ug_words: Add entries for -gnatw.x and -gnatw.X
8224         Add entries for -gnatw.c/.C
8225
8226 2007-06-06  Pascal Obry  <obry@adacore.com>
8227             Vincent Celier  <celier@adacore.com>
8228
8229         * makegpr.adb (Add_Archive_Path): Use untouched object and library
8230         dirs and library name.
8231         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
8232         comments.
8233         (Build_Library): Idem.
8234         (Compile_Individual_Sources): Idem.
8235         (Compile_Link_With_Gnatmake): Idem.
8236         (Compile_Sources): Idem.
8237         (Get_Imported_Directories): Idem.
8238         (Link_Executables): Idem. Same change for the executable dir.
8239         (Check_Compilation_Needed): C_Source_Path new variable containing
8240         the canonical form of Source_Path to check against the source names
8241         in the dependency file.
8242         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
8243         verbose mode, display the name of the object directory we're changing
8244         to.
8245         (Saved_Switches): New name of table X_Switches
8246         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
8247         (Usage): New line for switch -aP
8248         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
8249         testing if a directory should be added to the search path.
8250
8251 2007-06-06  Javier Miranda  <miranda@adacore.com>
8252
8253         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
8254         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
8255         declaration after freezing point of all its associated tagged types;
8256         otherwise such types are frozen too early.
8257
8258 2007-06-06  Robert Dewar  <dewar@adacore.com>
8259
8260         * a-reatim.adb: Documentation addition
8261
8262         * g-cgideb.adb: Minor code reorganization
8263
8264         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
8265         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
8266         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
8267
8268         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
8269         function.  Change name New_Scope to Push_Scope
8270         (Get_Debug_Flag_K): Remove unused obsolete function.
8271
8272         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
8273         Push_Scope.
8274
8275         * makeusg.adb: Update Copyright notice
8276         Add line for switch -aP
8277
8278         * makeusg.adb: Fix wording of some usage messages
8279
8280         * s-assert.adb (Raise_Assert_Failure): Add call to
8281         Debug_Raise_Assert_Failure.
8282
8283         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
8284         (2, Standard'Alignment) for compatibility with AAMP (where alignment
8285         is restricted to 1).
8286
8287         * s-wchjis.adb: Remove use of System.Pure_Exceptions
8288
8289         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
8290         node location to No_Location when we're not debugging the expanded
8291         code.
8292
8293 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
8294
8295         * misc.c (enumerate_modes): Consider log2_b to always be one.
8296
8297 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
8298
8299         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
8300
8301 2007-05-02  Pascal Obry  <obry@adacore.com>
8302
8303         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
8304         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
8305         encoding support of Stream_IO.
8306         (Write_Unit): Idem.
8307
8308         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
8309         filename and corresponding encoding to match the OS requirement.
8310         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
8311         routine will fail on specific devices like CON: AUX: ...
8312
8313         PR ada/29856: Add missing braces
8314
8315 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8316
8317         PR ada/31660
8318         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
8319
8320 2007-04-21  Jan Hubicka  <jh@suse.cz>
8321
8322         * misc.c (gnat_expand_body): Don't call target for destructors,
8323         avoid redundant check on syntax errors.
8324
8325 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8326
8327         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
8328         instead of checking GIMPLE_STMT_P in chain_next.
8329
8330 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
8331
8332         PR ada/31576
8333         * system-linux-alpha.ads: Disable constant condition warning for the
8334         Default_Bit_Order variable.
8335         * system-linux-s390.ads: Likewise.
8336         * system-linux-s390x.ads: Likewise.
8337         * system-linux-sparc.ads: Likewise.
8338
8339 2007-04-06  Javier Miranda  <miranda@adacore.com>
8340             Matt Heaney  <heaney@adacore.com>
8341             Robert Dewar  <dewar@adacore.com>
8342
8343         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
8344         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
8345         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
8346         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
8347         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
8348         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
8349         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
8350         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
8351         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
8352         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
8353         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
8354         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
8355         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
8356         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
8357         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
8358         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
8359         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
8360         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
8361         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
8362         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
8363         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
8364         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
8365         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
8366         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
8367         s-taprop-tru64.adb, s-taprop-irix.adb,
8368         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
8369         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
8370         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
8371         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
8372         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
8373         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
8374         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
8375         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
8376         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
8377         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
8378         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
8379         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
8380         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
8381         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
8382         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
8383         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
8384         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
8385         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
8386         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
8387         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
8388         access types.
8389         Update documentation.
8390         Minor rewording.
8391
8392 2007-04-06  Robert Dewar  <dewar@adacore.com>
8393
8394         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
8395         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
8396         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
8397         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
8398         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
8399         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8400         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
8401         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
8402         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
8403         system-hpux-ia64.ads, targparm.adb,
8404         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
8405
8406         * system.ads: Move Functions_Return_By_DSP to obsolete section,
8407         kept for bootstrap purposes only.
8408
8409 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
8410
8411         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
8412         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
8413         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
8414         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
8415
8416 2007-04-06  Robert Dewar  <dewar@adacore.com>
8417
8418         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
8419         (Local_Raise): New dummy procedure called when a raise is converted
8420         to a local goto. Used for debugger to detect that the exception
8421         is raised.
8422
8423         * debug.adb: Document new d.g flag (expand local raise statements to
8424         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
8425
8426         * exp_sel.adb: Use Make_Implicit_Exception_Handler
8427
8428         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
8429         suppress warnings for unused handlers.
8430         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
8431         warnings for raise statements not handled locally.
8432         (Get_RT_Exception_Entity): New function
8433         (Get_Local_Call_Entity): New function
8434         (Find_Local_Handler): New function
8435         (Warn_If_No_Propagation): New procedure
8436         (Expand_At_End_Handler): Call Make_Implicit_Handler
8437         (Expand_Exception_Handlers): Major additions to deal with local handlers
8438         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
8439         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
8440         for local raise
8441
8442         * exp_ch11.ads (Get_RT_Exception_Entity): New function
8443         (Get_Local_Call_Entity): New function
8444
8445         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
8446         of restrictions that the binder will never suggest adding.
8447
8448         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
8449         to No_Elist.
8450
8451         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
8452         be with'ed in the presence of pragma Restriction
8453         (No_Exception_Propagation).
8454
8455         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
8456
8457         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
8458         parameter, then the handler is not a suitable target for a local raise,
8459         and this is a violation of restriction No_Exception_Propagation.
8460         (Analyze_Handled_Statements): Analyze choice parameters in exception
8461         handlers before analyzing statement sequence (needed for proper
8462         detection of local raise statements).
8463         (Analyze_Raise_Statement): Reraise statement is a violation of the
8464         No_Exception_Propagation restriction.
8465
8466         * s-rident.ads: Add new restriction No_Exception_Propagation
8467
8468         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
8469         function, like Make_Exception_Handler but sets Local_Raise_Statements
8470         to No_List.
8471         (Add_Unique_Serial_Number): Deal with case where this is called during
8472         processing of configuration pragmas.
8473
8474 2007-04-06  Thomas Quinot  <quinot@adacore.com>
8475             Pat Rogers  <rogers@adacore.com>
8476             Pascal Obry  <obry@adacore.com>
8477
8478         * g-stsifd-sockets.adb: New file.
8479
8480         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
8481         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
8482         g-socthi-vms.adb: Move signalling
8483         fd management to a nested package, so that they can conveniently be
8484         moved to a subunit that is shared across Windows, VMS, and VxWorks
8485         (Ada implementation) or completed with imported bodies from socket.c
8486         (UNIX case).
8487         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
8488         subprograms.
8489         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
8490         the signalling file descriptor.
8491         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
8492         signalling file descriptor.
8493         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
8494         instead of creating a pair of sockets for signalling here.
8495
8496         * g-socthi.adb: Ditto.
8497         Set the runtime process to ignore SIGPIPEs on platforms that support
8498         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
8499
8500         * g-socthi-mingw.adb: Ditto.
8501         (WS_Version): Use Windows 2.2.
8502         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
8503
8504         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
8505         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
8506
8507         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
8508         added GNAT byte swapping facility
8509         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
8510
8511         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
8512
8513         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
8514         New subprograms.
8515         (__gnat_create_signalling_fds): New subprogram.
8516         Set the runtime process to ignore SIGPIPEs on platforms that support
8517         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
8518
8519 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
8520             Vincent Celier  <celier@adacore.com>
8521
8522         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
8523         New version of Ada.Calendar which supports the new upper bound of Ada
8524         time (2399-12-31 86_399.999999999).
8525         The following modifications have been made to the package:
8526          - New representation of time as count of nanoseconds since the start of
8527            Ada time (1901-1-1 0.0).
8528          - Target independent Split and Time_Of routines which service both
8529            Ada 95 and Ada 2005 code.
8530          - Target independent interface to the Ada 2005 children of Calendar.
8531          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
8532          - Handling of non-leap centenial years.
8533          - Updated clock function.
8534          - Updated arithmetic and comparison operators.
8535
8536         * a-caldel.adb (To_Duration): Add call to target independent routine in
8537         Ada.Calendar to handle the conversion of time to duration.
8538
8539         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
8540         (UTC Offset).
8541         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
8542         set off to 0.
8543         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
8544         targets do not have a natural time zone, GMT is used as a default.
8545         (__gnat_get_task_options): New.
8546
8547         * a-direct.adb (Modification_Time): Add with and use clauses for
8548         Ada.Calendar and Ada.
8549         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
8550         since it is no longer needed.
8551         (Duration_To_Time): Removed.
8552         (OS_Time_To_Long_Integer): Removed.
8553         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
8554         Formatting Time_Of routines which automatically handle time zones,
8555         buffer periods and leap seconds.
8556
8557         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
8558         target independent routines in Ada.Calendar.
8559
8560         * a-calfor.ads, a-calfor.adb: 
8561         Code cleanup and addition of validity checks in various routines.
8562         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
8563         Ada.Calendar.
8564
8565         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
8566         independent routine in Ada.Calendar.
8567
8568 2007-04-06  Olivier Hainque  <hainque@adacore.com>
8569
8570         * adaint.c: 
8571         (convert_addresses): Adjust prototype and dummy definition to expect an
8572          extra file_name argument.
8573
8574         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
8575         filling the now expected file_name argument with the appropriate
8576         argv[0] expansion.
8577         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
8578         (tracebk): Array of void * instead of char *, corresponding to what
8579          convert_addresses expects.
8580         (exename): New static global, to hold the executable file name to be
8581         used in all convert_addresses invocations.
8582         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
8583         change.
8584         (__gnat_gmem_a2l_initialize): Resolve exename.
8585         (__gnat_convert_addresses): Use exename as the convert_addresses
8586         file_name argument.
8587
8588         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
8589         "convert_addresses", now expecting a filename argument. Import the
8590         necessary entities to compute the filename to use and pass it to
8591         convert_addresses.
8592
8593 2007-04-06  Matt Gingell  <gingell@adacore.com>
8594
8595         * system-aix.ads: Back out previous change.
8596         (Functions_Return_By_DSP): Removed
8597
8598 2007-04-06  Pascal Obry  <obry@adacore.com>
8599
8600         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
8601         or the monotonic used by Ada.Real_Time) to compute the sleep duration
8602         on Windows.
8603
8604 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
8605
8606         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
8607         function. Its value changes in different VxWorks versions, and it is
8608         now handled by the function __gnat_get_task_options.
8609
8610         * s-taprop-vxworks.adb (Create_Task): Call the function
8611         __gnat_get_task_options to get the required options for creating a task.
8612
8613 2007-04-06  Pascal Obry  <obry@adacore.com>
8614             Thomas Quinot  <quinot@adacore.com>
8615
8616         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
8617         dealing with filename.
8618         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
8619         filename from a standard string to a wide-string depending on the
8620         encoding value.
8621         (__gnat_freopen): Idem.
8622         (__gnat_current_time): New function (wrapper for time(3) standard C
8623         function).
8624
8625         * g-os_lib.ads (Current_Time): New function. Returns the current
8626         system time as an OS_Time value.
8627
8628         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
8629         (Monotonic_Clock): Same.
8630
8631 2007-04-06  Quentin Ochem  <ochem@adacore.com>
8632
8633         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
8634         not on a natural.
8635         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
8636
8637 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
8638
8639         * a-retide.adb: Add elaboration code to ensure that the tasking run
8640         time is initialized when using delay operations even when no task is
8641         created.
8642
8643 2007-04-06  Javier Miranda  <miranda@adacore.com>
8644
8645         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
8646         component Num_Prim_Ops.
8647         (Set_Num_Prim_Ops): Removed.
8648         Remove all the assertions because all the routines of this
8649         package are inline always.
8650         (Get_Offset_Index): Add support to primary dispatch tables.
8651         Move the documentation about the dispatch table to a-tags.ads
8652         (Set_External_Tag): Removed
8653         (Inherit_TSD): Removed.
8654         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
8655         moved to a-tags.ads
8656         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
8657         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
8658         of the TSD field "Table" because this field has been renamed to
8659         "Ifaces_Table".
8660         (Inherit_CPP_DT): Removed.
8661         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
8662         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
8663         declarations have been moved to a-tags.ads
8664         (Check_Size): Removed.
8665         (Expanded_Name): Updated to get access to the new field of TSD
8666         containing the address of the expanded name.
8667         (Get_Access_Level/Set_Access_Level): Removed.
8668         (Get_Predefined_Prim_Op_Address): Removed.
8669         (Set_Predefined_Prim_Op_Address): Removed.
8670         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
8671         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
8672         (Set_Expanded_Name): Removed.
8673         (Inherit_DT): Removed.
8674         (Inherit_CPP_DT): Removed.
8675         (Set_RC_Offset): Removed.
8676         (Set_TSD): Removed.
8677         (Base_Address): New function that displaces "this" to point to the base
8678         of the object (that is, to point to the primary tag of the object).
8679
8680 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8681             Javier Miranda  <miranda@adacore.com>
8682
8683         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
8684         anonymous access component, do not create a master_id if type already
8685         has one, as may happen if the type is a subcomponent of a packed array
8686         type.
8687         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
8688         Initialize_Tag): Remove code associated with the old CPP pragmas.
8689         CPP_Virtual and CPP_Vtable are no longer supported.
8690         (Build_Offset_To_Top_Internal): Add support for concurrent record types
8691         (Build_Offset_To_Top_Functions): Add support for concurrent record types
8692         (Freeze_Record_Type): Remove call to
8693         Init_Predefined_Interface_Primitives.
8694         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
8695         code required to initialize the tags of the secondary dispatch tables.
8696         This leaves the algoritm more clear.
8697         (Init_Secondary_Tags): Add support for concurrent record types
8698         (Make_Predefined_Primitive_Specs): Code cleanup.
8699         (Predefined_Primitive_Bodies): Code cleanup.
8700         (Build_Master_Renaming): New local subprogram.
8701         (Expand_N_Full_Type_Declaration): Build the master_id associated with
8702         anonymous access to task type components.
8703         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
8704         subtype indication are resolved during analysis, and must not be done
8705         here.
8706         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
8707
8708 2007-04-06  Geert Bosch  <bosch@adacore.com>
8709             Ed Schonberg  <schonberg@adacore.com>
8710             Javier Miranda  <miranda@adacore.com>
8711             Bob Duff  <duff@adacore.com>
8712
8713         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
8714         for conversion of a Float_Type'Truncation to integer.
8715
8716         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
8717         check if a node is an attribute that can be handled directly by the
8718         back end.
8719         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
8720         attributes that can be handled directly by the back end.
8721         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
8722         use new predicate Is_Access_Protected_Subprogram_Type.
8723         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
8724         and Unchecked_Union if it is generated as part of the default  Output
8725         procedure for a type with default discriminants.
8726         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
8727         if we are compiling under restriction No_Dispatching_Calls.
8728         (Constrained): Use Underlying_Type, in case the type is private without
8729         discriminants, but the full type has discriminants.
8730         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
8731         call to Build_Get_Access_Level.
8732         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
8733         interface objects requires a call to the run-time subprogram that
8734         returns the base address of the object.
8735         (Valid_Conversion): Improve error message on illegal attempt to store
8736         an anonymous access to subprogram value into a record component.
8737
8738         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
8739         null".
8740         (Simplify_Type_Conversion): New procedure that performs simplification
8741         of Int_Type (Float_Type'Truncation (X)).
8742         (Resolve_Type_Conversion): Call above procedure after resolving operand
8743         and before performing checks. This replaces the existing ineffective
8744         code in Exp_Ch4.
8745         (Set_String_Literal_Subtype): When creating the internal static lower
8746         bound subtype for a string literal, use a newly created copy of the
8747         subtree representing the lower bound.
8748         (Resolve_Call): Exclude build-in-place function calls from transient
8749         scope treatment. Update comments to describe this exception.
8750         (Resolve_Equality_Op): In case of dispatching call check violation of
8751         restriction No_Dispatching_Calls.
8752         (Resolve_Call): If the call returns an array, the context imposes the
8753         component type of the array, and the function has one non-defaulted
8754         parameter, rewrite the call as the indexing of a call with a single
8755         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
8756         in prefix form.
8757         (Resolve_Actuals): If an actual is an allocator for an access parameter,
8758         the master of the created object is the innermost enclosing statement.
8759         (Remove_Conversions): For a binary operator, check if type of second
8760         formal is numeric, to check if an abstract interpretation is present
8761         in the case of exponentiation as well.
8762
8763 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8764             Bob Duff  <duff@adacore.com>
8765
8766         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
8767         copying a parameter list in a call, set properly the First_Named_Formal
8768         and Next_Named_Formal fields in the new list and in the enclosing call.
8769         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
8770         names, to ease typing in the debugger. Improve comments.
8771         (Watch_Node): New variable, intended to be set in the debugger.
8772         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
8773         called when the watched node is created.
8774         (New_Node_Debugging_Output): Combined version of local procedures
8775         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
8776         with a parameter so that conditional breakpoints like "if Node = 12345"
8777         work.
8778         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
8779         Add Elist1 function
8780
8781 2007-04-06  Thomas Quinot  <quinot@adacore.com>
8782             Ed Schonberg  <schonberg@adacore.com>
8783             Gary Dismukes  <dismukes@adacore.com>
8784
8785         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
8786         required for a conversion between two access-to-unconstrained-array
8787         types.
8788         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
8789         to discriminant constraints on discriminant objects. This rule must
8790         apply as well to discriminants of protected types in private components.
8791         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
8792         object of a null-excluding access type then don't require the
8793         the object declaration to have an expression and don't emit a
8794         run-time check.
8795
8796 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
8797             Eric Botcazou  <botcazou@adacore.com>
8798
8799         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
8800         and made constant.
8801
8802         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
8803         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
8804         carry any.
8805
8806         * fe.h (Compiler_Abort): Add third parameter.
8807
8808         * misc.c (internal_error_function): Build third argument from current
8809         input location and pass it to Compiler_Abort.
8810
8811 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
8812
8813         * cstand.adb (Create_Standard): When the target's storage unit size is
8814         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
8815         Standard_String.
8816
8817 2007-04-06  Nicolas Roche  <roche@adacore.com>
8818
8819         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
8820         absolute path can have the following form: device:/a/b. In this case
8821         '/' should be inserted between the path and the filename.
8822
8823 2007-04-06  Olivier Hainque  <hainque@adacore.com>
8824             Eric Botcazou  <botcazou@adacore.com>
8825
8826         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
8827         VAR_DECL to a CONST_DECL we make for a public constant when we know the
8828         corresponding definition has created the so made visible variable.
8829         Handle anonymous access to protected subprogram.
8830         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
8831         object with an address clause volatile.  Re-enable original fix.
8832         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
8833         too.
8834         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
8835         associated with either the Equivalent or Root type, instead of the
8836         naked type node.
8837         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
8838         subtree for every field of a global record type.
8839         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
8840         discriminants, invoke again variable_size on its newly computed sizes.
8841
8842 2007-04-06  Robert Dewar  <dewar@adacore.com>
8843             Thomas Quinot  <quinot@adacore.com>
8844             Ed Schonberg  <schonberg@adacore.com>
8845             Bob Duff  <duff@adacore.com>
8846
8847         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
8848         (Next_Component_Or_Discriminant): New function and procedure
8849         (First_Index, First_Literal, Master_Id,
8850         Set_First_Index, Set_First_Literal, Set_Master_Id):
8851         Add missing Ekind assertions.
8852         (Is_Access_Protected_Subprogram_Type): New predicate.
8853         (Has_RACW): New entity flag, set on package entities to indicate that
8854         the package contains the declaration of a remote accecss-to-classwide
8855         type.
8856         (E_Return_Statement): This node type has the Finalization_Chain_Entity
8857         attribute, in case the result type has controlled parts.
8858         (Requires_Overriding): Add this new flag, because "requires
8859         overriding" is subtly different from "is abstract" (see AI-228).
8860         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
8861         Is_Abstract_Type. Make sure these are called only when appropriate.
8862         (Has_Pragma_Unreferenced_Objects): New flag
8863
8864         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
8865         class-wide, the tag of the right-hand side must be an exact match, not
8866         an ancestor of that of the object on left-hand side.
8867         (Move_Activation_Chain): New procedure to create the call to
8868         System.Tasking.Stages.Move_Activation_Chain.
8869         (Expand_N_Extended_Return_Statement): Generate code to call
8870         System.Finalization_Implementation.Move_Final_List at the end of a
8871         return statement if the function's result type has controlled parts.
8872         Move asserts to Build_In_Place_Formal.
8873         (Move_Final_List): New function to create the call statement.
8874         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
8875         tagged type, replace generation of call to the run-time subprogram
8876         CW_Membership by call to Build_CW_Membership.
8877         (Expand_N_Return_Statement): Replace generation of call to the run-time
8878         subprogram Get_Access_Level by call to Build_Get_Access_Level.
8879         (Expand_N_Simple_Function_Return): Replace generation of call to the
8880         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
8881
8882         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
8883         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
8884         access to protected operations.
8885         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
8886         master and chain actual parameters to a build-in-place function call
8887         involving tasks.
8888         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
8889         statement.
8890         (Make_Build_In_Place_Call_In_Allocator,
8891         Make_Build_In_Place_Call_In_Anonymous_Context,
8892         Make_Build_In_Place_Call_In_Assignment,
8893         Make_Build_In_Place_Call_In_Object_Declaration): Call
8894         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
8895         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
8896         stubbed procedure with a null body, replace the call with a null
8897         statement without using the full inlining machinery, for efficiency
8898         and to avoid invalid values in source file table entries.
8899
8900         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
8901         renamings of calls to build-in-place functions.
8902
8903         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
8904         provides the functionality of RTE_Available to record components.
8905         (RTU_Entity): The function Entity has been renamed to RTU_Entity
8906         to avoid undesired overloading.
8907         (Entity): New subprogram that returns the entity for the referened
8908         unit. If this unit has not been loaded, it returns Empty.
8909         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
8910         Remove no longer used entities.
8911         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
8912         (RE_Type_Specific_Data): New entity.
8913         (RE_Move_Any_Value): New entity.
8914         (RE_TA_A, RE_Get_Any_Type): New entities.
8915         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
8916          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
8917          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
8918         (Entity): New subprogram that returns the entity for the referened
8919         unit. If this unit has not been loaded, it returns Empty.
8920         (RTE): Addition of a new formal that extends the search to the scopes
8921         of the record types found in the chain of the package.
8922
8923         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
8924         "abstract subprograms must be visible" message, whether or not the type
8925         is an interface; that is, remove the special case for interface types.
8926         (Analyze_Function_Return): Remove error message "return of task objects
8927         is not yet implemented" because this is now implemented.
8928         (Create_Extra_Formals): Add the extra master and activation chain
8929         formals in case the result type has tasks.
8930         Remove error message "return of limited controlled objects is not yet
8931         implemented".
8932         (Create_Extra_Formals): Add the extra caller's finalization list formal
8933         in case the result type has controlled parts.
8934         (Process_Formals): In case of access formal types there is no need
8935         to continue with the analysis of the formals if we already notified
8936         errors.
8937         (Check_Overriding_Indicator): Add code to check overriding of predefined
8938         operators.
8939         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
8940         flags for formals that do not require them,.
8941         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
8942         hidden entity is use visible or directly visible.
8943         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
8944         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
8945         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
8946         New_Overloaded_Entity): Split Is_Abstract flag into
8947         Is_Abstract_Subprogram and Is_Abstract_Type.
8948
8949         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
8950         a return statement's finalization list to the caller's list, used for
8951         build-in-place functions with result type with controlled parts.
8952         Remove no longer used entities.
8953
8954         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
8955         longer needed, because the full type is now limited, and therefore a
8956         pass-by-reference type.
8957         (Foreign_Task_Level): New constant.
8958
8959         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
8960         move tasks from the activation chain belonging to a return statement to
8961         the one passed in by the caller, and update the master to the one
8962         passed in by the caller.
8963         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
8964         of unactivated tasks, so we don't kill the ones that are being returned
8965         by a build-in-place function.
8966         (Create_Task): Ignore AI-280 for foreign threads.
8967
8968 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
8969             Robert Dewar  <dewar@adacore.com>
8970             Bob Duff  <duff@adacore.com>
8971             Gary Dismukes  <dismukes@adacore.com>
8972
8973         * errout.adb (Unwind_Internal_Type): Use predicate
8974         Is_Access__Protected_Subprogram_Type.
8975
8976         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
8977         (Freeze_Entity, packed array case): Do not override explicitly set
8978         alignment and size clauses.
8979         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
8980         the enclosing subprogram is a child unit body that acts as a spec.
8981         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
8982         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
8983         Remove all code for DSP option
8984
8985         * layout.adb (Layout_Record_Type): Use First/
8986         Next_Component_Or_Discriminant
8987         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
8988         to handle properly the anonymous access case.
8989
8990         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
8991         for all access attributes, because overload resolution should work the
8992         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
8993         causes the error message for the ambiguous "X'Access = Y'Access" and
8994         "X'Unrestricted_Access = Y'Access" and so forth to match.
8995         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
8996         now that anonymous access to protected operations have their own kind.
8997         (Resolve_Attribute): In case of dispatching call check the violation of
8998         restriction No_Dispatching_Calls.
8999         (Check_Array_Type): Check new -gnatyA array index style option
9000
9001         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
9002         attempt to derive from a synchronized tagged type.
9003         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
9004         type, inherit the class-wide type already created, because it may
9005         already have been used in a self-referential anonymous access component.
9006         (Mentions_T): Recognize self-referential anonymous access components
9007         that use (a subtype of) the class-wide type of the enclosing type.
9008         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
9009         Derived_Type for Prev formal on call to
9010         Check_Anonymous_Access_Components rather than Empty.
9011         (Make_Incomplete_Type_Declaration): Add test for case where the type has
9012         a record extension in deciding whether to create a class-wide type,
9013         rather than just checking Tagged_Present.
9014         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
9015         to stand-alone object declarations as well as component declarations.
9016         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
9017         prevent accidental overwriting when enclosing package appears in
9018         a limited_with_clause.
9019         (Array_Type_Declaration): If the component type is an anonymous access,
9020         the associated_node for the itype is the type declaration itself.
9021         (Add_Interface_Tag_Components): Modified to support concurrent
9022         types with abstract interfaces.
9023         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
9024         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
9025         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
9026         to complete the decoration of synchronized interface types. Add also
9027         a call to Check_Abstract_Interfaces to verify the ARM rules.
9028         (Derive_Interface_Subprograms): Modified to support concurrent types
9029         with abstract interfaces.
9030         (Analyze_Subtype_Indication): Resolve the range with the given subtype
9031         mark, rather than delaying the full resolution depending on context.
9032         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
9033         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
9034         Array_Type_Declaration,Build_Derived_Record_Type,
9035         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
9036         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
9037         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
9038         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
9039         called only when appropriate.
9040         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
9041         to private type.
9042         (Analyze_Subtype_Declaration): For an access subtype declaration, create
9043         an itype reference for the anonymous designated subtype, to prevent
9044         scope anonmalies in gigi.
9045         (Build_Itype_Reference): New utility, to simplify construction of such
9046         references.
9047
9048 2007-04-06  Vincent Celier  <celier@adacore.com>
9049
9050         * errutil.adb (Initialize): Initialize warnings table, if all warnings
9051         are suppressed, supply an initial dummy entry covering all possible
9052         source locations.
9053
9054         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
9055         and start with only one, such as "-RTS=none".
9056         (Collect_Arguments): Do not check for sources outside of projects.
9057         Do not collect arguments if project is externally built.
9058         (Compile_Sources): Do nothing, not even check if the source is up to
9059         date, if its project is externally built.
9060         (Compile): When compiling a predefined source, add -gnatpg
9061         as the second switch, after -c.
9062         (Compile_Sources): Allow compilation of Annex J renames without -a
9063         (Is_In_Object_Directory): Check if the ALI file is in the object
9064         even if there is no project extension.
9065         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
9066         gnatbind if the ALI file effectively exists.
9067         (Initialize): Add the directory where gnatmake is invoked in front of
9068         the path if it is invoked from a bin directory, even without directory
9069         information, so that the correct GNAT tools will be used when spawned
9070         without directory information.
9071
9072         * makeusg.adb: Change switch -S to -eS
9073         Add lines for new switches -we, -wn and -ws
9074         Add line for new switch -p
9075
9076         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
9077         Treat_As_Error and there are warnings.
9078
9079         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
9080         -gnatww Change gnatmake switch -S to -eS
9081         (Scan_Make_Switches): Code reorganisation. Process separately multi
9082         character switches and single character switches.
9083         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
9084         False when switch is not recognized by gnatmake.
9085         (Scan_Make_Switches): Set Setup_Projects True when -p or
9086         --create-missing-dirs is specified.
9087
9088         * fname.adb (Is_Predefined_File_Name): Return True for annex J
9089         renamings Calendar, Machine_Code, Unchecked_Conversion and
9090         Unchecked_Deallocation only when Renamings_Included is True.
9091
9092         * par.adb: Allow library units Calendar, Machine_Code,
9093         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
9094         when -gnatg is not specified.
9095         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
9096         there is no need to generate always a record_definition_node in case
9097         of synchronized interface types.
9098         (SIS_Entry_Active): Initialize global variable to False
9099         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
9100         indicate cases where AI-447 says "not null" is legal.
9101
9102         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
9103
9104         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
9105         files with with several lines starting with the object fileb name.
9106         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
9107         is specified.
9108         (Initialize): Add the directory where gprmake is invoked in front of the
9109         path, if it is invoked from a bin directory or with directory
9110         information, so that the correct GNAT tools will be used when invoked
9111         directly.
9112         (Check_Compilation_Needed): Process correctly backslashes on Windows.
9113
9114         * vms_data.ads: Update switches/qualifiers
9115
9116 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9117             Thomas Quinot  <quinot@adacore.com>
9118
9119         * exp_aggr.adb:
9120         If the array component is a discriminated record, the array aggregate
9121         is non-static even if the component is given by an aggregate with
9122         static components.
9123         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
9124         (Convert_Aggr_In_Allocator): If the allocator is for an access
9125         discriminant and the type is controlled. do not place on a finalization
9126         list at this point. The proper list will be determined from the
9127         enclosing object.
9128         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
9129         initialize record controller if needed, before the components, to ensure
9130         that they are properly finalized.
9131         (Build_Record_Aggr_Code): For the case of an array component that has a
9132         corresponding array aggregate in the record aggregate, perform sliding
9133         if required.
9134
9135 2007-04-06  Javier Miranda  <miranda@adacore.com>
9136             Gary Dismukes  <dismukes@adacore.com>
9137             Ed Schonberg  <schonberg@adacore.com>
9138
9139         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
9140         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
9141
9142         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
9143         accessibility on class-wide allocators if the allocator occurs at the
9144         same scope level as the allocator's type. The check is guaranteed to
9145         succeed in that case, even when the expression originates from a
9146         parameter of the containing subprogram.
9147         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
9148         under No_Dispatching_Calls restriction. During the semantic analysis
9149         we already notified such violation.
9150         (Tagged_Membership): Constant folding. There is no need to check
9151         the tag at run-time if the type of the right operand is non
9152         class-wide abstract.
9153         Replace call to Is_Ancestor by call to Is_Parent
9154         to support concurrent types with interface types.
9155         (Expand_N_Allocator): Add an assertion associated with the generation
9156         of the master_id.
9157         (Expand_N_Slice): Do not enable range check to nodes associated
9158         with the frontend expansion of the dispatch table.
9159         (Is_Local_Access_Discriminant): Subsidiary function to
9160         Expand_N_Allocator.
9161         (Tagged_Membership): Replace generation of call to the run-time
9162         subprogram CW_Membership by call to Build_CW_Membership.
9163         (Expand_Allocator_Expression): Replace generation of call to the
9164         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
9165
9166         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
9167         initialize most the TSD components by means of an aggregate.
9168         Modify the declaration of the object containing the TSD
9169         because we now expand code that has a higher level of abstraction.
9170         The TSD has a discriminant containing the Inheritance Depth Level,
9171         value that is used in the membership test but also to fix the size
9172         of the table of ancestors.
9173         (Expand_Interface_Conversion): Insert function body at the closest place
9174         to the conversion expression, to prevent access-before-elaboration
9175         errors in the backend.
9176         Code improved to reduce the size of the dispatch table if
9177         compiling under restriction No_Dispatching_Calls plus code cleanup.
9178         Code reorganization plus removal of calls to Set_Num_Prim_Ops
9179         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
9180         (Expand_Dispatching_Call): Minor code reorganization plus addition of
9181         code to return immediately if compiling under No_Dispatching_Calls
9182         restriction.
9183         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
9184         CPP_Virtual and CPP_Vtable are no longer supported.
9185         (Expand_Interface_Conversion): Add missing support for interface type
9186         derivations.
9187         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
9188         Is_Parent to support concurrent types with interfaces.
9189         (Init_Predefined_Interface_Primitives): Removed.
9190         (Make_Secondary_DT): Modified to support concurrent record types.
9191         (Set_All_DT_Position): Modified to support concurrent record types.
9192         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
9193         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
9194         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
9195         with CW_Membership.
9196         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
9197         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
9198         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
9199         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
9200         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
9201         (Expand_Dispatching_Call): Replace generation of call to the run-time
9202         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
9203         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
9204         Address.
9205         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
9206         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
9207         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
9208         Build_Set_Prim_Op_Address.
9209         (Get_Remotely_Callable): Subprogram removed.
9210         (Init_Predefined_Interface_Primitives): Replace generation of call to
9211         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
9212         Prims.
9213
9214         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
9215         First (Parameter_Associations ()) with the call to First_Actual that
9216         returns an actual parameter expression for both named and positional
9217         associations.
9218
9219         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
9220         check violation of restriction No_Dispatching_Calls.
9221         (Check_Controlling_Type): A formal of a tagged incomplete type is a
9222         controlling argument.
9223
9224         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
9225         First/Next_Component_Or_Discriminant
9226         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
9227         (Find_Implemented_Interface): Removed. All the calls to this subprogram
9228         specify Any_Limited_Interface, and this functionality is already
9229         provided by the function Has_Abstract_Interfaces.
9230         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
9231         support concurrent types implementing interfaces.
9232         (Find_Implemented_Interface): Removed. All the calls to this subprogram
9233         specify kind Any_Limited_Interface, and this functionality is already
9234         provided by the function Has_Abstract_Interfaces.
9235         (Remove_Side_Effects): replace Controlled_Type by
9236         CW_Or_Controlled_Type whenever the issue is related to
9237         using or not the secondary stack.
9238
9239         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
9240         P_Interface_Type_Definition to fulfill the new interface (the formal
9241         Is_Synchronized is no longer required).
9242
9243         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
9244         Update dependencies.
9245
9246         * exp_atag.ads, exp_atag.adb: New file
9247
9248 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9249             Bob Duff  <duff@adacore.com>
9250             Cyrille Comar  <comar@adacore.com>
9251
9252         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
9253         anonymous, use finalization list of enclosing dynamic scope.
9254         (Expand_N_Package_Declaration): For a library package declaration
9255         without a corresponding body, generate RACW subprogram bodies in the
9256         spec (just as we do for the task activation call).
9257         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
9258         Is_Abstract_Type. Make sure these are called only when appropriate.
9259         Remove all code for DSP option
9260         (CW_Or_Controlled_Type): new subprogram.
9261
9262 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
9263             Ed Schonberg  <schonberg@adacore.com>
9264             Gary Dismukes  <dismukes@adacore.com>
9265
9266         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
9267         parameter. If it is set to true, return a result capped according to
9268         the global upper bound for the index of an entry family.
9269         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
9270         (Build_Find_Body_Index): Adjust for above change.
9271         (Entry_Index_Expression): Likewise.
9272         (Is_Potentially_Large_Family): New function extracted from...
9273         (Collect_Entry_Families): ...here. Call it to detect whether the family
9274         is potentially large.
9275         (Build_Entry_Count_Expression): If the family is potentially large, call
9276         Family_Size with 'Cap' set to true.
9277         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
9278         a protected version of an operation declared in the private part of
9279         a protected object, because they may be invoked through a callback.
9280         (Set_Privals): If the type of a private component is an anonymous access
9281         type, do not create a new itype for each protected body.
9282         If the body of a protected operation creates
9283         controlled types (including allocators for class-widetypes), the
9284         body of the corresponding protected subprogram must include a
9285         finalization list.
9286         (Build_Activation_Chain_Entity): Build the chain entity for extended
9287         return statements.
9288         (Type_Conformant_Parameters): Use common predicate Conforming_Types
9289         to determine whether operation overrides an inherited primitive.
9290         (Build_Wrapper_Spec): Add code to examine the parents while looking
9291         for a possible overriding candidate.
9292         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
9293         hold an actual parameter value since its initialization is separated
9294         from the the declaration. Prevents errors on null-excluding access
9295         formals.
9296
9297 2007-04-06  Thomas Quinot  <quinot@adacore.com>
9298             Pablo Oliveira  <oliveira@adacore.com>
9299
9300         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
9301         Do an Unchecked_Conversion to handle the passage from the Underlying
9302         Type to the Base Type when calling Build_To_Any_Call and
9303         Build_From_Any_Call.
9304         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
9305         E_Constant, depending upon Variable formal.
9306         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
9307         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
9308         parameter that requires an extra constrained parameter, declare
9309         temporary for actual as a variable, not a constant.
9310         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
9311         the unit being compiled is the one that contains the stub type.
9312         Change primitive operation name for the RACW associated with a RAS
9313         from Call to _Call so it cannot clash with any legal identifier.
9314         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
9315         Is_RAS.
9316         (Append_RACW_Bodies): New subprogram.
9317         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
9318         Add_Receiving_Stubs_To_Declarations functions.
9319         When expanding a package body, this list correspond to the
9320         statements in the HSS at the end of the pacakge.
9321         When expanding a package spec, this list correspond to the
9322         spec declarations.
9323         (Add_Receiving_Stubs_To_Declarations): Append the function
9324         registering the receiving stubs at the end of the 'Stmts' list.
9325         (RCI_Package_Locator): Pass the new Version generic formal when
9326         instantiating a RCI_Locator package.
9327         (Build_From_Any_Function): To compute the High bound for an
9328         unconstrained array actual, we add the Low bound with the length.
9329         Thus we must convert the low bound and the length to an appropriate
9330         type before doing the sum.
9331         (Build_Subprogram_Receiving_Stubs, PolyORB):
9332          * Retrieve the extra formals parameters at the
9333            end of the parameter stream.
9334          * Use Move_Any_Value to write back out parameters
9335            after executing the request as it is more efficient
9336            than Copy_Any_Value.
9337          * Build the any containing Extra Formals with the
9338            appropriate typecode.
9339         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
9340         empty Component_List.
9341         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
9342         the tree the declaration for an object that serves as actual parameter
9343         in server-side stubs.
9344         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
9345         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
9346         Use Build_Actual_Object_Declaration to prepare the actuals.
9347         (Add_Parameter_To_NVList): Set the parameter mode to In for
9348         Extra Constrained Parameters.
9349         (Build_General_Calling_Stubs): Set the parameter type to boolean for
9350         Extra Constrained parameters.
9351         (Build_To_Any_Function, Build_From_Any_Function,
9352         Built_TypeCode_Function): When Typ is implicit, call the correct
9353         function with the first not implicit parent type.
9354         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
9355         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
9356         typecode from the Etype. Therefore we retrieve the correct typecode
9357         with a call to Get_Any_Type.
9358         (Copy_Specification): Do controlling formal type substitution based on
9359         Is_Controlling_Formal flag, instead of caller-provided object type.
9360         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
9361         a RACW primitive operation, we might get a subprogram declaration for an
9362         ancestor of the RACW designated type (not for the designated type
9363         itself), in the case where this operation is inherited. In this case we
9364         have no easy means of determining the original tagged type for which
9365         the primitive was declared, so instead we now rely on
9366         Copy_Specification to use the Is_Controlling_Formal flag to determine
9367         which formals require type substitution.
9368
9369 2007-04-06  Robert Dewar  <dewar@adacore.com>
9370             Ed Schonberg  <schonberg@adacore.com>
9371
9372         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
9373         GNAT.Current_Exception are not allowed if pragma Restrictions
9374         (No_Exception_Propagation) is set and in any case make the associated
9375         handler unsuitable as a target for a local raise statement.
9376         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
9377         run-time subprogram CW_Membership by call to Build_CW_Membership.
9378         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
9379         by a function call, a temporary must be created before expanding the
9380         Constructor_Call itself, to prevent out-of-order elaboration in the
9381         back-end when stack checking is enabled..
9382
9383 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9384
9385         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
9386         result are the bounds of the left operand, not the right.
9387
9388 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9389
9390         * exp_strm.adb
9391         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
9392          discriminant defaults.
9393         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
9394         (Make_Component_List_Attributes): Ditto.
9395
9396 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9397             Bob Duff  <duff@adacore.com>
9398
9399         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
9400         an association with a box as providing a value even though the
9401         initialization procedure for the type is not available.
9402         (Resolve_Record_Aggregate): Check that a choice of an association with a
9403         box corresponds to a component of the type.
9404         (Resolve_Record_Aggregate): Split Is_Abstract flag into
9405         Is_Abstract_Subprogram and Is_Abstract_Type.
9406
9407         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
9408         assert.
9409
9410         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
9411         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
9412         called only when appropriate.
9413
9414 2007-04-06  Olivier Hainque  <hainque@adacore.com>
9415
9416         * g-alleve.ads (Low Level Vector type definitions): Map each to the
9417         associated vector view instead of all to the unsigned char view.
9418
9419         * g-altcon.adb (Generic_Conversions): New internal generic package,
9420         offering facilities for all the Vector/View conversion routines
9421         implemented by this unit.
9422         (To_View/To_Vector - all versions): Reimplemented in a systematic
9423         manner, using the internal Generic_Conversions facilities.
9424
9425 2007-04-06  Pascal Obry  <obry@adacore.com>
9426
9427         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
9428         string.
9429         (Create): Free the source string before storing the new one.
9430
9431 2007-04-06  Vincent Celier  <celier@adacore.com>
9432
9433         * g-debpoo.adb (Validity): New package with a complete new
9434         implementation of subprograms Is_Valid and Set_Valid.
9435         (Is_Valid): Move to local package Validity
9436         (Set_Valid): Move to local package Validity
9437
9438 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
9439             Pablo Oliveira  <oliveira@adacore.com>
9440
9441         * g-expect.adb (Get_Command_Output): When expanding the output buffer
9442         we must ensure that there is enough place for the new data we are going
9443         to copy in.
9444
9445 2007-04-06  Thomas Quinot  <quinot@adacore.com>
9446
9447         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
9448         computation.
9449
9450 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
9451             Vincent Celier  <celier@adacore.com>
9452
9453         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
9454         (Stack_String): Add this String that contains the name of the Stack
9455         package in the project file.
9456         (Packages_To_Check_By_Stack): Add this list that contains the packages
9457         to be checked by gnatstack, which are the naming and the stack packages.
9458         (Check_Files): If no .ci files were specified for gnatstack we add all
9459         the .ci files belonging to the projects, including binder generated
9460         files.
9461         (Non_VMS_Usage): Document that gnatstack accept project file switches.
9462         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
9463         Add gnatstack to the list of commands that use project file related
9464         switches, and get the single attribute Switches from the stack package
9465         in a project file when calling gnatstack. Parse the -U flag for
9466         processing files belonging to all projects in the project tree.
9467         Remove all processing for command Setup
9468
9469         * prj-attr.adb: Add new package Stack with single attribute Switches
9470
9471         * vms_conv.ads (Command_Type): Add command Stack.
9472         Move to body declarations that are only used in the body: types Item_Id,
9473         Translation_Type, Item_Ptr, Item and its subtypes.
9474
9475         * vms_conv.adb: (Initialize): Add data for new command Stack.
9476         Add declarations moved from the spec: types Item_Id, Translation_Type,
9477         Item_Ptr, Item and its subtypes.
9478         (Cargs_Buffer): New table
9479         (Cargs): New Boolean global variable
9480         (Process_Buffer): New procedure to create arguments
9481         (Place): Put character in table Buffer or Cargs_Buffer depending on the
9482          value of Cargs.
9483         (Process_Argument): Set Cargs when processing qualifiers for GNAT
9484         COMPILE
9485         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
9486         empty, for table Cargs_Buffer.
9487         (Initialize): Remove component Setup in Command_List
9488
9489 2007-04-06  Vincent Celier  <celier@adacore.com>
9490
9491         * gprep.adb (Process_Files.Process_One_File): Use full file name when
9492         issuing pragma Source_Reference.
9493
9494 2007-04-06  Emmanuel Briot  <briot@adacore.com>
9495
9496         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
9497         [[:xdigit:]] character class.
9498         Also raise an exception when an invalid character class is used.
9499
9500 2007-04-06  Pascal Obry  <obry@adacore.com>
9501
9502         * i-cstrea.ads: (fopen): Add encoding parameter.
9503         (freopen): Idem.
9504         Change reference from a-sysdep.c to sysdep.c in comment.
9505         Update copyright notice.
9506         This set of patch add support for the encoding form parameter.
9507
9508         * mingw32.h (S2WSU): New macro to convert from a string to a
9509         wide-string using the UTF-8 encoding. The S2WS macro supports now only
9510         standard 8bits encoding.
9511         (WS2SU): As above but converting from wide-sring to string.
9512         This is needed as it is necessary to have access to both versions in the
9513         runtime for the form parameter encoding support.
9514         This set of patch add support for the encoding form parameter.
9515         (S2WS): Improve implementation to handle cases where the filename is not
9516         UTF-8 encoded. In this case we default to using the current code page
9517         for the conversion.
9518
9519         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
9520         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
9521         the constants defined in adaint.h.
9522         (fopen): Add encoding parameter.
9523         (freopen): Idem.
9524
9525         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
9526         encoding. This is needed for the Reset routine (freopen low level-call).
9527
9528         * s-fileio.adb (Open): Decode encoding form parameter and set the
9529         corresponding encoding value into AFCB structure.
9530         (Reset): Pass the encoding value to freopen.
9531         (Close): Move the call to Lock_Task to the beginning of the procedure.
9532
9533 2007-04-06  Geert Bosch  <bosch@adacore.com>
9534             Robert Dewar  <dewar@adacore.com>
9535
9536         * i-fortra.ads: Add Double_Complex type.
9537
9538         * impunit.adb: (Is_Known_Unit): New function
9539         Add Gnat.Byte_Swapping
9540         Add GNAT.SHA1
9541         Add new Ada 2005 units
9542         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
9543         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
9544         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
9545         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
9546
9547         * impunit.ads (Is_Known_Unit): New function
9548
9549         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
9550         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
9551         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
9552         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
9553         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
9554         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
9555         New files.
9556
9557         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
9558
9559         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
9560
9561 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
9562             Arnaud Charlet  <charlet@adacore.com>
9563
9564         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
9565         __gnat_adjust_context_for_raise.
9566         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
9567         implementation of floating point operations as native x86 targets.
9568         So the FPU should be initialized in the same way using finit. Fix
9569         floating point operations accuracy issues.
9570         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
9571         member in struct sigaction, so as to avoid warning for incompatible
9572         pointer types.
9573
9574 2007-04-06 Serguei Rybin  <rybin@adacore.com>
9575
9576         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
9577         switches from previously loaded tree
9578
9579 2007-04-06  Thomas Quinot  <quinot@adacore.com>
9580
9581         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
9582         cases where a given dependency has a body or not.
9583         (Write_With_File_Names): New subprogram, common code for the two cases
9584         above.
9585
9586 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9587             Javier Miranda  <miranda@adacore.com>
9588
9589         * lib-xref.ads, lib-xref.adb: 
9590         Modify the loop that collects type references, to include interface
9591         types that the type implements. List each of these interfaces when
9592         building the entry for the type.
9593         (Generate_Definition): Initialize component Def and Typ of new entry
9594         in table Xrefs, to avoid to have these components unitialized.
9595         (Output_References): Split Is_Abstract flag into
9596         Is_Abstract_Subprogram and Is_Abstract_Type.
9597         (Generate_Reference): Add barrier to do not generate the warning
9598         associated with Ada 2005 entities with entities generated by the
9599         expander.
9600
9601 2007-04-06  Robert Dewar  <dewar@adacore.com>
9602             Arnaud Charlet  <charlet@adacore.com>
9603             Vincent Celier  <celier@adacore.com>
9604
9605         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
9606         Update 'Exception Handling Control' chapter which was outdated.
9607         Minor fix to documentation of -gnatwq
9608         Remove section "Adapting the Run Time to a New C++ Compiler" because
9609         it is now obsolete.
9610         Add passage on need of -nostart-files in some non-ada-main cases.
9611         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
9612         Update documentation about Interfacing with C++
9613         Add documentation for new gnatmake switch -p
9614         Add missing protocol part in URLs.
9615         Document -gnatyA
9616         Document pragma Compile_Time_Error
9617         Add documentation for Object_Size indicating that stand alone
9618         objects can have a larger size in some cases.
9619         Add node for GNAT.Byte_Swapping, GNAT.SHA1
9620         Update reference to the Ravenscar profile.
9621         Document pragma Unreferenced_Objects
9622
9623         * gnat-style.texi: Fix typo
9624
9625 2007-04-06  Vincent Celier  <celier@adacore.com>
9626
9627         * mlib.adb (Building_Library): Only output "building a library..." in
9628         verbose mode
9629
9630         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
9631         files in verbose mode.
9632
9633         * mlib-utl.adb (Ar): Only output the first object files when not in
9634         verbose mode.
9635         (Gcc): Do not display all the object files if not in verbose mode, only
9636         the first one.
9637
9638 2007-04-06  Robert Dewar  <dewar@adacore.com>
9639
9640         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
9641         it no longer destroys the contents of Name_Buffer or Name_Len and
9642         non-standard and invalid names are handled better.
9643         (Get_Decoded_Name_String): Improve performance by using
9644         Name_Has_No_Encodings flag in the name table.
9645         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
9646         Used for debugging printouts.
9647
9648 2007-04-06  Robert Dewar  <dewar@adacore.com>
9649             Javier Miranda  <miranda@adacore.com>
9650             Bob Duff  <duff@adacore.com>
9651
9652         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
9653         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
9654         there is no need to generate always a record_definition_node in case
9655         of synchronized interface types.
9656         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
9657         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
9658         illegal in Ada 95, in cases where it is legal. Change the warnings to
9659         errors in other cases. Don't give the error unless the "not null"
9660         parses properly. Correct the source position at which the error occurs.
9661         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
9662         P_Null_Exclusion, to suppress "not null" warnings.
9663         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
9664         associated goto statements.
9665
9666         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
9667         of END RECORD
9668
9669         * scans.ads (Type_Token_Location): New flag
9670
9671         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
9672         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
9673         P_Null_Exclusion, to suppress "not null" warnings.
9674
9675 2007-04-06  Robert Dewar  <dewar@adacore.com>
9676             Javier Miranda  <miranda@adacore.com>
9677             Bob Duff  <duff@adacore.com>
9678             Vincent Celier  <celier@adacore.com>
9679
9680         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
9681         (Extensions_Allowed): No longer sets Ada_Version
9682         Entry for pragma Unreferenced_Objects
9683
9684         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
9685         system.tasking if pragma priority used in a procedure
9686         (Analyze_Pragma, case Warning): Handle dot warning switches
9687         (Process_Compile_Time_Warning_Or_Error): New procedure
9688         (Analyze_Pragma): Add processing for Compile_Time_Error
9689         Add support for extra arguments External_Name and Link_Name.
9690         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
9691         (Process_Import_Or_Interface): Add support for the use of pragma Import
9692         with tagged types.
9693         (Extensions_Allowed): No longer affects Ada_Version
9694         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
9695         Is_Abstract_Type. Make sure these are called only when appropriate.
9696         Add processing for pragma Unreferenced_Objects
9697
9698         * snames.h, snames.ads, snames.adb: Add entry for pragma
9699         Compile_Time_Error
9700         Add new standard name Minimum_Binder_Options for new gprmake
9701         Add new standard names for gprmake: Archive_Suffix,
9702         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
9703         Library_Support, Library_Version_Options,
9704         Shared_Library_Minimum_Options,
9705         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
9706         Change Name_Call to Name_uCall so that it cannot clash with a legal
9707         subprogram name.
9708         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
9709         Append C_Plus_Plus to convention identifiers as synonym for CPP
9710         Add new standard names Stack and Builder_Switches
9711         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
9712         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
9713         Run_Path_Option, Toolchain_Version.
9714         Entry for pragma Unreferenced_Objects
9715
9716         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
9717         switches, without repetition of "eD". Make sure that last character of
9718         -gnatep= switch is not taken as -gnat switch character.
9719         Complete rewrite of circuit for handling saving compilation options
9720         Occasioned by need to support dot switchs for -gnatw, but cleans up
9721         things in general.
9722         -gnatX does not affect Ada_Version
9723         Include -gnatyA in -gnatg style switches
9724
9725         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
9726         warnings on return objects.
9727         (Warn_On_Useless_Assignment): Exclude warnings on return objects
9728         (Set_Dot_Warning_Switch): New procedure
9729         (Check_References): Add missing case of test for
9730         Has_Pragma_Unreferenced_Objects
9731         (Output_Unreferenced_Messages): Implement effect of new pragma
9732         Unreferenced_Objects, remove special casing of limited controlled
9733         variables.
9734
9735 2007-04-06  Vincent Celier  <celier@adacore.com>
9736
9737         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
9738         the default project path, initially done during elaboration of the
9739         package.
9740         If the prefix returned by Sdefault is null, get the prefix from a call
9741         to Executable_Prefix_Path.
9742         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
9743         null.
9744
9745         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
9746         canonical directory name to open the directory from which files are
9747         retrieved.
9748         (Record_Other_Sources): Idem.
9749         (Locate_Directory): Add the possibility to create automatically missing
9750         directories when Setup_Projects is True.
9751         Call Locate_Directory so that the directory will be created when
9752         Setup_Projects is True, for object dir, library dir, library ALI dir,
9753         library source copy dir and exec dir.
9754
9755         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
9756         versions of GNAT.
9757
9758 2007-04-06  Robert Dewar  <dewar@adacore.com>
9759
9760         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
9761         Use First/Next_Component_Or_Discriminant
9762         (Analyze_Record_Representation_Clause):
9763         Use First/Next_Component_Or_Discriminant
9764         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
9765         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
9766         definition if type is unconstrained.
9767         (Adjust_Record_For_Reverse_Bit_Order): New procedure
9768         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
9769         Is_Abstract_Subprogram and Is_Abstract_Type.
9770         (Adjust_Record_For_Reverse_Bit_Order): New procedure
9771
9772         * repinfo.adb (List_Record_Info): Use First/
9773         Next_Component_Or_Discriminant.
9774
9775         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
9776         New procedure.
9777
9778         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
9779         Include -gnatyA in default switches
9780
9781         * opt.ads: (Warn_On_Non_Local_Exception): New flag
9782         (Warn_On_Reverse_Bit_Order): New flag
9783         (Extensions_Allowed): Update the documentation.
9784         (Warn_On_Questionable_Missing_Parens): Now on by default
9785
9786         * usage.adb: Add documentation of -gnatw.x/X switches
9787         Document new -gnatyA style switch
9788         -gnatq warnings are on by default
9789
9790 2007-04-06  Ed Falis  <falis@adacore.com>
9791
9792         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
9793         full word is no longer compared twice.
9794
9795 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9796
9797         * sem_ch10.adb (Install_Limited_Context_Clauses.
9798         Expand_Limited_With_Clause): Use a new copy of selector name in the
9799         call to Make_With_Clause. This fixes the tree structure for ASIS
9800         purposes. Nothing is changed in the compiler behaviour.
9801         (Process_Body_Clauses): Handle properly use clauses whose prefix is
9802         a package renaming.
9803         (Install_Limited_With_Clauses): Do not install non-limited view when it
9804         is still incomplete.
9805
9806 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9807             Gary Dismukes  <dismukes@adacore.com>
9808
9809         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
9810         when capturing size information, instead of base type, which for a
9811         formal array type will be the unconstrained type.
9812         (Analyze_Formal_Object_Declaration): Add check for illegal default
9813         expressions for a formal in object of a limited type.
9814         (Instantiate_Object): Ditto.
9815         (Check_Formal_Package_Instance): Skip entities that are formal objects,
9816         because they were defaulted in the formal package and no check applies
9817         to them.
9818         (Check_Formal_Package_Instance): Extend conformance check to other
9819         discrete types beyond Integer.
9820         (Process_Default): Copy directly the unmatched formal. A generic copy
9821         has already been performed in Analyze_Formal_Package.
9822         (Analyze_Associations): If a formal subprogram has no match, check for
9823         partial parametrization before looking for a default, to prevent
9824         spurious errors.
9825         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
9826         not set the instantiation environment before analyzing the actuals.
9827         Fixes regression on 8515-003 with implementation of AI-133.
9828         Set_Instance_Env checks whether the generic unit is a predefined
9829         unit, in which case the instance must be analyzed with the latest Ada
9830         mode. This setting must take place after analysis of the actuals,
9831         because the actuals must be analyzed and frozen in the Ada mode extant
9832         outside of the current instantiation.
9833         (Save_Env, Restore_Env): Preserve and restore the configuration
9834         parameters so that predefined units can be compiled in the proper Ada
9835         mode.
9836         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
9837         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
9838         and Is_Abstract_Type.
9839         (Analyze_Formal_Package): For better error recovery, Add exception
9840         handler to catch Instantion_Error, which can be raised in
9841         Analyze_Associations
9842
9843 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9844             Bob Duff  <duff@adacore.com>
9845             Gary Dismukes  <dismukes@adacore.com>
9846
9847         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
9848         prefix type is a discriminated subtype of the type of the formal.
9849         (Analyze_Allocator): Collect all coextensions regardless of the context.
9850         Whether they can be allocated statically is determined in exp_ch4.
9851         (Analyze_Selected_Component): If the prefix is a limited view and the
9852         non-limited view is available, use the non-limited one.
9853         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
9854         therefore illegal), suggest a qualified expression rather than a type
9855         conversion, because a type conversion would be illegal in this context.
9856         (Anayze_Allocator): Trace recursively all nested allocators so that all
9857         coextensions are on the corresponding list for the root. Do no mark
9858         coextensions if the root allocator is within a declaration for a stack-
9859         allocated object, because the access discriminants will be allocated on
9860         the stack as well.
9861         (Analyze_Call): Remove restriction on calls to limited functions for the
9862         cases of generic actuals for formal objects, defaults for formal objects
9863         and defaults for record components.
9864         (Analyze_Allocator): Before analysis, chain coextensions on the proper
9865         element list. Their expansion is delayed until the enclosing allocator
9866         is processed and its finalization list constructed.
9867         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
9868         for an operation with the given name among the primitive operations of
9869         the corresponding record type.
9870         (Analyze_Selected_Component): If the prefix is a task type that
9871         implements an interface, and there is no entry with the given name,
9872         check whether there is another primitive operation (e.g. a function)
9873         with that name.
9874         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
9875         properly the indexing of a function call written in prefix form, where
9876         the function returns an array type, and all parameters of the function
9877         except the first have defaults.
9878         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
9879         the original operands, rather than relocating them, for efficiency and
9880         to work properly when an operand is overloaded.
9881         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
9882         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
9883         (Analyze_Selected_Component): If the prefix is a private extension, only
9884         scan the visible components, not those of the full view.
9885         (Try_Primitive_Operation): If the operation is a procedure, collect all
9886         possible interpretations, as for a function, because in the presence of
9887         classwide parameters several primitive operations of the type can match
9888         the given arguments.
9889
9890 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9891             Robert Dewar  <dewar@adacore.com>
9892
9893         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
9894         tag-indeterminate call to an abstract function, when the left-hand side
9895         is not classwide.
9896         (Analyze_Loop_Statement): Improve detection of infinite loops
9897
9898 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9899             Thomas Quinot  <quinot@adacore.com>
9900
9901         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
9902         out of Analyze_Package_Declaration, because processing must be applied
9903         to package bodies as well, for deferred constants completed by pragmas.
9904         (Analyze_Package_Declaration): When the package declaration being
9905         analyzed does not require an explicit body, call Check_Completion.
9906         (May_Need_Implicit_Body): An implicit body is required when a package
9907         spec contains the declaration of a remote access-to-classwide type.
9908         (Analyze_Package_Body): If the package contains RACWs, append the
9909         pending subprogram bodies generated by exp_dist at the end of the body.
9910         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
9911         Is_Abstract_Subprogram and Is_Abstract_Type.
9912         (Preserve_Full_Attributes): The full entity list is not an attribute
9913         that must be preserved from full to partial view.
9914
9915         * sem_dist.adb (Add_RAS_Dereference_TSS):
9916         Change primitive name to _Call so it cannot clash with any legal
9917         identifier, and be special-cased in Check_Completion.
9918         Mark the full view of the designated type for the RACW associated with
9919         a RAS as Comes_From_Source to get proper view switching when installing
9920         private declarations.
9921         Provite a placeholder nested package body along with the nested spec
9922         to have a place for Append_RACW_Bodies to generate the calling stubs
9923         and stream attributes.
9924
9925 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9926             Robert Dewar  <dewar@adacore.com>
9927
9928         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
9929         that is a limited view, check the non-limited view if available.
9930         (Undefined): Refine error message for missing with of Text_IO
9931         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
9932         to distinguish real missing with cases.
9933         Fix format of all missing with messages
9934         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
9935         renaming as body when renamed entity is abstract.
9936
9937 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9938             Javier Miranda  <miranda@adacore.com>
9939
9940         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
9941         predicate recursive, to handle complex expressions on literals whose
9942         spurious ambiguity comes from the abstract interpretation of some
9943         subexpression.
9944         (Interface_Present_In_Ancestor): Add support to concurrent record
9945         types.
9946         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
9947         Is_Abstract_Subprogram and Is_Abstract_Type.
9948
9949 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9950             Javier Miranda  <miranda@adacore.com>
9951
9952         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
9953         dereference of a local object R created as a reference to another
9954         object O, use the access level of O.
9955         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
9956         rather than local Same_Formal_Type, to check whether protected operation
9957         overrides an inherited one.
9958         (Same_Formal_Type): New predicate, used when matching signatures of
9959         overriding synchronized operations, to handle the case when a formal
9960         has a type that is a generic actual.
9961         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
9962         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
9963         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
9964         syntactic ambiguities involving indexing of function calls that return
9965         arrays.
9966         (Abstract_Interface_List): New subprogram that returns the list of
9967         abstract interfaces associated with a concurrent type or a
9968         concurrent record type.
9969         (Interface_Present_In_Parent): New subprogram used to check if a
9970         given type or some of its parents implement a given interface.
9971         (Collect_Abstract_Interfaces): Add support for concurrent types
9972         with interface types.
9973         (Has_Abstract_Interfaces): Add support for concurrent types with
9974         interface types.
9975         (Is_Parent): New subprogram that determines whether E1 is a parent
9976         of E2. For a concurrent type its parent is the first element of its
9977         list of interface types; for other types this function provides the
9978         same result than Is_Ancestor.
9979         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
9980         (Collect_Synchronized_Interfaces): Removed because the subprogram
9981         Collect_Abstract_Interfaces provides this functionality.
9982         (Collect_Abstract_Interfaces): Minor update to give support to
9983         concurrent types and thus avoid undesired code duplication.
9984         (Get_Subprogram_Entity): Handle entry calls.
9985         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
9986         entry calls.
9987         (Enter_Name): Do not give -gnatwh hiding warning for record component
9988         entities, they never result in hiding.
9989
9990 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
9991             Robert Dewar  <dewar@adacore.com>
9992
9993         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
9994         to chain nested components that are allocators for access discriminants
9995         of the enclosing object.
9996         Add N_Push and N_Pop nodes
9997         New field Exception_Label added
9998         (Local_Raise_Statements): New field in N_Exception_Handler_Node
9999         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
10000         (Is_Coextension): New flag for allocators, to mark allocators that
10001         correspond to access discriminants of dynamically allocated objects.
10002         (N_Block_Statement): Document the fact that the corresponding entity
10003         can be an E_Return_Statement.
10004         (Is_Coextension): New flag for allocators.
10005         Remove all code for DSP option
10006
10007         * sprint.ads, sprint.adb: Display basic information for class_wide
10008         subtypes. Add handling of N_Push and N_Pop nodes
10009
10010 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
10011
10012         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
10013         before propagating exception.
10014
10015 2007-04-06  Olivier Hainque  <hainque@adacore.com>
10016
10017         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
10018         an address always within the call instruction from a return address.
10019
10020 2007-04-06  Olivier Hainque  <hainque@adacore.com>
10021             Eric Botcazou  <botcazou@adacore.com>
10022
10023         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
10024         expression with a COMPOUND_EXPR including the call instead of emitting
10025         the call directly here.
10026         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
10027         high bound is constant and the slice is empty.  Tidy.
10028         (tree_transform, case N_Op_Not): Handle properly the case where the
10029         operation applies to a private type whose full view is a modular type.
10030         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
10031         Address_Clause, use the associated Expression as the GNAT tree
10032         representing the choice value to ensure the corresponding GCC tree is
10033         of the proper kind.
10034         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
10035         instead of just the operands, as the base GCC stabilize_reference does.
10036         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
10037         requested; otherwise fail.
10038         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
10039
10040 2007-04-06  Thomas Quinot  <quinot@adacore.com>
10041
10042         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
10043         implementation of UI_Div.
10044         (UI_Div): Reimplement as a call to UI_Div_Rem.
10045         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
10046         remainder, avoiding the cost of a multiplication and a subtraction.
10047         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
10048         provides both quotient and remainder in a single computation.
10049         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
10050         functions for uint.
10051         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
10052         is undefined if the given n is not inversible.
10053
10054 2007-04-06  Olivier Hainque  <hainque@adacore.com>
10055
10056         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
10057         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
10058         opcodes.
10059
10060 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
10061             Olivier Hainque  <hainque@adacore.com>
10062
10063         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
10064         when updating the contents of the old pointer to an unconstrained array.
10065         (end_subprog_body): Set error_gnat_node to Empty.
10066         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
10067         (unchecked_convert): For subtype to base type conversions, require that
10068         the source be a subtype if it is an integer type.
10069         (builtin_decls): New global, vector of available builtin functions.
10070         (gnat_pushdecl): Add global builtin function declaration nodes to the
10071         builtin_decls list.
10072         (gnat_install_builtins): Adjust comments.
10073         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
10074         calling gnat_pushdecl, so that it knows when it handed a builtin
10075         function declaration node.
10076         (builtin_decl_for): Search the builtin_decls list.
10077
10078 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
10079
10080         * s-stchop-vxworks.adb: 
10081         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
10082
10083 2007-04-06  Robert Dewar  <dewar@adacore.com>
10084             Arnaud Charlet  <charlet@adacore.com>
10085
10086         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
10087
10088         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
10089         of files
10090         Add mention of -Sev (set initialize_scalars option from environment
10091         variable at run time) in gnatbind usage message.
10092
10093         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
10094
10095         * fname-uf.ads: Minor comment fix
10096
10097         * osint.ads: Change pragma Elaborate to Elaborate_All
10098
10099         * par-load.adb: Add documentation.
10100
10101         * sem_cat.ads, sem_cat.adb: Minor code reorganization
10102
10103         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
10104
10105         * s-secsta.ads: Extra comments
10106
10107         * s-soflin.ads: Minor comment fixes
10108
10109         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
10110
10111         * s-wchcon.ads: Minor comment addition
10112
10113         * treepr.adb: Minor change in message
10114         (Print_Name,Print_Node): Make these debug printouts more robust: print
10115         "no such..." instead of crashing on bad input.
10116
10117 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
10118
10119         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
10120         instead of gnat_signed_or_unsigned_type.
10121         * utils.c (gnat_signed_or_unsigned_type): Remove.
10122         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
10123         * gigi.h (gnat_signed_or_unsigned_type): Remove
10124
10125 2007-03-09  Roger Sayle  <roger@eyesopen.com>
10126
10127         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
10128         fold with the result of buildN.
10129         * decl.c (gnat_to_gnu_entity): Likewise.
10130         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
10131         * utils.c (finish_record_type, merge_sizes, max_size, convert):
10132         Likewise.
10133         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
10134         nonbinary_modular_operation, build_binary_op, build_unary_op,
10135         build_cond_expr): Likewise.
10136
10137         * utils.c (convert): Use fold_build1 when casting values to void.
10138         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
10139         fold_convert instead of convert when appropriate.
10140
10141 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
10142
10143         * Make-lang.in: Add install-pdf target as copied from
10144         automake v1.10 rules.
10145
10146 2007-02-28  Andreas Schwab  <schwab@suse.de>
10147
10148         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
10149         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
10150         (doc/gnat-style.info): Likewise.
10151
10152 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
10153
10154         * gnat-style.texi: Standardize title page.
10155         * gnat_rm.texi: Likewise.
10156         * gnat_ugn.texi: Likewise.
10157
10158 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
10159
10160         * decl.c (annotate_value): Adjust for refactoring of tree_map
10161         hierarchy.
10162
10163 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
10164
10165         * decl.c (annotate_value): Adjust for refactoring of tree_map
10166         hierarchy.
10167
10168 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
10169
10170         PR ada/18819
10171         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
10172         untagged derived type, add hidden components to keep discriminant
10173         layout consistent, when a given discriminant of the derived type
10174         constraints several discriminants of the parent type.
10175
10176 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
10177             Sandra Loosemore  <sandra@codesourcery.com>
10178
10179         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
10180         build the call expression.
10181         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
10182         * utils.c (max_size) <tcc_exceptional>: Delete.
10183         <tcc_vl_exp>: New case.
10184         <tcc_expression>: Delete CALL_EXPR subcase.
10185         (build_global_cdtor): Use build_call_nary instead of build3.
10186         * utils2.c (build_call_1_expr): Likewise.
10187         (build_call_2_expr): Likewise.
10188         (build_call_0_expr): Likewise.
10189         (build_call_alloc_dealloc): Likewise.
10190
10191 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
10192
10193         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10194         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
10195         and _Unwind_SWord with _sleb128_t.
10196
10197 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
10198
10199         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
10200         * decl.c: Include gt-ada-decl.h.
10201         (annotate_value_cache): New.
10202         (annotate_value): Use it instead of TREE_COMPLEXITY.
10203
10204 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
10205
10206         * misc.c, utils2.c: Fix comment typos.
10207
10208 2007-01-24  Roger Sayle  <roger@eyesopen.com>
10209
10210         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
10211         TREE_CONSTANT_OVERFLOW.
10212         (allocatable_size_p, annotate_value): Likewise.
10213         * trans.c (gnat_to_gnu): Likewise.
10214         * utils.c (unchecked_convert): Likewise.
10215         * utils2.c (build_simple_component_ref): Likewise.
10216
10217 2007-01-23  Richard Guenther  <rguenther@suse.de>
10218
10219         PR bootstrap/30541
10220         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
10221         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
10222         (gnatboot3): Likewise.
10223         (GNATBIND): Do not define.
10224         * Makefile.in (GNATBIND): Do not define.
10225
10226 2007-01-08  Richard Guenther  <rguenther@suse.de>
10227
10228         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
10229         * trans.c (gnat_to_gnu): Likewise.
10230
10231 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
10232
10233         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
10234         * adaint.c: Likewise.
10235
10236 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
10237
10238         Merge from gimple-tuples-branch:
10239         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
10240
10241         * ada-tree.h (lang_tree_node): Handle gimple tuples.
10242         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
10243         GIMPLE_MODIFY_STMT.
10244
10245 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
10246
10247         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
10248         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
10249         Fix typos.
10250
10251 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
10252
10253         PR ada/27936
10254         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
10255         if the initializer takes into account the padding.
10256
10257 2006-11-11  Richard Guenther  <rguenther@suse.de>
10258
10259         * trans.c (maybe_stabilize_reference): Remove handling of
10260         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
10261
10262 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
10263
10264         PR ada/29707
10265         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
10266         (To_Target_Priority): New function.
10267
10268 2006-10-31  Robert Dewar  <dewar@adacore.com>
10269
10270         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
10271         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
10272         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
10273         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
10274         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
10275         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
10276         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
10277         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
10278         a-szbzha.adb: Minor reformatting. Fix header.
10279
10280         * a-numaux-x86.adb: Add parentheses for use of unary minus
10281         * a-ngcefu.adb: Supply missing parentheses for unary minus
10282         * a-ngcoty.adb: Add parens for use of unary minus
10283         * a-ngelfu.adb: Add missing parens for unary minus
10284         * a-tifiio.adb: Add parentheses for uses of unary minus
10285
10286 2006-10-31  Robert Dewar  <dewar@adacore.com>
10287             Bob Duff  <duff@adacore.com>
10288             Ed Schonberg  <schonberg@adacore.com>
10289
10290         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
10291         with multiplying operator.
10292         (Expected_Type_Is_Any_Real): New function to determine from the Parent
10293         pointer whether the context expects "any real type".
10294         (Resolve_Arithmetic_Op): Do not give an error on calls to the
10295         universal_fixed "*" and "/" operators when they are used in a context
10296         that expects any real type. Also set the type of the node to
10297         Universal_Real in this case, because downstream processing requires it
10298         (mainly static expression evaluation).
10299         Reword some continuation messages
10300         Add some \\ sequences to continuation messages
10301         (Resolve_Call): Refine infinite recursion case. The test has been
10302         sharpened to eliminate some false positives.
10303         Check for Current_Task usage now includes entry barrier, and is now a
10304         warning, not an error.
10305         (Resolve): If the call is ambiguous, indicate whether an interpretation
10306         is an inherited operation.
10307         (Check_Aggr): When resolving aggregates, skip associations with a box,
10308         which are priori correct, and will be replaced by an actual default
10309         expression in the course of expansion.
10310         (Resolve_Type_Conversion): Add missing support for conversion from
10311         a class-wide interface to a tagged type. Minor code cleanup.
10312         (Valid_Tagged_Converion): Add support for abstact interface type
10313         conversions.
10314         (Resolve_Selected_Component): Call Generate_Reference here rather than
10315         during analysis, and use May_Be_Lvalue to distinguish read/write.
10316         (Valid_Array_Conversion): New procedure, abstracted from
10317         Valid_Conversion, to incorporate accessibility checks for arrays of
10318         anonymous access types.
10319         (Valid_Conversion): For a conversion to a numeric type occurring in an
10320         instance or inlined body, no need to check that the operand type is
10321         numeric, since this has been checked during analysis of the template.
10322         Remove legacy test for scope name Unchecked_Conversion.
10323
10324         * sem_res.ads: Minor reformatting
10325
10326         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
10327         (PE_Current_Task_In_Entry_Body): New exception code
10328         (SE_Restriction_Violation): Removed, not used
10329
10330         * a-except.ads:  Update comments.
10331
10332         * types.h, types.ads: Add definition for Validity_Check
10333         (PE_Current_Task_In_Entry_Body): New exception code
10334         (SE_Restriction_Violation): Removed, not used
10335
10336 2006-10-31  Thomas Quinot  <quinot@adacore.com>
10337
10338         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
10339         error status.
10340
10341 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
10342             Jose Ruiz  <ruiz@adacore.com>
10343
10344         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
10345         part of Ada.Calendar: all subprogram raise Unimplemented.
10346         (Split_W_Offset): Temp function body, raising Unimplemented
10347
10348         * a-calend.ads, a-calend-vms.ads: 
10349         Add imported variable Invalid_TZ_Offset used to designate targets unable
10350         to support time zones.
10351         (Unimplemented): Temporary function raised by the body of new
10352         subprograms below.
10353         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
10354         unit provides handling of leap seconds and is used by the new Ada 2005
10355         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
10356         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
10357         version returns an extra value which is the offset to UTC.
10358
10359         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
10360         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
10361         (Split_W_Offset): New function body.
10362         (Time_Of): When a date is close to UNIX epoch, compute the time for
10363         that date plus one day (that amount is later substracted after
10364         executing mktime) so there are no problems with time zone adjustments.
10365
10366         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
10367
10368         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
10369         a-catizo.ads, a-catizo.adb: New files.
10370
10371         * impunit.adb: Add new Ada 2005 entries
10372
10373         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
10374         Rename all occurences of "__gnat_localtime_r" to
10375         "__gnat_localtime_tzoff".
10376         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
10377         zone data and calculate the GMT offset.
10378         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
10379         Use the field "tm_gmtoff" to extract the GMT offset.
10380         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
10381         the external variable "timezone" to calculate the GMT offset.
10382
10383 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
10384             Jose Ruiz  <ruiz@adacore.com>
10385
10386         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
10387         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
10388         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
10389         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
10390         System.Any_Priority to a POSIX priority on the target.
10391
10392         * system-linux-ia64.ads: 
10393         Extend range of Priority types on Linux to use the whole range made
10394         available by the system.
10395
10396         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
10397         function maps from System.Any_Priority to a POSIX priority on the
10398         target.
10399         (PTHREAD_PRIO_PROTECT): Set real value.
10400         (PTHREAD_PRIO_INHERIT): Now a function.
10401         (SIGCPUFAIL): New signal.
10402         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
10403         are documented as reserved by the OS.
10404
10405         * system-aix.ads: Use the full range of priorities provided by the
10406         system on AIX.
10407
10408         * s-taprop-posix.adb: Call new function To_Target_Priority.
10409         (Set_Priority): Take into account Task_Dispatching_Policy and
10410         Priority_Specific_Dispatching pragmas when determining if Round Robin
10411         must be used for scheduling the task.
10412
10413         * system-linux-x86_64.ads, system-linux-x86.ads, 
10414         system-linux-ppc.ads: Extend range of Priority types on Linux to use
10415         the whole range made available by the system.
10416
10417         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
10418         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
10419         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
10420         when deallocating the TCB in order to avoid potential references to
10421         deallocated data.
10422         (Set_Priority): Take into account Task_Dispatching_Policy and
10423         Priority_Specific_Dispatching pragmas when determining if Round Robin
10424         or FIFO within priorities must be used for scheduling the task.
10425
10426         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
10427         the Thread field (to be used internally by the run-time system) and the
10428         kernel-level task id in the LWP field (to be used by the debugger).
10429         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
10430         instance, and propagate the current task options to the spawned task.
10431         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
10432         (Initialize): Set Round Robin dispatching when the corresponding pragma
10433         is in effect.
10434
10435 2006-10-31  Robert Dewar  <dewar@adacore.com>
10436
10437         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
10438         system-linux-hppa.ads, system-hpux-ia64.ads, 
10439         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
10440         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
10441         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
10442         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
10443         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
10444         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
10445         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
10446         Default_Bit_Order) to kill constant condition warnings for references
10447         to this switch.
10448
10449 2006-10-31  Vincent Celier  <celier@adacore.com>
10450             Eric Botcazou  <ebotcazou@adacore.com>
10451
10452         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
10453         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
10454         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
10455         Ext_To, when building the library file name
10456
10457         * mlib-tgt-vxworks.adb: ditto.
10458         (Get_Target_Suffix): Add support for x86 targets.
10459
10460         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
10461
10462         * mlib-tgt-darwin.adb: 
10463         Use Append_To, instead of Ext_To, when building the library file name
10464         (Flat_Namespace): New global variable.
10465         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
10466         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
10467         (Link_Shared_Libgcc): Delete.
10468         (Build_Dynamic_Library): Adjust for above changes.
10469         Use Opt package.
10470         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
10471
10472 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
10473
10474         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
10475         (Initialize): Add type conversions required by above change.
10476
10477 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
10478
10479         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
10480         (getpid): New body for this function that uses the underlying taskIdSelf
10481         function for VxWorks 5 and VxWorks 6 in kernel mode.
10482         (unsigned_int): New type, modular to allow logical bit operations.
10483         (taskOptionsGet): New imported function.
10484
10485         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
10486         field to be compliant with the type used by the corresponding operating
10487         system primitive.
10488
10489 2006-10-31  Pascal Obry  <obry@adacore.com>
10490             Eric Botcazou  <ebotcazou@adacore.com>
10491             Vincent Celier  <celier@adacore.com>
10492
10493         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
10494         ASCII version of the registry API. This is needed as the GNAT runtime
10495         is now UNICODE by default.
10496         Include version.h.
10497         (get_gcc_version): Do not hardcode the return value.
10498         (__gnat_file_time_name): On Windows properly set the default returned
10499         value to -1 which corresponds to Invalid_Time.
10500         (__gnat_fopen): New routine. A simple wrapper on all plateforms
10501          except on Windows where it does conversion for unicode support.
10502         (__gnat_freopen): Idem.
10503         (__gnat_locate_exec_on_path): If environment variable PATH does not
10504         exist, return a NULL pointer
10505
10506         * adaint.h: (__gnat_fopen): Declare.
10507         (__gnat_freopen): Likewise.
10508
10509         * mingw32.h (_tfreopen): Define this macro here for older MingW
10510         version.
10511         Activate the unicode support on platforms using a MingW runtime
10512         version 3.9 or newer.
10513
10514         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
10515         This is needed for proper unicode support on Windows.
10516         (freopen): Idem.
10517
10518 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
10519             Nicolas Setton  <setton@adacore.com>
10520             Olivier Hainque  <hainque@adacore.com>
10521             Gary Dismukes  <dismukes@adacore.com>
10522
10523         * gigi.h: (tree_code_for_record_type): Declare.
10524         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
10525         (get_global_renaming_pointers): Rename to
10526         invalidate_global_renaming_pointers.
10527         (static_ctors): Delete.
10528         (static_dtors): Likewise.
10529         (gnat_write_global_declarations): Declare.
10530         (create_var_decl): Adjust descriptive comment to indicate that the
10531         subprogram may return a CONST_DECL node.
10532         (create_true_var_decl): Declare new function, similar to
10533         create_var_decl but forcing the creation of a VAR_DECL node.
10534         (get_global_renaming_pointers): Declare.
10535         (add_global_renaming_pointer): Likewise.
10536
10537         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
10538
10539         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
10540         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
10541         processing.
10542         (gnat_to_gnu_entity): Remove From_With_Type from computation for
10543         imported_p.
10544         <E_Access_Type>: Use the Non_Limited_View as the full view of the
10545         designated type if the pointer comes from a limited_with clause.  Make
10546         incomplete designated type if it is in the main unit and has a freeze
10547         node.
10548         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
10549         Underlying_Full_View similarly.  Return earlier if the full view already
10550         has an associated tree.
10551         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
10552         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
10553         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
10554         reference type built for objects with an address clause.
10555         Use create_true_var_decl with const_flag set for
10556         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
10557         TREE_READONLY set.
10558         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
10559         for Character and Wide_Character types. This info is read by the
10560         dwarf-2 writer, and is needed to be able to use the command "ptype
10561         character" in the debugger.
10562         (gnat_to_gnu_entity): When generating a type representing
10563         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
10564         so that debug writers can distinguish it from ordinary integers.
10565         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
10566         addition to TREE_READONLY to assert the constantness of variables for
10567         elaboration purposes.
10568         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
10569         parameters to call new Einfo function First_Formal_With_Extras.
10570         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
10571         protected type with its corresponding discriminant, to obtain a usable
10572         declaration
10573         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
10574         for a multiple elaboration of the "equivalent" type.
10575         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
10576         into record_global_renaming_pointer.
10577         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
10578         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
10579         <E_Array_Subtype>: Likewise.
10580         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
10581         incomplete subtypes and incomplete subtypes of incomplete types visible
10582         through a limited with clause.
10583         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
10584         the base index type for the maximum size of the array only if they are
10585         constant.
10586         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
10587         expression into a SAVE_EXPR if stabilization failed.
10588
10589         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
10590         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
10591         by lower level compilation passes.
10592         (gnat_genericize): New function, lowering a function body to GENERIC.
10593         Turn the type of RESULT_DECL into a real reference type if the decl
10594         has been marked DECL_BY_REFERENCE, and adjust references to the latter
10595         accordingly.
10596         (gnat_genericize_r): New function. Tree walking callback for
10597         gnat_genericize.
10598         (convert_from_reference, is_byref_result): New functions. Helpers for
10599         gnat_genericize_r.
10600         (create_type_decl): Call gnat_pushdecl before calling
10601         rest_of_decl_compilation, to make sure that field TYPE_NAME of
10602         type_decl is properly set before calling the debug information writers.
10603         (write_record_type_debug_info): The heuristics which compute the
10604         alignment of a field in a variant record might not be accurate. Add a
10605         safety test to make sure no alignment is set to a smaller value than
10606         the alignment of the field type.
10607         (make_dummy_type): Use the Non_Limited_View as the underlying type if
10608         the type comes from a limited_with clause. Do not loop on the full view.
10609         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
10610         (dummy_node_table): New global variable, moved from decl.c.
10611         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
10612         (save_gnu_tree): Use above macros.
10613         (get_gnu_tree): Likewise.
10614         (present_gnu_tree): Likewise.
10615         (init_dummy_type): New function, moved from decl.c. Use above macros.
10616         (make_dummy_type): Likewise.
10617         (tree_code_for_record_type): New function extracted from make_dummy_type
10618         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
10619         (static_ctors): Change it to a vector, make static.
10620         (static_dtors): Likewise.
10621         (end_subprog_body): Adjust for above change.
10622         (build_global_cdtor): Moved from trans.c.
10623         (gnat_write_global_declarations): Emit global constructor and
10624         destructor, and call cgraph_optimize before emitting debug info for
10625         global declarations.
10626         (global_decls): New global variable.
10627         (gnat_pushdecl): Store the global declarations in global_decls, for
10628         later use.
10629         (gnat_write_global_declarations): Emit debug information for global
10630          declarations.
10631         (create_var_decl_1): Former create_var_decl, with an extra argument to
10632          state whether the creation of a CONST_DECL is allowed.
10633         (create_var_decl): Behavior unchanged. Now a wrapper around
10634         create_var_decl_1 allowing CONST_DECL creation.
10635         (create_true_var_decl): New function, similar to create_var_decl but
10636         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
10637         (create_field_decl): Do not always mark the field as addressable
10638         if its type is an aggregate.
10639         (global_renaming_pointers): New static variable.
10640         (add_global_renaming_pointer): New function.
10641         (get_global_renaming_pointers): Likewise.
10642
10643         * misc.c (gnat_dwarf_name): New function.
10644         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
10645         (gnat_post_options): Add comment about structural alias analysis.
10646         (gnat_parse_file): Do not call cgraph_optimize here.
10647         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
10648
10649         * trans.c (process_freeze_entity): Don't abort if we already have a
10650         non dummy GCC tree for a Concurrent_Record_Type, as it might
10651         legitimately have been elaborated while processing the associated
10652         Concurrent_Type prior to this explicit freeze node.
10653         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
10654         exception handler volatile if it is of variable size.
10655         (process_type): Remove bypass for types coming from a limited_with
10656         clause.
10657         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
10658         actual, convert the corresponding gnu_actual to the real destination
10659         type when necessary.
10660         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
10661         originally TREE_READONLY but whose elaboration cannot be performed
10662         statically.
10663         Part of fix for F504-021.
10664         (tree_transform, subprogram cases): Change loops on formal parameters to
10665         call new Einfo function First_Formal_With_Extras.
10666         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
10667         stemming from type conversion for the lhs.
10668         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
10669         number of bits per unit for components of records.
10670         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
10671         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
10672         with At_End_Proc after the SJLJ EH cleanup.
10673         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
10674         compilation unit.
10675         (elaborate_all_entities): Do not retest type_annotate_only.
10676         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
10677         result type of an abstract subprogram, which may be an itype associated
10678         with an anonymous access result (related to AI-318-02).
10679         (build_global_cdtor): Move to utils.c.
10680         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
10681         this choice is not a null tree nor an integer constant.
10682         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
10683         on the body of elaboration routines instead of mark_unvisited.
10684         (add_stmt): Do not mark the tree.
10685         (add_decl_expr): Tweak comment.
10686         (mark_unvisited): Delete.
10687         (unshare_save_expr): New static function.
10688         (call_to_gnu): Issue an error when making a temporary around a
10689         procedure call because of non-addressable actual parameter if the
10690         type of the formal is by_reference.
10691         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
10692         after building the elaboration routine.
10693
10694 2006-10-31  Bob Duff  <duff@adacore.com>
10695
10696         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
10697         as finalization-started, so we can raise Program_Error on 'new'.
10698
10699         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
10700         collection has already started.
10701
10702         * s-finimp.ads (Collection_Finalization_Started): Added new special
10703         flag value for indicating that a collection's finalization has started.
10704
10705         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
10706         create a task whose master has already waited for dependent tasks.
10707
10708 2006-10-31  Robert Dewar  <dewar@adacore.com>
10709
10710         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
10711
10712         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
10713         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
10714         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
10715         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
10716         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
10717         a-except-2005.ads: Add pragma Preelaborable_Warning
10718
10719 2006-10-31  Robert Dewar  <dewar@adacore.com>
10720             Jose Ruiz  <ruiz@adacore.com>
10721
10722         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
10723
10724         * ali.adb (Get_Name): Properly handle scanning of wide character names
10725         encoded with brackets notation.
10726         (Known_ALI_Lines): Add S lines to this list.
10727         (Scan_ALI): Acquire S (priority specific dispatching) lines.
10728         New flag Elaborate_All_Desirable in unit table
10729
10730         * ali.ads (Priority_Specific_Dispatching): Add this range of
10731         identifiers to be used for Priority_Specific_Dispatching table entries.
10732         (ALIs_Record): Add First_Specific_Dispatching and
10733         Last_Specific_Dispatching that point to the first and last entries
10734         respectively in the priority specific dispatching table for this unit.
10735         (Specific_Dispatching): Add this table for storing each S (priority
10736         specific dispatching) line encountered in the input ALI file.
10737         New flag Elaborate_All_Desirable in unit table
10738
10739         * bcheck.adb: (Check_Configuration_Consistency): Add call to
10740         Check_Consistent_Dispatching_Policy.
10741         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
10742         verifying that the use of Priority_Specific_Dispatching,
10743         Task_Dispatching_Policy, and Locking_Policy is consistent across the
10744         partition.
10745
10746         * bindgen.adb: (Public_Version_Warning): function removed.
10747         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
10748         required information from ALI files in order to initialize the table
10749         containing the specific dispatching policy.
10750         (Gen_Adainit_Ada): Generate the variables required for priority specific
10751         dispatching entries (__gl_priority_specific_dispatching and
10752         __gl_num_specific_dispatching).
10753         (Gen_Adainit_C): Generate the variables required for priority specific
10754         dispatching entries (__gl_priority_specific_dispatching and
10755         __gl_num_specific_dispatching).
10756         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
10757         pragma entries.
10758         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
10759         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
10760         (Tab_To): Removed.
10761         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
10762         a call to gnat_set_globals.
10763         Generate a string containing settings from
10764         Priority_Specific_Dispatching pragma entries.
10765         (Gen_Object_Files_Options): Do not include the runtime libraries when
10766         pragma No_Run_Time is specified.
10767
10768         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
10769         consistency with s-intman-posix.adb.
10770         (__gnat_error_handler, case FreeBSD): Account for the fact that the
10771         handler is installed with SA_SIGINFO.
10772         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
10773         FreeBSD ZCX support, copied from Linux version.
10774         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
10775         sigfillset, and sigemptyset so the routines defined by MaRTE.
10776         (__gl_priority_specific_dispatching): Add this variable that stores the
10777         string containing priority specific dispatching policies in the
10778         partition.
10779         (__gl_num_specific_dispatching): Add this variable that indicates the
10780         highest priority for which a priority specific dispatching pragma
10781         applies.
10782         (__gnat_get_specific_dispatching): Add this routine that returns the
10783         priority specific dispatching policy, as set by a
10784         Priority_Specific_Dispatching pragma appearing anywhere in the current
10785         partition. The input argument is the priority number, and the result
10786         is the upper case first character of the policy name.
10787         (__gnat_set_globals): Now a dummy function.
10788         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
10789         mechargs instead of sigargs, as the latter can be retrieved from the
10790         former and sigargs is not what we want on ia64.
10791         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
10792         mechargs argument.
10793         (__gnat_adjust_context_for_raise, ia64-vms): New function.
10794         (tasking_error): Remove unused symbol.
10795         (_abort_signal): Move this symbol to the IRIX specific part since this
10796         is the only target that uses this definition.
10797         (Check_Abort_Status): Move this symbol to the IRIX specific part since
10798         this is the only target that uses this definition.
10799         (Lock_Task): Remove unused symbol.
10800         (Unlock_Task): Remove unused symbol.
10801
10802         * lib-writ.adb (Write_ALI): Output new S lines for
10803         Priority_Specific_Dispatching pragmas.
10804         Implement new flag BD for elaborate body desirable
10805
10806         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
10807         (Specific_Dispatching): Add this table for storing the entries
10808         corresponding to Priority_Specific_Dispatching pragmas.
10809         Document new BD flag for elaborate body desirable
10810
10811         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
10812         of known pragmas.
10813
10814 2006-10-31  Javier Miranda  <miranda@adacore.com>
10815
10816         * a-tags.ads, a-tags.adb: 
10817         (Predefined_DT): New function that improves readability of the code.
10818         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
10819         Inherit_DT): Use the new function Predefined_DT to improve code
10820         readability.
10821         (Register_Interface_Tag): Update assertion.
10822         (Set_Interface_Table): Update assertion.
10823         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
10824         determining progenitor interfaces in Tags.
10825         (Inherit_CPP_DT): New subprogram.
10826
10827         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
10828         analysis of the thunk code.
10829         (Expand_Interface_Conversion): Handle run-time conversion of
10830         access to class wide types.
10831         (Expand_Dispatching_Call): When generating the profile for the
10832         subprogram itype for a dispatching operation, properly terminate the
10833         formal parameters chaind list (set the Next_Entity of the last formal
10834         to Empty).
10835         (Collect_All_Interfaces): Removed. This routine has been moved to
10836         sem_util and renamed as Collect_All_Abstract_Interfaces.
10837         (Set_All_DT_Position): Hidden entities associated with abstract
10838         interface primitives are not taken into account in the check for
10839         3.9.3(10); this check is done with the aliased entity.
10840         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
10841         interfacing with CPP by default.
10842         (Expand_Interface_Conversion): Add missing support for static conversion
10843         from an interface to a tagged type.
10844         (Collect_All_Interfaces): Add new out formal containing the list of
10845         abstract interface types to cleanup the subprogram Make_DT.
10846         (Make_DT): Update the code to generate the table of interfaces in case
10847         of abstract interface types.
10848         (Is_Predefined_Dispatching_Alias): New function that returns true if
10849         a primitive is not a predefined dispatching primitive but it is an
10850         alias of a predefined dispatching primitive.
10851         (Make_DT): If the ancestor of the type is a CPP_Class and we are
10852         compiling under full ABI compatibility mode we avoid the generation of
10853         calls to run-time services that fill the dispatch tables because under
10854         this mode we currently inherit the dispatch tables in the IP subprogram.
10855         (Write_DT): Emit an "is null" indication for a null procedure primitive.
10856         (Expand_Interface_Conversion): Use an address as the type of the formal
10857         of the internally built function that handles the case in which the
10858         target type is an access type.
10859
10860 2006-10-31  Robert Dewar  <dewar@adacore.com>
10861
10862         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
10863
10864 2006-10-31  Robert Dewar  <dewar@adacore.com>
10865
10866         * bindusg.ads, bindusg.adb:
10867         Change to package and rename procedure as Display, which
10868         now ensures that it only outputs usage information once.
10869
10870 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
10871
10872         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
10873         using RTPs.
10874
10875         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
10876         when using RTPs.
10877
10878 2006-10-31  Robert Dewar  <dewar@adacore.com>
10879             Ed Schonberg  <schonberg@adacore.com>
10880
10881         * treepr.adb: Use new subtype N_Membership_Test
10882
10883         * checks.ads, checks.adb: Add definition for Validity_Check
10884         (Range_Or_Validity_Checks_Suppressed): New function
10885         (Ensure_Valid): Test Validity_Check suppressed
10886         (Insert_Valid_Check): Test Validity_Check suppressed
10887         (Insert_Valid_Check): Preserve Do_Range_Check flag
10888         (Validity_Check_Range): New procedure
10889         (Expr_Known_Valid): Result of membership test is always valid
10890         (Selected_Range_Checks): Range checks cannot be applied to discriminants
10891         by themselves. Disabling those checks must also be done for task types,
10892         where discriminants may be used for the bounds of entry families.
10893         (Apply_Address_Clause_Check): Remove side-effects if address expression
10894         is non-static and is not the name of a declared constant.
10895         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
10896         Code cleanup and new error messages.
10897         (Enable_Range_Check): Test for some cases of suppressed checks
10898         (Generate_Index_Checks): Suppress index checks if index checks are
10899         suppressed for array object or array type.
10900         (Apply_Selected_Length_Checks): Give warning for compile-time detected
10901         length check failure, even if checks are off.
10902         (Ensure_Valid): Do not generate a check on an indexed component whose
10903         prefix is a packed boolean array.
10904         * checks.adb: (Alignment_Checks_Suppressed): New function
10905         (Apply_Address_Clause_Check): New procedure, this is a completely
10906         rewritten replacement for Apply_Alignment_Check
10907         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
10908         we request a discriminal value only in case of discriminants.
10909         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
10910         assignments where the target subtype is unconstrained and the target
10911         object is a parameter or dereference (other aliased cases are known
10912         to be unconstrained).
10913
10914 2006-10-31  Robert Dewar  <dewar@adacore.com>
10915
10916         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
10917         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
10918         vms_conv.adb: Fix bad table increment values (much too small)
10919
10920         * table.adb (Realloc): Make sure we get at least some new elements
10921         Defends against silly small values for table increment
10922
10923 2006-10-31  Robert Dewar  <dewar@adacore.com>
10924             Ed Schonberg  <schonberg@adacore.com>
10925             Bob Duff  <duff@adacore.com>
10926
10927         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
10928         entities. Move other fields around to make this possible
10929         (Is_Derived_Type): Add missing call to Is_Type.
10930         (Extra_Formals): New function for subprograms, entries, subprogram
10931         types.
10932         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
10933         (First_Formal_With_Extras): New function for subprogs, entries, subp
10934         types.
10935         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
10936         Add node information for E_Return_Statement.
10937         (Elaborate_Body_Desirable): New flag
10938         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
10939         to be Is_Inherently_Limited_Type, because return-by-reference has
10940         no meaning in Ada 2005.
10941         (E_Return_Statement): New entity kind.
10942         (Return_Applies_To): Field of E_Return_Statement.
10943         (Is_Return_Object): New flag in object entities.
10944         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
10945         (Must_Have_Preelab_Init): New flag
10946         (Known_To_Have_Preelab_Init): New flag
10947         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
10948         (Is_Visible_Formal): New flag on entities in formal packages.
10949         (Low_Bound_Known): New flag
10950         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
10951         Incomplete_Kind.
10952         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
10953         output when Id is an incomplete subtype.
10954
10955 2006-10-31  Robert Dewar  <dewar@adacore.com>
10956
10957         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
10958         Avoid abbreviation Creat
10959         (Finalize): List all sources in extended mail source if -gnatl
10960         switch is active.
10961         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
10962         (Finalize): Implement new -gnatl=xxx switch to output listing to file
10963         (Set_Specific_Warning_On): New procedure
10964         (Set_Specific_Warning_Off): New procedure
10965         Add implementation of new insertion \\
10966         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
10967         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
10968         types.
10969         (Error_Msg_Internal): Make sure that we set Last_Killed to
10970         True when a message from another package is suppressed.
10971         Implement insertion character ~ (insert string)
10972         (First_Node): Minor adjustments to get better placement.
10973
10974         * frontend.adb: 
10975         Implement new -gnatl=xxx switch to output listing to file
10976
10977         * gnat1drv.adb: 
10978         Implement new -gnatl=xxx switch to output listing to file
10979
10980         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
10981         (Commands_To_Stdout): New flag
10982         Implement new -gnatl=xxx switch to output listing to file
10983         New switch Dump_Source_Text
10984         (Warn_On_Deleted_Code): New warning flag for -gnatwt
10985         Define Error_Msg_Line_Length
10986         (Warn_On_Assumed_Low_Bound): New switch
10987
10988         * osint.ads, osint.adb
10989         (Normalize_Directory_Name): Fix bug.
10990         Implement new -gnatl=xxx switch to output listing to file
10991         (Concat): Removed, replaced by real concatenation
10992         Make use of concatenation now allowed in compiler
10993         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
10994         we find the 'lib' or 'bin' directory even when the tool has been
10995         invoked with a relative path.
10996         (Executable_Name): New function taking string parameters.
10997
10998         * osint-c.ads, osint-c.adb: 
10999         Implement new -gnatl=xxx switch to output listing to file
11000
11001         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
11002
11003         * switch-c.adb: 
11004         Implement new -gnatl=xxx switch to output listing to file
11005         Recognize new -gnatL switch
11006         (no longer keep in old warning about old style usage)
11007         Use concatenation to simplify code
11008         Recognize -gnatjnn switch
11009         (Scan_Front_End_Switches): Clean up handling of -gnatW
11010         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
11011
11012 2006-10-31  Robert Dewar  <dewar@adacore.com>
11013
11014         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
11015         (Set_Specific_Warning_Off): New procedure
11016         (Warning_Specifically_Suppressed): New function
11017         (Validate_Specific_Warnings): New procedure
11018         (Output_Msg_Text): Complete rewrite to support -gnatjnn
11019
11020         * err_vars.ads: Implement insertion character ~ (insert string)
11021
11022 2006-10-31  Bob Duff  <duff@adacore.com>
11023             Ed Schonberg  <schonberg@adacore.com>
11024
11025         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
11026         the parent part is a build-in-place function call, generate assignments.
11027         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
11028         are build-in-place function calls.
11029         (Replace_Self_Reference): New subsidiary of
11030         Make_OK_Assignment_Statement, to replace an access attribute that is a
11031         self-reference into an access to the appropriate component of the
11032         target object. Generalizes previous mechanism to handle self-references
11033         nested at any level.
11034         (Is_Self_Referential_Init): Remove, not needed.
11035         (Is_Self_Referential_Init): New predicate to simplify handling of self
11036         referential components in record aggregates.
11037         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
11038         check for presence of entity before checking for self-reference.
11039         (Has_Default_Init_Comps): Return True if a component association is a
11040         self-reference to the enclosing type, which can only come from a
11041         default initialization.
11042         (Make_OK_Assignment_Statement): If the expression is of the form
11043         Typ'Acc, where Acc is an access attribute, the expression comes from a
11044         default initialized self-referential component.
11045         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
11046         that has been derived from several abstract interfaces we must also
11047         initialize the tags of the secondary dispatch tables.
11048
11049 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11050             Thomas Quinot  <quinot@adacore.com>
11051             Javier Miranda  <miranda@adacore.com>
11052             Robert Dewar  <dewar@adacore.com>
11053
11054         * exp_attr.adb: 
11055         (Expand_Access_To_Protected_Op): If the context indicates that an access
11056         to a local operation may be transfered outside of the object, create an
11057         access to the wrapper operation that must be used in an external call.
11058         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
11059         target, pass the Valid attribute applied to a floating-point prefix on
11060         to the back end without expansion.
11061         (Storage_Size): Use the new run-time function Storage_Size to retrieve
11062         the allocated storage when it is specified by a per-object expression.
11063         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
11064         Nothing to do here, the attribute has been rewritten during semantic
11065         analysis.
11066         (Expand_Attribute_Reference): Handle expansion of the new Priority
11067         attribute
11068         (Find_Fat_Info): Handle case of universal real
11069         (Expand_Access_To_Protected_Op): Fix use of access to protected
11070         subprogram from inside the body of a protected entry.
11071         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
11072         'Access and 'Unrestricted_Access, to transform the attribute reference
11073         into a fat pointer.
11074         (Is_Constrained_Aliased_View): New predicate to help determine whether a
11075         subcomponent's enclosing variable is aliased with a constrained subtype.
11076         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
11077         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
11078         an aliased prefix must be known to be constrained in order to use True
11079         for the attribute value, and now it's possible for some aliased views
11080         to be unconstrained.
11081
11082 2006-10-31  Robert Dewar  <dewar@adacore.com>
11083
11084         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
11085         (Expand_Entity_Reference): Correct error of not handling subprogram
11086         formals in current_value processing.
11087
11088 2006-10-31  Javier Miranda  <miranda@adacore.com>
11089             Robert Dewar  <dewar@adacore.com>
11090             Ed Schonberg  <schonberg@adacore.com>
11091             Gary Dismukes  <dismukes@adacore.com>
11092
11093         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
11094         register in the final list objects containing class-wide interfaces;
11095         otherwise we incorrectly register the tag of the interface in the final
11096         list.
11097         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
11098         generate the wrapper if the parent primitive is abstract. This is
11099         required to report the correct error message.
11100         (Expand_N_Subtype_Indication): Do validity checks on range
11101         (Clean_Task_Names): If an initialization procedure includes a call to
11102         initialize a task (sub)component, indicate that the procedure will use
11103         the secondary stack.
11104         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
11105         compatibility for interfacing with CPP by default.
11106         (Expand_N_Object_Declaration): Only build an Adjust call when the
11107         object's type is a nonlimited controlled type.
11108         * exp_ch3.adb: Add with and use of Exp_Ch6.
11109         (Expand_N_Object_Declaration): Check for object initialization that is a
11110         call to build-in-place function and apply Make_Build_In_Place_Call_In_
11111         Object_Declaration to the call.
11112         (Freeze_Type): When the designated type of an RACW was not frozen at the
11113         point where the RACW was declared, validate the primitive operations
11114         with respect to E.2.2(14) when it finally is frozen.
11115         (Build_Initialization_Call,Expand_Record_Controller): Rename
11116         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
11117         return-by-reference has no meaning in Ada 2005.
11118         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
11119         to register tag of the immediate ancestor interfaces in the
11120         run-time structure.
11121         (Init_Secondary_Tags): Moved to the specification to allow the
11122         initialization of extension aggregates with abstract interfaces.
11123         (Build_Master_Renaming): Make public, for use by function declarations
11124         whose return type is an anonymous access type.
11125         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
11126         Insert_List_Before_And_Analyze after the generation of the specs
11127         associated with null procedures.
11128         (Expand_Tagged_Root): Update documentation in its specification.
11129         (Init_Secondary_Tags): Update documentation.
11130         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
11131         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
11132         then generate code to inherit the contents of the dispatch table
11133         directly from the ancestor.
11134         (Expand_Record_Controller): Insert controller component after tags of
11135         implemented interfaces.
11136         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
11137         create null procedure overridings when null procedures are inherited
11138         from interfaces.
11139         (Make_Null_Procedure_Specs): New procedure to generate null procedure
11140         declarations for overriding null primitives inherited from interfaces.
11141         (Is_Null_Interface_Procedure): New function in
11142         Make_Null_Procedure_Specs.
11143         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
11144         immediate ancestor of a tagged type is an abstract interface type we
11145         must generate the specification of the predefined primitives associated
11146         with controlled types (because the dispatch table of the ancestor is
11147         null and hence these entries cannot be inherited). This is required to
11148         elaborate well the dispatch table.
11149
11150 2006-10-31  Javier Miranda  <miranda@adacore.com>
11151             Ed Schonberg  <schonberg@adacore.com>
11152             Bob Duff  <duff@adacore.com>
11153             Gary Dismukes  <dismukes@adacore.com>
11154             Robert Dewar  <dewar@adacore.com>
11155
11156         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
11157         conversion.
11158         (Expand_N_In): Do validity checks on range
11159         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
11160         (Expand_N_Allocator): For "new T", if the object is constrained by
11161         discriminant defaults, allocate the right amount of memory, rather than
11162         the maximum for type T.
11163         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
11164         when the allocator is initialized by a build-in-place call, since the
11165         allocator is already rewritten as a reference to the function result,
11166         and this prevents an unwanted duplication of the function call.
11167         Add with and use of Exp_Ch6.
11168         (Expand_Allocator_Expresssion): Check for an allocator whose expression
11169         is a call to build-in-place function and apply
11170         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
11171         untagged designated types).
11172         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
11173         optimization if source or target is biased.
11174         (Expand_N_Allocator): Add comments for case of an allocator within a
11175         function that returns an anonymous access type designating tasks.
11176         (Expand_N_Allocator): apply discriminant checks for access
11177         discriminants of anonymous access types (AI-402, AI-416)
11178
11179 2006-10-31  Bob Duff  <duff@adacore.com>
11180             Robert Dewar  <dewar@adacore.com>
11181             Gary Dismukes  <dismukes@adacore.com>
11182             Ed Schonberg  <schonberg@adacore.com>
11183
11184         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
11185
11186         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
11187         (Expand_N_Assignment_Statement): Call
11188         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
11189         build-in-place function call. Currently, this can happen only for
11190         assignments that come from aggregates.
11191         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
11192         in order to alleviate the upward compatibility introduced by AI-318.
11193         (Expand_N_Extended_Return_Statement): Add support for handling the
11194         return object as a build-in-place result.
11195         (Expand_Non_Function_Return): Implement simple return statements nested
11196         within an extended return.
11197         (Enable_New_Return_Processing): Turn on the new processing of return
11198         statements.
11199         (Expand_Non_Function_Return): For a return within an extended return,
11200         don't raise Program_Error, because Sem_Ch6 now gives a warning.
11201         (Expand_N_Extended_Return_Statement): Implement AI-318
11202         (Expand_Simple_Function_Return): Ditto.
11203         (Expand_N_If_Statement): Handle new -gnatwt warning
11204         (Expand_N_Case_Statement): Handle new -gnatwt warning
11205         (Expand_N_Assignment): Handle assignment to the Priority attribute of
11206         a protected object.
11207         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
11208         validity checking of assignments to elementary record components.
11209         (Expand_N_Return_Statement): return Class Wide types on the secondary
11210         stack independantly of their controlled status since with HIE runtimes,
11211         class wide types are not potentially controlled anymore.
11212
11213         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
11214         node kind.
11215
11216         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
11217         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
11218         it expects a block, procedure, or task. The return statement will get
11219         turned into a block, and Expand_Cleanup_Actions will happen then.
11220
11221 2006-10-31  Robert Dewar  <dewar@adacore.com>
11222             Ed Schonberg  <schonberg@adacore.com>
11223             Bob Duff  <duff@adacore.com>
11224             Gary Dismukes  <dismukes@adacore.com>
11225
11226         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
11227         capability.
11228         (Expand_Inlined_Call): Tagged types are by-reference types, and
11229         therefore should be replaced by a renaming declaration in the expanded
11230         body, as is done for limited types.
11231         (Expand_Call): If this is a call to a function with dispatching access
11232         result, propagate tag from context.
11233         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
11234         CPP by default.
11235         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
11236         build-in-place when the right-hand side of an assignment is a
11237         build-in-place function call.
11238         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
11239         of the explicit dereference of the allocator to the result subtype of
11240         the build-in-place function. This is needed to satisfy type checking
11241         in cases where the caller's return object is created by an allocator for
11242         a class-wide access type and the type named in the allocator is a
11243         specific type.
11244         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
11245         conversion of the reference to the declared object to the result subtype
11246         of the build-in-place function. This is needed to satisfy type checking
11247         in cases where the declared object has a class-wide type. Also, in the
11248         class-wide case, change the type of the object entity to the specific
11249         result subtype of the function, to avoid passing a class-wide object
11250         without explicit initialization to the back end.
11251         (Register_Interface_DT_Entry): Moved outside the body of
11252         Freeze_Subprogram because this routine is now public; it is called from
11253         Check_Dispatching_Overriding to handle late overriding of abstract
11254         interface primitives.
11255         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
11256         adding an implicit access actual on a call to a build-in-place function.
11257         (Expand_Actuals): Test for an actual parameter that is a call to a
11258         build-in-place function and apply
11259         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
11260         (Is_Build_In_Place_Function): New function to determine whether an
11261         entity is a function whose calls should be handled as build-in-place.
11262         (Is_Build_In_Place_Function_Call): New function to determine whether an
11263         expression is a function call that should handled as build-in-place.
11264         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
11265         calls to build-in-place functions as the initialization of an allocator.
11266         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
11267         handling calls to build-in-place functions in contexts that do not
11268         involve init of a separate object (for example, actuals of subprogram
11269         calls).
11270         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
11271         handling calls to build-in-place functions as the initialization of an
11272         object declaration.
11273         (Detect_Infinite_Recursion): Add explicit parameter Process to
11274         instantiation of Traverse_Body to avoid unreferenced warning.
11275         (Check_Overriding_Inherited_Interfaces): Removed.
11276         (Register_Interface_DT_Entry): Code cleanup.
11277         (Register_Predefined_DT_Entry): Code cleanup.
11278         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
11279         inlined statements if within a transient scope.
11280         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
11281         formal parameters with occurrences of actuals in inlined body, establish
11282         visibility on the proper view of the actual's subtype for the body's
11283         context.
11284         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
11285         compatibility mode and we have an imported CPP subprogram because
11286         for now we assume that imported CPP primitives correspond with
11287         objects whose constructor is in the CPP side (and therefore we
11288         don't need to generate code to register them in the dispatch table).
11289         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
11290         aligned selected component.
11291         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
11292         the actual of an in-mode parameter is a type conversion.
11293         (Expand_Actuals): If the call does not come from source and the actual
11294         is potentially misaligned, let gigi handle it rather than rejecting the
11295         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
11296         Class Wide types as returning by reference independantly of their
11297         controlled status since with HIE runtimes class wide types are not
11298         potentially controlled anymore.
11299
11300 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11301
11302         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
11303         references that are private components of the protected object.
11304         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
11305         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
11306         instantiation to deal with warnings.
11307         (Initialize_Protection): If expression for priority is non-static, use
11308         System_Priority as its expected type, in case the expression has not
11309         been analyzed yet.
11310
11311 2006-10-31  Robert Dewar  <dewar@adacore.com>
11312
11313         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
11314         initialization of Homonym_Len.
11315         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
11316         names from fully qualified name. Fixes problem of duplicate
11317         external names differing only in the presence of such a block name.
11318
11319 2006-10-31  Thomas Quinot  <quinot@adacore.com>
11320             Pablo Oliveira  <oliveira@adacore.com>
11321
11322         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
11323         subprogram Ids, even if they are not yet assigned.
11324         (Build_Subprogram_Id): It is now this function that will take care of
11325         calling Assign_Subprogram_Ids if necessary.
11326         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
11327         should be done only once they are assigned.
11328         (Build_From_Any_Function, case of tagged types): Add missing call to
11329         Allocate_Buffer.
11330         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
11331         type for an RACW type.
11332         (Add_RACW_Features): When processing an RACW declaration for which the
11333         designated type is already frozen, enforce E.2.2(14) rules immediately.
11334         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
11335         special reordering of controlling formals.
11336
11337         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
11338         associated stub type for an RACW type.
11339
11340 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11341
11342         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
11343         fixed-point operations in an integer context, i.e. as operands of a
11344         conversion to an integer type, indicate that result must be rounded.
11345
11346 2006-10-31  Robert Dewar  <dewar@adacore.com>
11347
11348         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
11349         cases, pass the encoding method, since it is now required by the run
11350         time.
11351
11352         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
11353         assumption that Str'First = 1.
11354         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
11355         it on to the Value_Wide_Wide_Character call.
11356         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
11357         properly handles a string of the form quote-encoded_wide_char-quote.
11358
11359         * s-wchcnv.adb: Minor reformatting
11360
11361 2006-10-31  Javier Miranda  <miranda@adacore.com>
11362
11363         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
11364         run-time membership test to ensure that the constructed object
11365         implements the target abstract interface.
11366
11367 2006-10-31  Robert Dewar  <dewar@adacore.com>
11368
11369         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
11370         Machine_Attribute pragma internally to implement the user pragma.
11371         Add processing for pragma Interface so that it is now completely
11372         equivalent to pragma Import.
11373
11374         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
11375         so that it can be applied to all entities, including record components
11376         and enumeration literals.
11377         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
11378         priority ranges are correct, verify compatibility against task
11379         dispatching and locking policies, and if everything is correct an entry
11380         is added to the table containing priority specific dispatching entries
11381         for this compilation unit.
11382         (Delay_Config_Pragma_Analyze): Delay processing
11383         Priority_Specific_Dispatching pragmas because when processing the
11384         pragma we need to access run-time data, such as the range of
11385         System.Any_Priority.
11386         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
11387         Allow pragma Unreferenced as a context item
11388         Add pragma Preelaborable_Initialization
11389         (Analyze_Pragma, case Interface): Interface is extended so that it is
11390         now syntactically and semantically equivalent to Import.
11391         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
11392         insertion characters.
11393         Add handling for Pragma_Wide_Character_Encoding
11394         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
11395         never supercedes a real restriction, and that a real restriction
11396         always supercedes a warning.
11397         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
11398         appropriate form.
11399
11400 2006-10-31  Bob Duff  <duff@adacore.com>
11401             Ed Schonberg  <schonberg@adacore.com>
11402             Robert Dewar  <dewar@adacore.com>
11403
11404         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
11405         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
11406         Is_Inherently_Limited_Type, because return-by-reference has no meaning
11407         in Ada 2005.
11408         (Find_Node_To_Be_Wrapped): Use new method of determining the result
11409         type of the function containing a return statement, because the
11410         Return_Type field was removed. We now use the Return_Applies_To field.
11411
11412         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
11413         (Build_Task_Image_Decl): If procedure is not called from an
11414         initialization procedure, indicate that function that builds task name
11415         uses the sec. stack. Otherwise the enclosing initialization procedure
11416         will carry the indication.
11417         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
11418         N_Object_Declaration instead.
11419         (Kill_Dead_Code): New interface to implement -gnatwt warning for
11420         conditional dead code killed, and change implementation accordingly.
11421         (Insert_Actions): Add N_Return_Object_Declaration case.
11422         Correct comment to mention N_Extension_Aggregate node.
11423         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
11424         attempts to save information for global variables which cannot be
11425         safely tracked.
11426         (Get_Current_Value_Condition): Handle conditions the other way round
11427         (constant on left). Also handle right operand of AND and AND THEN
11428         (Set_Current_Value_Condition): Corresponding changes
11429         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
11430         (Get_Current_Value_Condition): Handle simple boolean operands
11431         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
11432         (Get_Current_Value_Condition): If the variable reference is within an
11433         if-statement, does not appear in the list of then_statments, and does
11434         not come from source, treat it as being at unknown location.
11435         (Get_Current_Value_Condition): Enhance to allow while statements to be
11436         processed as well as if statements.
11437         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
11438         come from source.
11439         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
11440         of loop. This is safe now that we fixed Kill_Current_Values.
11441         (OK_To_Do_Constant_Replacement): Check whether current scope is
11442         Standard, before examining outer scopes.
11443
11444 2006-10-31  Vincent Celier  <celier@adacore.com>
11445
11446         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
11447         When True, apply VMS treatment to children of packages A, G, I and S.
11448         For F320-016
11449
11450         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
11451
11452 2006-10-31  Robert Dewar  <dewar@adacore.com>
11453             Ed Schonberg  <schonberg@adacore.com>
11454
11455         * freeze.adb: Add handling of Last_Assignment field
11456         (Warn_Overlay): Supply missing continuation marks in error msgs
11457         (Freeze_Entity): Add check for Preelaborable_Initialization
11458
11459         * g-comlin.adb: Add Warnings (Off) to prevent new warning
11460
11461         * g-expect.adb: Add Warnings (Off) to prevent new warning
11462
11463         * lib-xref.adb: Add handling of Last_Assignment field
11464         (Generate_Reference): Centralize handling of pragma Obsolescent here
11465         (Generate_Reference): Accept an implicit reference generated for a
11466         default in an instance.
11467         (Generate_Reference): Accept a reference for a node that is not in the
11468         main unit, if it is the generic body corresponding to an subprogram
11469         instantiation.
11470
11471         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
11472
11473         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
11474         -gnatwq/Q.
11475         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
11476         exception handler.
11477         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
11478         use clauses, to avoid messages on packages used to qualify, and also
11479         to avoid messages from obsolescent units.
11480         (Warn_On_Useless_Assignments): Don't generate messages for imported
11481         and exported variables.
11482         (Warn_On_Useless_Assignments): New procedure
11483         (Output_Obsolescent_Entity_Warnings): New procedure
11484         (Check_Code_Statement): New procedure
11485
11486         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
11487         Change name Is_Ada_2005 to Is_Ada_2005_Only
11488         (Last_Assignment): New field for useless assignment warning
11489
11490 2006-10-31  Olivier Hainque  <hainque@adacore.com>
11491
11492         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
11493         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
11494
11495 2006-10-31  Bob Duff  <duff@adacore.com>
11496             Robert Dewar  <dewar@adacore.com>
11497             Ed Schonberg  <schonberg@adacore.com>
11498
11499         * g-awk.adb (Default_Session, Current_Session): Compile this file in
11500         Ada 95 mode, because it violates the new rules for AI-318.
11501
11502         * g-awk.ads: Use overloaded subprograms in every case where we used to
11503         have a default of Current_Session. This makes the code closer to be
11504         correct for both Ada 95 and 2005.
11505
11506         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
11507         code, relying on the fact that the compiler generates a warning
11508         instead of an error in -gnatg mode.
11509
11510         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
11511         E_Return_Statement entity kind.
11512         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
11513
11514         * par.adb (P_Interface_Type_Definition): Addition of one formal to
11515         report an error if the reserved word abstract has been previously found.
11516         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
11517
11518         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
11519         parenthesized range attribute usage
11520         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
11521
11522         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
11523         in the syntax for extended_return_statement. This is not in the latest
11524         RM, but the ARG is expected to issue an AI allowing this.
11525         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
11526         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
11527         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
11528         P_Return_Statement): Parse the new syntax for extended_return_statement.
11529
11530         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
11531         Output_End_Missing): Add error-recovery code for the new
11532         extended_return_statement syntax; that is, the new E_Return entry on
11533         the scope stack.
11534
11535         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
11536         limited to nonlimited, because otherwise we violate the new Ada 2005
11537         rules about returning limited types in function Create_AST_Handler in
11538         s-asthan.adb.
11539
11540         * sem.adb (Analyze): Add cases for new node kinds
11541         N_Extended_Return_Statement and N_Return_Object_Declaration.
11542
11543         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
11544         type is in the same category as type of context before applying check,
11545         to prevent anomalies in instantiations.
11546         (Resolve_Aggregate): Remove test for limited components in aggregates.
11547         It's unnecessary in Ada 95, because if it has limited components, then
11548         it must be limited. It's wrong in Ada 2005, because limited aggregates
11549         are now allowed.
11550         (Resolve_Record_Aggregate): Move check for limited types later, because
11551         OK_For_Limited_Init requires its argument to have been resolved.
11552         (Get_Value): When copying the component default expression for a
11553         defaulted association in an aggregate, use the sloc of the aggregate
11554         and not that of the original expression, to prevent spurious
11555         elaboration errors, when the expression includes function calls.
11556         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
11557         were missing. We also didn't handle qualified expressions. Now also
11558         allow function calls. Use new common routine OK_For_Limited_Init.
11559         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
11560         with space can upper case letter).
11561
11562         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
11563         Has_Static_Discriminants flag
11564         (Record_Type_Declaration): Diagnose an attempt to declare an interface
11565         type with discriminants.
11566         (Process_Range_Expr_In_Decl): Do validity checks on range
11567         (Build_Discriminant_Constraints): Use updated form of
11568         Denotes_Discriminant.
11569         (Process_Subtype): If the subtype is a private subtype whose full view
11570         is a concurrent subtype, introduce an itype reference to prevent scope
11571         anomalies in gigi.
11572         (Build_Derived_Record_Type, Collect_Interface_Primitives,
11573         Record_Type_Declaration):  The functionality of the subprograms
11574         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
11575         is now performed by a single routine.
11576         (Build_Derived_Record_Type): If the type definition includes an explicit
11577         indication of limitedness, then the type must be marked as limited here
11578         to ensure that any access discriminants will not be treated as having
11579         a local anonymous access type.
11580         (Check_Abstract_Overriding): Issue a detailed error message when an
11581         abstract subprogram was not overridden due to incorrect mode of its
11582         first parameter.
11583         (Analyze_Private_Extension_Declaration): Add support for the analysis of
11584         synchronized private extension declarations. Verify that the ancestor is
11585         a limited or synchronized interface or in the generic case, the ancestor
11586         is a tagged limited type or synchronized interface and all progenitors
11587         are either limited or synchronized interfaces.
11588         Derived_Type_Declaration): Check for presence of private extension when
11589         dealing with synchronized formal derived types.
11590         Process_Full_View): Enchance the check done on the usage of "limited" by
11591         testing whether the private view is synchronized.
11592         Verify that a synchronized private view is completed by a protected or
11593         task type.
11594         (OK_For_Limited_Init_In_05): New function.
11595         (Analyze_Object_Declaration): Move check for limited types later,
11596         because OK_For_Limited_Init requires its argument to have been resolved.
11597         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
11598         in order to alleviate the upward compatibility introduced by AI-318.
11599         (Constrain_Corresponding_Record): If the constraint is for a component
11600         subtype, mark the itype as frozen, to avoid out-of-scope references to
11601         discriminants in the back-end.
11602         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
11603         this subprogram against wrong sources.
11604         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
11605         discriminant of limited type completed with a protected type, when the
11606         discriminant is used to constrain a private component of the type, and
11607         expansion is disabled.
11608         (Find_Type_Of_Object): Do not treat a return subtype that is an
11609         anonymous subtype as a local_anonymous_type, because its accessibility
11610         level is the return type of the enclosing function.
11611         (Check_Initialization): In -gnatg mode, turn the error "cannot
11612         initialize entities of limited type" into a warning.
11613         (OK_For_Limited_Init): Return true for generated nodes, since it
11614         sometimes violates the legality rules.
11615         (Make_Incomplete_Declaration): If the type for which an incomplete
11616         declaration is created happens to be the currently visible entity,
11617         preserve the homonym chain when removing it from visibility.
11618         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
11619         inherited subprograms.
11620         (Access_Definition): If this is an access to function that is the return
11621         type of an access_to_function definition, context is a type declaration
11622         and the scope of the anonymous type is the current one.
11623         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
11624         incomplete subtype to the set of private dependents of the original
11625         incomplete type.
11626         (Constrain_Discriminated_Type): Emit an error message whenever an
11627         incomplete subtype is being constrained.
11628         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
11629         corresponding subtype of the full view of the original incomplete type.
11630         (Check_Incomplete): Properly detect invalid usage of incomplete types
11631         and subtypes.
11632
11633 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
11634
11635         * g-catiio.ads, g-catiio.adb (Value): New function.
11636         Given an input String, try and parse a valid Time value.
11637
11638 2006-10-31  Vincent Celier  <celier@adacore.com>
11639
11640         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
11641         Integer_Address arithmetic, as in Set_Valid.
11642
11643 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
11644             Robert Dewar  <dewar@adacore.com>
11645
11646         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
11647         handling executable extension manually and duplicating code.
11648
11649         * make.adb: Implement new -S switch
11650         (Gnatmake): Use new function Osint.Executable_Name instead
11651         of handling executable extension manually.
11652
11653         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
11654         is specified, the executable name ends with this suffix.
11655         Take advantage of Osint.Executable_Name instead of duplicating code.
11656
11657         * switch-m.adb: Recognize new gnatmake -S switch
11658
11659         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
11660         variable.
11661         (Get_Target_Parameters): Set Executable_Extension_On_Target if
11662         available.
11663
11664         * makeusg.adb: Add line for gnatmake -S switch
11665
11666 2006-10-31  Vincent Celier  <celier@adacore.com>
11667
11668         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
11669         call it with -static-libgcc, as there are some platforms, such as
11670         Darwin, where one of these two switches is compulsory to link.
11671
11672 2006-10-31  Vincent Celier  <celier@adacore.com>
11673
11674         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
11675         instead of ADA_PROJECT_PATH, for the project path.
11676         (Gnatls): When displaying the project path directories, use host dir
11677         specs.
11678
11679         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
11680         names in the project path, as absolute paths may correspond to
11681         multi-valued VMS logical names.
11682
11683 2006-10-31  Vincent Celier  <celier@adacore.com>
11684
11685         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
11686         absolute path name.
11687         (Locate_Regular_File): Ditto
11688         (Change_Dir): Remove, no longer used
11689         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
11690         on Windows. Get it calling Get_Current_Dir.
11691         (OpenVMS): Remove imported boolean, no longer needed.
11692         (Normalize_Pathname)[VMS]: Do not resolve directory names.
11693         (Pid_To_Integer): New function to convert a Process_Id to  Integer
11694
11695 2006-10-31  Thomas Quinot  <quinot@adacore.com>
11696
11697         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
11698         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
11699         to No_Socket.
11700         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
11701         W_Sig_Socket.
11702
11703 2006-10-31  Robert Dewar  <dewar@adacore.com>
11704
11705         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
11706         initial letter o as a zero.
11707
11708 2006-10-31  Robert Dewar  <dewar@adacore.com>
11709
11710         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
11711
11712 2006-10-31  Robert Dewar  <dewar@adacore.com>
11713
11714         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
11715         variant records
11716         (Layout_Variant_Record): Retrieve the discriminants from the entity
11717         rather than from the type definition, because in the case of a full
11718         type for a private type we need to take the discriminants from the
11719         partial view.
11720         (Layout_Component_List): When applying the Max operator to variants with
11721         a nonstatic size, check whether either operand is static and scale that
11722         operand from bits to storage units before applying Max.
11723         (Layout_Type): In VMS, if a C-convention access type has no explicit
11724         size clause (and does not inherit one in the case of a derived type),
11725         then the size is reset to 32 from 64.
11726
11727 2006-10-31  Vincent Celier  <celier@adacore.com>
11728
11729         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
11730         its file has already been loaded, according to the unit being loaded,
11731         not to the current value of Multiple_Unit_Index.
11732
11733 2006-10-31  Thomas Quinot  <quinot@adacore.com>
11734             Eric Botcazou  <ebotcazou@adacore.com>
11735             Arnaud Charlet  <charlet@adacore.com>
11736
11737         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
11738         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
11739         possible.
11740         (a-except.o): Pass it to the compiler.
11741         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
11742         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
11743         a-calend-mingw.adb version.
11744
11745         * Makefile.rtl: Added s-dsaser.
11746         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
11747         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
11748         Ada.Dispatching.Round_Robin.
11749         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
11750
11751         * Make-lang.in: Remove all references to gt-ada-decl.h.
11752         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
11753         sources.
11754         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
11755         Update dependencies.
11756
11757         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
11758
11759 2006-10-31  Vincent Celier  <celier@adacore.com>
11760
11761         * mlib-utl.adb (Initialized): Remove, no longer used
11762         (Initialize): Remove, no longer used
11763         (Ar): If Ar_Exec is null, get the location of the archive builder and,
11764         if there is one, the archive indexer. Fail if the archive builder cannot
11765         be found.
11766         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
11767         be found.
11768
11769 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11770
11771         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
11772         Process_Body_Clauses): If the context of a body includes a use clause
11773         for P.Q then a with_clause for P in the same body is not redundant,
11774         even if the spec also has a with_clause on P.
11775         Add missing continuation mark to error msg
11776         (Build_Limited_Views): A limited view of a type is tagged if its
11777         declaration includes a record extension.
11778         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
11779         node, even if the subunit has errors. This avoids malfunction by
11780         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
11781         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
11782         generation of obsolescent messages for with statements (cannot do
11783         this too early, or we cannot implement avoiding the messages in the
11784         case of obsolescent units withing obsolescent units).
11785         (Install_Siblings): If the with_clause is on a remote descendant of
11786         an ancestor of the current compilation unit, find whether there is
11787         a sibling child unit that is immediately visible.
11788         (Remove_Private_With_Clauses): New procedure, invoked after completing
11789         the analysis of the private part of a nested package, to remove from
11790         visibility the private with_clauses of the enclosing package
11791         declaration.
11792         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
11793         now centralized in Generate_Reference.
11794         (Install_Limited_Context_Clauses): Remove superfluous error
11795         message associated with unlimited view visible through use
11796         and renamings. In addition, at the point in which the error
11797         is reported, we add the backslash to the text of the error
11798         to ensure that it is reported as a single error message.
11799         Use new // insertion for some continuation messages
11800         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
11801         to create implicit with_clause for parent unit mentioned in original
11802         limited_with_clause.
11803         (Install_Limited_With_Unit): Set entity of parent identifiers if the
11804         unit is a child unit. For ASIS queries.
11805         (Analyze_Subunit): If the subunit appears within a child unit, make all
11806         ancestor child units directly visible again.
11807
11808 2006-10-31  Robert Dewar  <dewar@adacore.com>
11809
11810         * par-ch10.adb (P_Context_Clause): Minor error message fix
11811
11812 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
11813             Javier Miranda  <miranda@adacore.com>
11814
11815         * par-ch12.adb: Grammar update and cleanup.
11816         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
11817         support for synchronized derived type definitions.
11818         Add the new actual Abstract_Present to every call to
11819         P_Interface_Type_Definition.
11820         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
11821         a formal object declaration with an access definition or a subtype mark
11822         with a null exclusion.
11823         (P_Generic_Association): Handle association with box, and others_choice
11824         with box, to support Ada 2005 partially parametrized formal packages.
11825
11826 2006-10-31  Robert Dewar  <dewar@adacore.com>
11827             Javier Miranda  <miranda@adacore.com>
11828
11829         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
11830         (P_Type_Declaration): Remove barrier against the reserved word "limited"
11831         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
11832         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
11833         private extensions.
11834         (P_Type_Declaration): Add the new actual Abstract_Present to every call
11835         to P_Interface_Type_Definition.
11836         (P_Interface_Type_Definition): Addition of one formal to report an error
11837         if the reserved word abstract has been previously found.
11838         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
11839         object renaming declaration with an access definition or subtype mark
11840         with a possible null exclusion.
11841
11842         * par-ch9.adb: Minor error msg fix
11843
11844         * par-load.adb: Add missing continuation mark to error msg
11845
11846         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
11847
11848 2006-10-31  Vincent Celier  <celier@adacore.com>
11849
11850         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
11851         unknown attribute in unknown package or in package that does not need
11852         to be checked.
11853         (Parse_Package_Declaration): Do not issue warning for unknown package in
11854         quiet output.
11855
11856 2006-10-31  Vincent Celier  <celier@adacore.com>
11857
11858         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
11859         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
11860         Packages_To_Check.
11861
11862 2006-10-31  Vincent Celier  <celier@adacore.com>
11863
11864         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
11865         on VMS, change "__" to '.' before checking the name.
11866         (Record_Ada_Source): Always add the source file name in the list of
11867         of sources, even if it is not the first time, as it is for another
11868         source index.
11869         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
11870         dot, instead of replacing only the first '_'.
11871
11872         * prj-part.adb (Parse): Convert project file path to canonical form
11873
11874         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
11875         extended, the project id of the project extending it is recorded in its
11876         data, even when it has already been processed as an imported project.
11877
11878 2006-10-31  Robert Dewar  <dewar@adacore.com>
11879
11880         * repinfo.adb (List_Entities): Don't list entities from renaming
11881         declarations.
11882
11883 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
11884             Robert Dewar  <dewar@adacore.com>
11885
11886         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
11887         only a restriction warning is active for the given restriction. This is
11888         desirable because we do not want to modify code in the case where only
11889         a warning is set.
11890         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
11891         causes overriding of real restrictions.
11892         Take advantage of new No_Restrictions constant.
11893
11894         * raise.h: (__gnat_set_globals): Change profile.
11895
11896 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
11897
11898         * rtsfind.adb: Remove s-polint from comment as it exists no more.
11899
11900         * rtsfind.ads: 
11901         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
11902         Move all the entities in obsolete package System.PolyORB_Interface to
11903         System.Partition_Interface.
11904         (RE_Storage_Size): New function in System.Tasking.
11905         (RE_Get_Ceiling): New entity.
11906         (RE_Set_Ceiling): New entity.
11907         (RO_PE_Get_Ceiling): New entity.
11908         (RO_RE_Set_Ceiling): New entity.
11909         (Inherit_CPP_DT): New entity
11910
11911 2006-10-31  Robert Dewar  <dewar@adacore.com>
11912
11913         * scng.adb (Scan, case of numeric literal): Better msg for identifier
11914         starting with a digit.
11915
11916 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11917             Thomas Quinot  <quinot@adacore.com>
11918             Javier Miranda  <miranda@adacore.com>
11919             Gary Dismukes  <dismukes@adacore.com>
11920
11921         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
11922         properly an attempt to apply Unchecked_Access to a protected operation.
11923         (OK_Self_Reference): New subprogram to check the legality of an access
11924         attribute whose prefix is the type of an enclosing aggregate.
11925         Generalizes previous mechanism to handle attribute references nested
11926         arbitrarily deep within the aggregate.
11927         (Analyze_Access_Attribute): An access attribute whose prefix is a type
11928         can appear in an aggregate if this is a default-initialized aggregate
11929         for a self-referential type.
11930         (Resolve_Attribute, case Access): Ditto.
11931         Add support for new implementation defined attribute Stub_Type.
11932         (Eval_Attribute, case Attribute_Stub_Type): New case.
11933         (Analyze_Attribute, case Attribute_Stub_Type): New case.
11934         (Stream_Attribute_Available): Implement using new subprogram from
11935         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
11936         Has_Specified_Stream_Attribute flag.
11937         Disallow Storage_Size and Storage_Pool for access to subprogram
11938         (Resolve_Attribute, case 'Access et al): Take into account anonymous
11939         access types of return subtypes in extended return statements. Remove
11940         accessibility checks on anonymous access types when Unchecked_Access is
11941         used.
11942         (Analyze_Attribute): Add support for the use of 'Class to convert
11943         a class-wide interface to a tagged type.
11944         Add support for the attribute Priority.
11945         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
11946         whether the designated type is discriminated with a constrained partial
11947         view and require static matching in that case.
11948         Add local variable Des_Btyp. The Designated_Type
11949         of an access to incomplete subtype is either its non-limited view if
11950         coming from a limited with or its etype if regular incomplete subtype.
11951
11952         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
11953         Fix predicate to identify and allow cases of (expander-generated)
11954         references to tag of designated object of a RACW.
11955         (Validate_Static_Object_Name): In Ada 2005, a formal object is
11956         non-static, and therefore cannot appear as a primary in a preelaborable
11957         package.
11958         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
11959         Has_Read_Write_Attributes.
11960         (Has_Read_Write_Attributes): Reimplement in termes of
11961         Has_Stream_Attribute_Definition.
11962         (Missing_Read_Write_Attributes): When checking component types in a
11963         record, unconditionally call Missing_Read_Write_Attributes recursively
11964         (remove guard checking for Is_Record_Type / Is_Access_Type).
11965
11966 2006-10-31  Robert Dewar  <dewar@adacore.com>
11967
11968         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
11969         useless assignments here and conditionalize it on absence of exception
11970         handlers.
11971         (Analyze_Exception_Handlers): Small code reorganization of error
11972         detection code, for new handling of formal packages.
11973
11974 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
11975             Hristian Kirtchev  <kirtchev@adacore.com>
11976
11977         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
11978         that has been constant-folded, preserve information of original tree,
11979         for ASIS uses.
11980         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
11981         generated private extension declaration if the formal derived type is
11982         synchronized. Carry synchronized present over to the generated private
11983         extension.
11984         (Validate_Derived_Type_Instance): Ensure that the actual of a
11985         synchronized formal derived type is a synchronized tagged type.
11986         (Instantiate_Formal_Package): When creating the instantiation used to
11987         validate the actual package of a formal declared without a box, check
11988         whether the formal itself depends on a prior actual.
11989         (Instantiate_Formal_Subprogram): Create new entities for the defining
11990         identifiers of the formals in the renaming declaration, for ASIS use.
11991         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
11992         a renaming declaration or a subtype declaration for an actual in an
11993         instance, capture location information of declaration in generic, for
11994         ASIS use.
11995         (Instantiate_Formal_Package): Add comments on needed additional tests.
11996         AI-317 (partial parametrization) is fully implemented.
11997         (Validate_Private_Type_Instance): Add check for actual which
11998         must have preelaborable initialization
11999         Use new // insertion for some continuation messages
12000         (Analyze_Formal_Object_Declaration): Change usage of Expression to
12001         Default_Expression. Add type retrieval when the declaration has an
12002         access definition. Update premature usage of incomplete type check.
12003         (Check_Access_Definition): New subsidiary routine. Check whether the
12004         current compilation version is Ada 05 and the supplied node has an
12005         access definition.
12006         (Instantiate object): Alphabetize local variables. Handle the creation
12007         of new renaming declarations with respect to the kind of definition
12008         used - either an access definition or a subtype mark. Guard against
12009         unnecessary error message in the context of anonymous access types after
12010         they have been resolved. Add check for required null exclusion in a
12011         formal object declaration.
12012         (Switch_View): A private subtype of a non-private type needs to be
12013         switched (the base type can have been switched without its private
12014         dependents because of the last branch of Check_Private_View.
12015         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
12016         value from BT.
12017         (Instantiate_Type): Emit an error message whenever a class-wide type of
12018         a tagged incomplete type is used as a generic actual.
12019         (Find_Actual_Type): Extend routine to handle a component type in a child
12020         unit that is imported from a formal package in a parent.
12021         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
12022         agree on constrainedness, rather than checking against ultimate ancestor
12023         (Instantiate_Subprogram_Body): Create a cross-reference link to the
12024         generic body, for navigation purposes.
12025
12026 2006-10-31  Robert Dewar  <dewar@adacore.com>
12027             Thomas Quinot  <quinot@adacore.com>
12028
12029         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
12030         type.
12031         (New_Stream_Subprogram): When processing an attribute definition clause
12032         for a stream-oriented subprogram, record an entity node occurring at
12033         the point of clause to use for checking the visibility of the clause,
12034         as defined by 8.3(23) as amended by AI-195.
12035         (New_Stream_Subprogram): New procedure, factoring behaviour from both
12036          New_Stream_Function and New_Stream_Procedure.
12037         (New_Stream_Function, New_Stream_Procedure): Removed.
12038         (Analyze_Attribute_Definition_Clause, case Address): Check new
12039         Alignment_Check check
12040
12041 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
12042             Javier Miranda  <miranda@adacore.com>
12043             Robert Dewar  <dewar@adacore.com>
12044
12045         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
12046         generate the same errors compiling under -gnatc.
12047         (Try_Object_Operation): If no candidate interpretation succeeds, but
12048         there is at least one primitive operation with the right name, report
12049         error in call rather than on a malformed selected component.
12050         (Analyze_Selected_Component): If the prefix is an incomplete type from
12051         a limited view, and the full view is available, use the full view to
12052         determine whether this is a prefixed call to a primitive operation.
12053         (Operator_Check): Verify that a candidate interpretation is a binary
12054         operation before checking the type of its second formal.
12055         (Analyze_Call): Add additional warnings for function call contexts not
12056         yet supported.
12057         (Analyze_Allocator): Move the check for "initialization not allowed for
12058         limited types" after analyzing the expression. This is necessary,
12059         because OK_For_Limited_Init looks at the structure of the expression.
12060         Before analysis, we don't necessarily know what sort of expression it
12061         is. For example, we don't know whether F(X) is a function call or an
12062         indexed component; the former is legal in Ada 2005; the latter is not.
12063         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
12064         were missing. We also didn't handle qualified expressions. Now also
12065         allow function calls. Use new common routine OK_For_Limited_Init.
12066         (Analyze_Type_Conversion): Do not perform some legality checks in an
12067         instance, because the error message will be redundant or spurious.
12068         (Analyze_Overloaded_Selected_Component): Do not do style check when
12069         setting an entity, since we do not know it is the right entity yet.
12070         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
12071         (Analyze_Overloaded_Selected_Component): Same change
12072         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
12073         since regular incomplete subtypes are transformed into corresponding
12074         subtypes of their full views.
12075         (Complete_Object_Operation): Treat name of transformed subprogram call
12076         as coming from source, for browsing purposes.
12077         (Try_Primitive_Operation): If formal is an access parameter, compare
12078         with base type of object to determine whether it is a primitive
12079         operation.
12080         (Operator_Check): If no interpretation of the operator matches, check
12081         whether a use clause on any candidate might make the operation legal.
12082         (Try_Class_Wide_Operation): Check whether the first parameter is an
12083         access type whose designated type is class-wide.
12084
12085 2006-10-31  Robert Dewar  <dewar@adacore.com>
12086             Ed Schonberg  <schonberg@adacore.com>
12087             Gary Dismukes  <dismukes@adacore.com>
12088
12089         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
12090         warn on infinite loops.
12091         Add \\ to some continuation messages
12092         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
12093         (Process_Bounds): If the bounds are integer literals that result from
12094         constant-folding, and they carry a user-defined type, preserve that type
12095         rather than treating this as an integer range.
12096         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
12097         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
12098         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
12099         left hand side of assignment.
12100         (Analyze_Assignment): Add suport to manage assigments to the attribute
12101         priority of a protected object.
12102         (Check_Possible_Current_Value_Condition): Allow fully qualified names
12103         not just identifiers.
12104         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
12105         or AND THEN for possible tracking.
12106         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
12107         case of while loops so we can track values in the loop body.
12108
12109 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
12110             Hristian Kirtchev  <kirtchev@adacore.com>
12111             Bob Duff  <duff@adacore.com>
12112
12113         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
12114         procedure cannot be a protected operation (it is a basic_declaration,
12115         not a subprogram_declaration).
12116         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
12117         Subp. Add logic for entry processing.
12118         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
12119         Determine whether an entry or subprogram of a protected or task type
12120         override an inherited primitive of an implemented interface.
12121         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
12122         Update the actual used in calls to Check_Overriding_Indicator.
12123         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
12124         generate the proper reference to the parent unit, for cross-reference.
12125         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
12126         Is_Formal.
12127         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
12128         (Add_Extra_Formal): Revise procedure to allow passing in associated
12129         entity, scope, and name suffix, and handle setting of the new
12130         Extra_Formals field.
12131         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
12132         pass new parameters. Add support for adding the new extra access formal
12133         for functions whose calls are treated as build-in-place.
12134         (Analyze_A_Return_Statement): Correct casing in error message.
12135         Move Pop_Scope to after Analyze_Function_Return, because an extended
12136         return statement really is a full-fledged scope. Otherwise, visibility
12137         doesn't work right. Correct use of "\" for continuation messages.
12138         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
12139         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
12140         the node doesn't get properly marked as analyzed.
12141         (Analyze_Subprogram_Body): If subprogram is a function that returns
12142         an anonymous access type that denotes a task, build a Master Entity
12143         for it.
12144         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
12145         proper usage of null exclusion in a result definition.
12146         (Process_Formals): Code cleanup and new error message.
12147         (Process_Formals): Detect incorrect application of null exclusion to
12148         non-access types.
12149         (Conforming_Types): Handle conformance between [sub]types and itypes
12150          generated for entities that have null exclusions applied to them.
12151         (Maybe_Primitive_Operation): Add an additional type retrieval when the
12152          base type is an access subtype. This case arrises with null exclusions.
12153         (New_Overloaded_Entity): Do not remove the overriden entity from the
12154         homonym chain if it corresponds with an abstract interface primitive.
12155         (Process_Formals): Replace membership test agains Incomplete_Kind with a
12156         call to the synthesized predicate Is_Incomplete_Type.
12157         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
12158         primitives.
12159         (Analyze_Subprogram_Declaration): Check that abstract interface
12160         primitives are abstract or null.
12161         (Analyze_Subprogram_Specification): Remove previous check for abstract
12162         interfaces because it was not complete.
12163         (Has_Interface_Formals): Removed.
12164
12165 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
12166             Javier Miranda  <miranda@adacore.com>
12167
12168         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
12169         of Analyze_Package_Body, to create Itype references for anonymous
12170         access types created in the package declaration, whose designated types
12171         may have only a limited view.
12172         (Analyze_Package_Specification): For the private part of a nested
12173         package, install private_with_clauses of enclosing compilation unit if
12174         we are in its visible part.
12175         (Declare_Inherited_Private_Subprograms): Complete barrier
12176         to ensure that the primitive operation has an alias to some parent
12177         primitive. This is now required because, after the changes done for the
12178         implementation of abstract interfaces, the contents of the list of
12179         primitives has entities whose alias attribute references entities of
12180         such list of primitives.
12181         (Analyze_Package_Specification): Simplify code that handles parent units
12182         of instances and formal packages.
12183         (Uninstall_Declarations): Check the convention consistency among
12184         primitive overriding operations of a tagged record type.
12185
12186 2006-10-31  Robert Dewar  <dewar@adacore.com>
12187             Hristian Kirtchev  <kirtchev@adacore.com>
12188             Javier Miranda  <miranda@adacore.com>
12189             Ed Schonberg  <schonberg@adacore.com>
12190
12191         * sem_ch8.adb: Minor error msg rewording
12192         (Undefined): When checking for misspellings, invert arguments (to get
12193         expected and found set right)
12194         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
12195         (Analyze_Generic_Renaming): Same fix
12196         (Use_One_Package): Do not take into account the internal entities of
12197         abstract interfaces during the analysis of entities that are marked
12198         as potentially use-visible.
12199         (Find_Type): Handle the case of an attribute reference for
12200         implementation defined attribute Stub_Type (simply let the analysis of
12201         the attribute reference rewrite it).
12202         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
12203         type that appears in a Use_Type clause.
12204         (Analyze_Object_Renaming): Add support for renaming of the Priority
12205         attribute.
12206         (Find_Type): In Ada 2005, a task type can be used within its own body,
12207         when it appears in an access definition.
12208         (Analyze_Object_Renaming): Remove warning on null_exclusion.
12209         (Analyze_Object_Renaming): Introduce checks for required null exclusion
12210          in a formal object declaration or in a subtype declaration.
12211         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
12212         (Check_Null_Exclusion): New local routine to
12213         Analyze_Subprogram_Renaming. Check whether the formals and return
12214         profile of a renamed subprogram have required null exclusions when
12215         their counterparts of the renaming already impose them.
12216         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
12217         Determine whether an entity is inside a generic scope.
12218         (In_Open_Scope): First pass of documentation update.
12219         (Find_Expanded_Name): Add support for shadow entities associated with
12220         limited withed packages. This is required to handle nested packages.
12221         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
12222         that makes a renaming of a limited withed package illegal.
12223
12224 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
12225             Ed Schonberg  <schonberg@adacore.com>
12226
12227         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
12228         Check_Overriding_Indicator.
12229         (Analyze_Task_Definition): Ditto.
12230         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
12231         (Check_Overriding_Indicator): To find overridden interface operation,
12232         examine only homonyms that have an explicit subprogram declaration, not
12233         inherited operations created by an unrelated type derivation.
12234         (Check_Overriding_Indicator): When checking for the presence of "null"
12235         in a procedure, ensure that the queried node is a procedure
12236         specification.
12237         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
12238         type when the formal is an access to variable.
12239         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
12240         (Analyze_Task_Type): Same addition
12241         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
12242         provide navigation capabilities for entries.
12243
12244 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
12245             Ed Schonberg  <schonberg@adacore.com>
12246             Javier Miranda  <miranda@adacore.com>
12247             Gary Dismukes  <dismukes@adacore.com>
12248
12249         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
12250         inherited from an interface ancestor by another interface in the
12251         context of an instance as 'late'.
12252         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
12253         of a call to a function that dispatches on access result.
12254         (Check_Dispatching_Operation): In case of late overriding of a primitive
12255         that covers abstract interface subprograms we register it in all the
12256         secondary dispatch tables associated with abstract interfaces.
12257         (Check_Dispatching_Call): Add check that a dispatching call is not made
12258         to a function with a controlling result of a limited type. This is a
12259         current implementation restriction.
12260         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
12261         (Check_Dispatching_Operation): Do no emit a warning if the controlling
12262         argument is an interface type that is a generic formal.
12263         (Is_Interface_Subprogram): Removed.
12264         (Check_Dispatching_Operation): If the subprogram is not a dispatching
12265         operation, check the formals to handle the case in which it is
12266         associated with an abstract interface type.
12267
12268 2006-10-31  Robert Dewar  <dewar@adacore.com>
12269             Ed Schonberg  <schonberg@adacore.com>
12270
12271         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
12272         Add new calls to this procedure during traversal
12273         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
12274         another unit if expansion is disabled.
12275
12276 2006-10-31  Robert Dewar  <dewar@adacore.com>
12277
12278         * sem_eval.adb (Compile_Time_Compare): Make use of information from
12279         Current_Value in the conditional case, to evaluate additional
12280         comparisons at compile time.
12281
12282 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
12283             Hristian Kirtchev  <kirtchev@adacore.com>
12284             Javier Miranda  <miranda@adacore.com>
12285
12286         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
12287         subprogram type to provide better diagnostics in case of ambiguity.
12288         (Covers): Handle coverage of formal and actual anonymous access types in
12289         the context of generic instantiation.
12290         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
12291         abstract interface types; this is required to handle concurrent types
12292         with discriminants and abstract interface types.
12293         (Covers): Include type coverage of both regular incomplete subtypes and
12294         incomplete subtypes of incomplete type visibles through a limited with
12295         clause.
12296
12297 2006-10-31  Robert Dewar  <dewar@adacore.com>
12298             Hristian Kirtchev  <kirtchev@adacore.com>
12299             Ed Schonberg  <schonberg@adacore.com>
12300
12301         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
12302         messages for entities in packages which are not used.
12303         (Collect_Synchronized_Interfaces): New procedure.
12304         (Overrides_Synchronized_Primitive): New function.
12305         (Denotes_Discriminant): Extend predicate to apply to task types.
12306         Add missing continuation marks in error msgs
12307         (Unqualify): New function for removing zero or more levels of
12308         qualification from an expression. There are numerous places where this
12309         ought to be used, but we currently only deal properly with zero or one
12310         level.
12311         (In_Instance); The analysis of the actuals in the instantiation of a
12312         child unit is not within an instantiation, even though the parent
12313         instance is on the scope stack.
12314         (Safe_To_Capture_Value): Exclude the case of variables that are
12315         renamings.
12316         (Check_Obsolescent): Removed
12317         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
12318         is an aliased view, even when rewritten as a reference to the target
12319         object in an assignment.
12320         (Get_Subprogram_Entity): New function
12321         (Known_To_Be_Assigned): New function
12322         (Type_Access_Level): Compute properly the access level of a return
12323         subtype that is an anonymous access type.
12324         (Explain_Limited_Type): Correct use of "\" for continuation messages.
12325         (Is_Transfer): The new extended_return_statement causes a transfer of
12326         control.
12327         (Has_Preelaborable_Initialization): New function
12328         (Has_Null_Exclusion): New function. Given a node N, determine whether it
12329         has a null exclusion depending on its Nkind.
12330         Change Is_Lvalue to May_Be_Lvalue
12331         (May_Be_Lvalue): Extensive additional code to deal with subprogram
12332         arguments (IN parameters are not Lvalues, IN OUT parameters are).
12333         (Safe_To_Capture_Value): Extend functionality so it can be used for
12334         the current value condition case.
12335         (Has_Compatible_Alignment): New function
12336         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
12337         objects to handle the Ada 2005 case, where aliasedness no longer implies
12338         that the object is constrained. In particular, for dereferenced names,
12339         the designated object must be assumed to be unconstrained.
12340         (Kill_Current_Values): Properly deal with the case where we encounter
12341         a loop in the scope chain.
12342         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
12343         a value.
12344         (Compile_Time_Constraint_Error): Improve error message in error case
12345
12346         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
12347         associated with entities of abstract interface primitives.
12348         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
12349
12350 2006-10-31  Robert Dewar  <dewar@adacore.com>
12351
12352         * s-osinte-tru64.adb: 
12353         Mark Asm statements Volatile to prevent warnings (seems a
12354         reasonable change anyway)
12355         Fixes new warnings
12356
12357         * s-mastop-irix.adb: Add Volatile to Asm statements
12358         Suppresses warning, and seems appropriate in any case
12359
12360         * s-osinte-vms.adb: Add Volatile to Asm statement
12361
12362         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
12363
12364         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
12365         returned.
12366         Add call to Check_Code_Statement
12367
12368 2006-10-31  Robert Dewar  <dewar@adacore.com>
12369             Ed Schonberg  <schonberg@adacore.com>
12370             Bob Duff  <duff@adacore.com>
12371
12372         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
12373         Synchronized_Present): Add Formal_Derived_Type_Definition and
12374         Private_Extension_Declaration to the list of assertions.
12375         (Is_Entry_Barrier_Function): New flag
12376         (Has_Self_Reference): New flag on aggregates, to indicate that they
12377         contain a reference to the enclosing type, inserted through a default
12378         initialization.
12379         (Next_Rep_Item): Move from Node4 to Node5.
12380         (Entity): Add this field for N_Attribute_Definition_Clause.
12381         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
12382         (N_Return_Object_Declaration): Remove this node kind. We now use
12383         N_Object_Declaration instead.
12384         (Actual_Designated_Subtype): Move to a different place to make room in
12385         N_Extended_Return_Statement.
12386         (Procedure_To_Call): Move to a different place to make room in
12387         N_Extended_Return_Statement.
12388         (Return_Type): Removed this field to make room in return statements
12389         (both kinds).
12390         (Return_Statement_Entity): New field in return statements, in part to
12391         replace Return_Type, and in part to support the fact that return
12392         statements are now pushed on the scope stack during semantic analysis.
12393         (Return_Object_Declarations): New field to support extended return
12394         statements.
12395         (N_Extended_Return_Statement): New node for extended_return_statement
12396         nonterminal.
12397         (N_Return_Object_Declaration): New node for part of
12398         extended_return_statement nonterminal. Needed because all the necessary
12399         fields won't fit in N_Extended_Return_Statement.
12400         Generic_associations now carry the Box_Present flag, to indicate a
12401         default for an actual in a partially parametrized formal package.
12402
12403         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
12404         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
12405         and for the new predefined dispatching policies: EDF_Across_Priorities,
12406         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
12407         Introduce new name Stub_Type for implementation defined attribute.
12408         Add pragma Preelaborable_Initialization
12409         Add entry for Priority attribute.
12410         Add Pragma_Wide_Character_Encoding
12411         (Get_Convention_Name): Given a convention id, this function returns the
12412         corresponding name id from the names table.
12413
12414 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
12415             Robert Dewar  <dewar@adacore.com>
12416             Bob Duff  <duff@adacore.com>
12417
12418         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
12419         print null exclusion twice in the case of an access definition,
12420         Implement new -gnatL switch
12421         Remove N_Return_Object_Declaration. We now use
12422         N_Object_Declaration instead. Implement the case for
12423         N_Extended_Return_Statement. Alphabetize the cases.
12424         Add cases for new nodes N_Extended_Return_Statement and
12425         N_Return_Object_Declaration. The code is not yet written.
12426         Update the output for N_Formal_Object_Declaration
12427         and N_Object_Renaming_Declaration.
12428         (Write_Itype): Account for the case of a modular integer subtype whose
12429         base type is private.
12430
12431 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
12432
12433         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
12434         Remove elaboration code, now done in the binder.
12435
12436         * s-rident.ads: Make this unit Preelaborate.
12437         (No_Restrictions): New constant used to clean up code and follow
12438         preelaborate constraints.
12439
12440         * s-stalib.adb: 
12441         Add System.Restrictions dependence, referenced directly from the
12442         binder generated file.
12443
12444 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
12445
12446         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
12447         True when AAMP extended floating-point is in use (48-bit). Change type
12448         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
12449         the two byte array types on AFloat. Change type of IV_Ilf overlay
12450         variable from Byte8 to ByteLF. Add appropriate initializations of
12451         floating-point overlays for AAMP cases.
12452
12453 2006-10-31  Javier Miranda  <miranda@adacore.com>
12454
12455         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
12456         (Get_Ceiling): New subprogram that returns
12457         the ceiling priority of the protected object.
12458         (Set_Ceiling): New subprogram that sets the new ceiling priority of
12459         the protected object.
12460
12461         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
12462
12463         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
12464
12465 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
12466
12467         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
12468         requeuing to the same protected object to give higher priority tasks
12469         the opportunity to execute.
12470
12471 2006-10-31  Robert Dewar  <dewar@adacore.com>
12472
12473         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
12474         add more precise check for the character sequence that follows '[' to
12475         avoid possible confusion in case if '[' is the last character of a
12476         string literals.
12477         (Scan_Wide): Always allow brackets encoding
12478
12479 2006-10-31  Olivier Hainque  <hainque@adacore.com>
12480
12481         * s-stchop.ads: make this unit preelaborate. This is desirable in
12482         general and made mandatory by the use of this unit by s-taprop which
12483         is itself preelaborate.
12484
12485         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
12486         Td_Events component.
12487
12488 2006-10-31  Vincent Celier  <celier@adacore.com>
12489
12490         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
12491         in file names.
12492
12493 2006-10-31  Vincent Celier  <celier@adacore.com>
12494
12495         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
12496
12497 2006-10-31  Vincent Celier  <celier@adacore.com>
12498
12499         * makegpr.adb (Check_Compilation_Needed): Take into account path names
12500         with spaces.
12501         (Check_Compilation_Needed): When checking a C or C++ source, do not
12502         resolve symbolic links.
12503         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
12504         When not in verbose mode and Ellipse is True, display "..." for the
12505         first argument with Display set to False.
12506         (Build_Global_Archive): Always set Display True for the first object
12507         file. Call Display_Command with Ellipse set to True.
12508
12509 2006-10-31  Matt Heaney  <heaney@adacore.com>
12510
12511         * a-crbtgo.ads: Commented each subprogram
12512
12513         * a-crbtgo.adb: Added reference to book from which algorithms were
12514         adapted.
12515
12516         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
12517         indicate which child.
12518         (Generic_Conditional_Insert): changed parameter name from "Success" to
12519         "Inserted".
12520         (Generic_Unconditional_Insert_With_Hint): improved algorithm
12521
12522         * a-coorse.adb (Replace_Element): changed parameter name in call to
12523         conditional insert operation.
12524
12525         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
12526
12527         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
12528         Generic_Iteration
12529
12530         * a-ciorse.adb (Replace_Element): changed parameter name in call to
12531         conditional insert operation.
12532
12533         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
12534         Generic_Iteration.
12535
12536         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
12537         instead of mode inout.
12538
12539         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
12540         draft
12541         (Generic_Read): preserve existing buckets array if possible
12542         (Generic_Write): don't send buckets array length anymore
12543
12544         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
12545         instead of mode inout.
12546
12547         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
12548         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
12549
12550         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
12551         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
12552         (Replace_Element): local operation is now an instantiation
12553
12554         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
12555         check current length.
12556         (Generic_Replace_Element): new operation
12557
12558 2006-10-31  Doug Rupp  <rupp@adacore.com>
12559
12560         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
12561         Call TBK$SYMBOLIZE without omitting parameters.
12562
12563 2006-10-31  Vincent Celier  <celier@adacore.com>
12564
12565         * symbols-processing-vms-ia64.adb,
12566         symbols-processing-vms-alpha.adb (Process): Do not include symbols
12567         that come from generic instantiations in bodies.
12568
12569 2006-10-31  Pat Rogers  <rogers@adacore.com>
12570
12571         * a-rttiev.ads, a-rttiev.adb: 
12572         This is a significant redesign primarily for the sake of automatic
12573         timer task termination but also to fix a design flaw.
12574         Therefore we are now using an RTS lock, instead of a protected
12575         object, to provide mutual exclusion to the queue of pending events
12576         and the type Timing_Event is no longer a protected type.
12577
12578 2006-10-31  Robert Dewar  <dewar@adacore.com>
12579             Cyrille Comar  <comar@adacore.com>
12580             Ben Brosgol  <brosgol@adacore.com>
12581
12582         * debug.adb:  Update flags documentation
12583
12584         * gnat_ugn.texi: Add documentation for new -gnatwq switch
12585         Clean up documentation for several other warning switches
12586         Clarify how task stack size can be specified with various
12587         versions of Windows.
12588         Add note that -gnatVo includes ranges including loops
12589         Add documentation for -gnatL switch
12590         Add note on elaboration warning for initializing variables
12591         Add documentation for new -gnatwt warning switch
12592         Document new form of pragma Warnings (On|Off, string)
12593         Add comment on use of pragma Warnings to control warnings
12594         Add documentation for -gnatjnn switch
12595         Modify section on interfacing with C for VMS 64-bit.
12596         Add doc for -gnatVe/E
12597         Add documentation of new warning flags -gnatww/-gnatwW
12598         Add warnings about address clause overlays to list of warnings
12599         (Exception Handling Control): Document that the option --RTS must be
12600         used consistently for gcc and gnatbind.
12601         Clarify that inlining is not always possible
12602         Update documentation on pragma Unchecked_Union.
12603
12604         * gnat_rm.texi: 
12605         Add documentation for new extended version of pragma Obsolescent
12606         Add documentation for implementation defined attribute 'Stub_Type.
12607         Add note on use of Volatile in asm statements
12608         Add documentation on use of pragma Unreferenced in context clause
12609         Document new form of pragma Warnings (On|Off, pattern)
12610         Document pragma Wide_Character_Encoding
12611         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
12612         enforced if code generation is active.
12613         Add section on pragma Suppress to document GNAT specific check
12614         Alignment_Check
12615         Clarify difference between No_Dispatching_Calls & No_Dispatch.
12616         Add documentation for pragma Restrictions (No_Elaboration_Code)
12617
12618         * gnat-style.texi: 
12619         Add comments on layout of subprogram local variables in the
12620         presence of nested subprograms.
12621
12622         * ug_words: Resync.
12623
12624         * elists.ads: Minor reformatting
12625         Node returns Node_Or_Entity_Id (doc change only)
12626
12627         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
12628
12629         * g-arrspl.ads (Create): Update comments.
12630
12631         * sem.ads: Add details on the handling of the scope stack.
12632
12633         * usage.adb: Update documentation.
12634
12635         * validsw.ads, validsw.adb: 
12636         Add definition of Validity_Check_Components and implement -gnatVe/E
12637
12638         * vms_data.ads: Add missing VMS qualifiers.
12639
12640         * s-addope.ads: Add documentation on overflow and divide by zero
12641
12642 2006-10-31  Robert Dewar  <dewar@adacore.com>
12643             Thomas Quinot  <quinot@adacore.com>
12644             Arnaud Charlet  <charlet@adacore.com>
12645
12646         * fmap.adb: Put routines in alpha order
12647
12648         * g-boumai.ads: Remove redundant 'in' keywords
12649
12650         * g-cgi.adb: Minor reformatting
12651
12652         * g-cgi.ads: Remove redundant 'in' keywords
12653
12654         * get_targ.adb: Put routines in alpha order
12655
12656         * prj-attr.ads: Minor reformatting
12657
12658         * s-atacco.ads: Minor reformatting
12659
12660         * scn.adb: Put routines in alpha order
12661
12662         * sinput-l.adb: Minor comment fix
12663
12664         * sinput-p.adb: Minor comment fix
12665
12666         * s-maccod.ads: Minor reformatting
12667
12668         * s-memory.adb: Minor reformatting
12669
12670         * s-htable.adb: Fix typo in comment.
12671
12672         * s-secsta.adb: Minor comment update.
12673
12674         * s-soflin.adb: Minor reformatting
12675
12676         * s-stoele.ads: 
12677         Add comment about odd qualification in Storage_Offset declaration
12678
12679         * s-strxdr.adb: 
12680         Remove unnecessary 'in' keywords for formal parameters.
12681
12682         * treeprs.adt: Minor reformatting
12683
12684         * urealp.adb: Put routines in alpha order
12685
12686         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
12687         taking string.
12688
12689         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
12690
12691         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
12692
12693         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
12694         workaround as on other platforms.
12695
12696         * g-eacodu-vms.adb: Remove redundant 'in' keywords
12697         * g-expect-vms.adb: Remove redundant 'in' keywords
12698
12699         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
12700         clear error message if the list-of-files file cannot be opened.
12701
12702         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
12703         equality operator is always visible.
12704
12705         * lang.opt: Woverlength-strings: New option.
12706
12707         * nmake.adt: 
12708         Update copyright, since nmake.ads and nmake.adb have changed.
12709
12710         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
12711         (Binder_Output_Time_Stamps_Set): removed.
12712         (Old_Binder_Output_Time_Stamp): idem.
12713         (New_Binder_Output_Time_Stamp): idem.
12714         (Recording_Time_From_Last_Bind): idem.
12715         (Recording_Time_From_Last_Bind): Make constant.
12716
12717         * output.ads, output.adb (Write_Str): Allow LF characters
12718         (Write_Spaces): New procedure
12719
12720         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
12721
12722         * inline.adb: Minor reformatting
12723
12724         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
12725
12726         * s-mastop-vms.adb: Remove redundant 'in' keywords
12727
12728         * s-osprim-vms.adb: Remove redundant 'in' keywords
12729
12730         * s-trafor-default.adb: Remove redundant 'in' keywords
12731
12732         * 9drpc.adb: Remove redundant 'in' keywords
12733
12734         * s-osinte-mingw.ads: Minor reformatting
12735
12736         * s-inmaop-posix.adb: Minor reformatting
12737
12738         * a-direio.ads: Remove quotes from Compile_Time_Warning message
12739
12740         * a-exexda.adb: Minor code reorganization
12741
12742         * a-filico.adb: Minor reformatting
12743
12744         * a-finali.adb: Minor reformatting
12745
12746         * a-nudira.ads: Remove quote from Compile_Time_Warning message
12747
12748         * a-numeri.ads: Minor reformatting
12749
12750         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
12751
12752         * exp_pakd.ads: Fix obsolete comment
12753
12754         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
12755         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
12756         Probably not a bug, but certainly neater and more efficient.
12757
12758         * a-tienio.adb: Minor reformatting
12759
12760         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
12761         Avoid assuming low bound of string is 1.
12762
12763         * gnatbind.adb: Change Bindusg to package and rename procedure as
12764         Display, which now ensures that it only outputs usage information once.
12765         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
12766
12767         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
12768         Table'First.
12769
12770         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
12771         warning.
12772         (Match): Add pragma Assert to ensure that Matches'First is zero
12773
12774         * g-regpat.ads (Match): Document that Matches lower bound must be zero
12775
12776         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
12777         documented preconditions (also kills warnings about bad indexes).
12778
12779         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
12780         is 1.
12781         (Build_Import_Library): Ditto;
12782
12783         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
12784
12785         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
12786
12787         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
12788         lower bound of choice table is 1.
12789
12790         * sem_case.ads (Analyze_Choices): Document that lower bound of
12791         Choice_Table is 1.
12792
12793         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
12794         string is 1.
12795
12796         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
12797         and add appropriate Assert pragma to suppress warnings.
12798
12799         * atree.h, atree.ads, atree.adb
12800         Change Elist24 to Elist25
12801         Add definitions of Field28 and Node28
12802         (Traverse_Field): Use new syntactic parent table in sinfo.
12803
12804         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
12805
12806         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
12807
12808         * exp_tss.adb: Put routines in alpha order
12809
12810         * fe.h: Remove redundant declarations.
12811
12812 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
12813
12814         * utils.c (builtin_function): Rename to gnat_builtin_function.
12815         Move common code to add_builtin_function.
12816         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
12817         gnat_builtin_function.
12818         * gigi.h (builtin_function): Rename to gnat_builtin_function.
12819         Change the signature.
12820
12821 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
12822
12823         * Makefile.in: Add TEXI2PDF definition.
12824         * Make-lang.in: Add "ada.pdf" target.
12825
12826 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
12827
12828         * decl.c, utils.c: Fix comment typos.
12829         * utils.c: Fix a typo.
12830
12831 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
12832
12833         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
12834         on "pure" Ada subprograms if SJLJ exceptions are used.
12835         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
12836         on the declaration node of JMPBUF_SAVE.
12837         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
12838         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
12839         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
12840
12841 2006-08-20  Laurent Guerby  <laurent@guerby.net>
12842
12843         PR ada/28716
12844         g-socket.adb (Bind_Socket): Call Set_Address.
12845
12846 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12847
12848         PR ada/15802
12849         * decl.c (same_discriminant_p): New static function.
12850         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
12851         subtype and we have discriminants, fix up the COMPONENT_REFs
12852         for the discriminants to make them reference the corresponding
12853         fields of the parent subtype after it has been built.
12854
12855 2006-09-15  Roger Sayle  <roger@eyesopen.com>
12856
12857         PR ada/18817
12858         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
12859         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
12860
12861 2006-09-13  Olivier Hainque  <hainque@adacore.com>
12862
12863         PR ada/29025
12864         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
12865         of a SAVE_EXPR, just make the operand addressable/not-readonly and
12866         let the common gimplifier code make and propagate a temporary copy.
12867         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
12868         out/in-out actuals and defer setting the addressable/readonly bits
12869         to the gimplifier.
12870
12871 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
12872
12873         PR ada/28591
12874         * decl.c (components_to_record): Defer emitting debug info for the
12875         record type associated with the variant until after we are sure to
12876         actually use it.
12877
12878 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
12879
12880         PR ada/21952
12881         * gigi.h (gnat_internal_attribute_table): Declare.
12882         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
12883         * utils.c (gnat_internal_attribute_table): New global variable.
12884         (builtin_function): Always call decl_attributes on the builtin.
12885         (handle_const_attribute): New static function.
12886         (handle_nothrow_attribute): Likewise.
12887
12888 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12889
12890         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
12891
12892 2006-06-23  Olivier Hainque  <hainque@adacore.com>
12893
12894         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
12895         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
12896
12897 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
12898             Eric Botcazou  <ebotcazou@adacore.com>
12899
12900         PR ada/18692
12901         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
12902         check-gnat into check-acats.
12903
12904 2006-06-17  Karl Berry  <karl@gnu.org>
12905
12906         * gnat-style.texi (@dircategory): Use "Software development"
12907         instead of "Programming", following the Free Software Directory.
12908
12909 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12910
12911         PR ada/27944
12912         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
12913
12914 2006-06-06  Laurent Guerby  <laurent@guerby.net>
12915
12916         PR ada/27769
12917         mlib-utl.adb: Use Program_Name.
12918
12919 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
12920
12921         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
12922         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
12923         trans.c, utils.c: Fix comment typos.  Follow spelling
12924         conventions.
12925         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
12926         conventions.
12927
12928 2006-05-19  Nicolas Setton  <setton@adacore.com>
12929
12930         * misc.c (gnat_dwarf_name): New function.
12931         (LANG_HOOKS_DWARF_NAME): Define to it.
12932
12933 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12934
12935         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
12936         (ada/misc.o): Likewise.
12937         (ada/utils.o): Likewise.
12938
12939 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
12940
12941         * Makefile.in: Add Ada support for GNU/kFreeBSD.
12942         * s-osinte-kfreebsd-gnu.ads: New file.
12943
12944 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
12945
12946         * Make-lang.in: Rename docdir to gcc_docdir.
12947
12948 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
12949
12950         * gigi.h (get_ada_base_type): Delete.
12951         * utils2.c (get_ada_base_type): Likewise.
12952         * trans.c (convert_with_check): Operate in the real base type.
12953
12954 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12955
12956         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
12957
12958 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
12959
12960         * utils.c (create_var_decl): Use have_global_bss_p when deciding
12961         whether to make the decl common.
12962
12963 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12964
12965         * Make-lang.in (Ada): Remove.
12966         (.PHONY): Remove Ada
12967
12968 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
12969
12970         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
12971         aggregate, check the interpretations of the other operand to find one
12972         that may be a boolean array.
12973
12974         (Analyze_Selected_Component): Fix flow-of-control typo in case where
12975         the prefix is a private extension.
12976
12977 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
12978
12979         PR ada/26315
12980         * utils2.c (find_common_type): If both input types are BLKmode and
12981         have the same constant size, keep using the first one.
12982
12983         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
12984
12985         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
12986
12987         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
12988
12989 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
12990
12991         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
12992         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
12993         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
12994         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
12995         Abort_Defer/Undefer pairs to avoid the possibility of a task being
12996         aborted while owning a lock.
12997
12998 2006-02-17  Javier Miranda  <miranda@adacore.com>
12999             Robert Dewar  <dewar@adacore.com>
13000
13001         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
13002         through an access to class-wide interface we force the displacement of
13003         the pointer to the allocated object to reference the corresponding
13004         secondary dispatch table.
13005         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
13006         if Long_Shifts are supported on the target, even if 64 bit divides
13007         are not supported (configurable run time mode).
13008         (Expand_N_Type_Conversion): Do validity check if validity checks on
13009         operands are enabled.
13010         (Expand_N_Qualified_Expression): Do validity check if validity checks
13011         on operands are enabled.
13012
13013 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
13014
13015         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
13016         must be materialized when the renamed expression is an explicit
13017         dereference.
13018
13019 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
13020
13021         * freeze.adb (Statically_Discriminated_Components): Return false if
13022         the bounds of the type of the discriminant are not static expressions.
13023
13024         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
13025         the bounds of the discriminant type are not static.
13026
13027 2006-02-17  Robert Dewar  <dewar@adacore.com>
13028
13029         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
13030         then we close To if it is valid.
13031
13032 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
13033
13034         * init.c (facility_resignal_table): new array
13035         (__gnat_default_resignal_p): enhance default predicate to resignal if
13036         VMS condition has one of the predefined facility codes.
13037
13038 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
13039
13040         * Makefile.in: Use VMS64 specialized versions of several units in
13041         Interfaces.C hierarchy to be compatible with HP C default size choices.
13042         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
13043
13044 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
13045
13046         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
13047         instantiation, the corresponding entity is the related_instance of the
13048         wrapper package created for the instance.
13049
13050 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
13051
13052         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
13053         the current instance is nested within another instance in a child unit.
13054
13055 2006-02-17  Javier Miranda  <miranda@adacore.com>
13056             Ed Schonberg  <schonberg@adacore.com>
13057
13058         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
13059         type we cannot inherit the primitive operations; we inherit the
13060         Corresponding_Record_Type (which has the list of primitive operations).
13061         (Check_Anonymous_Access_Types): When creating anonymous access types for
13062         access components, use Rewrite in order to preserve the tree structure,
13063         for ASIS use.
13064         (Analyze_Object_Declaration): For limited types with access
13065         discriminants with defaults initialized by an aggregate, obtain
13066         subtype from aggregate as for other mutable types.
13067         (Derived_Type_Declaration): If the derived type is a limited interface,
13068         set the corresponding flag (Is_Limited_Record is not sufficient).
13069
13070 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
13071
13072         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
13073         to inline a function that returns an unconstrained type, the return
13074         expression must be the first variable declared in the body of the
13075         function.
13076
13077 2006-02-17  Javier Miranda  <miranda@adacore.com>
13078
13079         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
13080         abstract interface type, the static analysis is not enough to know if
13081         the interface is implemented or not by the source tagged type. Hence
13082         we must pass the work to the expander to generate the required code to
13083         evaluate the conversion at run-time.
13084         (Resolve_Equality_Op): Do not apply previous
13085         transformation if expansion is disasbled, to prevent anomalies when
13086         locating global references in a generic unit.
13087
13088 2006-02-17  Vincent Celier  <celier@adacore.com>
13089
13090         * snames.ads, snames.adb: New standard names for new project attributes:
13091         archive_builder, archive_indexer, compiler_pic_option,
13092         config_body_file_name, config_body_file_name_pattern,
13093         config_file_switches, config_file_unique, config_spec_file_name,
13094         config_spec_file_name_pattern, default_builder_switches,
13095         default_global_compiler_switches, default_language,
13096         dependency_file_kind, global_compiler_switches, include_path,
13097         include_path_file, language_kind, linker_executable_option,
13098         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
13099         roots, runtime_project.
13100
13101 2006-02-17  Matthew Heaney  <heaney@adacore.com>
13102
13103         * a-convec.ads, a-convec.adb: 
13104         (operator "&"): handle potential overflow for large index types
13105         (Insert): removed Contraint_Error when using large index types
13106         (Insert_Space): removed Constraint_Error for large index types
13107         (Length): moved constraint check from Length to Insert
13108
13109         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
13110         as not null access.
13111         Explicit raise statements now include an exception message.
13112         (operator "&"): handle potential overflow for large index types
13113         (Insert): removed Contraint_Error when using large index types
13114         (Insert_Space): removed Constraint_Error for large index types
13115         (Length): moved constraint check from Length to Insert
13116
13117 2006-02-17  Robert Dewar  <dewar@adacore.com>
13118
13119         * s-wchcnv.adb: Document handling of [ on output (we do not change
13120         this to ["5B"] and the new comments say why not.
13121
13122         * gnat_ugn.texi: 
13123         Add note for -gnatVo that this now includes the cases of type
13124         conversions and qualified expressions.
13125         Add comments on handling of brackets encoding for Text_IO
13126
13127 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
13128             Thomas Quinot  <quinot@adacore.com>
13129             Robert Dewar  <dewar@adacore.com>
13130             Javier Miranda  <miranda@adacore.com>
13131
13132         * expander.adb: Fix typo in comment
13133
13134         * exp_pakd.adb: Fix typo
13135         Minor comment reformatting.
13136
13137         * g-dyntab.adb: Minor reformatting
13138
13139         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
13140         aliased subprograms to look for the abstract interface subprogram.
13141
13142 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
13143
13144         * env.c (__gnat_setenv): Use size_t.
13145         (__gnat_unsetenv): Likewise.
13146         (__gnat_clearenv): Likewise.
13147
13148 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
13149
13150         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
13151
13152 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
13153
13154         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
13155         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
13156         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
13157         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
13158         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
13159         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
13160         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
13161         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
13162         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
13163         no longer used.
13164
13165 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
13166
13167         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
13168         protection against race conditions is not needed.
13169         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
13170         fallback handler.
13171         (Set_Specific_Handler): Add mutual exclusive access to the specific
13172         handler.
13173         (Specific_Handler): Add mutual exclusive access for retrieving the
13174         specific handler.
13175
13176         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
13177         back handler.
13178
13179         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
13180         Fall_Back_Handler and Specific_Handler.
13181
13182         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
13183         termination handlers.
13184         Set two different owerflow depending on the maximal stack size.
13185
13186         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
13187         protection against race conditions is not needed when executing the
13188         task termination handler.
13189
13190 2006-02-13  Robert Dewar  <dewar@adacore.com>
13191
13192         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
13193         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
13194         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
13195         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
13196         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
13197         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
13198         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
13199         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
13200         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
13201         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
13202         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
13203         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
13204         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
13205         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
13206         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
13207         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
13208         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
13209         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
13210         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
13211         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
13212         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
13213         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
13214         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
13215         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
13216         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
13217         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
13218         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
13219         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
13220         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
13221         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
13222         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
13223         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
13224         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
13225         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
13226         reformatting.
13227
13228 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
13229
13230         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
13231         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
13232         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
13233         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
13234         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
13235         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
13236         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
13237         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
13238         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
13239
13240 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
13241
13242         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
13243         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
13244         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
13245         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
13246         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
13247         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
13248         replaced by anonymous access type.
13249         (pthread_sigmask): Now take an access sigset_t
13250
13251         * s-osinte-hpux.ads:  Ditto.
13252         (pthread_mutex_t, pthread_cond_t): Update definitions to support
13253         properly 32 and 64 bit ABIs.
13254
13255 2006-02-13  Pascal Obry  <obry@adacore.com>
13256
13257         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
13258         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
13259         s-taprop-linux.adb, s-taprop-solaris.adb,
13260         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
13261         adjustement is already done when calling this routine.
13262
13263 2006-02-13  Pascal Obry  <obry@adacore.com>
13264
13265         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
13266         table to take advantage of the 16 priority levels available on Windows
13267         2000 and XP. On NT4 there are only 7 priority levels, this is properly
13268         supported by this new mapping.
13269
13270 2006-02-13  Nicolas Setton  <setton@adacore.com>
13271
13272         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
13273         (get_encoding): New subprogram. Extracts the encodings from an encoded
13274         Ada name.
13275
13276 2006-02-13  Pascal Obry  <obry@adacore.com>
13277             Nicolas Roche  <roche@adacore.com>
13278             Arnaud Charlet  <charlet@adacore.com>
13279
13280         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
13281         support.
13282         (__gnat_try_lock): Add unicode support by using a specific section on
13283         Windows.
13284         (__gnat_get_current_dir): Idem.
13285         (__gnat_open_read): Idem.
13286         (__gnat_open_rw): Idem.
13287         (__gnat_open_create): Idem.
13288         (__gnat_create_output_file): Idem.
13289         (__gnat_open_append): Idem.
13290         (__gnat_open_new): Idem.
13291         (__gnat_file_time_name): Idem.
13292         (__gnat_set_file_time_name): Idem.
13293         (__gnat_stat): Idem.
13294         (win32_no_block_spawn): Idem.
13295         (__gnat_locate_exec_on_path): Idem.
13296         (__gnat_opendir): New routine.
13297         (__gnat_closedir): Idem.
13298         (__gnat_readdir): Add new parameter length (pointer to int). Update
13299         implementation to use it and add specific Win32 code for Unicode
13300         support.
13301         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
13302         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
13303         (convert_addresses): Do not define this dummy routine on VMS.
13304
13305         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
13306         runtime Unicode support will be activated.
13307         (S2WS): String to Wide-String conversion. This version just copy a
13308         string in non Unicode version.
13309         (WS2S): Wide-String to String conversion. This version just copy a
13310         string in non Unicode version.
13311
13312         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
13313         (Open): Now import __gnat_opendir from adaint.c.
13314         (Read): Change the implementation to support unicode characters. It is
13315         not possible to use strlen() on Windows as this version supports only
13316         standard ASCII characters. So the length of the directory entry is now
13317         returned from the imported __gnat_readdir routine.
13318         Update copyright notice.
13319
13320         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
13321         (opendir): Moved to adaint.c.
13322
13323         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
13324         (Get_Directory): Fix wrong indexing.
13325         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
13326         __gnat_getenv from env.c
13327         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
13328         from env.c
13329
13330         * env.h, env.c: New file.
13331
13332         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
13333         adaint.c by __gnat_getenv from env.c
13334
13335         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
13336         adaint.c by __gnat_getenv from env.c
13337
13338         * Make-lang.in: Add env.o in the list of C object needed by gnat1
13339         and gnatbind.
13340         Update dependencies.
13341
13342 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13343             Olivier Hainque  <hainque@adacore.com>
13344             Eric Botcazou  <ebotcazou@adacore.com>
13345
13346         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
13347         
13348         * gigi.h (value_factor_p): Add prototype and description, now public.
13349
13350         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
13351         promotion for field with rep clause if the associated size was proven
13352         to be in error.
13353         Expand comments describing attempts to use a packable type.
13354         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
13355         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
13356         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
13357         necessary since these are not different types and pointers may
13358         actually designate any subtype in this hierarchy.
13359         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
13360         discriminants but put them into record only if not Unchecked_Union;
13361         pass flag to components_to_record showing Unchecked_Union.
13362         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
13363         components before variants; don't set TYPE_UNCHECKED_UNION_P.
13364         (components_to_record): New argument UNCHECKED_UNION.
13365         Remove special case code for Unchecked_Union and instead use main code
13366         with small changes.
13367
13368         PR ada/26096
13369         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
13370         variable with the expression being built, only its inner field.
13371
13372         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
13373         emit_sequence_entry_statements.
13374         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
13375         (establish_gnat_vms_condition_handler): Move before
13376         Subprogram_Body_to_gnu.
13377         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
13378         for a subprogram if it has a foreign convention or is exported.
13379         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
13380         substituted for a CONST_DECL.
13381         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
13382         Etype to assoc_to_constructor.
13383         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
13384         discriminants of Unchecked_Union.
13385         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
13386         don't need cluttering preprocessor directives.
13387         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
13388         condition handler as current in the compiled function.
13389         (body_with_handlers_p): New function. Tell whether a given sequence of
13390         statements node is attached to a package or subprogram body and involves
13391         exception handlers possibly nested within inner block statements.
13392         (emit_sequence_entry_statements): New function, to emit special
13393         statements on entry of sequences when necessary. Establish GNAT
13394         condition handler in the proper cases for VMS.
13395         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
13396         emit_sequence_entry_statements.
13397
13398         * utils2.c (find_common_type): If both input types are BLKmode and
13399         have a constant size, use the smaller one.
13400         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
13401         the same.
13402
13403         * utils.c (value_factor_p): Make public, to allow uses from other gigi
13404         units.
13405         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
13406         (convert, case UNION_TYPE): Remove special treatment for unchecked
13407         unions.
13408
13409         PR ada/18659
13410         (update_pointer_to): Update variants of pointer types to unconstrained
13411         arrays by attaching the list of fields of the main variant.
13412
13413 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
13414             Robert Dewar  <dewar@adacore.com>
13415
13416         * a-exexpr.adb, a-exexpr-gcc.adb
13417         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
13418         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
13419         Remove code unused for exception propagation for the compiler itself
13420         from a-except.adb and update to still share separate packages.
13421
13422         * a-except.ads, a-except.adb: Ditto.
13423         Add comments that this version is now used only by the compiler and
13424         other basic tools. The full version that includes the Ada 2005 stuff
13425         is in separate files a-except-2005.ads/adb. The reason is that we do
13426         not want to cause bootstrap problems with compilers not recognizing
13427         Wide_Wide_String.
13428         Add exception reason code PE_Implicit_Return
13429         Add new exception reason code (Null Exception_Id)
13430
13431         * a-except-2005.adb, a-except-2005.ads: New files.
13432
13433         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
13434
13435         * s-wchcon.adb: New file.
13436
13437         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
13438         (traceback.o deps): Likewise.
13439         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
13440         Activate build of GMEM instrumentation library on VMS targets.
13441         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
13442         Use a-except-2005.ads/adb for all run-time library builds unless
13443         specified otherwise.
13444         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
13445         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
13446         Use s-parame.adb on all native platforms.
13447         Use s-parame-vxworks.adb on all vxworks platforms.
13448         Add env.c env.h in LIBGNAT_SRCS
13449         Add env.o in LIBGNAT_OBJS
13450         (GNATMAKE_OBJS): Remove ctrl_c.o object.
13451         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
13452         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
13453         supports VxWorks 6 RTPs.
13454         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
13455         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
13456
13457         * types.h, types.ads (Terminate_Program): New exception
13458         Add comment on modifying multiple versions of a-except.adb when the
13459         table of exception reasons is modified.
13460         Add exception reason code PE_Implicit_Return
13461         Add new exception reason code (Null Exception_Id)
13462
13463         * clean.adb (Initialize): Get the target parameters before checking
13464         if target is OpenVMS. Move the OpenVMS specific code here from package
13465         body elaboration code.
13466
13467 2006-02-13  Thomas Quinot  <quinot@adacore.com>
13468             Vincent Celier  <celier@adacore.com>
13469             Robert Dewar  <dewar@adacore.com>
13470
13471         * ali-util.adb (Get_File_Checksum): Update to account for change in
13472         profile of Initialize_Scanner.
13473
13474         * gprep.adb (Gnatprep): Update to account for change in profile of
13475         Initialize_Scanner.
13476         (Process_One_File): Same.
13477
13478         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
13479         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
13480         that behaviour using the new Unit information recorded in the source
13481         files table, rather than going through all units every time.
13482         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
13483         (Get_Source_Unit): Same.
13484
13485         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
13486         change in profile of Initialize_Scanner.
13487         (Prepare_To_Preprocess): Same.
13488
13489         * lib.ads: Fix typo in comment (templace -> template).
13490
13491         * prj-part.adb (Parse_Single_Project): Update to account for change in
13492         profile of Initialize_Scanner.
13493
13494         * scn.adb (Initialize_Scanner): Account for change in profile of
13495         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
13496         Also record the association of the given Source_File_Index to the
13497         corresponding Unit_Number_Type.
13498
13499         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
13500         procedure.
13501         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
13502         Remove Unit formal for generic scanner: this formal
13503         is only relevant to Scn (the scanner instance used to parse Ada source
13504         files), not to other instances. Update comment accordingly.
13505         (Scan): Use new function Snames.Is_Keyword_Name.
13506
13507         * sinfo-cn.adb: Fix typo in comment.
13508
13509         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
13510         Unit.
13511
13512         * sinput.ads (Source_File_Record): New component Unit, used to capture
13513         the unit identifier (if any) associated to a source file.
13514
13515         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
13516         Unit in Source_File_Record.
13517
13518         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
13519         in profile of Initialize_Scanner.
13520
13521         * scans.adb (Initialize_Ada_Keywords): New procedure
13522
13523         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
13524         Ada keywords in the Namet table, without the need to call
13525         Initialize_Scanner.
13526
13527         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
13528         (Is_Keyword_Name): New function
13529
13530         * snames.ads: Add subtype Configuration_Pragma_Names
13531         Add pragma Ada_2005 (synonym for Ada_05)
13532         (Is_Keyword_Name): New function
13533
13534         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
13535
13536 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
13537
13538         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
13539         index.
13540
13541         * a-stwima.adb (To_Set): Add extra check when N = 0.
13542
13543         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
13544
13545 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
13546
13547         * s-parame-mingw.adb, s-parame-linux.adb,
13548         s-parame-solaris.adb: Removed, replaced by s-parame.adb
13549
13550         * s-parame-vxworks.ads: Fix typo.
13551
13552         * s-parame-vxworks.adb: New file.
13553
13554         * s-parame.adb: Version now used by all native platforms.
13555         (Default_Stack_Size): Use 2 megs for default stack size and use
13556         __gl_default_stack_size when available.
13557         (Minimum_Stack_Size): Use 12K.
13558
13559         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
13560         (Create_Task): Refine implementation taking advantage of the XP stack
13561         size support. On XP, we now create the thread using the flag
13562         STACK_SIZE_PARAM_IS_A_RESERVATION.
13563
13564         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
13565
13566         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
13567         XP and 0 on older Windows versions.
13568
13569         * interfac-vms.ads: Removed, no longer used.
13570
13571 2006-02-13  Matthew Heaney  <heaney@adacore.com>
13572
13573         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
13574         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
13575         a-cohase.adb: All explicit raise statements now include an exception
13576         message.
13577
13578         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
13579         (Update_Element_Preserving_Key): renamed op to just Update_Element.
13580         Explicit raise statements now include an exception message
13581
13582         * a-cihase.ads, a-cohase.ads: Removed comment.
13583
13584         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
13585         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
13586         a-szbzha.adb, a-szfzha.ads: New files.
13587
13588 2006-02-13  Matthew Heaney  <heaney@adacore.com>
13589
13590         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
13591         quicksort.
13592
13593 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
13594
13595         * lang.opt: Wvariadic-macros: New option.
13596         Wold-style-definition: Likewise.
13597         Wmissing-format-attribute: Likewise.
13598
13599         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
13600         -Wold-style-definition and -Wmissing-format-attribute.
13601
13602 2006-02-13  Robert Dewar  <dewar@adacore.com>
13603
13604         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
13605
13606         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
13607
13608 2006-02-13  Nicolas Roche  <roche@adacore.com>
13609
13610         * a-envvar.adb, a-envvar.ads: New files.
13611
13612 2006-02-13  Douglas Rupp  <rupp@adacore.com>
13613
13614         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
13615
13616         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
13617
13618 2006-02-13  Pat Rogers  <rogers@adacore.com>
13619
13620         * a-rttiev.adb, a-rttiev.ads: New files.
13621
13622 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
13623
13624         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
13625         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
13626
13627         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
13628
13629 2006-02-13  Robert Dewar  <dewar@adacore.com>
13630
13631         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
13632         sem_case.adb: Minor code reorganization (not Present should be No)
13633
13634 2006-02-13  Geert Bosch  <bosch@adacore.com>
13635             Gary Dismukes  <dismukes@adacore.com>
13636
13637         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
13638         0, since the lower bound of the actual string may be greater than one.
13639
13640         PR ada/20753
13641         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
13642         layout is requested.
13643
13644 2006-02-13  Vincent Celier  <celier@adacore.com>
13645
13646         * back_end.adb (Scan_Compiler_Arguments): Check if
13647         Search_Directory_Present is True and, if it is, add the argument in
13648         the source search directory path.
13649
13650         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
13651         Search_Directory_Present to True.
13652
13653 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
13654
13655         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
13656         volatile, to tell the compiler to preserve this variable at any level
13657         of optimization.
13658         (Gen_Versions_Ada): Temporarily work around codegen bug.
13659
13660 2006-02-13  Vincent Celier  <celier@adacore.com>
13661
13662         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
13663         gcc to link with option -shared-libgcc.
13664         (Gnatlink): Remove duplicate switches -shared-libgcc
13665
13666 2006-02-13  Robert Dewar  <dewar@adacore.com>
13667
13668         * gnatvsn.ads (Current_Year): New constant, used to easily update
13669         copyright on all GNAT tools.
13670
13671         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
13672         copyright notice.
13673
13674 2006-02-13  Robert Dewar  <dewar@adacore.com>
13675
13676         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
13677         after hyphen (small aesthetic change useful for a range of numbers
13678         using ^-^.
13679         Suppress range checks for a couple of assignments which otherwise
13680         cause validity checks with validity checking turned on.
13681
13682         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
13683         Improvement in error message for object.
13684         (Rep_Item_Too_Late): Remove '!' in warning message.
13685
13686 2006-02-13  Robert Dewar  <dewar@adacore.com>
13687             Eric Botcazou  <ebotcazou@adacore.com>
13688
13689         * err_vars.ads: Suppress range checks for a couple of assignments
13690         which otherwise cause validity checks with validity checking turned on.
13691         Update comments.
13692
13693         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
13694         Make message unconditional if it is a warning.
13695         (Error_Msg_NEL): Always output warning messages.
13696         Suppress range checks for a couple of assignments which otherwise
13697         cause validity checks with validity checking turned on.
13698
13699         * errout.ads (Message Insertion Characters): Document that '!' is
13700         implied by '?' in error messages.
13701
13702         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
13703         (Gnat1drv): Use a goto to end of main subprogram instead of
13704         Exit_Program (E_Success) so that finalization can occur normally.
13705
13706 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
13707
13708         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
13709         wrapped around.
13710
13711 2006-02-13  Vincent Celier  <celier@adacore.com>
13712
13713         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
13714         Unchecked_Conversion functions.
13715         (Modification_Time): Use direct conversion of OS_Time to Calendar time
13716         when OpenVMS returns False.
13717
13718         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
13719         a-dirval.adb (OpenVMS): New Boolean function
13720
13721 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13722             Thomas Quinot  <quinot@adacore.com>
13723
13724         * checks.adb (Build_Discriminant_Checks): If the expression being
13725         checks is an aggregate retrieve the values of its discriminants to
13726         generate the check, rather than creating a temporary and a reference
13727         to it.
13728         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
13729         (Install_Null_Excluding_Check): Ditto
13730         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
13731         not for the renamed object, so that the actual itype is attached in the
13732         proper context.
13733
13734 2006-02-13  Robert Dewar  <dewar@adacore.com>
13735             Vincent Celier  <celier@adacore.com>
13736
13737         * debug.adb: Eliminate numeric switches for binder/gnatmake
13738
13739         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
13740         switches for the compiler.
13741         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
13742         (Scan_Make_Switches): When failing with an illegal switch, output an
13743         error message with the full switch.
13744         Eliminate numeric switches for binder/gnatmake
13745
13746         * switch.ads, switch.adb (Bad_Switch): New procedure
13747
13748         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
13749         Remove 0-9 as debug flag character possibilities
13750         -d is now controlling the primary stack size when its value is a
13751         positive. Also add checks against invalid values, and support for kb,
13752         mb. Ditto for -D switch.
13753
13754 2006-02-13  Robert Dewar  <dewar@adacore.com>
13755             Serguei Rybin  <rybin@adacore.com>
13756
13757         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
13758         save/restore routines.
13759         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13760         were not always properly handled previously.
13761         Since we are changing the tree format anyway, also get rid of the
13762         junk obsolete Immediate_Errors flag.
13763         (Tree_Read): Change the way of reading Tree_Version_String - now we
13764         read the version string from the tree even if its length is not the
13765         same as the length of the version string computed from Gnatvsn.
13766         (Search_Directory_Present): New Boolean flag for the compiler.
13767         Define Tree_Version_String as a dynamic string.
13768         (Default_Stack_Size): new variable, used to handle switch -d.
13769
13770         * par-prag.adb: 
13771         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
13772         only for main unit.
13773         Add pragma Ada_2005 (synonym for Ada_05)
13774         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
13775         were not always properly handled previously.
13776
13777         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
13778         explicit Ada_95 to Ada_2005.
13779
13780 2006-02-13  Javier Miranda  <miranda@adacore.com>
13781             Robert Dewar  <dewar@adacore.com>
13782             Ed Schonberg  <schonberg@adacore.com>
13783
13784         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
13785         against errors in the source program: a private types for which the
13786         corresponding full type declaration is missing and pragma CPP_Virtual
13787         is used.
13788         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
13789         (Is_Known_Null): New flag
13790         (Has_Pragma_Pure): New flag
13791         (No_Return): Present in all entities, set only for procedures
13792         (Is_Limited_Type): A type whose ancestor is an interface is limited if
13793         explicitly declared limited.
13794         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
13795         entities. Only used for component marked Is_Tag. If present it stores
13796         the Offset_To_Top function used to provide this value in tagged types
13797         whose ancestor has discriminants.
13798
13799         * exp_ch2.adb: Update status of new Is_Known_Null flag
13800
13801         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
13802
13803         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
13804         the categorization sense if Is_Pure was set by pragma Pure_Function.
13805
13806 2006-02-13  Quentin Ochem  <ochem@adacore.com>
13807             Olivier Hainque  <hainque@adacore.com>
13808
13809         * bindusg.adb: Updated documentation for -d and -D switches.
13810
13811         * raise.h (__gnat_set_globals): added new parameter for
13812         Default_Stack_Size.
13813
13814         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
13815         (__gnat_handle_vms_condition): Adjust context before raise.
13816         (__gnat_install_handler): Restore the global vector setup for GCC
13817         versions before 3.4, as the frame based circtuitry is not available
13818         in this case.
13819         (__gnat_set_globals): added a parameter default_stack_size
13820         (__gl_default_stack_size): new variable.
13821
13822 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13823
13824         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
13825         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
13826         does not exist in the Ada RM.
13827         (Compatible_Int_Bounds): Determine whether two integer range bounds
13828         are of equal length and have the same start and end values.
13829         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
13830         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
13831         aggregate when it is part of an object declaration.
13832         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
13833         constrains discriminants of its parent, add explicitly the discriminant
13834         constraints of the ancestor by retrieving them from the
13835         stored_constraint of the parent.
13836
13837 2006-02-13  Robert Dewar  <dewar@adacore.com>
13838
13839         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
13840         attribute Mechanism_Code is applied to renamed subprogram, modify
13841         prefix to point to base subprogram.
13842         Max/Min attributes now violate Restriction No_Implicit_Conditionals
13843
13844         * sinfo.ads: Document that Mechanism_Code cannot be applied to
13845         renamed subprograms so that the front-end must replace the prefix
13846         appropriately.
13847
13848 2006-02-13  Javier Miranda  <miranda@adacore.com>
13849             Gary Dismukes  <dismukes@adacore.com>
13850
13851         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
13852         availability of RE_Interface_Tag.
13853         (Build_Initialization_Call): Fix wrong access to the discriminant value.
13854         (Freeze_Record_Type): Do not generate the tables associated with
13855         timed and conditional dispatching calls through synchronized
13856         interfaces if compiling under No_Dispatching_Calls restriction.
13857         When compiling for Ada 2005, for a nonabstract
13858         type with a null extension, call Make_Controlling_Function_Wrappers
13859         and insert the wrapper function declarations and bodies (the latter
13860         being appended as freeze actions).
13861         (Predefined_Primitive_Bodies): Do not generate the bodies of the
13862         predefined primitives associated with timed and conditional
13863         dispatching calls through synchronized interfaces if we are
13864         compiling under No_Dispatching_Calls.
13865         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
13866         service is available before generating a call.
13867         (Make_Controlling_Function_Wrappers): New procedure.
13868         (Expand_N_Full_Type_Declaration): Create a class-wide master for
13869         access-to-limited-interfaces because they can be used to reference
13870         tasks that implement such limited interface.
13871         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
13872         procedure spec and body of the Offset_To_Top function that is generated
13873         when the parent of a type with discriminants has secondary dispatch
13874         tables.
13875         (Init_Secondary_Tags): Handle the case in which the parent of the type
13876         containing secondary dispatch tables has discriminants to generate the
13877         correct arguments to call Set_Offset_To_Top.
13878         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
13879
13880         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
13881         Add Wide_[Wide_]Expanded_Name.
13882         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
13883         the same functionality of Get_Prim_Op_Address but applied to predefined
13884         primitive operations because the pointers to the predefined primitives
13885         are now saved in a separate table.
13886         (Parent_Size): Modified to get access to the separate table of primitive
13887         operations or the parent type.
13888         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
13889         functionality of Set_Prim_Op_Address but applied to predefined primitive
13890         operations.
13891         (Set_Signature): New subprogram used to store the signature of a DT.
13892         (Displace): If the Offset_To_Top value is not static then call the
13893         function generated by the expander to get such value; otherwise use
13894         the value stored in the table of interfaces.
13895         (Offset_To_Top): The type of the actual has been changed to Address to
13896         give the correct support to tagged types with discriminants. In this
13897         case this value is stored just immediately after the tag field.
13898         (Set_Offset_To_Top): Two new formals have been added to indicate if the
13899         offset_to_top value is static and hence pass this value to the run-time
13900         to store it in the table of interfaces, or else if this value is dynamic
13901         and then pass to the run-time the address of a function that is
13902         generated by the expander to provide this value for each object of the
13903         type.
13904
13905         * rtsfind.ads (Default_Prin_Op_Count): Removed.
13906         (Default_Prim_Op_Count): New entity
13907         (Get_Predefined_Prim_Op_Address): New entity
13908         (Set_Predefined_Prim_Op_Address): New entity
13909         (RE_Set_Signature): New entity
13910
13911 2006-02-13  Thomas Quinot  <quinot@adacore.com>
13912             Ed Schonberg  <schonberg@adacore.com>
13913
13914         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
13915         Make_Adjust_Call done for a newly-allocated object.
13916
13917         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
13918         in a subprogram are wrapped in a cleanup block, indicate that the
13919         subprogram contains an inner block with an exception handler.
13920         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
13921         Adjust call is for a newly-allocated object. In that case we must not
13922         assume that the finalization list chain pointers are correct (since they
13923         come from a bit-for-bit copy of the original object's pointers) so if
13924         the attach level would otherwise be zero (no change), we set it to 4
13925         instead to cause the pointers to be reset to null.
13926
13927         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
13928         reset chain pointers to null.
13929
13930 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13931
13932         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
13933         string, and the context requires a loop for the assignment (e.g.
13934         because the left-hand side is packed), generate a unique name for the
13935         temporary that holds the string, to prevent spurious name clashes.
13936
13937 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
13938             Javier Miranda  <miranda@adacore.com>
13939             Robert Dewar  <dewar@adacore.com>
13940             Gary Dismukes  <dismukes@adacore.com>
13941
13942         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
13943         return unconstrained arrays.
13944         Update comments.
13945         (Expand_Call):  An indirect call through an access parameter of a
13946         protected operation is not a protected call.
13947         Add circuit to raise CE in Ada 2005 mode following call
13948         to Raise_Exception.
13949         (Register_DT_Entry): Do nothing if
13950         the run-time does not give support to abstract interfaces.
13951         (Freeze_Subprogram): In case of dispatching operations, do not generate
13952         code to register the operation in the dispatch table if the source
13953         is compiled with No_Dispatching_Calls.
13954         (Register_Predefined_DT_Entry): Generate code that calls the new
13955         run-time subprogram Set_Predefined_Prim_Op_Address instead of
13956         Set_Prim_Op_Address.
13957
13958         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
13959         on array assignments if the right-hand side is a function call that has
13960         been inlined. Check is performed on the assignment in the block.
13961         (Process_Bounds): If bounds and range are overloaded, apply preference
13962         rule for root operations to disambiguate, and diagnose true ambiguity.
13963         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
13964         a tag-indeterminate right-hand side even when Expander_Active is True.
13965         Needed to ensure that dispatching calls to T'Input are allowed and
13966         get the tag of the target class-wide object.
13967
13968         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
13969         an inherited primitive operation that already overrides several
13970         abstract interface primitives. For transitivity, the new entity must
13971         also override all the abstract interface primitives covered by the
13972         inherited overriden primitive.
13973         Emit warning if new entity differs from homograph in same scope only in
13974         that one has an access parameter and the other one has a parameter of
13975         a general access type with the same designated type, at the same
13976         position in the signature.
13977         (Make_Inequality_Operator): Use source locations of parameters and
13978         subtype marks from corresponding equality operator when creating the
13979         tree structure for the implicit declaration of "/=". This does not
13980         change anything in behaviour except that the decoration of the
13981         components of the subtree created for "/=" allows ASIS to get the
13982         string images of the corresponding identifiers.
13983         (Analyze_Return_Statement): Remove '!' in warning message.
13984         (Check_Statement_Sequence): Likewise.
13985         (Analyze_Subprogram_Body): For an access parameter whose designated type
13986         is an incomplete type imported through a limited_with clause, use the
13987         type of the corresponding formal in the body.
13988         (Check_Returns): Implicit return in No_Return procedure now raises
13989         Program_Error with a compile time warning, instead of beging illegal.
13990         (Has_Single_Return):  Function returning unconstrained type cannot be
13991         inlined if expression in unique return statement is not an identifier.
13992         (Build_Body_To_Inline): It is possible to inline a function call that
13993         returns an unconstrained type if all return statements in the function
13994         return the same local variable. Subsidiary procedure Has_Single_Return
13995         verifies that the body conforms to this restriction.
13996
13997         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
13998         same type, and  one of them is of an anonymous access type, convert
13999         the other operand to it, so that this is a valid binary operation for
14000         gigi.
14001         (Resolve_Type_Conversion): Handle subtypes of protected types and
14002         task types when accessing to the corresponding record type.
14003         (Resolve_Allocator): Add '\' in 2-line warning message.
14004         Remove '!' in warning message.
14005         (Resolve_Call): Add '\' in 2-line warning message.
14006         (Valid_Conversion): Likewise.
14007         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
14008         resulting type may be an access type with an implicit dereference.
14009         Obtain the proper component from the designated type.
14010         (Make_Call_Into_Operator): Handle properly a call to predefined equality
14011         given by an expanded name with prefix Standard, when the operands are
14012         of an anonymous access type.
14013         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
14014         Explicit_Dereference and Resolve_Selected_Component, to verify that the
14015         prefix of the expression is not of an incomplete type. Allows full
14016         diagnoses of all semantic errors.
14017         (Resolve_Actuals): If the actual is an allocator whose directly
14018         designated type is a class-wide interface we build an anonymous
14019         access type to use it as the type of the allocator. Later, when
14020         the subprogram call is expanded, if the interface has a secondary
14021         dispatch table the expander will add a type conversion to force
14022         the displacement of the pointer.
14023         (Resolve_Call): If a function that returns an unconstrained type is
14024         marked Inlined_Always and inlined, the call will be inlined and does
14025         not require the creation of a transient scope.
14026         (Check_Direct_Boolean_Op): Removed
14027         (Resolve_Comparison_Op): Remove call to above
14028         (Resolve_Equality_Op): Remove call to above
14029         (Resolve_Logical_Op): Inline above, since this is only call.
14030         (Valid_Conversion): Handle properly conversions between arrays of
14031         convertible anonymous access types.
14032
14033         PR ada/25885
14034         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
14035         the literal in an unchecked conversion, because GCC 4.x needs a static
14036         value for a string bound.
14037
14038 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
14039             Hristian Kirtchev  <kirtchev@adacore.com>
14040
14041         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
14042         components of the corresponding record, take into account component
14043         definitions that are access definitions.
14044         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
14045         procedure is not considered a dispatching call and will be expanded
14046         properly.
14047
14048 2006-02-13  Javier Miranda  <miranda@adacore.com>
14049
14050         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
14051         controlling argument of the dispatching call is an abstract interface
14052         class-wide type then we use it directly.
14053         Check No_Dispatching_Calls restriction.
14054         (Default_Prim_Op_Position): Remove the code that looks for the last
14055         entity in the list of aliased subprograms. This code was wrong in
14056         case of renamings.
14057         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
14058         when the source is compiled with the No_Dispatching_Calls restriction.
14059         (Init_Predefined_Interface_Primitives): No need to inherit primitives
14060         if we are compiling with restriction No_Dispatching_Calls.
14061         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
14062         subprograms if we are compiling under No_Dispatching_Calls restriction.
14063         (Make_DT): Generate a dispatch table with a single dummy entry if
14064         we are compiling with the No_Dispatching_Calls restriction. In
14065         addition, in this case we don't generate code that calls to the
14066         following run-time subprograms: Set_Type_Kind, Inherit_DT.
14067         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
14068         of this subprogram if compiling with the No_Dispatching_Calls
14069         restriction.
14070         (Expand_Type_Conversion): Instead of using the actual parameter,
14071         the argument passed as parameter to the conversion function was
14072         erroneously referenced by the expander.
14073         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
14074         Set_Predefined_Primitive_Op_Address and Set_Signature.
14075         (Expand_Dispatching_Call): Generate call to
14076         Get_Predefined_Prim_Op_Address for predefined primitives.
14077         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
14078         predefined primitives.
14079         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
14080         primitives we reserve one dummy entry to ensure that the tag does not
14081         point to some memory that is associated with some other object. In
14082         addition, remove all the old code that generated the assignments
14083         associated with the signature of the dispatch table and replace them
14084         by a call to the new subprogram Set_Signature.
14085         (Set_All_DT_Position): Change the algorithm because now we have a
14086         separate dispatch table associated with predefined primitive operations.
14087         (Expand_Interface_Conversion): In case of non-static offset_to_top
14088         add explicit dereference to get access to the object after the call
14089         to displace the pointer to the object.
14090         (Expand_Interface_Thunk): Modify the generation of the actual used
14091         in the calls to the run-time function Offset_To_Top to fulfil its
14092         new interface.
14093         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
14094
14095 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
14096
14097         * exp_dist.adb (Copy_Specification): For access parameters, copy
14098         Null_Exclusion flag, which will have been set for stream subprograms
14099         in Ada2005 mode.
14100
14101 2006-02-13  Pascal Obry  <obry@adacore.com>
14102
14103         * expect.c (__gnat_expect_portable_execvp): New implementation. The
14104         previous implementation was using the C runtime spawnve routine but
14105         the corresponding wait was using directly the Win32 API. This was
14106         causing some times a lock when waiting for an event using
14107         WaitForSingleObject in __gnat_waitpid. This new implementation uses
14108         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
14109         API fixes this problem.
14110
14111 2006-02-13  Robert Dewar  <dewar@adacore.com>
14112
14113         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
14114         call.
14115
14116 2006-02-13  Thomas Quinot  <quinot@adacore.com>
14117
14118         * exp_pakd.ads: Fix typos in comments.
14119
14120         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
14121         array reference that is an explicit dereference, mark the converted
14122         (packed) array reference as analyzed to prevent a forthcoming
14123         reanalysis from resetting its type to the original (non-packed) array
14124         type.
14125
14126 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
14127             Javier Miranda  <miranda@adacore.com>
14128             Eric Botcazou  <ebotcazou@adacore.com>
14129
14130         * exp_util.ads, exp_util.adb (Find_Prim_Op,
14131         Is_Predefined_Primitive_Operation): When
14132         searching for the predefined equality operator, verify that operands
14133         have the same type.
14134         (Is_Predefined_Dispatching_Operation): Remove the code that looks
14135         for the last entity in the list of aliased subprograms. This code
14136         was wrong in case of renamings.
14137         (Set_Renamed_Subprogram): New procedure
14138         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
14139         Exp_Type constant computed when entering this subprogram.
14140         (Known_Null): New function
14141         (OK_To_Do_Constant_Replacement): New function
14142         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
14143         (Side_Effect_Free): An attribute reference 'Input is not free of
14144         side effect, unlike other attributes that are functions. (from code
14145         reading).
14146         (Remove_Side_Effects): Expressions that involve packed arrays or records
14147         are copied at the point of reference, and therefore must be marked as
14148         renamings of objects.
14149         (Is_Predefined_Dispatching_Operation): Return false if the operation is
14150         not a dispatching operation.
14151
14152         PR ada/18819
14153         (Remove_Side_Effects): Lift enclosing type conversion nodes for
14154         elementary types in all cases.
14155
14156 2006-02-13  Javier Miranda  <miranda@adacore.com>
14157
14158         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
14159         task types when accessing to the corresponding record type.
14160         Remove '!' in warning message.
14161
14162 2006-02-13  Olivier Hainque  <hainque@adacore.com>
14163
14164         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
14165         to avoid useless and space inefficient overalignments on targets where
14166         Max_Alignment is larger than 16.
14167
14168 2006-02-13  Pascal Obry  <obry@adacore.com>
14169
14170         * g-catiio.adb (Sec_Number): New type used to compute the number of
14171         seconds since 1-1-1970.
14172         (Image) [Natural]: The parameter was an Integer, as we can't deal with
14173         negative numbers (years, months...) it is better to have a Natural here.
14174         Code clean-up.
14175         (Image) [Number]: Change parameter from Long_Integer to Number.
14176         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
14177         overflow for dates past year 2038.
14178
14179 2006-02-13  Matthew Heaney  <heaney@adacore.com>
14180
14181         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
14182         Constraint_Error.
14183
14184 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
14185
14186         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
14187         native platforms.
14188         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
14189         finalization can occur normally.
14190
14191 2006-02-13  Vincent Celier  <celier@adacore.com>
14192
14193         * gnatcmd.adb (Rules_Switches): New table
14194         (Add_To_Rules_Switches): New procedure
14195         (GNATCmd): For command CHECK, put all options following "-rules" in the
14196         Rules_Switches table. Append these -rules switches after the -cargs
14197         switches.
14198
14199 2006-02-13  Robert Dewar  <dewar@adacore.com>
14200
14201         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
14202         These two cases were generating incorrect output, and if this unit
14203         was built with checks on, generated a discriminant mismatch constraint
14204         error.
14205
14206 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
14207             Robert Dewar  <dewar@adacore.com>
14208
14209         * lib-xref.adb (Get_Type_Reference): For a private type whose full
14210         view is an array type, indicate the component type as well, for
14211         navigation purposes.
14212         (Generate_Reference): Don't consider array ref on LHS to be a case
14213         of violating pragma Unreferenced.
14214         Do not give Ada 2005 warning except on real reference.
14215
14216 2006-02-13  Vincent Celier  <celier@adacore.com>
14217
14218         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
14219         main source, add switch -mdebug-main=_ada_ so that the executable can
14220         be debugged by the standard VMS debugger.
14221         (Gnatmake): Set No_Main_Subprogram to True when there is no main
14222         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
14223         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
14224         of the last source, as the binding and linking phases are never
14225         performed.
14226         Set all executable obsolete when rebuilding a library.
14227
14228         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
14229         options.
14230
14231 2006-02-13  Javier Miranda  <miranda@adacore.com>
14232
14233         PR ada/23973
14234         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
14235         code to improve the error message reported when the program has
14236         declarations of abstract interface types and it is not compiled with
14237         the -gnat05 switch.
14238         (P_Access_Definition): Reorganize the code to improve the error
14239         message reported when the new Ada 2005 syntax for anonymous
14240         access types is used and the program is not compiled with the
14241         -gnat05 switch.
14242
14243 2006-02-13  Robert Dewar  <dewar@adacore.com>
14244
14245         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
14246         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
14247         (MODE_IN)
14248
14249 2006-02-13  Javier Miranda  <miranda@adacore.com>
14250
14251         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
14252         against source containing syntax errors.
14253
14254 2006-02-13  Vincent Celier  <celier@adacore.com>
14255
14256         * prj.adb (Reset): Initialize the first element of table Namings with
14257         the standard naming data.
14258
14259 2006-02-13  Vincent Celier  <celier@adacore.com>
14260
14261         * prj.ads (Error_Warning): New enumeration type
14262
14263         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
14264         unknown, use the location of the project to report the error.
14265         (When_No_Sources): New global variable
14266         (Report_No_Ada_Sources): New procedure
14267         (Check): New parameter When_No_Sources. Set value of global variable
14268         When_No_Sources,
14269         (Find_Sources): Call Report_No_Ada_Sources when appropriate
14270         (Get_Sources_From_File): Ditto
14271         (Warn_If_Not_Sources): Better warning messages indicating the unit name
14272         and the file name.
14273
14274         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
14275         Call Prj.Proc.Process with parameter When_No_Sources.
14276
14277         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
14278         Call Recursive_Check with parameter When_No_Sources.
14279         (Recursive_Check): New parameter When_No_Sources. Call itself and
14280         Prj.Nmsc.Check with parameter When_No_Sources.
14281         (Process): New parameter When_No_Sources. Call Check with parameter
14282         When_No_Sources.
14283         (Copy_Package_Declarations): New procedure to copy renamed parameters
14284         and setting the location of the declared attributes to the location
14285         of the renamed package.
14286         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
14287         packages.
14288
14289 2006-02-13  Vincent Celier  <celier@adacore.com>
14290
14291         * prj-makr.adb (Make): Preserve the comments from the original project
14292         file.
14293         When removing nodes (attributes Source_Dirs, Source_Files,
14294         Source_List_File and package Naming), save the comments and attach the
14295         saved comments to the newly created nodes.
14296         Do not add a with clause for the naming package if one already exists.
14297
14298 2006-02-13  Javier Miranda  <miranda@adacore.com>
14299             Gary Dismukes  <dismukes@adacore.com>
14300             Robert Dewar  <dewar@adacore.com>
14301
14302         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
14303
14304         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
14305         aliased entities to look for the overriden abstract interface
14306         subprogram.
14307         (Is_Interface_Subprogram): Complete documentation.
14308         (Check_Dispatching_Operation): Do not generate code to register the
14309         operation in the dispatch table if the source is compiled with
14310         restriction No_Dispatching_Calls.
14311         (Override_Dispatching_Operation): Check for illegal attempt to override
14312         No_Return procedure with procedure that is not No_Return
14313         (Check_Dispatching_Call): Suppress the check for an abstract operation
14314         when the original node of an actual is a tag-indeterminate attribute
14315         call, since the attribute, which must be 'Input, can never be abstract.
14316         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
14317         call to the Input attribute (even when rewritten).
14318         (Propagate_Tag): Augment comment to indicate the possibility of a call
14319         to an Input attribute.
14320
14321         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
14322         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
14323
14324         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
14325         No_Wide_Characters is no longer partition-wide
14326         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
14327         rather than GNAT
14328
14329 2006-02-13  Douglas Rupp  <rupp@adacore.com>
14330
14331         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
14332
14333 2006-02-13  Javier Miranda  <miranda@adacore.com>
14334
14335         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
14336         handles default-initialized components to keep separate the management
14337         of this feature but also avoid the unrequired resolution and
14338         expansion of components that do not have partially initialized
14339         values.
14340         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
14341         (Check_Bounds): Likewise.
14342         (Check_Length): Likewise.
14343
14344 2006-02-13  Javier Miranda  <miranda@adacore.com>
14345             Ed Schonberg  <schonberg@adacore.com>
14346
14347         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
14348         abstract interface type call analyze_and_resolve to expand the type
14349         conversion into the corresponding displacement of the
14350         reference to the base of the object.
14351         (Eval_Attribute, case Width): For systems where IEEE extended precision
14352         is supported, the maximum exponent occupies 4 decimal digits.
14353         (Accessibility_Message): Add '\' in 2-line warning message.
14354         (Resolve_Attribute): Likewise.
14355         (case Attribute_Access): Significantly revise checks
14356         for illegal access-to-subprogram Access attributes to properly enforce
14357         the rules of 3.10.2(32/2).
14358         Diagnose use of current instance with an illegal attribute.
14359
14360         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
14361         to a Node_Id.
14362         (Enclosing_Generic_Unit): New function to return a node's innermost
14363         enclosing generic declaration node.
14364         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
14365         (Type_Access_Level): The accessibility level of anonymous acccess types
14366         associated with discriminants is that of the current instance of the
14367         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
14368         (Compile_Time_Constraint_Error): Handle case of conditional expression.
14369         (Kill_Current_Values_For_Entity): New function
14370         (Enter_Name): Change formal type to Entity_Id
14371
14372 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
14373             Ed Schonberg  <schonberg@adacore.com>
14374             Gary Dismukes  <dismukes@adacore.com>
14375
14376         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
14377         Analyze_Compilation_Unit.
14378         Detect and warn on redundant with clauses detected in a package spec
14379         and/or body when -gnatwr is used.
14380         (Analyze_Context): Analyze config pragmas before other items
14381         (Install_Context_Items): Don't analyze config pragmas here
14382         (Install_Limited_Withed_Unit): Set limited entity of package in
14383         with_clause so that cross-reference information or warning messages on
14384         unused packages can be properly generated
14385         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
14386         has Error_Posted set. Prevent infinite loops in illegal programs.
14387         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
14388         to the point of the error test requiring the current unit to be private.
14389         This ensures that private with clauses are not exempted from the basic
14390         checking for being a descendant of the same library unit parent as a
14391         withed private descendant unit.
14392         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
14393         handle private with clauses properly, as well as to account for cases
14394         where the withed unit is a public descendant of a private ancestor
14395         (in which case the current unit must be a descendant of the private
14396         ancestor's parent). The spec comments were updated accordingly. Also,
14397         the old error message in this subprogram was replaced with error
14398         messages that mirror the errors tested and reported by
14399         Check_Private_Child_Unit.
14400         Parameter and variable names improved for readability.
14401         (Install_Limited_Context_Clauses): Remove test for a withed unit being
14402         private as the precondition for calling
14403         Check_Private_Limited_Withed_Unit since that subprogram has been
14404         revised to test public units as well as private units.
14405
14406 2006-02-13  Thomas Quinot  <quinot@adacore.com>
14407             Robert Dewar  <dewar@adacore.com>
14408             Ed Schonberg  <schonberg@adacore.com>
14409             Javier Miranda  <miranda@adacore.com>
14410
14411         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
14412         that Scope_Stack.First = 1.
14413         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
14414         were not always properly handled previously.
14415         (Formal_Entity): Complete rewrite, to handle properly some complex case
14416         with multiple levels of parametrization by formal packages.
14417         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
14418         to the corresponding derived type declaration for proper semantics.
14419
14420         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
14421         (Check_Component): Enforce restriction on components of
14422         unchecked_unions: a component in a variant cannot contain tasks or
14423         controlled types.
14424         (Unchecked_Union): Allow nested variants and multiple discriminants, to
14425         conform to AI-216.
14426         Add pragma Ada_2005 (synonym for Ada_05)
14427         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
14428         were not always properly handled previously.
14429         Document that pragma Propagate_Exceptions has no effect
14430         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
14431         (Set_Convention_From_Pragma): Check that if a convention is
14432         specified for a dispatching operation, then it must be
14433         consistent with the existing convention for the operation.
14434         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
14435         longer required to specify an vtable-ptr component in the record. For
14436         compatibility reasons we leave the support for the previous definition.
14437         (Analyze_Pragma, case No_Return): Allow multiple arguments
14438
14439         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
14440         non-overrideen inherited operation with a controlling result as
14441         illegal only its implicit declaration comes from the derived type
14442         declaration of its result's type.
14443         (Check_Possible_Deferred_Completion): Relocate the object definition
14444         node of the subtype indication of a deferred constant completion rather
14445         than directly analyzing it. The analysis of the generated subtype will
14446         correctly decorate the GNAT tree.
14447         (Record_Type_Declaration): Check whether this is a declaration for a
14448         limited derived record before analyzing components.
14449         (Analyze_Component_Declaration): Diagnose record types  not explicitly
14450         declared limited when a component has a limited type.
14451         (Build_Derived_Record_Type): Code reorganization to check if some of
14452         the inherited subprograms of a tagged type cover interface primitives.
14453         This check was missing in case of a full-type associated with a private
14454         type declaration.
14455         (Constant_Redeclaration): Check that the subtypes of the partial and the
14456         full view of a constrained deferred constant statically match.
14457         (Mentions_T): A reference to the current type in an anonymous access
14458         component declaration  must be an entity name.
14459         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
14460         class_wide type to refer to full type, not to the incomplete one.
14461         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
14462         available. Required to give support to the certified run-time.
14463         (Analyze_Component_Declaration): In case of anonymous access components
14464         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
14465         (Process_Discriminants): For an access discriminant, use the
14466         discriminant specification as the associated_node_for_itype, to
14467         simplify accessibility checks.
14468
14469 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
14470             Javier Miranda  <miranda@adacore.com>
14471
14472         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
14473         abstract interpretations on an operator, remove interpretations that
14474         yield Address or a type derived from it, if one of the operands is an
14475         integer literal.
14476         (Try_Object_Operation.Try_Primitive_Operation,
14477         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
14478         location when creating the new reference to a primitive or class-wide
14479         operation as a part of rewriting a subprogram call.
14480         (Try_Primitive_Operations): If context requires a function, collect all
14481         interpretations after the first match, because there may be primitive
14482         operations of the same type with the same profile and different return
14483         types. From code reading.
14484         (Try_Primitive_Operation): Use the node kind to choose the proper
14485         operation when a function and a procedure have the same parameter
14486         profile.
14487         (Complete_Object_Operation): If formal is an access parameter and prefix
14488         is an object, rewrite as an Access reference, to match signature of
14489         primitive operation.
14490         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
14491         by an expanded name with prefix Standard, when the operands are of an
14492         anonymous access type.
14493         (Remove_Abstract_Operations): If the operation is abstract because it is
14494         inherited by a user-defined type derived from Address, remove it as
14495         well from the set of candidate interpretations of an overloaded node.
14496         (Analyze_Membership_Op): Membership test not applicable to cpp-class
14497         types.
14498
14499 2006-02-13  Bob Duff  <duff@adacore.com>
14500
14501         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
14502         redundant use clauses.
14503         In particular, if the scope of two use clauses overlaps, but one is not
14504         entirely included in the other, we should not warn.  This can happen
14505         with nested packages.
14506         (Analyze_Subprogram_Renaming): Protect the compiler against previously
14507         reported errors. The bug was reported when the compiler was built
14508         with assertions enabled.
14509         (Find_Type): If the node is a 'Class reference and the prefix is a
14510         synchronized type without a corresponding record, return the type
14511         itself.
14512
14513 2006-02-13  Javier Miranda  <miranda@adacore.com>
14514
14515         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
14516         if this is the full-declaration associated with a private declaration
14517         that implement interfaces, then the private type declaration must be
14518         limited.
14519         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
14520         as aliased. The use of the 'access attribute is not available for such
14521         object (for this purpose the object should be explicitly marked as
14522         aliased, but being an anonymous type this is not possible).
14523
14524 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
14525             Robert Dewar  <dewar@adacore.com>
14526
14527         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
14528         compilation unit is an elaboration scope.
14529         (Add_Task_Proc): Add '\' in 2-line warning message.
14530         (Activate_All_Desirable): Deal with case of unit with'ed by parent
14531
14532 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
14533             Javier Miranda  <miranda@adacore.com>
14534
14535         * sem_type.adb (Write_Overloads): Improve display of candidate
14536         interpretations.
14537         (Add_One_Interp): Do not add to the list of interpretations aliased
14538         entities corresponding with an abstract interface type that is an
14539         immediate ancestor of a tagged type; otherwise we have a dummy
14540         conflict between this entity and the aliased entity.
14541         (Disambiguate): The predefined equality on universal_access is not
14542         usable if there is a user-defined equality with the proper signature,
14543         declared in the same declarative part as the designated type.
14544         (Find_Unique_Type): The universal_access equality operator defined under
14545         AI-230 does not cover pool specific access types.
14546         (Covers): If one of the types is a generic actual subtype, check whether
14547         it matches the partial view of the other type.
14548
14549 2006-02-13  Thomas Quinot  <quinot@adacore.com>
14550
14551         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
14552         line. This is necessary to allow In_Extended_Main_Unit to provide
14553         correct results for itypes while writing out expanded source.
14554         (Close_File): No need to update the source_index_table here since it's
14555         now done for each line.
14556
14557 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
14558             Robert Dewar  <dewar@adacore.com>
14559
14560         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
14561         preserve the source unit where the itype is declared, and prevent a
14562         backend abort.
14563         (Note_Implicit_Run_Time_Call): New procedure
14564         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
14565         E_Subprogram_Type)
14566
14567         * sprint.ads: Document use of $ for implicit run time routine call
14568
14569 2006-02-13  Quentin Ochem  <ochem@adacore.com>
14570
14571         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
14572         task name.
14573
14574 2006-02-13  Bob Duff  <duff@adacore.com>
14575
14576         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
14577         Scan_Unsigned, so we do not scan leading blanks and sign twice.
14578         Integer'Value("- 5") and Integer'Value("-+5") now correctly
14579         raise Constraint_Error.
14580
14581         * s-vallli.adb (Scan_Long_Long_Integer): Call
14582         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
14583         do not scan leading blanks and sign twice.
14584         Integer'Value("- 5") and Integer'Value("-+5") now correctly
14585         raise Constraint_Error.
14586
14587         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
14588         Scan_Long_Long_Unsigned): Split out most of the processing from
14589         Scan_Long_Long_Unsigned out into
14590         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
14591         This prevents scanning leading blanks and sign twice.
14592         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
14593         See RM-3.5(44).
14594
14595         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
14596         out most of the processing from Scan_Unsigned out into
14597         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
14598         This prevents scanning leading blanks and sign twice.
14599
14600         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
14601         use with Modular'Value attribute.
14602         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
14603         attribute.
14604
14605 2006-02-13  Robert Dewar  <dewar@adacore.com>
14606
14607         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
14608
14609 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
14610
14611         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
14612         (PPC VxWorks): Likewise.
14613         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
14614         (forced_callee): Make non-inlinable and non-pure.
14615         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
14616
14617 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
14618             Ben Brosgol  <brosgol@adacore.com>
14619             Robert Dewar  <dewar@adacore.com>
14620
14621         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
14622         support.
14623         Document that gnatbind -M option is for cross environments only.
14624         Added description of using gnatmem to trace gnat rtl allocs and deallocs
14625         Add note on use of $ to label implicit run time calls
14626         Add documentation for -gnatyI (check mode IN)
14627         Updated chapter on compatibility with HP Ada
14628         VMS-oriented edits.
14629         Ran spell and corrected errors
14630         Add documentation for gnatbind -d and rework documentation of -D
14631         at the same time.
14632         Add subprogram/data elimination section.
14633         Minor editing of annex A.
14634         Add section for gnatcheck.
14635         Add documentation for restriction No_Dispatching_Calls
14636         Add documentation for pragma Ada_2005
14637         Remove mention of obsolete pragma Propagate_Exceptions
14638         Document that pragma Unreferenced can appear after DO in ACCEPT
14639         Clarify Pure_Function for library level units
14640         Mention Max/Min in connection with No_Implicit_Conditionals
14641         No_Wide_Characters restriction is no longer partition-wide
14642         Add a nice example for Universal_Literal_String attribute
14643         Document that pragma No_Return can take multiple arguments
14644
14645         * ug_words: Added entry for gnatcheck
14646
14647         * g-ctrl_c.ads (Install_Handler): Enhance comments
14648
14649         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
14650
14651         * g-trasym.ads: Add documentation on how to do off line symbolic
14652         traceback computation.
14653
14654         * s-fatgen.adb: Add comments for Unaligned_Valid
14655
14656         * stand.ads: Fix typo in comment
14657
14658 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14659
14660         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
14661
14662 2006-02-06  Roger Sayle  <roger@eyesopen.com>
14663
14664         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
14665
14666 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14667
14668         PR target/25926
14669         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
14670         implementation that calls __main.
14671
14672 2006-01-25  Peter O'Gorman  <peter@pogma.com>
14673
14674         PR bootstrap/25859
14675         * Makefile.in (GCC_LINK): Remove quotes.
14676         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
14677         or $(GCC_LINK).
14678
14679         (powerpc-darwin): Pass -shared-libgcc when building shared library.
14680
14681 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14682
14683         PR ada/24533
14684         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
14685
14686 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14687
14688         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
14689
14690 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
14691
14692         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
14693         needed.
14694
14695 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
14696
14697         * Make-lang.in: Update dependencies
14698
14699 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
14700
14701         * Make-lang.in: Add rule for ada/exp_sel.o
14702
14703 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
14704
14705         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
14706
14707 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
14708
14709         * gnatvsn.ads (Library_Version): Bump to version 4.2
14710         (ASIS_Version_Number): Bumped.
14711
14712 2005-12-09  Doug Rupp  <rupp@adacore.com>
14713
14714         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
14715         Ada bind file prefix on VMS from b$ to b__.
14716         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
14717         __init.
14718
14719         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
14720         Targparm.OpenVMS_On_Target.
14721         (Object_Suffix): Initialize with target object suffix.
14722         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
14723
14724         * butil.adb: Change some Hostparm.OpenVMS checks to
14725         Targparm.OpenVMS_On_Target.
14726
14727         * clean.adb: Change some Hostparm.OpenVMS checks to
14728         Targparm.OpenVMS_On_Target.
14729         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
14730         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
14731         Ada bind file prefix on VMS from b$ to b__.
14732
14733         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
14734         --GCC so that Get_Target_Parameters can find system.ads.
14735         (Gnatlink): Call Get_Target_Parameters in mainline.
14736         Initialize standard packages for Targparm.
14737         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
14738         (Process_Args): Also Check for object files with target object
14739         extension.
14740         (Make_Binder_File_Names): Create with target object extension.
14741         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
14742         to b__.
14743
14744         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
14745         Targparm.OpenVMS_On_Target.
14746         ({declaration},Build_Library,Check_Library): Change Ada bind file
14747         prefix on VMS from b$ to b__.
14748
14749         * osint-b.adb: Change some Hostparm.OpenVMS checks to
14750         Targparm.OpenVMS_On_Target.
14751         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
14752         b__.
14753
14754         * targext.c: New file.
14755
14756         * Makefile.in: add support for vxworks653 builds
14757         (../../vxaddr2line): gnatlink with targext.o.
14758         (TOOLS_LIBS): Move targext.o to precede libgnat.
14759         (init.o, initialize.o): Minor clean up in dependencies.
14760         (GNATLINK_OBJS): Add targparm.o, snames.o
14761         Add rules fo building targext.o and linking it explicitly with all
14762         tools.
14763         Also add targext.o to gnatlib.
14764
14765         * Make-lang.in: Add rules for building targext.o and linking it in
14766         with gnat1 and gnatbind.
14767         Add entry for exp_sel.o.
14768
14769         * osint.adb Change some Hostparm.OpenVMS checks to
14770         Targparm.OpenVMS_On_Target.
14771         (Object_File_Name): Use target object suffix.
14772
14773         * osint.ads (Object_Suffix): Remove, no longer used.
14774         (Target_Object_Suffix): Initialize with target object suffix.
14775
14776         * rident.ads: Add special exception to license.
14777
14778         * targparm.adb (Get_Target_Parameters): Set the value of
14779         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
14780         value.
14781         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
14782         
14783         * targparm.ads: Add special exception to license.
14784
14785         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
14786         function.
14787         (Copy_File): Make sure from file is closed if error on to file
14788         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
14789
14790         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
14791         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
14792
14793         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
14794         target object suffix.
14795
14796 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
14797             Quentin Ochem  <ochem@adacore.com>
14798             Florian Villoing  <villoing@adacore.com>
14799
14800         * a-taster.ads, a-taster.adb: New files.
14801
14802         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
14803         link to the version that does nothing. This way the task termination
14804         routine is not executed twice for the environment task when finishing
14805         because of an unhandled exception.
14806
14807         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
14808         handler because of an unhandled exception.
14809
14810         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
14811         System.Tasking.Utilities instead of that in System.Tasking.Stages.
14812
14813         * s-finimp.adb (initialization code): Modify the soft link for the
14814         finalization of the global list instead of Adafinal.
14815
14816         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
14817         non-tasking version of the soft link for task termination. We do
14818         nothing since if we are using the non-tasking version it
14819         means that the task termination functionality is not used.
14820         (Null_Finalize_Global_List): Add this null version for the procedure
14821         in charge of finalizing the global list for controlled objects.
14822         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
14823         instead for handling run-time termination in a more flexible way.
14824         (Adafinal_NT): This new procedure will take care of finalizing the
14825         global list for controlled objects if needed, but no tasking
14826         finalization.
14827
14828         * s-tarest.adb (Task_Lock): Do not try to lock again the
14829         Global_Task_Lock if we already own it. Otherwise, we get blocked in
14830         some run-time operations.
14831         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
14832         until all nested locks have been released.
14833         (Task_Wrapper): Call the fall-back task termination handler. It
14834         applies to all tasks but the environment task.
14835         (Finalize_Global_Tasks): Add the call for the task termination
14836         procedure for the environment task.
14837         (Task_Wrapper): suppress warnings around declaration of
14838         Secondary_Stack_Address.
14839
14840         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
14841         moved to the Common_ATCB record.
14842         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
14843         Common_ATCB record.
14844         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
14845         Common_ATCB record.
14846
14847         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
14848         Fall_Back_Handler, and Specific_Handler.
14849
14850         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
14851         defined in Ada.Task_Termination, to avoid circular dependencies.
14852         (Termination_Handler): Redefine this type here, alredy defined in
14853         Ada.Task_Termination, for avoiding circular dependencies.
14854         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
14855         for storing task termination handlers. In addition,
14856         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
14857         Common_ATCB because it is used by both the regular and the restricted
14858         run times.
14859         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
14860         Common_ATCB because it is used by both the regular and the restricted
14861         run times.
14862         (Common_ATCB): Added a dynamic task analyzer field.
14863
14864         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
14865         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
14866         (Task_Wrapper): Call the task termination handler. It applies to all
14867         tasks but the environment task.
14868         (Finalize_Global_Tasks): Call the task termination procedure for the
14869         environment task. The call to Finalize_Global_List is now performed
14870         using the soft links mechanism.
14871         (Task_Wrapper): added dynamic stack analysis.
14872
14873         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
14874         potentially blocking operations has been moved from
14875         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
14876         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
14877         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
14878         this run-time check.
14879
14880         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
14881         of task termination procedure.
14882         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
14883         link for the task termination procedure.
14884
14885         * bindusg.adb: (Bindusg): Added documentation for -u option.
14886
14887         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
14888         (Get_Main_C): Add handling of dynamic stack analysis.
14889         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
14890
14891         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
14892         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
14893         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
14894
14895         * opt.ads: Added flags used by dynamic stack measurement.
14896         (Max_Line_Length): Remove (not used anymore)
14897
14898         * s-io.ads, s-io.adb (Standard_Error): new subprogram
14899         (Standart_Output): new subprogram
14900         (Set_Output): new subprogram
14901         (Put): now uses the value of Current_Out to know if the output has to be
14902         send to stderr or stdout.
14903         
14904         * s-stausa.ads: Complete implementation.
14905
14906         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
14907         
14908         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
14909         list of Ada 05 files.
14910         (GNAT Library Units): Add AltiVec files.
14911
14912         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
14913         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
14914         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
14915
14916 2005-12-09  Nicolas Setton  <setton@adacore.com>
14917
14918         * adaint.c (__gnat_locate_regular_file): Return immediately if
14919         file_name is empty.
14920
14921 2005-12-09  Javier Miranda  <miranda@adacore.com>
14922             Hristian Kirtchev  <kirtchev@adacore.com>
14923
14924         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
14925         to the specification because the frontend generates code that uses this
14926         subprogram.
14927         (Set_Interface_Table): Add missing assertion.
14928         Update documentation describing the run-time structure.
14929         (Displace): New subprogram that displaces the pointer to the object
14930         to reference one of its secondary dispatch tables.
14931         (IW_Membership): Modified to use the new table of interfaces.
14932         (Inherit_TSD): Modified to use the new table of interfaces.
14933         (Register_Interface_Tag): Use the additional formal to fill the
14934         contents of the new table of interfaces.
14935         (Set_Interface_Table): New subprogram that stores in the TSD the
14936         pointer to the table of interfaces.
14937         (Set_Offset_To_Top): Use the additional formal to save copy of
14938         the offset value in the table of interfaces.
14939         Update structure of GNAT Primary and Secondary dispatch table diagram.
14940         Add comment section on GNAT dispatch table prologue.
14941         (Offset_To_Signature): Update the constant value of the Signature field.
14942         (Dispatch_Table): Update comment on hidden fields in the prologue.
14943         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
14944         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
14945         the type of formal parameter T to Tag, introduce additional assertions.
14946         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
14947         conversion.
14948         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
14949
14950         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
14951         in all the calls to Expand_Interface_Thunk. Instead of referencing the
14952         record component containing the tag of the secondary dispatch table we
14953         have to use the Offset_To_Top run-time function to get this information;
14954         otherwise if the pointer to the base of the object has been displace
14955         we get a wrong value if we use the 'position attribute.
14956
14957         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
14958         all the calls to Expand_Interface_Thunk.
14959         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
14960         interfaces; hence the call to Set_Interface_Table was clearly wrong.
14961         (Collect_All_Interfaces): Modify the internal subprogram Collect to
14962         ensure that the interfaces implemented by the ancestors are placed
14963         at the header of the generated list.
14964         (Expand_Interface_Conversion): Handle the case in which the displacement
14965         associated with the interface conversion is not statically known. In
14966         this case we generate a call to the new run-time subprogram Displace.
14967         (Make_DT): Generate and fill the new table of interfaces.
14968         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
14969         Get_Tagged_Kind and Set_Tagged_Kind.
14970         (Tagged_Kind): New function that determines the tagged kind of a type
14971         with respect to limitedness and concurrency and returns a reference to
14972         RE_Tagged_Kind.
14973         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
14974         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
14975         primary dispatch table for a type.
14976         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
14977         secondary dispatch table respectively of a tagged type.
14978
14979         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
14980         (Expand_Interface_Conversion): New subprogram to indicate if the
14981         displacement of the type conversion is statically known.
14982         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
14983
14984         * rtsfind.ads (RE_Offset_To_Top): New entity
14985         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
14986         accessible to users.
14987         (Re_Displace): New entity
14988         (RE_Interface_Data): New entity
14989         (RE_Set_Interface_Data): New_Entity
14990         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
14991         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
14992         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
14993         RE_TK_Tagged, RE_TK_Task.
14994
14995         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
14996         Init_Secondary_Tags_Internal to allow its use with interface types and
14997         also to generate the code for the new additional actual required
14998         by Set_Offset_To_Top.
14999         (Build_Init_Statements): In case of components associated with abstract
15000         interface types there is no need to generate a call to its IP.
15001         (Freeze_Record_Type): Generate Select Specific Data tables only for
15002         concurrent types.
15003         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
15004         the bodies and specifications of the predefined primitive operations
15005         dealing with dispatching selects and abort, 'Callable, 'Terminated only
15006         for concurrent types.
15007
15008         * exp_sel.ads, exp_sel.adb: New files.
15009
15010         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
15011         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
15012         properly protected objects and attach handler in the case of the
15013         restricted profile.
15014         Move embeded package Select_Expansion_Utilities into a separate external
15015         package.
15016         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
15017         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
15018         (Build_K, Build_S_Assignment): New subprograms, part of the select
15019         expansion utilities.
15020         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
15021         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
15022         where the trigger is a dispatching procedure of a limited tagged type.
15023
15024 2005-12-09  Olivier Hainque  <hainque@adacore.com>
15025
15026         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
15027         pointer initialization values. Make a SAVE_EXPR instead. Add comments
15028         about the use and expansion of SAVE_EXPRs in the various possible
15029         renaming handling cases.
15030         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
15031         abusing DECL_FCONTEXT.
15032
15033 2005-12-09  Matthew Heaney  <heaney@adacore.com>
15034
15035         * a-convec.adb (Merge): Added assertions to check whether vector params
15036         are sorted.
15037
15038         * a-coinve.adb (Merge): Added assertions to check whether vector params
15039         are sorted.
15040
15041         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
15042         draft.
15043         (Cursor'Read): raises PE
15044
15045         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
15046         to its default value.
15047
15048         * a-cihama.adb: Manually check whether cursor's key and elem are
15049         non-null
15050
15051         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
15052         (Merge): Assert that target and source lists are in order
15053         (Swap): Declare non-const temporaries, to pass to Splice
15054
15055         * a-cdlili.ads: (Splice): Changed param name and param mode
15056
15057         * a-cdlili.adb: (Splice): Changed param name and param mode
15058         (Merge): Assert that target and source lists are in order
15059         (Swap): Declare non-const temporaries, to pass to Splice
15060
15061         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
15062         (Write): declare Stream param as not null
15063
15064         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
15065         an exception message.
15066
15067 2005-12-09  Thomas Quinot  <quinot@adacore.com>
15068             Robert Dewar  <dewar@adacore.com>
15069
15070         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
15071         which is the absolute maximum length we can support.
15072
15073         * frontend.adb: For the processing of configuration pragma files,
15074         remove references to Opt.Max_Line_Length, which is not checked anymore.
15075
15076         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
15077         length.
15078
15079         * scn.adb, scng.adb: 
15080         Always check line length against the absolute supported maximum,
15081         Hostparm.Max_Line_Length.
15082
15083         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
15084         value for the maximum line length is Max_Line_Length (not
15085         Column_Number'Last).
15086         Minor error msg update
15087         (Set_Style_Check_Options): New interface returning error msg
15088         Minor code reorganization (processing for 'M' was out of alpha order)
15089
15090         * switch-c.adb: New interface for Set_Style_Check_Options
15091
15092         * stylesw.ads (Set_Style_Check_Options): New interface returning error
15093         msg.
15094
15095 2005-12-09  Javier Miranda  <miranda@adacore.com>
15096
15097         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
15098         with IP subprogram were only supported if there were limited types.
15099
15100         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
15101         records with IP subprogram were only supported if there were limited
15102         types.
15103
15104 2005-12-09  Olivier Hainque  <hainque@adacore.com>
15105             Eric Botcazou  <ebotcazou@adacore.com>
15106
15107         * trans.c (tree_transform, emit_check): Adjust calls to
15108         build_call_raise, passing the now expected GNAT_NODE argument.
15109
15110         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
15111         source line information than what the current global locus indicates
15112         when appropriate.
15113
15114         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
15115         field has overflowed.
15116         (build_call_raise): Add a GNAT_NODE argument to convey better source
15117         line information than what the current global locus indicates when
15118         appropriate.
15119         (build_component_ref): Adjust call to build_call_raise.
15120
15121 2005-12-09  Pascal Obry  <obry@adacore.com>
15122
15123         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
15124         the iterator is quitting iteration on parent directory.
15125
15126 2005-12-09  Javier Miranda  <miranda@adacore.com>
15127
15128         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
15129         and the assignment to a class-wide object, before the assignment we
15130         generate a run-time check to ensure that the tag of the Target is
15131         covered by the tag of the source.
15132
15133 2005-12-09  Robert Dewar  <dewar@adacore.com>
15134
15135         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
15136         parameter in call to Image_Wide_Character.
15137
15138         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
15139         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
15140         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
15141         annoying FFFE/FFFF inconsistency.
15142
15143 2005-12-09  Robert Dewar  <dewar@adacore.com>
15144             Javier Miranda  <miranda@adacore.com>
15145             Ed Schonberg  <schonberg@adacore.com>
15146
15147         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
15148         of type conversion.
15149         (Find_Interface): New subprogram that given a tagged type and one of its
15150         component associated with the secondary table of an abstract interface
15151         type, return the entity associated with such abstract interface type.
15152         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
15153         base type to create anonymous subtype, because entity may be a locally
15154         declared subtype or generic actual.
15155         (Find_Interface): New subprogram that given a tagged type and one of its
15156         component associated with the secondary table of an abstract interface
15157         type, return the entity associated with such abstract interface type.
15158
15159         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
15160         conversion cannot be handled at compile time. In this case we pass this
15161         information to the expander to generate the appropriate code.
15162
15163 2005-12-09  Robert Dewar  <dewar@adacore.com>
15164             Ed Schonberg  <schonberg@adacore.com>
15165             Gary Dismukes  <dismukes@adacore.com>
15166             Javier Miranda  <miranda@adacore.com>
15167             Hristian Kirtchev  <kirtchev@adacore.com>
15168
15169         * einfo.adb (Itype_Printed): New flag
15170         (Is_Limited_Type): Derived types do not inherit limitedness from
15171         interface progenitors.
15172         (Is_Return_By_Reference_Type): Predicate does not apply to limited
15173         interfaces.
15174
15175         * einfo.ads (Itype_Printed): New flag
15176         Move Is_Wrapper_Package to proper section
15177         Add missing Inline for Is_Volatile
15178
15179         * output.ads, output.adb (Write_Erase_Char): New procedure
15180         (Save/Restore_Output_Buffer): New procedures
15181         (Save/Restore_Output_Buffer): New procedures
15182
15183         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
15184         Add missing support for anonymous access type
15185         (Write_Id): Insert calls to Write_Itype
15186         (Write_Itype): New procedure to output itypes
15187
15188         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
15189         use of "limited" in declaration.
15190
15191         * sinfo.ads, sinfo.adb: 
15192         Formal derived types can carry an explicit "limited" indication.
15193
15194         * sem_ch3.adb: Add with and use of Targparm.
15195         (Create_Component): If Frontend_Layout_On_Target is True and the
15196         copied component does not have a known static Esize, then reset
15197         the size and positional fields of the new component.
15198         (Analyze_Component_Declaration): A limited component is
15199         legal within a protected type that implements an interface.
15200         (Collect_Interfaces): Do not add to the list the interfaces that
15201         are implemented by the ancestors.
15202         (Derived_Type_Declaration): If the parent of the full-view is an
15203         interface perform a transformation of the tree to ensure that it has
15204         the same parent than the partial-view. This simplifies the job of the
15205         expander in order to generate the correct object layout, and it is
15206         needed because the list of interfaces of the full-view can be given in
15207         any order.
15208         (Process_Full_View): The parent of the full-view does not need to be
15209         a descendant of the parent of the partial view if both parents are
15210         interfaces.
15211         (Analyze_Private_Extension_Declaration): If declaration has an explicit
15212         "limited" the parent must be a limited type.
15213         (Build_Derived_Record_Type): A derived type that is explicitly limited
15214         must have limited ancestor and progenitors.
15215         (Build_Derived_Type): Ditto.
15216         (Process_Full_View): Verify that explicit uses of "limited" in partial
15217         and full declarations are consistent.
15218         (Find_Ancestor_Interface): Remove function.
15219         (Collect_Implemented_Interfaces): New procedure used to gather all
15220         implemented interfaces by a type.
15221         (Contain_Interface): New function used to check whether an interface is
15222         present in a list.
15223         (Find_Hidden_Interface): New function used to determine whether two
15224         lists of interfaces constitute a set equality. If not, the first
15225         differing interface is returned.
15226         (Process_Full_View): Improve the check for the "no hidden interface"
15227         rule as defined by AI-396.
15228
15229 2005-12-09  Robert Dewar  <dewar@adacore.com>
15230
15231         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
15232         types, not on record subtypes.
15233         (Freeze_Entity): Code cleanup. Add barrier to the loop
15234         that generates the references for primitive operations. This allows to
15235         remove an unnecessary exception handler.
15236         Code reformatting and comment clean ups.
15237
15238 2005-12-09  Vincent Celier  <celier@adacore.com>
15239
15240         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
15241         If GNAT CHECK is called with a project file, but with no
15242         source on the command line, call gnatcheck with all the compilable
15243         sources of the project.
15244         Take into account the new command Check, for gnatcheck. Treat as for
15245         other ASIS tools: take into account project, specific package Check and
15246         Compiler switches.
15247         For ASIS tools, add the switches in package Compiler for
15248         the invocation of the compiler.
15249
15250         * prj-attr.adb: Add package Check and its attributes
15251
15252         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
15253
15254         * vms_conv.adb (Initialize): Change Params of command Check to
15255         unlimited files.
15256         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
15257         Add data for new command Check
15258
15259         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
15260         ELIM.
15261         Add qualifiers for Check command options
15262         (Command_Type): New command Check
15263
15264 2005-12-09  Thomas Quinot  <quinot@adacore.com>
15265
15266         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
15267         command line switch overruns the output buffer.
15268
15269 2005-12-09  Robert Dewar  <dewar@adacore.com>
15270
15271         * sem_prag.adb: Processing for new pragma Complete_Representation
15272         (Analyze_Pragma, case Debug): Implement two argument form.
15273
15274         * par-prag.adb: Entry for new pragma Complete_Representation
15275         (Prag, case Debug): Recognize two argument form of pragma Debug
15276         New interface for Set_Style_Check_Options.
15277
15278         * sem_ch13.adb: Implement new pragma Complete_Representation.
15279
15280         * snames.adb, snames.ads, snames.h: Entry for new pragma
15281         Complete_Representation.
15282
15283 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
15284
15285         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
15286         available user-specified stream attributes on limited parameters to
15287         also test the type directly rather than only its underlying type (for
15288         Ada 95) and, in the case of Ada 2005, to check that the user-specified
15289         attributes are visible at the point of the subprogram declaration.
15290         For Ada 2005, the error message is modified to indicate that the
15291         type's stream attributes must be visible (again, only for -gnat05).
15292
15293 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
15294
15295         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
15296         anonymous access types.
15297
15298         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
15299         matching of anonymous access types and anonymous access to subprogram
15300         types. 'R'M 4.9.1 (2/2).
15301
15302 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
15303
15304         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
15305         rule prematurely when operands are universal, remaining ambiguities
15306         will be removed during resolution.
15307         Code cleanup.
15308
15309         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
15310         that are Ada 2005 functions.
15311         (Has_Abstract_Interpretation): Subsidiary to
15312         Remove_Conversions, to remove ambiguities caused by abstract operations
15313         on numeric types when operands are universal.
15314
15315 2005-12-09  Robert Dewar  <dewar@adacore.com>
15316
15317         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
15318         for case where spec is categorized.
15319
15320 2005-12-09  Javier Miranda  <miranda@adacore.com>
15321
15322         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
15323         types use the corresponding record type. This was not needed before
15324         the implementation of Ada 2005 synchronized types because
15325         concurrent types were never tagged types in Ada 95.
15326
15327 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
15328
15329         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
15330         first subtype of the type of the expression to verify that it is a
15331         legal Time type.
15332
15333 2005-12-09  Robert Dewar  <dewar@adacore.com>
15334
15335         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
15336         decoded names.
15337
15338 2005-12-09  Quentin Ochem  <ochem@adacore.com>
15339             Robert Dewar  <dewar@adacore.com>
15340             Ed Falis  <falis@adacore.com>
15341             Florian Villoing  <villoing@adacore.com>
15342             Thomas Quinot  <quinot@adacore.com>
15343             Arnaud Charlet  <charlet@adacore.com>
15344
15345         * gnat_ugn.texi: Created section "Stack Related Tools"
15346         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
15347         "Stack Related Tools"
15348         Added subsection "Static Stack Usage Analysis"
15349         Added subsection "Dynamic Stack Usage Analysis"
15350         Include documentation of itypes in sprint listing (-gnatG)
15351         Documented gnatbind -D switch (default sec stack size for fixed sec
15352         stacks).
15353         Added Interrupt_State and Persistent_BSS to list of configuration
15354         pragmas.
15355         Add missing doc for maximum value of nnn in -gnatyMnnn
15356
15357         * gnat_rm.texi: Document the AltiVec binding.
15358         Add documentation for pragma Complete_Representation
15359         Shortened an overly long line (> 79 chars)
15360         Clarify documentation of unchecked conversion in implementation
15361         defined cases.
15362         Document two argument form of pragma Debug
15363
15364         * types.ads (Column_Number): Update documentation.
15365
15366         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
15367         library level Finalize_Storage_Only objects (these are not attached to
15368         any finalization list).
15369
15370         * system-mingw.ads: (Underlying_Priorities): Update comment.
15371
15372 2005-12-09  Robert Dewar  <dewar@adacore.com>
15373
15374         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
15375         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
15376         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
15377         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
15378         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
15379         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
15380         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
15381         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
15382         reformatting.
15383
15384 2005-12-09  Robert Dewar  <dewar@adacore.com>
15385
15386         * s-vaflop-vms-alpha.adb: (Ne_F): New function
15387         (Ne_G): New function
15388
15389         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
15390         for tag assignment.
15391         (Rewrite_Comparison): Handle case where operation is not a comparison
15392         and ignore, and also handle type conversion case.
15393
15394 2005-12-09  Thomas Quinot  <quinot@adacore.com>
15395
15396         * exp_aggr.ads: Fix typo in comment.
15397         ???-mark Convert_Aggr_In_Assignment as needing documentation.
15398
15399 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
15400
15401         * layout.adb: Replace various uses of byte by storage unit throughout.
15402         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
15403         static size, convert to storage units before returning, to conform to
15404         spec.
15405
15406 2005-12-09  Matthew Gingell  <gingell@adacore.com>
15407
15408         * g-exctra.ads: Fix typo in comment.
15409
15410 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15411
15412         * utils.c: Minor reformatting.
15413
15414 2005-12-09  Robert Dewar  <dewar@adacore.com>
15415
15416         * g-soccon.ads: 
15417         Further comment fixes to make the status of the default file clear
15418
15419         * s-bitops.adb: Clarify comment for Bits_Array
15420
15421 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15422
15423         * Make-lang.in (ada.install-normal): Remove.
15424
15425 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15426
15427         * Make-lang.in: Remove all dependencies on s-gtype.
15428
15429 2005-12-05  Richard Guenther  <rguenther@suse.de>
15430
15431         * utils.c (convert): Use fold_convert where appropriate.
15432
15433 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
15434
15435         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
15436         a period is meant.
15437
15438 2005-12-02  Richard Guenther  <rguenther@suse.de>
15439
15440         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
15441
15442 2005-12-01  Roger Sayle  <roger@eyesopen.com>
15443
15444         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
15445         nodes.
15446
15447 2005-11-23  Laurent Guerby  <laurent@guerby.net>
15448
15449         * mlib-prj.adb (Build_Library): Initialize Delete.
15450
15451 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
15452
15453         * socket.c: Add extern int h_errno for rtems since networking header
15454         files are not available at this point in a tool bootstrap. Newlib
15455         only has basic C library header files.
15456
15457 2005-11-19  Richard Guenther  <rguenther@suse.de>
15458         Roger Sayle  <roger@eyesopen.com>
15459
15460         PR ada/23717
15461         * misc.c (internal_error_function): Don't use vsprintf to format
15462         the error message text, instead use pp_format_text and the new
15463         pretty printer APIs.  This allows handling of %qs, %w, etc.
15464
15465 2005-11-18  Laurent Guerby  <laurent@guerby.net>
15466
15467         PR ada/24857
15468         * Makefile.in: Use s-auxdec-empty for RTEMS.
15469
15470 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15471
15472         PR ada/22333
15473         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
15474         a temporary if taking the address of something that is neither
15475         reference, declaration, or constant, since the gimplifier
15476         can't handle that case.
15477
15478 2005-11-17  Laurent Guerby  <laurent@guerby.net>
15479
15480         PR ada/24857
15481         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
15482
15483 2005-11-16  Richard Guenther  <rguenther@suse.de>
15484
15485         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
15486
15487 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
15488
15489         PR ada/24855
15490         * raise-gcc.c: Add missing stdarg.h include.
15491  
15492 2005-11-16  Richard Guenther  <rguenther@suse.de>
15493
15494         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
15495         (ada/misc.o): Likewise.
15496
15497 2005-11-14  Thomas Quinot  <quinot@adacore.com>
15498
15499         * g-soccon.ads: Minor reformatting. Update comments.
15500
15501         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
15502         gain visibility on the declaration of struct timeval.
15503
15504         * g-soccon-freebsd.ads,
15505         g-soccon-darwin.ads,
15506         g-soccon-tru64.ads,
15507         g-soccon-aix.ads,
15508         g-soccon-irix.ads,
15509         g-soccon-hpux.ads,
15510         g-soccon-solaris.ads,
15511         g-soccon-vms.ads,
15512         g-soccon-mingw.ads,
15513         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
15514
15515         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
15516         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
15517         g-soccon-linux-x86.ads: New files.
15518
15519         * g-socthi-mingw.adb: 
15520         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
15521
15522         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
15523         (time_t, suseconds_t): New types constructed to match the tv_sec
15524         and tv_usec fields of C struct timeval.
15525         (Timeval): Construct structure in terms of the new types.
15526         (Host_Errno): New function (imported from socket.c), returns last hosts
15527         database error.
15528
15529         * g-socthi-vxworks.adb:  Add error handling circuitry.
15530
15531         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
15532         components of struct timeval.
15533         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
15534         (Check_Selector): In error conditions, clear internal socket sets to
15535         avoid a memory leak.
15536         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
15537         Send_Timeout, Receive_Timeout.
15538
15539         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
15540         the tv_sec and tv_usec fields of C struct timeval.
15541         (Timeval): Construct structure in terms of the new types.
15542         (Host_Errno): New function (imported from socket.c), returns last hosts
15543         database error.
15544
15545         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
15546         hosts database last error code.
15547
15548         * gen-soccon.c: Complete value expansion should not be performed on
15549         TARGET, as it has the form of a math expression, and some components
15550         may be platform-defined macros.
15551         For VxWorks, generate the OK and ERROR values.
15552         New constants giving the sizes of the components of C struct timeval.
15553
15554 2005-11-14  Robert Dewar  <dewar@adacore.com>
15555             Ed Schonberg  <schonberg@adacore.com>
15556
15557         PR ada/18434
15558         * types.ads: Include All_Checks in Suppress_Array
15559
15560         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
15561         not(a=b), since we no longer do this rewriting, and hence it is not
15562         needed.
15563         (Elaboration_Checks_Suppressed): Add special casing to
15564         deal with different cases of static and dynamic elaboration checks (all
15565         checks does not count in the first case, but does in the second).
15566         (Expr_Known_Valid): Do not assume that the result of any arbitrary
15567         function call is valid, since this is not the case.
15568         (Ensure_Valid): Do not apply validity check to a real literal
15569         in a universal or fixed context
15570
15571         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
15572         elementary types using the operator in standard. It is cleaner not to
15573         modify the programmers intent, especially in the case of floating-point.
15574         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
15575         it did not matter because we always rewrote a/=b to not(a=b).
15576         (Expand_Allocator_Expression): For an allocator expression whose nominal
15577         subtype is an unconstrained packed type, convert the expression to its
15578         actual constrained subtype.
15579         Implement warning for <= or >= where < or > not possible
15580         Fix to Vax_Float tests (too early in many routines, causing premature
15581         Vax_Float expansions.
15582
15583         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
15584         to be used with packages and generic packages as well as with
15585         subprograms.
15586         (Suppress): Set All_Checks, but not Elaboration_Check, for case
15587         of pragma Suppress (All_Checks)
15588         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
15589         a string literal for precise control over warnings.
15590         Avoid raise of pragma in case of unrecognized pragma and just return
15591         instead.
15592
15593         * sem_prag.ads: Minor reformatting
15594
15595         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
15596         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
15597         Switch. Do not handle any exception.
15598         Include -gnatwx as part of -gnatg (warn on redundant parens)
15599         Allow optional = after -gnatm
15600         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
15601         longer sets Elaboration_Checks.
15602         Code to set warning mode moved to Sem_Warn
15603         so that it can be shared by pragma processing.
15604
15605         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
15606         statement.
15607
15608         * s-taprop-solaris.adb: 
15609         Change some <= to =, to avoid new warning
15610
15611         * a-exexda.adb, prj-proc.adb: 
15612         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
15613         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
15614
15615 2005-11-14  Robert Dewar  <dewar@adacore.com>
15616
15617         * exp_vfpt.adb: Handle /= case
15618         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
15619         so that we do not get duplicate scaling for fixed point conversions.
15620
15621         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
15622
15623 2005-11-14  Matthew Gingell  <gingell@adacore.com>
15624
15625         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
15626         Increase default priority on Lynx from 15 to 17, and meet the Ada
15627         requirement that Default_Priority be ((Priority'First +
15628         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
15629
15630 2005-11-14  Vincent Celier  <celier@adacore.com>
15631
15632         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15633         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
15634         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
15635         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
15636         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
15637         mlib-tgt-lynxos.adb (DLL_Prefix): New function
15638
15639 2005-11-14  Doug Rupp  <rupp@adacore.com>
15640
15641         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
15642         private part.
15643
15644 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
15645
15646         * s-traces-default.adb, s-trafor-default.ads,
15647         s-tratas-default.adb: Fix compilation errors.
15648
15649 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
15650
15651         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
15652         raising the exception so the memory used is freed.
15653
15654 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
15655
15656         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
15657         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
15658         (convert_address): Update comments and list of platforms using this.
15659
15660         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
15661         no longer used.
15662
15663 2005-11-14  Pascal Obry  <obry@adacore.com>
15664             Vincent Celier  <celier@adacore.com>
15665
15666         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
15667         GNAT.Command_Line.
15668
15669         * memroot.adb: Remove redundant with/use clause on
15670         System.Storage_Elements.
15671
15672 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
15673
15674         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
15675         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
15676         related code to a-exexpr.adb
15677         (Save_Occurrence_And_Private): Move GCC EH related code to
15678         a-exexpr-gcc.adb
15679         (Raise_Current_Excep): Add new variable Id with pragma
15680         volatile, to ensure that the variable lives on stack.
15681
15682         * a-exexpr-gcc.adb, raise-gcc.c: New file.
15683
15684         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
15685         from a-except.adb.
15686         Move GCC EH related code to a-exexpr-gcc.adb
15687
15688         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
15689         64-bit Solaris
15690         Split the Linux version of g-soccon into separate variants for 32 and 64
15691         bit platforms.
15692         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
15693         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
15694         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
15695         of host variable $(RANLIB_FLAGS).
15696         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
15697         Code clean up: remove unused/obsolete targets.
15698         (EH_MECHANISM): New variable introduced to differenciate between the
15699         two EH mechanisms statically.
15700         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
15701         (LIBGNAT_OBJS): Add raise-gcc.o
15702         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
15703         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
15704         supports VxWorks 6 RTPs.
15705         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
15706         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
15707
15708         * raise.c: Move all GCC EH-related routines to raise-gcc.c
15709
15710 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
15711
15712         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
15713         deferral level, when abort is not allowed, to a later stage (the
15714         Task_Wrapper).
15715         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
15716         it will not get changed by the generated code. It was previously done
15717         in Create_Task.
15718
15719 2005-11-14  Thomas Quinot  <quinot@adacore.com>
15720             Olivier Hainque  <hainque@adacore.com>
15721             Eric Botcazou  <ebotcazou@adacore.com>
15722
15723         * decl.c:
15724         Factor common code to build a storage type for an unconstrained object
15725         from a fat or thin pointer type and a constrained object type.
15726         (annotate_value): Handle BIT_AND_EXPR.
15727         (annotate_rep): Don't restrict the back annotation of inherited
15728         components to the type_annotate_only case.
15729         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
15730         we are not defining the type.
15731         <E_Record_Type>: Likewise.
15732         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
15733         to get advantage of the new maybe_stabilize_reference interface, to
15734         ensure that what we reference is indeed stabilized instead of relying
15735         on assumptions on what the stabilizer does.
15736         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
15737         type imported through a limited_with clause, use its non-limited view.
15738         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
15739         differentiation.
15740         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
15741         of #if sections + explicit comparisons of convention identifiers.
15742         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
15743         before early-returning for certain types when code generation is
15744         disabled.
15745         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
15746         nullification of gnu_expr we do for objects with address clause and
15747         that we are not defining.
15748         (elaborate_expression_1): Do not create constants when creating
15749         variables needed by the debug info: the dwarf2 writer considers that
15750         CONST_DECLs is used only to represent enumeration constants, and emits
15751         nothing for them.
15752         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
15753         object with an address clause into an indirect reference, drop the
15754         initializing expression.
15755         Include "expr.h".
15756         (STACK_CHECK_BUILTIN): Delete.
15757         (STACK_CHECK_PROBE_INTERVAL): Likewise.
15758         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
15759         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
15760         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
15761         corresponding to the renamed object as ignored for debugging purposes.
15762
15763         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
15764         related): For a prefix that is a dereference of a fat or thin pointer,
15765         if there is an actual subtype provided by the front-end, use that
15766         subtype to build an actual type with bounds template.
15767         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
15768         is provided by the front-end, use that subtype to compute the size of
15769         the deallocated object.
15770         (gnat_to_gnu): When adding a statement into an elaboration procedure,
15771         check for a potential violation of a No_Elaboration_Code restriction.
15772         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
15773         with extra arguments to control whether to recurse through non-values
15774         and to let the caller know if the stabilization has succeeded.
15775         (gnat_stabilize_reference): Now a simple wrapper around
15776         maybe_stabilize, for common uses without restriction on lvalues and
15777         without need to check for the success indication.
15778         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
15779         pass false instead of 0 as the FORCE argument which is a bool.
15780         (Identifier_to_gnu): Remove checks ensuring that an renamed object
15781         attached to a renaming pointer has been properly stabilized, as no such
15782         object is attached otherwise.
15783         (call_to_gnu): Invoke create_var_decl to create the temporary when the
15784         function uses the "target pointer" return mechanism.
15785         Reinstate conversion of the actual to the type of the formal
15786         parameter before any other specific treatment based on the passing
15787         mechanism. This turns out to be necessary in order for PLACEHOLDER
15788         substitution to work properly when the latter type is unconstrained.
15789
15790         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
15791         common pattern.
15792         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
15793         with extra arguments to control whether to recurse through non-values
15794         and to let the caller know if the stabilization has succeeded.
15795
15796         * utils2.c (gnat_build_constructor): Only sort the fields for possible
15797         static output of record constructor if all the components are constant.
15798         (gnat_build_constructor): For a record type, sort the list of field
15799         initializers in increasing bit position order.
15800         Factor common code to build a storage type for an unconstrained object
15801         from a fat or thin pointer type and a constrained object type.
15802         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
15803         types variants, and process special cases of VIEW_CONVERT expressions
15804         as their NOP_EXPR counterpart to ensure we get to the
15805         CORRESPONDING_VARs associated with CONST_DECls.
15806         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
15807         on the right-hand side.
15808
15809         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
15810         a common pattern.
15811         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
15812         are converting back to its original type.
15813         (convert) <JM input>: Fallthrough regular conversion code instead of
15814         extracting the object if converting to a type variant.
15815         (create_var_decl): When a variable has an initializer requiring code
15816         generation and we are at the top level, check for a potential violation
15817         of a No_Elaboration_Code restriction.
15818         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
15819         SIZE and SIZE_UNIT which we need for later back-annotations.
15820         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
15821         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
15822         is an unchecked union.
15823         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
15824         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
15825         main variant, just replace the VIEW_CONVERT_EXPR.
15826         <UNION_TYPE>: Revert 2005-03-02 change.
15827
15828         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
15829
15830         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
15831
15832 2005-11-14  Matthew Heaney  <heaney@adacore.com>
15833
15834         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
15835         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
15836         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
15837         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
15838         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
15839         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
15840         Compiles against the spec for ordered maps described in sections
15841         A.18.6 of the most recent (August 2005) AI-302 draft.
15842
15843 2005-11-14  Olivier Hainque  <hainque@adacore.com>
15844
15845         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
15846         to ensure bias adjustments take place when need be and to prevent
15847         occurrences of intermediate overflows.
15848
15849 2005-11-14  Matthew Gingell  <gingell@adacore.com>
15850             Olivier Hainque  <hainque@adacore.com>
15851
15852         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
15853         ia64 HP-UX.
15854
15855         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
15856         tracebacks on ia64 HP-UX and provide explanatory comment.
15857         Enable backtraces on ia64 GNU/Linux.
15858         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
15859         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
15860
15861 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
15862             Javier Miranda  <miranda@adacore.com>
15863
15864         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
15865         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
15866         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
15867         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
15868
15869         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
15870         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
15871         assertions).
15872
15873         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
15874         subprogram that generates the external name associated with a
15875         secondary dispatch table.
15876         (Get_Secondary_DT_External_Name): New subprogram that generates the
15877         external name associated with a secondary dispatch table.
15878
15879 2005-11-14  Emmanuel Briot  <briot@adacore.com>
15880
15881         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
15882         line in the ALI file to include both an instantiation reference, and a
15883         returned value.
15884
15885 2005-11-14  Vincent Celier  <celier@adacore.com>
15886
15887         * clean.adb (Check_Project): Look for Ada code in extending project,
15888         even if Ada is not specified as a language.
15889         Use new function DLL_Prefix for DLL_Name
15890         (Clean_Interface_Copy_Directory): New procedure
15891         (Clean_Library_Directory): New procedure
15892         (Clean_Directory): Remove procedure, no longer used
15893         (Clean_Project): Do not delete any file in an externally built project
15894
15895         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
15896         directory of an extending project, even when there are no Ada source
15897         present.
15898         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
15899         (Set_Ada_Paths.Add.Recursive_Add): Ditto
15900
15901         * mlib-prj.adb (Check_Library): For all library projects, get the
15902         library file timestamp.
15903         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
15904         (Build_Library): Use new function DLL_Prefix for the DLL_Name
15905         (Clean): Remove procedure, no longer used
15906         (Ultimate_Extension_Of): New function
15907         (Build_Library): When cleaning the library directory, only remove an
15908         existing library file and any ALI file of a source of the project.
15909         When cleaning the interface copy directory, remove any source that
15910         could be a source of the project.
15911
15912         * prj.ads, prj.adb (Project_Empty): Add values of new components
15913         Library_TS and All_Imported_Projects.
15914         (Project_Empty): Add values for new components of Project_Data:
15915         Library_ALI_Dir and Display_Library_ALI_Dir
15916
15917         * prj-attr.adb: New project level attribute name Library_ALI_Dir
15918
15919         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
15920         attribute Library_ALI_Dir.
15921         (Check_Library_Attributes): The library directory cannot be the same as
15922         any source directory of the project tree.
15923         (Check_Stand_Alone_Library): The interface copy directory cannot be
15924         the same as any source directory of the project tree.
15925
15926         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
15927         all temporary files.
15928
15929 2005-11-14  Robert Dewar  <dewar@adacore.com>
15930             Ed Schonberg  <schonberg@adacore.com>
15931
15932         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
15933         (Check_Elab_Call): A call within a protected body is never an
15934         elaboration call, and does not require checking.
15935         (Same_Elaboration_Scope): Take into account protected types for both
15936         entities.
15937         (Activate_Elaborate_All_Desirable): New procedure
15938
15939         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
15940         desirable
15941
15942         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
15943         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
15944
15945         * lib-writ.ads, lib-writ.adb: 
15946         Implement new AD/ED for Elaborate_All/Elaborate desirable
15947         Use new Elaborate_All_Desirable flag in N_With_Clause node
15948
15949         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
15950         N_Free_Statement nodes.
15951         Define new class N_Subprogram_Instantiation
15952         Add Elaborate_Desirable flag to N_With_Clause node
15953         Add N_Delay_Statement (covering two kinds of delay)
15954
15955         * debug.adb: Introduce d.f flag for compiler
15956         Add -da switch for binder
15957
15958 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
15959             Cyrille Comar  <comar@adacore.com>
15960
15961         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
15962         for task component, in the case of a limited aggregate. The enclosed
15963         object declaration will create it earlier. Otherwise, in the case of a
15964         nested aggregate, the object may appear in the wrong scope.
15965         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
15966         (Gen_Assign): If the component being assigned is an array type and the
15967         expression is itself an aggregate, wrap the assignment in a block to
15968         force finalization actions on the temporary created for each row of the
15969         enclosing object.
15970         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
15971         structures are initialized after all discriminants are set so that
15972         they can be accessed even when their offset is dynamic.
15973
15974 2005-11-14  Robert Dewar  <dewar@adacore.com>
15975             Hristian Kirtchev  <kirtchev@adacore.com>
15976
15977         * sem_attr.adb: Implement Machine_Rounding attribute
15978         (Analyze_Access_Attribute): The access attribute may appear within an
15979         aggregate that has been expanded into a loop.
15980         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
15981         'Terminated whenever the prefix is of a task interface class-wide type.
15982         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
15983         the prefix is of a task interface class-wide type.
15984
15985         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
15986         to avoid warnings.
15987
15988         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
15989         Remove pragma Inline for [Unaligned_]Valid.
15990         Add comments that Valid routines do not work for Vax_Float
15991
15992         * exp_attr.adb: Implement Machine_Rounding attribute
15993
15994         * snames.h: Add entry for Machine_Rounding attribute
15995
15996 2005-11-14  Javier Miranda  <miranda@adacore.com>
15997             Robert Dewar  <dewar@adacore.com>
15998             Hristian Kirtchev  <kirtchev@adacore.com>
15999
16000         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
16001         and related): For a prefix that is an explicit dereference of an
16002         access to unconstrained packed array type, annotate the dereference
16003         with an actual subtype so GIGI can make a correct size computation.
16004         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
16005         'Unrestricted_Access, if the designated type is an interface we
16006         add a type conversion to force the displacement of the pointer
16007         to the secondary dispatch table.
16008         Use Universal_Real instead of Long_Long_Float when we need a high
16009         precision float type for the generated code (prevents gratuitous
16010         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
16011         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
16012         'Terminated for task interface class-wide objects. Generate a call to
16013         the predefined dispatching routine used to retrieve the _task_id from
16014         a task corresponding record.
16015         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
16016
16017         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
16018         (Check_Dispatching_Operation): Protect the frontend againts
16019         previously detected errors.
16020
16021         * Makefile.rtl: Add new instantiations of system.fat_gen
16022
16023         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
16024         Change name of instantiated package for better consistency
16025         with newly added system.fat_gen instantiations.
16026
16027         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
16028         s-fvagfl.ads: New files.
16029
16030 2005-11-14  Cyrille Comar  <comar@adacore.com>
16031             Thomas Quinot  <quinot@adacore.com>
16032
16033         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
16034         assignment of a value of a tagged type that has been rewritten to a
16035         block statement, it is known by construction that no checks are
16036         necessary for the statements within the block: analyze it with checks
16037         suppressed.
16038         (Expand_N_If_Statement): When killing a dead then-branch in an
16039         if-statement that has elsif_parts, recompute the Current_Value node
16040         for any entity whose value is known from the condition of the first
16041         elsif_part.
16042         (Expand_N_Return_Statement): When returning a mutable record, convert
16043         the return value into its actual subtype in order to help the backend
16044         to return the actual size instead of the maximum. This is another
16045         aftermath of not returning mutable records on the sec-stack anymore.
16046
16047         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
16048         handling of error msg for suspicious reverse range iteration.
16049         (Check_Possible_Current_Value_Condition): Move declaration from body to
16050         spec, to allow this subprogram to be called from exp_ch5.
16051
16052 2005-11-14  Thomas Quinot  <quinot@adacore.com>
16053
16054         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
16055         generate a set of nested array aggregates instead of a single flat
16056         aggregate for multi-dimensional arrays.
16057
16058 2005-11-14  Pascal Obry  <obry@adacore.com>
16059
16060         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
16061         by spawnve is a process handle, no need to convert. Add a parameter
16062         close to control wether the process handle must be closed.
16063         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
16064         a process handle, not need to convert.
16065         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
16066
16067         * g-expect.adb: (Kill): Document the new close parameter.
16068         (Close): Do not release the process handle in the kill there as
16069         waitpid() is using it.
16070         (Send_Signal): Release the process handle.
16071
16072 2005-11-14  Robert Dewar  <dewar@adacore.com>
16073
16074         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
16075         need a high precision float type for the generated code (prevents
16076         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
16077         used).
16078
16079         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
16080         need a high precision float type for the generated code (prevents
16081         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
16082         used).
16083         (Expand_Width_Attribute): In configurable run-time, the attribute is not
16084         allowed on non-static enumeration subtypes. Force a load error to emit
16085         the correct diagnostic.
16086
16087 2005-11-14  Thomas Quinot  <quinot@adacore.com>
16088             Robert Dewar  <dewar@adacore.com>
16089             Ed Schonberg  <schonberg@adacore.com>
16090
16091         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
16092         subtype to compute the size of the designated object at run-time,
16093         create such a subtype and store it in the Actual_Designated_Subtype
16094         attribute of the N_Free_Statement.
16095         Generate itype for classwide designated object in both cases of
16096         user-specified storage pool: specific and class-wide, not only in the
16097         specific case.
16098         Raise CE when trying to set a not null access type object to null.
16099         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
16100         an explicit loop, because freeze nodes make its position variable.
16101
16102         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
16103         null object.
16104
16105 2005-11-14  Javier Miranda  <miranda@adacore.com>
16106
16107         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
16108         Build_Stream_Procedure): Add the null-excluding attribute to the first
16109         formal.
16110         This has no semantic meaning under Ada95 mode but it is a
16111         requirement under Ada05 mode.
16112
16113         * par-ch3.adb (P_Access_Definition): Addition of warning message if
16114         the null exclusion is used under Ada95 mode
16115         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
16116         (P_Access_Definition): Remove assertion that forbids the use of
16117         the null-exclusion feature in Ada95.
16118
16119 2005-11-14  Robert Dewar  <dewar@adacore.com>
16120
16121         * impunit.adb: Exclude container helper units not intended for use by
16122         users.
16123
16124 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
16125
16126         * freeze.adb (Freeze_Entity): For an access formal that is an access
16127         to subprogram, freeze the anonymous subprogram type at the same time,
16128         to prevent later freezing in the wrong scope, such as the enclosing
16129         subprogram body.
16130         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
16131         subprogram whenever available.
16132
16133 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
16134
16135         PR ada/23732
16136         * gnatvsn.ads (Library_Version): Bump to 4.1
16137
16138 2005-11-14  Robert Dewar  <dewar@adacore.com>
16139
16140         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
16141         Storage_Offset to avoid wrap around causing invalid results.
16142
16143 2005-11-14  Pascal Obry  <obry@adacore.com>
16144
16145         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
16146         cross-compiler.
16147         (Scan_Bind_Arg): Fail with an error message if -M option is used
16148         on a native compiler.
16149
16150 2005-11-14  Robert Dewar  <dewar@adacore.com>
16151             Vincent Celier  <celier@adacore.com>
16152
16153         * gprep.adb: Implement -C switch to scan comments
16154
16155         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
16156
16157         * scans.ads: Comment updates (including new use of Tok_Comment in
16158         preprocessing)
16159
16160         * opt.ads: Add documentation for flags that are used by gprmake,
16161         currently and in the next version of gprmake.
16162         (Verbosity_Level): New variable
16163         Add Replace_In_Comments switch
16164
16165         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
16166         and -vm.
16167         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
16168
16169 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
16170
16171         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
16172         message, friendlier.
16173
16174 2005-11-14  Robert Dewar  <dewar@adacore.com>
16175
16176         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
16177
16178 2005-11-14  Doug Rupp  <rupp@adacore.com>
16179
16180         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
16181
16182 2005-11-14  Robert Dewar  <dewar@adacore.com>
16183
16184         * interfac.ads: Change declarations of IEEE float types so that we no
16185         longer need a separate version of this package for VMS.
16186
16187 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
16188
16189         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
16190         internal entity created for the declaration of a child subprogram body
16191         with no spec as coming from source, to generate proper cross-reference
16192         information.
16193
16194 2005-11-14  Vincent Celier  <celier@adacore.com>
16195
16196         * make.adb (Compile_Sources): Change verbose message to minimum
16197         verbosity level High for "is in an Ada library", "is a read-only
16198         library" and "is an internal library",
16199         (Create_Binder_Mapping_File): Path name of ALI file for library project
16200         must include the library directory, not the object directory.
16201         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
16202         for new switches -vl, -vm and -vh.
16203         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
16204         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
16205         (Compile_Sources): Do not attempt to compile if an ALI file is missing
16206         in a project that is externally built.
16207         (Compute_All_Imported_Projects): New procedure
16208         (Gnatmake): Check if importing libraries should be regenerated because
16209         at least an imported library is more recent.
16210         (Initialize): For each project compute the list of the projects it
16211         imports directly or indirectly.
16212         (Add_Library_Search_Dir): New procedure, used in place of
16213         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
16214         put in the search paths.
16215         (Add_Source_Search_Dir): New procedure, used in place of
16216         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
16217         put in the search paths.
16218         (Mark_Directory): Resolve the absolute path the directory before marking
16219         it.
16220
16221         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
16222         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
16223         Switch. Do not handle any exception.
16224         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
16225         so that the switch is recognized as valid.
16226         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
16227
16228 2005-11-14  GNAT Script  <nobody@adacore.com>
16229
16230         * Make-lang.in: Makefile automatically updated
16231
16232 2005-11-14  Pascal Obry  <obry@adacore.com>
16233
16234         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
16235         used.
16236         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
16237         In both cases the last argument was dropped.
16238
16239 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
16240
16241         * namet.h: (Column_Numbe): New type.
16242         (Get_Column_Number): Define to sinput__get_column_number.
16243         (Instantiation): Define to sinput__instantiation.
16244         (Get_Column_Number): Declare.
16245         (Instantiation): Likewise.
16246
16247 2005-11-14  Robert Dewar  <dewar@adacore.com>
16248
16249         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
16250         syntax, which could cause compiler hangs.
16251
16252 2005-11-14  Vincent Celier  <celier@adacore.com>
16253
16254         * prj-ext.adb: Take into account new environment variable
16255         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
16256         are defined.
16257         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
16258         normalize its path name, making it absolute and resolving symbolic
16259         links, and replace the original if resolved path is different.
16260
16261 2005-11-14  Vincent Celier  <celier@adacore.com>
16262
16263         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
16264         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
16265
16266 2005-11-14  Emmanuel Briot  <briot@adacore.com>
16267
16268         * prj-pp.adb (Print): Do not output the with statement if the
16269         associated name is empty, which happens for virtual extending projects.
16270         (Print): Preserve the "extends all" attribute when printing the project.
16271
16272         * prj-tree.ads (String_Value_Of): Add comment about returned value for
16273         a virtual extending project.
16274
16275 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
16276
16277         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
16278         rhs of an assignment even if the type is unconstrained, when the
16279         context is non-expanding.
16280         In an inlined body, if the context type is private,
16281         resolve with its full view, which must be a composite type.
16282
16283 2005-11-14  Robert Dewar  <dewar@adacore.com>
16284             Ed Schonberg  <schonberg@adacore.com>
16285
16286         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
16287         Do not give obsolescent warning on with of subprogram (since we
16288         diagnose calls)
16289         (Analyze_With_Clause): Add test for obsolescent package
16290         (Install_Context_Clauses): If the unit is the body of a child unit, do
16291         not install twice the private declarations of the parents, to prevent
16292         circular lists of Use_Clauses in a parent.
16293         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
16294         compiling body of child unit.
16295         Use new class N_Subprogram_Instantiation
16296         (Expand_With_Clause): If this is a private with_clause for a child unit,
16297         appearing in the context of a package declaration, then the implicit
16298         with_clauses generated for parent units are private as well.
16299         (License_Check): Do not generate message if with'ed unit is internal
16300
16301 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
16302             Ed Schonberg  <schonberg@adacore.com>
16303             Thomas Quinot  <quinot@adacore.com>
16304
16305         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
16306         names are internal, because they will not have a corresponding partner
16307         in the actual package.
16308         (Analyze_Formal_Package): Move the setting of the formal package spec's
16309         Generic_Parent field so that it occurs prior to analyzing the package,
16310         to allow proper operation of Install_Parent_Private_Declarations.
16311         (Analyze_Package_Instantiation): Set the instantiated package entity's
16312         Package_Instantiation field.
16313         (Get_Package_Instantiation_Node): Move declaration to package spec.
16314         Retrieve the N_Package_Instantiation node when the Package_Instantiation
16315         field is present.
16316         (Check_Generic_Child_Unit): Within an inlined call, the only possible
16317         instantiation is Unchecked_Conversion, for which no parents are needed.
16318         (Inline_Instance_Body): Deinstall and record the use_clauses for all
16319         parent scopes of a scope being removed prior to inlining an instance
16320         body.
16321         (Analyze_Package_Instantiation): Do not perform front-end inlining when
16322         the current context is itself an instance within a non-instance child
16323         unit, to prevent scope stack errors.
16324         (Save_References): If the node is an aggregate that is an actual in a
16325         call, rewrite as a qualified expression to preserve some type
16326         information, to resolve possible ambiguities in the instance.
16327         (Instance_Parent_Unit): New global variable to record the ultimate
16328         parent unit associated with a generic child unit instance (associated
16329         with the existing Parent_Unit_Visible flag).
16330         (type Instance_Env): New component Instance_Parent_Unit for stacking
16331         parents recorded in the global Instance_Parent_Unit.
16332         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
16333         stack.
16334         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
16335         it's not a top-level unit, and only do this if Instance_Parent_Unit is
16336         not already set. Replace test of Is_Child_Unit with test of parent's
16337         scope against package Standard. Add comments and a ??? comment.
16338         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
16339         on a child instance parent to test that the parent equals
16340         Instance_Parent rather than simply checking that the unit is not a
16341         child unit.
16342         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
16343         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
16344         a formal interface are ancestors of the corresponding actual.
16345         (Validate_Formal_Interface_Type): Additional legality checks.
16346         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
16347         interface types with ancestors.
16348         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
16349         to diagnose attempts to use generic within its own declaration.
16350
16351 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
16352             Javier Miranda  <miranda@adacore.com>
16353
16354         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
16355         discriminant.
16356         (Build_Private_Derived_Type): The entity of the created full view of the
16357         derived type does not come from source. If after installing the private
16358         declarations of the parent scope the parent is still private, use its
16359         full view to construct the full declaration of the derived type.
16360         (Build_Derived_Record_Type): Relax the condition that controls the
16361         execution of the check that verifies that the partial view and
16362         the full view agree in the set of implemented interfaces. In
16363         addition, this test now only takes into account the progenitors.
16364         (Derive_Interface_Subprograms): No need to derive subprograms
16365         of ancestors that are interfaces.
16366         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
16367         associated code.
16368         Change name Is_Package to Is_Package_Or_Generic_Package
16369         (Complete_Subprograms_Derivation): Handle the case in which the full
16370         view is a transitive derivation of the ancestor of the partial view.
16371         (Process_Full_View): Rename local subprogram Find_Interface_In_
16372         Descendant to Find_Ancestor_Interface to leave the code more clear.
16373         Remove wrong code that avoids the generation of an error message
16374         when the immediate ancestor of the partial view is an interface.
16375         In addition some minor reorganization of the code has been done to
16376         leave it more clear.
16377         (Analyze_Type_Declaration): If type has previous incomplete tagged
16378         partial view, inherit properly its primitive operations.
16379         (Collect_Interfaces): Make public, for analysis of formal
16380         interfaces.
16381         (Analyze_Interface_Declaration): New procedure for use for regular and
16382         formal interface declarations.
16383         (Build_Derived_Record_Type): Add support for private types to the code
16384         that checks if a tagged type implements abstract interfaces.
16385         (Check_Aliased_Component_Type): The test applies in the spec of an
16386         instance as well.
16387         (Access_Type_Declaration): Clean up declaration of malformed type
16388         declared as an access to its own classwide type, to prevent cascaded
16389         crash.
16390         (Collect_Interfaces): For private extensions and for derived task types
16391         and derived protected types, the parent may be an interface that must
16392         be included in the interface list.
16393         (Access_Definition): If the designated type is an interface that may
16394         contain tasks, create Master_Id for it before analyzing the expression
16395         of the declaration, which may be an allocator.
16396         (Record_Type_Declaration): Set properly the interface kind, for use
16397         in allocators, the creation of master id's for task interfaces, etc.
16398
16399 2005-11-14  Javier Miranda  <miranda@adacore.com>
16400             Ed Schonberg  <schonberg@adacore.com>
16401
16402         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
16403         omitted in case of stream attribute subprograms.
16404         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
16405         appear immediately after a subprogram body, when there is no previous
16406         subprogram declaration.
16407         Change name Is_Package to Is_Package_Or_Generic_Package
16408         (Process_Formals): A non null qualifier on a non null named access
16409         type is not an error, and is a warning only if Redundant_Constructs
16410         are flagged.
16411
16412 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
16413             Ed Schonberg  <schonberg@adacore.com>
16414
16415         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
16416         nested within Analyze_Package_Specification to install the private
16417         declarations and use clauses within each of the parent units of a
16418         package instance of a generic child package.
16419         (Analyze_Package_Specification): When entering a private part of a
16420         package associated with a generic instance or formal package, the
16421         private declarations of the parent must be installed (by calling new
16422         procedure Install_Parent_Private_Declarations).
16423         Change name Is_Package to Is_Package_Or_Generic_Package
16424         (Preserve_Full_Attributes): For a synchronized type, the corresponding
16425         record is absent in a generic context, which does not indicate a
16426         compiler error.
16427
16428 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
16429
16430         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
16431         not try to rewrite a renamed stream attribute, because the operations
16432         on the type may not have been generated.
16433         Handle properly a renaming_as_body generated for a stream operation
16434         whose default is abstract because the object type itself is abstract.
16435         (Find_Type): If the type is incomplete and appears as the prefix of a
16436         'Class reference, it is tagged, and its list of primitive operations
16437         must be initialized properly.
16438         (Chain_Use_Clauses): When chaining the use clauses that appear in the
16439         private declaration of a parent unit, prior to compiling the private
16440         part of a child unit, find on the scope stack the proper parent entity
16441         on which to link the use clause.
16442         (Note_Redundant_Use): Emit a warning when a redundant use clause is
16443         detected.
16444         (Analyze_Object_Renaming): An attribute reference is not a legal object
16445         if it is not a function call.
16446
16447 2005-11-14  Robert Dewar  <dewar@adacore.com>
16448             Ed Schonberg  <schonberg@adacore.com>
16449
16450         * sem_eval.adb: Implement d.f flag
16451         (Subtype_Statically_Match): A generic actual type has unknown
16452         discriminants when the corresponding actual has a similar partial view.
16453         If the routine is called to validate the signature of an inherited
16454         operation in a child instance, the generic actual matches the full view,
16455
16456 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
16457             Ed Schonberg  <schonberg@adacore.com>
16458             Robert Dewar  <dewar@adacore.com>
16459             Thomas Quinot  <quinot@adacore.com>
16460
16461         * sem_res.adb (Resolve_Call): Provide a better error message whenever
16462         a procedure call is used as a select statement trigger and is not an
16463         entry renaming or a primitive of a limited interface.
16464         (Valid_Conversion): If the operand has a single interpretation do not
16465         remove address operations.
16466         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
16467         statement to inhibit warning.
16468         (Resolve_Unary_Op): Do not produce a warning when
16469         processing an expression of the form -(A mod B)
16470         Use Universal_Real instead of Long_Long_Float when we need a high
16471         precision float type for the generated code (prevents gratuitous
16472         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
16473         (Resolve_Concatenation_Arg): Improve error message when argument is an
16474         ambiguous call to a function that returns an array.
16475         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
16476         there is an implicit operator in the given scope if we are within an
16477         instance: legality check has been performed on the generic.
16478         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
16479         after resolving operand, to avoid false warnings on overloaded calls.
16480
16481 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
16482             Javier Miranda  <miranda@adacore.com>
16483
16484         PR ada/15604
16485         * sem_type.adb (Covers): In an inlined body, a composite type matches
16486         a private type whose full view is a composite type.
16487         (Interface_Present_In_Ancestor): Protect the frontend against
16488         previously detected errors to ensure that its compilation
16489         with assertions enabled gives the same output that its
16490         compilation without assertions.
16491         (Interface_Present_In_Ancestor): Add support for private types.
16492         Change name In_Actual to In_Generic_Actual (clean up)
16493         (Disambiguate): New predicate In_Actual, to recognize expressions that
16494         appear in the renaming declaration generated for generic actuals, and
16495         which must be resolved in the outer context.
16496
16497 2005-11-14  Robert Dewar  <dewar@adacore.com>
16498             Thomas Quinot  <quinot@adacore.com>
16499             Hristian Kirtchev  <kirtchev@adacore.com>
16500             Ed Schonberg  <schonberg@adacore.com>
16501
16502         * sem_util.ads, sem_util.adb: Change name Is_Package to
16503         Is_Package_Or_Generic_Package.
16504         (Check_Obsolescent): New procedure.
16505         (Set_Is_Public): Remove obsolete junk test.
16506         (Set_Public_Status): Do not set Is_Public on an object whose declaration
16507         occurs within a handled_sequence_of_statemets.
16508         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
16509         for a parameterless procedure.
16510         (Enter_Name): Recognize renaming declarations created for private
16511         component of a protected type within protected operations, so that
16512         the source name of the component can be used in the debugger.
16513
16514 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
16515             Robert Dewar  <dewar@adacore.com>
16516
16517         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
16518         of a generic subprogram are not visible outside the body.
16519         (Set_Warning_Switch): New procedure (code to set warning mode moved
16520         here from Switch.C so that it can be shared by pragma processing.
16521         (Check_References): Special case warning for non-modified non-imported
16522         volatile objects.
16523         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
16524         form with a string literal argument
16525
16526 2005-11-14  Javier Miranda  <miranda@adacore.com>
16527
16528         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
16529         anonymous access.
16530         (Write): Addition of "not null" to the anonymous access.
16531         (Read): Addition of "not null" to the anonymous access.
16532         (Write): Addition of "not null" to the anonymous access.
16533
16534         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
16535         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
16536         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
16537         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
16538         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
16539         "not null" to the anonymous access.
16540
16541 2005-11-14  Robert Dewar  <dewar@adacore.com>
16542
16543         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
16544         offset values
16545
16546 2005-11-14  Vincent Celier  <celier@adacore.com>
16547
16548         * switch.adb (Bad_Switch): New procedure
16549         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
16550         message when in error.
16551
16552         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
16553         Too_Many_Output_Files): Remove declarations, no longer used.
16554         (Scan_Nat): New parameter Switch
16555         (Scan_Pos): Ditto
16556         (Bad_Switch): New procedure
16557
16558         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
16559         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
16560         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
16561         to Osint.Fail. Do not handle any exception.
16562
16563 2005-11-14  Vincent Celier  <celier@adacore.com>
16564
16565         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
16566         designates a non existent directory.
16567
16568 2005-11-14  Robert Dewar  <dewar@adacore.com>
16569
16570         * xgnatugn.adb: Replace invalid membership test by 'Valid
16571
16572 2005-11-14  Vincent Celier  <celier@adacore.com>
16573
16574         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
16575         there is no object directory.
16576
16577 2005-11-14  Robert Dewar  <dewar@adacore.com>
16578
16579         * usage.adb: Minor adjustment to output format, use nn instead of nnn
16580         (so that -gnateInnn does not run into next column)
16581
16582 2005-11-14  Ed Falis  <falis@adacore.com>
16583
16584         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
16585         "constrained"
16586
16587 2005-11-14  Cyrille Comar  <comar@adacore.com>
16588
16589         * s-chepoo.ads: Add comments on Dereference.
16590         Remove unnecessary inherited abstract primitives.
16591         Cosmetic cleanup.
16592
16593 2005-11-14  Robert Dewar  <dewar@adacore.com>
16594
16595         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
16596         node parameter, not needed, since it is available as Declaration_Node.
16597
16598 2005-11-14  Geert Bosch  <bosch@adacore.com>
16599
16600         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
16601         grammatically correct.
16602
16603 2005-11-14  Vincent Celier  <celier@adacore.com>
16604
16605         * s-fileio.ads: Correct spelling error in comment
16606
16607 2005-11-14  Cyrille Comar  <comar@adacore.com>
16608             Robert Dewar  <dewar@adacore.com>
16609             Vincent Celier  <celier@adacore.com>
16610             Ben Brosgol  <brosgol@adacore.com>
16611             Jose Ruiz  <ruiz@adacore.com>
16612             Pascal Obry  <obry@adacore.com>
16613
16614         * gnat_ugn.texi: 
16615         Document that -fstack-check is needed for strict compliance with the
16616         Ada 95 Reference Manual.
16617         Correct reference to VAX systems to meet HP guidelines
16618         Add documentation for new gnatmake switches -vl, -vm and -vh
16619         Replace DEC Ada by HP Ada
16620         Replace DIGITAL by HP
16621         Remove empty section on tools in compatibility section
16622         Clarify the Windows convention semantics.
16623         Document the Win32 calling convention.
16624         The Stdcall, Win32 and DLL convention are synonyms.
16625         Add a note in -gnatR description about zero size record components
16626         Note on new >= and <= warnings for -gnatwc
16627         Document that equal sign after -gnatm is optional.
16628         Note that strip is working fine on DLL built with a Library
16629         Project. The restriction apply only to DLL built with gnatdll.
16630         Update section about the way to debug a DLL.
16631         Update information about the DLL convention.
16632         Document -C switch for gnatprep
16633         Document new attribute Library_ALI_Dir
16634         Update elaboration doc to include implicit Elaborate pragmas now
16635         generated for subprogram instantiations.
16636         Document limitation on executable names that include spaces for --GCC,
16637         --GNATBIND, and --GNATLINK switches.
16638         Document that -w causes -gnatws to be added at start of gcc switches
16639
16640         * gnat_rm.texi: Document that -mieee is needed for generating infinite
16641         and NaN values in case of overflow on machines that are not fully
16642         compliant with the IEEE floating-point standard.
16643         Create a section describing the set of compiler options needed for
16644         strict compliance with the Ada 95 Reference Manual.
16645         Add documentation for pragma Obsolescent applied to a package
16646         Clarify potential issues of mixed language programs related to the
16647         I/O buffering enabling in the elaboration of the GNAT runtime.
16648         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
16649         This documentation only patch adds extra documentsion for pragma
16650         Restrictions (No_Elaboration_Code), explaining why it is not possible
16651         to document this restriction in terms of allowed source constructs.
16652         Document string literal form of pragma Warnings
16653         Document new attribute Library_ALI_Dir
16654         Add documentation on stable attributes in project files that was missing
16655
16656         * gnat-style.texi: Indicate that paragraphs within a single comment
16657         should be separated by empty comment lines
16658
16659         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
16660         /05 respectively)
16661
16662         * bindusg.adb: Minor cleanup, put -m before -M for consistency
16663
16664 2005-11-14  Robert Dewar  <dewar@adacore.com>
16665
16666         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
16667         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
16668         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
16669         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
16670         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
16671         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
16672         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
16673         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
16674         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
16675         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
16676         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
16677         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
16678         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
16679         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
16680         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
16681         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
16682         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
16683         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
16684         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
16685         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
16686         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
16687         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
16688         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
16689         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
16690         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
16691         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
16692         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
16693         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
16694         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
16695         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
16696         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
16697         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
16698         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
16699         system-interix.ads, system-solaris-sparc.ads,
16700         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
16701         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
16702         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
16703         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
16704         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
16705         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
16706         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
16707         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16708         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
16709         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
16710         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
16711         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
16712         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
16713         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
16714         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
16715         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
16716         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
16717         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
16718         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
16719         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
16720         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
16721         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
16722         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
16723         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
16724         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
16725         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
16726         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
16727         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
16728         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
16729         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
16730         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
16731         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
16732         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
16733         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
16734         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
16735         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
16736         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
16737         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
16738         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
16739         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
16740         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
16741         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
16742         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
16743         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
16744         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
16745         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
16746         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
16747         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
16748         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
16749         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
16750         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
16751         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
16752         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
16753         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
16754         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
16755         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
16756         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
16757         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
16758         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
16759         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
16760         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
16761         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
16762         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
16763         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
16764         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
16765         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
16766         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
16767         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
16768         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
16769         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
16770         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
16771         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
16772         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
16773         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
16774         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
16775         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
16776         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
16777         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
16778         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
16779         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
16780         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
16781         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
16782         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
16783         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
16784         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
16785         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
16786         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
16787         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
16788         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
16789         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
16790         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
16791         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
16792         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
16793         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
16794         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
16795         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
16796         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
16797         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
16798         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
16799         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
16800         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
16801         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
16802         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
16803         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
16804         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
16805         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
16806         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
16807         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
16808         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
16809         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
16810         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
16811         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
16812         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
16813         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
16814         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
16815         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
16816         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
16817         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
16818         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
16819         a-numaux-darwin.ads, a-numaux-darwin.adb,
16820         a-swuwha.ads, a-stunha.ads: Minor reformatting
16821
16822 2005-11-14  Robert Dewar  <dewar@adacore.com>
16823
16824         PR ada/18434
16825         * osint-m.adb: Add pragma Elaborate_All for Osint
16826
16827 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
16828
16829         PR ada/23995
16830         * trans.c (call_to_gnu): Restore statement lost in translation.
16831
16832 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
16833
16834         * init.c: Use the Linux-specific section for the IA-64/Linux target.
16835         (__gnat_adjust_context_for_raise): Add conditional code so that the
16836         IA-64 is also supported.
16837
16838 2005-11-03  James E Wilson  <wilson@specifix.com>
16839
16840         PR ada/23427
16841         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
16842         TREE_OVERFLOW check.
16843
16844 2005-09-21  Olivier Hainque  <hainque@adacore.com>
16845
16846         PR ada/22418
16847         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
16848         as we create them to store a size in bits.
16849
16850 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
16851
16852         PR ada/21937
16853         PR ada/22328
16854         PR ada/22381
16855         PR ada/22383
16856         PR ada/22419
16857         PR ada/22420
16858         * utils2.c (build_return_expr): New helper function.
16859         * gigi.h (build_return_expr): Declare it.
16860         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
16861         of manually building the RETURN_EXPR tree.
16862         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
16863         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
16864         build_binary_op for the "target pointer" case.  Use build_return_expr
16865         instead of manually building the RETURN_EXPR tree.
16866
16867 2005-09-16  Laurent Guerby  <laurent@guerby.net>
16868
16869         PR ada/23788
16870         * s-tpinop.ads: Make this unit Preelaborate.
16871
16872 2005-09-16  Andreas Jaeger  <aj@suse.de>
16873
16874         * socket.c: Add string.h for memcpy.
16875
16876 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
16877
16878         * dec-io.ads, dec-io.adb: Removed, no longer used.
16879
16880 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16881
16882         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
16883
16884         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16885         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
16886         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
16887         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
16888         dependent units are Preelaborate.
16889         (Initialize): Call Interrupt_Managemeent.Initialize and
16890         OS_Primitives.Initialize to ensure proper initialization of this unit.
16891         Remove use of System.Soft_Links
16892         Make this unit Preelaborate.
16893
16894         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16895         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
16896         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
16897         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
16898         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
16899         s-tratas.ads, s-tasinf.ads: Minor reformatting.
16900         Add pragma Preelaborate, since these packages are suitable for this
16901         categorization.
16902         Update comments.
16903
16904         * s-traent-vms.ads, s-intman-dummy.adb,
16905         s-taprop-dummy.adb: Make this unit Preelaborate.
16906
16907         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
16908         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
16909         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
16910         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
16911         s-intman-solaris.adb, s-intman-irix-athread.adb,
16912         s-intman-irix.adb: Mark this unit Preelaborate.
16913         (Initialize): New procedure.
16914         Update comments.
16915
16916         * s-taspri-linux.ads: Removed.
16917
16918         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
16919         as done by other implementations (e.g. posix).
16920
16921         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
16922         responsible for deferring abort.
16923         Mark this unit Preelaborate.
16924
16925         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
16926         proper initialization of the tasking run-time.
16927
16928         * s-tasdeb.ads: Mark this unit Preelaborate.
16929         (Known_Tasks): Add explicit default value to avoid elaboration code.
16930
16931         * s-inmaop-vms.adb (Elaboration code): Add call to
16932         Interrupt_Management.Initialize since the elaboration code depends on
16933         proper initialization of this package.
16934
16935         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
16936         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
16937         s-osprim-posix.adb: Make this unit Preelaborate.
16938
16939         * a-calend.adb: Add call to OS_Primitives.Initialize
16940
16941         * a-elchha.adb: Update use of Except.Id.Full_Name.
16942         Minor reformatting.
16943         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
16944
16945         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
16946         Move with clauses outside Warnings Off now that dependent units are
16947         Preelaborate.
16948         Use raise xxx with "..."; Ada 2005 form.
16949
16950         * a-taside.ads, a-taside.adb:
16951         Remove some dependencies, to make it easier to make this unit truly
16952         Preelaborate.
16953         Rewrite some code to be conformant with Preelaborate rules.
16954
16955         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
16956         marked Preelaborate in the future.
16957
16958         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
16959         these units Preelaborate.
16960
16961         * s-exctab.adb: Update use of Except.Id.Full_Name.
16962
16963         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
16964         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
16965         Set_Exc_Stack_Addr): Removed, no longer used.
16966         Remove reference to *Machine_State_Addr*, no longer needed.
16967
16968         * s-stalib.ads: Mark this unit as Preelaborate[_05].
16969         (Exception_Data): Full_Name is now a System.Address so that this unit
16970         can be made Preelaborate.
16971         Clean up/simplify code thanks to Full_Name being a System.Address.
16972         Remove obsolete pragma Suppress (All_Checks), no longer needed.
16973
16974         * s-taskin.ads, s-taskin.adb:
16975         Move with clauses outside Warnings Off now that dependent units are
16976         Preelaborate.
16977         Make this unit Preelaborate.
16978         (Initialize): New proceduure, replace elaboration code and makes the
16979         set up of the tasking run-time cleaner.
16980         (Detect_Blocking): Now a function instead of a deferred boolean, to
16981         obey Preelaborate rules.
16982
16983         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
16984         soft links, no longer used.
16985
16986         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
16987         packages are suitable for this categorization.
16988
16989         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
16990         since we compile run-time sources in Ada 2005 mode.
16991         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
16992         avoid having s-taprop*.adb depend on s-soflin and to avoid code
16993         duplication.
16994         Remove reference to *Machine_State_Addr*, no longer needed.
16995
16996 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
16997
16998         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
16999         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
17000         Remove reference to System.Exceptions.
17001
17002         * s-mastop-x86.adb: Removed, no longer used.
17003
17004         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
17005
17006         * a-excach.adb: Minor reformatting.
17007
17008         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
17009         instead fix new warnings that were hidden by this change.
17010         (AAA, ZZZ): Removed, replaced by...
17011         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
17012         are used instead of constants, to help make Ada.Exception truly
17013         preelaborate.
17014         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
17015         Raise_Storage_Error): File is now a System.Address, to simplify code.
17016         (Elab code): Removed, no longer used.
17017         (Null_Occurrence): Remove Warnings Off and make this construct
17018         preelaborate.
17019         Remove code related to front-end zero cost exception handling, since
17020         it is no longer used.
17021         Remove -gnatL/-gnatZ switches.
17022
17023         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
17024         Update use of Except.Msg.
17025
17026         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
17027         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
17028         to front-end zero cost exception handling, since it is no longer used.
17029         Remove -gnatL/-gnatZ switches.
17030
17031         * lib-writ.ads: Minor reformatting
17032         Remove doc of UX
17033
17034         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
17035
17036         * Make-lang.in: Remove references to s-except.ads
17037
17038         * s-except.ads: Removed, no longer used.
17039
17040         * s-mastop.ads, s-mastop.adb:
17041         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
17042         Remove reference to System.Exceptions.
17043
17044         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
17045         switch-b.adb: Remove code related to front-end zero cost exception
17046         handling, since it is no longer used.
17047         Remove -gnatL/-gnatZ switches.
17048
17049 2005-09-01  Robert Dewar  <dewar@adacore.com>
17050             Gary Dismukes  <dismukes@adacore.com>
17051             Javier Miranda  <miranda@adacore.com>
17052
17053         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
17054         type by valid test and generate warning.
17055         (Tagged_Membership): Generate call to the run-time
17056         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
17057         Change formal name Subtype_Mark to Result_Definition in several calls to
17058         Make_Function_Specification.
17059         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
17060         check for proper accessibility of the operand of a class-wide allocator.
17061         The check can be left out if checks are suppressed or if the expression
17062         has a specific tagged type whose level is known to be safe.
17063
17064         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
17065         generates the run-time check associated with null-excluding entities.
17066         (Expand_N_Return_Statement): Add tests to determine if the accessibility
17067         check on the level of the return expression of a class-wide function
17068         can be elided. The check usually isn't needed if the expression has a
17069         specific type (unless it's a conversion or a formal parameter). Also
17070         add a test for whether accessibility checks are suppressed. Augment
17071         the comments to describe the conditions for performing the check.
17072
17073 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
17074             Javier Miranda  <miranda@adacore.com>
17075             Gary Dismukes  <dismukes@adacore.com>
17076             Ed Schonberg  <schonberg@adacore.com>
17077
17078         * a-tags.adb (IW_Membership): Give support to
17079         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
17080         subprogram has been extended to look for the tag in the ancestors tag
17081         table.
17082         Update the structure of the GNAT Dispatch Table to reflect the
17083         additional two tables used in dispatching selects.
17084         Introduce appropriate array types and record components in
17085         Type_Specific_Data to reflect the two tables.
17086         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
17087         the TSD of a tag, indexed by position.
17088         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
17089         operation kind in the TSD of a tag, indexed by position.
17090
17091         * a-tags.ads: Introduce an enumeration type to capture different
17092         primitive operation kinds. Define a constant reflecting the number of
17093         predefined primitive operations.
17094         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
17095         of an entry wrapper.
17096         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
17097         callable entity of a primitive operation.
17098
17099         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
17100         primitive operations used in dispatching selects for limited
17101         interfaces, limited tagged, task and protected types what implement a
17102         limited interface.
17103         (Freeze_Type): Generate the bodies of the primitive operations used in
17104         dispatching selects for limited tagged, task and protected types that
17105         implement a limited interface. Generate statements to populate the two
17106         auxiliary tables used for dispatching in select statements.
17107         (Freeze_Record_Type): Add call to initialize the dispatch table entries
17108         associated with predefined interface primitive operations.
17109         (Build_Dcheck_Function): Change Set_Subtype_Mark to
17110         Set_Result_Definition.
17111         (Build_Variant_Record_Equality): Change Subtype_Mark to
17112         Result_Definition.
17113         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
17114         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
17115         (Build_Assignment): Simplify the code that adds the run-time-check.
17116         (Expand_N_Object_Declaration): Code cleanup.
17117
17118         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
17119         entries when there is a protected type that implements a limited
17120         interface.
17121
17122         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
17123         common routines used in expansion of dispatching selects.
17124         (Add_Private_Declarations): Select the appropriate protection type when
17125         there is a protected type that implements a limited interface.
17126         (Build_Parameter_Block): Generate a wrapped parameter block.
17127         (Build_Protected_Subprogram_Body): Select the appropriate type for
17128         locking entries when there is a protected type that implements a
17129         limited interface.
17130         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
17131         classified as entry wrappers.
17132         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
17133         asynchronous selects.
17134         (Expand_N_Conditional_Entry_Call): Add support for expansion of
17135         dispatching conditional selects.
17136         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
17137         protection when there is a protected type that implements limited
17138         interfaces.
17139         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
17140         timed selects.
17141         (Extract_Dispatching_Call): Extract the entity of the name of a
17142         dispatching call, the object parameter, actual parameters and
17143         corresponding formals.
17144         (Make_Initialize_Protection): Correct logic of protection initialization
17145         when there is a protected type that implements a limited interface.
17146         (Parameter_Block_Pack): Populate a wrapped parameter block with the
17147         values of actual parameters.
17148         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
17149         block and assign them to the original actual parameters.
17150
17151         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
17152         (Build_Protected_Sub_Specification): Change the type and name of the
17153         last formal to account for the increased variety of protection modes.
17154
17155         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
17156         entities. Used to save the value of the Is_Hidden attribute when the
17157         limited-view is installed.
17158         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
17159         the attribute of procedures classified as entry wrappers.
17160         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
17161         entity of a primitive wrapper.
17162         (Write_Entity_Flags): Output the name and value of the
17163         Is_Primitive_Wrapper attribute.
17164         (Write_Field27_Name): Output the name and entity of the field Wrapped_
17165         Entity.
17166         (Underlying_Type): If we have an incomplete entity that comes from
17167         the limited view then we return the Underlying_Type of its non-limited
17168         view if it is already available.
17169         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
17170         including operators.
17171         (Write_Field26_Name): Add entry for Overridden_Operation
17172         (Overridden_Operation): New attribute of functions and procedures.
17173
17174         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
17175         predefined position in the dispatch table for the primitive operations
17176         used in dispatching selects.
17177         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
17178         predefined primitive operations and replace it with
17179         Default_Prim_Op_Count.
17180         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
17181         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
17182         the names of the generated primitive operations used in dispatching
17183         selects.
17184         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
17185         case of abstract interface types. They will be inherit by the objects
17186         implementing the interface.
17187         (Make_DT): There is no need to inherit the dispatch table of the
17188         ancestor interface for the elaboration of abstract interface types.
17189         The dispatch table will be inherited by the object implementing the
17190         interface.
17191         (Copy_Secondary_DTs): Add documentation.
17192         (Validate_Position): Improve this static check in case of
17193         aliased subprograms because aliased subprograms must have
17194         the same position.
17195         (Init_Predefined_Interface_Primitives): New subprogram that initializes
17196         the entries associated with predefined primitives of all the secondary
17197         dispatch tables.
17198         (Build_Anonymous_Access_Type): Removed.
17199         (Expand_Interface_Actuals): With the previous cleanup there is no need
17200         to build an anonymous access type. This allows further cleanup in the
17201         code generated by the expander.
17202         (Expand_Interface_Conversion): If the actual is an access type then
17203         build an internal function to handle the displacement. If the actual
17204         is null this function returns null because no displacement is
17205         required; otherwise performs a type conversion that will be
17206         expanded in the code that returns the value of the displaced actual.
17207         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
17208         conversions that have no effect in the generated code because no
17209         displacement is required. Code cleanup; use local variables to
17210         avoid repeated calls to the subprogram directly_designated_type().
17211
17212         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
17213         Classify the primitive operations used in dispatching selects as
17214         predefined.
17215         (Implements_Limited_Interface): Determine whether some type either
17216         directly implements a limited interface or extends a type that
17217         implements a limited interface.
17218         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
17219         (Expand_Subtype_From_Expr): Do not build actual subtype if the
17220         expression is limited.
17221         (Find_Interface_Tag): Add code to handle class-wide types and
17222         entities from the limited-view.
17223
17224         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
17225         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
17226         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
17227         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
17228         Set_Prim_Op_Kind.
17229
17230         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
17231         of procedure name or prefix that appears as a trigger in a triggering
17232         alternative.
17233
17234         * uintp.ads: Introduce constants Uint_11 and Uint_13.
17235
17236 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
17237
17238         * s-tataat.adb, a-tasatt.adb:
17239         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
17240
17241         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
17242         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
17243         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
17244         longer used.
17245
17246 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
17247             Jose Ruiz  <ruiz@adacore.com>
17248
17249         * s-taprop-vxworks.adb:
17250         Move with clauses outside Warnings Off now that dependent units are
17251         Preelaborate.
17252         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
17253         initialization of this unit.
17254         (Specific): Add new procedures Initialize and Delete so that this
17255         package can be used for VxWorks 5.x and 6.x
17256         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
17257         differences between VxWorks 5.x and 6.x
17258         Minor reformatting.
17259         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
17260         caller.
17261         Use only Preelaborate-compatible constructs.
17262
17263         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
17264         Primitives.Operations.
17265         (Delete, Initialize): New procedures.
17266
17267         * s-osinte-vxworks.adb: Body used to handle differences between
17268         VxWorks 5.x and 6.x
17269         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
17270
17271         * s-osinte-vxworks.ads: Minor reformatting.
17272         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
17273         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
17274         and 6.
17275         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
17276         between Vxworks 5 and 6.
17277         (taskLock, taskUnlock): Removeed, no longer used.
17278
17279         * adaint.c: The wait.h header is not located in the sys directory on
17280         VxWorks when using RTPs.
17281         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
17282         using RTPs.
17283         (__gnat_dup): dup is available on Vxworks when using RTPs.
17284         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
17285
17286         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
17287
17288         * expect.c: The wait.h header is not located in the sys directory on
17289         VxWorks when using RTPs.
17290
17291 2005-09-01  Thomas Quinot  <quinot@adacore.com>
17292
17293         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
17294
17295         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
17296
17297         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
17298         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
17299         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
17300         g-soccon-freebsd.ads: Add new constants:
17301          IP_MULTICAST_IF
17302          SO_RCVTIMEO/SO_SNDTIMEO
17303          IOV_MAX
17304
17305         * gen-soccon.c:
17306         Move all target-specific file inclusions and macro definitions to
17307         gsocket.h, in order to ensure that any C code in socket.c will see a
17308         set of constants that is consistent with the contents of g-soccon.ads.
17309
17310         * gsocket.h: Code imported from gen-soccon.c:
17311         Move all target-specific file inclusions and macro definitions to
17312         gsocket.h, in order to ensure that any C code in socket.c will see a set
17313         of constants that is consistent with the contents of g-soccon.ads.
17314         This change also makes gen-soccon self-contained (removing dependencies
17315         upon GCC internal headers).
17316
17317         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
17318         iovecs at a time.
17319         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
17320
17321         * socket.c: Minor reformatting.
17322
17323 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17324             Thomas Quinot  <quinot@adacore.com>
17325
17326         * fname-sf.adb, mlib-tgt.ads,
17327         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
17328         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
17329         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
17330         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
17331         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
17332         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
17333         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
17334         makegpr.adb: Remove redundant use_clauses.
17335
17336 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
17337
17338         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
17339         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
17340         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
17341         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
17342         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
17343         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
17344         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
17345         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
17346         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
17347         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
17348         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
17349         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
17350         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
17351         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
17352         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
17353         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
17354         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
17355         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
17356         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
17357         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
17358         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
17359         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
17360         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
17361         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
17362         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
17363         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
17364         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
17365         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
17366         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
17367         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
17368         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
17369         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
17370         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
17371         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
17372         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
17373         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
17374         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
17375         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
17376         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
17377         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
17378         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
17379         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
17380         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
17381         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
17382         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
17383         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
17384         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
17385         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
17386         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
17387         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
17388         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
17389         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
17390         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
17391         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
17392         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
17393         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
17394         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
17395         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
17396         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
17397         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
17398         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
17399         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
17400         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
17401         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
17402         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
17403         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
17404         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
17405         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
17406         and always use the no parameter form for consistency.
17407
17408         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
17409
17410 2005-09-01  Robert Dewar  <dewar@adacore.com>
17411
17412         * binde.adb: Minor reformatting
17413         (Find_Elab_Order): Output warning if -p used with static elab order
17414
17415 2005-09-01  Robert Dewar  <dewar@adacore.com>
17416
17417         * checks.adb (Check_Needed): New procedure, deals with removing checks
17418         based on analysis of short-circuited forms. Also generates warnings for
17419         improper use of non-short-circuited forms.
17420         Code clean ups.
17421
17422 2005-09-01  Robert Dewar  <dewar@adacore.com>
17423
17424         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
17425         with 'Valid tests.
17426
17427 2005-09-01  Robert Dewar  <dewar@adacore.com>
17428
17429         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
17430         spec.
17431         Implement new insertion char < (conditional warning)
17432         * errutil.adb, erroutc.adb: Implement new insertion char <
17433         (conditional warning).
17434         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
17435         (Error_Msg_Warn): New variable for < insertion char.
17436         * prj-nmsc.adb: Implement new errout insertion char < (conditional
17437         warning).
17438         (Check_For_Source): Change value of Source_Id only after the current
17439         source has been dealt with.
17440
17441 2005-09-01  Robert Dewar  <dewar@adacore.com>
17442             Doug Rupp  <rupp@adacore.com>
17443
17444         * exp_attr.adb: Handle vax fpt for 'Valid attribute
17445         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
17446         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
17447         (Valid_D, Valid_F, Valid_G): New functions
17448
17449 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17450             Hristian Kirtchev  <kirtchev@adacore.com>
17451             Javier Miranda  <miranda@adacore.com>
17452
17453         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
17454         from object notation, the original node is unanalyzed and carries no
17455         semantic information, so that accessiblity checks must be performed on
17456         the type of the actual itself.
17457         (Expand_N_Subprogram_Declaration): Change last actual parameter for
17458         compatibility with Build_Protected_Sub_Specification.
17459         (Check_Overriding_Inherited_Interfaces): Add suport to handle
17460         overloaded primitives.
17461         (Register_Interface_DT_Entry): Use the new name of the formal
17462         the the calls to Expand_Interface_Thunk
17463
17464         * exp_dbug.ads: Augment comments on encoding of protected types to
17465         include the generation of dispatching subprograms when the type
17466         implements at least one interface.
17467
17468         * lib.ads: Extend information in Load_Stack to include whether a given
17469         load comes from a Limited_With_Clause.
17470
17471         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
17472         whether a potential circularity is harmless, because it includes units
17473         loaded through a limited_with clause. Extends previous treatment which
17474         did not handle properly arbitrary combinations of limited and
17475         non-limited clauses.
17476
17477 2005-09-01  Nicolas Setton  <setton@adacore.com>
17478
17479         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
17480         to be encoded as typ___XBLU_lowerbound__upperbound instead of
17481         typ___XB_lowerbound__upperbound.
17482
17483 2005-09-01  Thomas Quinot  <quinot@adacore.com>
17484
17485         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
17486         dummy access formal for RACW/RAS TypeCode TSS.
17487         (Build_TypeCode_Call): Do not generate dummy null access actual for
17488         calls to the TypeCode TSS.
17489
17490 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17491
17492         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
17493         fully qualified name, to distinguish instances with the same local name.
17494
17495         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
17496         fully qualified.
17497
17498 2005-09-01  Robert Dewar  <dewar@adacore.com>
17499
17500         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
17501         packed arrays.
17502
17503 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
17504
17505         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
17506         (Free): New deallocation procedure for filter elements
17507         (Close): Deallocate any existing filter for the concerned connection
17508
17509 2005-09-01  Laurent Pautet  <pautet@adacore.com>
17510
17511         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
17512         position set is provided, we compute one in order to reduce the maximum
17513         length of the keys.  This computation first selects a character
17514         position between 1 and the minimum length of the keys in order to
17515         avoid reducing one of the keys to an empty string.
17516         (Initialize, Compute): When the ratio V to K is too low, the algorithm
17517         does not converge. The initialization procedure now comes with a
17518         maximum number of iterations such that when exceeded, an exception is
17519         raised in Compute. The user can initialize this ratio to another value
17520         and try again
17521         Reformating and updated headers.
17522
17523 2005-09-01  Javier Miranda  <miranda@adacore.com>
17524
17525         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
17526         that given an entity T creates and returns an Itype that duplicates the
17527         contents of T. The returned Itype has the null-exclusion
17528         attribute set to True, and its Etype attribute references T
17529         to keep the association between the two entities.
17530         Update copyright notice
17531
17532         * sem_aggr.adb (Check_Can_Never_Be_Null,
17533         Aggregate_Constraint_Checks, Resolve_Aggregate,
17534         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
17535
17536         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
17537
17538 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
17539             Robert Dewar  <dewar@adacore.com>
17540             Hristian Kirtchev  <kirtchev@adacore.com>
17541
17542         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
17543         Result_Definition.
17544
17545         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
17546         function specs.
17547         Call Set_Result_Definition instead of Set_Subtype_Mark.
17548         (P_Subprogram_Specification): Add parsing of anonymous access result
17549         plus null exclusions. Call Set_Result_Definition instead of
17550         Set_Subtype_Mark.
17551
17552         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
17553         (P_Access_Type_Definition): Add parsing for an anonymous access result
17554         subtype, plus parsing for null exclusions. Call Set_Result_Definition
17555         instead of Set_Subtype_Mark.
17556
17557         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
17558         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
17559         (Result_Definition): New function for N_Function_Specifications.
17560         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
17561         N_Function_Specification.
17562         (Set_Null_Exclusion_Present): Allow this flag for
17563         N_Function_Specification.
17564         (Set_Result_Definition): New procedure for N_Function_Specifications.
17565         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
17566         and N_Function_Specification.
17567
17568         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
17569         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
17570         Add support for LIMITED NEW for Ada 2005 AI-419
17571         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
17572         syntax for anonymous access results.
17573         Replace Subtype_Mark field by Result_Definition in
17574         N_Function_Specification and N_Access_Definition specs.
17575         Add Null_Exclusion_Present to spec of N_Function_Specification.
17576         (Result_Definition): New function for N_Function_Specification and
17577         N_Access_Function_Definition.
17578         (Set_Result_Definition): New procedure for N_Function_Specification and
17579         N_Access_Function_Definition.
17580
17581         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
17582         Result_Definition for cases of N_Access_Function_Definition and
17583         N_Function_Specification.
17584         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
17585
17586 2005-09-01  Vincent Celier  <celier@adacore.com>
17587
17588         * lib-writ.adb: Update Copyright notice
17589         (Write_With_Lines): On platforms where file names are case-insensitive,
17590         record the file names in lower case.
17591         (Write_ALI): For D lines, on platforms where file names are
17592         case-insensitive, record the file names in lower case.
17593
17594 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17595             Emmanuel Briot  <briot@adacore.com>
17596
17597         * lib-xref.adb (Output_Overridden_Op): Display information on
17598         overridden operation.
17599
17600         * lib-xref.ads: Add documentation on overridden operations.
17601
17602         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
17603         information.
17604
17605         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
17606         overriding entity information.
17607
17608 2005-09-01  Vincent Celier  <celier@adacore.com>
17609
17610         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
17611         including those that are inherited.
17612
17613 2005-09-01  Robert Dewar  <dewar@adacore.com>
17614
17615         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
17616
17617         * par-prag.adb: Implement new pragma Debug_Policy
17618
17619         * sem_prag.adb Implement new pragma Debug_Policy
17620         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
17621         Component_Size attribute specification. Give warning for ignored pragma
17622         Pack.
17623
17624         * snames.h, snames.ads, snames.adb: Introduce entries in
17625         Preset_Names for Name_Disp_Asynchronous_Select,
17626         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
17627         Name_Disp_Timed_Select.
17628         New pragma Debug_Policy
17629
17630         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
17631         explicitly.
17632         Switch -gnata also sets Debug_Pragmas_Enabled
17633
17634         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
17635         handle an explicit -gnata when compiling predefined files.
17636
17637 2005-09-01  Vincent Celier  <celier@adacore.com>
17638
17639         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
17640         directories of projects that have no Ada sources.
17641
17642 2005-09-01  Robert Dewar  <dewar@adacore.com>
17643
17644         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
17645         (makes a difference for wide characters)
17646
17647         * widechar.adb, widechar.ads:
17648         Add Wide_Char_Byte_Count feature to count chars vs bytes
17649
17650 2005-09-01  Thomas Quinot  <quinot@adacore.com>
17651             Ed Schonberg  <schonberg@adacore.com>
17652             Robert Dewar  <dewar@adacore.com>
17653
17654         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
17655         'Address attribute reference with an overloaded prefix, use the
17656         location of the prefix (not the location of the attribute reference) as
17657         the error location.
17658         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
17659         a function renaming thereof, is a valid prefix for 'Size (where it is
17660         intepreted as a function call).
17661         (Statically_Denotes_Entity): New predicate to determine whether the
17662         prefix of an array attribute can be considered static.
17663
17664         PR ada/9087
17665         (Eval_Attr): Fix failure to evaluate Component_Size for
17666         unconstrained arrays (resulted in wrong value in packed case, since
17667         back end cannot handle this case)
17668
17669 2005-09-01  Robert Dewar  <dewar@adacore.com>
17670
17671         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
17672         error msgs for most common cases.
17673         Use new errout insertion char < (conditional warning)
17674
17675 2005-09-01  Javier Miranda  <miranda@adacore.com>
17676             Ed Schonberg  <schonberg@adacore.com>
17677
17678         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
17679         become local to the whole package.
17680         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
17681         the package was already analyzed the new algorithm "replaces" the
17682         real entities by the shadow ones. This is required to ensure that
17683         the order of these entities in the homonym chains does not change;
17684         otherwise we can have undefined references at linking time because
17685         in case of conflicts the external name of the entities will have
17686         a suffix that depends on the order of the entities in the chain.
17687         (Remove_Limited_With_Clause): Complementary code that completes the
17688         new algorithm and replaces the shadow entities by the real ones.
17689         (Install_Limited_Withed_Unit): When unchaining entities before the
17690         installation of the shadow entities, only regular entities of the
17691         public part must be taken into account. This is required to
17692         keep this routine in synch with the work done by Remove_Limited_
17693         With_Clause
17694         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
17695         even if unit is analyzed, because the analysis of the unit is
17696         idempotent in any case, and the limited view of the unit may have to
17697         be installed for proper visibility.
17698         (Expand_Limited_With_Clause): Even if the unit in the implicit
17699         with_clause has been analyzed already, a limited view of the package
17700         must be built for the current context, if it does not exist yet.
17701
17702 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17703             Javier Miranda  <miranda@adacore.com>
17704             Gary Dismukes  <dismukes@adacore.com>
17705
17706         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
17707         defining entity for the instance body, make a new defining identifier
17708         rather than copying the entity of the spec, to prevent accidental
17709         sharing of the entity list.
17710         (Check_Private_View): When exchanging views of private types, build the
17711         list of exchanged views as a stack, to ensure that on exit the exchanges
17712         are undone in the proper order.
17713         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
17714         Restore the compilation environment in case of instantiation_error.
17715         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
17716         for an anonymous access result.
17717         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
17718         (Formal_Entity): Handle properly the case of a formal package that
17719         denotes a generic package renaming.
17720
17721 2005-09-01  Thomas Quinot  <quinot@adacore.com>
17722
17723         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
17724         clause if the array aggregate is surrounded by parentheses.
17725
17726 2005-09-01  Cyrille Comar  <comar@adacore.com>
17727             Gary Dismukes  <dismukes@adacore.com>
17728             Ed Schonberg  <schonberg@adacore.com>
17729             Javier Miranda  <miranda@adacore.com>
17730
17731         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
17732         underlying type
17733         to check if a type is Constrained in cases related to code generation
17734         (rather than semantic checking) since otherwise we do not generate
17735         similar code for mutable private types depending if their
17736         discriminants are visible or not.
17737         (Check_Abstract_Overriding): Do not complain about failure to override
17738         the primitive operations used in dispatching selects since they will
17739         always be overriden at the freeze point of the type.
17740         (Access_Definition): Separate out handling for resetting the scope
17741         of an anonymous access function result type. Retrieve the scope
17742         of the associated function rather than using Current_Scope, which
17743         does not have a consistent value (depends on whether we're in the
17744         middle of analyzing formal parameters). Add ??? comment about
17745         finding a cleaner way to handle the special cases of scope setting.
17746         (Process_Incomplete_Dependents): A protected operation is never a
17747         dispatching operation (only its wrapper may be).
17748         (Build_Derived_Record_Type): In case of tagged private types that
17749         implement interfaces add derivation of predefined primitive
17750         operations.
17751         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
17752         by two parameters that are used in case of derivation from abstract
17753         interface types: No_Predefined_Prims is used to avoid the derivation
17754         of predefined primitives from the interface, and Predefined
17755         Prims_Only is used to complete the derivation predefined primitives
17756         in case of private tagged types implementing interfaces.
17757         Fix typo in comments
17758         (Find_Interface_In_Descendant): Protect the frontend against
17759         wrong code with large circularity chains.
17760         (Is_Private_Overriding): Add support for entities overriding interface
17761         subprograms. The test failed because Entities associated with overriden
17762         interface subprograms are always marked as hidden (and used to build
17763         the secondary dispatch table); in this case the overriden entity is
17764         available through the field abstract_interface_alias (cf. override_
17765         dispatching_operation)
17766         (Access_Definition): Set the scope of the type to Current_Scope for the
17767         case of a function with an anonymous access result type.
17768         (Access_Subprogram_Declaration): Handle creation of the type entity for
17769         an access-to-function type with an anonymous access result.
17770         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
17771         in handling for N_Access_Function_Definition.
17772         (Analyze_Subtype_Declaration): Modify the text of error message.
17773         (Derived_Type_Declaration): Modify the text of error message.
17774         (Process_Subtype): Modify the text of error message plus cleanup
17775         of one redundant error message.
17776         (Analyze_Component_Declaration): Code cleanup.
17777         (Analyze_Object_Declaration): Code cleanup.
17778         (Analyze_Subtype_Declaration): Propagate the null-exclusion
17779         attribute in case of access types. Code cleanup.
17780         (Array_Type_Declaration): Code cleanup.
17781         (Process_Discriminants): Create the new null-excluding itype
17782         if required. Code cleanup.
17783         (Process_Subtype): Create the new null-excluding itype if
17784         required. Code cleanup.
17785         (Build_Derived_Record_Type): Code cleanup to avoid calling
17786         twice the subprogram derive_subprograms in case of private
17787         types that implement interfaces. In this particular case the
17788         subprogram Complete_Subprograms_Derivation already does the
17789         job associated with the second call.
17790
17791         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
17792         conversion to the full view when generating an operation for a
17793         discriminant whose type may currently be private.
17794
17795 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17796             Javier Miranda  <miranda@adacore.com>
17797
17798         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
17799         V (Obj.F), the rewriting does not involve the indexed component, but
17800         only the selected component itself.
17801         Do not apply the transformation if the analyzed node is an actual of a
17802         call to another subprogram.
17803         (Complete_Object_Operation): Retain the entity of the
17804         dispatching operation in the selector of the rewritten node. The
17805         entity will be used in the expansion of dispatching selects.
17806         (Analyze_One_Call): Improve location of the error message associated
17807         with interface.
17808         (Analyze_Selected_Component): No need to resolve prefix when it is a
17809         function call, resolution is done when parent node is resolved, as
17810         usual.
17811         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
17812         when attempting to resolve a call transformed from its object notation.
17813         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
17814         of the argument list for each interpretation of the operation.
17815         (Try_Object_Operation): The designated type of an access parameter may
17816         be an incomplete type obtained through a limited_with clause, in which
17817         case the primitive operations of the type are retrieved from its full
17818         view.
17819         (Analyze_Call): If this is an indirect call, and the return type of the
17820         access_to_subprogram is incomplete, use its full view if available.
17821
17822 2005-09-01  Javier Miranda  <miranda@adacore.com>
17823             Gary Dismukes  <dismukes@adacore.com>
17824
17825         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
17826         access types the null-exclusion and access-to-constant attributes must
17827         also match.
17828         (Analyze_Return_Statement): When the result type is an anonymous access
17829         type, apply a conversion of the return expression to the access type
17830         to ensure that appropriate accessibility checks are performed.
17831         (Analyze_Return_Type): For the case of an anonymous access result type,
17832         generate the Itype and set Is_Local_Anonymous_Access on the type.
17833         Add ??? placeholder for check to disallow returning a limited object
17834         in Ada 2005 unless it's an aggregate or a result of a function call.
17835         Change calls from Subtype_Mark to Result_Definition.
17836         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
17837         Result_Definition in call to Make_Function_Specification.
17838         (Build_Body_To_Inline): Change Set_Subtype_Mark to
17839         Set_Result_Definition.
17840         (Make_Inequality_Operator): Change formal Subtype_Mark to
17841         Result_Definition in call to Make_Function_Specification.
17842         (Process_Formals): Create the new null-excluding itype if required.
17843         (New_Overloaded_Entity): For an entity overriding an interface primitive
17844         check if the entity also covers other abstract subprograms in the same
17845         scope. This is required to handle the general case, that is, overriding
17846         other interface primitives and overriding abstract subprograms inherited
17847         from some abstract ancestor type.
17848         (New_Overloaded_Entity): For an overriding entity that comes from
17849         source, note the operation that it overrides.
17850         (Check_Conformance, Type_Conformant): Addition of one new formal
17851         to skip controlling formals in the analysis. This is used to
17852         handle overloading of abstract interfaces.
17853         (Base_Types_Match): Add missing case for types imported from
17854         limited-with clauses
17855         (New_Overloaded_Entity): Add barrier to protect the use of
17856         the "alias" attribute.
17857
17858 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17859
17860         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
17861         verify that the procedure and the entry are mode conformant.
17862         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
17863         as a different operator, which is often a cut-and-paste error.
17864
17865 2005-09-01  Javier Miranda  <miranda@adacore.com>
17866             Ed Schonberg  <schonberg@adacore.com>
17867
17868         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
17869         used in controlling parameters exclude null because it is necessary to
17870         read the tag to dispatch, and null has no tag.
17871         (Override_Dispatching_Operation): If the previous operation is inherited
17872         from an interface, it becomes hidden  and does not participate in later
17873         name resolution.
17874
17875 2005-09-01  Javier Miranda  <miranda@adacore.com>
17876             Ed Schonberg  <schonberg@adacore.com>
17877             Gary Dismukes  <dismukes@adacore.com>
17878
17879         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
17880         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
17881         the expander will generate the corresponding run-time check to evaluate
17882         the expression.
17883         (Resolve_Call): Check for legal type of procedure name or prefix that
17884         appears as a trigger in a triggering alternative.
17885         (Valid_Conversion): If expression is ambiguous and the context involves
17886         an extension of System, remove System.Address interpretations.
17887         (Resolve_Qualified_Expression): Reject the case of a specific-type
17888         qualification applied to a class-wide argument. Enhance comment
17889         to explain checking of Original_Node.
17890         (Resolve_Type_Conversion): The location of the error message was not
17891         general enough to handle the general case and hence it has been removed.
17892         In addition, this patch improves the text of the message.
17893         (Resolve_Type_Conversion): Add missing support for access to interface
17894         types.
17895         (Resolve_Type_Conversion): If the target is a class-wide interface type,
17896         do not expand if the expression is the actual in a call, because proper
17897         expansion will take place when the call itself is expanded.
17898         (Resolve_Allocator): If the context is an unchecked conversion, the
17899         allocator inherits its storage pool, if any, from the target type of
17900         the conversion.
17901
17902 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17903             Javier Miranda  <miranda@adacore.com>
17904
17905         * sem_type.adb (Add_One_Interp): If a candidate operation is an
17906         inherited interface operation that has an implementation, use the
17907         implementation to avoid spurious ambiguities.
17908         (Interface_Present_In_Ancestor): In case of concurrent types we can't
17909         use the Corresponding_Record_Typ attribute to look for the interface
17910         because it is set by the expander (and hence it is not always
17911         available). For this reason we traverse the list of interfaces
17912         (available in the parent of the concurrent type).
17913         (Interface_Present_In_Ancestor): Handle entities from the limited view
17914
17915 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17916
17917         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
17918         from the list of required components.
17919         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
17920         primitive procedure of a limited interface with a controlling first
17921         parameter.
17922         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
17923         of an entry.
17924         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
17925         capture if it is generated in the second operand of a short-circuit
17926         operation.
17927         Do not capture values for variables with address clauses.
17928         (Is_Object_Reference): Treat a function call as an object reference only
17929         if its type is not Standard_Void_Type.
17930
17931 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
17932
17933         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
17934         to a variable that is statically known to be constant.
17935
17936 2005-09-01  Geert Bosch  <bosch@adacore.com>
17937             Robert Dewar  <dewar@adacore.com>
17938
17939         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
17940         (VAXGF_Safe_First): Idem.
17941
17942 2005-09-01  Robert Dewar  <dewar@adacore.com>
17943             Arnaud Charlet  <charlet@adacore.com>
17944
17945         * g-dirope.ads: Minor reformatting
17946         Document that bounds of result of Base_Name match the input index
17947         positions.
17948         Add documentation on environment variable syntax for Expand_Path
17949
17950         * gnat_ugn.texi: Update documentation to include mention of -m switches
17951         Document new treatment of wide characters in max line length
17952         style check.
17953         Remove -gnatL/-gnatZ switches, no longer used.
17954         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
17955         of -gnata switch.
17956
17957         * gnat_rm.texi: Add doc for two argument form of pragma
17958         Float_Representation.
17959         Add documentation for pragma No_Strict_Aliasing
17960         Add note that explicit component clause overrides pragma Pack.
17961         Add documentation of pragma Debug_Policy
17962
17963 2005-09-01  Matthew Heaney  <heaney@adacore.com>
17964
17965         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
17966         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
17967         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
17968         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
17969         draft (Draft 13, August 2005) of Ada Amendment 1.
17970
17971 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
17972
17973         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
17974         Note that the platform-specific version of g-soccon.ads for VMS is now
17975         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
17976         really is a package spec).
17977         Replace s-taspri-linux.ads by s-taspri-posix.ads
17978         Remove references to s-mastop-x86.adb
17979
17980         * system-vxworks-xscale.ads: Removed, no longer used.
17981         * s-vxwork-xscale.ads: Removed, no longer used.
17982
17983 2005-09-01  Robert Dewar  <dewar@adacore.com>
17984
17985         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
17986         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
17987         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
17988         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
17989         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
17990         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
17991         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
17992         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
17993         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
17994         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
17995         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
17996         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
17997         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
17998         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
17999         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
18000         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
18001         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
18002         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
18003         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
18004         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
18005         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
18006
18007 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
18008
18009         PR ada/23187
18010         * adaint.c
18011         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
18012
18013 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
18014             Doug Rupp  <rupp@adacore.com>
18015
18016         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
18017         when needed.
18018         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
18019         this code in the GNAT run-time.
18020
18021         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
18022
18023         PR ada/21053
18024         * init.c (__gnat_error_handler [many]): Mark "msg" as const
18025         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
18026
18027         (__gnat_inside_elab_final_code): Moved here from
18028         Standard_Library and only defined for the compiler.
18029         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
18030         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
18031         using RTPs because directly vectored Interrupt routines are not
18032         supported on this configuration.
18033         (getpid): Do not redefine this function on VxWorks when using RTPs
18034         because this primitive is well supported by the RTP libraries.
18035         (copy_msg): Correct the code that checks for buffer overflow.
18036         Discovered during code reading.
18037
18038 2005-08-29  Olivier Hainque  <hainque@adacore.com>
18039
18040         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
18041         a library level mutable variable with an initializer, tell
18042         build_allocator to ignore the initializer's size. It may not be large
18043         enough for all the values that might be assigned to the variable later
18044         on.
18045
18046 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
18047             Eric Botcazou  <ebotcazou@adacore.com>
18048
18049         * trans.c: Protect < in error msg with quote
18050         Replace GCC_ZCX by Back_End_Exceptions.
18051         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
18052         has been sufficiently aligned in the record.
18053
18054 2005-08-15  James E. Wilson  <wilson@specifix.com>
18055
18056         * system-linux-alpha.ads: Change ia64 to alpha.
18057
18058 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
18059
18060         * decl.c, utils.c: Fix comment typos.
18061
18062 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
18063
18064         * decl.c, init.c, initialize.c: Fix comment typos.
18065
18066 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
18067
18068         Make CONSTRUCTOR use VEC to store initializers.
18069         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
18070         CONSTRUCTOR_ELTS.
18071         * trans.c (extract_values): Likewise.
18072         * utils.c (convert, remove_conversions): Likewise.
18073         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
18074         gnat_build_constructor): Likewise.
18075
18076 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
18077
18078         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
18079         DECL_SECTION_NAME.
18080         (compare_field_bitpos): Likewise.
18081
18082 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
18083
18084         * utils.c (create_var_decl): Only set DECL_COMMON on
18085         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
18086         VAR_OR_FUNCTION_DECL_P.
18087
18088 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
18089
18090         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
18091         removed.
18092
18093 2005-07-07  Pascal Obry  <obry@adacore.com>
18094
18095         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
18096         returned type on Windows.
18097
18098         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
18099         routine.
18100
18101         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
18102         exception in this case.
18103         Simplify the code as "Image (Image'Range)" = "Image".
18104
18105 2005-07-07  Vincent Celier  <celier@adacore.com>
18106
18107         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
18108         the destructor/constructor attributes for <lib>final/<lib>init.
18109
18110         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
18111
18112 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
18113
18114         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
18115         type if the parameter is not passed by copy but reference by default.
18116
18117 2005-07-07  Javier Miranda  <miranda@adacore.com>
18118
18119         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
18120         Reimplementation of the support for abstract interface types in order
18121         to leave the code more clear and easy to maintain.
18122
18123         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
18124         abstract interface types in order to leave the code clearer and easier
18125         to maintain.
18126
18127         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
18128         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
18129         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
18130         appropriate entry of the secondary dispatch table.
18131         (Make_DT): Add code to inherit the secondary dispatch tables of
18132         the ancestors.
18133
18134         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
18135         implementing both functionalities by means of a common routine, each
18136         routine has its own code.
18137
18138 2005-07-07  Javier Miranda  <miranda@adacore.com>
18139
18140         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
18141
18142         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
18143         types:
18144         --
18145           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
18146         --
18147
18148         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
18149         use of tag incomplete types.
18150
18151         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
18152         give support to tagged incomplete types.
18153
18154         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
18155         expression is a discriminant reference and its type is private, as can
18156         happen within a stream operation for a mutable record, use the full
18157         view of the type to resolve the case alternatives.
18158         (Analyze_Assignment): Check wrong dereference of incomplete types.
18159
18160         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
18161         types.
18162
18163         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
18164         incomplete types.
18165
18166         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
18167         N_Incomplete_Type_Declaration nodes.
18168
18169         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
18170         Tag_Present to give support to tagged incomplete types:
18171         --
18172           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
18173         --
18174
18175 2005-07-07  Olivier Hainque  <hainque@adacore.com>
18176
18177         PR ada/22301
18178         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
18179         definitions for the Unwind wrappers in the compiler case.
18180
18181 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
18182             Javier Miranda  <miranda@adacore.com>
18183
18184         * par-load.adb (Load): If a child unit is loaded through a limited_with
18185         clause, each parent must be loaded as a limited unit as well.
18186
18187         * sem_ch10.adb (Previous_Withed_Unit): Better name for
18188         Check_Withed_Unit. Return true if there is a previous with_clause for
18189         this unit, whether limited or not.
18190         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
18191         the current unit.
18192         (Is_Visible_Through_Renamings): New local subprogram of install_limited
18193         _withed_unit that checks if some package installed through normal with
18194         clauses has a renaming declaration of package whose limited-view is
18195         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
18196         of the current Draft document for Ada 2005.
18197         (Analyze_Context): Complete the list of compilation units that
18198         are allowed to contain limited-with clauses. It also contains
18199         checks that were previously done by Install_Limited_Context_Clauses.
18200         This makes the code more clear and easy to maintain.
18201         (Expand_Limited_With_Clause) It is now a local subprogram of
18202         Install_Limited_Context_Clauses, and contains the code that adds
18203         the implicit limited-with clauses for parents of child units.
18204         This functionality was prevously done by Analyze_Context.
18205
18206         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
18207         incomplete type.
18208
18209         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
18210         been erroneously named in a limited-with clause of its own context.
18211         In this case the error has been previously notified by Analyze_Context.
18212
18213 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
18214
18215         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
18216         generic package that contains local declarations with the same name.
18217         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
18218
18219 2005-07-07  Bernard Banner  <banner@adacore.com>
18220
18221         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
18222         ia64 platform only on platforms that you the GCC unwind library
18223         rather than the system unwind library.
18224
18225 2005-07-07  Thomas Quinot  <quinot@adacore.com>
18226
18227         * expect.c: Minor reformatting
18228
18229 2005-07-07  Sergey Rybin  <rybin@adacore.com>
18230
18231         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
18232         --no-separate-is
18233
18234         * gnat_ugn.texi: Add description for new gnatpp option
18235         (--no-separate-is)
18236
18237 2005-07-04  Thomas Quinot  <quinot@adacore.com>
18238
18239         * g-expect-vms.adb, g-expect.ads, g-expect.adb
18240         (Get_Command_Output): New subprogram to launch a process and get its
18241         standard output as a string.
18242
18243 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
18244             Olivier Hainque  <hainque@adacore.com>
18245
18246         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
18247         fetch a code-range descriptor associated with the machine state. On
18248         failure set the machine state's PC to 0; on success, pass the
18249         descriptor to exc_virtual_unwind.
18250
18251         * init.c (Tru64 section): New function __gnat_set_code_loc.
18252
18253 2005-07-04  Vincent Celier  <celier@adacore.com>
18254
18255         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
18256         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
18257         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
18258         Remove all auto-initialization code, as this is now done through the
18259         constructor mechanism.
18260
18261         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
18262         __gnat_sals_init_using_constructors): New functions.
18263
18264         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
18265         Linker_Constructor and Linker_Destructor when switch -a is used.
18266
18267         * bindusg.adb: Add line for new switch -a
18268
18269         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
18270         (Gnatbind): When switch -a is used, check if it is allowed
18271
18272         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
18273
18274 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
18275
18276         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
18277         This prevents us from hitting a limitation during the debug info
18278         generation when using stabs.
18279         (Prims_Ptr): Likewise.
18280
18281 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
18282             Ed Schonberg  <schonberg@adacore.com>
18283             Javier Miranda  <miranda@adacore.com>
18284
18285         * checks.adb (Null_Exclusion_Static_Checks): In the case of
18286         N_Object_Declaration, only perform the checks if the Object_Definition
18287         is not an Access_Definition.
18288
18289         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
18290         where the parent of an the access definition is an N_Object_Declaration
18291         when determining the Associated_Node_For_Itype and scope of an
18292         anonymous access-to-subprogram type.
18293
18294         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
18295         Corresponding_Spec on the body created for a null procedure. Add ???
18296         comment. Remove New_Copy_Tree call on body argument to
18297         Set_Body_To_Inline.
18298
18299         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
18300         discriminants, use the type of the actual as well, because the
18301         discriminants may be read by the called subprogram.
18302
18303         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
18304         access type we do not need to handle non-limited views.
18305         (Build_Derived_Record_Type): Additional check to check that in case of
18306         private types, interfaces are only allowed in private extensions.
18307
18308 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
18309
18310         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
18311         <Pragma_Linker_Destructor>: Likewise.
18312
18313         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
18314         Pragma_Linker_Destructor.
18315
18316         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
18317         ATTR_LINK_DESTRUCTOR.
18318         (static_ctors, static_dtors): New variables.
18319
18320         * misc.c (gnat_expand_body): Output current function as constructor
18321         and destructor if requested.
18322
18323         * par-prag.adb: Add processing for pragma Linker_Constructor and
18324         Linker_Destructor.
18325
18326         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
18327         extracted from Check_Interrupt_Or_Attach_Handler.
18328         (Check_Interrupt_Or_Attach_Handler): Invoke it.
18329         Implement pragma Linker_Constructor and Linker_Destructor with the
18330         help of Find_Unique_Parameterless_Procedure.
18331         Replace Name_Alias with Name_Target for pragma Linker_Alias.
18332
18333         * snames.h, snames.ads, snames.adb:
18334         Add Name_Linker_Constructor and Name_Linker_Destructor.
18335         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
18336         * snames.adb: Remove Name_Alias.
18337
18338         * trans.c: Include cgraph.h.
18339         (build_global_cdtor): New function.
18340         (Compilation_Unit_to_gnu): Build global constructor and destructor if
18341         needed.
18342         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
18343         of objects too.
18344         (addressable_p) <COMPONENT_REF>: Unconditionally test
18345         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
18346
18347         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
18348         variable if it is external.
18349
18350         (static_ctors, static_dtors): New global variables.
18351         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
18352         <ATTR_LINK_DESTRUCTOR>: Likewise.
18353         (end_subprog_body): Chain function as constructor and destructor
18354         if requested.
18355
18356         * exp_util.adb (Force_Evaluation): Unconditionally invoke
18357         Remove_Side_Effects with Variable_Ref set to true.
18358         (Remove_Side_Effects): Handle scalar types first. Use a renaming
18359         for non-scalar types even if Variable_Ref is true and for class-wide
18360         expressions.
18361
18362 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
18363
18364         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
18365         to prevent spurious warnings.
18366
18367 2005-07-04  Thomas Quinot  <quinot@adacore.com>
18368
18369         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
18370         Itypes. Itypes are really unexpected there.
18371         (Build_TypeCode_Function): Generalise special processing for Itypes to
18372         handle the case of numeric implicit base types as well as enumerated
18373         ones.
18374
18375 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
18376
18377         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
18378         controlled, indicate the expected type of the dereference that is
18379         created for the call to Deep_Finalize, to prevent spurious errors when
18380         the designated type is private and completed with a derivation from
18381         another private type.
18382
18383 2005-07-04  Vincent Celier  <celier@adacore.com>
18384
18385         * make.adb (Change_To_Object_Directory): When unable to change the
18386         current dir to the object directory, output the full path of the
18387         directory.
18388
18389 2005-07-04  Matthew Gingell  <gingell@adacore.com>
18390
18391         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
18392
18393         * indepsw-linux.adb: Replace by...
18394
18395         * indepsw-gnu.adb: ...this new file
18396
18397 2005-07-04  Vincent Celier  <celier@adacore.com>
18398
18399         * mlib-prj.adb (Auto_Initialize): New constant String
18400         (SALs_Use_Constructors): New Boolean function
18401         (Build_Library): Call gnatbind with Auto_Initialize switch when
18402         SALs_Use_Constructors returns True.
18403
18404         * mlib-tgt.ads: Minor reformatting
18405
18406         * mlib-utl.ads: Minor reformatting
18407
18408         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
18409
18410 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
18411
18412         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
18413         single protected declarations can have an interface list.
18414         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
18415         with seriously malformed entry declarations, and lead to compilation
18416         abandoned messages.
18417
18418 2005-07-04  Javier Miranda  <miranda@adacore.com>
18419
18420         * par-load.adb: Load the context items in two rounds.
18421
18422 2005-07-04  Robert Dewar  <dewar@adacore.com>
18423
18424         * scng.adb: Do not consider Mod used as an attribute to be a keyword
18425
18426 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
18427             Javier Miranda  <miranda@adacore.com>
18428
18429         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
18430         type extension needs a limited view.
18431         Remove previous restriction on private types available through the
18432         limited-view (only tagged private types were previously allowed).
18433         (Install_Withed_Unit): In the code that implements the
18434         legality rule given in AI-377, exclude a child unit with the name
18435         Standard, because it is a homonym of the Standard environment package.
18436
18437 2005-07-04  Thomas Quinot  <quinot@adacore.com>
18438
18439         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
18440         overloaded function call, carry interpretations from the original tree
18441         to the copy.
18442
18443 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
18444
18445         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
18446         types check whether some designated type is a limited view, and use
18447         the non-limited view if available.
18448
18449 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
18450
18451         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
18452         constraint of full view of a private view T1 if present, when T2 is a
18453         discriminated full view.
18454
18455 2005-07-04  Thomas Quinot  <quinot@adacore.com>
18456
18457         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
18458         actual that is a view conversion of a bit packed array reference.
18459
18460 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
18461
18462         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
18463         present before checking whether an interface type covers a synchronized
18464         type.
18465
18466 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
18467
18468         * sem_util.adb (Is_Object_Reference): An indexed or selected component
18469         whose prefix is an implicit dereference is an object reference. Removes
18470         spurious errors when compiling with -gnatc.
18471
18472 2005-07-04  Robert Dewar  <dewar@adacore.com>
18473
18474         PR ada/22039
18475         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
18476
18477 2005-07-04  Matthew Gingell  <gingell@adacore.com>
18478
18479         * tracebak.c: Enable tracebacks on ia64 platforms
18480
18481 2005-07-04  Vincent Celier  <celier@adacore.com>
18482
18483         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
18484         the GNAT BIND command, as gnatbind accepts multiples ALI files with
18485         the -L or -n switches.
18486
18487 2005-07-04  Vincent Celier  <celier@adacore.com>
18488
18489         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
18490         correctly computed and the main project data is not modified while
18491         doing so.
18492         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
18493         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
18494         c++linker as this does not work on some platforms.
18495
18496 2005-07-04  Matthew Heaney  <heaney@adacore.com>
18497
18498         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
18499         was changed.
18500         * a-coinve.adb: Perform constraint checks explicitly.
18501
18502 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18503             Thomas Quinot  <quinot@adacore.com>
18504
18505         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
18506         new target gen-soccon.
18507
18508 2005-07-04  Robert Dewar  <dewar@adacore.com>
18509
18510         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
18511
18512 2005-07-04  Thomas Quinot  <quinot@adacore.com>
18513
18514         * g-socket.ads (Check_Selector): Minor rewording of comment.
18515
18516 2005-07-04  Vincent Celier  <celier@adacore.com>
18517
18518         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
18519
18520 2005-07-04  Thomas Quinot  <quinot@adacore.com>
18521
18522         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
18523
18524 2005-07-04  Sergey Rybin  <rybin@adacore.com>
18525
18526         * gnat_ugn.texi: Add description of --eol gnatpp option
18527
18528 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
18529             Thomas Quinot  <quinot@adacore.com>
18530
18531         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
18532         if the user wants all calls of a subprogram to be flagged,
18533         independently of whether they are made from within the same unit or
18534         another unit.
18535         Mention restriction for pragma Linker_Alias on some platforms.
18536         Document pragma Linker_Constructor and Linker_Destructor.
18537         Rewrite documentation of Weak_External, Linker_Section and
18538         Linker_Alias pragmas.
18539
18540 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
18541
18542         * s-stausa.ads, s-stausa.adb: New files.
18543
18544 2005-06-30  Kelley Cook
18545
18546         * all files:  Update FSF address in copyright headers.
18547         * gen-soccon.co (main): Output new FSF address in generated files.
18548
18549 2005-06-28  Paul Brook  <paul@codesourcery.com>
18550
18551         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
18552
18553 2005-06-14  Olivier Hainque  <hainque@adacore.com>
18554             Eric Botcazou  <ebotcazou@adacore.com>
18555
18556         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
18557         exc_unwind, now that we are generating proper .debug_frame output for
18558         that target.
18559
18560         * tracebak.c: Remove the mips-irix section, as we are now using the
18561         s-mastop based unwinder again.
18562         Under SPARC/Solaris, take into account the stack bias to compute the
18563         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
18564         ABI.
18565
18566 2005-06-14  Doug Rupp  <rupp@adacore.com>
18567
18568         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
18569
18570         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
18571
18572 2005-06-14  Pascal Obry  <obry@adacore.com>
18573
18574         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
18575         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
18576         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
18577         package name).
18578
18579         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
18580         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
18581         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
18582         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
18583         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
18584         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
18585         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
18586         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
18587         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
18588         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
18589         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
18590         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
18591         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
18592         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
18593         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
18594         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
18595         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
18596         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
18597         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
18598         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
18599         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
18600         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
18601         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
18602         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
18603         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
18604         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
18605         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
18606         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
18607         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
18608         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
18609         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
18610         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
18611         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
18612         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
18613         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
18614         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
18615         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
18616         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
18617         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
18618         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
18619         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
18620         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
18621         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
18622         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
18623         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
18624         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
18625         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
18626         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
18627         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
18628         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
18629         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
18630         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
18631         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
18632         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
18633         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
18634         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
18635         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
18636         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
18637         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
18638         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
18639         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
18640         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
18641         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
18642         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
18643         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
18644         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
18645         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
18646         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
18647         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
18648         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
18649         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
18650         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
18651         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
18652         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
18653         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
18654         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
18655         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
18656         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
18657         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
18658         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
18659         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
18660         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
18661         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
18662         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
18663         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
18664         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
18665         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
18666         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
18667         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
18668         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
18669         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
18670         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
18671         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
18672         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
18673         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
18674         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
18675         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
18676         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
18677         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
18678         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
18679         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
18680         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
18681         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
18682         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
18683         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
18684         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
18685         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
18686         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
18687         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
18688         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
18689         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
18690         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
18691         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
18692         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
18693         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
18694         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
18695         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
18696         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
18697         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
18698         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
18699         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
18700         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
18701         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
18702         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
18703         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
18704         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
18705         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
18706         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
18707         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
18708         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
18709         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
18710         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
18711         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
18712
18713 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
18714             Arnaud Charlet  <charlet@adacore.com>
18715
18716         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
18717         longer protected objects. They have been replaced by lower-level
18718         suspension objects made up by a mutex and a condition variable (or
18719         their equivalent given a particular OS) plus some internal data to
18720         reflect the state of the suspension object.
18721         (Initialize, Finalize): Add this initialization procedure for
18722         Suspension_Object, which is a controlled type.
18723         (Finalize): Add the finalization procedure for Suspension_Object,
18724         which is a controlled type.
18725
18726         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
18727         Ada.Synchronous_Task_Control because there is no longer a need for a
18728         VxWorks specific version of this package. Target dependencies
18729         has been moved to System.Task_Primitives.Operations.
18730
18731         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
18732         longer needed.
18733         (InitializeCriticalSection, EnterCriticalSection,
18734         LeaveCriticalSection, DeleteCriticalSection): Replace the type
18735         pCriticalSection by an anonymous access type so that we avoid problems
18736         of accessibility to local objects.
18737
18738         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
18739         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
18740         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
18741         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
18742         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
18743         set the environment task mask here.
18744         (Current_State): Add this function that returns the state of the
18745         suspension object.
18746         (Set_False): Add this procedure that sets the state of the suspension
18747         object to False.
18748         (Set_True): Add this procedure that sets the state of the suspension
18749         object to True, releasing the task that was suspended, if any.
18750         (Suspend_Until_True): Add this procedure that blocks the calling task
18751         until the state of the object is True. Program_Error is raised if
18752         another task is already waiting on that suspension object.
18753         (Initialize): Add this procedure for initializing the suspension
18754         object. It initializes the mutex and the condition variable which are
18755         used for synchronization and queuing, and it sets the internal state
18756         to False.
18757         (Finalize): Add this procedure for finalizing the suspension object,
18758         destroying the mutex and the condition variable.
18759
18760         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
18761         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
18762         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
18763         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
18764         which provides a low-level abstraction (using operating system
18765         primitives) for Ada.Synchronous_Task_Control.
18766         This object is made up by a mutex (for ensuring mutual exclusion), a
18767         condition variable (for queuing threads until the condition is
18768         signaled), a Boolean (State) indicating whether the object is open,
18769         and a Boolean (Waiting) reflecting whether there is a task already
18770         suspended on this object.
18771
18772         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
18773         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
18774         s-intman-vms.ads, s-intman-mingw.adb,
18775         (Initialize_Interrupts): Removed, no longer used.
18776
18777         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
18778         (Setup_Interrupt_Mask): New procedure.
18779
18780         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
18781
18782         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
18783
18784         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
18785         this is no longer done in the body of s-taprop
18786         (Server_Task): Explicitely test for Pending_Action in case
18787         System.Parameters.No_Abort is True.
18788
18789         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
18790         is no longer done in the body of s-taprop
18791
18792 2005-06-14  Robert Dewar  <dewar@adacore.com>
18793
18794         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
18795         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
18796         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
18797         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
18798         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18799         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
18800         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
18801         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
18802         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
18803         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
18804         system-linux-hppa.ads, system-vms_64.ads,
18805         system-vxworks-alpha.ads: Minor comment update for
18806         AI-362 (unit is Pure).
18807
18808         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
18809         Add pragma Pure_05 for AI-362
18810         Make remaining conversion functions obsolescent in Ada 95
18811
18812         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
18813         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
18814         Add entries for a-wichun and a-zchuni
18815         Add a-widcha a-zchara for AI-395
18816         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
18817
18818         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
18819         Add entries for a-wichun.o and a-zchuni.o
18820         Entries for a-widcha.o and a-zchara.o
18821         Add entry for a-chacon.o
18822
18823         * a-ztenau.adb: Add with of Ada.Characters.Conversions
18824
18825         * a-chacon.ads, a-chacon.adb: New files.
18826
18827         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
18828         categorization violations.
18829
18830         * a-strmap.ads: Add pragma Pure_05 for AI-362
18831         * a-strmap.ads: Add note on implicit categorization for AI-362
18832
18833         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
18834
18835         * par-prag.adb: Dummy entry for pragma Persistent_BSS
18836         Set Ada_Version_Explicit, for implementation of AI-362
18837         Add processing for pragma Pure_05 and Preelaborate_05
18838         Add entry for Assertion_Policy pragma
18839
18840         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
18841         when needed for proper processing of categorization stuff
18842
18843         * sem_cat.adb:
18844         For several cases, make errors in preealborate units warnings,
18845         instead of errors, if GNAT_Mode is set. For AI-362.
18846
18847         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
18848         preelaborate unit is now warning if in GNAT mode
18849
18850         * s-stoele.ads: Document AI-362 for pragma preelaborate
18851
18852 2005-06-14  Doug Rupp  <rupp@adacore.com>
18853
18854         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
18855         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
18856         Default_Exception_Msg_Max_Length: new parameter.
18857
18858         * a-except.ads: (Exception_Msg_Max_Length): Set to
18859         System.Parameters.Default_Exception_Msg_Max_Length
18860         Add pragma Preelaborate_05 for AI-362
18861         Add warnings off to allow categorization violations for AI-362
18862
18863 2005-06-14  Vincent Celier  <celier@adacore.com>
18864
18865         * gnatsym.adb: Adapt to modification of package Symbols: procedure
18866         Process is now in package Processing.
18867
18868         * symbols.ads, symbols.adb:
18869         (Processing): New package, containing procedure Process
18870
18871         * symbols-vms-alpha.adb:
18872         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
18873
18874         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
18875         symbols-processing-vms-ia64.adb: New files.
18876
18877 2005-06-14  Pascal Obry  <obry@adacore.com>
18878
18879         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
18880         implementation. This new version generates the proper DllMain routine
18881         to initialize the SAL. The DllMain is generated in Ada and compiled
18882         before being added as option to the library build command.
18883
18884 2005-06-14  Doug Rupp  <rupp@adacore.com>
18885             Pascal Obry  <obry@adacore.com>
18886
18887         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
18888         call to decc$translate_vms.
18889         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
18890         need to remove those quotes before catenating the filename.
18891         (__gnat_locate_exec_on_path): improvements to the Win32 section:
18892         * avoid allocating the memory twice for better efficiency;
18893         * allocate 32K buffer for environment expansion as suggested by MSDN;
18894         * prepend ".;" to the path so that current directory is searched too.
18895
18896 2005-06-14  Robert Dewar  <dewar@adacore.com>
18897
18898         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
18899         instead of raising CE (AI-241)
18900         Add warnings off to allow categorization violations for AI-362
18901
18902 2005-06-14  Robert Dewar  <dewar@adacore.com>
18903
18904         * ali-util.adb, gnatbind.adb: Remove references to
18905         Force_RM_Elaboration_Order.
18906
18907         * switch-b.adb: Remove recognition of -f switch
18908
18909 2005-06-14  Pascal Obry  <obry@adacore.com>
18910
18911         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
18912         implementation which is slightly more efficient.
18913
18914 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
18915             Javier Miranda  <miranda@adacore.com>
18916             Ed Schonberg  <schonberg@adacore.com>
18917             Hristian Kirtchev  <kirtchev@adacore.com>
18918
18919         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
18920         allocator's designated type is a class-wide type, and compiling for
18921         Ada 2005, emit a run-time check that the accessibility level of the
18922         type given in the allocator's expression is not deeper than the level
18923         of the allocator's access type.
18924
18925         (Tagged_Membership): Modified to gives support to abstract interface
18926         types.
18927
18928         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
18929         Access_Level.
18930         (Descendant_Tag): New predefined function
18931         (Is_Descendant_At_Same_Level): New predefined function
18932         (Get_Access_Level): New private function
18933         (Set_Access_Level): New private procedure
18934         (IW_Membership): New function. Given the tag of an object and the tag
18935         associated with an interface, evaluate if the object implements the
18936         interface.
18937         (Register_Interface_Tag): New procedure used to initialize the table of
18938         interfaces used by the IW_Membership function.
18939         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
18940         of the dispatch table.
18941         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
18942         table of interfaces of the parent.
18943         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
18944         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
18945         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
18946         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
18947         Ada 2005 semantics for the new predefined function.
18948
18949         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
18950         call to Descendant_Tag rather than Internal_Tag.
18951         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
18952         the accessibility level of the attribute's Item parameter is not deeper
18953         than the level of the attribute's prefix type. Tag_Error is raised if
18954         the check fails. The check is only emitted for Ada_05.
18955         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
18956         requested stream attribute, use it.
18957         (Expand_N_Attribute_Reference): If the designated type is an interface
18958         then rewrite the referenced object as a conversion to force the
18959         displacement of the pointer to the secondary dispatch table.
18960         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
18961         is a dereference of an object with a constrained partial view.
18962
18963         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
18964         type is a class-wide type, emit a run-time check that the accessibility
18965         level of the returned object is not deeper than the level of the
18966         function's master (only when compiling for Ada 2005).
18967
18968         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
18969         Action_Nb_Arg): Add entries for new Get_Access_Level and
18970         Set_Access_Level routines in these tables.
18971         (Make_DT): Generate a call to set the accessibility level of the
18972         tagged type in its TSD.
18973         (Make_DT): Code cleanup. The functionality of generating all the
18974         secondary dispatch tables has been moved to freeze_record_type.
18975         (Make_Abstract_Interface_DT): Minor code cleanup.
18976         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
18977         this subprogram implements a new algorithm that provides the
18978         same functionality and it is more clear in case of primitives
18979         associated with abstract interfaces.
18980         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
18981         clean up, the functionality of this subprogram is now provided
18982         by Set_All_DT_Position.
18983         (Write_DT): New subprogram: a debugging procedure designed to be called
18984         within gdb to display the dispatch tables associated with a tagged
18985         type.
18986         (Collect_All_Interfaces): New subprogram that collects the whole list
18987         of interfaces that are directly or indirectly implemented by a tagged
18988         type.
18989         (Default_Prim_Op_Position): New subprogram that returns the fixed
18990         position in the dispatch table of the default primitive operations.
18991         (Expand_Interface_Actuals): New subprogram to generate code that
18992         displaces all the actuals corresponding to class-wide interfaces to
18993         reference the interface tag of the actual object.
18994         (Expand_Interface_Conversion): New subprogram. Reference the base of
18995         the object to give access to the interface tag associated with the
18996         secondary dispatch table.
18997         (Expand_Interface_Thunk): New subprogram that generates the code of the
18998         thunk. This is required for compatibility with the C+ ABI.
18999         (Make_Abstract_Interface_DT): New subprogram that generate the
19000         declarations for the secondary dispatch tables associated with an
19001         abstract interface.
19002         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
19003         attribute for each primitive operation covering interface subprograms
19004         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
19005         These subprograms were upgraded to give support to abstract interfaces
19006
19007         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
19008         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
19009         RE_Set_Access_Level.
19010         (RE_Unit_Table): Add entries for new Ada.Tags operations.
19011         Add support to call the followig new run-time subprograms:
19012         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
19013
19014         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
19015         match its full declaration when both have an access definition with
19016         statically matching designated subtypes.
19017         (Analyze_Component_Declaration): Delete commented out code that was
19018         incorrectly setting the scope of an anonymous access component's type.
19019         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
19020         an access discriminant when the containing type is nonlimited.
19021         (Make_Incomplete_Type_Declaration): Create an incomplete type
19022         declaration for a record type that includes self-referential access
19023         components.
19024         (Check_Anonymous_Access_Types): Before full analysis of a record type
19025         declaration, create anonymous access types for each self-referential
19026         access component.
19027         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
19028         an access component in this context is a Local_Anonymous_Access, for
19029         proper accessibility checks.
19030         (Access_Definition): Set properly the scope of the anonymous access type
19031         created for a stand-alone access object.
19032         (Find_Type_Of_Object): An object declaration may be given with an access
19033         definition.
19034         (Complete_Subprograms_Derivation): New subprogram used to complete
19035         type derivation of private tagged types implementing interfaces.
19036         In this case some interface primitives may have been overriden
19037         with the partial-view and, instead of re-calculating them, they
19038         are included in the list of primitive operations of the full-view.
19039         (Build_Derived_Record_Type): Modified to give support to private
19040         types implemening interfaces.
19041         (Access_Definition): Reject ALL on anonymous access types.
19042         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
19043         type derivation to occur at a deeper accessibility level than the
19044         parent type.
19045         For the case of derivation within a generic body however, disallow the
19046         derivation if the derived type has an ancestor that is a formal type
19047         declared in the formal part of an enclosing generic.
19048         (Analyze_Object_Declaration): For protected objects, remove the check
19049         that they cannot contain interrupt handlers if not declared at library
19050         level.
19051         (Add_Interface_Tag_Components): New subprogram to add the tag components
19052         corresponding to all the abstract interface types implemented by a
19053         record type or a derived record type.
19054         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
19055         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
19056         Process_Full_View, Record_Type_Declaration): Modified to give
19057         support to abstract interface types
19058         (Collect_Interfaces): New subprogram that collects the list of
19059         interfaces that are not already implemented by the ancestors
19060         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
19061         when partial view has no discriminants and full view has defaults.
19062         (Constrain_Access): Reject a constraint on a general access type
19063         if the discriminants of the designated type have defaults.
19064         (Access_Subprogram_Declaration): Associate the Itype node with the inner
19065         full-type declaration or subprogram spec. This is required to handle
19066         nested anonymous declarations.
19067         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
19068         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
19069         Process_Full_View, Record_Type_Declaration): Modified to give
19070         support to abstract interface types
19071         (Derive_Subprograms): Addition of a new formal to indicate if
19072         we are in the case of an abstact-interface derivation
19073         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
19074         to the specification because it is requied to analyze all the
19075         identifiers found in a list of interfaces
19076
19077         * debug.adb: Complete documentation of flag "-gnatdZ"
19078
19079         * exp_ch3.adb: Implement config version of persistent_bss pragma
19080         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
19081         testing for TSS presence to properly enforce visibility rules.
19082         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
19083         Make_Abstract_Interfaces_DT to generate the secondary tables
19084         associated with abstract interfaces.
19085         (Build_Init_Procedure): Modified to initialize all the tags
19086         corresponding.
19087         (Component_Needs_Simple_Initialization): Similar to other tags,
19088         interface tags do not need initialization.
19089         (Freeze_Record_Type): Modified to give support to abstract interface
19090         types.
19091         (Expand_N_Object_Declaration): Do not generate an initialization for
19092         a scalar temporary marked as internal.
19093
19094         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
19095         in-out parameter that is a component in an initialization procedure,
19096         whose constraint might depend on discriminants, and that may be
19097         misaligned because of packing or representation clauses.
19098         (Is_Legal_Copy): New predicate to determine whether a possibly
19099         misaligned in-out actual can actually be passed by copy/return. This
19100         is an error in case the type is by_reference, and a warning if this is
19101         the consequence of a DEC import pragma on the subprogram.
19102         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
19103         interface types
19104         (Expand_Inlined_Call): Mark temporary generated for the return value as
19105         internal, so that no useless scalar normalization is generated for it.
19106         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
19107         null procedure can always be inlined.
19108         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
19109         procedure, generate an explicit empty body for it.
19110
19111         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
19112         Given a type implementing an interface, returns the corresponding
19113         access_disp_table value.
19114         (Find_Interface_Tag): New subprogram. Given a type implementing an
19115         interface, returns the record component containing the tag of the
19116         interface.
19117         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
19118         previous ones that return the corresponding tag and access_disp_table
19119         entities.
19120         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
19121         is a predefined primitive operation.
19122         (Expand_Subtype_From_Expr): If the expression is a selected component
19123         within an initialization procedure, compute its actual subtype, because
19124         the component may depend on the discriminants of the enclosing record.
19125
19126         * i-cpp.ads, i-cpp.adb:
19127         This package has been left available for compatibility with previous
19128         versions of the frontend. As part of the new layout this is now a
19129         dummy package that uses declarations available at a-tags.ads
19130
19131         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
19132         "constant access" and "aliased [constant] access" when not compiling
19133         with -gnat05.
19134         Suppress Ada 2005 keyword warning if -gnatwY used
19135         (P_Identifier_Declarations): Add support for object declarations with
19136         access definitions.
19137         (Private_Extension_Declaration): Complete the documentation
19138         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
19139         attribute in case of private extension declaration
19140         (P_Type_Declaration): Mark as "abstract" the type declarations
19141         corresponding with protected, synchronized and task interfaces
19142         (P_Declarative_Items): "not" and "overriding" are overriding indicators
19143         for a subprogram or instance declaration.
19144
19145         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
19146         instantiation that is a dispatching operation has controlling access
19147         parameters that are null excluding.
19148         Save and restore Ada_Version_Explicit, for implementation of AI-362
19149         (Validate_Derived_Type_Instance): Add check for abstract interface
19150         types.
19151         (Analyze_Formal_Package): Establish Instantiation source for the copy of
19152         the generic that is created to represent the formal package.
19153         (Analyze_Package_Instantiation): Instantiate body immediately if the
19154         package is a predefined unit that contains inlined subprograms, and
19155         we are compiling for a Configurable_Run_Time.
19156         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
19157         If the program has a null default, generate an empty body for it.
19158
19159         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
19160         error message condition, null procedures are correctly detected now.
19161         (New_Overloaded_Entity): Bypass trivial overriding indicator check
19162         for subprograms in the context of protected types. Instead, the
19163         indicator is examined in Sem_Ch9 while analysing the subprogram
19164         declaration.
19165         (Check_Overriding_Indicator): Check consistency of overriding indicator
19166         on subprogram stubs as well.
19167         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
19168         the library level.
19169         (Analize_Subprogram_Specification): When analyzing a subprogram in which
19170         the type of the first formal is a concurrent type, replace this type
19171         by the corresponding record type.
19172         (Analyze_Subprogram_Body): Undo the previous work.
19173         (Analyze_Procedure_Call): If the call has the form Object.Op, the
19174         analysis of the prefix ends up analyzing the call itself, after which
19175         we are done.
19176         (Has_Interface_Formals): New subprogram subsidiary to analyze
19177         subprogram_specification that returns true if some non
19178         class-wide interface subprogram is found
19179         (New_Overloaded_Entity): Modified to give support to abstract
19180         interface types
19181         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
19182         access to subprograms must be recursive.
19183         (Is_Unchecked_Conversion): Improve the test that recognizes
19184         instantiations of Unchecked_Conversion, and allows them in bodies that
19185         are to be inlined by the front-end. When the body comes from an
19186         instantiation, a reference to Unchecked_Conversion will be an
19187         Expanded_Name, even though the body has not been analyzed yet.
19188         Replace Is_Overriding and Not_Overriding in subprogram_indication with
19189         Must_Override and Must_Not_Override, to better express intent of AI.
19190         (Analyze_Subprogram_Body): If an overriding indicator is given, check
19191         that it is consistent with the overrinding status of the subprogram
19192         at this point.
19193         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
19194         always inlined.
19195         If the subprogram is a null procedure, indicate that it does not need
19196         a completion.
19197
19198         * sem_disp.adb (Check_Controlling_Type): Give support to entities
19199         available through limited-with clauses.
19200         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
19201         allowed as the last primitive of a tagged type if it has no previous
19202         spec.
19203         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
19204         to give support to abstract interface types
19205
19206         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
19207         in the case where the target type is an anonymous access type of an
19208         object or component (that is, when Is_Local_Anonymous_Access is true).
19209         Prevent the special checks for conversions of access discriminants in
19210         the case where the discriminant belongs to a nonlimited type, since
19211         such discriminants have their accessibility level defined in the same
19212         way as a normal component of an anonymous access type.
19213         (Resolve_Allocator): When an allocator's designated type is a class-wide
19214         type, check that the accessibility level of type given in the
19215         allocator's expression or subtype indication is not statically deeper
19216         than the level of the allocator's access type.
19217         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
19218         name in a discriminant constraint of a record component.
19219         (Resolve_Explicit_Dereference): Do not check whether the type is
19220         incomplete when the dereference is a use of an access discriminant in
19221         an initialization procedure.
19222         (Resolve_Type_Conversion): Handle conversions to abstract interface
19223         types.
19224         (Valid_Tagged_Conversion): The conversion of a tagged type to an
19225         abstract interface type is always valid.
19226         (Valid_Conversion): Modified to give support to abstract interface types
19227         (Resolve_Actuals): Enable full error reporting on view conversions
19228         between unrelated by_reference array types.
19229         The rule for view conversions of arrays with aliased components is
19230         weakened in Ada 2005.
19231         Call to obsolescent subprogram is now considered to be a violation of
19232         pragma Restrictions (No_Obsolescent_Features).
19233         (Check_Direct_Boolean_Operator): If the boolean operation has been
19234         constant-folded, there is nothing to check.
19235         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
19236         check on possible violation of restriction No_Direct_Boolean_Operators
19237         until after expansion of operands, to prevent spurious errors when
19238         operation is constant-folded.
19239
19240         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
19241         Has_Compatible_Type): Modified to give support to abstract interface
19242         types.
19243         (Interface_Present_In_Ancestor): New function to theck if some ancestor
19244         of a given type implements a given interface
19245
19246         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
19247         prefix is a parameterless function that returns an access_to_procedure.
19248         (Transform_Object_Operation): Handle properly function calls of the
19249         form Obj.Op (X), which prior to analysis appear as indexed components.
19250         (Analyze_One_Call): Complete the error notification to help new Ada
19251         2005 users.
19252         (Analyze_Allocator): For an allocator without an initial value, where
19253         the designated type has a constrained partial view, a discriminant
19254         constraint is illegal.
19255
19256 2005-06-14  Robert Dewar  <dewar@adacore.com>
19257
19258         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
19259         do with treatment of Set_Col when positioned at end of line character.
19260
19261 2005-06-14  Robert Dewar  <dewar@adacore.com>
19262
19263         * atree.adb: (Elist*): Protect against uninitialized field
19264
19265 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
19266
19267         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
19268         for an attribute reference that returns an access type.
19269         (Apply_Discriminant_Check): No need for check if (designated) type has
19270         constrained partial view.
19271
19272         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
19273         both bound checks, rather than a conjunction.
19274         (Insert_Valid_Check): If the expression is an actual that is an indexed
19275         component of a bit-packed array, force expansion of the packed element
19276         reference, because it is specifically inhibited elsewhere.
19277
19278 2005-06-14  Vincent Celier  <celier@adacore.com>
19279
19280         * clean.adb (Clean_Project): Correctly delete executable specified as
19281         absolute path names.
19282
19283         * make.adb (Gnatmake): Allow relative executable path names with
19284         directory information even when project files are used.
19285         (Change_To_Object_Directory): Fail gracefully when unable to change
19286         current working directory to object directory of a project.
19287         (Gnatmake): Remove exception handler that could no longer be exercized
19288         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
19289         may be deallocated by Normalize_Arguments.
19290         (Collect_Arguments): Eliminate empty arguments
19291
19292         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
19293         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
19294         (Check_Project): Return False when Project is No_Project. Return True
19295         when All_Projects is True.
19296         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
19297         All_Projects to True.
19298         Minor reformatting
19299
19300 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
19301             Javier Miranda  <miranda@adacore.com>
19302             Thomas Quinot  <quinot@adacore.com>
19303             Robert Dewar  <dewar@adacore.com>
19304             Hristian Kirtchev  <kirtchev@adacore.com>
19305             Gary Dismukes  <dismukes@adacore.com>
19306
19307         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
19308         anonymous access types, to indicate that the accessibility level of
19309         the type is determined by that of the enclosing declaration.
19310         (Has_Persistent_BSS): New flag
19311         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
19312         of this attribute with functions.
19313         (Is_Primitive_Wrapper): Remove the barrier.
19314         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
19315         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
19316         New subprograms.
19317         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
19318         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
19319         New subprograms.
19320         (Is_Pure_Unit_Access_Type): New flag
19321         (Abstract_Interfaces): Complete the assertion to cover all usages.
19322         (Set_Is_Interface): Complete the assertion to cover all usages.
19323         (Is_Primitive_Wrapper): New attribute.
19324         (Is_Obsolescent): Now applies to all entities (though it is only set
19325         for subprograms currently)
19326         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
19327         which solves various problems concerning access subtypes.
19328         (Has_Persistent_BSS): New flag
19329         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
19330         Remove these subprograms because this attribute is currently
19331         not used.
19332         New entity flags:
19333         Has_Specified_Stream_Input (Flag190)
19334         Has_Specified_Stream_Output (Flag191)
19335         Has_Specified_Stream_Read (Flag192)
19336         Has_Specified_Stream_Write (Flag193)
19337         Present in all type and subtype entities. Set for a given view if the
19338         corresponding stream-oriented attribute has been defined by an
19339         attribute definition clause. When such a clause occurs, a TSS is set
19340         on the underlying full view; the flags are used to track visibility of
19341         the attribute definition clause for partial or incomplete views.
19342         (Is_Pure_Unit_Access_Type): New flag
19343         Clarify use of Is_Internal.
19344         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
19345         internally generated to wrap the invocation of tasks and protected
19346         types that implement interfaces.
19347         (Implementation_Base_Type): Documentation correction
19348         (Is_Obsolescent): Now applies to all entities (though it is only set
19349         for subprograms currently)
19350         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
19351         which solves various problems concerning access subtypes.
19352
19353         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
19354         for examined parameters. Identify unequal parameter list lengths as
19355         non-conformant parameters.
19356         (Overriding_Possible): Do not check for "All" qualifier in declaration
19357         of controlling access parameter, following prescription of AI-404.
19358         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
19359         that build the procedure body that wraps an entry invocation
19360         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
19361         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
19362         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
19363         give support to abstract interface types
19364
19365         * freeze.adb (Freeze_Entity): Issue error message if
19366         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
19367         type has no storage pool (Ada 2005) AI-366.
19368         Also modified to give support to abstract interface types
19369         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
19370         Inline_Always pragma.
19371
19372         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
19373         now begin an entry declaration.
19374         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
19375         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
19376         a subprogram declaration preceded by an overriding indicator.
19377         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
19378         declarations or subprogram declarations preceded by reserved words
19379         "not" or "overriding".
19380         (P_Entry_Declaration): Update comment. Parse and check overriding
19381         indicator, set semantic flags of entry declarations.
19382         (P_Task): New error message in case of private applied
19383         to a task type declaration.
19384         (P_Protected): New error message in case of private applied
19385         to a task type declaration.
19386
19387         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
19388         in which the full view of a type implementing an interface is a
19389         concurrent type.
19390         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
19391         Declare_Inherited_Private_Subprograms): If an explicit operation
19392         overrides an operation that is inherited in the private part, mark the
19393         explicit one as overriding, to enable overriding indicator checks.
19394         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
19395         full view to partial view, to simplify handling in back-end.
19396
19397         * sprint.adb: Print interface lists where needed: derived types,
19398         protected types, task types.
19399         output "is null" for null procedures. Part of implementation of
19400
19401         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
19402         relaxation of rules for access types in pure, shared passive partitions.
19403
19404         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
19405         first read discriminants into temporary objects, performing checks on
19406         the read values, then possibly performing discriminant checks on the
19407         actual (if it is constrained), and only finally reading the components
19408         into a constrained temporary object.
19409         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
19410         case of reading discriminants of a mutable record type to recognize
19411         the new form of the code generated by
19412         Build_Mutable_Record_Read_Procedure.
19413
19414         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
19415         of a simple call to Make_TSS_Name.
19416         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
19417         buffer, in order for Is_TSS to work correctly on local TSS names.
19418
19419         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
19420         Is_Local_Anonymous_Access to check legaliy of attributes in the
19421         context of  access components and stand-alone access objects.
19422         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
19423         treated as available for a limited private type if there is an
19424         attribute_definition_clause that applies to its full view, but not in
19425         other cases where the attribute is available for the full view
19426         (specifically, the sole fact that the full view is non-limited does not
19427         make the attribute available for the partial view).
19428         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
19429         non-overloaded intrinsic subprogram.
19430         (Check_Stream_Attribute): Reject an attribute reference for an
19431         unavailable stream attribute even if the prefix is not a limited type
19432         (case of a 'Input attribute reference for an abstract, non-classwide
19433         type)
19434         (Stream_Attribute_Available): New function to determine whether a stream
19435         attribute is available at a place.
19436         (Check_Attribute): Use Stream_Attribute_Available instead of just
19437         testing for TSS presence on the implementation base type.
19438         (Analyze_Attribute): Modified to give support to task interfaces.
19439         (Analyze_Access_Attribute): Add error check for use of an Access (or
19440         Unrestricted_Access) attribute with a subprogram marked as
19441         Inline_Always.
19442         (Analyze_Attribute, case Attribute_Address): Add error check for use of
19443         an Address attribute with a subprogram marked as Inline_Always.
19444         Update Eval_Attribute to handle new value of Width from AI-395
19445
19446         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
19447         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
19448         Factor common code across the stream-oriented attribute circcuits into
19449         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
19450         processing is functionally identical to the previous duplicated one,
19451         except that an expression that denotes an abstract subprogram will now
19452         be rejected, as mandated by AI-195 item 5.
19453
19454         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
19455         Is_Local_Anonymous_Access to apply accessibility checks to access
19456         components and stand-alone access objects.
19457         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
19458         elsewhere.
19459         (Is_Potentially_Persistent_Type): New function
19460         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
19461         a heap-object whose type has a constrained partial view, the object is
19462         unconstrained and the component may depend on a discriminant, making its
19463         renaming illegal.
19464
19465         * sinfo.ads, sinfo.adb
19466         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
19467         (Must_Override): Flag applicable to N_Entry_Declaration.
19468         Indicate that interface_list can appear in single task and single
19469         protected declarations.
19470         Replace Is_Overriding and Not_Overriding with Must_Override and
19471         Must_Not_Override, to better express intent of AI.
19472         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
19473         of an overriding indicator in a subprogram or instance.
19474         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
19475         Add the overriding indicator [[not] overriding] construct to the
19476         following grammar productions:
19477          ENTRY_DECLARATION
19478          GENERIC_INSTANTIATION
19479          SUBPROGRAM_SPECIFICATION
19480
19481         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
19482         can start with an overriding indicator.
19483
19484         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
19485         flags accordingly on subrogram specifications or instances.
19486
19487         * sem_ch8.adb:
19488         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
19489         overriding_indicator, if present, is consistent with status of spec.
19490         Improve error message for null-excluding checks on controlling access
19491         parameters.
19492         (Check_In_Previous_With_Clause): Protect the frontend against
19493         previously reported critical errors in the context clauses.
19494         Save and restore Ada_Version_Explicit, for implementation of AI-362
19495         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
19496         operation verify that controlling formals of the renamed entity that
19497         are access parameters are explicitly non-null.
19498         (Find_Expanded_Name): Improve error message when prefix is an illegal
19499         reference to a private child unit.
19500
19501         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
19502         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
19503         Rewrite to correspond to new wide character names in AI-395
19504
19505         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
19506         default procedures.
19507
19508 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
19509             Robert Dewar  <dewar@adacore.com>
19510
19511         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
19512         code, not on the bodies of predefined operations, to cut down on
19513         spurious noise.
19514
19515 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
19516
19517         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
19518         be expanded in place. The size computation does not require a
19519         subtraction, which would raise an exception on a compiler built with
19520         assertions when the upper bound is Integer'first.
19521         (Flatten): For an array of composite components, take into account the
19522         size of the components to determine whether it is safe to expand the
19523         array into a purely positional representation.
19524
19525 2005-06-14  Thomas Quinot  <quinot@adacore.com>
19526
19527         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
19528         denoting a formal parameter into account.
19529
19530 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
19531
19532         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
19533         the entry_call alternative of a conditional entry call, wrap the
19534         conditional entry call itself.
19535
19536 2005-06-14  Nicolas Setton  <setton@adacore.com>
19537             Ed Schonberg  <schonberg@adacore.com>
19538
19539         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
19540         the "simple_choice" member in a variant record, in accordance with the
19541         description in the package spec: the information output for a constant
19542         should be "S number", not "SS number".
19543         (Get_Encoded_Name): Return at once if not generating code. Avoids name
19544         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
19545
19546 2005-06-14  Thomas Quinot  <quinot@adacore.com>
19547
19548         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
19549         RACW without any primitives, do not generate the if statement for
19550         dispatching by name in the PolyORB/DSA case, as it would be malformed
19551         (it would have an Elsif_Parts list that is not No_List, but with a
19552         length of 0).
19553
19554 2005-06-14  Robert Dewar  <dewar@adacore.com>
19555
19556         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
19557
19558 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
19559
19560         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
19561         can determine whether pragma Suppress_Exception_Locations is in effect.
19562
19563         * utils2.c (build_call_raise): Do not pass the file name to the
19564         exception handler if pragma Suppress_Exception_Locations is in effect.
19565         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
19566
19567 2005-06-14  Emmanuel Briot  <briot@adacore.com>
19568
19569         * g-debpoo.adb (Deallocate, Dereference): Improve output.
19570
19571 2005-06-14  Nicolas Roche  <roche@adacore.com>
19572
19573         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
19574         to ""
19575         (Next_Level): Fix minor bug in handling of ../dir case
19576         (Read): Add dir separator to Directory name so that "" is understood as
19577          "/"
19578
19579 2005-06-14  Pascal Obry  <obry@adacore.com>
19580
19581         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
19582         releasing the items.
19583
19584 2005-06-14  Vincent Celier  <celier@adacore.com>
19585             Cyrille Comar  <comar@adacore.com>
19586
19587         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
19588         with output file descriptor and with output file name.
19589         (Dup, Dup2): Now global procedures as they are used by two subprograms
19590         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
19591
19592 2005-06-14  Thomas Quinot  <quinot@adacore.com>
19593
19594         PR ada/6717
19595         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
19596         broadcast address.
19597         (Create_Selector): Bind listening socket used to create the signalling
19598         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
19599         Set listen backlog to 1 to ensure that we detect socket theft by a
19600         failure of our own connect(2) call.
19601         (Check_Selector): Improve documentation of the selector mechanism.
19602         (Broadcast_Inet_Addr): New constant.
19603
19604 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
19605
19606         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
19607         type which turns out to be an incomplete and incorrect fix.
19608         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
19609         of the type is declared in a record (for determination of insertion
19610         type).
19611         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
19612         a private type and ensure that the primary entity is used for the type
19613         of the newly created function's V formal by taking the Etype of the
19614         view.
19615
19616 2005-06-14  Javier Miranda  <miranda@adacore.com>
19617             Jose Ruiz  <ruiz@adacore.com>
19618             Robert Dewar  <dewar@adacore.com>
19619             Ed Schonberg  <schonberg@adacore.com>
19620
19621         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
19622         that indicates if we are parsing a compilation unit found in a
19623         limited-with clause.
19624         It is use to avoid the circularity check.
19625
19626         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
19627         we are parsing a compilation unit found in a limited-with clause. This
19628         is use to avoid the circularity check.
19629
19630         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
19631         unit as a consequence of parsing a limited-with clause. This is used
19632         to avoid the circularity check.
19633
19634         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
19635         (Analyze_Context): Limited-with clauses are now allowed
19636         in more compilation units.
19637         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
19638         againts previously reported critical errors in context clauses
19639         (Install_Limited_Withed_Unit): Code cleanup plus static detection
19640         of two further errors: renamed subprograms and renamed packages
19641         are not allowed in limited with clauses.
19642         (Install_Siblings): Do not install private_with_clauses on the package
19643         declaration for a non-private child unit.
19644         (Re_Install_Parents): When a parent of the subunit is reinstalled,
19645         reset visibility of child units properly.
19646         (Install_Withed_Unit): When a child unit appears in a with_clause of its
19647         parent, it is immediately visible.
19648
19649 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
19650             Emmanuel Briot  <briot@adacore.com>
19651
19652         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
19653         declared within an inlined body as referenced, to prevent spurious
19654         warnings.
19655         (Output_One_Ref): If an entity renames an array component, indicate in
19656         the ALI file that this aliases (renames) the array. Capture as well
19657         function renamings that rename predefined operations.
19658         Add information about generic parent for package and subprogram
19659         instances.
19660         (Get_Type_Reference): For a subtype that is the renaming of an actual in
19661         an instantiation, use the first_subtype to ensure that we don't generate
19662         cross-reference information for internal types.
19663         For objects and parameters of a generic private type, retain the '*'
19664         indicator to distinguish such an entity from its type.
19665
19666         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
19667         to store information about instantiated entities.
19668
19669         * ali.adb (Scan_ALI): Add support for parsing the reference to the
19670         generic parent
19671
19672         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
19673         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
19674         information.
19675
19676 2005-06-10  Doug Rupp  <rupp@adacore.com>
19677             Arnaud Charlet  <charlet@adacore.com>
19678             Olivier Hainque  <hainque@adacore.com>
19679             Jose Ruiz  <ruiz@adacore.com>
19680
19681         * Make-lang.in: Add initialize.o when needed.
19682         Remove obsolete references to RT_FLAGS.
19683         Add missing dependencies for sdefault.o
19684
19685         * initialize.c: New file.
19686
19687         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
19688         [VMS] cond_signal_table: Fix problem in declaration.
19689         [VMS] __gnat_error_handler: rewrite.
19690         Move all __gnat_initialize() routines to initialize.c
19691         Specialize the former "hpux" section to "hppa hpux", as this is what the
19692         section really is here for and we now have other hpux ports that need
19693         different contents.
19694         (__gnat_adjust_context_for_raise) i386-linux: First version of this
19695         function for this target. Adjust PC by one in the machine context. This
19696         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
19697         it is more reliable to do that in the signal handler itself.
19698         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
19699         flags, so that the handler is passed the context structure to adjust
19700         prior to the raise.
19701         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
19702         SA_SIGINFO sigaction should look like. Call
19703         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
19704         Machine_State_Operations stuff.
19705         Add conditional code so that the x86_64 is also supported.
19706
19707 2005-06-14  Pascal Obry  <obry@adacore.com>
19708
19709         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
19710         the library name.
19711
19712 2005-06-14  Robert Dewar  <dewar@adacore.com>
19713
19714         * opt.ads, opt.adb: New flags for persistent_bss mode
19715         Add Ada_Version_Explicit, for implementation of AI-362
19716         Add Assertions_Enabled_Config and associated handling
19717         Needed since setting can be changed with Assertion_Policy pragma
19718         Add new flag Warn_On_Ada_2005_Compatibility
19719
19720         * switch-c.adb: Recognize -gnatwy/Y
19721         Set Ada_Version_Explicit, for implementation of AI-362
19722         The -gnatg switch now includes -gnatyu
19723
19724         * usage.adb: Add -gnatwy/Y
19725         Remove wrong asterisk on -gnatwX line
19726         Add line for -gnatyu switch
19727
19728 2005-06-14  Vincent Celier  <celier@adacore.com>
19729
19730         * osint.adb (Add_Default_Search_Dirs): Put source and object
19731         directories of project files before directories coming from
19732         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
19733
19734 2005-06-14  Robert Dewar  <dewar@adacore.com>
19735
19736         PR ada/15613
19737         * par-ch2.adb (Scan_Pragma_Argument): New procedure
19738         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
19739
19740 2005-06-14  Vincent Celier  <celier@adacore.com>
19741
19742         * prep.adb (Preprocess): Ignore error when scanning the first token of
19743         a line.
19744
19745 2005-06-14  Vincent Celier  <celier@adacore.com>
19746
19747         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
19748         (Check_Stand_Alone_Library): If the specified reference symbol file does
19749         not exist, only issue a warning when the symbol policy is not
19750         Controlled. And, when symbol policy is Compliant, set the symbol
19751         policy to Autonomous.
19752
19753 2005-06-14  Vincent Celier  <celier@adacore.com>
19754
19755         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
19756         when the project file in a with clause is not the last one, that is the
19757         project file name is followed by a comma.
19758         * prj-pp.adb: (First_With_In_List): New Boolean global variable
19759         (Print): Issue list of project files separated by commas in with clauses
19760         according to the values returned by Is_Not_Last_In_List.
19761         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
19762         (Set_Is_Not_Last_In_List): New procedure
19763
19764 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
19765
19766         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
19767
19768 2005-06-14  Robert Dewar  <dewar@adacore.com>
19769
19770         * scng.adb: Add call to new Check_EOF routine
19771         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
19772         Add some comments regarding wide character handling
19773
19774         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
19775
19776         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
19777
19778         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
19779         characters are now considered graphic characters and hence yield false
19780         in this call.
19781
19782         * nmake.adt: Modify header so that xnmake does not generate output
19783         files with multiple blank lines.
19784
19785         * treeprs.adt: Remove a blank line so that output from xtreeprs does
19786         not have an extra blank line
19787
19788 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
19789
19790         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
19791         expression when the component type is an anonymous access type to
19792         ensure that appropriate accessibility checks are done.
19793
19794         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
19795         expression of an assignment when the target object is of an anonymous
19796         access type. This ensures that required accessibility checks are done.
19797         (One_Bound): Move the check for type Universal_Integer to
19798         Process_Bounds.
19799         (Process_Bounds): Check whether the type of the preanalyzed range is
19800         Universal_Integer, and in that case set Typ to Integer_Type prior
19801         to setting the type of the original range and the calls to One_Bound.
19802
19803 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
19804
19805         * sem_case.adb (Expand_Others_Choice): Improve warning.
19806
19807 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
19808
19809         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
19810         constraint of full view if present, when other type is discriminated.
19811         (Eval_Relational_Op): Recognize tests of pointer values against Null,
19812         when the pointer is known to be non-null, and emit appropriate warning.
19813
19814 2005-06-14  Robert Dewar  <dewar@adacore.com>
19815             Ed Schonberg  <schonberg@adacore.com>
19816
19817         PR ada/10671
19818         * sem_prag.adb: Implement pragma Persistent_BSS
19819         Remove obsolete pragma Persistent_Data, Persistent_Object
19820         Set Ada_Version_Explicit, for implementation of AI-362
19821         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
19822         Add processing for pragma Pure_05 and Preelaborate_05
19823         Add processing for Assertion_Policy pragma
19824         Add pragma identifiers for Assert
19825         (Analyze_Pragma, case Assert): Check number of arguments
19826         (Process_Inline): Additional guard against an illegal program, where the
19827         argument of the pragma is undefined, and warnings on redundant
19828         constructs are enabled.
19829         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
19830         Ada_05 to this pragma, specifying that the pragma is only active in
19831         Ada_05 mode.
19832         (Check_Arg_Order): New procedure
19833         Add appropriate calls to this procedure throughout
19834         Also throughout, check entity name before doing any other checks
19835
19836         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
19837         Remove obsolete pragma Persistent_Data, Persistent_Object
19838         Add entries for pragma Pure_05 and Preelaborate_05
19839         Add entries for Assertion_Policy pragma and associated names
19840         Add some names for pragma argument processing
19841
19842         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
19843
19844 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
19845
19846         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
19847         appears within a negation (either from source or as a rewriting of
19848         inequality) adjust text of warning accordingly.
19849
19850 2005-06-14  Thomas Quinot  <quinot@adacore.com>
19851
19852         * s-strxdr.adb: Follow AI95-00132
19853
19854 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
19855
19856         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
19857
19858 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
19859             Jose Ruiz  <ruiz@adacore.com>
19860
19861         * s-tposen.adb, s-tpobop.adb
19862         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
19863         the exception id.
19864         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
19865         there is no violation of the Max_Entry_Queue_Length restriction (if it
19866         has been set); Program_Error is raised otherwise.
19867         (Requeue_Call): Before requeuing the task on the target entry queue we
19868         check that there is no violation of the Max_Entry_Queue_Length
19869         restriction (if it has been set); Program_Error is raised otherwise.
19870
19871 2005-06-14  Robert Dewar  <dewar@adacore.com>
19872
19873         * styleg.adb: Fix several remaining problems in -gnatyu switch
19874         Blank line count not reset at start
19875         Scanning outside source buffer in some cases
19876         Confusing message for blanks at end of file
19877         Non-empty blank lines not recognized
19878
19879         * nmake.adt: Modify header so that xnmake does not generate output
19880         files with multiple blank lines.
19881
19882         * treeprs.adt: Remove a blank line so that output from xtreeprs does
19883         not have an extra blank line
19884
19885 2005-06-14  Sergey Rybin  <rybin@adacore.com>
19886
19887         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
19888
19889 2005-06-14  Doug Rupp  <rupp@adacore.com>
19890             Vincent Celier  <celier@adacore.com>
19891
19892         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
19893         Update copyright.
19894
19895         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
19896         Remove "Library" command.
19897         Change keyword for style check -gnatyd from NOCRLF to
19898         DOS_LINE_ENDINGS.
19899         Remove useless second style check keyword NONE
19900         Remove help documentation for inexistent style check keyword
19901         RM_COLUMN_LAYOUT.
19902         Add help documentation for style check keywords DOS_LINE_ENDINGS,
19903         UNNECESSARY_BLANK_LINES and XTRA_PARENS
19904         Add UNNECESSARY_BLANK_LINES for -gnatyu
19905         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
19906
19907         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
19908
19909 2005-06-14  Vincent Celier  <celier@adacore.com>
19910
19911         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
19912         gprmake was invoked with -d.
19913         (Compile_Sources): If -d was used, output the "completed ..." message
19914         for each compilation.
19915         (Scan_Arg): Recognize new switch -d
19916         When -c and at least one main is specified, set
19917         Unique_Compile to True to guarantee that no other sources will be
19918         compiled.
19919
19920 2005-06-14  Matthew Heaney  <heaney@adacore.com>
19921
19922         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
19923         * a-swuwha.ads, a-swuwha.adb: New files
19924
19925         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
19926         * a-szuzha.ads, a-szuzha.adb: New files.
19927
19928         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
19929         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
19930         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
19931         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
19932         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
19933         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
19934         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
19935         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
19936         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
19937         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
19938         Ada 2005 RM.
19939
19940 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
19941             Olivier Hainque  <hainque@adacore.com>
19942             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19943             Pascal Obry  <obry@adacore.com>
19944
19945         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
19946
19947         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
19948         making a temporary around a procedure call because of non-addressable
19949         actual parameter.
19950         (process_freeze_entity): If entity is a private type, capture size
19951         information that may have been computed for the full view.
19952         (tree_transform, case N_Allocator): If have initializing expression,
19953         check type for Has_Constrained_Partial_View and pass that to
19954         build_allocator.
19955         (tree_transform, case N_Return_Statement): Pass extra arg to
19956         build_allocator.
19957
19958         * decl.c (annotate_value): Remove early return if -gnatR is not
19959         specified.
19960         (gnat_to_gnu_field): Don't make a packable type for a component clause
19961         if the position is byte aligned, the field is aliased, and the clause
19962         size isn't a multiple of the packable alignment. It serves no useful
19963         purpose packing-wise and would be rejected later on.
19964         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
19965
19966         PR ada/20515
19967         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
19968         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
19969         instead.
19970         (create_concat_name): Idem.
19971
19972 2005-06-10  Robert Dewar  <dewar@adacore.com>
19973             Eric Botcazou  <ebotcazou@adacore.com>
19974             Ben Brosgol  <brosgol@adacore.com>
19975             Cyrille Comar  <comar@adacore.com>
19976             Sergey Rybin  <rybin@adacore.com>
19977             Pascal Obry  <obry@adacore.com>
19978
19979         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
19980         Document second argument (Ada_05) of pragma Obsolescent
19981         Add note that call to subprogram marked with pragma Obsolescent
19982         is now considered to be a violation of program Restrictions
19983         (No_Obsolescent_Features).
19984         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
19985         that only machine-dependent attributes are supported.
19986
19987         * gnat_ugn.texi:
19988         Commented out menu lines and empty section for gnatclean examples
19989         Document -gnatwy/Y
19990         Fix some over long lines
19991         Clarify and enhance documentation of ADA_PROJECT_PATH.
19992         Rework section 2.11.2(3) about linking with a non-GNU compiler.
19993         Mention new switch -fcallgraph-info.
19994         Mention new switch -fstack-usage.
19995         For gnatpp, replace '-notab' with '-N' and add this option to Index
19996         Corrected VMS example.
19997         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
19998         Minor reformatting
19999         Add documentation for -gnatyu switch (unnecessary blank lines)
20000         Document new switch -U for GNAT PRETTY and GNAT METRIC
20001         Add note about Stdcall being handled as C convention on non Windows OS.
20002         Remove some junk typo in description of gnatbind -S switch
20003         Remove reference to Extensions_Allowed pragma
20004         Document the new order of the directories to be searched (source and
20005         object directories of project files before directories in ADA_*_PATH
20006         environment variables.
20007
20008         * g-trasym.ads: Document that IRIX is supported
20009
20010 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
20011
20012         * Makefile.in: Add initialize.o when needed.
20013         Adapt to new VMS package body Symbols and subunits
20014         No specialized version of a-sytaco is needed for VxWorks.
20015
20016         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
20017         * a-zchara.ads, a-widcha.ads: New files.
20018
20019         * system-hpux-ia64.ads: New file.
20020
20021         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
20022         is imported from the VxWorks kernel.
20023
20024 2005-06-14  Robert Dewar  <dewar@adacore.com>
20025
20026         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
20027         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
20028         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
20029         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
20030         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
20031         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
20032         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
20033         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
20034         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
20035         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
20036         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
20037         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
20038
20039 2005-06-14  Thomas Quinot  <quinot@adacore.com>
20040
20041         * xeinfo.adb: Fix typo in comment
20042
20043 2005-06-14  Javier Miranda  <miranda@adacore.com>
20044
20045         * repinfo.ads: Fix typo in comment
20046
20047 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
20048
20049         * s-finimp.adb (Parent_Tag): Delete this imported function (function
20050         Parent_Tag is now in the visible part of Ada.Tags).
20051         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
20052         using imported function.
20053
20054 2005-06-14  Bernard Banner  <banner@adacore.com>
20055
20056         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
20057         also apply for handling support for VxSim 653.
20058
20059 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
20060
20061         * xsnames.adb: Add automatic generation of snames.h.
20062
20063 2005-06-14  Thomas Quinot  <quinot@adacore.com>
20064
20065         * gen-soccon.c: Add IP_MULTICAST_IF constant
20066         Minor reformatting and adjustments to prevent warnings.
20067
20068 2005-06-14  Pascal Obry  <obry@adacore.com>
20069
20070         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
20071
20072 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
20073
20074         * trans.c (gnat_gimplify_expr): Call
20075         recompute_tree_invarant_for_addr_expr when we change
20076         the operand of the ADDR_EXPR.
20077
20078 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20079
20080         * misc.c: Don't include errors.h.
20081
20082 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20083
20084         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
20085
20086 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
20087
20088         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
20089         comment typos.
20090         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
20091
20092 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
20093
20094         PR ada/20270
20095         * Makefile.in: Make TGT_LIB behave correctly.
20096
20097 2005-04-23  DJ Delorie  <dj@redhat.com>
20098
20099         * misc.c: Adjust warning() callers.
20100
20101 2005-04-16  Laurent Guerby  <laurent@guerby.net>
20102
20103         PR ada/18847
20104         * a-nudira.adb (Value): Check for valid string.
20105         * a-nuflra.adb (Value): Likewise.
20106
20107 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
20108
20109         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
20110
20111 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
20112
20113         * adaint.c, init.c, tracebak.c: Fix comment typos.
20114         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
20115
20116 2005-04-07  Laurent Guerby  <laurent@guerby.net>
20117             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20118
20119         * Makefile.in: Add make ifeq define for hppa linux tasking support.
20120         * system-hpux.ads: Define Signed_Zeros to be True.
20121         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
20122
20123 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
20124
20125         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
20126         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
20127         typos.
20128
20129 2005-03-30  Tom Tromey  <tromey@redhat.com>
20130
20131         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
20132
20133 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
20134
20135         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
20136
20137 2005-03-29  Robert Dewar  <dewar@adacore.com>
20138
20139         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
20140         fixed-point expression has value that is not a multiple of the Small
20141         value.
20142
20143         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
20144
20145         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
20146         nanoseconds.
20147
20148         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
20149
20150 2005-03-29  Vincent Celier  <celier@adacore.com>
20151
20152         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
20153         (Build_Dynamic_Library.Version_String): Return the empty string when
20154         Lib_Version is empty or when the symbol policy is not Autonomous.
20155
20156         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
20157         a symbol is not in the reference symbol file, increase the Major ID
20158         and set the Minor ID to 0.
20159         Use gsmatch=lequal instead of gsmatch=equal
20160
20161 2005-03-29  Doug Rupp  <rupp@adacore.com>
20162
20163         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
20164         name and translate.
20165
20166 2005-03-29  Javier Miranda  <miranda@adacore.com>
20167
20168         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
20169         (Inherit_DT): The first formal has been redefined as a Tag.
20170         This allows us the removal of the subprogram Get_TSD.
20171         (TSD): Replace the call to Get_TSD by the actual code.
20172
20173         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
20174         (Make_DT): Upgrade the call to Inherit_TSD according to the
20175         new interface: the first formal is now a Tag.
20176
20177         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
20178         redefined as a Tag.
20179         This change allows us to remove the subprogram Get_TSD.
20180         (CPP_Get_TSD): Subprogram removed.
20181         (TSD): Replace the call to CPP_Get_TSD by the actual code.
20182
20183         * rtsfind.ads: Remove support to call the run-time
20184         subprogram Get_TSD
20185
20186 2005-03-29  Robert Dewar  <dewar@adacore.com>
20187
20188         * errutil.adb, errout.adb:
20189         Minor comment updates on Line_Terminator references
20190
20191         * par-ch10.adb: Add ??? comment about line terminator
20192
20193         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
20194         (check dos line terminator).
20195         (Check_Line_Max_Length): New procedure, split off from the existing
20196         Check_Line_Terminator routine. Separating this out allows -gnatyf to
20197         be properly recognized.
20198
20199         * styleg.adb: Add ??? comment for line terminator reference
20200
20201         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
20202         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
20203
20204         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
20205         (check dos line terminator).
20206         (Check_Line_Max_Length): New procedure, split off from the existing
20207         Check_Line_Terminator routine. Separating this out allows -gnatyf to
20208         be properly recognized.
20209
20210         * stylesw.ads, stylesw.adb:
20211         Add handling for new -gnatyd switch (check dos line terminator)
20212
20213         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
20214         Recognize -gnatwb/-gnatwB switches
20215         Include Warn_On_Bad_Fixed_Value for -gnatg
20216
20217         * usage.adb:
20218         Add line for new -gnatyd switch (check dos line terminator)
20219
20220         * usage.adb: Add lines for -gnatwb/-gnatwB
20221
20222         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
20223
20224         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
20225
20226         * gnat_ugn.texi: Fix overlong lines
20227         Document new -gnatyd switch
20228         Document new -gnatwb/-gnatwB switches
20229
20230 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
20231
20232         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
20233         order to retrieve the component list of the type, before examining
20234         individual components.
20235
20236         * sem_type.adb (Covers): Types are compatible if one is the base type
20237         of the other, even though their base types might differ when private
20238         views are involved.
20239
20240 2005-03-29  Thomas Quinot  <quinot@adacore.com>
20241
20242         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
20243         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
20244         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
20245         analyzed if expansion is disabled (which could otherwise cause spurious
20246         error messages if expansion has been disabled due to previous
20247         (unrelated) errors).
20248
20249         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
20250         is disabled, the entity denoted by the argument is the access type
20251         itself, not an underlying record type, so there is no need to go back
20252         to the Corresponding_Remote_Type.
20253
20254 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
20255             Robert Dewar  <dewar@adacore.com>
20256
20257         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
20258         expand a call to an instance of
20259         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
20260         Constructor actual of the instance. A class-wide membership
20261         check is also generated, to ensure that the tag passed to the instance
20262         denotes a type in the class.
20263         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
20264         of Name_Generic_Dispatching_Constructor.
20265
20266         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
20267         05 unit for AI-260-02).
20268
20269         * a-tgdico.ads: New file.
20270
20271         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
20272         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
20273
20274         * snames.ads, snames.adb (Preset_Names): Add entry for
20275         Generic_Dispatching_Constructor.
20276
20277         PR ada/20300
20278         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
20279         character type cases.
20280         (Analyze_Subprogram_Renaming): Add special handling for
20281         the case of renaming of stream attributes when the renaming denotes a
20282         generic formal subprogram association for an abstract formal subprogram.
20283         Check that the attribute is a primitive stream attribute (and not
20284         a class-wide stream attribute) and then rewrite the attribute name
20285         as the name of the appropriate compiler-generated stream primitive.
20286
20287 2005-03-29  Robert Dewar  <dewar@adacore.com>
20288
20289         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
20290         recursive calls.
20291         (Is_Possibly_Unaligned_Object): Correct typo that
20292         resulted in inaccurate result for unaligned scalars within records.
20293
20294 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
20295
20296         * freeze.adb (Freeze_Record_Type): If the type of the component is an
20297         itype whose parent is controlled and not yet frozen, do not create a
20298         freeze node for the itype if expansion is disabled.
20299
20300 2005-03-29  Vincent Celier  <celier@adacore.com>
20301
20302         * make.adb (Gnatmake): Don't fail if the main project file is declared
20303         as having no Ada sources. Do not display message "no sources to
20304         compile" in quiet output.
20305
20306 2005-03-29  Doug Rupp  <rupp@adacore.com>
20307
20308         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
20309         extra tools.
20310
20311 2005-03-29  Robert Dewar  <dewar@adacore.com>
20312
20313         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
20314         child.
20315
20316 2005-03-29  Robert Dewar  <dewar@adacore.com>
20317
20318         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
20319         missing TYPE Improve the error message generated when compiling a
20320         limited interface in Ada83 or Ada95 mode.
20321
20322 2005-03-29  Robert Dewar  <dewar@adacore.com>
20323
20324         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
20325         rather than proceed ahead using a junk attribute name.
20326
20327 2005-03-29  Vincent Celier  <celier@adacore.com>
20328
20329         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
20330
20331         * prj-part.adb (Parse_Single_Project): Set the location of a project
20332         on its defining identifier, rather than on the reserved word "project".
20333
20334         * prj-proc.adb (Expression): Adapt to the fact that default of external
20335         references may be string expressions, not always literal strings.
20336         (Recursive_Process): Set Display_Name equal to Name
20337         when Location is No_Location, that is when there is no actual file.
20338         Get the Display_Name of the project from the source, when it is not a
20339         virtual project.
20340         (Process): Use the Display_Name in error messages
20341
20342         * prj-strt.adb (External_Reference): Allow default to be string
20343         expressions, not only literal strings.
20344
20345 2005-03-29  Vincent Celier  <celier@adacore.com>
20346
20347         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
20348         file and the reference symbol file to be the same file.
20349
20350 2005-03-29  Thomas Quinot  <quinot@adacore.com>
20351
20352         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
20353         forbid conversion of a local access-to-subprogram type to a remote one.
20354
20355         * sem_util.adb (Wrong_Type): For a record type that is the expanded
20356         equivalent type for a remote access-to-subprogram type, go back to the
20357         original RAS entity when displaying an error message, so the casing is
20358         the original source casing.
20359
20360 2005-03-29  Robert Dewar  <dewar@adacore.com>
20361
20362         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
20363         on param update.
20364
20365 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
20366
20367         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
20368         subtype if code is being pre-analyzed, to prevent un-expanded
20369         references to protected formals, among others.
20370         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
20371         interpretation that can be a call, include the result of the call as a
20372         possible interpretation of the dereference.
20373
20374         * sem_ch5.adb (Process_Bounds): Determine type of range by
20375         pre-analyzing a copy of the original range, and then analyze the range
20376         with the expected type.
20377
20378         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
20379         with an overloaded prefix where not all interpretations yield an
20380         access to subprogram, do not rewrite node as a call.
20381         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
20382         the node as a call once the context identifies the interpretation of
20383         the prefix whose call yields the context type.
20384         (Valid_Conversion): For the case of a conversion between
20385         local access-to-subprogram types, check subtype conformance using
20386         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
20387         detailed error message.
20388
20389 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
20390
20391         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
20392         indicator, indicate that the formal can never be null.
20393         (Process_Formals): If a formal has a non_null indicator, insert the
20394         resulting subtype immediately before the enclosing subprogram decl,
20395         and not at the beginning of the corresponding declarative part, to
20396         prevent access before elaboration (Ada2005).
20397
20398 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20399
20400         PR ada/19956
20401         * utils.c (finish_record_type): Use variable_size when setting sizes.
20402
20403 2005-03-29  Robert Dewar  <dewar@adacore.com>
20404
20405         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
20406         guarantee Unix style line terminators for the output files, even when
20407         running on windows.
20408
20409 2005-03-29  Robert Dewar  <dewar@adacore.com>
20410
20411         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
20412         buffer if an exception is raised.
20413
20414 2005-03-29  Ed Falis  <falis@adacore.com>
20415
20416         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
20417         VxWorks 653 1.4
20418
20419 2005-03-29  Robert Dewar  <dewar@adacore.com>
20420
20421         * sem_util.ads: Minor reformatting
20422         * gnat_rm.texi: Minor editing.
20423
20424 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
20425
20426         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
20427         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
20428
20429 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
20430
20431         * adaint.c (__gnat_portable_spawn): Adjust cast.
20432
20433 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
20434
20435         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
20436
20437 2005-03-17  Pascal Obry  <obry@adacore.com>
20438
20439         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
20440         used.
20441
20442         * expect.c (__gnat_waitpid): Moved here from adaint.c.
20443         Reimplement under Win32 using Win32 API.
20444
20445         (__gnat_kill) [Win32]: Properly close the process handle before leaving
20446         this routine.
20447
20448 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
20449
20450         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
20451         (DECL_RENAMED_OBJECT): New accessor macro.
20452         (SET_DECL_RENAMED_OBJECT): New setter macro.
20453
20454         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
20455         object in all cases.  Attach the renamed object to the VAR_DECL.
20456         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
20457         field is not prescribed.
20458
20459         * misc.c (gnat_handle_option): Handle -gnatO separately.
20460         (gnat_print_decl) <VAR_DECL>: New case.
20461         Print the DECL_RENAMED_OBJECT node.
20462
20463         * lang.opt:  Declare separate -gnatO option.
20464
20465         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
20466         pointer, replace it with the renamed object.
20467         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
20468         pointer type if the source is not a fat pointer type whose underlying
20469         array has the same non-zero alias set as that of the destination array.
20470
20471 2005-03-17  Javier Miranda  <miranda@adacore.com>
20472
20473         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
20474         (Get_Inheritance_Depth): Removed.
20475         (Set_Inheritance_Depth): Removed.
20476
20477         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
20478         subprogram Get_Expanded_Name because it is not referenced by the
20479         frontend.
20480
20481         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
20482         (CPP_Get_Inheritance_Depth): Removed.
20483         (CPP_Set_Inheritance_Depth): Removed.
20484
20485         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
20486
20487 2005-03-17  Robert Dewar  <dewar@adacore.com>
20488
20489         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
20490         3, since we now expect GCC 3 to do all the work.
20491
20492 2005-03-17  Javier Miranda  <miranda@adacore.com>
20493
20494         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
20495         of one barrier to avoid wrong usage of this attribute.
20496
20497         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
20498         First_Private_Entity.
20499
20500         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
20501         the subprogram against wrong usage.
20502         Adapt the code to traverse the entities in the
20503         scope of a record_type because in addition to its usage regarding
20504         packages, this subprogram is also called by Expand_N_Freeze_Entity
20505         to install the visible declarations of the enclosing scope of a
20506         record_type_with_private to establish the proper visibility before
20507         freezing the entity and related subprograms.
20508
20509 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
20510
20511         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
20512         entry formals.
20513
20514 2005-03-17  Thomas Quinot  <quinot@adacore.com>
20515
20516         * exp_ch3.adb (Check_Attr): New subprogram.
20517         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
20518         into a new Check_Attr subprogram, in order to provide a more
20519         explanatory error message (including the name of the missing attribute).
20520         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
20521         subprogram determines whether a default implementation exists for a
20522         given stream attribute.
20523         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
20524         Determine whether to generate a default implementation for each stream
20525         attribute separately, as this depends on the specific attribute.
20526
20527         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
20528         limited extension where a stream attribute is missing for a limited
20529         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
20530         generate a bogus reference to the missing attribute to prevent
20531         cascaded errors. Instead, generate a null statement.
20532
20533         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
20534         available for a limited type if it has been specified for an ancestor
20535         of the type.
20536
20537 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
20538
20539         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
20540         entity is an operator.
20541
20542 2005-03-17  Thomas Quinot  <quinot@adacore.com>
20543
20544         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
20545         spec, to make this predicate available to other units.
20546
20547         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
20548         reimplementing it.
20549
20550         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
20551         when no distribution runtime library is available.
20552
20553         * sem_res.adb, sem_dist.adb: Disable expansion of remote
20554         access-to-subprogram types when no distribution runtime library is
20555         available.
20556         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
20557         predicate available to other units.
20558
20559         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
20560         spec, to make this predicate available to other units.
20561
20562 2005-03-17  Vincent Celier  <celier@adacore.com>
20563
20564         * make.adb (Insert_Project_Sources): Make sure the Q is always
20565         initialized.
20566
20567         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
20568         the default for the tree, not the global default naming.
20569
20570         * prj-proc.adb (Recursive_Process): No need to put the default naming
20571         in the project data, it's already there.
20572
20573 2005-03-17  Doug Rupp  <rupp@adacore.com>
20574
20575         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
20576
20577         * 5xcrtl.ads: Renamed to...
20578         * s-crtl-vms64.ads: ...this new file
20579
20580 2005-03-17  Robert Dewar  <dewar@adacore.com>
20581
20582         PR ada/19519
20583         * namet.adb (Copy_One_Character): Set proper wide character encoding
20584         for upper half character if we have upper half encoding.
20585
20586 2005-03-17  Robert Dewar  <dewar@adacore.com>
20587
20588         * par.adb (Par): Improved msg for attempt to recompile predefined unit
20589
20590 2005-03-17  Thomas Quinot  <quinot@adacore.com>
20591
20592         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
20593         tagged limited type, the TSS is a newly built renaming declaration:
20594         insert it using Set_TSS, not Copy_TSS.
20595
20596 2005-03-17  Javier Miranda  <miranda@adacore.com>
20597
20598         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
20599         Try_Object_Operation): Analyze the object that is accessible
20600         through the prefix of the subprogram call before we apply
20601         the transformation of the object-operation notation.
20602
20603 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
20604
20605         * s-taprob.adb (Initialize_Protection): Initialize the protected
20606         object's owner to Null_Task.
20607         (Lock): If pragma Detect_Blocking is in effect and the caller of this
20608         procedure is already the protected object's owner then Program_Error
20609         is raised. In addition the protected object's owner is updated.
20610         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
20611         of this procedure is already the protected object's owner then
20612         Program_Error is raised.
20613         In addition the protected object's owner is updated.
20614         (Unlock): Remove the ownership of the protected object.
20615
20616         * s-taprob.ads (Protection): Add the field Owner, used to store the
20617         protected object's owner.
20618         This component is needed for detecting one type of potentially blocking
20619         operations (external calls on a protected subprogram with the same
20620         target object as that of the protected action). Document the rest of
20621         the components.
20622
20623         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
20624         Initialize the protected object's owner to Null_Task.
20625         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
20626         caller of this procedure is already the protected object's owner then
20627         Program_Error is raised.
20628         Do not raise Program_Error when this procedure is called from a
20629         protected action.
20630         (Unlock_Entries): Remove the ownership of the protected object.
20631         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
20632         of this procedure is already the protected object's owner then
20633         Program_Error is raised.
20634         Do not raise Program_Error when this procedure is called from
20635         a protected action.
20636
20637         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
20638         used to store the protected object's owner.
20639
20640         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
20641         effect and this procedure (a potentially blocking operation) is called
20642         from whithin a protected action, Program_Error is raised.
20643         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
20644         and this procedure (a potentially blocking operation) is called from
20645         whithin a protected action, Program_Error is raised.
20646
20647 2005-03-17  Vincent Celier  <celier@adacore.com>
20648             Nicolas Setton  <setton@adacore.com>
20649
20650         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
20651         switch, not supported by the linker on Darwin. Add '_' before
20652         <library>init, as this character is added unconditionally by the
20653         compiler.
20654         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
20655         correct one ".dylib". This fixes detection of the archive files when
20656         building library projects.
20657
20658 2005-03-17  Vincent Celier  <celier@adacore.com>
20659
20660         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
20661         -gnat83, -gnat95 and -gnat05.
20662
20663 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
20664
20665         * gnat_ugn.texi: Document gnatmem restriction
20666
20667 2005-03-17  Thomas Quinot  <quinot@adacore.com>
20668
20669         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
20670         cleanup
20671
20672 2005-03-17  Robert Dewar  <dewar@adacore.com>
20673
20674         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
20675         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
20676         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
20677
20678         * casing.adb: Comment improvements
20679
20680 2005-03-17  Pascal Obry  <obry@adacore.com>
20681
20682         * g-expect.adb: Minor reformatting.
20683
20684 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
20685
20686         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
20687         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
20688         to dependencies.
20689
20690 2005-03-15  Vincent Celier  <celier@adacore.com>
20691
20692         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
20693         Add new parameter In_Tree to specify the project tree: needed
20694         by the project manager. Adapt to changes in project manager
20695         using new parameter In_Tree.
20696
20697 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
20698
20699         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
20700         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
20701         ada/bldtools to avoid make -jN failures.
20702
20703 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
20704
20705         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
20706         to NULL_TREE on entry.
20707
20708 2005-03-15  Robert Dewar  <dewar@adacore.com>
20709
20710         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
20711         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
20712         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20713         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
20714         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
20715         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
20716         system-interix.ads, system-solaris-sparc.ads,
20717         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
20718         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
20719         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20720         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
20721         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
20722         Compiler_System_Version to be False.
20723
20724         * opt.ads: Add new flag Opt.Address_Is_Private
20725
20726         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
20727         Add new parameter Compiler_System_Version to avoid checking for
20728         completeness of parameters when compiler is compiling itself.
20729         Allows old versions of GNAT to be compiled with new compiler.
20730
20731 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
20732
20733         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
20734         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
20735         calling thread.
20736         (Stack_Base_Available): New flag.
20737         (Get_Page_Size): New overloaded functions imported from C.
20738         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
20739         PROT_ON, PROT_OFF): New constants.
20740         (mprotect): New function imported from C.
20741         (pthread_teb_t): New record type.
20742
20743         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
20744         (Create_Task): Account for the Yellow Zone and the guard page.
20745
20746 2005-03-15  Vincent Celier  <celier@adacore.com>
20747
20748         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20749         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20750         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
20751         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
20752         Library_File_Name_For): Add new parameter In_Tree
20753         to specify the project tree: needed by the project manager.
20754         Adapt to changes in project manager using new parameter In_Tree.
20755         Remove local imports, use functions in System.CRTL.
20756
20757         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
20758         to use the project manager.
20759
20760         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
20761         In_Tree to designate the project tree. Adapt to changes in the project
20762         manager, using In_Tree.
20763
20764         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
20765         Copy_Interface_Sources): Add new parameter In_Tree to specify the
20766         project tree: needed by the project manager.
20767         (Build_Library): Check that Arg'Length >= 6 before checking if it
20768         contains "--RTS=...".
20769
20770         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
20771         Library_File_Name_For): Add new parameter In_Tree to specify the
20772         project tree: needed by the project manager.
20773
20774         * prj.ads, prj.adb: Major modifications to allow several project trees
20775         in memory at the same time.
20776         Change tables to dynamic tables and hash tables to dynamic hash
20777         tables. Move tables and hash tables from Prj.Com (in the visible part)
20778         and Prj.Env (in the private part). Move some constants from the visible
20779         part to the private part. Make other constants deferred.
20780         (Project_Empty): Make it a variable, not a function
20781         (Empty_Project): Add parameter Tree. Returns the data with the default
20782         naming data of the project tree Tree.
20783         (Initialize): After updating Std_Naming_Data, copy its value to the
20784         component Naming of Project Empty.
20785         (Register_Default_Naming_Scheme): Use and update the default naming
20786         component of the project tree, instead of the global variable
20787         Std_Naming_Data.
20788         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
20789         Tree is not defaulted, return the default naming data of the Tree.
20790         (Initial_Buffer_Size): Constant moved from private part
20791         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
20792         variables initialized in procedure Initialize.
20793         (Add_To_Buffer): Add two in out parameters to replace global variables
20794         Buffer and Buffer_Last.
20795         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
20796         functions.
20797         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
20798         hash tables.
20799         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
20800         for the project tree.
20801         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
20802         constant at the beginning of the package spec, so that they cane be used
20803         in subprograms before their full declarations.
20804         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
20805         (Empty_Project): Add parameter of type Project_Node_Ref
20806         (Private_Project_Tree_Data): Add component Default_Naming of type
20807         Naming_Data.
20808         (Buffer, Buffer_Last): remove global variables
20809         (Add_To_Buffer): Add two in out parameters to replace global variables
20810         Buffer and Buffer_Last.
20811         (Current_Packages_To_Check): Remove global variable
20812         (Empty_Name): Move to private part
20813         (No-Symbols): Make it a constant
20814         (Private_Project_Tree_Data): New type for the private part of the
20815         project tree data.
20816         (Project_Tree_Data): New type for the data of a project tree
20817         (Project_Tree_Ref): New type to designate a project tree
20818         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
20819         for the project tree.
20820
20821         * prj-attr.ads: Add with Table; needed, as package Prj no longer
20822         imports package Table.
20823
20824         * prj-com.adb: Remove empty, no longer needed body
20825
20826         * prj-com.ads: Move most of the content of this package to package Prj.
20827
20828         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
20829         designate the project node tree and Packages_To_Check to replace
20830         global variable Current_Packages_To_Check.
20831         Add new parameters In_Tree and Packages_To_Check to local subprograms,
20832         when needed. Adapt to changes in project manager with project node tree
20833         In_Tree.
20834
20835         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
20836         project tree to most subprograms. Move tables and hash tables to
20837         private part of package Prj.
20838         Adapt to changes in project manager using project tree In_Tree.
20839
20840         * prj-makr.adb (Tree): New constant to designate the project node tree
20841         Adapt to change in project manager using project node tree Tree
20842
20843         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
20844         display the Library_Src_Dir and the Library_Dir.
20845         Add new parameter In_Tree to designate the project node tree to most
20846         subprograms. Adapt to changes in the project manager, using project tree
20847         In_Tree.
20848         (Check_Naming_Scheme): Do not alter the casing on platforms where
20849         the casing of file names is not significant.
20850         (Check): Add new parameter In_Tree to designate the
20851
20852         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
20853         designate the project tree.
20854         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
20855
20856         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
20857         to replace those that were in the private part of package Prj.
20858         Add new parameter In__Tree to designate the project node tree to most
20859         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20860         (Post_Parse_Context_Clause): When specifying the project node of a with
20861         clause, indicate that it is a limited with only if there is "limited"
20862         in the with clause, not necessarily when In_Limited is True.
20863         (Parse): Add new parameter In_Tree to designate the project node tree
20864
20865         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
20866         designate the project node tree. Adapt to change in Prj.Tree with
20867         project node tree In_Tree.
20868
20869         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
20870         tree In_Tree in the call to function Empty_Process to give its initial
20871         value to the project data Processed_Data.
20872         Add new parameters In_Tree to designate the project tree and
20873         From_Project_Node_Tree to designate the project node tree to several
20874         subprograms. Adapt to change in project manager with project tree
20875         In_Tree and project node tree From_Project_Node_Tree.
20876
20877         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
20878         to replace those that were in the private part of package Prj.
20879         Add new parameter In_Tree to designate the project node tree to most
20880         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
20881
20882         * prj-tree.ads, prj-tree.adb: Add new parameter of type
20883         Project_Node_Tree_Ref to most subprograms.
20884         Use this new parameter to store project nodes in the designated project
20885         node tree.
20886         (Project_Node_Tree_Ref): New type to designate a project node tree
20887         (Tree_Private_Part): Change table to dynamic table and hash tables to
20888         dynamic hash tables.
20889
20890         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
20891         the project tree to most subprograms. Adapt to changes in project
20892         manager using project tree In_Tree.
20893
20894         * makegpr.adb (Project_Tree): New constant needed to use project
20895         manager.
20896
20897 2005-03-15  Olivier Hainque  <hainque@adacore.com>
20898
20899         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
20900         for sigactions with SA_SIGINFO set. Call
20901         __gnat_adjust_context_for_raise before raising, to perform the
20902         potentially required adjustments to the machine context for the GCC
20903         unwinder.
20904
20905         * raise.h (__gnat_adjust_context_for_raise): New prototype.
20906
20907         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
20908         Adjust PC by one in the provided machine context.
20909         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
20910         so that the handler is passed the context structure to adjust prior to
20911         the raise.
20912         (__gnat_error_handler) HPUX: Adjust the signature to match what an
20913         SA_SIGINFO sigaction should look like. Call
20914         __gnat_adjust_context_for_raise before actually raising.
20915         (__gnat_adjust_context_for_raise): Default noop to help PC
20916         adjustments before raise from signal handlers.
20917         (__gnat_error_handler): Indirectly call a predicate function to
20918         determine if a condition should be resignaled or not.
20919         (__gnat_set_resignal_predicate): User interface to modify the predicate.
20920         (__gnat_default_resignal_p): Default GNAT predicate.
20921
20922 2005-03-15  Doug Rupp  <rupp@adacore.com>
20923
20924         * adaint.c: Prefix #include of VMS system header files with vms/
20925         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
20926         Do not define a dummy function "convert_addresses" under Darwin,
20927         not needed.
20928
20929         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
20930         with vms/
20931
20932 2005-03-15  Nicolas Setton  <setton@adacore.com>
20933
20934         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
20935         PPC/AIX.
20936
20937 2005-03-15  Robert Dewar  <dewar@adacore.com>
20938
20939         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
20940         AI-386.
20941
20942         * a-retide.ads: Minor comment changes
20943
20944 2005-03-15  Robert Dewar  <dewar@adacore.com>
20945
20946         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
20947         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
20948         Realloc_For_Chunk to private part of package.
20949         New subprograms for AI-301
20950
20951         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
20952         Get_Line procedure.
20953         Avoid unnecessary use of Get/Set_Wide_String
20954
20955 2005-03-15  Robert Dewar  <dewar@adacore.com>
20956
20957         PR ada/13470
20958         * a-stunau.ads, a-stunau.adb:
20959         Change interface to allow efficient (and correct) implementation
20960         The previous changes to allow extra space in unbounded strings had
20961         left this interface a bit broken.
20962
20963         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
20964
20965         * g-spipat.ads, g-spipat.adb: New interface for Get_String
20966         Minor reformatting (function specs)
20967
20968         * g-spitbo.adb: New interface for Get_String
20969
20970         * g-spitbo.ads: Minor reformatting
20971
20972         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
20973
20974         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
20975
20976 2005-03-15  Javier Miranda  <miranda@adacore.com>
20977             Robert Dewar  <dewar@adacore.com>
20978             Thomas Quinot  <quinot@adacore.com>
20979             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20980
20981         * atree.ads, atree.adb: Add support for Elist24 field
20982
20983         * atree.h: Fix wrong definition of Field27
20984         Add support for Elist16 field
20985         Add support for Elist24 field
20986
20987         * einfo.ads, einfo.adb (Abstract_Interfaces,
20988         Set_Abstract_Interfaces): New subprograms.
20989         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
20990         subprograms.
20991         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
20992         entities rather than a single node.
20993         (Is_Interface, Set_Is_Interface): New subprogram
20994         (First_Tag_Component): New syntesized attribute
20995         (Next_Tag_Component): New synthesized attribute
20996         (Write_Entity_Flags): Upgraded to write Is_Interface
20997         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
20998         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
20999         (Task_Body_Procedure): New subprogram to read this attribute.
21000         (Set_Task_Body_Procedure): New subprogram to set this attribute.
21001         (Has_Controlled_Component): Now applies to all entities.
21002         This is only a documentation change, since it always worked to apply
21003         this to other than composite types (yielding false), but now this is
21004         official.
21005         Update documentation on Must_Be_Byte_Aligned for new spec
21006
21007         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
21008         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
21009         uses of the Access_Disp_Table attribute to reference the first dispatch
21010         table associated with a tagged type. As
21011         part of the implementation of abstract interface types,
21012         Access_Disp_Table has been redefined to contain a list of dispatch
21013         tables (rather than a single dispatch table).
21014         Similarly, upgrade all the references to Tag_Component by the
21015         new attribute First_Tag_Component.
21016         (Find_Inherited_TSS): Moved to exp_tss.
21017         Clean up test in Expand_N_Object_Declaration for cases
21018         where we need to do a separate assignment of the initial value.
21019         (Expand_N_Object_Declaration): If the expression in the
21020         declaration of a tagged type is an aggregate, no need to generate an
21021         additional tag assignment.
21022         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
21023         is to be deleted.
21024         Bit packed array ops are only called if operands are known to be
21025         aligned.
21026         (Component_Equality): When returning an N_Raise_Program_Error statement,
21027         ensure that its Etype is set to Empty to avoid confusing GIGI (which
21028         expects that only expressions have a bona fide type).
21029         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
21030         determine the amount of data to be copied.
21031
21032         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
21033         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
21034             INTERFACE_TYPE_DEFINITION ::=
21035               [limited | task | protected | synchronized] interface
21036                 [AND interface_list]
21037
21038         * par-ch3.adb (P_Type_Declaration): Modified to give support to
21039         interfaces.
21040         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
21041         interfaces.
21042         (P_Interface_Type_Definition): New subprogram that parses the new
21043         syntax rule of Ada 2005 interfaces
21044         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
21045         messages by the correct RENAMES (quotes removed).
21046
21047         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
21048         attribute First_Tag_Component.
21049
21050         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
21051         (Interface_List, Set_Interface_List): New subprograms.
21052         (Interface_Present, Set_Interface_Present): New subprograms.
21053         (Limited_Present, Set_Limited_Present): Available also in derived
21054         type definition nodes.
21055         (Protected_Present, Set_Protected_Present): Available also in
21056         record type definition and
21057         derived type definition nodes.
21058         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
21059         (Task_Present, Set_Task_Present): New subprogram.
21060         (Task_Body_Procedure): Removed.
21061         (Set_Task_Body_Procedure): Removed.
21062         These subprogram have been removed because the attribute
21063         Task_Body_Procedure has been moved to the corresponding task type
21064         or task subtype entity to leave a field free to store the list
21065         of interfaces implemented by a task (for AI-345)
21066         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
21067         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
21068         expression flag Do_Range_Check
21069         (Exception_Junk): Change to Flag7 to accomodate above change
21070         (Box_Present, Default_Name, Specification, Set_Box_Present,
21071         Set_Default_Name, Set_Specification): Expand the expression
21072         "X in N_Formal_Subprogram_Declaration" into the corresponding
21073         two comparisons. Required to use the csinfo tool.
21074
21075         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
21076         "with string" given.
21077
21078         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
21079         expression given.
21080
21081         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
21082         in 2005 mode
21083
21084         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
21085         attribute Task_Body_Procedure rather than the old semantic field that
21086         was available in the task_type_declaration node.
21087
21088         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
21089         interface type definitions.
21090         (P_Formal_Derived_Type_Definition): Modified to handle the list of
21091         interfaces.
21092
21093         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
21094         task type declaration.
21095         (P_Protected): Modified to handle the list of interfaces in a
21096         protected type declaration.
21097
21098 2005-03-15  Doug Rupp  <rupp@adacore.com>
21099             Vincent Celier  <celier@adacore.com>
21100
21101         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
21102         (Gen_Output_File_C): Likewise.
21103         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
21104
21105 2005-03-15  Thomas Quinot  <quinot@adacore.com>
21106
21107         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
21108         is an N_Raise_Constraint_Error node, create a new copy of it without
21109         going through a call to Duplicate_Subexpr.
21110
21111 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
21112             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21113             Nicolas Setton  <setton@adacore.com>
21114             Ed Schonberg  <schonberg@adacore.com>
21115
21116         PR ada/19900
21117         PR ada/19408
21118         PR ada/19140
21119         PR ada/20255
21120         * decl.c (gnat_to_gnu_field): Reject aliased components with a
21121         representation clause that prescribes a size not equal to the rounded
21122         size of their types.
21123         (gnat_to_gnu_entity, case E_Component): Always look at
21124         Original_Record_Component if Present and not the entity.
21125         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
21126         of tagged extension types by not making field for components that are
21127         inside the parent.
21128         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
21129         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
21130         expression to the type of the object when the object is constant.
21131         Reverse defer_debug_incomplete_list before traversing it, so that trees
21132         are processed in the order at which they were added to the list. This
21133         order is important when using the stabs debug format.
21134         If we are deferring the output of debug information, also defer this
21135         output for a function return type.
21136         When adding fields to a record, prevent emitting debug information
21137         for incomplete records, emit the information only when the record is
21138         complete.
21139         (components_to_record): New parameter defer_debug.
21140         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
21141         (gnat_to_gnu_field_decl): New function.
21142         (substitution_list, annotate_rep): Call it.
21143         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
21144         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
21145         No longer update discriminants to not be a COMPONENT_REF.
21146         (copy_alias_set): Strip padding from input type; also handle
21147         unconstrained arrays properly.
21148
21149         * gigi.h (write_record_type_debug_info): New function.
21150         Convert to use ANSI-style prototypes. Remove unused
21151         declarations for emit_stack_check, elab_all_gnat and
21152         set_second_error_entity.
21153         (gnat_to_gnu_field_decl): New decl.
21154
21155         * utils.c (write_record_type_debug_info): New function.
21156         (finish_record_type): Delegate generation of debug information to
21157         write_record_type_debug_info.
21158         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
21159         (update_pointer_to): Fix pasto.
21160         (convert) <UNION_TYPE>: Accept slight type variations when
21161         converting to an unchecked union type.
21162
21163         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
21164         replace the N_Freeze_Entity with a null statement.
21165
21166         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
21167         within a constrained subcomponent of an enclosing record, place the
21168         freeze nodes in the scope stack entry for the enclosing record.
21169         (Undelay_Type): New Subprogram.
21170         (Set_Small_Size): Pass T, the type to modify; all callers changed.
21171         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
21172         within records; allow them to have freeze nodes if their base types
21173         aren't frozen yet.
21174
21175         * exp_util.adb (Remove_Side_Effects): Properly test for
21176         Expansion_Delayed and handle case when it's inside an
21177         N_Qualified_Expression.
21178
21179         * sem_ch3.adb (Derived_Type_Declaration): New predicate
21180         Comes_From_Generic, to recognize accurately that the parent type in a
21181         derived type declaration can be traced back to a formal type, because
21182         it is one or is derived from one, or because its completion is derived
21183         from one.
21184         (Constrain_Component_Type): If component comes from source and has no
21185         explicit constraint, no need to constrain in in a subtype of the
21186         enclosing record.
21187         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
21188         Minor change to propagate Is_Ada_2005 flag
21189
21190         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
21191         Expansion_Delayed is False.
21192         (assoc_to_constructor): Ignore fields that have a
21193         Corresponding_Discriminant.
21194         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
21195         function returns "by target", dereference the target pointer using the
21196         type of the actual return value.
21197         <all>: Be prepared for a null gnu_result.
21198         (processed_inline_subprograms): Check flag_really_no_inline
21199         instead of flag_no_inline.
21200         (set_second_error_entity): Remove unused function.
21201         (gnat_to_gnu, case N_Selected_Component): Call
21202         gnat_to_gnu_field_decl.
21203         (assoc_to_constructor): Likewise.
21204
21205 2005-03-15  Robert Dewar  <dewar@adacore.com>
21206             Ed Schonberg  <schonberg@adacore.com>
21207             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21208
21209         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
21210         Must_Be_Byte_Aligned for cases where we do not need to use a
21211         System.Pack_nn unit.
21212
21213         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
21214         as procedures.
21215         Needed now that we do some processing for IN parameters as well. This
21216         may well fix some unrelated errors.
21217         (Expand_Call): Handle case of unaligned objects (in particular those
21218         that come from packed arrays).
21219         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
21220         renamed entity is an inherited operation, re-expand the call using the
21221         original operation, which is the one to call.
21222         Detect attempt to inline parameterless recursive subprogram.
21223         (Represented_As_Scalar): Fix to work properly with private types
21224         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
21225         accurate estimate. Yields True in far fewer cases than before,
21226         improving the quality of code that depends on this test.
21227
21228         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
21229         over both visible and private declarations to remove them from tree,
21230         and mark subprograms declared in package as eliminated, to prevent
21231         spurious use in subsequent compilation of generic units in the context.
21232
21233         * exp_util.ads: Minor cleanup in variable names
21234
21235         * sem_eval.ads, sem_eval.adb: Minor reformatting
21236         (Compile_Time_Known_Bounds): New function
21237
21238 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
21239
21240         * exp_ch7.adb (Convert_View): Use base types of underlying types when
21241         determining whether an unchecked conversion is needed for the argument
21242         of an initialization call.
21243
21244 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
21245
21246         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
21247         that appears in the instantiation rather than the internal subtype
21248         generated in the wrapper package, to avoid anomalies in gigi when the
21249         target is derived from a private type whose full view is an access type.
21250
21251 2005-03-15  Robert Dewar  <dewar@adacore.com>
21252
21253         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
21254         not needed.
21255         Add documentation to replace the use of this flag
21256         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
21257         the x86_64.
21258
21259 2005-03-15  Thomas Quinot  <quinot@adacore.com>
21260
21261         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
21262         here from exp_attr so it can be shared between exp_attr and exp_dist.
21263         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
21264         all TSS names, not a subset thereof, and the previous name introduced
21265         an unnecessarily confusion that a distinction might exist between
21266         "OK" TSS names and some "not OK" TSS names.
21267
21268 2005-03-15  Doug Rupp  <rupp@adacore.com>
21269
21270         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
21271         Command_Name.
21272
21273 2005-03-15  Pascal Obry  <obry@adacore.com>
21274             Eric Botcazou  <ebotcazou@adacore.com>
21275
21276         PR ada/20226
21277         PR ada/20344
21278         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
21279         when IN_RTS. This is to work around a bootstrap path problem.
21280
21281         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
21282         table and pass it to __gnat_install_SEH_handler().
21283         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
21284
21285         * lang.opt: Fix specification of -fRTS=.
21286
21287 2005-03-15  Doug Rupp  <rupp@adacore.com>
21288             Bernard Banner  <banner@adacore.com>
21289             Vincent Celier  <celier@adacore.com>
21290             Arnaud Charlet  <charlet@adacore.com>
21291
21292         PR ada/6852
21293         This change works fine when gnatlib is built from the gcc directory,
21294         but does not work when using the libada Makefile, since GCC_FOR_TARGET
21295         is not passed to ada/Makefile.in, so more work is needed by a
21296         Makefile/configure expert.
21297
21298         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
21299         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
21300         Setup gnatlink switch -M for x86_64 linux, as it is already setup
21301         for Linux x86.
21302         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
21303         Run ranlib on libgccprefix.a
21304         Define PREFIX_OBJS for Darwin, to build libgccprefix.
21305         (ADA_INCLUDE_SRCS): Split Ada packages.
21306
21307 2005-03-15  Robert Dewar  <dewar@adacore.com>
21308
21309         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
21310
21311         * impunit.adb: Add GNAT.UTF_32
21312
21313         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
21314
21315         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
21316         now uses GNAT.UTF_32).
21317
21318         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
21319         capabilities for categorizing characters using Unicode categories
21320
21321 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
21322
21323         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
21324         instantiation that has been rewritten as a package body, retrieve spec
21325         to generate proper name for implicit_with_clause.
21326         (Install_Parents): Recognize a parent that is an instantiation but has
21327         been rewritten as a package declaration during analysis.
21328
21329 2005-03-15  Javier Miranda  <miranda@adacore.com>
21330             Ed Schonberg  <schonberg@adacore.com>
21331
21332         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
21333         parameter reported some error we immediately return. This improves the
21334         behaviour of the frontend in case of errors.
21335         (Install_Parent, Remove_Parent): Introduce new flag
21336         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
21337         ancestor of a generic child unit, when the child is being instantiated.
21338         (Inline_Instance_Body): If we are compiling the private
21339         part or the body of a child unit, restore the proper visibility of the
21340         parents after compiling the instance body.
21341
21342 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
21343             Javier Miranda  <miranda@adacore.com>
21344
21345         PR ada/15608
21346         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
21347         of a private type, in which case it is underlying_type that denotes
21348         the proper task. Also modified to use the new entity attribute
21349         that is directly available in the task type and task subtype entities
21350         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
21351         arrays when other dimensions than the first are constrained by
21352         discriminants of an enclosing record.
21353         (Insert_Explicit_Dereference): If the prefix is an indexed component or
21354         a combination of indexed and selected components, find ultimate entity
21355         and generate the appropriate reference for it, to suppress spurious
21356         warnings.
21357         (Note_Possible_Modification): If an entity name has no entity, return.
21358         (Is_Variable): A function call never denotes a variable.
21359         (Requires_Transient_Scope): For record types, recurse only on
21360         components, not on internal subtypes that may have been generated for
21361         constrained components.
21362
21363 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
21364
21365         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
21366         Eliminated as candidates for resolution. Both efficient, and avoids
21367         anomalies with operators declared in deleted code.
21368         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
21369         expansion is disabled (as when compiling a generic) to prevent spurious
21370         warnings on prefixes of selected components.
21371
21372 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
21373
21374         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
21375         attached to a list before checking whether it appears in the private
21376         declarations of the current package.
21377         (Make_Inequality_Operator): Insert declaration in proper declarative
21378         list rather than just setting the Parent field, so that
21379         Is_Private_Declaration can handle it properly.
21380
21381 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
21382
21383         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
21384         a renaming a body, check that the renamed subprogram in not intrinsic.
21385         (Find_Direct_Name): If several use_visible entities hide
21386         each other, and the context is a predefined file compiled through
21387         rtsfind, keep only the entity that comes from a predefined file.
21388
21389 2005-03-15  Geert Bosch  <bosch@adacore.com>
21390
21391         * s-fatgen.adb (Valid): Extend special exceptions to account for long
21392         long float padding to also cover AMD64 and IA64.
21393
21394 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
21395
21396         * s-imgwch.adb: Add with and use of Interfaces.
21397         (Img_Wide_Character): Change type of Val to Unsigned_16.
21398         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
21399
21400 2005-03-15  Matthew Gingell  <gingell@adacore.com>
21401
21402         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
21403
21404 2005-03-15  Robert Dewar  <dewar@adacore.com>
21405
21406         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
21407
21408         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
21409
21410         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
21411
21412 2005-03-15  Robert Dewar  <dewar@adacore.com>
21413
21414         * s-bitops.adb, s-bitops.ads,
21415         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
21416         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
21417         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
21418         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
21419         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
21420         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
21421         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
21422         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
21423         reformatting.
21424
21425 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
21426
21427         * utils2.c (build_binary_op): Fix typo.
21428
21429 2005-03-15  Doug Rupp  <rupp@adacore.com>
21430
21431         * s-crtl.ads (popen,pclose): New imports.
21432
21433 2005-03-15  Cyrille Comar  <comar@adacore.com>
21434
21435         * comperr.adb (Compiler_Abort): remove references to obsolete
21436         procedures in the bug boxes for various GNAT builds.
21437
21438 2005-03-15  Vincent Celier  <celier@adacore.com>
21439
21440         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
21441
21442 2005-03-15  Geert Bosch  <bosch@adacore.com>
21443             Arnaud Charlet  <charlet@adacore.com>
21444             Robert Dewar  <dewar@adacore.com>
21445             Cyrille Comar  <comar@adacore.com>
21446             Sergey Rybin  <rybin@adacore.com>
21447
21448         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
21449         too specific and long-winded to be appropriate for the GNAT User's
21450         Guide.
21451         Warn about use of GCC switches not documented in the GNAT User's Guide,
21452         as these may cause generated code to not conform to Ada semantics.
21453         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
21454         Add documentation for -gnat95 and -gnat05 switches
21455         Remove paragraph documenting obsolete way to refer to third party
21456         libraries.
21457         Add a few references to Ada_05 that were missing.
21458         Update documentation on -gnatZ/-gnatL.
21459         Document limitation when using -m64 under Solaris.
21460         Change the "Name Casing" subsection of the pretty-printer section
21461         according to the changes in the dictionary processing.
21462
21463         * gnat_rm.texi: Document the Ada_05 pragma.
21464         Section on record representation clauses describes the new more
21465         relaxed rules about placement of large packed bit array components.
21466         Add documentation of GNAT.UTF_32
21467
21468 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
21469
21470         * misc.c (gnat_post_options): Turn off structural
21471         aliasing for now.
21472
21473 2005-03-08  Laurent Guerby  <laurent@guerby.net>
21474
21475         * system-linux-sparc.ads: Fix typo in previous commit.
21476
21477 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
21478             Laurent Guerby  <laurent@guerby.net>
21479
21480         PR ada/20035
21481         * system-linux-sparc.ads: New.
21482         * Makefile.in: Add sparc linux entry.
21483
21484 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
21485
21486         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
21487         parameters as unused.
21488
21489 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
21490         Partial merge from libada-gnattools-branch:
21491
21492         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
21493         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
21494         into code in gnattools/Makefile.in.  Remove direct dependencies on
21495         stamp-tools by tools clauses.
21496         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
21497         * config-lang.in: Add gnattools to $lang_dirs.
21498
21499 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
21500
21501         PR ada/19942
21502         * utils.c (gnat_type_for_mode): Return null instead of ICE because
21503         we asked for an unknown mode.
21504
21505 2005-02-12  Richard Henderson  <rth@redhat.com>
21506
21507         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
21508         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
21509
21510 2005-02-10  Andreas Jaeger  <aj@suse.de>
21511
21512         * init.c (__gnat_initialize): Mark parameter as unused.
21513
21514 2005-02-09  Doug Rupp  <rupp@adacore.com>
21515
21516         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
21517         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
21518
21519 2005-02-09  Doug Rupp  <rupp@adacore.com>
21520
21521         * gnatchop.adb (dup, dup2),
21522         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
21523
21524         * gnatlbr.adb (mkdir),
21525         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
21526
21527         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
21528
21529 2005-02-09  Doug Rupp  <rupp@adacore.com>
21530
21531         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
21532
21533 2005-02-09  Robert Dewar  <dewar@adacore.com>
21534             Thomas Quinot  <quinot@adacore.com>
21535             Javier Miranda  <miranda@adacore.com>
21536             Pascal Obry  <obry@adacore.com>
21537             Ed Schonberg  <schonberg@adacore.com>
21538             Doug Rupp  <rupp@adacore.com>
21539             Gary Dismukes  <dismukes@adacore.com>
21540             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21541
21542         * g-zstspl.ads: New file.
21543
21544         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
21545
21546         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
21547         Ada 95 mode
21548         Add definition of Wide_Wide_Space for AI-285
21549
21550         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
21551         interface (to support Ada 95 and Ada 2005 units).
21552         Add Unbounded_IO files
21553         Add entries for Wide_Wide packages for AI-285
21554         Add list of containers packages to Ada 2005 unit list
21555
21556         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
21557         support new Unbounded_IO package cleanly.
21558
21559         * g-utf_32.ads, g-utf_32.adb: New files.
21560
21561         * Makefile.rtl: Add entry for g-utf_32
21562         Add new files for Unbounded_IO
21563         Adjust make file for new AI-285 wide wide packages
21564         Add AI-302 containers to the run time.
21565
21566         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
21567         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
21568         subprograms for AI-301.
21569
21570         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
21571
21572         * a-stunau.ads: Minor comment correction
21573
21574         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
21575         etc.
21576         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
21577         (Check_RPC): Update to match changes in expanded code.
21578         Clean up unused entity.
21579
21580         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
21581         was not taken into account.
21582         This includes proper initialization with Normalize_Scalars.
21583         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
21584         normalize scalars cases (particularly the latter) to do a better job
21585         of finding invalid representations.
21586
21587         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
21588
21589         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
21590         used
21591
21592         * exp_dist.adb: Add support for wide wide character type
21593         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
21594         private part, generate stub bodies at the end of the private part,
21595         not the visible part.
21596         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
21597         PolyORB support.
21598         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
21599         generic wrapper to execute final processing after completing the
21600         expansion of the RPC receiver for an RACW.
21601
21602         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
21603         packages and attributes.
21604         (Preset_Names): Addition of the new reserved words of Ada 2005,
21605         that is interface, overriding and synchronized.
21606         (Get_Pragma_Id): Give support to the use of the new reserved word
21607         "interface" as a pragma name.
21608         (Is_Pragma_Name): Give support to the use of the new reserved word
21609         "interface" as a pragma name.
21610         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
21611         attribute implementation.
21612
21613         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
21614         checks to entities that are output parameters of Asm operations.
21615         Handle the Stream_Size attribute.
21616         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
21617
21618         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
21619
21620         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
21621         for second parameter being 0.0.
21622         Add support for wide wide character type.
21623         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
21624
21625         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
21626         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
21627         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
21628         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
21629         for wide wide character cases.
21630
21631         * cstand.adb: Create entities for Wide_Wide_Character and
21632         Wide_Wide_String.
21633
21634         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
21635         accordance with AI-258.
21636         Add new declarations for 16/32 bit C character types (Part of AI285)
21637
21638         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
21639         (Obsolescent_Warning): New field
21640         (Rep_Clause): New local subprogram used to share code. Returns the rep
21641         clause for which the name is given in parameter.
21642         (Has_Stream_Size_Clause): New routine.
21643         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
21644         (Address_Clause): Implementation is now using Rep_Clause.
21645         (Alignment_Clause): Idem.
21646         (Size_Clause): Idem.
21647
21648         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
21649         entity in non-Ada 2005 mode and generate warning.
21650
21651         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
21652         (Prag): Code cleanup. Remove old gnat pragma "overriding"
21653
21654         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
21655         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
21656         on the named unit if the pragma is not in the current compilation unit,
21657         so that elaboration calls in the current unit can set up an elaboration
21658         dependency on the named unit, as needed.
21659         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
21660         subprogram as well as for subprograms declared within a package.
21661         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
21662         pragma overriding.
21663
21664         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
21665         to z) to avoid some instances of duplication for Wide_Wide packages.
21666
21667         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
21668         characters.
21669
21670         * scn.adb: Char_Literal_Value field is now a Uint
21671
21672         * scng.adb: Significant rewrite to handle new Ada 2005 features
21673         allowing wide and wide wide characters in program text, e.g. for
21674         identifiers, as described in AI-285.
21675         (Set_Reserved): New procedure, makes setting up keywords cleaner.
21676         (Initialize_Scanner): Register the new reserved words of Ada 2005.
21677         (Scan): Give support to the new reserved words.
21678
21679         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
21680         warning notifying that interface, overriding, and synchronized are
21681         new reserved words.
21682         (P_Pragma): Allow the use of the new reserved word "interface" as
21683         a pragma name.
21684
21685         * gnatls.adb, gnatbind.adb,
21686         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
21687         identifiers named "interface" to "SAL_Interface".
21688
21689         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
21690         (Structured Exception handling).
21691         (Gen_Main_C): Idem.
21692
21693         * bindgen.adb:
21694         (Gen_Main_Ada): Set the default exit code if specified.
21695         (Gen_Main_C): Likewise.
21696         Part of *DC20-006.
21697         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
21698         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
21699
21700         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
21701         new -Xnnn switch.
21702
21703         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
21704         has a collision with the new Ada 2005 "interface" reserved word.
21705
21706         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
21707         generate a warning notifying that interface, overriding, and
21708         synchronized are new reserved words.
21709
21710         * scans.ads (Token_Type): Addition of the tokens corresponding to the
21711         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
21712         and Tok_Synchronized.
21713
21714         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
21715         "dispatching" rather than "primitive" operations, since dispatching
21716         calls are now allowed to abstract formal subprograms (which are not
21717         primitive).
21718         Char_Literal_Value field is now a Uint
21719         (Resolve_Slice): If the prefix is an access to an unconstrained array,
21720         compute the actual subtype of the designated object to impose the proper
21721         index constraints.
21722         (Resolve_Selected_Component): Do not insert an access check if the
21723         prefix is an access type: such a node is expanded into an explicit
21724         dereference, on which the access check is performed anyway. Removes
21725         expensive duplicate checks.
21726         (Resolve_Call): Use new flag Is_Obsolescent and field
21727         Obsolescent_Warning so that pragma Obsolescent works on library
21728         subprograms.
21729         Add support for wide wide character type
21730         (Resolve_Allocator): Replace the error message on wrong null-exclusion
21731         value by a warning message.
21732         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
21733         as fixed-point, and one of the operands is non-static and universal, it
21734         can only be an illegal exponentiation operation, in which case there is
21735         no real value to retrieve.
21736
21737         * exp_strm.adb: Add support for wide wide character type
21738         (Build_Elementary_Input_Call): Compute the size of the stream element by
21739         querying the rep chain to find the Stream_Attribute attribute value.
21740         (Build_Elementary_Write_Call): Ditto.
21741
21742         * sem_aggr.adb: Char_Literal_Value field is now a Uint
21743         Add support for wide wide character type
21744         Replace the error messages on wrong null-exclusion value by warnings
21745         as described in Ada 2005.
21746         (Resolve_Extension_Aggregate): Document the fact that the error
21747         message on class-wide expressions in extensions aggregates.
21748
21749         * sem_case.adb: Add support for wide wide character type
21750
21751         * sem_ch13.adb: Add support for wide wide character type
21752         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
21753
21754         * sem_ch3.adb: Add support for wide wide character type
21755         (Process_Subtype): If constraint is illegal for the type, set Ekind of
21756         now-useless Itype, to prevent cascaded errors on a compiler built
21757         without -gnatp.
21758
21759         * sem_ch8.adb: Add with and use of Sem_Disp.
21760         (Analyze_Subprogram_Renaming): Replace unclean uses of
21761         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
21762         of Corresponding_Spec to Empty).
21763         (Attribute_Renaming): Replace use of Corresponding_Spec with
21764         Corresponding_ Formal_Spec and simplify condition.
21765         (Use_One_Package): Check that scope of homonym of identifier is defined,
21766         before checking whether it is a wrapper package.
21767         Add support for wide wide character type
21768
21769         * sem_eval.adb: Add support for wide wide character type.
21770         (Eval_Arithmetic_Op): Check for compile time known signed integer
21771         overflow in the non-static case.
21772         (Subtypes_Statically_Match): A formal scalar type and its base type do
21773         not statically match.
21774
21775         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
21776         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
21777         subtype).
21778         (Unit_Declaration_Node): Ditto.
21779         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
21780         has a packed array type, the prefix has been rewritten into a type
21781         conversion. Determine variable-ness from the converted expression.
21782         Handle wide wide character cases.
21783
21784         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
21785
21786         * stringt.ads, stringt.adb: Handle full UTF-32 range.
21787         Remove ["0A"] from comment, since it can look like a line terminator.
21788         Currently we don't permit this, but this is under discussion by the
21789         ARG, and it is easy enough to use a different example.
21790
21791         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
21792         handling UTF-32 encoding for wide wide character.
21793         Implement new brackets coding ["hhhhhhhh"]
21794         Add UTF-8 encodings for full UTF-32 range
21795
21796         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
21797
21798         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
21799         bit range Add full UTF-32 support.
21800         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
21801         notify that constraint error will be raised at run-time
21802         because a null value is assigned to a null-excluding object.
21803         Remove some obsolete declarations and make Char_Code
21804         unsigned.
21805
21806         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
21807         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
21808         Rcheck subprograms.
21809
21810         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
21811         wrong null-exclusion value by a warning message.
21812         (Enable_Range_Check): Do range check if the prefix is an
21813         explicit dereference whose designated object is an unconstrained array.
21814         Current algorithm for removing duplicate checks is over-eager in this
21815         case.
21816
21817         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
21818         null-exclusion value by a warning message
21819
21820         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
21821         completely. Add support for Uint2 field
21822
21823         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
21824         exp_prag.adb: Char_Literal_Value field is now a Uint.
21825
21826         * exp_util.adb (Insert_Actions): Replace
21827         N_Formal_Subprogram_Declaration by
21828         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
21829         Char_Literal_Value field is now a Uint.
21830
21831         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
21832         defined for subprogram renaming declarations. When set, the field
21833         indicates the defining entity of a corresponding formal subprogram
21834         when the renaming corresponds to a formal subprogram association in an
21835         instantiation.
21836         (Set_Corresponding_Formal_Spec): New procedure to return
21837         Corresponding_Formal_Spec field.
21838         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
21839         (which is now a subtype).
21840         Char_Literal_Value field is now a Uint
21841
21842         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
21843         pointer to the base of the dispatch table.
21844         Minor changes to comments.
21845         (Controlling_Type): New function for determining the tagged type
21846         associated with a tagged primitive subprogram.
21847         (Expand_Dispatching_Call): Add support for a controlling actual that is
21848         directly a value of type Ada.Tag rather than a tagged object.
21849
21850         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
21851         describing the new layout.
21852         (Dispatch_Table): The expander computes the actual array size, allocates
21853         the Dispatch_Table record accordingly, and generates code that displaces
21854         the base of the record after the Typeinfo_Ptr component. The access to
21855         these components is done by means of local functions.
21856         (Offset_To_Top): New function.
21857         (Typeinfo_Ptr): New function.
21858         (Get_TSD): Modified to access the new position of the TSD.
21859         (Set_TSD): Modified to save the TSD in its new position.
21860
21861         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
21862         case of formal abstract subprograms. Add check and message for -gnat05.
21863         Update comments.
21864
21865         * sem_ch12.adb: Add with and use for Sem_Disp.
21866         (Analyze_Associations): Minor change from "=" to "in" for use of
21867         N_Formal_Subtype_Declaration (which is now a subtype).
21868         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
21869         N_Formal_Subtype_Declaration (which is now a subtype).
21870         (Analyze_Formal_Subprogram): Add handling for
21871         N_Formal_Abstract_Subprogram, marking the formal as abstract and
21872         dispatching, setting the controlling status of the formal parameters
21873         and result, and issuing an error if there is no controlling type for
21874         the formal subprogram.
21875         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
21876         which is an unclean use of that field, we set the new field
21877         Corresponding_Formal_Spec to make the formal subprogram available to
21878         processing in Analyze_Subprogram_Declaration.
21879         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
21880         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
21881         Constrained, so that it is is does not statically match its anonymous
21882         base type.
21883
21884         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
21885         abstract formal subprograms in error check for functions returning
21886         abstract types. Set scope of new designator for
21887         a parameterless subprogram, so that it is available when checking the
21888         body for nested subprograms, before full analysis of said body.
21889         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
21890         subprogram only if inner one comes from source.
21891         (Analyze_Function_Call): If the call is given in object notation, the
21892         analysis of the name rewrites the node and analyzes it with the proper
21893         argument list. After analyzing the name, if the call has been rewritten
21894         and the result type is set, no further analysis is needed.
21895         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
21896         mark in function specification, in a context where the formals are
21897         visible and hide outer homographs.
21898
21899         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
21900         as the tagged type for the cases of abstract formal subprograms and
21901         renamings of those.  Clean up spec comments.
21902         (Check_Dispatching_Context): Add error message to indicate "abstract
21903         procedure", covering the case of a call to a formal abstract procedure
21904         that has statically tagged operands.
21905         (Check_Dispatching_Call): Check for the case of an actual given by
21906         a tag-indeterminate function call whose type is an ancestor of the
21907         containing call's associated tagged type. This situation can occur
21908         for inherited primitives with function defaults. In this case we
21909         use the tagged type's tag directly as the controlling argument for
21910         the calls.
21911         (Expand_Call): Name change on call to Expand_Dispatch_Call.
21912
21913         * sprint.adb (Sprint_Node_Actual): Split
21914         N_Formal_Subprogram_Declaration into two alternatives for the new
21915         cases N_Formal_Abstract_Subprogram_Declaration and
21916         N_Formal_Concrete_Subprogram_Declaration.
21917         Char_Literal_Value field is now a Uint.
21918
21919         * trans.c: Get rid of junk Uint2 reference.
21920         Char_Literal_Value field is now a Uint.
21921         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
21922         (gigi): Correct third arg to gimplify_body.
21923
21924         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
21925         (TYPE_LANG_FLAG_0): Check for record or union.
21926
21927         * treepr.adb: Char_Literal_Value field is now a Uint
21928
21929         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
21930         UI_From_CC.
21931
21932         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
21933         Add full UTF-32 support
21934         Char_Code is now 32 bits
21935
21936         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
21937         wide character UTF_32 line terminators.
21938         Initialize Main_Source_File to avoid error when no main
21939         source is loaded.
21940
21941         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
21942         (Main_Source_File) when no main source has been loaded, to avoid
21943         potential crash.
21944
21945 2005-02-09  Robert Dewar  <dewar@adacore.com>
21946
21947         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
21948         Fix name of Set routine
21949
21950         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
21951         fixed packages.
21952
21953         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
21954         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
21955         fixed packages
21956
21957         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
21958         forms of Get_Line subprograms for AI-301.
21959
21960         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
21961         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
21962         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
21963         a-stwima.ads: Minor reformatting.
21964
21965 2005-02-09  Doug Rupp  <rupp@adacore.com>
21966             Thomas Quinot  <quinot@adacore.com>
21967
21968         * adaint.c, adaint.h
21969         [VMS] (to_ptr32): New function.
21970         (MAYBE_TO_PTR32): New macro.
21971         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
21972         for pointer size.
21973         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
21974         [VMS] (#define fork()): Remove since unneccessary.
21975         (__gnat_set_close_on_exec): New routine to support
21976         GNAT.OS_Lib.Set_Close_On_Exec.
21977
21978         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
21979         the parent side as close-on-exec so that they are not inherited by the
21980         child.
21981
21982         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
21983         set or clear the FD_CLOEXEC flag on a file descriptor.
21984
21985 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
21986             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21987
21988         PR ada/19386
21989         * decl.c:
21990         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
21991         on the field if Pragma Component_Alignment (Storage_Unit).
21992         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
21993         side-effects as if it were a constant; also make SAVE_EXPR to protect
21994         side-effects.
21995         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
21996         UNION_TYPE.
21997         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
21998         (components_to_record): Test it.
21999         Fix improper usage of REFERENCE_CLASS_P.
22000
22001         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
22002         RECORD_TYPE.
22003
22004         * utils2.c: Minor reformatting.
22005
22006         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
22007         handle other cases like RECORD_TYPE.
22008
22009         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
22010
22011 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
22012
22013         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
22014         component of an array of arrays in an assignment context, and the
22015         aggregate has component associations that require sliding on
22016         assignment, force reanalysis of the aggregate to generate a temporary
22017         before the assignment.
22018         (Must_Slide): Make global to the package, for use in Gen_Assign.
22019
22020 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
22021
22022         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
22023         unchecked union with no inferable discriminants, return a
22024         Raise_Program_Error node, rather than inserting it at the point the
22025         type is frozen.
22026         (Expand_Record_Equality, Component_Equality): Handle properly the case
22027         where some subcomponent is an unchecked union whose generated equality
22028         code raises program error.
22029
22030 2005-02-09  Doug Rupp  <rupp@adacore.com>
22031
22032         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
22033         [VMS] (#define exit hack): Remove.
22034
22035 2005-02-09  Pascal Obry  <obry@adacore.com>
22036             Arnaud Charlet  <charlet@adacore.com>
22037
22038         * init.c (__gnat_initialize): Add a new parameter eh which contains the
22039         address of the exception registration. The Win32 version of this
22040         routine calls __gnat_install_SEH_handler() to initialize the SEH
22041         (Structured Exception Handling) handler.
22042         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
22043         SEH (Structured Exception Handling) now.
22044         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
22045         (__gnat_initialize for ppc-vxworks): Adjust comments and the
22046         preprocessor condition protecting the call to the extra eh setup
22047         subprogram, which is only available for the ppc target.
22048         (__gnat_clear_exception_count): replaced reference to
22049         variable taskIdCurrent by call to taskIdSelf(), cleaner.
22050
22051         * seh_init.c: New file.
22052
22053         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
22054         (GNATBIND_OBJS): Idem.
22055
22056         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
22057         routine takes a new parameter (a pointer to the exception registration
22058         for the SEH (Structured Exception Handling) support.
22059
22060         * raise.h: (__gnat_install_SEH_handler): New prototype.
22061         Update copyright notice.
22062
22063         * s-tassta.adb (Task_Wrapper): Declare the exception registration
22064         record and initialize it by calling __gnat_install_SEH_handler.
22065
22066 2005-02-09  Vincent Celier  <celier@adacore.com>
22067
22068         * make.adb (Gnatmake): Do not fail when the main project has no object
22069         directory.
22070
22071 2005-02-09  Doug Rupp  <rupp@adacore.com>
22072
22073         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
22074         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
22075         [VMS]: Add translations for g-enblsp.adb.
22076
22077         * s-asthan-vms.adb: Removed.
22078         * s-asthan-vms-alpha.adb: Added.
22079
22080 2005-02-09  Pascal Obry  <obry@adacore.com>
22081
22082         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
22083         (LIBGNAT_OBJS): Add seh_init.o.
22084
22085 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
22086
22087         PR ada/16592
22088         * Makefile.in: Link all gnat tools with -static-libgcc, since
22089         -shared-libgcc is now used by default on some systems (e.g. linux with
22090         recent binutils).
22091         Remove references to Makefile.prolog/generic, no longer used.
22092
22093 2005-02-09  Vincent Celier  <celier@adacore.com>
22094
22095         * prj-makr.adb (Process_Directory): Put file name in canonical case
22096         before matching against the patterns.
22097         If gnatname has been invoked as <prefix>-gnatname
22098         then invoke the compiler as <prefix>-gcc, not just "gcc".
22099
22100 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
22101
22102         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
22103         with expansion disabled. The actual subtype is needed among other
22104         places when the selected component appears in the context of a loop
22105         bound, and denotes a packed array.
22106         (Operator_Check): Always use the first subtype in the
22107         error message, to avoid the appearance of internal base types.
22108         (Transform_Object_Operation): Copy each actual in full
22109         to the parameter associations of the constructed call, rather than
22110         using the shallow copy mechanism of New_Copy_List. This ensures that
22111         the chaining of named associations is done properly.
22112         (Complete_Object_Operation): Rewrite node, rather than
22113         replacing it, so that we can trace back to the original selected
22114         component.
22115
22116         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
22117         and calls that use object notation, if the called function is not
22118         declared  in a withed unit, place the elaboration constraint on the
22119         unit in the context that makes the function accessible.
22120         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
22121         imposes an elaboration constraint between two packages.
22122
22123 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
22124
22125         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
22126         views of a private type after handling its private dependents, to
22127         maintain proper stack discipline between entry and exit from the
22128         package.
22129
22130 2005-02-09  Cyrille Comar  <comar@adacore.com>
22131
22132         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
22133         Minor reformatting.
22134
22135 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
22136
22137         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
22138         fields for foreign threads.
22139
22140 2005-02-09  Doug Rupp  <rupp@adacore.com>
22141
22142         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
22143         recursion warnings when compiled with -gnatdm.
22144
22145 2005-02-09  Robert Dewar  <dewar@adacore.com>
22146
22147         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
22148         Slight fix to documentation of -gnaty with no parameters
22149
22150         * xr_tabls.ads: Add ??? comment for missing overall comment
22151
22152         * xsinfo.adb: Make default file name be sinfo.h, since this is what
22153         we now use by default.
22154
22155         * xsnames.adb: Adjust end of file test to look for five space followed
22156         by '#' instead of six spaces. The format of xsnames.adb was modified
22157         in the last update.
22158
22159         * a-numeri.ads: Add reference to AI-388 for greek letter pi
22160         identifier.
22161
22162         * clean.adb: Minor reformatting.
22163
22164         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
22165         gnatname.adb: Minor reformatting
22166         Add 2005 to copyright output when utility is run
22167
22168         * csets.adb: Eliminate obsolete comment
22169
22170         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
22171         Update comments.
22172
22173         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
22174
22175 2005-02-09  Sergey Rybin  <rybin@adacore.com>
22176
22177         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
22178         the difference between compact and incompact layout and add the record
22179         representation clause to the example illustrating different layouts.
22180         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
22181         component clauses").
22182
22183 2005-02-09  Florian Villoing  <villoing@adacore.com>
22184
22185         * gnat_ugn.texi: Fix typos.
22186         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
22187         @file.
22188         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
22189         in the generated documentation.
22190
22191 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
22192
22193         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
22194         longer supported.
22195         Update linker wrapper when linking with non GNU C++.
22196
22197 2005-02-09  Pascal Obry  <obry@adacore.com>
22198
22199         * gnat_ugn.texi:
22200         Document the procedure to debug the DllMain routine on Windows.
22201         Add note about -funwind-tables and mixed Ada and C/C++ programming in
22202         ZCX mode.
22203         Document new BIND qualifer /RETURN_CODES=VMS.
22204
22205 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
22206
22207         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
22208         Edited gnatmetric chapter
22209
22210 2005-02-09  Robert Dewar  <dewar@adacore.com>
22211
22212         * gnat_rm.texi:
22213         Changes to document new wide wide character support
22214         For AI-285
22215         Update documentation on Normalize_Scalars and Initialize_Scalars
22216
22217 2005-02-09  Pascal Obry  <obry@adacore.com>
22218
22219         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
22220
22221 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
22222
22223         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
22224         from the VxWorks kernel) that is needed for getting the active
22225         priority of the different tasks.
22226
22227         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
22228         Use a pragma Elaborate_Body in the spec file instead.
22229         Noticed by code reading.
22230
22231 2005-02-09  Thomas Quinot  <quinot@adacore.com>
22232
22233         * exp_util.ads: Minor correction in comment.
22234
22235 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
22236
22237         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
22238         since this procedure is now too complex to be worth inlining.
22239
22240 2005-02-09  Richard Henderson  <rth@redhat.com>
22241
22242         * utils.c (gnat_define_builtin): Remove.
22243         (gnat_install_builtins): Use build_common_builtin_nodes.
22244
22245 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
22246
22247         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
22248         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
22249         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
22250         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
22251         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
22252         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
22253         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
22254         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
22255         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
22256         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22257         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
22258         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
22259         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
22260         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
22261         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
22262         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
22263         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
22264         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
22265         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
22266         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
22267         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
22268         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
22269         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
22270         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
22271         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
22272         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
22273         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22274         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
22275         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
22276         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
22277         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22278         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
22279         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
22280         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
22281         library.
22282
22283 2005-01-27  Laurent Guerby  <laurent@guerby.net>
22284
22285         * Makefile.in: Fix a-intnam.ads from previous commit,
22286         add 2005 to copyright.
22287         * a-intman-rtems.ads: Renamed to...
22288         * a-intnam-rtems.ads:
22289
22290 2005-01-27  Laurent Guerby  <laurent@guerby.net>
22291
22292         * Makefile.in: Rename GNAT RTEMS specific files.
22293         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
22294         5rosinte.ads, 5rparame.adb: Replaced by files below.
22295         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
22296         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
22297
22298 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
22299             Laurent Guerby  <laurent@guerby.net>
22300
22301         PR ada/19488
22302         * 5rosinte.ads: Add No_Key constant.
22303         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
22304         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
22305
22306 2005-01-26  Laurent Guerby  <laurent@guerby.net>
22307
22308         PR ada/19414
22309         * i-cobol.adb (Valid_Numeric): Handle zero length case.
22310
22311 2005-01-20  Richard Henderson  <rth@redhat.com>
22312
22313         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
22314         a-intnam-linux.ads and system-linux-alpha.ads.
22315         * a-intnam-linux-alpha.ads: Remove file.
22316         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
22317         * system-linux-alpha.ads: New file.
22318
22319 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
22320
22321         PR ada/13470
22322         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
22323         set to the new string.
22324
22325 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
22326
22327         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
22328         to True.
22329
22330 2005-01-18  Richard Henderson  <rth@redhat.com>
22331
22332         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
22333         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
22334         for alpha-linux.
22335         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
22336
22337 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
22338
22339         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
22340         (GCC_ZCX_Support): Likewise.
22341
22342 2005-01-11  Bastian Blank  <waldi@debian.org>
22343
22344         * system-linux-s390.ads: Define Preallocated_Stacks.
22345         * system-linux-s390x.ads: Likewise.
22346
22347 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
22348
22349         * gnat_ugn.texi: Fix texi errors with null variables.
22350
22351 2005-01-03  Thomas Quinot  <quinot@adacore.com>
22352
22353         * gen-soccon.c: New utility program to generate g-soccon.ads
22354         automatically.
22355
22356         * socket.c, gsocket.h: Split inclusion of system header files into a
22357         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
22358
22359         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
22360         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22361         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
22362         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
22363         should not be edited by hand anymore, but should be regenerated using
22364         gen-soccon.
22365
22366 2005-01-03  Robert Dewar  <dewar@adacore.com>
22367             Ed Schonberg  <schonberg@adacore.com>
22368             Vincent Celier  <celier@adacore.com>
22369
22370         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
22371         on/off, since this is an obsolescent feature, for which we now generate
22372         a warning.
22373
22374         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
22375         warning mode is set and obsolescent usage of this attribute occurs.
22376         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
22377         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
22378         predates, and partly motivates, the adoption of the AI.
22379         Implement new Ada 2005 attribute Mod
22380
22381         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
22382         attribute Mod.
22383
22384         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
22385
22386         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
22387         pragma restrictions.
22388         New entry for Ada 2005 attribute Mod.
22389
22390         * par-prag.adb:
22391         Add recognition of new pragma Restrictions No_Dependence
22392         Recognize restriction No_Obsolescent_Features at parse time
22393
22394         * bcheck.adb: Add circuitry for checking for consistency of
22395         No_Dependence restrictions.
22396
22397         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
22398         restrictions.
22399
22400         * restrict.ads, restrict.adb: Add subprograms to deal with
22401         No_Dependence restrictions.
22402
22403         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
22404         restrictions.
22405
22406         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
22407         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
22408
22409         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
22410         dummy parameter to scng instantiation.
22411         Needed for new restriction No_Obsolescent_Features
22412
22413         * scn.adb: (Obsolescent_Check): New procedure
22414         Needed for new restriction No_Obsolescent_Features
22415
22416         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
22417         specified by AI-285, needed for implementation of AI-388 (adding greek
22418         pi to Ada.Numerics).
22419         Add new generic formal to scng, needed for new restriction
22420         No_Obsolescent_Features.
22421
22422         * s-rident.ads: Add new restriction No_Obsolescent_Features.
22423
22424         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
22425         restrictions lines.
22426         (Scan_ALI): When finding an unexpected character on an R line, raise
22427         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
22428         Ignore_Errors is True, default restrictions are set and scanning of the
22429         ALI file continues with the next line. Also, when Bad_R_Line is raised
22430         and Ignore_Errors is True, skip to the end of le line.
22431
22432         * sem_ch10.adb: Check that explicit with's do not violate
22433         No_Dependence restrictions.
22434         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
22435         illegal context clauses containing child units of instance.
22436
22437         * sem_prag.adb: Processing and checking for new No_Dependence
22438         restrictions.
22439         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
22440         analyze and check the External argument.
22441
22442         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
22443
22444 2005-01-03  Robert Dewar  <dewar@adacore.com>
22445
22446         * atree.adb: Add a fifth component to entities
22447         This allows us to add 32 flags and four new fields
22448
22449         * atree.ads: Add a fifth component to entities
22450         This allows us to add 32 flags and four new fields
22451
22452         * einfo.ads, einfo.adb: Document new fields and new flags now available
22453         Add routines for printing new fields
22454
22455         * treepr.adb: Call routines to print out additional fields if present
22456
22457 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
22458
22459         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
22460         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
22461
22462         * Makefile.in: Add support to build shared Ada libraries on solaris x86
22463         Remove gpr2make, replaced by gprmake.
22464         Remove references to gnatmem and libaddr2line.
22465         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
22466         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
22467         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
22468         a-numaux-darwin.ads and a-numaux-darwin.adb
22469         Enable mlib-tgt-lynxos.adb on lynxos.
22470
22471         * Make-lang.in: Remove rules for gpr2make.
22472         When generating sdefault.adb, do not call Relocate_Path
22473         on S3 for function Target_Name, as it is not a path.
22474         Remove references to gnatmem and libaddr2line.
22475
22476         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
22477         files.
22478
22479 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
22480
22481         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
22482         address is incompatible with its base type alignment constraints when
22483         this can be decided statically.
22484
22485 2005-01-03  Olivier Hainque  <hainque@adacore.com>
22486
22487         * decl.c (compatible_signatures_p): New function. The intended purpose
22488         is to check if two function signatures for a call-site and a callee are
22489         compatible enough for the call to be valid. The underlying purpose is
22490         to check if a call to a mapped builtin is using the right interface.
22491         The current code actually does not check antyhing - this a placeholder
22492         for future refinements.
22493         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
22494         builtin calls for convention Intrinsic.
22495
22496         * gigi.h (builtin_decl_for): Declare (new function).
22497
22498         * utils.c (gnat_install_builtins): Install the target specific builtins.
22499         (builtin_decl_for): New function, provide a dummy body for now.
22500
22501 2005-01-03  Geert Bosch  <bosch@adacore.com>
22502
22503         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
22504         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
22505         (Pred): Implement in terms of Succ.
22506
22507         * trans.c (convert_with_check): Reimplement conversion of float to
22508         integer.
22509
22510 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
22511             Vincent Celier  <celier@adacore.com>
22512
22513         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
22514         bounds can be negative, and must be declared Int, not Nat.
22515
22516         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
22517         array is checked after using the index in the array.
22518
22519         * makegpr.adb (Add_Switches): Check if there is a package for the
22520         processor. If there is no package, do not look for switches.
22521
22522 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
22523
22524         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
22525         generation of predefined stream operations (specs and bodies) should
22526         proceed. Under various restrictions these subprograms must not be
22527         generated.
22528
22529 2005-01-03  Thomas Quinot  <quinot@adacore.com>
22530
22531         * exp_dist.adb:
22532         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
22533         amount of PCS-specific code in RACW stubs generation.
22534         (Copy_Specification): Set Etype on copied formal parameter entities, as
22535         this information is needed for PolyORB stubs generation.
22536         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
22537         variable Dynamic_Async.
22538         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
22539         (Build_RPC_Receiver_Specification): Make generic again, as recent
22540         changes have allowed RPC receivers to have the same profile for both
22541         variants of the PCS.
22542         Reorganise RPC receiver generation to reduce differences between the
22543         structure of GARLIC and PolyORB RPC receivers.
22544         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
22545         PCS-specific.
22546         Simplify elaboration code for RCI packages.
22547
22548         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
22549         generation to reduce differences between the structure of GARLIC and
22550         PolyORB RPC receivers.
22551
22552         * s-stratt.adb: Fix typo in comment.
22553
22554 2005-01-03  Thomas Quinot  <quinot@adacore.com>
22555
22556         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
22557         copied from Make_Init_Call).
22558
22559         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
22560         reads and assignments on a temporary variable declared with appropriate
22561         discriminants.
22562
22563 2005-01-03  Robert Dewar  <dewar@adacore.com>
22564
22565         * i-c.adb (To_C): Raise CE if string is null and Append_Null
22566
22567 2005-01-03  Robert Dewar  <dewar@adacore.com>
22568
22569         * i-cstrin.adb (Update): Do not append a null in form called with a
22570         String. This avoids unintended behavior.
22571
22572 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
22573
22574         PR ada/17527
22575         * init.c: Fix warnings on Free BSD section.
22576
22577 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
22578
22579         PR ada/16949
22580         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
22581         xsinfo.adb).
22582
22583 2005-01-03  Vincent Celier  <celier@adacore.com>
22584
22585         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
22586         libraries when Unique_Compile is True (-u switch).
22587         (Gnatmake): ditto.
22588
22589 2005-01-03  Robert Dewar  <dewar@adacore.com>
22590
22591         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
22592         upper case letter or underscore after W, as allowed by spec.
22593
22594 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
22595
22596         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
22597         darwin port by using proper type definitions from header files.
22598         Use SIGTERM instead of SIGABRT for SIGADAABORT.
22599
22600 2005-01-03  Robert Dewar  <dewar@adacore.com>
22601
22602         * par.adb: Enhance error message handling for configuration file
22603         pragmas.
22604
22605 2005-01-03  Robert Dewar  <dewar@adacore.com>
22606
22607         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
22608         removed during the previous update (test properly for case of dividing
22609         largest negative number by -1, which generates overflow).
22610
22611 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
22612             Sergey Rybin  <rybin@adacore.com>
22613
22614         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
22615         to use as the defining identifier for a formal package.
22616         (Remove_Parent): If the instance takes place within (an instance of)
22617         a sibling, preserve private declarations of common parent.
22618
22619 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
22620
22621         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
22622         to determine whether one of the operands is a fixed-point type for
22623         which a user-defined multiplication or division operation might be
22624         defined.
22625
22626         * sem_res.adb (Valid_Conversion): The legality rules for conversions
22627         of access types are symmetric in Ada 2005: either designated type can
22628         be unconstrained.
22629
22630 2005-01-03  Vincent Celier  <celier@adacore.com>
22631
22632         * s-fileio.adb (Temp_File_Record): Change length of string component
22633         Name from L_tmpnam + 1 to max_path_len + 1.
22634
22635 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
22636
22637         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
22638         Self_Id.Deferral_Level = 0.
22639         (Do_Pending_Action): Move this function to the spec.
22640
22641         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
22642         Do_Pending_Action explicitely when needed, in case we're using
22643         No_Abort restrictions.
22644
22645         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
22646         deferral level since it will not get changed by the generated code.
22647         Keeping a default value of 1 would prevent some operations (e.g.
22648         select or delay) to proceed successfully.
22649
22650 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
22651             Robert Dewar  <dewar@adacore.com>
22652             Cyrille Comar  <comar@adacore.com>
22653
22654         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
22655         porting guide chapter (vms version).
22656         Revised doc title (removed "for native platforms") and subtitle.
22657         Add discussion on warning flag for obsolescent features. First we
22658         note that it applies to obsolete GNAT features, which was previously
22659         omitted. Second we contrast the behavior with that of the new
22660         Ada 2005 AI-368 restriction No_Obsolescent_Features.
22661         Preliminary rewriting of GNAT & libraries chapter in order to take
22662         into account default project locations & new project manager
22663         capabilities.
22664
22665 2005-01-03  Robert Dewar  <dewar@adacore.com>
22666
22667         * cstand.adb (Create_Operators): Clean up format and documentation of
22668         unary and binary operator result tables. No change in code, just
22669         reformatting and addition of comments.
22670
22671         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
22672         sem_ch2.adb: Minor reformatting
22673
22674         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
22675         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
22676         comments for Tree_Read and Tree_Write.
22677
22678 2005-01-03  Pascal Obry  <obry@adacore.com>
22679
22680         * exp_attr.ads: Minor reformatting.
22681
22682 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
22683
22684         * comperr.adb (Compiler_Abort): Add specialized message for GAP
22685         versions.
22686
22687 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
22688
22689         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
22690         whether the ancestor type is private, as may be the case with nested
22691         instantiations.
22692
22693 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
22694
22695         PR ada/19128
22696         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
22697
22698 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
22699
22700         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
22701         * utils2.c (build_unary_op): Likewise.
22702
22703 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22704
22705         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
22706
22707 2004-12-19  Richard Henderson  <rth@redhat.com>
22708
22709         * trans.c (gigi): Update gimplify_body call.
22710
22711 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
22712
22713         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
22714
22715 2004-12-07  Ed Falis  <falis@adacore.com>
22716
22717         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
22718         current task being suspended.
22719
22720         * init.c (__gnat_clear_exception): added to reset VxWorks exception
22721         count.
22722         (__gnat_map_signal): removed test for current task being suspended.
22723
22724 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
22725
22726         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
22727         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
22728         targets (such as AAMP).
22729
22730 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
22731
22732         * atree.adb (Visit_Itype): Create a new name for the generated itype,
22733         because the back-end may otherwise treat it as a redefinition of the
22734         old symbol.
22735
22736 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
22737
22738         * back_end.adb (Scan_Back_End_Switches): Accept --param.
22739
22740         * lang-specs.h: Accept --param.
22741
22742 2004-12-07  Vincent Celier  <celier@adacore.com>
22743
22744         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
22745         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
22746         Current_Body_Suffix => Ada_Body_Suffix).
22747         Take into account Externally_Built attribute.
22748
22749         * clean.adb (In_Extension_Chain): Always return False when one of the
22750         parameter is No_Project.
22751         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
22752         Ada_Language_Index).
22753         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
22754         Process_Languages for procedure Parse).
22755
22756         * gnatcmd.adb (Carg_Switches): New table.
22757         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
22758         Adapt to name changes in package Prj (Current_Spec_Suffix =>
22759         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
22760
22761         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
22762         Header_Num and function Hash are now declared in package Prj,
22763         not Prj.Com.
22764
22765         * prj.adb (Suffix_Of): New function.
22766         (Set (Suffix)): New procedure.
22767         (Hash): One function moved from Prj.Com
22768         (Is_Present, Language_Processing_Data_Of): New functions
22769         (Set): Two new procedures
22770         (Add_Language_Name, Display_Language_Name): New procedures
22771
22772         * prj.ads: (Suffix_Of): New function
22773         (Set (Suffix)): New procedure
22774         Add several types and tables for multi-language support.
22775         (Header_Num): Type moved from Prj.Com
22776         (Hash): Two functions moved from Prj.Com
22777         (Is_Present, Language_Processing_Data_Of): New functions
22778         (Set): Two new procedures
22779         (Add_Language_Name, Display_Language_Name): New procedures
22780         (Naming): Component name changes:
22781         Current_Spec_Suffix => Ada_Spec_Suffix,
22782         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
22783         Impl_Suffixes, Supp_Suffixes.
22784         (Project_Data): New components: Externally_Built, Supp_Languages,
22785         First_Language_Processing, Supp_Language_Processing, Default_Linker,
22786         Default_Linker_Path.
22787
22788         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
22789         new package Language_Processing with its attributes (Compiler_Driver,
22790         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
22791         Binder_Driver, Default_Linker).
22792
22793         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
22794         (Header_Num): Type moved to package Prj
22795
22796         * prj-env.adb: Adapt to name changes in package Prj
22797         (Current_Spec_Suffix => Ada_Spec_Suffix,
22798         Current_Body_Suffix => Ada_Body_Suffix).
22799
22800         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
22801         default to the project path, except the "-" is one of the directories
22802         in env var ADA_PROJECT_PATH.
22803         (Current_Project_Path): Global variable, replacing Project_Path
22804         that was in the body of Prj.Part.
22805         (Project_Path): New function
22806         (Set_Project_Path): New procedure
22807         Initialize Current_Project_Path during elaboration of the package
22808         Remove dependency on Prj.Com, no longer needed
22809
22810         * prj-ext.ads (Project_Path): New function
22811         (Set_Project_Path): New procedure
22812
22813         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
22814         suffix is defined for language <lang>.
22815         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
22816         accessing directly the components of Naming.
22817         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
22818         Reorganise of this package.
22819         Break procedure Check in several procedures.
22820
22821         * prj-nmsc.ads: Replace all procedures (Ada_Check,
22822         Other_Languages_Check and Language_Independent_Check) with a single
22823         procedure Check.
22824
22825         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
22826         Process_Languages, no longer needed.
22827
22828         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
22829         Current_Project_Path.
22830         Remove elaboration code, moved to the body of Prj.Ext
22831         Use new function Prj.Ext.Project_Path instead of old variable
22832         Project_Path.
22833         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
22834         When comparing with project paths on the stack, first put the resolved
22835         path in canonical case.
22836         (Parse_Single_Project): Set the path name of the project file in the
22837         tree to the normalized path.
22838
22839         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
22840         parameter Process_Languages, no longer needed.
22841         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
22842         Other_Languages_Check.
22843
22844         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
22845         to store the resolved canonical path of the project file.
22846         Remove dependency to Prj.Com, no longer needed
22847
22848         * prj-util.adb: Adapt to name changes in package Prj
22849         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
22850         Ada_Body_Suffix).
22851
22852         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
22853         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
22854         Externally_Built, Include_Option, Language_Processing.
22855
22856         * makegpr.adb: Numerous changes due to changes in packages
22857         Prj and Prj.Nmsc.
22858
22859         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
22860         default to the project path, except whe "-" is one of the directories
22861         in env var ADA_PROJECT_PATH.
22862         (Gnatls): In verbose mode, add the new section "Project Search Path:"
22863
22864 2004-12-07  Robert Dewar  <dewar@adacore.com>
22865
22866         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
22867
22868         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
22869         set -gnatR3m mode.
22870
22871         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
22872         flag. No longer needed now that we handle this in gnat1drv.adb.
22873
22874         * repinfo.ads: Minor reformatting
22875
22876 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22877             Olivier Hainque  <hainque@adacore.com>
22878             Eric Botcazou  <ebotcazou@adacore.com>
22879
22880         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
22881         TYPE_SIZE_UNIT of result type if SIZE is not specified.
22882         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
22883         of a bitfield, which we know is useless and causes trouble because of
22884         alignment implications.
22885
22886         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
22887         BSS sections.
22888         (process_attributes): Clear DECL_COMMON again when a section attribute
22889         is present.
22890         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
22891         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
22892         (create_field_decl): Special case ADDRESSABLE negative to mean
22893         "no bitfield creation", to be used by make_aligning_type. Don't
22894         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
22895         fields claimed addressable still have to be bitfields. Use
22896         value_factor_p instead of a raw binop construction to check for the
22897         position's alignment.
22898
22899 2004-12-07  Geert Bosch  <bosch@adacore.com>
22900
22901         * eval_fat.adb: Revert previous change.
22902
22903 2004-12-07  Thomas Quinot  <quinot@adacore.com>
22904             Ed Schonberg  <schonberg@adacore.com>
22905
22906         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
22907         with an implicit dereference as its prefix, use
22908         Insert_Explicit_Dereference instead of merely rewriting the prefix into
22909         an explicit dereference. This ensures that a reference to the original
22910         prefix is generated, if appropriate.
22911
22912         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
22913         dereference is rewritten to an explicit one, generate a reference to
22914         the entity denoted by its prefix using the original prefix node, so
22915         the dereference can be properly recorded as a read of the denoted
22916         access value, if appropriate.
22917
22918         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
22919         emitting 'assigned but never read' warning on a variable on the basis
22920         that it has an access type.
22921         (Check_References): Emit unreferenced warning when the scope is a
22922         subprogram body.
22923
22924 2004-12-07  Robert Dewar  <dewar@adacore.com>
22925             Ed Schonberg  <schonberg@adacore.com>
22926
22927         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
22928         intrinsic
22929
22930         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
22931         leaving call unchanged.
22932         This deals with the case where the pragma Import specified
22933         an external name, to be handled by the back end.
22934
22935         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
22936         subprogram which is Imported with convention Intrinsic if an
22937         External_Name argument is specified.
22938         (Process_Import_Or_Interface): Properly diagnose link name argument.
22939         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
22940         with Sem_Ch6.Cannot_Inline.
22941         (Process_Inline): Provide separate warning for inapplicable inline
22942         pragma.
22943         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
22944         treatment is uniform on different targets.
22945
22946 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
22947
22948         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
22949         construct is rewritten, preserve end label to permit source navigation.
22950
22951 2004-12-07  Thomas Quinot  <quinot@adacore.com>
22952
22953         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
22954         Specific_Build_Stub_Target): New subprograms.
22955         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
22956         the PCS implementation used, using the above PCS-customized subprograms.
22957         Minor reformatting.
22958         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
22959         for generation of DSA code targeted to the PolyORB PCS.
22960         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
22961         implementation of the partition communication subsystem in ancillary
22962         subprograms.
22963         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
22964         PolyORB_Support.Build_Stub_Type): New subrograms containing the
22965         PCS-specific part of Add_Stub_Type.
22966         (Insert_Partition_Check): Use runtime library function to perform
22967         E.4(19) check.
22968
22969         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
22970         (RE_Same_Partition): New entity, from s-parint.
22971
22972         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
22973
22974 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
22975
22976         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
22977         Output the copyright message on a separate line from the version
22978         message.
22979
22980 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
22981
22982         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
22983         compile-time warning.
22984
22985 2004-12-07  Robert Dewar  <dewar@adacore.com>
22986
22987         * g-regpat.adb: (Match): Change a misuse of or to or else
22988
22989 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
22990
22991         * lib-xref.adb:
22992         (Generate_Reference): Handle properly a reference to an entry formal,
22993          when an accept statement has a pragma Unreferenced for it.
22994
22995         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
22996         and the Has_Pragma_Unreferenced flag for each formal before analyzing
22997         the body, to ensure that warnings are properly emitted for each accept
22998         statement of a given task entry.
22999
23000 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
23001
23002         * Makefile.in: Add support for foreign threads on VMS.
23003
23004 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23005
23006         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
23007         Remove.
23008         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
23009
23010         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
23011
23012         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
23013         exception.
23014         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
23015
23016 2004-12-07  Robert Dewar  <dewar@adacore.com>
23017
23018         * nlists.adb (Prepend_Debug): Remove parameters and nest within
23019         Prepend.
23020         (Remove_Next_Debug): Same fix
23021
23022         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
23023         maintain back pointers now, though we did not used to, and comments
23024         were out of date).
23025         (Prepend): Remove pragma Inline.
23026         (Remove_Next): Same cleanup
23027
23028 2004-12-07  Thomas Quinot  <quinot@adacore.com>
23029
23030         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
23031         used to record an implicit dereference as a read operation on its
23032         prefix when operating under -gnatc. Necessary to avoid spurious
23033         'variable assigned but never read' warnings in that mode.
23034         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
23035         is a non-overloaded implicit dereference, call the above subprogram to
23036         ensure proper recording of references.
23037
23038 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
23039
23040         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
23041         to be resolved later as part of Analyze_Iteration_Scheme's call to
23042         Make_Index.
23043
23044 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
23045
23046         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
23047         prefix is not a scalar type, place error message on prefix, not on
23048         type entity.
23049
23050 2004-12-07  Bernard Banner  <banner@adacore.com>
23051
23052         * vxaddr2line.adb: Add support for x86 vxworks
23053
23054 2004-12-07  Thomas Quinot  <quinot@adacore.com>
23055
23056         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
23057         documentation of the behaviour of these functions when passed an IP
23058         address that has no record in the system hosts database and no reverse
23059         record in the DNS.
23060
23061         * cstand.adb, a-tags.ads: Fix typos in comment.
23062
23063 2004-12-07  Robert Dewar  <dewar@adacore.com>
23064
23065         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
23066         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
23067         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
23068         s-poosiz.ads: Minor reformatting
23069
23070         * make.adb: Minor reformatting
23071         Add some ??? comments asking for more comments
23072
23073         * s-poosiz.adb: Minor reformatting
23074         Add comments on alignment requirement
23075
23076         * sinfo.ads: Remove obsolete comment and fix typo.
23077
23078 2004-12-07  Vincent Celier  <celier@adacore.com>
23079             Sergey Rybin  <rybin@adacore.com>
23080
23081         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
23082         Files" with the new tool and package names.
23083         Reformatting to suppress most of the warnings for line too long
23084         Document the new section "Project Search Path:" in the output of
23085         gnatls -v.
23086         Add gnatmetric section
23087
23088 2004-12-07  Vincent Celier  <celier@adacore.com>
23089
23090         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
23091         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
23092         and -eit to -ept. Added qualifier
23093         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
23094
23095 2004-11-27  Andreas Schwab  <schwab@suse.de>
23096
23097         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
23098
23099 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
23100
23101         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
23102         internal implementation unit GNAT.Sockets.Thin,
23103         as their usage for sockets is non-portable (using the read and write
23104         functions from the system runtime library is fine on UNIX but won't
23105         work under Windows).
23106
23107         * mingw32.h: Update copyright notice.
23108
23109 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
23110
23111         * ada-tree.h: Minor reformatting of previous change to avoid lines
23112         longer than 79 characters.
23113
23114 2004-11-25  Olivier Hainque  <hainque@adacore.com>
23115
23116         * tb-gcc.c: GCC infrastructure based implementation of
23117         __gnat_backtrace.
23118
23119 2004-11-24  Steven Bosscher  <stevenb@suse.de>
23120
23121         * misc.c (gnat_post_options): Don't clear
23122         flag_inline_functions.
23123
23124 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
23125
23126         PR ada/17986
23127         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
23128         tree.
23129
23130 2004-11-21  Andreas Jaeger  <aj@suse.de>
23131
23132         * stylesw.adb: Change Style_Check_Subprogram_Order to
23133         Style_Check_Order_Subprograms.
23134
23135 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
23136
23137         * adaint.h, adaint.c
23138         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
23139         to avoid warnings.
23140         Add also a cast to kill another warning.
23141         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
23142         parameter with the priority class of the parent process instead of
23143         always using the NORMAL_PRIORITY_CLASS.
23144         (__gnat_dup): New function.
23145         (__gnat_dup2): New function.
23146         (__gnat_is_symbolic_link): Enable the effective body of this
23147         function when __APPLE__ is defined.
23148
23149         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
23150         Update comments.
23151
23152 2004-11-18  Olivier Hainque  <hainque@adacore.com>
23153
23154         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
23155         address of which may be used to represent "others" and "all others"
23156         choices in exception tables, instead of the current harcoded
23157         (void *)0 and (void *)1.
23158         (Setup_Exception): Do nothing in the GNAT SJLJ case.
23159
23160         * gigi.h (others_decl, all_others_decl): New decls representing the
23161         new Others_Value and All_Others_Value objects.
23162         (struct attrib): Rename "arg" component as "args", since GCC expects a
23163         list of arguments in there.
23164
23165         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
23166         corresponding objects exported by a-exexpr, instead of hardcoded dummy
23167         addresses.
23168
23169         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
23170         others_decl and all_others_decl instead of hardcoded dummy addresses
23171         to represent "others" and "all others" choices, which is cleaner and
23172         more flexible with respect to the possible eh pointer encoding policies.
23173
23174         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
23175         (process_attributes): Account for the naming change of the "args"
23176         attribute list entry component.
23177
23178         * decl.c (build_attr_list): Rename into prepend_attributes to allow
23179         cumulating attributes for different entities into a single list.
23180         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
23181         attributes for the current entity and propagate first subtype
23182         attributes to other subtypes.
23183         <E_Procedure>: Attribute arguments are attr->args and not
23184         attr->arg any more.
23185         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
23186         argument provided, as this is what GCC expects. Use NULL_TREE instead
23187         of 0 for trees.
23188
23189 2004-11-18  Robert Dewar  <dewar@adacore.com>
23190
23191         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
23192         Minor reformatting througout (including new function specs)
23193         Add ??? comments asking for clarification.
23194
23195 2004-11-18  Thomas Quinot  <quinot@adacore.com>
23196
23197         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
23198         incomplete duplicate implementation of this subprogram from butil.
23199
23200 2004-11-18  Thomas Quinot  <quinot@adacore.com>
23201
23202         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
23203         procedures factors the common processing for building an RPC receiver
23204         for an RCI package or an RACW type.
23205         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
23206         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
23207         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
23208         in use.
23209         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
23210         Add_RACW_Features.
23211         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
23212         Add_RAST_Features.
23213         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
23214         distribution subprogram identifiers that are either subprogram numbers
23215         or strings.
23216         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
23217         string distribution identifiers assigned to a given subprogram.
23218         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
23219         (Add_RAS_Dereference_TSS): Add comments.
23220         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
23221         is not referenced yet because it will be used by the PolyORB DSA
23222         implementation.
23223         (Insert_Partition_Check): Remove fossile code.
23224         (First_RCI_Subprogram_Id): Document this constant.
23225         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
23226         RAS_Access TSS.
23227         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
23228         replaced with calls to Get_Library_Unit_Name_String. Previously there
23229         were several instances of the same code in different locations in the
23230         compiler; this checkin completes the replacement of all of these
23231         instances with calls to a common subprogram.
23232         Minor reformatting.
23233
23234         * sem_dist.adb: Remove comment noting that RPC receiver generation
23235         should be disabled for RACWs that implement RASs.
23236         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
23237
23238         * sem_util.ads, sem_util.adb (Has_Stream): New function
23239         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
23240         qualified name of a library unit into the name buffer.
23241         (Note_Possible_Modification): Generate a reference only
23242         if the context comes from source.
23243
23244         * snames.ads (PCS_Names): New subtype corresponding to names of
23245         supported implementations of the Partition Communication Subsystem
23246         (PCS) (i.e. the runtime library support modules for the distributed
23247         systems annex).
23248
23249 2004-11-18  Robert Dewar  <dewar@adacore.com>
23250             Ed Schonberg  <schonberg@adacore.com>
23251
23252         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
23253         (Has_Rep_Pragma): New function
23254         (Has_Attribute_Definition_Clause): New function
23255         (Record_Rep_Pragma): Moved here from sem_ch13.adb
23256         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
23257
23258         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
23259
23260         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
23261         (Expand_Pragma_Psect_Object): New procedure
23262         These procedures contain the revised and cleaned up processing for
23263         these two pragmas. This processing was formerly in Sem_Prag, but
23264         is more appropriately moved here. The cleanup involves making sure
23265         that the pragmas are properly attached to the tree, and that no
23266         nodes are improperly shared.
23267
23268         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
23269         pragmas to Exp_Prag, which is more appropriate.
23270         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
23271         check for duplicates Remove use of Is_Psected flag, no longer needed.
23272         Use new Make_String_Literal function with string.
23273
23274         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
23275         that are functions return universal values, that have to be converted
23276         to the context type.
23277         Use new Make_String_Literal function with string.
23278         (Get_Stream_Convert_Pragma): New function, replaces the use of
23279         Get_Rep_Pragma, which had to be kludged to work in this case.
23280
23281         * freeze.adb: Use new Has_Rep_Pragma function
23282
23283         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
23284         function with string.
23285         Use new Has_Rep_Pragma function.
23286
23287         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
23288         string argument.
23289
23290 2004-11-18  Robert Dewar  <dewar@adacore.com>
23291
23292         * errout.ads, errout.adb: (First_Sloc): New function
23293
23294         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
23295         check (-gnatyx) instead of being included as a redundant construct
23296         warning.
23297
23298         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
23299         Style_Check_Order_Subprograms.
23300
23301         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
23302         stylesw.adb: Add Style_Check_Xtra_Parens
23303
23304         * usage.adb: Add line for -gnatyx (check extra parens)
23305
23306         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
23307
23308 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
23309             Robert Dewar  <dewar@adacore.com>
23310
23311         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
23312         discriminant of a constrained subtype, analyze the copy of the
23313         corresponding constraint, because in some cases it may be only
23314         partially analyzed.
23315         Removes long-lived ??? comments.
23316
23317         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
23318         handled controlled or secondary-stack expressions within the
23319         iteration_scheme of a loop.
23320
23321         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
23322         bounds that may contain functions calls, to prevent memory leaks when
23323         the bound contains a call to a function that uses the secondary stack.
23324         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
23325         generate temporaries for loop bounds that might contain function calls
23326         that require secondary stack and/or finalization actions.
23327
23328         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
23329         selected component and the selector is overloadable (not just a
23330         function) treat as function call, Analyze_Call will disambiguate if
23331         necessary.
23332         (Analyze_Selected_Component): Do not generate an actual subtype for the
23333         selected component if expansion is disabled. The actual subtype is only
23334         needed for constraint checks.
23335         (Analyze_Allocator): If restriction No_Streams is set, then do
23336         not permit objects to be declared of a stream type, or of a
23337         composite type containing a stream.
23338
23339         * restrict.ads: Remove the a-stream entry from Unit_Array, since
23340         No_Streams no longer prohibits with'ing this package.
23341
23342         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
23343         discriminants, but the parent base has unknown discriminants, there is
23344         no discriminant constraint to inherit. Such a discrepancy can arise
23345         when the actual for a formal type with unknown discriminants is a
23346         similar private type whose full view has discriminants.
23347         (Analyze_Object_Declaration): If restriction No_Streams is set, then
23348         do not permit objects to be declared of a stream type, or of a
23349         composite type containing a stream.
23350
23351 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
23352
23353         * exp_dbug.ads: Update documentation to reflect simpler encoding for
23354         protected operations.
23355
23356         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
23357         generated name, it complicates decoding in gdb and hinders debugging
23358         of protected operations.
23359         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
23360         flag for the protected entry barrier function.
23361         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
23362         flag for the protected entry function.
23363
23364 2004-11-18  Nicolas Setton  <setton@adacore.com>
23365
23366         * expect.c: Define __unix__ when __APPLE__ is defined.
23367
23368         * Makefile.in: Inform the value of the variable GMEM_LIB in the
23369         Darwin-specific section.
23370
23371         * lang-specs.h: Change the placement of the %1 marker.
23372         Works around the fact that gcc adds -fPIC by default under Darwin.
23373
23374 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
23375
23376         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
23377         type of the object with the packed array type, set the Analyzed flag
23378         on the object if it is an entity or simple indexed component, to avoid
23379         spurious type errors.
23380
23381 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
23382
23383         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
23384         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
23385         separate line from the version message.
23386
23387 2004-11-18  Ed Falis  <falis@adacore.com>
23388
23389         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
23390         vthreads.
23391         (init_float): Eliminate initialization of floating point status for
23392         AE653. The instructions have no effect for vThreads.
23393
23394 2004-11-18  Vincent Celier  <celier@adacore.com>
23395
23396         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
23397         gnatbind is invoked with -shared.
23398
23399 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
23400
23401         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
23402         for Detect_Blocking which is redundant with the check done within the
23403         procedure Protected_Single_Entry_Call.
23404         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
23405         Detect_Blocking which is redundant with the check done within the
23406         procedure Protected_Single_Entry_Call.
23407
23408 2004-11-18  Vincent Celier  <celier@adacore.com>
23409
23410         * makegpr.adb (Compile): Put the compiling switches (in package
23411         Compiler and on the command line) immediately after "-c", instead of
23412         at the end of the command line invocation of the compiler, when
23413         compiling a non-Ada file.
23414         (Build_Global_Archive): When there is no need to rebuild the archive,
23415         set Global_Archive_Exists, so that the archive is passed to the linker
23416         if one is needed.
23417
23418 2004-11-18  Robert Dewar  <dewar@adacore.com>
23419             Sergey Rybin  <rybin@adacore.com>
23420
23421         * gnat_ugn.texi:
23422         Remove extra paren check from list of checks for redundant constructs
23423         Add documentation of new -gnatyx style check (check extra parens)
23424         Remove paragraph about gnatelim debug options.
23425
23426         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
23427         objects rather than forbidding dependencies on the package Ada.Streams.
23428
23429         * sinfo.ads: Add ??? note that we should document pragmas passed to
23430         back end.
23431
23432         * g-expect.ads: Fix a few typos in the comments.
23433
23434 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
23435
23436         * misc.c (gnat_handle_option): Use %< and %> for quoting in
23437         warning message.
23438
23439 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
23440
23441         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
23442
23443 2004-11-07  Andreas Schwab  <schwab@suse.de>
23444
23445         * Makefile.in (install-gnatlib): Remove spurious hyphen.
23446
23447 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
23448
23449         PR ada/18228
23450         * Makefile.in (darwin): Set soext to .dylib.
23451
23452 2004-10-26  Vincent Celier  <celier@gnat.com>
23453             Thomas Quinot   <quinot@act-europe.fr>
23454
23455         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
23456         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
23457         there is no use of GNAT.Sockets.Constants.
23458         Remove remaining pragma Import for C_Write
23459         Remove C_Read and C_Write from internal implementation unit
23460         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
23461         the read and write functions from the system runtime library is fine
23462         on UNIX but won't work under Windows).
23463
23464         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
23465         (Check_Selector): Use C_Recv instead of C_Read.
23466         Selectors are the GNAT.Sockets abstraction to perform a select()
23467         call on a set of descriptors. To allow abortion of an ongoing
23468         select operation, some data is written to a dedicated socket that
23469         is always monitored.
23470         Under Windows, the write and read library functions cannot operate
23471         on sockets, so we need to use send and recv instead, which is portable
23472         across all supported platforms.
23473
23474         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
23475         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
23476         (using the read and write functions from the system runtime library is
23477         fine on UNIX but won't work under Windows).
23478
23479 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
23480
23481         * mlib-tgt-darwin.adb: New file.
23482
23483         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23484         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23485         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
23486         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
23487         subprogram body.
23488
23489         * Makefile.in: Add support for building shared libraries under Darwin.
23490         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
23491         the low level EH init subprogram to be called from __gnat_initialize.
23492
23493         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
23494         indicates which options to pass to the archive indexer.
23495
23496         * mlib-utl.adb: Add support for calling ranlib with additional
23497         options. This is needed for instance under Mac OS X.
23498         (Ranlib_Options): New global variable, used to store the potential
23499         options to pass to ranlib.
23500         (Ar): Use Ranlib_Options when spawning ranlib.
23501         (Initialize): Set the value of ranlib option.
23502
23503 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
23504
23505         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
23506         instead of 8K, to reflect the real potential needs for stack-checking
23507         in the ZCX case.
23508
23509 2004-10-26  Pascal Obry  <obry@gnat.com>
23510
23511         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
23512
23513         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
23514         Windows only the initial thread stack size can be set so it is good to
23515         start we a low stack size.
23516         The OS will adjust the size as needed.
23517
23518 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
23519             Nicolas Setton  <setton@act-europe.fr>
23520
23521         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
23522         "__unix__" instead of "unix".
23523         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
23524         sections were just mistakenly ignored. The former is
23525         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
23526         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
23527         of hpux. This prevents an unwanted definition of the symbol
23528         convert_addresses in adaint.o.
23529
23530 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
23531
23532         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
23533         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
23534
23535 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
23536
23537         * a-filico.ads, a-filico.adb: fix incorrect header.
23538
23539 2004-10-26  Javier Miranda  <miranda@gnat.com>
23540
23541         * a-ststio.ads: Fix typo in identifier
23542
23543 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
23544
23545         * sem_ch4.adb: Minor reformatting.
23546
23547 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
23548
23549         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
23550         enabled, check the result of unary and binary operations when the
23551         expression is the right-hand side of an assignment.
23552
23553 2004-10-26  Vincent Celier  <celier@gnat.com>
23554
23555         * clean.adb (Delete): Do not output warnings when in quiet output and
23556         not in verbose mode.
23557         (Force_Deletions): New Boolean flag, defaulted to False
23558         (Delete): Only delete a file if it is writable, and when
23559         Force_Deletions is True.
23560         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
23561         (Usage): Line for new switch -f
23562         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
23563         own.
23564
23565 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
23566
23567         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
23568         JM type only if its size matches that of the wrapper.  When a size is
23569         prescribed and the field is not aliased, remove the wrapper of a JM
23570         type only if the size is not greater than that of the packed array.
23571         (gnat_to_gnu_entity): Change the extension of packed array wrappers
23572         from LJM to JM.
23573
23574 2004-10-26  Geert Bosch  <bosch@gnat.com>
23575
23576         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
23577         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
23578         (Pred): Implement in terms of Succ.
23579
23580 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
23581
23582         * exp_aggr.adb (Safe_Component): An aggregate component that is an
23583         unchecked conversion is safe for in-place use if the expression of the
23584         conversion is safe.
23585         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
23586         be expandable in place even if the aggregate does not come from source.
23587         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
23588         designated object of an allocator in place, rather than building it
23589         first on the stack. The previous scheme forces a full copy of the array,
23590         and may be altogether unsusable if the size of the array is too large
23591         for stack allocation.
23592
23593 2004-10-26  Robert Dewar  <dewar@gnat.com>
23594
23595         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
23596         compares if the component is atomic.
23597
23598         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
23599         array assignment if the component type is atomic.
23600
23601 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
23602             Eric Botcazou  <ebotcazou@act-europe.fr>
23603
23604         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
23605         is aliased and is a by_reference type, do not pass by copy.
23606         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
23607         detect whether the call is in the right side of an assignment or
23608         the expression of an object declaration.  Recurse on component
23609         association within aggregates.
23610         Call it in the condition that determines whether the temporary is
23611         necessary for correct stack-checking.
23612
23613 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
23614
23615         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
23616         RACW_Type, used in the PolyORB version.
23617         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
23618         version and the GARLIC version.
23619
23620         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
23621         Rename RCI_Info to RCI_Locator for better consistency between the
23622         GARLIC and PolyORB versions of the distributed systems annex.
23623         (DSA_Implementation_Name): This enumeration lists the possible
23624         implementations of the Partition Communication Subsystem for the
23625         Distributed Systems Annex (DSA). The three available implementations
23626         are the dummy stub implementation (No_DSA), and two versions based on
23627         two different distribution runtime libraries: GARLIC and PolyORB. Both
23628         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
23629         technology.
23630         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
23631         that organization.
23632
23633         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
23634         between the GARLIC and PolyORB versions of the distributed systems
23635         annex.
23636         Remove RE_Unbounded_Reclaim_Pool since it is unused.
23637
23638 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
23639
23640         * gnat1drv.adb: Suppress calling the back end when
23641         Frontend_Layout_On_Target is true.
23642
23643 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
23644
23645         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
23646         Set_Read_Only): New subprograms.
23647         These new routines allow the user to set or unset the Owner execute
23648         and Owner write permission flags on a file.
23649
23650         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
23651         GNAT.OS_Lib.Set_Executable instead of rolling our own.
23652
23653 2004-10-26  Matthew Gingell  <gingell@gnat.com>
23654
23655         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
23656
23657 2004-10-26  Pascal Obry  <obry@gnat.com>
23658
23659         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
23660         memory before the faulting page we properly test the process read
23661         access for this address using appropriate Win32 routine.
23662         (HPUX sections): guard with "__hpux__" instead of "hpux".
23663
23664 2004-10-26  Robert Dewar  <dewar@gnat.com>
23665
23666         * lib-xref.adb (Generate_Reference): Don't complain about reference to
23667         entry parameter if pragma Unreferenced set, since we do not properly
23668         handle the case of multiple parameters.
23669
23670 2004-10-26  Vincent Celier  <celier@gnat.com>
23671
23672         * prj-env.adb: (Contains_ALI_Files): New Boolean function
23673         (Ada_Objects_Path.Add): For a library project, add to the object path
23674         the library directory only if there is no object directory or if the
23675         library directory contains ALI files.
23676         (Set_Ada_Paths.Add.Recursive_Add): Ditto
23677
23678 2004-10-26  Vincent Celier  <celier@gnat.com>
23679
23680         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
23681         extension of library projects.
23682
23683         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
23684         path defaults to ".:<prefix>/lib/gnat".
23685         (Parse): For an extending all project, allow direct import of a project
23686         that is virtually extended.
23687
23688         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
23689         the specified name is directly imported, return its ID. Otherwise, if
23690         an extension of this project is imported, return the ID of the
23691         extension.
23692
23693 2004-10-26  Robert Dewar  <dewar@gnat.com>
23694
23695         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
23696         (Sub3): New procedure, used by Scaled_Divide
23697         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
23698         correct more than one instance of failure to propagate carries
23699         correctly.
23700         (Double_Divide): Handle overflow case of largest negative number
23701         divided by minus one.
23702
23703         * s-arit64.ads (Double_Divide): Document that overflow can occur in
23704         the case of a quotient value out of range.
23705         Fix comments.
23706
23707 2004-10-26  Robert Dewar  <dewar@gnat.com>
23708
23709         * s-bitops.adb (Bit_Eq): Remove redundant check.
23710
23711         * s-bitops.ads: Minor comment updates
23712         Change some occurrences of Address to System.Address
23713
23714         * s-carsi8.ads: Fix minor cut-and-paste error in comments
23715
23716 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
23717
23718         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
23719         accessibility check to prefix that is a protected operation.
23720
23721 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
23722
23723         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
23724         empty, post message on stub.
23725
23726 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
23727             Javier Miranda  <miranda@gnat.com>
23728
23729         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
23730         current instance appears within a unit that is directly in the context
23731         of the main unit.
23732         Used to determine whether the body of the instance should be analyzed
23733         immediately after its spec, to make its subprogram bodies available
23734         for front-end inlining.
23735         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
23736         constraint is not allowed on the component type (AARM 12.5.3(3))
23737
23738 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
23739
23740         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
23741         'Storage_Pool): enhance, document & limit detection of non-sharable
23742         internal pools.
23743
23744         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
23745
23746         * s-pooglo.ads: Add more documentation now that this pool is properly
23747         documented.
23748
23749 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
23750
23751         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
23752         or protected type with discriminants, do not constrain the
23753         corresponding record type if the subtype declaration has no
23754         discriminant constraints. This can be the case in source code, or in
23755         the subtype declaration created to rename an actual type within an
23756         instantiation.
23757
23758 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
23759
23760         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
23761         different kind of stub (possibly wrong name for file), do not check
23762         for conformance.
23763         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
23764         includes call to some function that returns an unconstrained type, do
23765         not inline.
23766
23767 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
23768
23769         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
23770         appear in the code for the main unit. Dependencies among units in the
23771         context of the main unit are established when those other units are
23772         compiled. Otherwise spurious elaboration constraints can generate
23773         incorrect elaboration circularities.
23774
23775 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
23776             Ed Schonberg   <schonberg@gnat.com>
23777
23778         * sem_util.adb (Is_Aliased_View): Defend against the case where this
23779         subprogram is called with a parameter that is not an object name. This
23780         situation arises for some cases of illegal code, which is diagnosed
23781         later, and in this case it is wrong to call Is_Aliased, as that might
23782         cause a compiler crash.
23783         (Explain_Limited_Type): Refine previous fix to include
23784         inherited components of derived types, to provide complete information.
23785
23786         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
23787         is the prival for a protected object.
23788         It is necessary to mark this entity as a variable, in addition to
23789         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
23790         modified to avoid checking the Aliased flag on entities that are not
23791         objects. (Checking that flag for non-objects is erroneous and could
23792         lead to a compiler crash).
23793
23794 2004-10-26  Robert Dewar  <dewar@gnat.com>
23795
23796         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
23797         X_Frac = 0.5, then we know that the number X must be positive.
23798         (Succ): Remove the same redundant test, and also fix the primary test
23799         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
23800         Minor reformatting
23801         (Decompose): Add fuller comments to spec
23802
23803 2004-10-26  Pascal Obry  <obry@gnat.com>
23804
23805         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
23806         validity (process must have read access). Set to 0 in all other cases.
23807         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
23808         violation on Win32.
23809         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
23810         segmentation violation.
23811
23812 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
23813
23814         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
23815         whose type is a constructed subtype of an aliased object with an
23816         unconstrained nominal subtype, convert the actual to the constructed
23817         subtype before taking its address.
23818
23819 2004-10-26  Vincent Celier  <celier@gnat.com>
23820
23821         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
23822         (Is_Path_Name_Case_Sensitive): New function
23823
23824         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
23825         (Base_Name, Simple_Name, Current_Directory, Compose,
23826         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
23827         the result.
23828
23829 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
23830             Vasiliy Fofanov  <fofanov@act-europe.fr>
23831             Vincent Celier   <celier@gnat.com>
23832
23833         * gnat_ugn.texi: Generalize "finding memory problems" section into a
23834         "memory management issues" section and document some of the useful
23835         memory pools provided as part of the GNAT library.
23836         Remove "virtual" from declaration of A::method2 in
23837         the simple example of Ada/C++ mixed system.
23838         Library Projects may be virtually extended: their virtual extensions
23839         are not Library Projects.
23840         Added section on extending project hierarchies.
23841
23842 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
23843
23844         * adaint.c (__gnat_get_libraries_from_registry): Cast value
23845         to LPBYTE.
23846         (__gnat_portable_spawn): Remove const.
23847
23848         * mingw32.h (MAXPATHLEN): Check for previous definition.
23849
23850 2004-10-17  Matthias Klose  <doko@debian.org>
23851
23852         * gnatvsn.ads: Set gnat library version to 4.0.
23853
23854 2004-10-05  Vincent Celier  <celier@gnat.com>
23855
23856         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
23857
23858 2004-10-04  Laurent Guerby  <laurent@guerby.net>
23859
23860         PR ada/15156
23861         * Makefile.in: Define and use RANLIB_FLAGS.
23862
23863 2004-10-04  Pascal Obry  <obry@gnat.com>
23864
23865         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
23866         other x86 platforms).
23867
23868 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
23869
23870         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
23871         in general and triggers stack alignment adjustment for thread entry
23872         points on targets where this is necessary.
23873
23874 2004-10-04  Bernard Banner  <banner@gnat.com>
23875
23876         PR ada/13897
23877         * Makefile.in: Add section for powerpc linux
23878         Add variant i-vxwork-x86.ads
23879
23880         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
23881
23882 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
23883
23884         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
23885         table registration calls when need be. Ensures no reference to the crt
23886         ctors symbol are issued in the SJLJ case, which avoids possible
23887         undefined symbol errors in the case of modules to be statically linked
23888         with the kernel.
23889
23890 2004-10-04  Javier Miranda  <miranda@gnat.com>
23891
23892         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
23893         in-line the code corresponding to subprogram Analyze_Actuals. In
23894         addition, analyze the actuals only in case of subprogram call.
23895
23896 2004-10-04  Ed Falis  <falis@gnat.com>
23897
23898         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
23899
23900 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
23901
23902         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
23903         in the documentation.
23904
23905 2004-10-04  Robert Dewar  <dewar@gnat.com>
23906
23907         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
23908         IF and CASE.
23909         (Analyze_Block_Statement): Add circuitry to detect following dead code
23910         (Check_Unreachable_Code): Handle case of block exit
23911
23912 2004-10-04  Robert Dewar  <dewar@gnat.com>
23913
23914         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
23915         (XMatchD): Avoid warning for Logic_Error call
23916
23917 2004-10-04  Robert Dewar  <dewar@gnat.com>
23918
23919         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
23920         consider expressions buried within a procedure actual to be an actual.
23921         This caused some blowups with uses of packed slices within a procedure
23922         actual.
23923
23924 2004-10-04  Robert Dewar  <dewar@gnat.com>
23925
23926         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
23927         longer need to be initialized to zero.
23928         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
23929         initialized to zero.
23930
23931         * checks.adb (Expr_Known_Valid): Packed arrays are now always
23932         considered valid, even if the representation is modular. That's correct
23933         now that we no longer initialize packed modular arrays to zero.
23934
23935         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
23936         suffixes. These are now documented as the only cases in which the
23937         debugger ignores outer records.
23938         Previously, the spec allowed arbitrary suffixes for this purpose.
23939         Change name of LJM to JM for packed array pad records
23940         Create separate section on packed array handling, and add a whole new
23941         set of comments to this section describing the situation with packed
23942         modular types and justification requirements depending on endianness.
23943
23944 2004-10-04  Robert Dewar  <dewar@gnat.com>
23945
23946         * a-except.adb: Add a comment for last change
23947
23948         * einfo.ads: Minor spelling correction in comment
23949
23950         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
23951
23952         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
23953         messages.
23954
23955         * sem_util.ads: Minor comment update
23956
23957 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23958
23959         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
23960         Inline_Always when in Configurable_Run_Time mode.
23961
23962         * sem_prag.adb (Process_Convention): If entity is an inherited
23963         subprogram, apply convention to parent subprogram if in same scope.
23964         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
23965         when in Configurable_Run_Time mode.
23966
23967 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23968
23969         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
23970         class_wide type after component list has been inherited.
23971
23972 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23973
23974         * sem_ch12.adb (Check_Generic_Actuals): New predicate
23975         Denotes_Previous_Actual, to handle properly the case of a private
23976         actual that is also the component type of a subsequent array actual.
23977         The visibility status of the first actual is not affected when the
23978         second is installed.
23979         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
23980         make fully recursive the treatment of formals of packages declared
23981         with a box.
23982         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
23983         the above on exit from an instantiation.
23984         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
23985         current instantiation which is now complete.
23986         (Analyze_Package_Instantiation): No instantiated body is needed if the
23987         main unit is generic. Efficient, and avoid anomalies when a instance
23988         appears in a package accessed through rtsfind.
23989
23990 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23991
23992         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
23993         do not generate a declaration for a temporary if the call is part of a
23994         library-level instantiation.
23995
23996 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
23997
23998         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
23999         searching for a limited component to flag.
24000
24001         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
24002         expansion of Input, to account for the fact that the implicit call
24003         generated by the attribute reference must freeze the user-defined
24004         stream subprogram. This is only relevant to 'Input, because it can
24005         appear in an object declaration, prior to the body of the subprogram.
24006
24007         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
24008         expansion can proceed and further errors uncovered.
24009         (Minor clean up): Fix cases of using | instead of \ for continuation
24010         messages.
24011
24012 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24013
24014         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
24015
24016         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
24017         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
24018         Use gcc_assert and gcc_unreachable.
24019
24020         * decl.c (gnat_to_gnu_entity, case object): Check and process a
24021         specified alignment before validating size.
24022         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
24023         stripped-down declaration for the type of the inner field when making
24024         a JM type.
24025
24026         * utils.c (finish_record_type): Do not compute the size in units
24027         incrementally. Instead compute it once for the rep clause case.
24028         Use gcc_assert and gcc_unreachable.
24029
24030 2004-10-04  Vincent Celier  <celier@gnat.com>
24031
24032         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
24033         in file name.
24034         (Is_Valid_Path_Name): Take '/' as a directory separator.
24035
24036 2004-10-04  Vincent Celier  <celier@gnat.com>
24037
24038         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
24039         (Extended_Project) only if Extended_Project is defined, to avoid
24040         assertion error.
24041         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
24042         resolved path.
24043         (Parse_Single_Project): Ditto.
24044
24045         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
24046         Add_To_Project_Path for virtual projects.
24047
24048 2004-10-04  Vincent Celier  <celier@gnat.com>
24049
24050         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24051         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24052         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24053         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
24054         parameter Options_2.
24055
24056         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
24057         Build_Dynamic_Library with an empty Options_2.
24058
24059         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
24060         default anymore.
24061
24062         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
24063         directory separator, if any.
24064         (Gprmake): Do not allow mains on the command line for library projects.
24065         Do not attempt to link when the project is a library project.
24066         (Library_Opts): New table to store Library_Options.
24067         (Build_Library): If Library_Options is specified, pass these options
24068         when building a shared library.
24069
24070 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
24071
24072         * s-tposen.adb (Service_Entry): The object must be always unlocked at
24073         the end of this procedure now that the unlock operation was inserted
24074         by the expander.
24075
24076 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
24077
24078         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
24079         corresponding to the Preallocated_Stacks flags in System.
24080         (Get_Target_Parameters): Including the processing for
24081         Preallocated_Stacks.
24082
24083         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
24084         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
24085         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
24086         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
24087         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
24088         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
24089         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
24090         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
24091         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
24092         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
24093         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
24094         used to signal whether the compiler creates the required stacks and
24095         descriptors for the different tasks (when True) or it is done by the
24096         underlying operating system at run time (when False).
24097         It is initially set to False in all targets.
24098
24099         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
24100         if it is supported by the target.
24101         (Make_Task_Create_Call): Pass the stack address if it has been
24102         previously created. Otherwise pass a Null_Address.
24103
24104         * snames.adb: Add _stack.
24105
24106         * snames.ads: Add Name_uStack. Required to allow the expander to
24107         statically allocated task stacks.
24108
24109         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
24110         Stack_Address argument.
24111         Check that its value is equal to Null_Address because this target does
24112         not support the static stack allocation.
24113
24114 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
24115
24116         * usage.adb: Change "pragma inline" to "pragma Inline" in information
24117         and error messages
24118
24119 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
24120
24121         * exp_dist.adb: Split declaration of asynchronous flag out of
24122         Add_RACW_Read_Attribute.
24123         Minor reformatting for better alignment with PolyORB version.
24124         Store the entity for the asynchronous flag of an RACW, rather than the
24125         expression, in the asynchronous flags table. This will allow this flag
24126         to be used in other subprograms beside Add_RACW_Read_Attribute.
24127
24128 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
24129
24130         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
24131         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24132         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
24133         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
24134         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
24135         sockets constant MSG_NOSIGNAL (Linux-specific).
24136         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
24137         all Send operations.
24138         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
24139         from trigerring SIGPIPE.
24140         Rename components to avoid clash with Ada 2005 possible reserved
24141         word 'interface'.
24142         (Check_Selector): When the select system call returns with an error
24143         condition, propagate Socket_Error to the caller.
24144
24145 2004-10-01  Jan Hubicka  <jh@suse.cz>
24146
24147         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
24148
24149 2004-09-23  Robert Dewar  <dewar@gnat.com>
24150
24151         PR ada/17540
24152         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
24153         instead do this at freeze time (we won't do it if there is an address
24154         clause).
24155         Change "pragma inline" to "pragma Inline" in information and error
24156         messages.
24157         Minor reformatting.
24158
24159         * freeze.adb (Check_Address_Clause): Remove previous change, not the
24160         right way of doing things after all.
24161         (Freeze_Entity): For object, set Is_Public for imported entities
24162         unless there is an address clause present.
24163
24164 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
24165
24166         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
24167         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
24168         ensures proper handling of types with rep clauses, which might have
24169         their TYPE_SIZE set already.
24170
24171 2004-09-21  Robert Dewar  <dewar@gnat.com>
24172
24173         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
24174         packed array types in both little- and big-endian cases. This change
24175         ensures that we no longer count on the unused bits being initialized
24176         for such types (and in particular ensures that equality testing will
24177         only read the relevant bits).
24178         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
24179         These changes mean that we no longer need to initialize small packed
24180         arrays.
24181         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
24182         optimization to an LJM field as to its parent field.
24183
24184         * ada-tree.h, trans.c, utils.c, utils2.c:
24185         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
24186
24187 2004-09-20  Jan Hubicka  <jh@suse.cz>
24188
24189         * utils.c (gnat_finalize): Remove.
24190         (end_subprog_body): Directly call cgraph_finalize_function;
24191         do not lower the nested functions.
24192
24193 2004-09-20  Robert Dewar  <dewar@gnat.com>
24194
24195         PR ada/17540
24196         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
24197         if an address clause is present, since that means that the Import
24198         should be ignored.
24199
24200 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
24201
24202         * 5tsystem.ads: Removed, no longer used.
24203
24204 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
24205             Zack Weinberg  <zack@codesourcery.com>
24206
24207         * ada-tree.def: Use tree_code_class enumeration constants
24208         instead of code letters.
24209         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
24210         Update for new tree-class enumeration constants.
24211
24212 2004-09-17  Vincent Celier  <celier@gnat.com>
24213
24214         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
24215         capabilities of the general project manager.
24216
24217 2004-09-09  Vincent Celier  <celier@gnat.com>
24218
24219         * a-direct.ads: Add pragma Ada_05
24220         (Directory_Entry_Type): Give default value to component Kind to avoid
24221         not initialized warnings.
24222
24223         * a-direct.adb (Current_Directory): Remove directory separator at the
24224         end.
24225         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
24226         an existing directory.
24227         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
24228         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
24229         Convert the result to File_Size.
24230
24231         * prj.ads: (Project_Error): New exception
24232
24233         * prj-attr.adb: Except in procedure Initialize, Fail comes from
24234         Prj.Com, not from Osint.
24235         (Attrs, Package_Attributes): Tables moved to private part of spec
24236         (Add_Attribute, Add_Unknown_Package): Moved to new child package
24237         Prj.Attr.PM.
24238         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
24239         Prj.Project_Error after call to Fail.
24240         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
24241         Fail. Check that package name is not already in use.
24242
24243         * prj-attr.ads: Comment updates to indicate that all subprograms may be
24244         used by tools, not only by the project manager, and to indicate that
24245         exception Prj.Prj_Error may be raised in case of problem.
24246         (Add_Unknown_Package, Add_Attribute): Moved to new child package
24247         Prj.Attr.PM.
24248         (Attrs, Package_Attributes): Table instantiations moved from the body to
24249         the private part to be accessible from Prj.Attr.PM body.
24250
24251         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
24252         from new package Prj.Attr.PM.
24253         (Parse_Attribute_Declaration): Call Add_Attribute from new package
24254         Prj.Attr.PM.
24255
24256         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
24257
24258         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
24259         instead of Elaboration_Checks).
24260
24261         * a-calend.adb: Minor reformatting
24262
24263 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24264
24265         * gigi.h (maybe_pad_type): New declaration.
24266         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
24267
24268         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
24269
24270         * cuintp.c: Convert to use buildN.
24271
24272         * decl.c (maybe_pad_type): No longer static.
24273         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
24274         target pointer.
24275         Convert to use buildN.
24276
24277         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
24278         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
24279         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
24280         RHS.
24281         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
24282         (gnat_gimplify_expr, case ADDR_EXPR): New case.
24283         Convert to use buildN.
24284
24285         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
24286         TREE_READONLY for const.
24287         Convert to use buildN.
24288
24289         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
24290         (create_var_decl): Refine when TREE_STATIC is set.
24291         Convert to use buildN.
24292
24293 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
24294
24295         * gnat_ugn.texi: Delete text relating to checking of ali and object
24296         consistency.
24297
24298         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
24299         routines.
24300
24301 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
24302
24303         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
24304         pragmas recognized by GNAT.
24305
24306         * gnat_rm.texi: Document pragma Detect_Blocking.
24307
24308         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
24309         raise Program_Error if called from a protected operation.
24310
24311         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
24312         the protected action nesting level.
24313         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
24314         protected action nesting level.
24315         (Unlock): When pragma Detect_Blocking is active decrease the protected
24316         action nesting level.
24317
24318         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
24319         Protected_Action_Nesting.
24320
24321         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
24322         Common_ATCB record. It contains the dynamic level of protected action
24323         nesting for each task. It is needed for checking whether potentially
24324         blocking operations are called from protected operations.
24325         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
24326         Detect_Blocking is active or not in the partition.
24327
24328         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
24329         raise Program_Error if called from a protected operation.
24330         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
24331         Program_Error if called from a protected operation.
24332         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
24333         Program_Error if called from a protected operation.
24334
24335         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
24336         raise Program_Error if called from a protected operation.
24337
24338         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
24339         raise Program_Error if called from a protected operation, and increase
24340         the protected action nesting level.
24341         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
24342         Program_Error if called from a protected operation, and increase the
24343         protected action nesting level.
24344         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
24345         protected action nesting level.
24346
24347         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
24348         raise Program_Error if called from a protected operation, and increase
24349         the protected action nesting level.
24350         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
24351         Program_Error if called from a protected operation, and increase the
24352         protected action nesting level.
24353         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
24354         raise Program_Error if called from a protected operation.
24355         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
24356         active, raise Program_Error if called from a protected operation.
24357         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
24358         protected action nesting level.
24359
24360         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
24361         insertion of the statement raising Program_Error. The run time
24362         contains the required machinery for handling that.
24363
24364         * sem_util.ads: Change comment associated to procedure
24365         Check_Potentially_Blocking_Operation.
24366         This procedure does not insert a call for raising the exception because
24367         that is currently done by the run time.
24368
24369         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
24370
24371         * init.c: Add the global variable __gl_detect_blocking that indicates
24372         whether pragma Detect_Blocking is active (1) or not (0). Needed for
24373         making the pragma available at run time.
24374         (__gnat_set_globals): Pass and update the detect_blocking parameter.
24375
24376         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
24377         pragma Detect_Blocking is active.
24378
24379         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
24380
24381         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
24382         DB is found in the ali file. Any unit compiled with pragma
24383         Detect_Blocking active forces its effect in the whole partition.
24384
24385         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
24386         Detect_Blocking is active and delay is called from a protected
24387         operation.
24388
24389         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
24390         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
24391         Detect_Blocking is active (0 otherwise).
24392         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
24393         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
24394         otherwise).
24395
24396 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
24397
24398         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
24399         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
24400         package.
24401
24402         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
24403         (Register_Receiving_Stub): Add Subp_Info formal parameter.
24404         Update API in placeholder implemetation of s-parint to reflect changes
24405         in distribution runtime library.
24406
24407         * sem_ch3.adb (Expand_Derived_Record): Rename to
24408         Expand_Record_Extension.
24409
24410         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
24411         primitive operations of potentially distributed object types that have
24412         non-controlling anonymous access formals.
24413
24414         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
24415         subprogram.
24416         New implementation of expansion for remote access-to-subprogram types,
24417         based on the RACW infrastructure.
24418         This version of sem_dist is compatible with PolyORB/DSA as well as
24419         GLADE.
24420
24421         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
24422         Asynchrronous that applies to a remote access-to-subprogram type, mark
24423         the underlying RACW type as asynchronous.
24424
24425         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
24426          __gnat_using_gnu_linker to 1.
24427
24428         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
24429         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
24430         GNAT.Perfect_Hash_Generators, and remove the empty
24431         GNAT.Perfect_Hash package.
24432
24433         * atree.adb: Minor reformatting
24434
24435         * exp_ch3.adb (Expand_Derived_Record): Rename to
24436         Expand_Record_Extension.
24437         (Build_Record_Init_Proc.Build_Assignment): The default expression in
24438         a component declaration must remain attached at that point in the
24439         tree so New_Copy_Tree copies it if the enclosing record type is derived.
24440         It is therefore necessary to take a copy of the expression when building
24441         the corresponding assignment statement in the init proc.
24442         As a side effect, in the case of a derived record type, we now see the
24443         original expression, without any rewriting that could have occurred
24444         during expansion of the ancestor type's init proc, and we do not need
24445         to go back to Original_Node.
24446
24447         * exp_ch3.ads (Expand_Derived_Record): Rename to
24448         Expand_Record_Extension.
24449
24450         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
24451         Returns the RACW type used to implement a remote access-to-subprogram
24452         type.
24453         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
24454         New subprograms. Used to create a proxy tagged object for a remote
24455         subprogram. The proxy object is used as the designated object
24456         for RAS values on the same partition (unless All_Calls_Remote applies).
24457         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
24458         System.Partition_Interface.Get_Unique_Remote_Pointer.
24459         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
24460         Renamed from Add_RAS_*_Attribute.
24461         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
24462         subprograms.
24463         New implementation of expansion for remote access-to-subprogram types,
24464         based on the RACW infrastructure.
24465
24466         * exp_dist.ads (Copy_Specification): Update comment to note that this
24467         function can copy the specification from either a subprogram
24468         specification or an access-to-subprogram type definition.
24469
24470 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
24471
24472         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
24473         in an instance, between an explicit subprogram an one inherited from a
24474         type derived from an actual.
24475
24476         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
24477         add a polling call if the subprogram is to be inlined by the back-end,
24478         to avoid repeated calls with multiple inlinings.
24479
24480         * checks.adb (Apply_Alignment_Check): If the expression in the address
24481         clause is a call whose name is not a static entity (e.g. a dispatching
24482         call), treat as dynamic.
24483
24484 2004-09-09  Robert Dewar  <dewar@gnat.com>
24485
24486         * g-trasym.ads: Minor reformatting
24487
24488         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
24489         packed arrays, since unused bits are expected to be zero for a
24490         comparison.
24491
24492 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
24493
24494         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
24495         comment.
24496
24497 2004-09-09  Pascal Obry  <obry@gnat.com>
24498
24499         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
24500         enable map file generation. Add the right option to generate the map
24501         file if Map_File is set to True.
24502
24503         * gnatdll.adb (Gen_Map_File): New variable.
24504         (Syntax): Add info about new -m (Map_File) option.
24505         (Parse_Command_Line): Add support for -m option.
24506         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
24507         Minor reformatting.
24508
24509 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
24510
24511         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
24512         new gnatdist implementation.
24513         Define a subpackage isolating the output routines specific to this
24514         verbose mode.
24515
24516 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
24517
24518         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
24519
24520         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
24521
24522 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
24523
24524         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
24525         internal unit.
24526
24527         * opt.ads: Add Ada_Version_Runtime constant used to decide which
24528         version of the language is used to compile the run time.
24529
24530 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
24531
24532         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
24533         of variable length temporaries for function return now that the
24534         back-end and gigi support it.
24535
24536 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24537
24538         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
24539
24540         * trans.c (struct stmt_group): Delete field GLOBAL.
24541         (gnat_init_stmt_group): Do not initialize it.
24542         (call_to_gnu): Use save_expr, not protect_multiple_eval.
24543         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
24544         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
24545         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
24546         (start_stmt_group): Likewise.
24547         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
24548
24549         * utils2.c (ggc.h): Include.
24550         (build_call_raise): Call build_int_cst, not build_int_2.
24551
24552         * utils.c (gnat_init_decl_processing): Fix arg to
24553         build_common_tree_nodes.
24554         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
24555         (gnat_define_builtin): Set built_in_decls.
24556         (init_gigi_decls): Call build_int_cst, not build_int_2.
24557
24558         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
24559         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
24560         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
24561         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
24562         SET_TYPE_MODULE): Use them.
24563         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
24564         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
24565         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
24566         SET_TYPE_ADA_SIZE): Likewise.
24567         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
24568         (DECL_CONST_CORRESPONDING_VAR,
24569         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
24570         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
24571         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
24572         (TYPE_RM_SIZE_NUM): New macro.
24573         (TYPE_RM_SIZE): Modified to use above.
24574
24575         * cuintp.c: (build_cst_from_int): New function.
24576         (UI_To_gnu): Use it.
24577
24578         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
24579         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
24580         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
24581         MIN_EXPR for the size, copy it into new.
24582
24583 2004-09-01  Robert Dewar  <dewar@gnat.com>
24584
24585         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
24586         packed indexed component where array is an IN OUT formal. This
24587         generated garbage code previously.
24588
24589         * gnat_ugn.texi: Document -fverbose-asm
24590
24591         * gnat-style.texi: Minor updates (note that boolean constants and
24592         variables are joined with AND/OR rather than short circuit forms).
24593
24594 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
24595
24596         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
24597         it is an upward conversion of an untagged type with no representation
24598         change.
24599
24600 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
24601
24602         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
24603         System.Partition_Interface.
24604
24605         * checks.adb (Apply_Access_Checks): Do not generate checks when
24606         expander is not active (but check for unset reference to prefix of
24607         dereference).
24608
24609         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
24610         pragma Debug as an if statement with a constant condition, for
24611         consistent treatment of entity references contained within the
24612         enclosed procedure call.
24613
24614 2004-09-01  Vincent Celier  <celier@gnat.com>
24615
24616         * bindgen.adb: (Set_EA_Last): New procedure
24617         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
24618         Set_EA_Last.
24619         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
24620         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
24621         linked without errors.
24622         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
24623         ST and EA.
24624         (Gen_Exception_Table_C): Correct same bugs
24625
24626         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
24627
24628         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
24629         on Windows, make sure that the drive letter is in upper case.
24630
24631         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
24632         Windows, when the drive letter is added and Case_Sensitive is True, the
24633         drive letter is forced to upper case.
24634
24635         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
24636         to Options_2 for the call to MLib.Utl.Gcc.
24637
24638         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
24639         directory separator when defining BASE_DIR.
24640
24641 2004-09-01  Pascal Obry  <obry@gnat.com>
24642
24643         * gprcmd.adb (Extend): Do not output trailing directory separator. This
24644         is not needed and it confuses Windows GNU/make which does not report
24645         directory terminated by a slash as a directory.
24646         (gprcmd): Idem for "pwd" internal command.
24647
24648         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
24649         target names rewrite to fix regressions with recent version of
24650         GNU/make. Starting with GNU/make 3.80 the pipe character was not
24651         handled properly anymore.
24652
24653 2004-09-01  Andreas Schwab  <schwab@suse.de>
24654
24655         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
24656         * raise.c [!IN_RTS]: Undef abort.
24657
24658 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
24659
24660         * utils2.c (build_allocator): Use ssize_int.
24661
24662         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
24663
24664 2004-08-27  Andreas Schwab  <schwab@suse.de>
24665
24666         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
24667
24668 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
24669             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24670
24671         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
24672
24673 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
24674
24675         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
24676         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
24677         * utils.c (init_gigi_decls): Likewise.
24678         * utils2.c (build_call_raise, build_allocator): Likewise.
24679
24680 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
24681
24682         * utils.c (gnat_init_decl_processing): Adjust
24683         build_common_tree_nodes call.
24684
24685 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
24686
24687         * utils2.c (build_allocator): Use build_int_cst for negative
24688         size types.
24689
24690 2004-08-18  Richard Henderson  <rth@redhat.com>
24691
24692         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
24693
24694 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
24695
24696         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
24697         call.s
24698         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
24699         (gnat_to_gnu): Likewise.
24700
24701 2004-08-16  Pascal Obry  <obry@gnat.com>
24702
24703         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
24704         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
24705         option and not mdll anymore. Update comment.
24706
24707 2004-08-16  Pascal Obry  <obry@gnat.com>
24708
24709         * bld.adb (Put_Include_Project): Properly handle directory separators
24710         on Windows.
24711
24712 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
24713
24714         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
24715         decreasing the number of allocated junk nodes while searching for the
24716         appropriate subprogram.
24717
24718 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
24719
24720         * cuintp.c (UI_To_gnu): Use build_int_cst..
24721         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
24722         * utils.c (init_gigi_decls): Likewise.
24723         * utils2.c (build_call_raise): Likewise.
24724
24725 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
24726
24727         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
24728         for a global aliased object with a variable size and an unconstrained
24729         nominal subtype, pretend there is no initializer if the one we have is
24730         incomplete, and avoid referencing an inexistant component in there. The
24731         part we have will be rebuilt anyway and the reference may confuse
24732         further operations.
24733
24734 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
24735
24736         * einfo.ads: Minor reformatting
24737
24738         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
24739         restrictions in the ALI if we only want to warn about violations.
24740
24741 2004-08-13  Vincent Celier  <celier@gnat.com>
24742
24743         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
24744         when creating a new Unit_Record in table Units.
24745
24746         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
24747         that are violated, if any.
24748
24749         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
24750         add directory separator if path already ends with a directory separator.
24751
24752 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
24753
24754         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
24755         unit, this is an attempt to inline a construct that is not available in
24756         the current restricted mode, so abort rather than trying to continue.
24757
24758         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
24759         discriminants that rename those of the parent, recover names of
24760         original discriminants for the constraint on the full view of the
24761         parent.
24762         (Complete_Private_Subtype): Do not create a subtype declaration if the
24763         subtype is an itype.
24764
24765         * gnat_rm.texi: Added section on implementation of discriminated
24766         records with default values for discriminants.
24767
24768 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
24769
24770         PR ada/15601
24771         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
24772         the second operand is overloaded.
24773
24774 2004-08-10  Richard Henderson  <rth@redhat.com>
24775
24776         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
24777         add __builtin_alloca.
24778
24779 2004-08-10  Richard Henderson  <rth@redhat.com>
24780
24781         * config-lang.in (boot_language): Yes.
24782
24783 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
24784
24785         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
24786         from complaining on potential uninitialized reference.
24787         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
24788         new specification and test explicitly for non-zero return value.
24789
24790         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
24791         returning C.int, to avoid using a derived boolean type.
24792
24793         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
24794         Duplicate_Subexpr_No_Checks in preference to direct use of
24795         Remove_Side_Effects and New_Copy_Tree.
24796         Clear Comes_From_Source on prefix of 'Size attribute reference.
24797
24798         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
24799         g-socthi-vxworks.adb: Change calls to
24800         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
24801         and test explicitly for non-zero return value.
24802
24803         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
24804         (Is_Socket_In_Set): Declare imported function as returning C.int, to
24805         avoid using a derived boolean type.
24806
24807 2004-08-09  Albert Lee  <lee@gnat.com>
24808
24809         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
24810
24811 2004-08-09  Pascal Obry  <obry@gnat.com>
24812
24813         * gnat_ugn.texi: Document new way to build DLLs on Windows using
24814         GCC's -shared option.
24815
24816         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
24817         Options_2 parameter (options put after object files).
24818
24819 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
24820
24821         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
24822         ignore overflows on low and high bounds of an index to also account for
24823         differences in signedness between sizetype and gnu_index_subtype.
24824         These are as legitimate as the ones caused by a lower TYPE_PRECISION
24825         on sizetype.
24826
24827 2004-08-09  Robert Dewar  <dewar@gnat.com>
24828
24829         * s-solita.ads, s-solita.adb: Minor reformatting
24830
24831         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
24832         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
24833         obsolescent section
24834         Add note that No_Implicit_Conditionals does not suppress
24835         run time constraint checks.
24836
24837         * vms_conv.ads: Minor reformatting
24838
24839         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
24840         and necessary for following change).
24841         (Mark): Return new format Mark_Id containing sec stack address
24842         (Release): Use sec stack address from Mark_Id avoiding Self call
24843
24844         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
24845         pointer (cleanup and necessary for following change).
24846         Define Mark_Id as record containing address of secondary stack, that way
24847         Release does not need to find the stack again, decreasing the number of
24848         calls to Self and improving efficiency.
24849
24850         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
24851
24852         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
24853         case variable into the individual case branches when possible.
24854
24855         * sem_ch11.adb: Minor reformatting
24856
24857         * prj.ads: Correct spelling of suffixs
24858
24859         * prj-nmsc.adb: Minor reformatting
24860         Correct spelling suffixs throughout (also in identifiers)
24861
24862         * freeze.adb: Minor spelling correction
24863
24864         * exp_ch2.adb: Cleanups to handling of Current_Value
24865         (no functional effect).
24866
24867         * bld.adb: Correct spelling of suffixs
24868
24869         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
24870
24871 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
24872
24873         PR ada/15408
24874         * sem_ch7.adb (Install_Private_Declarations): In the body of the
24875         package or of a child, private entities are both immediately_visible
24876         and not hidden.
24877
24878 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
24879
24880         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
24881         there are no range checks on the value of the literal.
24882
24883         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
24884         wrapped is the triggering alternative of an asynchronous select, action
24885         statements mustbe inserted before the select itself.
24886
24887         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
24888         case where the prefix is a protected function call.
24889         (Resolve_Attribute, case 'Access): The attribute reference on a
24890         subprogram is legal in a generic body if the subprogram is declared
24891         elsewhere.
24892
24893 2004-08-09  Vincent Celier  <celier@gnat.com>
24894
24895         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
24896         languages, otherwise building the library may fail with unresolved
24897         symbols.
24898         (Compile_Sources): Do not build libraries if -c switch is used
24899
24900         * gnatlink.adb (Process_Args): New switches -M and -Mmap
24901         (Write_Usage): If map file creation is supported, output new switches
24902         -M and -Mmap.
24903         (Gnatlink): When -M is specified, add the necessary switch(es) to the
24904         gcc call, when supported.
24905
24906         * Makefile.in: Added indepsw.o to the object list for gnatlink
24907         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
24908
24909         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
24910         indepsw.adb, indepsw.ads: New files.
24911
24912 2004-08-09  Bernard Banner  <banner@gnat.com>
24913
24914         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
24915
24916         * Makefile.in: add section for vxworks x86
24917
24918 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
24919
24920         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
24921         per-object constrained components where the discriminant is of an
24922         Access type.
24923         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
24924         the parent initialization procedure for derived Unchecked_Unions.
24925         Instead, derived Unchecked_Unions build their own initialization
24926         procedure.
24927         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
24928         Check the body of the subprogram for details.
24929         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
24930         functions for derived Unchecked_Union types by introducing a condition.
24931         Allow the creation of TSS equality functions for Unchecked_Unions.
24932         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
24933         Add formal parameter Discr to function signature. Discr is used to
24934         control the generated case statement for Unchecked_Union types.
24935         (Make_Eq_If): Rename formal parameter Node to E in function signature.
24936
24937         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
24938         Unchecked_Unions.
24939         Check the body of the subprogram for details.
24940         (Expand_Composite_Equality): Augment composite type equality to include
24941         correct handling of Unchecked_Union components.
24942         (Expand_N_In): Add condition to detect illegal membership tests when the
24943         subtype mark is a constrained Unchecked_Union and the expression lacks
24944         inferable discriminants, and build a Raise_Program_Error node.
24945         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
24946         to detect types that contain components of unconstrained Unchecked_Union
24947         subtype. Add condition to detect equality between types that have an
24948         unconstrained Unchecked_Union component, and build a Raise_Program_Error
24949         node. Add condition to detect equality between Unchecked_Union types
24950         that lack inferable discriminants, and build a Raise_Program_Error node.
24951         Otherwise build a TSS equality function call.
24952         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
24953         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
24954         with the operand lacking inferable discriminants, and build a Raise_
24955         Program_Error node.
24956         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
24957         composite equality.
24958         (Has_Inferable_Discriminants): Implement new predicate for objects and
24959         expressions of Unchecked_Union type. Check the body of subprogram for
24960         details.
24961         (Has_Unconstrained_UU_Components): Add function
24962         Component_Is_Unconstrained_UU. It is used to detect whether a single
24963         component is of an unconstrained Unchecked_Union subtype. Add function
24964         Variant_Is_Unconstrained_UU. It is used to detect whether a single
24965         component inside a variant is of an unconstrained Unchecked_Union type.
24966
24967         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
24968         inferred discriminant values. Add condition to generate a case
24969         statement with an inferred discriminant as the switch.
24970         (Make_Component_List_Assign): Introduce a Boolean flag that determines
24971         the behaviour of the subprogram in the presence of an Unchecked_Union.
24972         Add condition to trigger the usage of the inferred discriminant value
24973         as the generated case statement switch.
24974         (Make_Field_Assign): Introduce a Boolean flag that determines the
24975         behaviour of the subprogram in the presence of an Unchecked_Union. Add
24976         condition to trigger the usage of the inferred discriminant value as
24977         the right-hand side of the generated assignment.
24978
24979         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
24980         parameter generation when dealing with Unchecked_Unions.
24981
24982         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
24983         checks for Unchecked_Unions.
24984
24985         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
24986
24987         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
24988         Raise_Program_Error nodes for the execution of Read and Write
24989         attributes of Unchecked_Union types and the execution of Input and
24990         Output attributes of Unchecked_Union types that lack default
24991         discriminant values.
24992
24993         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
24994         Unchecked_Union. Add procedure Check_Component. It is used to inspect
24995         per-object constrained components of Unchecked_Unions for being
24996         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
24997         check individual components withing a variant.
24998
24999         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
25000         comparison of Unchecked_Unions.
25001         (Resolve_Equality_OP): Remove guard that prevents equality between
25002         Unchecked_Unions.
25003
25004         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
25005         of component subtypes for Unchecked_Union components.
25006         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
25007         since it is the actual subtype.
25008
25009         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
25010         pass of Unchecked_Union subtypes as generic actuals to formal types
25011         that lack known_discriminant_parts or that are derived Unchecked_Union
25012         types, and do nothing. In any other case, produce an error message.
25013
25014         * sem_ch3.adb (Analyze_Component_Declaration): Add function
25015         Contains_POC. It determines whether a constraint uses the discriminant
25016         of an enclosing record type.
25017         Add condition to detect per-object constrained component and set the
25018         appropriate flag.
25019         (Derived_Type_Declaration): Remove guard that prevents derivation from
25020         Unchecked_Union types.
25021         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
25022         Union subtypes.
25023
25024         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
25025         references to Unchecked_Union discriminants.
25026
25027         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
25028         formal generation when dealing with Unchecked_Unions.
25029         (Set_Actual_Subtypes): Add condition to prevent generation of actual
25030         subtypes for Unchecked_Unions.
25031
25032         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
25033         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
25034         completions of discriminated partial views by Unchecked_Unions and
25035         produce an error message.
25036
25037 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25038
25039         * trans.c (struct stmt_group): New field, GLOBAL.
25040         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
25041         (struct elab_info): New struct.
25042         (elab_info_list, gnu_elab_proc_stack): New variables.
25043         (Compilation_Unit_to_gnu): New procedure.
25044         (gigi): Call it and also handle elaboration procs we've saved.
25045         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
25046         global field from parent.
25047         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
25048         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
25049         (start_stmt_group): Initialize global field from parent.
25050         (add_decl_expr): Set to global for current statement group.
25051         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
25052         post.
25053
25054         * utils.c (global_bindings_p): True when no current_function_decl; no
25055         longer check current_binding_level.
25056
25057 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
25058
25059         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
25060         choice.
25061
25062         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
25063
25064 2004-08-06  Andreas Schwab  <schwab@suse.de>
25065
25066         * utils.c (gnat_define_builtin): Remove second parameter of
25067         make_decl_rtl.
25068         (begin_subprog_body): Likewise.
25069
25070 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
25071
25072         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
25073         optimization, not supported by the tree-ssa back-end.
25074
25075 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
25076
25077         * s-mastop-irix.adb: Update comments.
25078
25079         * a-except.adb (Exception_Information): Raise Constraint_Error if
25080         exception Id is Null_Id.
25081         This is required behavior, which is more reliably and clearly checked
25082         at the top level interface level.
25083
25084 2004-07-26  Javier Miranda  <miranda@gnat.com>
25085
25086         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
25087         call if a component has no default_expression and the box is used.
25088
25089         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
25090         default_expression and you use box, it behaves as if you had declared a
25091         stand-alone object.
25092         (Resolve_Record_Aggregate): If a component has no default_expression and
25093         you use box, it behaves as if you had declared a stand-alone object.
25094
25095         * sem_ch10.adb (Install_Siblings): Do not make visible the private
25096         entities of private-with siblings.
25097
25098 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
25099
25100         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
25101         for a component of an itype, set the parent pointer for analysis,
25102         there is no list in which to insert it.
25103
25104         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
25105         bona-fide renamings, not for inherited operations.
25106
25107         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
25108         actual for a formal that is an access parameter, create local
25109         finalization list even if the expression is not an aggregate.
25110
25111 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
25112
25113         PR ada/16213
25114         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
25115         Diagnose properly illegal subprogram renamings that are library units.
25116
25117 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
25118
25119         PR ada/15588
25120         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
25121         conversion rewritten as an unchecked conversion, check that original
25122         expression is a variable.
25123
25124         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
25125         unchecked_conversion, create new node rather than rewriting in place,
25126         to preserve original construct.
25127
25128 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25129
25130         * gigi.h (gnat_expand_body): Deleted.
25131
25132         * Make-lang.in: (trans.o): Depends on function.h.
25133
25134         * misc.c: (gnat_expand_body): Moved to here.
25135
25136         * trans.c (gnat_expand_body_1): Deleted.
25137         (gnat_expand_body): Moved from here.
25138         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
25139         (add_stmt): Check for marked visited with global_bindings_p.
25140         (gnat_gimplify_expr, case COMPONENT_REF): New case.
25141         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
25142
25143         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
25144         VIEW_CONVERT_EXPR if not operation type.
25145
25146         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
25147         fat pointer.
25148
25149         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
25150         changes: reformatting of negation operators, removing unneeded
25151         inequality comparison with zero, converting equality comparisons with
25152         zero to negations, changing int/0/1 to bool/false/true, replace calls
25153         to gigi_abort with abort, and various other similar changes.
25154
25155 2004-07-26  Vincent Celier  <celier@gnat.com>
25156
25157         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
25158         "setup".
25159
25160         * make.adb (Gnatmake): Fail when a library is not present and there is
25161         no object directory.
25162
25163         * mlib-prj.adb (Check_Library): No need to check if the library needs
25164         to be rebuilt if there is no object directory, hence no object files
25165         to build the library.
25166
25167         * opt.ads (Setup_Projects): New Boolean flag.
25168
25169         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
25170         Location.
25171         Create directory when Kind /= "" and in "gnat setup". Report error if
25172         directory cannot be created.
25173         (Ada_Check): Create library interface copy dir if it does not exist
25174         and we are in "gnat setup".
25175         (Find_Sources): No error if in "gnat setup" and no Ada sources were
25176         found.
25177         (Language_Independent_Check): Create object directory, exec directory
25178         and/or library directory if they do not exist and we are in
25179         "gnat setup".
25180
25181         * vms_conv.ads: (Command_Type): New command Setup.
25182
25183         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
25184
25185         * vms_data.ads: Add qualifiers/switches for new built-in command
25186         "setup".
25187
25188 2004-07-25  Richard Henderson  <rth@redhat.com>
25189
25190         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
25191         DECL_IGNORED_P on RESULT_DECL.
25192
25193 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
25194
25195         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
25196         allocation and potentially overflowing update with
25197         Tailored_Exception_Information. Use the sec-stack free procedural
25198         interface to output Exception_Information instead.
25199
25200         * a-except.adb (To_Stderr): New subprogram for character, and string
25201         version moved from a-exextr to be visible from other separate units.
25202         (Tailored_Exception_Information): Remove the procedural version,
25203         previously used by the default Last_Chance_Handler and not any more.
25204         Adjust various comments.
25205
25206         * a-exexda.adb: Generalize the exception information procedural
25207         interface, to minimize the use of secondary stack and the need for
25208         local buffers when the info is to be output to stderr:
25209         (Address_Image): Removed.
25210         (Append_Info_Character): New subprogram, checking for overflows and
25211         outputing to stderr if buffer to fill is of length 0.
25212         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
25213         (Append_Info_Address, Append_Info_Exception_Name,
25214         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
25215         Append_Info_Basic_Exception_Traceback,
25216         Append_Info_Exception_Information): New subprograms.
25217         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
25218         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
25219         Exception_Info_Maxlength, Exception_Name_Length,
25220         Exception_Message_Length): New subprograms.
25221         (Exception_Information): Use Append_Info_Exception_Information.
25222         (Tailored_Exception_Information): Use
25223         Append_Info_Basic_Exception_Information.
25224         Export services for the default Last_Chance_Handler.
25225
25226         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
25227         other separate units.
25228
25229 2004-07-20  Vincent Celier  <celier@gnat.com>
25230
25231         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
25232
25233 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
25234
25235         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
25236         emit itype references for the designated types of component types that
25237         are declared outside of the full record declaration, and that may
25238         denote a partial view of that record type.
25239
25240 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
25241
25242         PR ada/15607
25243         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
25244         which is the designated type in an access component declaration, to the
25245         list of incomplete dependents of the parent type, to avoid elaboration
25246         issues with out-of-scope subtypes.
25247         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
25248         full view of the parent.
25249
25250 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
25251
25252         PR ada/15610
25253         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
25254         entities that are hidden, such as references to generic actuals
25255         outside an instance.
25256
25257 2004-07-20  Javier Miranda  <miranda@gnat.com>
25258
25259         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
25260         support to the new notation.
25261         (Analyze_Selected_Component): Add call to Try_Object_Operation.
25262
25263 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
25264
25265         * s-taprob.adb: Adding the elaboration code required for initializing
25266         the tasking soft links that are common to the full and the restricted
25267         run times.
25268
25269         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
25270         restricted run time has been moved to the package
25271         System.Soft_Links.Tasking.
25272
25273         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
25274         restricted run time has been moved to the package
25275         System.Soft_Links.Tasking.
25276
25277         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
25278
25279         * s-solita.ads, s-solita.adb: New files.
25280
25281 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25282
25283         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
25284         Case_Statement_to_gnu): Split off from gnat_to_gnu.
25285         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
25286         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
25287         Exception_Handler_to_gnu_zcx): Likewise.
25288
25289 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
25290
25291         * gigi.h (builtin_function): Declare.
25292
25293 2004-07-15  Robert Dewar  <dewar@gnat.com>
25294
25295         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
25296         reformatting
25297
25298         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
25299         access values as an example of a warning.
25300
25301         * gnat_rm.texi: Document new attribute Has_Access_Values
25302
25303         * gnat-style.texi: Document that box comments belong on nested
25304         subprograms
25305
25306         * sem_util.ads (Has_Access_Values): Improved documentation
25307
25308         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
25309
25310         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
25311         (Process_Interface_Name): Call to this new procedure
25312         (Set_Extended_Import_Export_External_Name): Call to this new procedure
25313
25314         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
25315
25316         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
25317
25318         * einfo.ads: Minor comment typo fixed
25319
25320 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
25321
25322         * snames.adb: Add _atcb.
25323
25324         * snames.ads: Add Name_uATCB.
25325
25326         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
25327         (in the expanded code) when using the restricted run time.
25328
25329         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
25330         a in parameter in order to allow ATCBs to be preallocated (in the
25331         expanded code).
25332
25333         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
25334         order to allow ATCBs to be preallocated. In case of error, the ATCB is
25335         deallocated in System.Tasking.Stages.
25336
25337         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
25338         order to allow ATCBs to be preallocated.
25339
25340         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
25341         here. It was previously done in Initialize_ATCB.
25342
25343         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
25344
25345         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
25346         Restricted run time.
25347
25348         * exp_ch3.adb: When using the Restricted run time, pass the
25349         preallocated Ada_Task_Control_Block when creating a task.
25350
25351 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
25352
25353         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
25354         function call that is itself an actual in an enclosing call, diagnose
25355         problem here rather than assuming that resolution will catch it.
25356
25357         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
25358         the local copy of a generic unit for a formal package, and the generic
25359         is a child unit, install private part of ancestors before compiling
25360         private part of spec.
25361
25362         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
25363         use scope entities rather than tree structures, to handle properly
25364         parent units that are instances rewritten as bodies for inlining
25365         purposes.
25366
25367         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
25368         Remove_Parents): Handle properly a parent unit that is an
25369         instantiation, when the unit has been rewritten as a body for inlining
25370         purposes.
25371
25372         * par.adb (Goto_List): Global variable to collect goto statements in a
25373         given unit, for use in detecting natural loops.
25374
25375         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
25376         use in detecting natural loops.
25377
25378         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
25379         backwards goto's, and rewrite as a infinite loop, to improve locality
25380         of temporaries.
25381
25382         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
25383         subcomponent that includes an indexed reference, to prevent the
25384         generation of copies that would miscompile the desired assignment
25385         statement.
25386         (Build_Task_Image_Decls): Add a numeric suffix to
25387         generated name for string variable, to avoid spurious conflicts with
25388         the name of the type of a single protected object.
25389
25390         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
25391         loop with an explicit exit statement, to avoid generating an
25392         out-of-range value with 'Succ leading to spurious constraint_errors
25393         when compiling with -gnatVo.
25394
25395 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
25396
25397         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
25398         might not be analyzed yet, even if its Etype is already set (case of an
25399         unchecked conversion built using Unchecked_Convert_To, for example).
25400         If the prefix has already been analyzed, this will be a nop anyway.
25401
25402         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
25403         controller type, or an assignment of a record type with controlled
25404         components, copy only user data, and leave the finalization chain
25405         pointers untouched.
25406
25407 2004-07-15  Vincent Celier  <celier@gnat.com>
25408
25409         * make.adb (Collect_Arguments): Improve error message when attempting
25410         to compile a source not part of any project, when -x is not used.
25411
25412         * prj.ads: (Defined_Variable_Kind): New subtype
25413
25414         * prj-attr.adb (Register_New_Package): Two new procedures to register
25415         a package with or without its attributes.
25416         (Register_New_Attribute): Mew procedure to register a new attribute in a
25417         package.
25418         New attribute oriented subprograms: Attribute_Node_Id_Of,
25419         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
25420         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
25421         Next_Attribute.
25422         New package oriented subprograms: Package_Node_Id_Of,
25423         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
25424
25425         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
25426         type.
25427         (Package_Node_Id): Now a private, self initialized type
25428         (Register_New_Package): New procedure to register a package with its
25429         attributes.
25430         New attribute oriented subprograms: Attribute_Node_Id_Of,
25431         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
25432         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
25433         Next_Attribute.
25434         New package oriented subprograms: Package_Node_Id_Of,
25435         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
25436
25437         * prj-dect.adb (Parse_Attribute_Declaration,
25438         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
25439
25440         * prj-makr.adb (Make): Parse existing project file before creating
25441         other files. Fail if there was an error during parsing.
25442
25443         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
25444         new spec of Prj.Attr.
25445
25446         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
25447         to new spec of Prj.Attr.
25448
25449 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25450
25451         * utils2.c: Fix typo in comment.
25452
25453 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25454
25455         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
25456         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
25457
25458 2004-07-14  Andreas Schwab  <schwab@suse.de>
25459
25460         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
25461
25462 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25463
25464         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
25465         object type.
25466         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
25467         TYPE_STUB_DECL.
25468
25469         * misc.c (gnat_types_compatible_p): New function.
25470         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
25471         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
25472
25473         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
25474         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
25475         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
25476         (mark_visited): Don't mark dummy type.
25477         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
25478         parameter, we must remove any LJM building from GNU_NAME.
25479         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
25480         (pos_to_constructor): Use int_const_binop.
25481         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
25482         PARM_DECL.
25483
25484         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
25485         (gnat_pushlevel): Set TREE_USE on BLOCK node.
25486         (gnat_install_builtins): Add __builtin_memset.
25487
25488 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
25489
25490         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
25491         for a renaming, stabilize the initialization expression if we are at a
25492         local level.  At the local level, uses of the renaming may be performed
25493         by a direct dereference of the initializing expression, and we don't
25494         want possible variables there to be evaluated for every use.
25495
25496         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
25497         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
25498         them on the way.  Account for the fact that we may introduce side
25499         effects in the process.
25500
25501 2004-07-13  Richard Henderson  <rth@redhat.com>
25502
25503         * misc.c (default_pass_by_ref): Use pass_by_reference.
25504
25505 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
25506
25507         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
25508         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
25509
25510 2004-07-08  Richard Henderson  <rth@redhat.com>
25511
25512         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
25513         commentary.
25514
25515 2004-07-06  Vincent Celier  <celier@gnat.com>
25516
25517         * vms_conv.ads: Minor reformatting.
25518         Alphabetical order for enumerated values of type Command_Type, to have
25519         the command in alphabetical order for the usage.
25520
25521         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
25522         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
25523
25524         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
25525
25526         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
25527         (Add_Archive_Path): Only add the global archive if there is one.
25528         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
25529         or not any object file to put in the global archive, and don't build
25530         a global archive if there is none.
25531         (X_Switches): New table
25532         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
25533         in the X_Switches table, if any.
25534         (Initialize): Make sure the X_Switches table is empty
25535         (Scan_Arg): Record -X switches in table X_Switches
25536
25537         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
25538
25539         * make.adb: Minor comment fix
25540
25541         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
25542         invoked with directory information, add the directory in front of the
25543         path.
25544
25545         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
25546         invoked with directory information, add the directory in front of the
25547         path.
25548
25549         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
25550         when Keep_Temporary_Files is False.
25551         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
25552         directory information, add the directory in front of the path.
25553         When not on VMS, handle new switch -dn before the command to set
25554         Keep_Temporary_Files to True.
25555         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
25556         everywhere.
25557
25558         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
25559         invoked with directory information, add the directory in front of the
25560         path.
25561
25562 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
25563
25564         * snames.ads, snames.adb (Name_Stub): New name for the distributed
25565         systems annex.
25566
25567         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
25568         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
25569
25570         * g-socket.adb (To_Timeval): Fix incorrect conversion of
25571         Selector_Duration to Timeval for the case of 0.0.
25572
25573         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
25574         documentation from Evolve_And_Then.
25575
25576 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
25577
25578         * s-taprop-tru64.adb, s-taprop-os2.adb,
25579         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
25580
25581 2004-07-06  Robert Dewar  <dewar@gnat.com>
25582
25583         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
25584         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
25585         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
25586         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
25587         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
25588         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
25589         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
25590         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
25591         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
25592         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
25593         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
25594         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
25595         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
25596         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
25597         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
25598         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
25599         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
25600         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
25601         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
25602         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
25603         vms_data.ads: Minor reformatting,
25604         Fix bad box comment format.
25605
25606         * gnat_rm.texi: Fix minor grammatical error
25607
25608         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
25609
25610         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
25611         more cases of discriminated records to be recognized as not needing a
25612         secondary stack.
25613         (Has_Access_Values): New function.
25614
25615         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
25616
25617         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
25618         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
25619         with LRM terminology).
25620         Change terminology in comments primitive type => elementary type.
25621
25622 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
25623
25624         PR ada/15602
25625         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
25626         parameters do not impose any requirements on the presence of a body.
25627
25628 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
25629
25630         PR ada/15593
25631         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
25632         compilation unit and is in an open scope at the point of instantiation,
25633         assume that a body may be present later.
25634
25635 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
25636
25637         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
25638         Improve error message when specified size is not supported.
25639
25640         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
25641         is never a primitive operation.
25642
25643 2004-07-05  Andreas Schwab  <schwab@suse.de>
25644
25645         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
25646         RECORD_OR_UNION_CHECK.
25647         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
25648
25649 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
25650
25651         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
25652         dependency on xgnatugn, instead build it via a submake.
25653         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
25654
25655 2004-07-04  Richard Henderson  <rth@redhat.com>
25656
25657         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
25658
25659 2004-07-01  Richard Henderson  <rth@redhat.com>
25660
25661         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
25662         * utils.c (max_size): Likewise.
25663
25664 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25665
25666         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
25667         and rest_of_type_compilation; add arg to create_*_decl.
25668         (annotate_decl_with_node): Deleted.
25669         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
25670         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
25671         (get_current_block_context, gnat_pushdecl): New declarations.
25672         (gnat_init_stmt_group): Likewise.
25673         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
25674         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
25675         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
25676         (gnat_init): Call gnat_init_stmt_group.
25677         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
25678         (gnu_pending_elaboration_list): Deleted.
25679         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
25680         (gigi): Rearrange initialization calls and move some to last above.
25681         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
25682         Delete calls to add_decl_expr; add arg to create_*_decl.
25683         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
25684         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
25685         begin_subprog_body and call it.
25686         Don't push and pop ggc context.
25687         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
25688         (add_stmt): Remove handling of DECL_EXPR from here.
25689         If not in function, mark visited.
25690         (add_decl_expr): Put global at top level.
25691         Check for cases of DECL_INITIAL we have to handle here.
25692         (process_type): Add extra arg to create_type_decl.
25693         (build_unit_elab): Rework to just gimplify.
25694         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
25695         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
25696         (get_pending_elaborations, pending_elaborations_p): Likewise.
25697         (push_pending_elaborations, pop_pending_elaborations): Likewise.
25698         (get_elaboration_location, insert_elaboration_list): Likewise.
25699         (gnat_binding_level): Renamed from ada_binding_level.
25700         (init_gnat_to_gnu): Don't clear pending_elaborations.
25701         (global_bindings_p): Treat as global if no current_binding_level.
25702         (set_current_block_context): New function.
25703         (gnat_pushdecl): Renamed from pushdecl; major rework.
25704         All callers changed.
25705         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
25706         (finish_record_type): Call call pushdecl for stub decl.
25707         (function_nesting_depth): Deleted.
25708         (begin_subprog_body): Delete obsolete code.
25709         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
25710
25711 2004-06-28  Robert Dewar  <dewar@gnat.com>
25712
25713         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25714         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
25715         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
25716         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
25717         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
25718
25719         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
25720         deal with problem of inefficient slices on machines with strict
25721         alignment, when the slice is a component of a composite.
25722
25723         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
25724         machines, we need the check there as well.
25725
25726 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
25727
25728         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
25729         determine safe copying direction for overlapping slice assignments
25730         when component is controlled.
25731
25732         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
25733         formal derived type in the actual for a formal package are visible in
25734         the enclosing instance.
25735
25736 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
25737
25738         PR ada/15600
25739         * sem_util.adb (Trace_Components): Diagnose properly an illegal
25740         circularity involving a private type whose completion includes a
25741         self-referential component.
25742         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
25743         renaming or an instantiation from an implicit derived operation.
25744
25745 2004-06-28  Pascal Obry  <obry@gnat.com>
25746
25747         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
25748         DLL.
25749         (Library_File_Name_For): Idem.
25750
25751 2004-06-28  Matthew Gingell  <gingell@gnat.com>
25752
25753         * g-traceb.ads: Add explanatory note on the format of addresses
25754         expected by addr2line.
25755
25756 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
25757
25758         * Makefile.in: Force debugging information on s-tasdeb.adb,
25759         a-except.adb and s-assert.adb needed by the debugger.
25760
25761 2004-06-28  Vincent Celier  <celier@gnat.com>
25762
25763         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
25764         Need_To_Build_Lib.
25765         (Gnatmake): Ditto.
25766
25767         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
25768
25769         * prj.adb: Minor reformatting
25770         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
25771
25772         * prj.ads: Comment updates
25773         Minor reformatting
25774         (Project_Data): Change Flag1 to Need_To_Build_Lib.
25775         Remove Flag2: not used.
25776
25777         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
25778         declaration.
25779
25780         * gnat_ugn.texi: Put a "null;" declaration in one project file example
25781
25782         * gnat_rm.texi: Document Empty declarations "null;".
25783
25784         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
25785         front of the linker options.
25786         (Link_Foreign): Put the global archives and the libraries in front of
25787         the linker options.
25788
25789 2004-06-28  Javier Miranda  <miranda@gnat.com>
25790
25791         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
25792         (RTU_Loaded): Code cleanup
25793         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
25794         withed predefined units.
25795
25796         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
25797         explicitly withed predefined units.
25798         Fix typo in comment
25799
25800         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
25801         explicitly withed predefined units.
25802
25803 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25804
25805         * ada-tree.def (DECL_STMT): Deleted.
25806         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
25807         (DECL_STMT_VAR): Deleted.
25808         * decl.c: add_decl_stmt now add_decl_expr.
25809         * gigi.h: Likewise.
25810         * trans.c: Likewise.
25811         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
25812         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
25813         (add_stmt): Only handle padded type here.
25814         (add_stmt_with_node): Allow gnat_node to not be present.
25815         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
25816         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
25817         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
25818         make a SAVE_EXPR for the entire fat pointer.
25819         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
25820         (create_index_type): Make a DECL_EXPR.
25821         (end_subprog_body): Don't call allocate_struct_function here but
25822         do clear cfun.
25823
25824 2004-06-25  Pascal Obry  <obry@gnat.com>
25825
25826         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
25827         Relocatable from Build_Dynamic_Library call.
25828
25829         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
25830         Relocatable are now synonym.
25831
25832         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
25833
25834         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
25835         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
25836         call.
25837
25838         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
25839         Lib_Address and Relocatable.
25840         (Default_DLL_Address): Removed.
25841
25842         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25843         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25844         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
25845         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
25846         (Default_DLL_Address): Removed.
25847
25848         * mlib-tgt-mingw.adb: Ditto.
25849         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
25850
25851         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
25852         the initial thread stack size.
25853
25854         * a-strmap.ads: Move package L to private part as it is not used in
25855         the spec. Found while reading code.
25856
25857 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
25858
25859         * tracebak.c: Introduce support for a GCC infrastructure based
25860         implementation of __gnat_backtrace.
25861
25862         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
25863         any more. Use accessors instead. This eases maintenance and relaxes
25864         some alignment constraints.
25865         (_GNAT_Exception structure): Remove the Ada specific fields
25866         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
25867         a-exexpr.adb.
25868         (is_handled_by, __gnat_eh_personality): Replace component references to
25869         exception structure by use of the new accessors.
25870
25871         * init.c (__gnat_initialize): Adjust comments to match the just
25872         reverted meaning of the -static link-time option.
25873
25874         * adaint.c (convert_addresses): Arrange not to define a stub for
25875         mips-irix any more, as we now want to rely on a real version from a
25876         recent libaddr2line.
25877
25878         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
25879         the personality routine can use them and not have to rely on a C
25880         counterpart of the record anymore. This simplifies maintenance and
25881         relaxes the constraint of having Standard'Maximum_Alignment match
25882         BIGGEST_ALIGNMENT.
25883         Update comments, and add a section on the common header alignment issue.
25884
25885 2004-06-25  Geert Bosch  <bosch@gnat.com>
25886
25887         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
25888         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
25889
25890 2004-06-25  Robert Dewar  <dewar@gnat.com>
25891
25892         * gnat_rm.texi: Fix section on component clauses to indicate that the
25893         restriction on byte boundary placement still applies for bit packed
25894         arrays.
25895         Add comment on stack usage from Initialize_Scalars
25896
25897         * gnat_ugn.texi: Add documentation for -gnatyLnnn
25898
25899         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
25900         limiting nesting level.
25901
25902         * usage.adb: Add line for -gnatyLnnn switch
25903
25904         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
25905         sem_ch13.adb, exp_aggr.adb: Minor reformatting
25906
25907         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
25908         type as well as on the subtype. This corrects a problem in freeze in
25909         setting alignments of atomic types.
25910
25911         * sem_eval.ads: Minor comment typo fixed
25912
25913         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
25914         level.  Minor reformatting.
25915
25916         * fname.adb (Is_Predefined_File_Name): Require a letter after the
25917         minus sign. This means that file names like a--b.adb will not be
25918         considered predefined.
25919
25920         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
25921         record Test new flag and give diagnostic for bad component clause.
25922         (Freeze_Entity): Set alignment of array from component alignment in
25923         cases where this is safe to do.
25924
25925         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
25926         arrays.
25927
25928         * cstand.adb: (Create_Standard): Set alignment of String to 1
25929
25930         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
25931
25932         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
25933         code in the common constrained array cases.
25934
25935         * a-storio.adb: Change implementation to avoid possible alignment
25936         problems on machines requiring strict alignment (data should be moved
25937         as type Buffer, not type Elmt).
25938
25939         * checks.adb (Apply_Array_Size_Check): Improve these checks by
25940         killing the overflow checks which we really do not need (64-bits is
25941         enough).
25942
25943 2004-06-25  Vincent Celier  <celier@gnat.com>
25944
25945         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
25946         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
25947         inconditionally for the main project.
25948         (Recursive_Add_Archives.Add_Archive_Path): New procedure
25949         (Link_Executables.Check_Time_Stamps): New procedure
25950         (Link_Executables.Link_Foreign): New procedure
25951         Changes made to reduce nesting level of this package
25952         (Check): New procedure
25953         (Add_Switches): When not in quiet output, check that a switch is not
25954         the concatenation of several valid switches. If it is, issue a warning.
25955         (Build_Global_Archive): If the global archive is rebuilt, linking need
25956         to be done.
25957         (Compile_Sources): Rebuilding a library archive does not imply
25958         rebuilding the global archive.
25959         (Build_Global_Archive): New procedure
25960         (Build_Library): New name for Build_Archive, now only for library
25961         project
25962         (Check_Archive_Builder): New procedure
25963         (Create_Global_Archive_Dependency_File): New procedure
25964         (Gprmake): Call Build_Global_Archive before linking
25965         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
25966         throughout.
25967         (Scan_Arg): Display the Copyright notice when -v is used
25968
25969         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
25970         for gnatls.
25971
25972         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
25973         COMPILE.
25974         Add new GNAT LIST qualifier /FILES=
25975         Added qualifier /DIRECTORY= to GNAT METRIC
25976         Added qualifier /FILES= to GNAT METRIC
25977         Added qualifier /FILES to GNAT PRETTY
25978
25979         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
25980         to take into account both versions of the switch.
25981
25982         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
25983         always be the last switch to the gcc driver. Disable switch storing so
25984         that switches automatically added by the gcc driver are not put in the
25985         ALI file.
25986
25987         * prj.adb (Project_Empty): Take into account changes in components of
25988         Project_Data.
25989
25990         * prj.ads (Languages_Processed): New enumaration value All_Languages.
25991
25992         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
25993         used. Split Boolean component Ada_Sources_Present in two Boolean
25994         components Ada_Sources_Present and Other_Sources_Present.
25995         Minor reformatting
25996
25997         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
25998         instead of Sources_Present.
25999         (Set_Ada_Paths.Add.Recursive_Add): Ditto
26000
26001         * prj-nmsc.adb: Minor reformatting
26002         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
26003         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
26004         Check_Ada_Naming_Scheme.
26005         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
26006         throughout.
26007
26008         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
26009         In_Limited.
26010         Make sure that all cycles where there is at least one "limited with"
26011         are detected.
26012         (Parse_Single_Project): New Boolean parameter In_Limited
26013
26014         * prj-proc.adb (Recursive_Check): When Process_Languages is
26015         All_Languages, call first Prj.Nmsc.Ada_Check, then
26016         Prj.Nmsc.Other_Languages_Check.
26017
26018         * prj-proc.adb (Process): Use Ada_Sources_Present or
26019         Other_Sources_Present (instead of Sources_Present) depending on
26020         Process_Languages.
26021
26022         * lang-specs.h: Keep -g and -m switches in the same order, and as the
26023         last switches.
26024
26025         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
26026         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
26027         False.
26028         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
26029         False.
26030
26031         * lib.ads (Disable_Switch_Storing): New procedure.
26032
26033         * make.adb: Modifications to reduce nesting level of this package.
26034         (Check_Standard_Library): New procedure
26035         (Gnatmake.Check_Mains): New procedure
26036         (Gnatmake.Create_Binder_Mapping_File): New procedure
26037         (Compile_Sources.Compile): Add switch -gnatez as the last option
26038         (Display): Never display -gnatez
26039
26040         * Makefile.generic:
26041         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
26042
26043         * gnatcmd.adb (Check_Project): New function
26044         (Process_Link): New procedure to reduce nesting depth
26045         (Check_Files): New procedure to reduce the nesting depth.
26046         For GNAT METRIC, include the inherited sources in extending projects.
26047         (GNATCmd): When GNAT LS is invoked with a project file and no files,
26048         add the list of files from the sources of the project file. If this list
26049         is too long, put it in a temp text files and use switch -files=
26050         (Delete_Temp_Config_Files): Delete the temp text file that contains
26051         a list of source for gnatpp or gnatmetric, if one has been created.
26052         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
26053         in the project file is too large, create a temporary text file that
26054         list them and pass it to the tool with "-files=<temp text file>".
26055         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
26056
26057         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
26058         generated file is in not in Ada.
26059
26060         * gnatls.adb: Remove all parameters And_Save that are no longer used.
26061         (Scan_Ls_Arg): Add processing for -files=
26062         (Usage): Add line for -files=
26063
26064         * g-os_lib.adb (On_Windows): New global constant Boolean flag
26065         (Normalize_Pathname): When on Windows and the path starts with a
26066         directory separator, make sure that the resulting path will start with
26067         a drive letter.
26068
26069         * clean.adb (Clean_Archive): New procedure
26070         (Clean_Project): When there is non-Ada code, delete the global archive,
26071         the archive dependency files, the object files and their dependency
26072         files, if they exist.
26073         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
26074
26075 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
26076
26077         * sinfo.ads: Fix typo in comment.
26078
26079         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
26080         the TSS for remote access-to-subprogram types, since these TSS are
26081         always present once the type has been analyzed.
26082         (RAS_E_Dereference): Same.
26083
26084         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
26085         reference raises Bad_Attribute, mark the reference as analyzed so the
26086         node (and any children resulting from rewrites that could have occurred
26087         during the analysis that ultimately failed) is not analyzed again.
26088
26089         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
26090
26091         * exp_dist.adb: Minor comment fix.
26092
26093         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
26094         type is an anonymous access type, no unchecked deallocation of the
26095         allocated object can occur. If the object is controlled, attach it with
26096         a count of 1. This allows attachment to the Global_Final_List, if
26097         no other relevant list is available.
26098         (Get_Allocator_Final_List): For an anonymous access type that is
26099         the type of a discriminant or record component, the corresponding
26100         finalisation list is the one of the scope of the type.
26101
26102 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
26103
26104         * sem_ch3.adb (Replace_Type): When computing the signature of an
26105         inherited subprogram, use the first subtype if the derived type
26106         declaration has no constraint.
26107
26108         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
26109         before applying previous optimization. Minor code cleanup.
26110
26111         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
26112         placed at the beginning of an unpacked record without explicit
26113         alignment, a slice of it will be aligned and does not need a copy when
26114         used as an actual.
26115
26116 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
26117
26118         PR ada/15591
26119         PR ada/15592
26120         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
26121         reference is written with expressions mimicking parameters.
26122
26123 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
26124
26125         PR ada/15589
26126         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
26127         STEP 2a. The constraints of a full type declaration of a derived record
26128         type are checked for conformance with those declared in the
26129         corresponding private extension declaration. The message
26130         "not conformant with previous declaration" is emitted if an error is
26131         detected.
26132
26133 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
26134
26135         * g-traceb.ads: Document the need for -E binder switch in the spec.
26136
26137         * g-trasym.ads: Document the need for -E binder switch in the spec.
26138
26139 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
26140
26141         * sem_prag.adb: Add handling of pragma Detect_Blocking.
26142
26143         * snames.h, snames.ads, snames.adb: Add entry for pragma
26144         Detect_Blocking.
26145
26146         * s-rident.ads: Change reference to pragma Detect_Blocking.
26147
26148         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
26149         system.ads.
26150
26151         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
26152         to indicate whether pragma Detect_Blocking is active.
26153
26154         * par-prag.adb: Add entry for pragma Detect_Blocking.
26155
26156         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
26157         of not handling WITH.
26158         Note that this replaces the previous update which was incorrect.
26159
26160 2004-06-25  Javier Miranda  <miranda@gnat.com>
26161
26162         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
26163         use-clauses to have a clean environment.
26164
26165         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
26166         the installation of the use-clauses to stablish a clean environment in
26167         case of compilation of a separate unit; otherwise the call to
26168         use_one_package is protected by the barrier Applicable_Use.
26169
26170         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
26171         the installation of the use-clauses to stablish a clean environment in
26172         case of compilation of a separate unit.
26173         (End_Use_Clauses): Minor comment cleanup.
26174
26175 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
26176
26177         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
26178
26179 2004-06-23  Richard Henderson  <rth@redhat.com>
26180
26181         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
26182
26183 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26184
26185         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
26186         now bool instead of int.
26187         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
26188         * trans.c (gnu_switch_label_stack): New function.
26189         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
26190         elaboration of renamed entity returns.
26191         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
26192         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
26193         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
26194         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
26195         DECL_SIZE_UNIT and simplify variable-sized case.
26196         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
26197         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
26198         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
26199         (build_unit_elab): Disable for now.
26200         * utils.c (mark_visited): New function.
26201         (pushdecl): Walk tree to call it for global decl.
26202         (update_pointer_to): Update all variants of pointer and ref types.
26203         Add arg to COMPONENT_REF.
26204         (convert): Likewise.
26205         Move check for converting between variants lower down.
26206         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
26207         (build_allocator): Don't force type of MODIFY_EXPR.
26208         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
26209         put_var_into_stack.
26210
26211 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26212
26213         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
26214         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
26215         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
26216         subprograms.
26217         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
26218         all callers changed.
26219         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
26220         the way that EXIT_STMT finds the loop label.
26221         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
26222         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
26223         (add_stmt): Use annotate_with_locus insted of setting directly.
26224         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
26225         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
26226         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
26227         (build_vms_descriptor): Add extra args to ARRAY_REF.
26228         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
26229         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
26230         New cases.
26231         (build_binary_op): Don't make explicit CONVERT_EXPR.
26232         Add extra rgs to ARRAY_REF.
26233
26234 2004-06-14  Pascal Obry  <obry@gnat.com>
26235
26236         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
26237         Windows.  Fix minor typo.
26238
26239         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
26240         which is now supported on Windows. With this implementation using the
26241         Library Project feature is no different on Windows than on UNIX.
26242
26243 2004-06-14  Vincent Celier  <celier@gnat.com>
26244
26245         * makegpr.adb (Compile_Sources): Nothing to do when there are no
26246         non-Ada sources.
26247
26248         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
26249
26250         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
26251         found, show the project name and the path of the previously parsed
26252         project file.
26253
26254 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
26255
26256         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
26257         array, avoid copying the actual before the call.
26258
26259 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
26260
26261         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
26262         Instead, allocate memory on worst-case alignment assumptions, and then
26263         return an aligned address within the allocated zone.
26264
26265 2004-06-14  Robert Dewar  <dewar@gnat.com>
26266
26267         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
26268         elab entities in predefined units in No_Run_Time_Mode.
26269         (Gen_Adainit_C): Same fix
26270         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
26271         units in No_Run_Time_Mode
26272         (Gen_Elab_Calls_C): Same fix
26273
26274         * symbols-vms-alpha.adb: Minor reformatting
26275
26276         * g-debpoo.ads: Minor reformatting
26277
26278         * lib.adb (In_Same_Extended_Unit): Version working on node id's
26279
26280         * lib.ads (In_Same_Extended_Unit): Version working on node id's
26281
26282         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
26283         working on nodes.
26284
26285         * make.adb: Minor reformatting
26286
26287         * par-ch12.adb: Minor reformatting
26288
26289         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
26290
26291         * prj-strt.adb: Minor reformatting
26292
26293         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
26294         be more general.
26295
26296         * sem_attr.adb: Minor reformatting
26297
26298         * sem_ch7.adb: Minor reformatting
26299
26300         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
26301         for type in the same unit as the object declaration.
26302
26303         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
26304         static string expressions and not just string literals.
26305         Minor reformatting
26306         (Set_Warning): Reset restriction warning flag for restriction pragma
26307         Implement pragma Profile_Warnings
26308         Implement pragma Profile (Restricted)
26309         Give obolescent messages for old restrictions and pragmas
26310
26311         * snames.h, snames.ads, snames.adb: Add new entry for pragma
26312         Profile_Warnings.
26313
26314         * s-rident.ads: Add declarations for restrictions required by profile
26315         Restricted and profile Ravenscar.
26316
26317         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
26318
26319         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
26320         configuration pragmas.
26321
26322 2004-06-11  Vincent Celier  <celier@gnat.com>
26323
26324         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
26325         gnatsym, when symbol policy is Restricted.
26326
26327         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
26328         gnatsym, when symbol policy is Restricted.
26329
26330         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
26331         read the symbol file.
26332         (Finalize): Fail in symbol policy Restricted if a symbol in the original
26333         symbol file is not in the object files. Do not create a new symbol file
26334         when symbol policy is Restricted.
26335
26336         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
26337         in Scng.
26338
26339         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
26340         Restricted.
26341         (Usage): Line for new switch -R
26342
26343         * make.adb (Initialize): When the platform is not VMS, add the
26344         directory where gnatmake is invoked in the front of the path, if
26345         gnatmake is invoked with directory information.  Change the Scan_Args
26346         while loop to a for loop.
26347         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
26348         if Depth is equal or greater than the proposed depth, there is nothing
26349         to do.
26350         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
26351         instead of 0.
26352
26353         * prj.ads: Add new symbol policy Restricted.
26354
26355         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
26356         with the new parameters Check_All_Labels and Case_Location.
26357
26358         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
26359         (Library_Symbol_File needs to be defined).
26360
26361         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
26362         and Case_Location If Check_All_Labels is True, check that all values of
26363         the string type are used, and output warning(s) if they are not.
26364
26365         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
26366         and Case_Location.
26367
26368         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
26369
26370         * gnat_ugn.texi: Update documentation about the library directory in
26371         Library Projects.
26372
26373         * makegpr.adb (Display_Command): In verbose mode, also display the
26374         value of the CPATH env var, when the compiler is gcc.
26375         (Initialize): Change the Scan_Args while loop to a for loop
26376         (Compile_Individual_Sources): Change directory to object directory
26377         before compilations.
26378
26379         * symbols.ads: New symbol policy Restricted.
26380
26381 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
26382
26383         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
26384         is now taken care of internally in the Exception_Propagation package
26385         and does not require clients assistance any more.
26386
26387         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
26388         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
26389         functions. Helpers to maintain a predicate required in the handling of
26390         occurrence transfer between tasks.
26391         This is now handled internally and does not require clients assistance
26392         for the setup/propagate separation anymore.
26393         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
26394         allocation strategy, handle the Setup_And_Not_Propagated predicate and
26395         document.
26396
26397         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
26398         raise_after_setup, now that everything is handled internally within the
26399         setup/propagation engine.
26400
26401 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
26402
26403         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
26404         Add additional conditions for the case of an actual being a simple
26405         name or literal. Improve inlining by preventing the generation
26406         of temporaries with a short lifetime (one use).
26407
26408 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
26409
26410         PR ada/15587
26411         * einfo.ads: Minor comment updates for Has_Completion and
26412         E_Constant list of flags.
26413
26414         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
26415         and constant redeclarations now set the Has_Completion flag of their
26416         defining identifiers.
26417
26418         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
26419         Inspect_Deferred_Constant_Completion.
26420         Used to detect private deferred constants that have not been completed
26421         either by a constant redeclaration or pragma Import. Emits error message
26422         "constant declaration requires initialization expression".
26423
26424         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
26425         completes a deferred constant.
26426
26427 2004-06-11  Geert Bosch  <bosch@gnat.com>
26428
26429         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
26430
26431         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
26432         calculating exponent for scaling denormal numbers.
26433         (Leading_Part): Properly raise Constraint_Error for zero or negative
26434         Adjustment.
26435         (Remainder): Properly raise Constraint_Error for zero divisor.
26436
26437 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
26438
26439         * sem_util.adb: Minor reformatting.
26440
26441         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
26442         dereference when accessing the entry parameter record.
26443         (Check_Array_Type): Always check for possible implicit dereference.
26444         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
26445         Abort if a pointer is still present (denoting that an implicit
26446         dereference was left in the tree by the front-end).
26447
26448         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
26449         dereference when accessing the entry parameter record.
26450         (Check_Array_Type): Always check for possible implicit dereference.
26451         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
26452         Abort if a pointer is still present (denoting that an implicit
26453         dereference was left in the tree by the front-end).
26454
26455 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
26456
26457         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
26458         message, like the compiler itself does. Easier to parse the output.
26459
26460         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
26461
26462         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
26463         be base names, and not includes directories.
26464
26465 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
26466
26467         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
26468         so that dependencies are properly taken into account by make.
26469
26470 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
26471
26472         PR ada/15622
26473         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
26474         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
26475
26476 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
26477
26478         * Makefile.in (install-gnatlib): install target-specific run-time files.
26479
26480         * Make-lang.in: Remove obsolete targets.
26481
26482 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
26483
26484         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
26485         specification, to catch misuses of program unit names.
26486
26487         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
26488         superfluous conversions in an instance.
26489
26490 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
26491
26492         PR ada/15403
26493         * sem_ch12.adb (Save_References): If operator node has been folded to
26494         enumeration literal, associated_node must be discarded.
26495
26496 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
26497
26498         * s-stchop-vxworks.adb: Add required pragma Convention to
26499         Task_Descriptor because it is updated by a C function.
26500
26501 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
26502
26503         PR ada/15568
26504         * Makefile.in: Remove target specific SO_OPT on IRIX
26505
26506 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26507
26508         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
26509         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
26510         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
26511         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
26512         (STMT_STMT, USE_STMT): New statement codes.
26513         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
26514         * ada-tree.h: Reflect above changes.
26515         (struct tree_loop_id): Deleted.
26516         (union lang_tree_node, struct lang_decl, struct lang_type):
26517         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
26518         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
26519         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
26520         (IS_ADA_STMT): New macro.
26521         * decl.c (annotate_decl_with_node): New function.
26522         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
26523         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
26524         Call add_stmt_with_node to do needed assignments.
26525         Add call to update setjmp buffer directly, not via EXPR_STMT.
26526         (maybe_variable): Argment GNAT_NODE deleted.
26527         * gigi.h (maybe_variable): Likewise.
26528         (make_transform, add_stmt_with_node, set_block_for_group): New.
26529         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
26530         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
26531         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
26532         (set_lineno, set_lineno_from_sloc): Likewise.
26533         (record_code_position, insert_code_for): Likewise.
26534         (gnat_poplevel): Now returns void.
26535         (end_subprog_body): Now takes argument.
26536         * misc.c (cgraph.h, tree-inline.h): New includes.
26537         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
26538         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
26539         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
26540         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
26541         (gnat_parse_file): Don't set immediate_size_expand.
26542         Call cgraph functions.
26543         (gnat_expand_expr): Remove most cases.
26544         (record_code_position, insert_code_for): Remove from here.
26545         * trans.c (toplev.h, tree-gimple.h): Now included.
26546         (discard_file_names): Deleted.
26547         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
26548         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
26549         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
26550         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
26551         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
26552         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
26553         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
26554         (set_block_for_group, add_stmt_list): Likewise.
26555         (start_stmt_group): Renamed from start_block_stmt.
26556         (end_stmt_group): Likewise, from end_block_stmt.
26557         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
26558         (gigi): Don't set discard_file_names or call set_lineno.
26559         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
26560         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
26561         Numerous changes throughout to reflect new names and complete
26562         function-at-a-time implementation.
26563         (gnat_expand_stmt): Delete or comment out all cases.
26564         (process_inlined_subprograms): Use add_stmt.
26565         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
26566         call set_lineno; also remove unneeded block handling.
26567         (process_type): Remove unneeded block handling.
26568         (build_unit_elab): Remove calls to deleted functions.
26569         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
26570         (tree-dump.h): Likewise.
26571         (struct ada_binding_level): Add field jmpbuf_decl.
26572         (gnat_define_builtin, gnat_install_builtins): New.
26573         (gnat_gimplify_function, gnat_finalize): Likewise.
26574         (gnat_poplevel): No longer return BLOCK, set it instead.
26575         Remove code dealing with nested functions.
26576         (gnat_init_decl_processing): Also set size_type_node.
26577         Call gnat_install_builtins.
26578         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
26579         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
26580         Remove special-case for "main".
26581         (end_subprog_body): Add arg and rework for tree-ssa.
26582         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
26583         Add case for BOOLEAN_TYPE.
26584         * utils2.c (rtl.h): Now include.
26585         (build_call_raise): Test Debug_Flag_NN directly.
26586         (build_call_alloc_dealloc): Don't use local stack allocation for now.
26587         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
26588         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
26589
26590 2004-06-07  Robert Dewar  <dewar@gnat.com>
26591
26592         * a-direct.ads, einfo.ads: Minor comment updates
26593
26594         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
26595         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
26596         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
26597         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
26598         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
26599
26600         * s-interr-sigaction.adb: Remove unreferenced variable
26601         (Attached_Interrupts).  Minor reformatting.
26602         Avoid use of variable I (replace by J).
26603
26604         * par-ch10.adb: Fix text of one error message
26605
26606         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
26607         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
26608         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
26609         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
26610         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
26611         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
26612         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
26613         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
26614         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
26615         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
26616         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
26617         2005 support.
26618
26619 2004-06-07  Doug Rupp  <rupp@gnat.com>
26620
26621         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
26622
26623         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
26624
26625         * mlib-tgt-vms-ia64.adb: New file.
26626
26627         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
26628         Add mlib-tgt-vms-ia64.adb
26629         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
26630         Move to alpha specific ifeq section.
26631         Add VMS specific versions of symbols.adb
26632         Renaming of 5q vms files.
26633
26634         * 5qsystem.ads renamed to system-vms_64.ads.
26635
26636 2004-06-07  Vincent Celier  <celier@gnat.com>
26637
26638         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
26639         explain that when a time of day corresponding to the non existing hour
26640         on the day switching to DST is specified, Split may return a different
26641         value for Seconds.
26642
26643         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
26644         to GNAT PRETTY.
26645
26646         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
26647         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
26648
26649         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
26650         to False.
26651         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
26652         the linking options.
26653         (Build_Library.Check_Libs): On VMS, if there is a dependency on
26654         g-trasym.ads, set Gtrasymobj_Needed to True.
26655
26656         * prj-attr.adb: Add new package Metrics for gnatmetric
26657
26658         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
26659         canonical case to take into account files with upper case characters on
26660         Windows.
26661         (Ada_Check): Load the reference symbol file name in the name buffer to
26662         check it, not the symbol file name.
26663
26664         * snames.ads, snames.adb: Add standard name Metrics (name of project
26665         file package for gnatmetric).
26666
26667         * vms_conv.ads: Add Metric to Comment_Type
26668
26669         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
26670
26671         * vms_data.ads: Add qualifiers for GNAT METRIC
26672
26673         * makegpr.adb (Link_Executables): Take into account the switches
26674         specified in package Linker of the main project.
26675
26676 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
26677
26678         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
26679         the index of the last element is Units.Last, not Units.Table'Last
26680         (which is usually not a valid index within the actually allocated
26681         storage for the table).
26682
26683         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
26684         determines whether to generate a call to a checked storage pool
26685         Dereference action.
26686         Generate such a call only for a dereference that either comes from
26687         source, or is the result of rewriting a dereference that comes from
26688         source.
26689
26690 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
26691
26692         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
26693
26694 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
26695
26696         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
26697         file level, elaborate the stride for inner dimensions in alignment
26698         units, not bytes.
26699
26700         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
26701         in a comment.
26702
26703 2004-06-07  Javier Miranda  <miranda@gnat.com>
26704
26705         * exp_ch6.adb: Correct wrong modification in previous patch
26706
26707 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
26708
26709         * g-trasym.ads: Corrected comment to properly reflect level of support
26710         on VMS.
26711
26712 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
26713
26714         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
26715         includes case of a variable referenced on the left hand side of an
26716         assignment, therefore remove redundant code. Variables and prefixes of
26717         indexed or selected components are now marked as referenced on left
26718         hand side. Warnings are now properly emitted when variables or prefixes
26719         are assigned but not read.
26720
26721         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
26722         left hand side referenced variables. Private access types do not
26723         produce the warning "variable ... is assigned but never read".
26724         Add also additional checks to left hand side referenced variables.
26725         Aliased, renamed objects and access types do not produce the warning
26726         "variable ... is assigned but never read" since other entities may read
26727         the memory location.
26728
26729 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
26730
26731         * Makefile.in: In the powerpc/vxworks-specific section, restore
26732         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
26733         by mistake).
26734
26735 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
26736
26737         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
26738         predefined operators.
26739         Removes spurious type errors from g-trasym-vms.adb.
26740
26741         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
26742         distinct from the operator appearing in the source, call appropriate
26743         routine to insert conversions when needed, and complete resolution of
26744         node.
26745         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
26746         interpretations for rewritten right operand.
26747         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
26748         the other operand is overloaded and the context is a type conversion.
26749
26750 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26751
26752         * ada-tree.def (BLOCK_STMT): Now has two operands.
26753         (BREAK_STMT): New.
26754
26755         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
26756
26757         * gigi.h: (gnat_poplevel): Now returns a tree.
26758
26759         * trans.c (end_block_stmt): Add arg; all callers changed.
26760         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
26761         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
26762         (add_stmt): Set TREE_TYPE.
26763         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
26764         (gnat_expand_stmt, case BREAK_STMT): New case.
26765
26766         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
26767
26768 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
26769
26770         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
26771         procedure Set_Stack_Size that is not needed.
26772
26773 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
26774
26775         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
26776         used for gnatpp input file and for the files upon which it depends
26777
26778 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
26779
26780         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
26781
26782 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
26783
26784         * gnatvsn.ads: Bump version numbers appropriately.
26785         Add new build type.
26786
26787 2004-06-07  Pascal Obry  <obry@gnat.com>
26788
26789         * gnat_ugn.texi: Improve comments about imported names and link names
26790         on Windows. Add a note about the requirement to use -k gnatdll's option
26791         when working with a DLL which has stripped stdcall symbols (no @nn
26792         suffix).
26793
26794 2004-05-27  Vincent Celier  <celier@gnat.com>
26795
26796         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
26797         COMMENTS_LAYOUT=UNTOUCHED
26798
26799         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
26800         symbols-vms-alpha.adb
26801
26802 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
26803
26804         * sem.ads: Clarify documentation on checks suppression.
26805
26806         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
26807
26808 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
26809
26810         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
26811         the case of multiple derivations.
26812         (Is_Object_Reference): For a selected component, verify that the prefix
26813         is itself an object and not a value.
26814
26815         * sem_ch12.adb (Same_Instantiated_Constant): New name for
26816         Same_Instantiated_Entity.
26817         (Same_Instantiated_Variable): Subsidiary to
26818         Check_Formal_Package_Instance, to recognize actuals for in-out generic
26819         formals that are obtained from a previous formal package.
26820         (Instantiate_Subprogram_Body): Emit proper error when
26821         generating code and the proper body of a stub is missing.
26822
26823         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
26824         has a universal interpretation, do the disambiguation here.
26825
26826         * exp_ch4.adb (Expand_N_Type_Conversion,
26827         Expand_N_Unchecked_Type_Conversion): Special handling when target type
26828         is Address, to avoid typing anomalies when Address is a visible integer
26829         type.
26830
26831         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
26832         to determine whether a subprogram should not be marked Pure, even when
26833         declared in a pure package.
26834
26835 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
26836
26837         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
26838
26839         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
26840         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
26841         Update the documentation about the Ravenscar profile, following the
26842         definition found in AI-249.
26843
26844         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
26845         setting the Profile (Ravenscar). This must be done in addition to
26846         setting the required restrictions.
26847
26848         * rtsfind.ads: Add the set of operations defined in package
26849         Ada.Interrupts.
26850
26851         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
26852         restriction.
26853
26854 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
26855
26856         lang-specs.h: Always require -c or -S and always redirect to /dev/null
26857         if -gnatc or -gnats is passed.
26858
26859 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
26860
26861         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
26862         a significant reference. Warnings are now properly emitted when a
26863         discriminated type is not referenced.
26864
26865         * lib-xref.adb (Generate_Reference): A deferred constant completion,
26866         record representation clause or record type discriminant does not
26867         produce a reference to its corresponding entity. Warnings are now
26868         properly emitted when deferred constants and record types are not
26869         referenced.
26870
26871 2004-05-27  Geert Bosch  <bosch@gnat.com>
26872
26873         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
26874         Fixes ACATS Annex G tests.
26875
26876 2004-05-27  Robert Dewar  <dewar@gnat.com>
26877
26878         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
26879         handling WITH
26880
26881 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
26882
26883         * s-interr.adb (Server_Task): Take into account case of early return
26884         from sigwait under e.g. linux.
26885
26886 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
26887
26888         * gnat_ugn.texi: Add description for the new gnatpp options:
26889          -rnb - replace the original source without creating its backup copy
26890          -c0 - do not format comments
26891
26892 2004-05-24  Geert Bosch  <bosch@gnat.com>
26893
26894         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
26895         with 192 bits of precision, sufficient to reduce a double-extended
26896         arguments X with a maximum relative error of T'Machine_Epsilon, for X
26897         in -2.0**32 .. 2.0**32.
26898         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
26899         reduction by the processor, which only uses a 68-bit approximation of
26900         Pi.
26901         (Tan): Always reduce arguments and compute function either using
26902         the processor's fptan instruction, or by dividing sin and cos as needed.
26903
26904 2004-05-24  Doug Rupp  <rupp@gnat.com>
26905
26906         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
26907         gcc error on 32/64 bit VMS.
26908
26909 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
26910
26911         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
26912         since this is what we get for stack overflows although not documented
26913         as such.
26914         Document the issues which may require adjustments to our signal
26915         handlers.
26916
26917 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
26918
26919         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
26920         enclosing dynamic scope if the instantiation is within a generic unit.
26921
26922 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
26923
26924         * exp_dbug.ads: Fix typo.
26925
26926         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
26927         Rename it to its proper name: system-linux-ia64.ads
26928         (stamp-gnatlib1): Remove extra target specific run time files when
26929         setting up the rts directory.
26930
26931 2004-05-24  Javier Miranda  <miranda@gnat.com>
26932
26933         * einfo.ads, einfo.adb (Limited_Views): Removed.
26934         (Limited_View): New attribute that replaces the previous one. It is
26935         now a bona fide package with the limited-view list through the
26936         first_entity and first_private attributes.
26937
26938         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
26939         limited-private-with clause.
26940         (Install_Limited_Withed_Unit): Install the private declarations of a
26941         limited-private-withed package. Update the installation of the shadow
26942         entities according to the new structure (see Build_Limited_Views)
26943         (Build_Limited_Views): Replace the previous implementation of the
26944         limited view by a package entity that references the first shadow
26945         entity plus the first shadow private entity (required for limited-
26946         private-with clause)
26947         (New_Internal_Shadow_Entity): Code cleanup.
26948         (Remove_Limited_With_Clause): Update the implementation to undo the
26949         new work carried out by Build_Limited_Views.
26950         (Build_Chain): Complete documentation.
26951         Replace Ada0Y by Ada 0Y in comments
26952         Minor reformating
26953
26954         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
26955         types the level of accessibility depends on the enclosing type
26956         declaration.
26957
26958         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
26959         entities. Complete documentation of previous change.
26960
26961 2004-05-24  Robert Dewar  <dewar@gnat.com>
26962
26963         * namet.adb: Minor reformatting
26964         Avoid use of name I (replace by J)
26965         Minor code restructuring
26966
26967         * sem_ch6.adb: Minor reformatting
26968
26969         * lib-writ.adb: Do not set restriction as active if this is a
26970         Restriction_Warning case.
26971
26972         * sem_prag.adb: Reset restriction warning flag if real pragma
26973         restriction encountered.
26974
26975         * s-htable.adb: Minor reformatting
26976         Change rotate count to 3 in Hash (improves hash for small strings)
26977
26978         * 5qsystem.ads: Add comments for type Address (no literals allowed).
26979
26980         * gnat_ugn.texi: Add new section of documentation "Code Generation
26981         Control", which describes the use of -m switches.
26982
26983 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
26984
26985         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
26986         through the DECL_INITIAL for renamed variables.
26987
26988 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
26989
26990         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
26991
26992 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
26993
26994         * exp_dbug.ads: Correct comments concerning handling of overloading,
26995         since we no longer use $ anymore.
26996
26997 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
26998
26999         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
27000         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
27001         with illegal subunits.
27002
27003 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
27004
27005         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
27006         body with front-end inlining enabled, check whether an inline pragma
27007         appears immediately after the body and applies to it.
27008
27009         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
27010         enabled and the pragma appears after the body of the subprogram.
27011
27012 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27013
27014         Part of function-at-a-time conversion
27015
27016         * misc.c (adjust_decl_rtl): Deleted.
27017         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
27018         Define.
27019
27020         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
27021         (add_decl_stmt, add_stmt, block_has_vars): New functions.
27022         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
27023
27024         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
27025         when making a decl.
27026         (gnat_to_gnu_entity): Likewise.
27027         Use add_stmt to update setjmp buffer.
27028         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
27029         flush_addressof.
27030         No longer call adjust_decl_rtl.
27031         (DECL_INIT_BY_ASSIGN_P): New macro.
27032         (DECL_STMT_VAR): Likewise.
27033
27034         * trans.c (gigi): Call start_block_stmt to make the outermost
27035         BLOCK_STMT.
27036         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
27037         Call start_block_stmt and end_block_stmt temporarily.
27038         Use gnat_expand_stmt instead of expand_expr_stmt.
27039         (add_decl_stmt): New function.
27040         (tree_transform): Call it.
27041         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
27042         (end_block_stmt): Set type and NULL_STMT.
27043         (gnat_expand_stmt): Make recursize call instead of calling
27044         expand_expr_stmt.
27045         (gnat_expand_stmt, case DECL_STMT): New case.
27046         (set_lineno_from_sloc): Do nothing if global.
27047         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
27048         (start_block_stmt, add_stmt, end_block_stmt): New functions.
27049         (build_block_stmt): Call them.
27050         (gnat_to_code): Don't expand NULL_STMT.
27051         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
27052         args.
27053         (tree_transform): Likewise.
27054         (tree_transform, case N_Null_Statement): Return NULL_STMT.
27055         (gnat_expand_stmt, case NULL_STMT): New case.
27056         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
27057         IF_STMT_TRUE.
27058
27059         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
27060         TREE_ADDRESSABLE.
27061
27062         * utils.c (create_var_decl): Do not call expand_decl or
27063         expand_decl_init.
27064         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
27065         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
27066         here.
27067         (struct e_stack): Add chain_next to GTY.
27068         (struct binding_level): Deleted.
27069         (struct ada_binding_level): New struct.
27070         (free_block_chain): New.
27071         (global_binding_level, clear_binding_level): Deleted.
27072         (global_bindings_p): Rework to see if no chain.
27073         (kept_level_p, set_block): Deleted.
27074         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
27075         new data structure and work directly on BLOCK node.
27076         (gnat_poplevel): Similarly.
27077         (get_decls): Look at BLOCK_VARS.
27078         (insert_block): Work directly on BLOCK node.
27079         (block_has_var): New function.
27080         (pushdecl): Rework for new binding structures.
27081         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
27082         poplevel.
27083         (build_subprog_body): Likewise.
27084         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
27085
27086         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
27087
27088         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
27089         (DECL_STMT_VAR): Likewise.
27090
27091 2004-05-17  Robert Dewar  <dewar@gnat.com>
27092
27093         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
27094         procedure
27095
27096         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
27097         of restriction synonyums by using
27098         Restrict.Process_Restriction_Synonyms.
27099
27100         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
27101
27102         * s-restri.ads (Tasking_Allowed): Correct missing comment
27103
27104         * s-rident.ads: Add entries for restriction synonyms
27105
27106         * ali.adb: Fix some problems with badly formatted ALI files that can
27107         result in infinite loops.
27108
27109         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
27110         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
27111         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
27112         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
27113         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
27114         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
27115         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
27116         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
27117         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
27118         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
27119         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
27120         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
27121         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
27122         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
27123         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
27124         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
27125         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
27126         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
27127         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
27128         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
27129         to Task_Id (minor cleanup).
27130
27131 2004-05-17  Vincent Celier  <celier@gnat.com>
27132
27133         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
27134         directory separator.
27135
27136         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
27137         project being extended, if Languages is not declared in extending
27138         project.
27139
27140 2004-05-17  Javier Miranda  <miranda@gnat.com>
27141
27142         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
27143         limited view of a visible sibling.
27144
27145 2004-05-14  Robert Dewar  <dewar@gnat.com>
27146
27147         * gnat_ugn.texi: Minor change to -gnatS documentation
27148
27149         * sprint.adb: Remove some instances of Assert (False) and for this
27150         purpose replace them by output of a ??? string.
27151
27152         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
27153         Assert (False).
27154
27155         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
27156         flag processing. This was suppressing required dependencies in
27157         No_Run_Time mode and is not needed since the binder does not generate
27158         references for things in libgnat anyway.
27159
27160         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
27161         warning.
27162
27163 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
27164
27165         * gnat_ugn.texi: Document AIX-specific issue with initialization of
27166         resolver library.
27167
27168         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
27169         action for the case of an actual parameter in an init proc call.
27170
27171 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
27172
27173         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
27174         subtype, check visible entities in base type.
27175
27176         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
27177         actions if the object is a renaming.
27178
27179         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
27180         Check_Formal_Package_Instance, to determine more precisely when the
27181         formal and the actual denote the same entity.
27182
27183 2004-05-14  Javier Miranda  <miranda@gnat.com>
27184
27185         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
27186
27187         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
27188         corresponding to a private_with must be removed from visibility; it
27189         will be made visible later, just before we analyze the private part of
27190         the package.
27191         (Check_Private_Child_Unit): Allow private_with clauses in public
27192         siblings.
27193         (Install_Siblings): Make visible the private entities of private-withed
27194         siblings.
27195         (Install_Withed_Unit): Do not install the private withed unit if we
27196         are compiling a package declaration and the Private_With_OK flag was
27197         not set by the caller. These declarations will be installed later,
27198         just before we analyze the private part of the package.
27199
27200         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
27201         during the evaluation of the expression that initializes the object,
27202         decorate it with the expected type to avoid cascade errors.
27203         Code cleanup.
27204
27205         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
27206         subprogram we have to install the private_with clauses after its
27207         specification has been analyzed (as documented in AI-262.TXT).
27208
27209         * sem_ch8.adb (Has_Private_With): New function. Determines if the
27210         current compilation unit has a private with on a given entity.
27211         (Find_Direct_Name): Detect the Beaujolais problem described in
27212         AI-262.TXT
27213
27214         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
27215         provides the functionality of the function Is_Ancestor that was
27216         previously available in sem_ch10. It has been renamed to avoid
27217         overloading.
27218
27219         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
27220
27221 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27222
27223         * utils.c (build_vms_descriptor): Use SImode pointers.
27224
27225 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
27226
27227         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
27228
27229 2004-05-14  GNAT Script  <nobody@gnat.com>
27230
27231         * Make-lang.in: Makefile automatically updated
27232
27233 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
27234
27235         Renaming of target specific files for clarity
27236
27237         * Makefile.in: Rename GNAT target specific files.
27238
27239         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
27240         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
27241         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
27242         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
27243         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
27244         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
27245         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
27246         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
27247         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
27248         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
27249         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
27250         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
27251         51osinte.adb, 51osinte.ads, 51system.ads,
27252         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
27253         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
27254         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
27255         56tpopsp.adb, 57system.ads, 58system.ads,
27256         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
27257         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
27258         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
27259         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
27260         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
27261         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
27262         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
27263         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
27264         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
27265         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
27266         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
27267         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
27268         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
27269         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
27270         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
27271         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
27272         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
27273         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
27274         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
27275         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
27276         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
27277         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
27278         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
27279         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
27280         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
27281         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
27282         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
27283         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
27284         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
27285         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
27286         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
27287         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
27288         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
27289         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
27290         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
27291         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
27292         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
27293         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
27294         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
27295         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
27296
27297         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
27298         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
27299         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
27300         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
27301         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
27302         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
27303         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
27304         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
27305         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
27306         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
27307         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
27308         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
27309         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
27310         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
27311         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
27312         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
27313         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
27314         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
27315         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
27316         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
27317         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
27318         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
27319         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
27320         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
27321         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
27322         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
27323         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
27324         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
27325         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
27326         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
27327         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
27328         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
27329         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
27330         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
27331         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
27332         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
27333         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
27334         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
27335         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
27336         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
27337         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
27338         s-osinte-vms.ads, s-osinte-vxworks.adb,
27339         s-osinte-vxworks.ads, s-osprim-mingw.adb,
27340         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
27341         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
27342         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
27343         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
27344         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
27345         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
27346         s-stchop-vxworks.adb, s-taprop-dummy.adb,
27347         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
27348         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
27349         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
27350         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
27351         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
27352         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
27353         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
27354         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
27355         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
27356         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
27357         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
27358         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
27359         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
27360         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
27361         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
27362         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
27363         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
27364         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
27365         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
27366         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
27367         system-irix-o32.ads, system-linux-x86_64.ads,
27368         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27369         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
27370         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
27371         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
27372         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
27373         system-vxworks-mips.ads, system-vxworks-ppc.ads,
27374         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
27375         above.
27376
27377 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
27378
27379         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
27380
27381 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
27382
27383         Merge from tree-ssa-20020619-branch.
27384
27385         * config-lang.in (boot_language, build_by_default): Set
27386         to no.
27387         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
27388         (max_size): Add static chain op for call_expr.
27389
27390 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
27391
27392         PR target/15331
27393         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
27394
27395 2004-05-11  Roger Sayle  <roger@eyesopen.com>
27396
27397         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
27398         COND_EXPR.
27399
27400 2004-05-10  Doug Rupp  <rupp@gnat.com>
27401
27402         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
27403         system.aux_dec.
27404
27405         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
27406
27407         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
27408
27409         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
27410         Fixes undefined symbols in IA64 gnatlib.
27411
27412         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
27413
27414         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
27415         Short_Address). This will be moved to system.auxdec.
27416
27417 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
27418
27419         * sem_util.adb: Replace test for presence of a node that is always
27420         present with a call to Discard_Node.
27421
27422         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
27423         Analyze on the library unit node after generation of distribution stub
27424         constructs.  The call was a no-op because Unit_Node has already been
27425         Analyzed, and the tree fragments for the distribution stubs are
27426         analyzed as they are inserted in Exp_Dist.
27427         Update comment regarding to distribution stubs to reflect that we
27428         do not generate stub in separate files anymore.
27429
27430         * einfo.ads: Clarify the fact that a tagged private type has the
27431         E_Record_Type_With_Private Ekind.
27432
27433         * erroutc.adb: Minor reformatting
27434
27435         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
27436         values if line length is increased using -gnatyM (noticed during code
27437         reading).
27438
27439         * eval_fat.adb: Minor reformatting
27440         Put spaces around exponentiation operator
27441
27442 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
27443
27444         PR ada/15005
27445         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
27446         has been rewritten as an explicit dereference, retrieve type of
27447         original node to check for possibly unconstrained record type.
27448
27449 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
27450
27451         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
27452         overriding, use the operation of the parent unconditionally.
27453
27454         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
27455         operation when either operand is a literal, to avoid further
27456         ambiguities.
27457
27458         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
27459         overridden by a previous explicit declaration, mark the previous entity
27460         as overriding.
27461
27462         * sem_disp.adb (Check_Dispatching_Operation): New predicate
27463         Is_Visibly_Controlled, to determine whether a declaration of a
27464         primitive control operation for a derived type overrides an inherited
27465         one. Add warning if the explicit declaration does not override.
27466
27467 2004-05-10  Vincent Celier  <celier@gnat.com>
27468
27469         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
27470         some cases when the sources are no longer present.
27471
27472         * make.adb (Collect_Arguments): Fail if an external source, not part
27473         of any project need to be compiled, when switch -x has not been
27474         specified.
27475
27476         * makeusg.adb: Document new switch -x
27477
27478         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
27479         defaulted to False.
27480
27481         * switch-m.adb (Scan_Make_Switches): New switch -x
27482
27483         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
27484         gnatmake switch -x.
27485
27486         * gnat_ugn.texi: Document new gnatmake switch -x
27487
27488 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
27489
27490         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
27491
27492         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
27493         (process_attributes): Likewise.
27494
27495 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
27496
27497         * s-inmaop.ads: Fix spelling mistake in one of the comments.
27498
27499 2004-05-10  Robert Dewar  <dewar@gnat.com>
27500
27501         * gnat_ugn.texi: Document that for config pragma files, the maximum
27502         line length is always 32767.
27503
27504         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
27505         literals is now allowed.
27506
27507         * gnat-style.texi: Remove statement about splitting long lines before
27508         an operator rather than after, since we do not follow this rule at all.
27509         Clarify rule (really lack of rule) for spaces around exponentiation
27510
27511         * sem_elim.adb: Allow concatenation of string literals as well as a
27512         single string literal for pragma arguments.
27513
27514         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
27515
27516         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
27517         written for append case.
27518
27519         * frontend.adb: Changes to avoid checking max line length in config
27520         pragma files.
27521
27522         * g-os_lib.ads: Minor reformatting
27523
27524         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
27525         wrong in any case. Instead use standard value. Noticed during code
27526         reading.
27527
27528         * opt.ads (Max_Line_Length): New field, used to implement removal of
27529         limitation on length of lines when scanning config pragma files.
27530
27531         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
27532         makeutl.ads, makeutl.adb: Minor reformatting
27533
27534         * scn.adb: Do not check line length while scanning config pragma files
27535         Do not check line length while scanning out license information
27536
27537         * scng.adb: Changes to avoid line length checks while parsing config
27538         pragma files.
27539
27540 2004-05-10  GNAT Script  <nobody@gnat.com>
27541
27542         * Make-lang.in: Makefile automatically updated
27543
27544 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
27545
27546         * osint.adb (Find_Program_Name): Fix handling of VMS version
27547         number.
27548
27549 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
27550
27551         * g-os_lib.ads (Invalid_Time): New constant
27552
27553         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
27554         return OS_Time instead of time_t to match what is imported by Ada.
27555         Now return -1 if the file doesn't exist, instead of a random value
27556
27557 2004-05-05  Robert Dewar  <dewar@gnat.com>
27558
27559         * usage.adb: Add line for -gnatR?s switch
27560
27561         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
27562
27563         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
27564         and for Match (Data_First, Data_last)
27565
27566         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
27567         written when we are dealing with multi-unit files.
27568
27569 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
27570
27571         * Makefile.in: Remove unused targets and variables.
27572
27573 2004-05-05  Vincent Celier  <celier@gnat.com>
27574
27575         * switch-m.adb: New gnatmake switch -eI
27576
27577         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
27578         of new gnatmake switch -eInnn.
27579
27580         * makegpr.adb: Take into account new parameters Index and Src_Index in
27581         Prj.Util.
27582
27583         * clean.adb: Implement support for multi-unit sources, including new
27584         switch -i.
27585
27586         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
27587         Src_Index.
27588
27589         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
27590         (Extract_From_Q): New out parameter Index
27591         (Mark, Is_Marked): Subprograms moved to Makeutl
27592         (Switches_Of): New parameter Source_Index
27593         (Add_Switch): New parameter Index
27594         (Check): New parameter Source_Index
27595         (Collect_Arguments): New parameter Source_Index
27596         (Collect_Arguments_And_Compile): New parameter Source_Index
27597         (Compile): New parameter Source_Index
27598         Put subprograms in alphabetical order
27599         Add support for multi-source sources, including in project files.
27600
27601         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
27602         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
27603         Make.
27604
27605         * makeusg.adb: New gnatmake switch -eInnn
27606
27607         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
27608         Prj.Util.Value_Of.
27609
27610         * opt.ads (Main_Index): New variable, defaulted to 0.
27611
27612         * osint.ads, osinte.adb (Add_File): New parameter Index
27613         (Current_Source_Index): New function
27614
27615         * prj.adb: Take into account new components Index and Src_Index
27616
27617         * prj.ads (String_Element): New component Index
27618         (Variable_Value): New component Index
27619         (Array_Element): New component Src_Index
27620
27621         * prj-attr.adb: Indicate that optional index may be specified for
27622         attributes Main, Executable, Spec, Body and some of Switches.
27623
27624         * prj-attr.ads (Attribute_Kind): New values for optional indexes
27625         (Attribute_Record): New component Optional_Index
27626
27627         * prj-com.ads (File_Name_Data): New component Index
27628
27629         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
27630
27631         * prj-env.adb (Put): Output optional index
27632
27633         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
27634         attributes Spec and Body.
27635
27636         * prj-nmsc.adb: Process optional indexes
27637
27638         * prj-pp.adb: Ouput "at" for optional indexes
27639
27640         * prj-proc.adb: Take into account optional indexes
27641
27642         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
27643         Optional_Index. For string literal,
27644         process optional index when Optional_Index is True.
27645         (Parse_Expresion): New Boolean parameter Optional_Index
27646
27647         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
27648         (Set_Source_Index_Of): New procedure
27649
27650         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
27651         index.
27652
27653         * prj-util.ads (Executable_Of): New parameter Index
27654         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
27655         New parameter Src_Index, defaulted to 0.
27656
27657 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
27658
27659         PR ada/15257
27660         * sem_ch3.adb (Access_Definition): If this is an access parameter
27661         whose designated type is imported through a limited_with clause, do
27662         not add the enclosing subprogram to the list of private dependents of
27663         the type.
27664
27665 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
27666
27667         PR ada/15258
27668         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
27669         a limited_with clause, and the other is its non-limited view.
27670
27671 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
27672
27673         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
27674
27675         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
27676         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
27677         Stand.Boolean_Literals to produce references to entities
27678         Standard_False and Standard_True from compile-time computed boolean
27679         values.
27680
27681         * stand.ads (Boolean_Literals): New variable, provides the entity
27682         values for False and True, for use by the expander.
27683
27684 2004-05-05  Doug Rupp  <rupp@gnat.com>
27685
27686         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
27687         5vinmaop.adb: Unchecked convert Short_Address vice Address
27688
27689         * adaint.c, raise.c: Caste CRTL function return value
27690         to avoid gcc error on 32/64 bit IVMS.
27691
27692         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
27693         target = IA64/VMS.
27694
27695         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
27696
27697         * 5qsystem.ads (Address): Declare as Long_Integer
27698         (Short_Address): Declare as 32 bit subtype of Address
27699         Declare  abstract address operations to avoid gratuitous ambiguities.
27700
27701 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
27702
27703         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
27704         instead of the old Boolean_Entry_Barriers.
27705         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
27706
27707 2004-05-05  GNAT Script  <nobody@gnat.com>
27708
27709         * Make-lang.in: Makefile automatically updated
27710
27711 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
27712
27713         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
27714
27715 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
27716
27717         PR ada/15152
27718         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
27719         alone. Replacing object references by literals is inappropriate in a
27720         so low level context.
27721
27722 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
27723
27724         * a-exexpr.adb: Add comments
27725
27726 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
27727
27728         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
27729         declare the Ancestor_Tags array in Type_Specific_Data with a small size
27730         without risking a bounds check error when accessing one of its
27731         components.
27732         (Type_Specific_Data): Define Ancestor_Tags as a small array.
27733         This prevents us from hitting a limitation during the debug info
27734         generation when using stabs.
27735
27736         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
27737         small array.
27738         This prevents us from hitting a limitation during the debug info
27739         generation when using stabs.
27740
27741 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
27742
27743         lang-specs.h: Remove -gnatz* from specs.
27744
27745 2004-05-03  Vincent Celier  <celier@gnat.com>
27746
27747         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
27748
27749         * Make-lang.in, Makefile.in: Add gprmake
27750
27751 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
27752
27753         * sem_aggr.adb: Fix typo in comment.
27754
27755 2004-05-03  Robert Dewar  <dewar@gnat.com>
27756
27757         * make.adb: Minor reformatting
27758
27759         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
27760
27761         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
27762         so that it works when address is not a private type.
27763
27764         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
27765         properly with rewritten unchecked conversions. This prevents
27766         order-of-elaboration issues that can otherwise arise.
27767         (Minimum_Size): Don't check size of access types under VMS
27768
27769         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
27770         interpretations of integer literals as type System.Address.
27771
27772         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
27773         (Is_Descendent_Of): New function
27774
27775 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
27776
27777         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
27778         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
27779         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
27780
27781         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
27782         of the old Max_Entry_Queue_Depth.
27783
27784         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
27785         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
27786         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
27787
27788         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
27789         New entry for proper handling of Max_Entry_Queue_Depth.
27790         New entry for proper handling of No_Dynamic_Interrupts.
27791
27792         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
27793         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
27794         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
27795         the GNAT specific restriction Max_Entry_Queue_Depth.
27796         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
27797         the GNAT specific restriction No_Dynamic_Interrupts.
27798
27799         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
27800         instead of the old Boolean_Entry_Barriers.
27801         Use the new restriction No_Dynamic_Attachment instead of the old
27802         No_Dynamic_Interrupts.
27803
27804         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
27805         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
27806
27807         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
27808         of the old Max_Entry_Queue_Depth.
27809
27810 2004-05-03  GNAT Script  <nobody@gnat.com>
27811
27812         * Make-lang.in: Makefile automatically updated
27813
27814 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
27815
27816         * checks.adb (Enable_Range_Check): If the prefix of an index component
27817         is an access to an unconstrained array, perform check unconditionally.
27818
27819 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27820
27821         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
27822         Component_Clause.
27823
27824 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
27825
27826         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
27827         alternate stack setting. There was no support for the tasking cases
27828         and the changes eventually caused a number of side-effect failures in
27829         the non-tasking case too.
27830
27831 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
27832
27833         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
27834         -gnats is passed.
27835
27836 2004-04-29  Vincent Celier  <celier@gnat.com>
27837
27838         * make.adb (Gnatmake): Increase max size of argument array for
27839         gnatbind for the potential addition of -F.
27840         If there are Stand-Alone Library projects, invoke gnatbind with -F to
27841         be sure that elaboration flags will be checked.
27842
27843         * switch-c.adb: Correct call to Scan_Pos for -gnateI
27844
27845 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
27846
27847         * sem_warn.adb (Check_References): Move '<access-variable> may be
27848         null' warning out of under Warn_On_No_Value_Assigned.
27849
27850 2004-04-29  Ed Falis  <falis@gnat.com>
27851
27852         * gnat_ugn.texi: Fixed texi error
27853
27854 2004-04-29  Robert Dewar  <dewar@gnat.com>
27855
27856         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
27857         abstract operations if they come from predefined files.
27858
27859         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
27860         Dynamic, not RM).
27861
27862         * s-addope.adb: Correct obvious error in mod function
27863
27864 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
27865
27866         * Makefile.in: Add target pairs for powerpc darwin*
27867         tasking support.
27868
27869         * a-intnam-darwin.ads, s-osinte-darwin.adb,
27870         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
27871
27872 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
27873
27874         * Makefile.in: Add target macro definitions for s390*-linux*.
27875         * system-linux-s390.ads: New file.
27876         * system-linux-s390x.ads: New file.
27877
27878 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
27879
27880         * gnat_ugn.texi: Correct argument to @setfilename.
27881
27882 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
27883
27884         * a-exexpr.adb (Unwind_Word): New data type.
27885         (Unwind_Exception): Use it as type of Private1 and Private2.
27886
27887         * raise.c (db_action_for): Fix debug printf.
27888
27889 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
27890
27891         * a-wtmoio.ads: Formal type must be a modular type, not a signed
27892         integer type.
27893
27894 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27895
27896         * decl.c (gnat_to_gnu_entity, case object): Call
27897         __builtin_update_setjmp_buf.
27898
27899         * gigi.h (update_setjmp_buf): Deleted.
27900         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
27901
27902         * misc.c: (update_setjmp_buf): Deleted.
27903
27904         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
27905         around block of RTL.
27906
27907         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
27908
27909 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
27910
27911         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
27912         subprogram for which no pragma All_Calls_Remote applies, store the
27913         address of the real subprogram in the underlying record type, so local
27914         dereferences do not go through the PCS.
27915
27916 2004-04-26  Robert Dewar  <dewar@gnat.com>
27917
27918         * i-c.ads: Add some type qualifications to avoid ambiguities when
27919         compiling with s-auxdec.ads and a non-private address type.
27920
27921 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
27922
27923         * Makefile.rtl: Fix error in previous check-in:
27924         Add s-addope.o to non tasking object list (rather than tasking object
27925         list).
27926
27927 2004-04-26  Javier Miranda  <miranda@gnat.com>
27928
27929         * sem_aggr.adb: Fix typo in comments
27930         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
27931         Required to check the null-exclusion attribute.
27932
27933         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
27934         case of anonymous access types in record and array components. For a
27935         component definition the level is the same of the enclosing composite
27936         type.
27937
27938         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
27939         that are anonymous access types the level of accessibility depends on
27940         the enclosing type declaration. In order to have this information, set
27941         the scope of the anonymous access type to the enclosing record type
27942         declaration.
27943         (Array_Type_Declaration): In case of components that are anonymous
27944         access types the level of accessibility depends on the enclosing type
27945         declaration. In order to have this information, set the scope of the
27946         anonymous access type to the enclosing array type declaration.
27947
27948         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
27949         access type.
27950
27951         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
27952         renaming of anonymous access-to-constant types allowed if and only if
27953         the renamed object is access-to-constant.
27954
27955         * sem_util.adb (Type_Access_Level): In case of anonymous access types
27956         that are component_definition or discriminants of a nonlimited type,
27957         the level is the same as that of the enclosing component type.
27958
27959 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
27960
27961         * sem_elim.adb: Some minor code reorganization from code reading. Fix
27962         misprint in the function name (File_Name_Match).
27963
27964 2004-04-23  Laurent Guerby  <laurent@guerby.net>
27965
27966         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
27967         install.
27968
27969 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27970
27971         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
27972
27973 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
27974
27975         * adaint.c (__gnat_try_lock): No longer requires that the parent
27976         directory be writable, the directory itself is enough.
27977         (gnat_is_absolute_path): Change profile, so that the call from
27978         GNAT.OS_Lib can be made more efficient.
27979
27980         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
27981         from GNAT.OS_Lib can be made more efficient.
27982
27983         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
27984         one copy of the file name. Found by code reading.
27985
27986 2004-04-23  Vincent Celier  <celier@gnat.com>
27987
27988         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
27989         Correct documentation on gnatmake switches transmitted to the compiler
27990
27991         * ali.ads: Minor comment fix
27992
27993 2004-04-23  Javier Miranda  <miranda@gnat.com>
27994
27995         * sem_ch6.adb: (Confirming Types): Code cleanup
27996
27997         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
27998         subprogram types: E_Anonymous_Access_Subprogram_Type and
27999         E_Anonymous_Access_Protected_Subprogram_Type.
28000
28001 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
28002
28003         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
28004         whether a pragma All_Calls_Remote applies to the subprogram on which
28005         'Access is taken.
28006         No functional change is introduced by this revision; the new parameter
28007         will be used to allow calls to local RCI subprograms to be optimized
28008         to not use the PCS in the case where no pragma All_Calls_Remote applies,
28009         as is already done in the PolyORB implementation of the DSA.
28010
28011         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
28012         whether a pragma All_Calls_Remote applies to the subprogram on which
28013         'Access is taken.
28014         No functional change is introduced by this revision; the new parameter
28015         will be used to allow calls to local RCI subprograms to be optimized
28016         to not use the PCS in the case where no pragma All_Calls_Remote applies,
28017         as is already done in the PolyORB implementation of the DSA.
28018
28019 2004-04-23  Robert Dewar  <dewar@gnat.com>
28020
28021         * Makefile.rtl: Add entry for s-addope.o in run time library list
28022         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
28023         * s-addope.ads, s-addope.adb: New files.
28024
28025         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
28026         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
28027         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
28028         System.Address to be non-private and signed.
28029
28030         * sem_elim.adb: Minor reformatting (fairly extensive)
28031         Some minor code reorganization from code reading
28032         Add a couple of ??? comments
28033
28034 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28035
28036         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
28037         (tree_transform, case N_If_Statement): Remove non-determinism.
28038
28039         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
28040
28041 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
28042
28043         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
28044         Eliminate' section.
28045
28046         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
28047         no longer used as a parameter name for Eliminate pragma).
28048
28049 2004-04-22  Laurent Guerby  <laurent@guerby.net>
28050
28051         PR optimization/14984
28052         PR optimization/14985
28053         * trans.c (gigi): Fix non determinism leading to bootstrap
28054         comparison failures.
28055
28056 2004-04-21  Pascal Obry  <obry@gnat.com>
28057
28058         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
28059         passed to spawnvp() to properly handle program pathname with spaces on
28060         Win32.
28061
28062 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
28063
28064         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
28065         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
28066         unlocked in case of exceptions.
28067
28068 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
28069
28070         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
28071         This function does not exist anymore.
28072
28073 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
28074
28075         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
28076
28077         * link.c: Move variables to the __gnat name space.
28078
28079         * Makefile.in: list link.o explicitly when needed.
28080
28081         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
28082
28083 2004-04-21  Javier Miranda  <miranda@gnat.com>
28084
28085         * einfo.adb (Original_Access_Type): New subprogram
28086         (Set_Original_Access_Type): New subprogram
28087         (Write_Field21_Name): Write the name of the new field
28088
28089         * einfo.ads (Original_Access_Type): New field present in access to
28090         subprogram types.
28091         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
28092         E_Anonymous_Access_Protected_Subprogram_Type.
28093
28094         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
28095         subprogram types.
28096
28097         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
28098         to anonymous access to subprogram types.
28099
28100         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
28101         to subprogram types.
28102
28103         * sem_ch3.adb (Access_Definition): Complete decoration of entities
28104         corresponding to anonymous access to subprogram types.
28105         (Analyze_Component_Declaration): Add new actual to the call to
28106         subprogram replace_anonymous_access_to_protected_subprogram.
28107         (Array_Type_Declaration): Add new actual to the call to subprogram
28108         replace_anonymous_access_to_protected_subprogram.
28109         (Process_Discriminants): Add new actual to the call to subprogram
28110         replace_anonymous_access_to_protected_subprogram.
28111         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
28112
28113         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
28114         formal.
28115
28116         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
28117         access to subprogram types.
28118
28119         * sem_util.adb (Has_Declarations): Addition of package_specification
28120         nodes.
28121
28122 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
28123
28124         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
28125         inlined flags to renamed entity only if in current unit.
28126
28127 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
28128
28129         * s-parint.ads: Add DSA implementation marker.
28130
28131         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
28132         value of System.Partition_Interface.DSA_Implementation to determine
28133         what version of the distributed systems annex is available (no
28134         implementation, GLADE, or PolyORB).
28135
28136 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
28137
28138         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
28139
28140 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28141
28142         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
28143         with new type if alias sets differ.
28144         Fixes ACATS c41103b.
28145
28146 2004-04-21  Vincent Celier  <celier@gnat.com>
28147
28148         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
28149         Add array Lang_Args for the language specific compiling argument
28150         switches.
28151
28152         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
28153
28154 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
28155
28156         * gnat_rm.texi: Update the descripton of the Eliminate pragma
28157         according to the recent changes in the format of the parameters of the
28158         pragma (replacing Homonym_Number with Source_Location).
28159
28160 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
28161
28162         * 5isystem.ads: Removed, unused.
28163
28164         * gnat_rm.texi: Redo 1.13 change.
28165
28166 2004-04-19  Robert Dewar  <dewar@gnat.com>
28167
28168         * s-stoele.ads: Clean up definition of Storage_Offset (the new
28169         definition is cleaner, avoids the kludge of explicit Standard operator
28170         references, and also is consistent with a visible System.Address with
28171         no visible operations.
28172
28173         * s-geveop.adb: Add declarations to avoid assumption of visible
28174         operations on type System.Address (since these might not be available
28175         if Address is a non-private type for which the operations
28176         are made abstract).
28177
28178         * sem_eval.adb: Minor reformatting
28179
28180         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
28181         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
28182         reformatting (new function spec format).
28183
28184         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
28185         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
28186         s-caun64.adb: Add declarations to avoid assumption of visible
28187         operations on type System.Address (since these might not be available
28188         if Address is a non-private type for which the operations are made
28189         abstract).
28190
28191         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
28192
28193         * exp_intr.adb: Minor comment update
28194
28195         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
28196
28197         * 5omastop.adb: Add declarations to avoid assumption of visible
28198         operations on type System.Address (since these might not be available
28199         if Address is a non-private type for which the operations
28200         are made abstract).
28201
28202 2004-04-19  Vincent Celier  <celier@gnat.com>
28203
28204         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
28205
28206         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
28207         defaulted to Ada.
28208
28209         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
28210         defaulted to Ada.
28211         Call Check with Process_Languages.
28212         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
28213         with Process_Languages.
28214         (Recursive_Check): New Boolean parameter Process_Languages. Call
28215         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
28216         Process_Languages.
28217
28218         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
28219
28220         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
28221         parameter Ada_Main, defaulted to True.
28222         Check for Ada specific characteristics only when Ada_Main is True.
28223
28224         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
28225
28226         * prj.adb: (Project_Empty): Add new Project_Data components.
28227
28228         * prj.ads: New types and tables for non Ada languages.
28229         (Project_Data): New components Languages, Impl_Suffixes,
28230         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
28231         Include_Path, Include_Data_Set.
28232
28233         * prj-env.ads, prj-env.adb: Minor reformatting
28234
28235         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
28236         Put subprograms in alphabetical order
28237
28238         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
28239         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
28240         Opt.Follow_Links.
28241
28242         * mlib-prj.adb: Back out modification in last version, as they are
28243         incorrect.
28244         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
28245
28246         * make.adb: (Mains): Moved to package Makeutl
28247         (Linker_Opts): Moved to package Makeutl
28248         (Is_External_Assignment): Moved to package Makeutl
28249         (Test_If_Relative_Path): Moved to package Makeutl
28250         (Gnatmake): Move sorting of linker options to function
28251         Makeutl.Linker_Options_Switches.
28252
28253         * makeutl.ads, makeutl.adb: New files.
28254
28255         * Makefile.in: Add makeutl.o to the object files for gnatmake
28256
28257         * makeusg.adb: Add line for new switch -eL.
28258
28259         * gnatls.adb (Image): New function.
28260         (Output_Unit): If in verbose mode, output the list of restrictions
28261         specified by pragmas Restrictions.
28262
28263         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
28264         Text_IO.
28265
28266         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
28267         needed, to put it in the range 1970 (included) - 2026 (excluded).
28268         (Time_Of): Do not shift Unix_Min_Year (1970).
28269         Shift the date by multiple of 56 years, if needed, to put it in the
28270         range 1970 (included) - 2026 (excluded).
28271
28272         * adaint.h, adaint.c (__gnat_set_executable): New function.
28273
28274 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28275
28276         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
28277         and pop GC context.
28278         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
28279         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
28280         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
28281         (tree_transform, case N_Code_Statement): Likewise.
28282         (gnat_expand_stmt, case LABEL_STMT): Don't look at
28283         LABEL_STMT_FIRST_IN_EH.
28284         (gnat_expand_stmt, case ASM_STMT): New case.
28285
28286         * utils2.c (build_unary_op): Properly set TREE_READONLY of
28287         UNCONSTRAINED_ARRAY_REF.
28288
28289         * utils.c (poplevel): Temporarily push/pop GC context around inline
28290         function expansion.
28291
28292         * decl.c (maybe_variable): Properly set TREE_READONLY of
28293         UNCONSTRAINED_ARRAY_REF.
28294         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
28295
28296         * ada-tree.def: (ASM_STMT): New.
28297
28298         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
28299         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
28300         ASM_STMT_INPUT): New.
28301         (ASM_STMT_CLOBBER): Likewise.
28302
28303 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
28304
28305         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
28306         general rcheck mechanism to raise Program_Error for E.4(18), instead
28307         of a custom raiser in System.Partition_Interface.
28308         Part of general cleanup work before PolyORB integration.
28309
28310         * snames.ads, snames.adb: Add new runtime library entities and names
28311         for PolyORB DSA.
28312
28313         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
28314         exp_dist.
28315         (Build_Subprogram_Id): New subprogram provided by exp_dist
28316         Code reorganisation in preparation for PolyORB integration.
28317
28318         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
28319         exp_dist.
28320         (Build_Subprogram_Id): New subprogram provided by exp_dist
28321
28322         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
28323         actual parameter types for call to dereference of an
28324         access-to-subprogram type.
28325
28326         * rtsfind.ads: Add new runtime library entities and names for PolyORB
28327         DSA.
28328
28329         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
28330         instead, which has the same behaviour here since we never pass it a
28331         NULL pointer.
28332
28333         * link.c (run_path_option, Solaris case): Use -Wl, as for other
28334         platforms.
28335
28336         * Makefile.in: adjust object file lists for gnatlink and gnatmake
28337         to account for new dependency upon Interfaces.C.Strings + link.o
28338         For x86 FreeBSD, use 86numaux.
28339
28340         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
28341         from Mlib.Tgt to Mlib.
28342
28343         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
28344         target-independent.
28345
28346         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
28347         target-specific versions of this subprogram, now implemented as a
28348         target-independent function in Mlib.
28349
28350         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
28351         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
28352         (Linker_Library_Path_Option): Remove target-specific versions of this
28353         subprogram, now implemented as a target-independent function in Mlib.
28354
28355         * atree.adb: (Allocate_Initialize_Node): New subprogram.
28356         Factors out node table slots allocation.
28357         (Fix_Parents): New subprogram.
28358         Encapsulate the pattern of fixing up parent pointers for syntactic
28359         children of a rewritten node.
28360         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
28361         (Rewrite): Use New_Copy when creating saved copy of original node.
28362         (Replace): Use Copy_Node to copy nodes.
28363
28364 2004-04-19  Javier Miranda  <miranda@gnat.com>
28365
28366         * sprint.adb (Sprint_Node_Actual): Give support to the new
28367         Access_To_Subprogram node available in Access_Definition nodes. In
28368         addition, give support to the AI-231 node fields: null-exclusion,
28369         all-present, constant-present.
28370
28371         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
28372
28373         * sinfo.ads, sinfo.adb:
28374         New field Access_To_Subprogram_Definition in Access_Definition nodes
28375
28376         * sem_ch6.adb (Process_Formals): Move here the code that creates and
28377         decorates internal subtype declaration corresponding to the
28378         null-excluding formal. This code was previously in Set_Actual_Subtypes.
28379         In addition, carry out some code cleanup on this code. In case of
28380         access to protected subprogram call
28381         Replace_Anonymous_Access_To_Protected_Subprogram.
28382         (Set_Actual_Subtypes): Code cleanup.
28383
28384         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
28385         Find_Type in case of anonymous access renamings. Add warning in case of
28386         null-excluding attribute used in anonymous access renaming.
28387
28388         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
28389         subprogram
28390
28391         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
28392         subprogram.
28393         (Access_Definition): In case of anonymous access to subprograms call
28394         the corresponding semantic routine to decorate the node.
28395         (Access_Subprogram_Declaration): Addition of some comments indicating
28396         some code that probably should be added here. Detected by comparison
28397         with the access_definition subprogram.
28398         (Analyze_Component_Declaration): In case of access to protected
28399         subprogram call Replace_Anonymous_Access_To_Protected.
28400         (Array_Type_Declaration): In case of access to protected subprogram call
28401         Replace_Anonymous_Access_To_Protected_Subprogram.
28402         (Process_Discriminants): In case of access to protected subprogram call
28403         Replace_Anonymous_Access_To_Protected_Subprogram.
28404
28405         * par.adb (P_Access_Definition): New formal that indicates if the
28406         null-exclusion part was present.
28407         (P_Access_Type_Definition): New formal that indicates if the caller has
28408         already parsed the null-excluding part.
28409
28410         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
28411         (P_Identifier_Declarations): Code cleanup and give support to renamings
28412         of anonymous access to subprogram types.
28413         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
28414         (P_Array_Type_Definition): Give support to AI-254.
28415         (P_Component_Items): Give support to AI-254.
28416         (P_Access_Definition): New formal that indicates if the header was
28417         already parsed by the caller.
28418         (P_Access_Type_Definition): New formal that indicates if the caller has
28419         already parsed the null-excluding part.
28420
28421         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
28422         call to P_Access_Definition.
28423
28424 2004-04-19  Geert Bosch  <bosch@gnat.com>
28425
28426         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
28427         the delicate semantics of floating-point to integer conversion.
28428         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
28429
28430         * eval_fat.adb (Machine_Mantissa): Moved to spec.
28431         (Machine_Radix): New function.
28432
28433         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
28434         conversion checks.
28435         (Machine_Radix): New function also for use in conversion checks.
28436
28437 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
28438
28439         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
28440
28441         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
28442         to decorate the access-to-protected subprogram and the equivalent type.
28443
28444         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
28445         to anonymous access to subprogram types.
28446
28447         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
28448         constant-folding, for legality checks in contexts that require an RM
28449         static expression.
28450
28451         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
28452         temporary but stack checking is not enabled, increment serial number
28453         to so that symbol generation is consistent with and without stack
28454         checking.
28455
28456         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
28457         independent on whether stack checking is enabled, caller must check
28458         the corresponding flag.
28459
28460         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
28461         range checks.
28462         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
28463         parent if it has discriminants.
28464         (Build_Derived_Private_Type): Constructed full view does
28465         not come from source.
28466         (Process_Discriminants): Default discriminants on a tagged type are
28467         legal if this is the internal completion of a private untagged
28468         derivation.
28469
28470         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
28471         no constraint checks, because it corresponds to an existing object.
28472
28473         * sem_prag.adb (Process_Convention): Pragma applies
28474         only to subprograms in the same declarative part, i.e. the same unit,
28475         not the same scope.
28476
28477         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
28478         ignore type mismatch on a numeric conversion if expression comes from
28479         expansion.
28480
28481 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
28482
28483         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
28484         Homonym_Number parameter, add processing for Source_Location parameter
28485         corresponding.
28486         (Check_Eliminated): Remove the check for homonym numbers, add the check
28487         for source location traces.
28488
28489         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
28490         with Arg_Source_Location corresponding to the changes in the format of
28491         the pragma.
28492
28493         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
28494         Eliminate pragma corresponding to the changes in the format of the
28495         pragma: Homonym_Number is replaced with Source_Location, two ways of
28496         distinguishing homonyms are mutially-exclusive.
28497
28498 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
28499
28500         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
28501
28502         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
28503         No_Dollar_In_Label, no longer necessary, as it is always True.
28504         (Strip_Suffixes): Likewise.
28505
28506 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
28507
28508         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
28509         modulus for compatibility with size clause on targets with 16-bit
28510         Integer.
28511
28512         * layout.adb (Discrimify): In the case of private types, set Vtyp to
28513         full type to fix type mismatches on calls to size functions for
28514         discriminant-dependent array components.
28515
28516 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
28517
28518         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
28519         lib.
28520
28521 2004-04-19  Pascal Obry  <obry@gnat.com>
28522
28523         * mdll-utl.adb (Locate): New version is idempotent.
28524
28525 2004-04-17  Laurent Guerby  <laurent@guerby.net>
28526
28527         PR ada/14988 (partial)
28528         * impunit.adb: Fix typo.
28529
28530 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
28531
28532         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
28533         and install-rts-cert targets.  Remove all gnatlib and gnattools
28534         targets and all other rts-* targets (moved to libada).  Remove (now)
28535         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
28536         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
28537
28538 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28539
28540         * trans.c (tree_transform): Shortcut returning error_mark_node for
28541         statements in annotate_only_mode.
28542         (tree_transform, case N_Label, case N_Return_Statement,
28543         N_Goto_Statement): Make statement tree instead of generating code.
28544         (tree_transform, case N_Assignment_Statement): No longer check
28545         type_annotate_only.
28546         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
28547         RETURN_STMT): New.
28548         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
28549         New fcns.
28550         (gnat_to_gnu): Collect any RTL generated and deal with it.
28551         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
28552         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
28553         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
28554
28555         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
28556
28557         * ada-tree.def (EXPR_STMT): Fix typo in name.
28558         (BLOCK_STMT, IF_STMT): New nodes.
28559
28560         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
28561         LABEL_STMT_FIRST_IN_EH): New macros.
28562         (RETURN_STMT_EXPR): Likewise.
28563
28564         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
28565         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
28566
28567 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
28568
28569         * atree.ads: Correct documentation on extended nodes.
28570
28571         * link.c: Set run_path_option for FreeBSD.
28572
28573 2004-04-08  Vincent Celier  <celier@gnat.com>
28574
28575         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
28576         one of the ALI file, do not link with DEC lib.
28577
28578         * par.adb Remove the last two characters ("%s" or "%b") when checking
28579         if a language defined unit may be recompiled.
28580
28581 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
28582
28583         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
28584         removal of abstract operation leaves no possible interpretation for
28585         expression.
28586
28587         * sem_eval.adb (Eval_Qualified_Expression): Use
28588         Set_Raises_Constraint_Error on node when needed, so that it does not
28589         get optimized away by subsequent optimizations.
28590
28591         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
28592         operands even when they are not wrapped in a type conversion.
28593
28594 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
28595
28596         * sem_prag.adb (Set_Exported): Warn about making static as result of
28597         export only when the export is coming from source. This may be not
28598         be true e.g. on VMS where we expand export pragmas for exception codes
28599         together with imported or exported exceptions, and we don't want the
28600         user to be warned about something he didn't write.
28601
28602 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
28603
28604         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
28605         duplication between normal entities and those declared as renamings.
28606         No functional change.
28607
28608         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
28609         inline functions returning an unconstrained result.
28610
28611 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
28612
28613         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
28614         conform to what other front-ends do.
28615
28616 2004-04-08  Doug Rupp  <rupp@gnat.com>
28617
28618         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
28619         libraries.
28620
28621 2004-04-06  Pascal Obry  <obry@gnat.com>
28622
28623         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
28624
28625         * osint.adb (Program_Name): Do not look past a directory separator.
28626
28627 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
28628
28629         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
28630
28631         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
28632         requirement for preserving a copy of the original assignment node.
28633
28634         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
28635
28636 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
28637
28638         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
28639         when supported.
28640
28641 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
28642
28643         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
28644         operator calls in functional notation, and apply
28645         Universal_Interpretation to operands, not to their type.
28646
28647 2004-04-06  Robert Dewar  <dewar@gnat.com>
28648
28649         * 5wdirval.adb: Minor reformatting
28650
28651 2004-04-06  Ed Falis  <falis@gnat.com>
28652
28653         * gnat_rm.texi: Improve a reference to the GCC manual
28654
28655 2004-04-05  Vincent Celier  <celier@gnat.com>
28656
28657         * adaint.h, adaint.c: Add function __gnat_named_file_length
28658
28659         * impunit.adb: Add Ada.Directories to the list
28660
28661         * Makefile.in: Add VMS and Windows versions of
28662         Ada.Directories.Validity package body.
28663
28664         * Makefile.rtl: Add a-direct and a-dirval
28665
28666         * mlib-tgt.ads: Minor comment update.
28667
28668         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
28669         a-direct.ads, a-direct.adb: New files.
28670
28671 2004-04-05  Vincent Celier  <celier@gnat.com>
28672
28673         PR ada/13620
28674         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
28675         just to the compiler.
28676
28677 2004-04-05  Robert Dewar  <dewar@gnat.com>
28678
28679         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
28680         returned string is 1.
28681
28682         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
28683
28684         * eval_fat.ads: Minor reformatting
28685
28686         * g-curexc.ads: Document that lower bound of returned string values
28687         is always one.
28688
28689         * gnatlink.adb: Add ??? comment for previous change
28690         (need to document why this is VMS specific)
28691
28692         * s-stoele.ads: Minor reformatting
28693
28694         * tbuild.ads: Minor reformatting throughout (new function specs)
28695
28696         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
28697         after WITH.
28698
28699         * scng.adb: Minor reformatting
28700
28701 2004-04-05  Geert Bosch  <bosch@gnat.com>
28702
28703         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
28704         (Leading_Part): Still perform truncation to machine number if the
28705         specified radix_digits is greater or equal to machine_mantissa.
28706
28707 2004-04-05  Javier Miranda  <miranda@gnat.com>
28708
28709         * par-ch3.adb: Complete documentation of previous change
28710         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
28711         (aliased must appear before constant).
28712
28713         * par-ch4.adb: Complete documentation of previous change.
28714
28715         * par-ch6.adb: Complete documentation of previous change.
28716
28717         * sinfo.ads: Fix typo in commment.
28718
28719 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
28720
28721         * sem_ch3.adb (Inherit_Components): If derived type is private and has
28722         stored discriminants, use its discriminants to constrain parent type,
28723         as is done for non-private derived record types.
28724
28725         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
28726         Ada 2005 AI-310: an abstract non-dispatching operation is not a
28727         candidate interpretation in an overloaded call.
28728
28729         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
28730         expression is Null and target type is not an access type (e.g. a
28731         non-private address type).
28732
28733 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
28734
28735         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
28736         statement whose right-hand side is an inlined call, save a copy of the
28737         original assignment subtree to preserve enough consistency for
28738         Analyze_Assignment to proceed.
28739
28740         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
28741         complete assignment subtree which is now unnecessary, as the expansion
28742         of inlined call has been improved to preserve a consistent assignment
28743         tree.  Note_Possible_Modification must be called only
28744         after checks have been applied, or else unnecessary checks will
28745         be generated.
28746
28747         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
28748         of explicit dereferences that do not Come_From_Source:
28749          - be selective on cases where we must go back to the dereferenced
28750            pointer (an assignment to an implicit dereference must not be
28751            recorded as modifying the pointer);
28752          - do not rely on Original_Node being present (Analyze_Assignment
28753            calls Note_Possible_Modification on a copied tree).
28754
28755         * sem_warn.adb (Check_References): When an unset reference to a pointer
28756         that is never assigned is encountered, prefer '<pointer> may be null'
28757         warning over '<pointer> is never assigned a value'.
28758
28759 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
28760
28761         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
28762         the ABI.
28763
28764 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
28765
28766         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
28767         libexc. We currently don't reference anything in this library and
28768         linking it in triggers linker warnings we don't want to see.
28769
28770         * init.c: Update comments.
28771
28772 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28773
28774         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
28775         * utils.c (create_field_decl): Likewise.
28776         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
28777
28778 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
28779
28780         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
28781         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
28782         Add info directory entry and category.
28783
28784 2004-04-02  Jan Hubicka  <jh@suse.cz>
28785
28786         * utils.c: Include function.h
28787         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
28788
28789 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
28790
28791         PR ada/14150
28792         * Make-lang.in: Clean up generation of documentation
28793
28794         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
28795
28796         * xgnatug.adb: Removed, replaced by xgnatugn.adb
28797
28798         * xgnatugn.adb: Replaces xgnatug.adb
28799
28800         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
28801
28802         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
28803
28804         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
28805         gnat_ug_wnt.texi: Removed.
28806
28807 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
28808
28809         * utils2.c: Update copyright notice.
28810
28811 2004-04-01  Robert Dewar  <dewar@gnat.com>
28812
28813         * checks.adb: Minor reformatting throughout
28814         Note that prev checkin added RM reference to alignment warning
28815
28816 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
28817
28818         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
28819         non-static when building aggregate for bit-packed array.
28820
28821         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
28822         function call that is itself the actual in a procedure call, build
28823         temporary for it.
28824
28825         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
28826         a string literal, create a temporary for it, constant folding only
28827         handles scalars here.
28828
28829 2004-04-01  Vincent Celier  <celier@gnat.com>
28830
28831         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
28832         Error_Msg_SP): New empty procedures to instantiate the Scanner.
28833         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
28834         tokens.
28835         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
28836         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
28837         and get the checksum.
28838
28839         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
28840         already in the Q.
28841         Increase the Marking_Label at the end of the Multiple_Main_Loop,
28842         instead of at the beginning.
28843
28844         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
28845         directly.
28846         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
28847         on VMS.
28848
28849         * osint.ads (Multi_Unit_Index_Character): New Character global variable
28850
28851         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
28852         not '~' directly.
28853
28854         * par.adb: Remove test on file name to detect language defined units.
28855         Add test on unit name, after parsing, to detect language defined units
28856         that are not compiled with -gnatg (except System.RPC and its children)
28857
28858         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
28859         following units without style checking.
28860
28861         * switch-c.adb: Change -gnatC to -gnateI
28862
28863         * usage.adb: Document new switch -gnateInnn
28864
28865         * scng.adb (Accumulate_Token_Checksum): New procedure
28866         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
28867         word or literal number.
28868         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
28869         numbers.
28870
28871 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
28872
28873         * a-tasatt.adb,
28874         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
28875         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
28876         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
28877         5vtpopde.adb: Add missing 'constant' keywords.
28878
28879 2004-04-01  Javier Miranda  <miranda@gnat.com>
28880
28881         * par-ch4.adb: (P_Allocator): Code cleanup
28882
28883         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
28884         attribute.
28885
28886         * sinfo.ads: Complete documentation of previous change
28887
28888 2004-04-01  Pascal Obry  <obry@gnat.com>
28889
28890         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
28891         only on VMS.  This special handling was done because an old GNU/ld bug
28892         on Windows which has been fixed.
28893
28894 2004-04-01  GNAT Script  <nobody@gnat.com>
28895
28896         * Make-lang.in: Makefile automatically updated
28897
28898 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28899
28900         * decl.c (gnat_to_gnu_entity, make_type_from_size):
28901         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
28902         * trans.c (tree_transform, convert_with_check): Likewise.
28903         * utils.c (gnat_signed_or_unsigned_type): Likewise.
28904         (build_vms_descriptor, unchecked_convert): Likewise.
28905         * utils2.c (nonbinary_modular_operation): Likewise.
28906
28907 2004-03-29  Javier Miranda  <miranda@gnat.com>
28908
28909         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
28910         (Install_Null_Excluding_Check): Local subprogram that determines whether
28911         an access node requires a runtime access check and if so inserts the
28912         appropriate run-time check.
28913         (Apply_Access_Check): Call Install_Null_Excluding check if required
28914         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
28915
28916         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
28917
28918         * einfo.ads: Fix typo in comment
28919
28920         * exp_ch3.adb (Build_Assignment): Generate conversion to the
28921         null-excluding type to force the corresponding run-time check.
28922         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
28923         type to force the corresponding run-time check.
28924
28925         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
28926         the null-excluding type to force the corresponding run-time check.
28927
28928         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
28929         case of access types unless they have the null-excluding attribute.
28930
28931         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
28932         part.
28933
28934         * exp_util.ads: Fix typo in comment
28935
28936         * par.adb (P_Null_Exclusion): New subprogram
28937         (P_Subtype_Indication): New formal that indicates if the null-excluding
28938         part has been scanned-out and it was present
28939
28940         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
28941
28942         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
28943         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
28944         type to force the corresponding run-time check
28945         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
28946         components
28947         (Resolve_Array_Aggregate): Carry out some static checks
28948         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
28949
28950         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
28951         attribute must be set only if specified by means of the null-excluding
28952         part. In addition, we must also propagate the access-constant attribute
28953         if present.
28954         (Access_Subprogram_Declaration, Access_Type_Declaration,
28955         Analyze_Component_Declaration, Analyze_Object_Declaration,
28956         Array_Type_Declaration, Process_Discriminants,
28957         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
28958         and carry out some static checks.
28959         (Build_Derived_Access_Type): Set the null-excluding attribute
28960         (Derived_Type_Declaration, Process_Subtype): Carry out some static
28961         checks.
28962
28963         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
28964
28965         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
28966
28967         * sem_ch6.adb (Process_Formals): Carry out some static checks.
28968         (Set_Actual_Subtypes): Generate null-excluding subtype if the
28969         null-excluding part was present; it is not required to be done here in
28970         case of anonymous access types.
28971         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
28972         value.
28973
28974         * sem_res.adb (Resolve_Actuals): Carry out some static check
28975         (Resolve_Null): Allow null in anonymous access
28976
28977         * sinfo.adb: New subprogram Null_Exclusion_Present
28978         All_Present and Constant_Present available on access_definition nodes
28979
28980         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
28981         object_declaration, derived_type_definition, component_definition,
28982         discriminant_specification, access_to_object_definition,
28983         access_function_definition, allocator, access_procedure_definition,
28984         access_definition, parameter_specification, All_Present and
28985         Constant_Present flags available on access_definition nodes.
28986
28987 2004-03-29  Robert Dewar  <dewar@gnat.com>
28988
28989         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
28990         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
28991         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
28992         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
28993         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
28994         sem_prag.adb: Updates to handle multiple units/file
28995
28996         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
28997
28998         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
28999         sem_util.adb: Minor reformatting
29000
29001         * sem_ch12.adb: Add comment for previous change
29002
29003 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
29004
29005         * osint.adb (Executable_Prefix): Set Exec_Name to the current
29006         executable name when not initialized. Otherwise, use its current value.
29007
29008         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
29009         initialize it to another executable name than the current one. This
29010         allows to configure paths for an executable name (gnatmake) different
29011         from the current one (gnatdist).
29012
29013 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
29014
29015         * exp_ch6.adb (Expand_Call): A call to a function declared in the
29016         current unit cannot be inlined if it appears in the body of a withed
29017         unit, to avoid order of elaboration problems in gigi.
29018
29019         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
29020         information for protected (wrapper) operation as well, to simplify gdb
29021         use.
29022
29023         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
29024         protected body, indicate that the entity for the generated spec comes
29025         from source, to ensure that references are properly generated for it.
29026         (Build_Body_To_Inline): Do not inline a function that returns a
29027         controlled type.
29028
29029         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
29030         apply convention to homonyms that are declared explicitly.
29031
29032         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
29033         that renames an equality operator and the operands are overloaded,
29034         resolve them with the declared formal types, before rewriting as an
29035         operator.
29036
29037 2004-03-29  GNAT Script  <nobody@gnat.com>
29038
29039         * Make-lang.in: Makefile automatically updated
29040
29041 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
29042
29043         * memtrack.adb: Log realloc calls, which are treated as free followed
29044         by alloc.
29045
29046 2004-03-25  Vincent Celier  <celier@gnat.com>
29047
29048         * prj-makr.adb (Process_Directories): Detect when a file contains
29049         several units. Do not include such files in the config pragmas or
29050         in the naming scheme.
29051
29052         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
29053         Resolve links only when not in Trusted_Mode.
29054         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
29055         Do not resolve links for the display names.
29056
29057         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
29058         resolve links when computing the display names.
29059
29060 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
29061
29062         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
29063         attribute reference does not denote a subtype, it can be any
29064         expression that has a classwide type, potentially after an implicit
29065         dereference.  In particular, the prefix can be a view conversion for
29066         a classwide type (for which Is_Object_Reference holds), but it can
29067         also be a value conversion for an access-to-classwide type. In the
29068         latter case, there is an implicit dereference, and the original node
29069         for the prefix does not verify Is_Object_Reference.
29070
29071         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
29072         conversion of a discriminant-dependent component of a mutable object
29073         is one itself.
29074
29075 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
29076
29077         * freeze.adb (Freeze_Entity): When an inherited subprogram is
29078         inherited, has convention C, and has unconstrained array parameters,
29079         place the corresponding warning on the derived type declaration rather
29080         than the original subprogram.
29081
29082         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
29083         indication on renaming declaration, if formal has a box and actual
29084         is absent.
29085
29086         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
29087         determine whether to generate an implicit or explicit reference to
29088         the renamed entity.
29089
29090         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
29091         subprogram renaming comes from a defaulted formal subprogram in an
29092         instance.
29093
29094 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
29095
29096         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
29097         value expressions to ensure that calls within a component definition
29098         will be checked (since those are evaluated during the record type's
29099         elaboration).
29100
29101 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
29102
29103         * s-tpobop.adb: Code clean up:
29104         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
29105         code.
29106         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
29107
29108 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
29109
29110         * Makefile.in: Clean up in the ravenscar run time.
29111
29112 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29113
29114         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
29115         of No_Strict_Aliasing to build_pointer_type_for_mode.
29116         * utils.c (update_pointer_to): Walk pointer and ref chains.
29117
29118 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
29119
29120         * ali.ads: Fix Comment about Dynamic_Elab.
29121
29122         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
29123         Has_RACW, Is_Generic, etc.)
29124         (Output_Object, Gnatls): Take into account ALI files not attached to
29125         an object.
29126
29127 2004-03-22  Vincent Celier  <celier@gnat.com>
29128
29129         * gprep.adb: Change all String_Access to Name_Id
29130         (Is_ASCII_Letter): new function
29131         (Double_File_Name_Buffer): New procedure
29132         (Preprocess_Infile_Name): New procedure
29133         (Process_Files): New procedure
29134         (Gnatprep): Check if output and input are existing directories.
29135         Call Process_Files to do the real job.
29136
29137 2004-03-22  Robert Dewar  <dewar@gnat.com>
29138
29139         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
29140         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
29141
29142 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
29143
29144         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
29145         case when the source contains only comments.
29146
29147 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
29148
29149         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
29150         declaration for a child subprogram body that acts as a spec, indicate
29151         that the entity in the declaration needs debugging information.
29152
29153         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
29154         full view if the subtype is created for a constrained record component;
29155         gigi has enough information to construct the record, and there is no
29156         place in the tree for the declaration.
29157
29158         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
29159         serial number for the dummy body that is built for analysis, to avoid
29160         inconsistencies in the generation of internal names when compiling
29161         with -gnatN.
29162
29163 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
29164
29165         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
29166         object.
29167
29168 2004-03-22  GNAT Script  <nobody@gnat.com>
29169
29170         * Make-lang.in: Makefile automatically updated
29171
29172 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29173
29174         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
29175         * trans.c (tree_transform, emit_index_check): Likewise.
29176         * utils.c (build_template): Likewise.
29177         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
29178         (maybe_unconstrained_array, unchecked_convert): Likewise.
29179         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
29180         (build_unary_op): Likewise.
29181         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
29182         (fill_vms_descriptor): Likewise.
29183         (build_call_alloc_dealloc): Likewise.
29184         ALIGN is unsigned.
29185         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
29186
29187 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
29188
29189         PR other/14630
29190         * gnat_ug.texi: Add info directory category and entry.
29191         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
29192         gnat_ug_wnt.texi: Regenerate.
29193
29194 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
29195
29196         * ada-tree.h: Update copyright notice.
29197         Minor reformatting.
29198
29199 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
29200
29201         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
29202         as regular exception objects and not as mere integers representing the
29203         condition code.  The latter approach required some dynamics to mask off
29204         severity bits, which did not fit well into the GCC table based model.
29205         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
29206         exception data objects. We don't it and it would conflict with the other
29207         external symbol we have to generate for such exceptions.
29208
29209         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
29210         the special code for VMS exceptions, since these are now represented
29211         as regular exceptions objects.
29212
29213 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29214
29215         * decl.c (debug_no_type_hash): Remove.
29216         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
29217         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
29218
29219 2004-03-19  Laurent Guerby  <laurent@guerby.net>
29220
29221         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
29222         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
29223
29224 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29225
29226         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
29227         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
29228         (TYPE_RM_SIZE_INT): Directly use type.values.
29229         (TREE_LOOP_ID): Clean up check.
29230         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
29231         TYPE_VALUES, not TYPE_FIELDS.
29232         * trans.c (convert_with_check): Delay access of bounds of basetype
29233         until sure is numeric.
29234
29235 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
29236
29237         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
29238
29239         Code clean up:
29240         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
29241         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
29242         Specific.Set instead of direct call to e.g pthread_setspecific.
29243
29244 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
29245
29246         * adaint.c: Update comments.
29247
29248         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
29249         GNATLIB_SHARED for FreeBSD.
29250
29251 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
29252
29253         * init.c [VxWorks]: Do not fix the stack size for the environment task.
29254         When needed (stack checking) the stack size is retrieved
29255         from the VxWorks kernel.
29256
29257         * Makefile.in: Flag -nostdinc is required when building the run time
29258         for avoiding looking for files in the base compiler.
29259         Add the VxWorks specific version of the package body for
29260         System.Stack_checking.Operations (5zstchop.adb).
29261
29262         * Make-lang.in: Add the object file for
29263         System.Stack_Checking.Operations.
29264
29265         * Makefile.rtl: Add object file for the package
29266         System.Stack_Checking.Operations.
29267
29268         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
29269
29270         * s-stache.ads, s-stache.adb: Move the operations related to stack
29271         checking from this package to package System.Stack_Checking.Operations.
29272         This way, stack checking operations are only linked in the final
29273         executable when using the -fstack-check flag.
29274
29275 2004-03-18  Doug Rupp  <rupp@gnat.com>
29276
29277         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
29278         Reorganize ifeq's.
29279
29280         * 5qsystem.ads, 5xcrtl.ads: New files.
29281
29282 2004-03-18  Vincent Celier  <celier@gnat.com>
29283
29284         * prj.adb (Reset): Reset hash table Files_Htable
29285
29286         * prj-env.adb (Source_Paths, Object_Paths): New tables.
29287         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
29288         the procedures Add_To_Path_File.
29289         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
29290         making sure that each directory is present only once and, for object
29291         dirs, when a directory already present is added, the duplicate is
29292         removed and the directory is always put as the last in the table.
29293         Write the path files at the end of these accumulations.
29294
29295         * prj-nmsc.adb (Record_Source): Add source file name in hash table
29296         Files_Htable for all sources.
29297
29298         * prj-proc.adb (Process): Remove restrictions between not directly
29299         related extending projects.
29300
29301 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
29302
29303         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
29304         (Find_Sources): Minor speed optimization.
29305
29306         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
29307         parameter Trusted_Mode.
29308
29309 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
29310
29311         * scn.adb (Determine_License): Take into account a degenerated case
29312         when the source contains only comments.
29313
29314 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
29315
29316         * sem_warn.adb (Check_References): For a warning on a selected
29317         component that does not come from source, locate an uninitialized
29318         component of the record type to produce a more precise error message.
29319
29320 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
29321
29322         * 3zsoccon.ads: Fix multicast options.
29323
29324         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
29325         in the spec.
29326
29327 2004-03-15  Robert Dewar  <dewar@gnat.com>
29328
29329         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
29330         pragma used for a private type.
29331
29332         * lib-xref.adb (Generate_Reference): Do not generate warning if
29333         reference is in a different unit from the pragma Unreferenced.
29334
29335         * 5vtpopde.adb: Minor reformatting
29336         Fix casing of To_Task_ID
29337
29338         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
29339         flag if we have an unchecked conversion to an access type in the same
29340         unit.
29341
29342 2004-03-15  Geert Bosch  <bosch@gnat.com>
29343
29344         * a-ngcoty.adb (Modulus): In alternate formula for large real or
29345         imaginary parts, use Double precision throughout.
29346
29347         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
29348         we want to be able to compile run-time with -gnata for testing, but
29349         this may also be instantiated in user code that is compiled with -gnata.
29350
29351 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
29352
29353         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
29354         codes. Having a separate type for this is useful to enforce consistency
29355         throughout the various run-time units.
29356         (Exception_Data): Use Exception_Code for Import_Code.
29357
29358         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
29359         Natural and Integer in various places.
29360         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
29361         with the severity bits masked off.
29362         (Register_VMS_Exception): Handle the additional exception data pointer
29363         argument.
29364
29365         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
29366         component, now reflected by an exported accessor.
29367         (is_handled_by): New routine to compute whether the propagated
29368         occurrence matches some handler choice specification. Extracted out of
29369         get_action_description_for, and expanded to take care of the VMS
29370         specifities.
29371         (get_action_description_for): Use is_handled_by instead of an explicit
29372         complex condition to decide if the current choice at hand catches the
29373         propagated occurrence.
29374
29375         * raise.h (Exception_Code): New type for C.
29376
29377         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
29378         System.Standard_Library.Exception_Code, to allow references from the
29379         pragma import/export expander.
29380
29381         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
29382         New accessors to allow easy access to GNAT exception data
29383         characteristics.
29384         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
29385         redundant Handled_By_Others component, helper for the personality
29386         routine which will now be able to call the appropriate exception data
29387         accessor instead.
29388
29389         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
29390         component of Standard_Exception_Type to be the closest possible to
29391         Exception_Code in System.Standard_Library, that we cannot get at this
29392         point. Expand a ??? comment to notify that this type node should
29393         probably be rewritten later on.
29394
29395         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
29396         registration call to include a pointer to the exception object in the
29397         arguments.
29398
29399         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
29400         instead of int and explicit bitmasks.
29401
29402 2004-03-15  Vincent Celier  <celier@gnat.com>
29403
29404         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
29405         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
29406
29407         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
29408         longer needed now that it is in the spec of
29409         System.Tasking.Task_Attributes.
29410
29411         * adaint.h, adaint.c: (__gnat_create_output_file): New function
29412
29413         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
29414
29415         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
29416
29417         * make.adb (Gnatmake): Do not check the executable suffix; it is being
29418         taken care of in Scan_Make_Arg.
29419         (Scan_Make_Arg): Add the executable suffix only if the argument
29420         following -o, in canonical case, does not end with the executable
29421         suffix.  When in verbose mode and executable file name does not end
29422         with executable suffix, output the executable name, in canonical case.
29423
29424         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
29425         to avoid warnings when instantiating Ada.Task_Attributes.
29426         Minor reformating.
29427
29428         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
29429         in the correct order.
29430
29431         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
29432         redirect standard output and error to a file for the invocation of the
29433         compiler, then read the file.
29434
29435         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
29436         directory, instead of the Value.
29437         (Find_Source_Dirs): Remove useless code & comments.
29438
29439 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
29440
29441         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
29442         tagged type is inherited, and the parent operation is not frozen yet,
29443         force generation of a freeze node for the inherited operation, so the
29444         corresponding dispatch entry is properly initialized.
29445         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
29446         when looking for user-defined equality operation.
29447
29448         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
29449         boolean when locating primitive equality of tagged component.
29450
29451         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
29452         bit-aligned field and the right-hand side a string literal, introduce
29453         a temporary before expanding assignment into a loop.
29454
29455         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
29456         priority in full, to ensure that any expanded subepxressions of it are
29457         elaborated in the scope of the init_proc.
29458
29459         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
29460         after object declaration, skipping over code that may have been
29461         generated for validity checks.
29462
29463         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
29464         discriminants, ignore the known discriminants of its full view, if
29465         any, to check legality.
29466
29467         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
29468         component if type has unknown discriminants.
29469         (Analyze_Private_Extension_Declaration): Discriminant constraint is
29470         null if type has unknown discriminants.
29471
29472         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
29473         for end label when present.
29474
29475         * s-fileio.adb (Open): When called with a C_Stream, use given name for
29476         temporary file, rather than an empty string.
29477
29478 2004-03-15  Ed Falis  <falis@gnat.com>
29479
29480         * s-thread.adb: Removed, no longer used.
29481
29482 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29483
29484         * decl.c (target.h): Now include.
29485         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
29486         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
29487         (validate_size): For POINTER_TYPE, get smallest size permitted on
29488         machine.
29489
29490         * fe.h: Sort Einfo decls and add Set_Mechanism.
29491
29492         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
29493         (ada/decl.o): Depends on target.h.
29494
29495         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
29496         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
29497
29498 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
29499
29500         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
29501
29502         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
29503         Insert_Dereference_Action when rewriting an implicit dereference into
29504         an explicit one, this will be taken care of during expansion of the
29505         explicit dereference.
29506         (Expand_N_Slice): Same. Always do the rewriting, even for the case
29507         of non-packed slices, since the dereference action generated by
29508         expansion of the explicit dereference is needed in any case.
29509         (Expand_N_Selected_Component): When rewriting an implicit dereference,
29510         analyze and resolve the rewritten explicit dereference so it is seen
29511         by the expander.
29512         (Insert_Dereference_Action): This procedure is now called only for the
29513         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
29514         dereferences that do not come from source (including explicit
29515         dereferences resulting from rewriting implicit ones), but do not
29516         recursively insert a check for the dereference nodes contained within
29517         the check.
29518         (Insert_Dereference_Action): Clarify and correct comment.
29519
29520 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
29521
29522         PR ada/14131
29523         Move language detection to the top level.
29524         * config-lang.in: Build by default.
29525
29526 2004-03-05  Robert Dewar  <dewar@gnat.com>
29527
29528         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
29529
29530         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
29531         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
29532         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
29533         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
29534         unchecked conversion to spec to avoid warnings.
29535
29536         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
29537         to Task_ID
29538
29539         * 7stpopsp.adb: Correct casing in To_Task_ID call
29540
29541         * a-strsea.ads, a-strsea.adb: Minor reformatting
29542
29543         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
29544
29545         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
29546         Adjust Max_Msg_Length to be clearly large enough.
29547
29548         * fe.h: Define In_Same_Source_Unit
29549
29550         * osint.adb: Add pragma Warnings Off to suppress warnings
29551         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
29552         aliasing warnings.
29553
29554         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
29555
29556         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
29557
29558         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
29559
29560         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
29561
29562         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
29563
29564         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
29565         node. We now do generate them for gcc back end.
29566
29567         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
29568         warning.
29569
29570         * sinput-c.adb: Fix bad name in header.
29571         Add pragma Warnings Off to suppress aliasing warning.
29572
29573         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
29574
29575         * snames.h, snames.ads, snames.adb: Add entry for pragma
29576         No_Strict_Aliasing.
29577
29578 2004-03-05  Vincent Celier  <celier@gnat.com>
29579
29580         * prj-com.ads: Add hash table Files_Htable to check when a file name
29581         is already a source of another project.
29582
29583         * prj-nmsc.adb (Record_Source): Before recording a new source, check
29584         if its file name is not already a source of another project. Report an
29585         error if it is.
29586
29587         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
29588         source file name, call gnatpp with all the sources of the main project.
29589
29590         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
29591         of file names.
29592
29593         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
29594         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
29595         /RUNTIME_SYSTEM=, converted to --RTS=
29596         /NOTABS, converted to -notabs
29597
29598 2004-03-05  Pascal Obry  <obry@gnat.com>
29599
29600         * make.adb: Minor reformatting.
29601
29602 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
29603
29604         Part of implemention of AI-262.
29605         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
29606
29607         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
29608         procedure.
29609
29610         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
29611         when component type is a partially constrained class-wide subtype.
29612         (Constrain_Discriminated_Type): If parent type has unknown
29613         discriminants, a constraint is illegal, even if full view has
29614         discriminants.
29615         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
29616         with unknown discriminants whose full view is a discriminated record.
29617
29618         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
29619         flag, to handle properly derivations of tagged types with unknown
29620         discriminants.
29621         (Analyze_Package_Spec, Analyze_Package_Body): Install
29622         Private_With_Clauses before analyzing private part or body.
29623
29624         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
29625         Has_Discriminants can be true for a given type (documentation).
29626
29627 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
29628
29629         * s-restri.ads: Fix license (GPL->GMGPL).
29630
29631         * s-tassta.adb: Minor reformatting.
29632
29633         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
29634         by calls to Exit_One_ATC_Level, since additional clean up is performed
29635         by this function.
29636
29637         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
29638         by calls to Exit_One_ATC_Level, since additional clean up is performed
29639         by this function.
29640
29641 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29642
29643         * trans.c: Reflect GCC changes to fix bootstrap problem.
29644         Add warning for suspicious aliasing unchecked conversion.
29645
29646 2004-03-05  GNAT Script  <nobody@gnat.com>
29647
29648         * Make-lang.in: Makefile automatically updated
29649
29650 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
29651
29652         * ali.adb (Read_Instantiation_Instance): Do not modify the
29653         current_file_num when reading information about instantiations, since
29654         this corrupts files in later references.
29655
29656 2004-03-02  Vincent Celier  <celier@gnat.com>
29657
29658         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
29659         before checking if it is read-only.
29660
29661         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
29662         of SRC_DIRS and eliminate duplicates.
29663
29664         * gprcmd.adb: Replace command "path" with command "path_sep" to return
29665         the path separator.
29666         (Usage): Document path_sep
29667
29668         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
29669         C++ compiler. No need for a script.
29670         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
29671         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
29672         subst.
29673
29674         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
29675         where there are Ada sources.
29676         (Set_Ada_Paths): Only add to the include path the source dirs of project
29677         with Ada sources.
29678         (Add_To_Path): Add the Display_Values of the directories, not their
29679         Values.
29680
29681         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
29682         data.
29683
29684         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
29685         is not No_Name.
29686         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
29687         Value is canonicalized.
29688         (Language_Independent_Check): Do not copy Value to Display_Value when
29689         canonicalizing Value.
29690
29691         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
29692         path to find limited with cycles.
29693         (Parse_Single_Project): Use canonical cased path to find the end of a
29694         with cycle.
29695
29696 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
29697
29698         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
29699         and not a child unit.
29700
29701         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
29702         appear in a with_clause.
29703
29704         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
29705         only happen in type_annotate mode, do not try to elaborate it.
29706
29707         * exp_util.adb (Force_Evaluation): If expression is a selected
29708         component on the left of an assignment, use a renaming rather than a
29709         temporary to remove side effects.
29710
29711         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
29712         inlined instance body, which is analyzed before the end of the
29713         enclosing scope.
29714
29715 2004-03-02  Robert Dewar  <dewar@gnat.com>
29716
29717         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
29718         sem_ch4.adb: Use new feature for substitution of keywords in VMS
29719
29720         * errout.ads, errout.adb: Implement new circuit for substitution of
29721         keywords in VMS.
29722
29723         * sem_case.adb (Analyze_Choices): Place message properly when case is
29724         a subtype reference rather than an explicit range.
29725
29726         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
29727
29728 2004-03-02  Doug Rupp  <rupp@gnat.com>
29729
29730         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
29731
29732 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
29733
29734         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
29735
29736 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29737
29738         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
29739         BLKmode bitfield.
29740
29741 2004-02-25  Robert Dewar  <dewar@gnat.com>
29742
29743         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
29744         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
29745         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
29746         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
29747         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
29748         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
29749         the defining instance of the type to avoid aliasing problems.
29750         Fix copyright header.  Fix bad comments in package header.
29751
29752         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
29753
29754 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
29755
29756         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
29757         rewritten as references when aliased through an address clause.
29758
29759         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
29760         whether call can be interpreted as an indirect call to the result of a
29761         parameterless function call returning an access subprogram.
29762
29763 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
29764
29765         Code clean up:
29766         * exp_ch7.adb (Make_Clean): Remove generation of calls to
29767         Unlock[_Entries], since this is now done by Service_Entries directly.
29768
29769         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
29770
29771         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
29772         Requeue_Call for better code readability. Change spec and update calls:
29773         PO_Service_Entries now unlock the PO on exit.
29774         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
29775         PO_Service_Entries.
29776
29777         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
29778
29779         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
29780
29781 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
29782
29783         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
29784         protected subprogram call and analyzing the result of such expanding
29785         in case when the called protected subprogram is eliminated.
29786
29787         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
29788         names.
29789
29790 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
29791
29792         * Makefile.in: Clean ups.
29793
29794 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
29795
29796         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
29797         protected operations if original subprogram is flagged as eliminated.
29798         (Expand_N_Subprogram_Body): For a protected operation, create
29799         discriminals for next operation before checking whether the operation
29800         is eliminated.
29801
29802         * exp_ch9.adb (Expand_N_Protected_Body,
29803         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
29804         for internal protected operations if the original subprogram is
29805         eliminated.
29806
29807         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
29808         declared in a single protected object.
29809
29810 2004-02-23  Vincent Celier  <celier@gnat.com>
29811
29812         * prj-attr.adb: Make attribute Builder'Executable an associative array,
29813         case insensitive if file names are case insensitive, instead of a
29814         standard associative array.
29815
29816         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
29817         them as case insensitive on platforms where the file names are case
29818         sensitive.
29819
29820         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
29821         project file has already been parsed that canonical path are compared.
29822
29823 2004-02-23  Robert Dewar  <dewar@gnat.com>
29824
29825         * sinput-c.ads: Correct bad unit title in header
29826
29827         * freeze.adb: Minor reformatting
29828
29829 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29830
29831         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
29832         nonaddressable COMPONENT_REF that is removing padding that we are
29833         taking the address of, take the address of the padded record instead
29834         if item is variable size.
29835
29836 2004-02-20  Robert Dewar  <dewar@gnat.com>
29837
29838         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
29839
29840 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
29841
29842         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
29843         itype references for the constrained designated type of a component
29844         whose base type is already frozen.
29845
29846 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
29847
29848         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
29849         avoid GCC warnings.
29850
29851 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
29852
29853         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
29854         identifier for a phantom package that rewrites the formal package
29855         declaration with a box. The Add semantic decorations for the defining
29856         identifier from the original node (that represents the formal package).
29857
29858 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
29859
29860         * Make-lang.in (ada/stamp-sdefault): Use the top level
29861         move-if-change.
29862
29863 2004-02-19  Richard Henderson  <rth@redhat.com>
29864
29865         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
29866
29867 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
29868
29869         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
29870         Scan_ALI can be used for multiple ALI files without reinitializing
29871         between calls.
29872
29873 2004-02-18  Robert Dewar  <dewar@gnat.com>
29874
29875         * debug.adb: Minor reformatting.
29876
29877 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29878
29879         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
29880         to zero if there is an address clause.
29881
29882 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
29883
29884         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
29885
29886 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
29887
29888         * layout.adb (Layout_Component_List): Revise generation of call to
29889         discriminant-checking function to pass selections of all of the type's
29890         discriminants rather than just the variant-controlling discriminant.
29891
29892 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
29893
29894         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
29895         fail in the current setup and triggers spurious system error messages.
29896         Pretend it occurred and failed instead.
29897
29898 2004-02-18  Vincent Celier  <celier@gnat.com>
29899
29900         * bld.adb: Mark FLDFLAGS as saved
29901         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
29902         it is not the root project.  Put each directory to be
29903         extended between double quotes to prevent it to be expanded on Windows.
29904         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
29905         the project file. Set them back to their initial values if they have not
29906         been set in the project file.
29907
29908         * gprcmd.adb: (Gprdebug, Debug): New global variables
29909         (Display_Command): New procedure
29910         (Usage): Document new command "linkopts"
29911         Call Display_Command when env var GPRDEBUG has the value "TRUE"
29912         Implement new command "linkopts"
29913         Remove quotes that may be around arguments for "extend"
29914         Always call Normalize_Pathname with arguments formatted for the platform
29915
29916         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
29917         Change @echo to @$(display) in target clean to be able to clean silently
29918
29919         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
29920
29921         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
29922         canonical case.
29923
29924         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
29925         = Extending_All when current project is an extending all project.
29926
29927         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
29928         set to True only for LINK command, after Unix switch -o.
29929         (Process_Arguments): Set Output_File_Expected to True for LINK command
29930         after Unix switch -o. When Output_File_Expected is True, never add an
29931         extension to a file name.
29932
29933         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
29934         option file name, only to the --for-linker= switch.
29935         (Option_File_Name): If option file name do not end with ".opt", append
29936         "/OPTIONS".
29937
29938 2004-02-18  GNAT Script  <nobody@gnat.com>
29939
29940         * Make-lang.in: Makefile automatically updated
29941
29942 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
29943
29944         * Make-lang.in (stamp-sdefault): Do not depend on
29945         move-if-change.
29946
29947 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
29948
29949         * config-lang.in: Disable Ada by default until probe logic for
29950         a bootstrap Ada compiler can be moved to the top level configure
29951         script.
29952
29953 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
29954
29955         * decl.c (components_to_record): Don't claim that the internal fields
29956         we make to hold the variant parts are semantically addressable, because
29957         they are not.
29958
29959         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
29960         adjust the comment describing the modular type form when we can use it.
29961         (Install_PAT): Account for the Esiz renaming.
29962
29963         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
29964         sc_onstack context indication before raising the exception to which
29965         the signal is mapped. Allows better handling of later signals possibly
29966         triggered by the resumed user code if the exception is handled.
29967
29968 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
29969
29970         * 5zinit.adb: Removed, no longer used.
29971
29972 2004-02-12  Robert Dewar  <dewar@gnat.com>
29973
29974         * ali.adb: Remove separating space between parameters on R line. Makes
29975         format consistent with format used by the binder for Set_Globals call.
29976
29977         * atree.ads, atree.adb: Minor reformatting (new function header format)
29978
29979         * bindgen.adb: Add Run-Time Globals documentation section containing
29980         detailed documentation of the globals passed from the binder file to
29981         the run time.
29982
29983         * gnatls.adb: Minor reformatting
29984
29985         * init.c (__gnat_set_globals): Add note pointing to documentation in
29986         bindgen.
29987
29988         * lib-writ.ads, lib-writ.adb: Remove separating space between
29989         parameters on R line.
29990         Makes format consistent with format used by the binder for Set_Globals
29991         call.
29992
29993         * osint.ads: Add 2004 to copyright notice
29994         Minor reformatting
29995
29996         * snames.ads: Correct capitalization of FIFO_Within_Priorities
29997         Noticed during code reading, documentation issue only
29998
29999         * usage.adb: Remove junk line for obsolete C switch
30000         Noticed during code reading
30001
30002 2004-02-12  Vincent Celier  <celier@gnat.com>
30003
30004         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
30005         extend for each directory, so that multiple /** directories are
30006         extended individually.
30007         (Recursive_Process): Set the default for LANGUAGES to ada
30008
30009         * gprcmd.adb: Define new command "ignore", to do nothing.
30010         Implement new comment "path".
30011
30012         * Makefile.generic: Suppress output when SILENT is set
30013         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
30014         used, so that the correct compiler is invoked.
30015         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
30016         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
30017
30018 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
30019
30020         * Makefile.in: Clean ups and remove obsolete targets.
30021
30022 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
30023
30024         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
30025         predicate declared in exp_util.
30026
30027         * exp_util.adb: Add comments.
30028
30029         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
30030         visibility before compiling context of the subunit.
30031
30032         * sem_res.adb (Check_Parameterless_Call): If the context expects a
30033         value but the name is a procedure, do not attempt to analyze as a call,
30034         in order to obtain more telling diagnostics.
30035
30036         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
30037         'Access on parameterless function calls.
30038         (Normalize_Actuals): For a parameterless function call with missing
30039         actuals, defer diagnostic until resolution of enclosing call.
30040
30041         * sem_util.adb (Wrong_Type): If the context type is an access to
30042         subprogram and the expression is a procedure name, suggest a missing
30043         'attribute.
30044
30045 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
30046             Nathanael Nerode  <neroden@gcc.gnu.org>
30047
30048         PR ada/6637
30049         PR ada/5911
30050         Merge with libada-branch:
30051         * config-lang.in: Build libada only when ada is built.
30052
30053 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
30054
30055         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
30056         for a tagged type, verify that both formals have the same type.
30057
30058         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
30059         temporary when the formal is an in-parameter and the actual a possibly
30060         unaligned slice.
30061
30062         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
30063         when expansion is disabled, to ensure proper name capture with
30064         overloaded literals.  Condition can be of any boolean type, resolve
30065         accordingly.
30066
30067         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
30068         renaming is for a formal subprogram with a default operator name, and
30069         there is a usable operator that is visible at the point of
30070         instantiation.
30071
30072 2004-02-09  Robert Dewar  <dewar@gnat.com>
30073
30074         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
30075         rewrite to ignore errors in ali files, intended to allow tools downward
30076         compatibility with new versions of ali files.
30077
30078         * ali.ads: Add new parameter Ignore_Errors
30079
30080         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
30081         duplicating the error message giving the file with restrictions.
30082
30083         * debug.adb: Add debug flag I for gnatbind
30084
30085         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
30086         operators for the case where the operator is a defining operator.
30087
30088         * exp_ch3.adb: Minor reformatting (new function spec format).
30089
30090         * exp_ch4.adb: Add comment for previous change, and make minor
30091         adjustment to loop to always check for improper loop termination.
30092         Minor reformatting throughout (new function spec format).
30093
30094         * gnatbind.adb: Implement -di debug flag for gnatbind
30095
30096         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
30097
30098         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
30099
30100         * lib-load.adb: Fix bad assertion.
30101         Found by testing and code reading.
30102         Minor reformatting.
30103
30104         * lib-load.ads: Minor reformatting.
30105
30106         * lib-writ.adb: There is only one R line now.
30107
30108         * lib-writ.ads: Add documentation on making downward compatible changes
30109         to ali files so old tools work with new ali files.
30110         There is only one R line now.
30111         Add documentation on format incompatibilities (with special GPS note)
30112
30113         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
30114
30115         * par-load.adb: Minor reformatting
30116
30117         * sem_ch8.adb: Fix to error message from last update
30118         Minor reformatting and restructuring of code from last update
30119
30120         * par-prag.adb, snames.adb, snames.ads, snames.h,
30121         sem_prag.adb: Implement pragma Profile.
30122
30123         * stylesw.adb: Implement -gnatyN switch to turn off all style check
30124         options.
30125
30126         * usage.adb: Add line for -gnatyN switch
30127
30128         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
30129
30130 2004-02-09  Albert Lee  <lee@gnat.com>
30131
30132         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
30133
30134 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
30135
30136         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
30137         slices.
30138
30139         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
30140         is nested in an instance that is not frozen yet, to avoid
30141         order-of-elaboration problems in gigi.
30142
30143         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
30144         body the attribute is legal.
30145
30146 2004-02-09  Robert Dewar  <dewar@gnat.com>
30147
30148         * s-rident.ads: Minor comment correction
30149
30150         * targparm.adb: Remove dependence on uintp completely. There was
30151         always a bug in Make in that it called Targparm before initializing
30152         the Uint package. The old code appeared to get away with this, but
30153         the new code did not! This caused an assertion error in gnatmake.
30154
30155         * targparm.ads: Fix bad comment, restriction pragmas with parameters
30156         are indeed fully supported.
30157
30158 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
30159
30160         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
30161
30162 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
30163
30164         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
30165         with targetm.calls.promote_prototypes.
30166
30167 2004-02-04  Robert Dewar  <dewar@gnat.com>
30168
30169         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
30170         ali.ads, gprcmd.adb: Minor reformatting
30171
30172         * bindgen.adb: Output restrictions string for new style restrictions
30173         handling
30174
30175         * impunit.adb: Add s-rident.ads (System.Rident) and
30176         s-restri (System.Restrictions)
30177
30178         * lib-writ.adb: Fix bug in writing restrictions string (last few
30179         entries wrong)
30180
30181         * s-restri.ads, s-restri.adb: Change name Restrictions to
30182         Run_Time_Restrictions to avoid conflict with package name.
30183         Add circuit to read and acquire run time restrictions.
30184
30185 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
30186
30187         * restrict.ads, restrict.adb: Use the new restriction
30188         No_Task_Attributes_Package instead of the old No_Task_Attributes.
30189
30190         * sem_prag.adb: No_Task_Attributes is a synonym of
30191         No_Task_Attributes_Package.
30192
30193         * snames.ads, snames.adb: New entry for proper handling of
30194         No_Task_Attributes.
30195
30196         * s-rident.ads: Adding restriction No_Task_Attributes_Package
30197         (AI-00249) that supersedes the GNAT specific restriction
30198         No_Task_Attributes.
30199
30200 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
30201
30202         * sem_prag.adb:
30203         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
30204          body, an identifier may be wrapped in an unchecked conversion.
30205
30206 2004-02-04  Vincent Celier  <celier@gnat.com>
30207
30208         * lib-writ.ads: Comment update for the W lines
30209
30210         * bld.adb: (Expression): An empty string list is static
30211
30212         * fname-uf.adb: Minor comment update
30213
30214         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
30215
30216         * gnatbind.adb: Initialize Cumulative_Restrictions with the
30217         restrictions on the target.
30218
30219 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
30220
30221         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
30222         gen_rtx.
30223
30224 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
30225
30226         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
30227
30228 2004-02-02  Vincent Celier  <celier@gnat.com>
30229
30230         * gprcmd.adb (Check_Args): If condition is false, print the invoked
30231         comment before the usage.
30232         Gprcmd: Fail when command is not recognized.
30233         (Usage): Document command "prefix"
30234
30235         * g-md5.adb (Digest): Process last block.
30236         (Update): Do not process last block. Store remaining characters and
30237         length in Context.
30238
30239         * g-md5.ads (Update): Document that several call to update are
30240         equivalent to one call with the concatenated string.
30241         (Context): Add fields to allow new Update behaviour.
30242
30243         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
30244         defaulted to False.
30245         When May_Fail is True and no existing file can be found, return No_File.
30246
30247         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
30248         functions.
30249
30250         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
30251         spec file name instead on the W line.
30252
30253 2004-02-02  Robert Dewar  <dewar@gnat.com>
30254
30255         * ali.adb: Read and acquire info from new format restrictions lines
30256
30257         * bcheck.adb: Add circuits for checking restrictions with parameters
30258
30259         * bindgen.adb: Output dummy restrictions data
30260         To be changed later
30261
30262         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
30263         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
30264         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
30265         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
30266         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
30267
30268         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
30269         the warning message on access to possibly uninitialized variable S)
30270         Minor changes for new restrictions handling.
30271
30272         * gnatbind.adb: Minor reformatting
30273         Minor changes for new restrictions handling
30274         Move circuit for -r processing here from bcheck (cleaner)
30275
30276         * gnatcmd.adb, gnatlink.adb: Minor reformatting
30277
30278         * lib-writ.adb: Output new format restrictions lines
30279
30280         * lib-writ.ads: Document new R format lines for new restrictions
30281         handling.
30282
30283         * s-restri.ads/adb: New files
30284
30285         * Makefile.rtl: Add entry for s-restri.ads/adb
30286
30287         * par-ch3.adb: Fix bad error messages starting with upper case letter
30288         Minor reformatting
30289
30290         * restrict.adb: Major rewrite throughout for new restrictions handling
30291         Major point is to handle restrictions with parameters
30292
30293         * restrict.ads: Major changes in interface to handle restrictions with
30294         parameters. Also generally simplifies setting of restrictions.
30295
30296         * snames.ads/adb: New entry for proper handling of No_Requeue
30297
30298         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
30299         restriction counting.
30300         Other minor changes for new restrictions handling
30301
30302         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
30303         Restriction_Warnings now allows full parameter notation
30304         Major rewrite of Restrictions for new restrictions handling
30305
30306 2004-02-02  Javier Miranda  <miranda@gnat.com>
30307
30308         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
30309         syntax rule for object renaming declarations.
30310         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
30311         component definitions.
30312
30313         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
30314         components.
30315         (Array_Type_Declaration): Give support to access components. In addition
30316         it was also modified to reflect the name of the object in anonymous
30317         array types. The old code did not take into account that it is possible
30318         to have an unconstrained anonymous array with an initial value.
30319         (Check_Or_Process_Discriminants): Allow access discriminant in
30320         non-limited types.
30321         (Process_Discriminants): Allow access discriminant in non-limited types
30322         Initialize the new Access_Definition field in N_Object_Renaming_Decl
30323         node.  Change Ada0Y to Ada 0Y in comments
30324
30325         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
30326         equality operators.
30327         Change Ada0Y to Ada 0Y in comments
30328
30329         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
30330         renamings Change Ada0Y to Ada 0Y in comments
30331
30332         * sem_type.adb (Find_Unique_Type): Give support to the equality
30333         operators for universal access types
30334         Change Ada0Y to Ada 0Y in comments
30335
30336         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
30337
30338         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
30339         field.
30340         (N_Object_Renaming_Declaration): Addition of Access_Definition field
30341         Change Ada0Y to Ada 0Y in comments
30342
30343         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
30344         component definition and object renaming nodes
30345         Change Ada0Y to Ada 0Y in comments
30346
30347 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
30348
30349         * restrict.adb: Use the new restriction identifier
30350         No_Requeue_Statements instead of the old No_Requeue for defining the
30351         restricted profile.
30352
30353         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
30354         No_Requeue_Statements.
30355
30356         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
30357         that supersedes the GNAT specific restriction No_Requeue. The later is
30358         kept for backward compatibility.
30359
30360 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
30361
30362         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
30363         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
30364         pragma and fix incorrect ones.
30365
30366         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
30367         warning if the pragma is redundant.
30368
30369 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
30370
30371         * 5staprop.adb: Add missing 'constant' keywords.
30372
30373         * Makefile.in: use consistent value for SYMLIB on
30374         platforms where libaddr2line is supported.
30375
30376 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30377
30378         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
30379         annotating types.
30380
30381 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
30382
30383         * init.c (__gnat_install_handler): Setup an alternate stack for signal
30384         handlers in the environment thread. This allows proper propagation of
30385         an exception on stack overflows in this thread even when the builtin
30386         ABI stack-checking scheme is used without support for a stack reserve
30387         region.
30388
30389         * utils.c (create_field_decl): Augment the head comment about bitfield
30390         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
30391         here, because the former is not accurate enough at this point.
30392         Let finish_record_type decide instead.
30393         Don't make a bitfield if the field is to be addressable.
30394         Always set a size for the field if the record is packed, to ensure the
30395         checks for bitfield creation are triggered.
30396         (finish_record_type): During last pass over the fields, clear
30397         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
30398         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
30399         from DECL_BIT_FIELD.
30400
30401 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
30402
30403         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
30404         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
30405         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
30406
30407 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30408
30409         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
30410
30411         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
30412         (ZCX_By_Default): Likewise.
30413         (Front_End_ZCX_Support): Likewise.
30414
30415         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
30416         (Initialize_Lock): Mark Level unreferenced.
30417         (Sleep): Mark Reason unreferenced.
30418         (Timed_Sleep): Likewise.
30419         (Wakeup): Likewise.
30420         (Exit_Task): Use Result.
30421         (Check_No_Locks): Mark Self_ID unreferenced.
30422
30423         * 5gtasinf.adb (New_Sproc): Make Attr constant.
30424         (Bound_Thread_Attributes): Make Sproc constant.
30425         (New_Bound_Thread_Attributes): Likewise.
30426
30427 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
30428
30429         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
30430         one-dimensional array an slice assignments, when component type is
30431         controlled.
30432
30433         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
30434         component type is controlled, and control_actions are in effect, use
30435         TSS procedure rather than generating inline code.
30436
30437         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
30438         arrays with controlled components.
30439
30440 2004-01-26  Vincent Celier  <celier@gnat.com>
30441
30442         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
30443         command line for the non VMS case.
30444
30445         * gnatlink.adb (Process_Binder_File): When building object file, if
30446         GNU linker is used, put all object paths between quotes, to prevent ld
30447         error when there are unusual characters (such as '!') in the paths.
30448
30449         * Makefile.generic: When there are sources in Ada and the main is in
30450         C/C++, invoke gnatmake with -B, instead of -z.
30451
30452         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
30453         from VMS_Conversion.
30454         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
30455         specification of argument file on the command line.
30456
30457 2004-01-26  Bernard Banner  <banner@gnat.com>
30458
30459         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
30460
30461 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
30462
30463         * snames.adb: Update copyright notice.
30464         Add info on slice assignment for controlled arrays.
30465
30466 2004-01-23  Robert Dewar  <dewar@gnat.com>
30467
30468         * exp_aggr.adb: Minor reformatting
30469
30470         * exp_ch9.adb: Minor code clean up
30471         Minor reformatting
30472         Fix bad character in comment
30473
30474         PR ada/13471
30475         * targparm.adb (Get_Target_Parameters): Give clean abort error on
30476         unexpected end of file, along with more detailed message.
30477
30478 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30479
30480         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
30481         PAT.
30482
30483         * decl.c (copy_alias_set): New function.
30484         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
30485
30486 2004-01-23  Doug Rupp  <rupp@gnat.com>
30487
30488         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
30489         lib$${file} in case subsequent character is not a separator.
30490
30491 2004-01-23  Vincent Celier  <celier@gnat.com>
30492
30493         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
30494         when the GCC version is at least 3.
30495
30496         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
30497         Remove all "Opt.", to prepare for opt split
30498
30499         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
30500         Extends_All. Set to True when the project parsed is an extending all
30501         project. Fails for importing an extending all project only when the
30502         imported project is an extending all project.
30503         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
30504         depending on the value of Extends_All returned.
30505
30506         * prj-proc.adb (Process): Check that no project shares its object
30507         directory with a project that extends it, directly or indirectly,
30508         including a virtual project.
30509         Check that no project extended by another project shares its object
30510         directory with another also extended project.
30511
30512         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
30513         Kind = N_With_Clause
30514
30515         * prj-tree.ads: Minor reformatting
30516         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
30517
30518 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
30519
30520         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
30521         applies to a type with an incomplete view, use full view in Name of
30522         clause, for consistency with uses of Get_Attribute_Definition_Clause.
30523
30524 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
30525
30526         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
30527         SCHED_RR, since other values are not supported by this policy.
30528         (Initialize): Move initialization of mutex attribute to package
30529         elaboration, to prevent early access to this variable.
30530
30531         * Makefile.in: Remove mention of Makefile.adalib, unused.
30532
30533         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
30534         1ssecsta.ads: Removed, unused.
30535
30536 2004-01-21  Javier Miranda  <miranda@gnat.com>
30537
30538         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
30539         entity if already built in the current scope.
30540
30541         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
30542         reminder in internal scopes. Required for nested limited aggregates.
30543
30544 2004-01-21  Doug Rupp  <rupp@gnat.com>
30545
30546         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
30547         VMS. Replace all occurences of libgnat- and libgnarl- with
30548         libgnat$(hyphen) and libgnarl$(hyphen).
30549         Fixed shared library build problem on VMS.
30550
30551 2004-01-21  Robert Dewar  <dewar@gnat.com>
30552
30553         * mlib-prj.adb: Minor reformatting
30554
30555 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
30556
30557         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
30558         'constant' keywords for declaration of pointers that are not modified.
30559
30560         * exp_pakd.adb: Fix English in comment.
30561
30562 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
30563
30564         PR ada/10889
30565         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
30566         copy all attributes of the parent, including the foreign language
30567         convention.
30568
30569 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
30570
30571         PR ada/10565
30572         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
30573         for 'delay until' statement.
30574
30575 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
30576
30577         * Make-lang.in: Replace $(docdir) with doc.
30578         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
30579         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
30580         to use consistent MAKEINFO rule.
30581         (ada.man, ada.srcman): Dummy entry.
30582         (ADA_INFOFILES): Define.
30583         (ada.info, ada.srcinfo): New rules.
30584
30585 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
30586
30587         * utils.c: Update copyright notice, missed in previous change.
30588
30589 2004-01-19  Vincent Celier  <celier@gnat.com>
30590
30591         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
30592         args if Bind is True. Set First_ALI, if not already done.
30593         (Build_Library): For Stand Alone Libraries, extract from one ALI file
30594         an eventual --RTS switch, for gnatbind, and all backend switches +
30595         --RTS, for linking.
30596
30597 2004-01-19  Robert Dewar  <dewar@gnat.com>
30598
30599         * sem_attr.adb, memtrack.adb: Minor reformatting
30600
30601 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
30602
30603         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
30604         that rename enumeration literals. This is properly done in sem_eval.
30605
30606         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
30607         to functions that rename enumeration literals.
30608
30609         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
30610         functions that rename enumeration literals.
30611
30612 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
30613
30614         * Make-lang.in (utils.o): Depend on target.h.
30615         * utils.c: Include target.h.
30616         (process_attributes): Use targetm.have_named_sections instead
30617         of ASM_OUTPUT_SECTION_NAME.
30618
30619 2004-01-16  Andreas Jaeger  <aj@suse.de>
30620
30621         * Makefile.in: Add $(DESTDIR).
30622
30623 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
30624
30625         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
30626         also when not defining if a Size clause applies. That information is
30627         not to be ignored.
30628
30629 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
30630
30631         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
30632         symbolic links for the shared gnat run time when needed.
30633
30634 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
30635
30636         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
30637         for writing, and terminate with an error message if not.
30638
30639 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
30640
30641         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
30642         warning on an access to subprogram in an instance, when the target
30643         type is declared in the same generic unit.
30644         (Eval_Attribute): If 'access is known to fail accessibility check,
30645         rewrite as a raise statement.
30646
30647 2004-01-15  GNAT Script  <nobody@gnat.com>
30648
30649         * Make-lang.in: Makefile automatically updated
30650
30651 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
30652
30653         * Make-lang.in (ada.srcextra): Dummy entry.
30654
30655 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
30656
30657         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
30658
30659 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
30660
30661         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
30662         components that are initialized with aggregates.
30663
30664 2004-01-13  Vincent Celier  <celier@gnat.com>
30665
30666         * gnatlink.adb (Process_Binder_File): To find directory of shared
30667         libgcc, if "gcc-lib" is not a subdirectory, look for the last
30668         subdirectory "lib" in the path of the shared libgnat or libgnarl.
30669
30670         * make.adb (Gnatmake): If GCC version is at least 3, link with
30671         -shared-libgcc, when there is at least one shared library project.
30672
30673         * opt.ads (GCC_Version): New integer constant.
30674
30675         * adaint.c (get_gcc_version): New function.
30676
30677 2004-01-13  Robert Dewar  <dewar@gnat.com>
30678
30679         * sem_dist.adb, sem_res.adb, sem_util.adb,
30680         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
30681         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
30682
30683 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
30684
30685         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
30686         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
30687         declarations.
30688
30689 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
30690
30691         * misc.c: Remove trailing spaces.
30692         Update copyright notice missed in previous change.
30693
30694         PR ada/13572
30695         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
30696         prefix/share/make
30697
30698         * Makefile.generic: Update copyright.
30699         Add license notice.
30700
30701         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
30702         of prefix/share/make.
30703
30704         * Makefile.prolog: Update copyright.
30705         Add license notice.
30706
30707 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
30708
30709         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
30710         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
30711         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
30712         instead of String.
30713
30714         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
30715         signature.
30716
30717 2004-01-12  Javier Miranda  <miranda@gnat.com>
30718
30719         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
30720         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
30721         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
30722         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
30723         Component_Definition node.
30724
30725 2004-01-12  Ed Falis  <falis@gnat.com>
30726
30727         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
30728
30729 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
30730
30731         * link.c: Change default libgnat kind to STATIC for FreeBSD.
30732
30733 2004-01-12  Bernard Banner  <banner@gnat.com>
30734
30735         * Makefile.in: map 86numaux to a-numaux for x86_64
30736
30737 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
30738
30739         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
30740         generated to rename a generic actual, go to the actual itself, the
30741         subtype is not a user-visible entity.
30742
30743         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
30744         part is a private subtype, reset the visibility of its full view, if
30745         any, to be consistent.
30746
30747         PR ada/13417
30748         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
30749         to use a generic package G as a formal package for another generic
30750         declared within G.
30751
30752 2004-01-12  Robert Dewar  <dewar@gnat.com>
30753
30754         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
30755
30756         * usage.adb: Remove mention of obsolete -gnatwb switch
30757         Noticed during code reading
30758
30759 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
30760
30761         * 1ssecsta.adb: Minor changes for -gnatwa warnings
30762
30763 2004-01-12  GNAT Script  <nobody@gnat.com>
30764
30765         * Make-lang.in: Makefile automatically updated
30766
30767 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
30768
30769         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
30770
30771 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30772
30773         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
30774
30775 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
30776
30777         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
30778         Update comment and copyright date.
30779         * stamp-xgnatug: Delete.
30780
30781 2004-01-05  Robert Dewar  <dewar@gnat.com>
30782
30783         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
30784         be modified by the binder generated main program if the -D switch is
30785         used.
30786
30787         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
30788         imported functions (since now we expect this to be done for imported
30789         functions)
30790
30791         * 5vtaprop.adb: Add several ??? for sections requiring more comments
30792         Minor reformatting throughout
30793
30794         * 5zinit.adb: Minor reformatting
30795         Add 2004 to copyright date
30796         Minor changes to avoid -gnatwa warnings
30797         Correct some instances of using OR instead of OR ELSE (noted while
30798         doing reformatting)
30799
30800         * sprint.adb: Minor updates to avoid -gnatwa warnings
30801
30802         * s-secsta.ads, s-secsta.adb:
30803         (SS_Get_Max): New function to obtain high water mark for ss stack
30804         Default_Secondary_Stack is not a constant since it may be modified by
30805         the binder generated main program if the -D switch is used.
30806
30807         * switch-b.adb: New -Dnnn switch for binder
30808
30809         * switch-c.adb:
30810         Make -gnatg imply all warnings currently in -gnatwa
30811
30812         * vms_conv.adb: Minor reformatting
30813         Add 2004 to copyright notice
30814         Add 2004 to printed copyright notice
30815
30816         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
30817         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
30818         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
30819         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
30820         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
30821         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
30822         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
30823         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
30824         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
30825         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
30826         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
30827         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
30828         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
30829         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
30830         checks.adb, clean.adb, cstand.adb, einfo.ads,
30831         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
30832         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
30833         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
30834         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
30835         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
30836         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
30837         Minor reformatting and code clean ups.
30838         Minor changes to prevent -gnatwa warnings
30839
30840         * ali.adb: Minor reformatting and cleanup of code
30841         Acquire new SS indication of secondary stack use from ali files
30842
30843         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
30844         (since now we expect this to be done for imported functions)
30845
30846         * bindgen.adb: Generate call to modify default secondary stack size if
30847         -Dnnn switch given
30848
30849         * bindusg.adb: Add line for new -D switch
30850
30851         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
30852         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
30853         Add circuitry for both records and arrays to avoid gigi
30854         processing if the type involved has non-bit-aligned components
30855
30856         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
30857         N_String_Literal node always references an E_String_Literal_Subtype
30858         entity. This may not be true in the future.
30859         (Possible_Bit_Aligned_Component): Move processing of
30860         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
30861
30862         * exp_ch6.adb (Expand_Thread_Body): Pick up
30863         Default_Secondary_Stack_Size as variable so that we get value modified
30864         by possible -Dnnn binder parameter.
30865
30866         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
30867         (Type_May_Have_Bit_Aligned_Components): New function.
30868
30869         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
30870         (Type_May_Have_Bit_Aligned_Components): New function.
30871
30872         * fe.h: (Set_Identifier_Casing): Fix prototype.
30873         Add declaration for Sem_Elim.Eliminate_Error_Msg.
30874         Minor reformatting.
30875
30876         * freeze.adb (Freeze_Entity): Add RM reference to error message about
30877         importing constant atomic/volatile objects.
30878         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
30879         unless explicit Pure_Function pragma given, to avoid insidious bug of
30880         call to non-pure imported function getting eliminated.
30881
30882         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
30883         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
30884         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
30885         Add 2004 to printed copyright notice
30886
30887         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
30888         stack used.
30889
30890         * Makefile.rtl: Add entry for g-sestin.o
30891         g-sestin.ads: New file.
30892
30893         * mdll.adb: Minor changes to avoid -gnatwa warnings
30894
30895         * mlib-tgt.adb: Minor reformatting
30896
30897         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
30898         New switch Sec_Stack_Used (GNAT, GNATBIND)
30899         Make Default_Secondary_Stack_Size a variable instead of a constant,
30900         so that it can be modified by the new -Dnnn bind switch.
30901
30902         * rtsfind.adb (Load_Fail): Give full error message in configurable
30903         run-time mode if all_errors mode is set. This was not done in the case
30904         of a file not found, which was an oversight.
30905         Note if secondary stack unit is used by compiler.
30906
30907         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
30908         ineffective elaborate all pragmas on non-visible packages (this
30909         happened when a renamed subprogram was called). Now the elaborate all
30910         always goes on the package containing the renaming rather than the one
30911         containing the renamed subprogram.
30912
30913         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
30914         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
30915
30916         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
30917         has an Etype that references an E_String_Literal.
30918         (Eval_String_Literal): Avoid assumption that N_String_Literal node
30919         always references an E_String_Literal_Subtype entity. This may not
30920         be true in the future.
30921
30922         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
30923         pragma location.
30924
30925         * sem_res.adb (Resolve): Specialize msg for function name used in proc
30926         call.
30927
30928 2004-01-05  Ed Falis  <falis@gnat.com>
30929
30930         * g-debuti.adb: Replaced direct boolean operator with short-circuit
30931         form.
30932
30933 2004-01-05  Vincent Celier  <celier@gnat.com>
30934
30935         * bld.adb: Minor comment updates
30936         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
30937         of Item_Name).
30938
30939         * make.adb (Gnatmake): Special process for files to compile/check when
30940         -B is specified. Fail when there are only foreign mains in attribute
30941         Main of the project file and -B is not specified. Do not skip bind/link
30942         steps when -B is specified.
30943
30944         * makeusg.adb: Document new switch -B
30945
30946         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
30947
30948         * switch-m.adb: (Scan_Make_Switches): Process -B switch
30949
30950         * vms_data.ads: Add new GNAT PRETTY qualifier
30951         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
30952
30953 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30954
30955         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
30956         case.
30957
30958         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
30959         Set_Identifier_Casing.
30960
30961         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
30962         has size that overflows.
30963
30964 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
30965
30966         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
30967         -gnatwa warning on static condition.
30968
30969 2004-01-05  Doug Rupp  <rupp@gnat.com>
30970
30971         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
30972
30973 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
30974
30975         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
30976         all attributes, including read-only attribute.
30977
30978 2004-01-05  Pascal Obry  <obry@gnat.com>
30979
30980         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
30981         library naming scheme.
30982
30983         * mlib-prj.adb (Build_Library): Generate different names for the static
30984         or dynamic version of the GNAT runtime. This is needed to support the
30985         new shared library naming scheme.
30986         (Process_Binder_File): Add detection of shared library in binder file
30987         based on the new naming scheme.
30988
30989         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
30990         scheme for the shared runtime libraries.
30991
30992         * Makefile.in:
30993         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
30994         scheme.
30995         (install-gnatlib): Do not create symlinks for shared libraries.
30996         (gnatlib-shared-default): Idem.
30997         (gnatlib-shared-dual-win32): New target. Not used for now as the
30998         auto-import feature does not support arrays/records.
30999         (gnatlib-shared-win32): Do not create copy for the shared libraries.
31000         (gnatlib-shared-vms): Fix shared runtime libraries names.
31001
31002         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
31003         dependent runtime shared library name.
31004
31005 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
31006
31007         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
31008         than the object.
31009
31010 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
31011
31012         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
31013         protected objects when allocator has a subtype indication, not a
31014         qualified expression. Note that qualified expressions may have to be
31015         checked when limited aggregates are implemented.
31016
31017         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
31018         pure, emit warning.
31019         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
31020         subprogram is imported, remove warning.
31021
31022 2004-01-05  Geert Bosch  <bosch@gnat.com>
31023
31024         * s-poosiz.adb: Update copyright notice.
31025         (Allocate): Use Task_Lock to protect against concurrent access.
31026         (Deallocate): Likewise.
31027
31028 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
31029
31030         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
31031         comment.
31032
31033 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
31034
31035         * gnat_ug.texi: Force a CVS commit by updating copyright.
31036         * gnat_ug_vxw.texi: Regenerate.
31037         * gnat_ug_wnt.texi: Regenerate.
31038         * gnat_ug_vms.texi: Regenerate.
31039         * gnat_ug_unx.texi: Regenerate.
31040
31041 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
31042
31043         * trans.c: Remove uses of "register" specifier in
31044         declarations of local variables.
31045
31046 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
31047
31048         * stamp-xgnatug: New stamp file.
31049         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
31050         (ada/doctools/xgnatug): Add $(build_exeext).
31051         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
31052         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
31053
31054 2003-12-17  Ed Falis  <falis@gnat.com>
31055
31056         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
31057         eliminate warning.
31058
31059         * a-exextr.adb: Add context clause for
31060         Ada.Exceptions.Last_Chance_Handler.
31061
31062 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
31063
31064         * cstand.adb (Create_Standard): Change the way how the declaration of
31065         the Duration type is created (making it the same way as it is for all
31066         the other standard types).
31067
31068 2003-12-17  Robert Dewar  <dewar@gnat.com>
31069
31070         * s-crtl.ads: Fix header format
31071         Change Pure to Preelaborate
31072
31073 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
31074
31075         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
31076         the expression type only if it is declared in the current unit.
31077
31078         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
31079         are universal and already analyzed, as can occur in constrained
31080         subcomponents that depend on discriminants, when one constraint is a
31081         subtype mark.
31082
31083         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
31084         type Any_Fixed is legal as the argument of a conversion, if only one
31085         fixed-point type is in context.
31086
31087 2003-12-17  GNAT Script  <nobody@gnat.com>
31088
31089         * Make-lang.in: Makefile automatically updated
31090
31091 2003-12-15  Robert Dewar  <dewar@gnat.com>
31092
31093         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
31094         sec stack size.
31095
31096 2003-12-15  Vincent Celier  <celier@gnat.com>
31097
31098         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
31099         (Gnatchop): Do not set failure status when reporting the number of
31100         warnings.
31101
31102 2003-12-15  Doug Rupp  <rupp@gnat.com>
31103
31104         * s-ctrl.ads: New file.
31105
31106         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
31107
31108         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
31109         (GNATBIND_OBJS): Add ada/s-crtl.o.
31110
31111         * Makefile.in [VMS]: Clean up ifeq rules.
31112
31113         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
31114         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
31115         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
31116         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
31117         s-tasdeb.adb: Update copyright.
31118         Import System.CRTL.
31119         Make minor modifications to use System.CRTL declared functions instead
31120         of importing locally.
31121
31122 2003-12-15  GNAT Script  <nobody@gnat.com>
31123
31124         * Make-lang.in: Makefile automatically updated
31125
31126 2003-12-11  Ed Falis  <falis@gnat.com>
31127
31128         * 5zinit.adb: Clean up.
31129
31130         * 5zintman.adb (Notify_Exception): replaced case statement with a call
31131         to __gnat_map_signal, imported from init.c to support
31132         signal -> exception mappings that depend on the vxWorks version.
31133
31134         * init.c:
31135         Created and exported __gnat_map_signal to support signal -> exception
31136         mapping that is dependent on the VxWorks version.
31137         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
31138
31139 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
31140
31141         * 5wosinte.ads: Link with -mthreads switch.
31142
31143 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
31144
31145         * init.c (__gnat_install_handler [NetBSD]): Set
31146         __gnat_handler_installed, as done on all other platforms.
31147         Remove duplicated code.
31148
31149 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
31150
31151         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
31152
31153 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
31154
31155         * sinfo.ads: Fix inconsistent example code in comment.
31156
31157 2003-12-11  Robert Dewar  <dewar@gnat.com>
31158
31159         * a-tiinau.adb: Add a couple of comments
31160
31161         * sem_ch3.adb: Minor reformatting
31162
31163         * sem_prag.adb:
31164         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
31165         Minor reformatting throughout
31166
31167 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
31168
31169         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
31170         bounds of a loop, create a separate block in order to generate proper
31171         cleanup actions to prevent memory leaks.
31172
31173         * sem_res.adb (Resolve_Call): After a call to
31174         Establish_Transient_Scope, the call may be rewritten and relocated, in
31175         which case no further processing is needed.
31176
31177         * sem_util.adb: (Wrong_Type): Refine previous fix.
31178          Fixes ACATS regressions.
31179
31180         PR ada/13353
31181         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
31182         be inlined.
31183
31184 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
31185
31186         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
31187         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
31188         obsolete files.
31189
31190         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
31191         (rts-zfp): Ditto.
31192
31193 2003-12-08  Robert Dewar  <dewar@gnat.com>
31194
31195         * 7sintman.adb: Minor reformatting
31196
31197         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
31198         standard linker options to get standard libraries linked. We now plan
31199         to provide dummy versions of these libraries to match the appropriate
31200         configurable run-time (e.g. if a library is not needed at all, provide
31201         a dummy empty library).
31202
31203         * targparm.ads: Configurable_Run_Time mode no longer affects linker
31204         options (-L parameters and standard libraries). What we plan to do is
31205         to provide dummy libraries where the libraries are not required.
31206
31207         * gnatbind.adb: Minor comment improvement
31208
31209 2003-12-08  Javier Miranda  <miranda@gnat.com>
31210
31211         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
31212         aggregate in the parent. Otherwise constants with limited aggregates
31213         are not supported. Add new formal to pass the component type (Ctype).
31214         It is required to call the corresponding IP subprogram in case of
31215         default initialized components.
31216         (Gen_Assign): In case of default-initialized component, generate a
31217         call to the IP subprogram associated with the component.
31218         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
31219         of aggregate with default initialized components.
31220         (Has_Default_Init_Comps): Improve implementation to recursively check
31221         all the present expressions.
31222
31223         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
31224         to indicate that the initialization call corresponds to a
31225         default-initialized component of an aggregate.
31226         In case of default initialized aggregate with tasks this parameter is
31227         used to generate a null string (this is just a workaround that must be
31228         improved later). In case of discriminants, this parameter is used to
31229         generate a selected component node that gives access to the discriminant
31230         value.
31231
31232         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
31233         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
31234         allocated aggregates with default-initialized components.
31235
31236         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
31237         the box notation is used in positional aggregates.
31238
31239 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
31240
31241         * lib.ads: Fix typo in comment
31242
31243 2003-12-08  Vincent Celier  <celier@gnat.com>
31244
31245         * prj.adb (Project_Empty): New component Unkept_Comments
31246         (Scan): Remove procedure; moved to Prj.Err.
31247
31248         * prj.ads (Project_Data): New Boolean component Unkept_Comments
31249         (Scan): Remove procedure; moved to Prj.Err.
31250
31251         * prj-dect.adb: Manage comments for the different declarations.
31252
31253         * prj-part.adb (With_Record): New component Node
31254         (Parse): New Boolean parameter Store_Comments, defaulted to False.
31255         Set the scanner to return ends of line and comments as tokens, if
31256         Store_Comments is True.
31257         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
31258         comments are associated with these nodes. Store the node IDs in the
31259         With_Records.
31260         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
31261         With_Records.
31262         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
31263         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
31264         current project. Call Tree.Restore afterwards. Set the various nodes
31265         for comment storage (Next_End, End_Of_Line, Previous_Line,
31266         Previous_End).
31267
31268         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
31269         defaulted to False.
31270
31271         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
31272         to False. When Truncated is True, truncate the string, never go to the
31273         next line.
31274         (Write_End_Of_Line_Comment): New procedure
31275         (Print): Process comments for nodes N_With_Clause,
31276         N_Package_Declaration, N_String_Type_Declaration,
31277         N_Attribute_Declaration, N_Typed_Variable_Declaration,
31278         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
31279         Process nodes N_Comment.
31280
31281         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
31282         without comments and there are some comments, set the flag
31283         Unkept_Comments to True.
31284         (Scan): If there are comments, set the flag Unkept_Comments to True and
31285         clear the comments.
31286         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
31287         (Next_End_Nodes: New table
31288         (Comment_Zones_Of): New function
31289         (Scan): New procedure; moved from Prj. Accumulate comments in the
31290         Comments table and set end of line comments, comments after, after end
31291         and before end.
31292         (Add_Comments): New procedure
31293         (Save, Restore, Seset_State): New procedures
31294         (There_Are_Unkept_Comments): New function
31295         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
31296         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
31297         procedures.
31298         (First_Comment_After, First_Comment_After_End): New functions
31299         (First_Comment_Before, First_Comment_Before_End): New functions
31300         (Next_Comment): New function
31301         (End_Of_Line_Comment, Follows_Empty_Line,
31302         Is_Followed_By_Empty_Line): New functions
31303         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
31304         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
31305         (Set_Next_Comment): New procedure
31306         (Default_Project_Node): Associate comment before if the node can store
31307         comments.
31308
31309         * scans.ads (Token_Type): New enumeration value Tok_Comment
31310         (Comment_Id): New global variable
31311
31312         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
31313         defaulted to False.
31314         (Scan): Store position of start of comment. If comments are tokens, set
31315         Comment_Id and set Token to Tok_Comment when scanning a comment.
31316         (Set_Comment_As_Token): New procedure
31317
31318         * sinput-p.adb: Update Copyright notice
31319         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
31320         that no longer exists.
31321
31322 2003-12-08  Javier Miranda  <miranda@gnat.com>
31323
31324         * sem_aggr.adb: Add dependence on Exp_Tss package
31325         Correct typo in comment
31326         (Resolve_Aggregate): In case of array aggregates set the estimated
31327         type of the aggregate before calling resolve. This is needed to know
31328         the name of the corresponding IP in case of limited array aggregates.
31329         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
31330         in case of default initialized array components.
31331
31332         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
31333         types. Required to give support to limited aggregates in generic
31334         formals.
31335
31336 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
31337
31338         * sem_ch3.adb (Check_Initialization): For legality purposes, an
31339         inlined body functions like an instantiation.
31340         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
31341         until bounds are analyzed, to diagnose premature use of type.
31342
31343         * sem_util.adb (Wrong_Type): Improve error message when the type of
31344         the expression is used prematurely.
31345
31346 2003-12-08  GNAT Script  <nobody@gnat.com>
31347
31348         * Make-lang.in: Makefile automatically updated
31349
31350 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
31351
31352         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
31353         they are automatically generated by Make-lang.in and cause nothing but
31354         maintenance troubles.
31355
31356 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
31357
31358         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
31359         version of this unit).
31360
31361 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
31362
31363         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
31364         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
31365         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
31366         the body of System.Interrupt_Management common to several targets.
31367         Update copyright notice when appropriate.
31368
31369         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
31370         constant.
31371
31372         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
31373         to ensure that the kernel fills in the interrupted context structure
31374         before calling a signal handler, which is necessary to be able to
31375         unwind past it. Update the copyright notice.
31376
31377 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
31378
31379         * a-elchha.ads: New file.
31380
31381         * a-elchha.adb: New default last chance handler. Contents taken from
31382         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
31383
31384         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
31385         is moved to a-elchha.adb to provide a target-independent default last
31386         chance handler.
31387
31388         * Makefile.rtl: Add a-elchha.o
31389
31390         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
31391
31392 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
31393
31394         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
31395         declared in an instance, do not inline the call if the instance is not
31396         frozen yet, to prevent order of elaboration problems.
31397
31398         * sem_prag.adb: Add comments for previous fix.
31399
31400 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
31401
31402         * g-table.adb: Use the right variable in Set_Item.
31403         Update copyright notice.
31404
31405 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
31406
31407         * Makefile.in: Remove unused rules.
31408
31409 2003-12-05  Vincent Celier  <celier@gnat.com>
31410
31411         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
31412         -nostdlib. Not needed here after all.
31413
31414 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
31415
31416         PR ada/11724
31417         * adaint.h, adaint.c, g-os_lib.ads:
31418         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
31419         on some platforms (including FreeBSD), it is a 64 bit value.
31420         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
31421
31422 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
31423
31424         * gnatvsn.ads (Library_Version): Now contain only the relevant
31425         version info.
31426         (Verbose_Library_Version): New constant.
31427
31428         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
31429         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
31430         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
31431
31432         * gnatlbr.adb: Clean up: replace Library_Version by
31433         Verbose_Library_Version.
31434
31435         * make.adb, lib-writ.adb, exp_attr.adb:
31436         Clean up: replace Library_Version by Verbose_Library_Version.
31437
31438         * 5lintman.adb: Removed.
31439
31440         * Makefile.in:
31441         Update and simplify computation of LIBRARY_VERSION.
31442         Fix computation of GSMATCH_VERSION.
31443         5lintman.adb is no longer used: replaced by 7sintman.adb.
31444
31445 2003-12-03  Robert Dewar  <dewar@gnat.com>
31446
31447         * exp_ch5.adb:
31448         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
31449         name. Modified to consider small non-bit-packed arrays as troublesome
31450         and in need of component-by-component assigment expansion.
31451
31452 2003-12-03  Vincent Celier  <celier@gnat.com>
31453
31454         * lang-specs.h: Process nostdlib as nostdinc
31455
31456         * back_end.adb: Update Copyright notice
31457         (Scan_Compiler_Arguments): Process -nostdlib directly.
31458
31459 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
31460
31461         * Makefile.in:
31462         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
31463         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
31464         included in HIE_NONE_TARGET_PAIRS.
31465
31466 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
31467
31468         * sem_attr.adb:
31469         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
31470         is legal in an instance, because legality is cheched in the template.
31471
31472         * sem_prag.adb:
31473         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
31474         appplied to an unchecked conversion of a formal parameter.
31475
31476         * sem_warn.adb:
31477         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
31478         variables.
31479
31480 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
31481
31482         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
31483         routines. The second one is new functionality to deal with backtracing
31484         through signal handlers.
31485         (unwind): Split into the two separate subroutines above.
31486         Update the documentation, and deal properly with sizeof (REG) different
31487         from sizeof (void*).
31488
31489 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
31490
31491         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
31492         so that the debugger can reliably access the value of the parameter,
31493         and therefore is able to display the exception name when an exception
31494         breakpoint is reached.
31495
31496 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
31497
31498         * fmap.adb: Fix typo in warning message.
31499
31500         * g-socket.ads, g-socket.adb: Make Free a visible instance of
31501         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
31502
31503 2003-12-01  Vincent Celier  <celier@gnat.com>
31504
31505         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
31506         ther is no Afile.
31507         (Build_Library): Get the switches only if Default_Switches is declared
31508         in package Binder.
31509
31510 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
31511
31512         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
31513         actuals that are indexed components, reanalyze actual to ensure that
31514         packed array references are properly expanded.
31515
31516         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
31517         attempted assignment to a discriminant.
31518
31519 2003-12-01  Robert Dewar  <dewar@gnat.com>
31520
31521         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
31522         reformatting.
31523
31524         * switch-c.adb: Minor reformatting of comments
31525
31526 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
31527
31528         * Makefile.in: Clean ups.
31529
31530 2003-12-01  GNAT Script  <nobody@gnat.com>
31531
31532         * Make-lang.in: Makefile automatically updated
31533
31534 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
31535
31536         * 5wsystem.ads: Disable zero cost exception, not ready yet.
31537
31538 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
31539
31540         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
31541         to force serialization.
31542
31543 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
31544
31545         * g-socket.ads, g-socket.adb:
31546         Clarify documentation of function Stream. Introduce a Free procedure
31547         to release the returned Stream once it becomes unused.
31548
31549         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
31550
31551 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
31552
31553         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
31554         since NT 4 cannot handle timeout values that are too large,
31555         e.g. DWORD'Last - 1.
31556
31557 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
31558
31559         * exp_ch4.adb:
31560         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
31561         in procedure calls and whose expansion must be deferred.
31562
31563         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
31564         is in exp_ch4.
31565
31566         * sem_ch3.adb:
31567         (Build_Derived_Array_Type): Create operator for unconstrained type
31568         if ancestor is unconstrained.
31569
31570 2003-11-26  Vincent Celier  <celier@gnat.com>
31571
31572         * make.adb (Project_Object_Directory): New global variable
31573         (Change_To_Object_Directory): New procedure
31574         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
31575         of Change_Dir directly. Do not change working directory to object
31576         directory of main project after each compilation.
31577         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
31578         directly.
31579         Change to object directory of main project before binding step.
31580         (Initialize): Initialize Project_Object_Directory to No_Project
31581
31582         * mlib-prj.adb:
31583         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
31584         binding a Stand-Alone Library.
31585
31586         * output.adb: Update Copyright notice
31587         (Write_Char): Output buffer when full
31588
31589 2003-11-26  Robert Dewar  <dewar@gnat.com>
31590
31591         * sem_ch13.adb: (Check_Size): Reset size if size is too small
31592
31593         * sem_ch13.ads:
31594         (Check_Size): Fix documentation to include bit-packed array case
31595
31596         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
31597
31598         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
31599
31600         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
31601
31602 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
31603
31604         PR ada/13142
31605         * utils.c (init_gigi_decls): Change name of built-in setjmp to
31606         __builtin_setjmp, since this is apparently needed by recent
31607         non Ada changes.
31608
31609 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31610
31611         * adadecode.c: Only include ctype.h if not IN_GCC.
31612         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
31613
31614 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
31615
31616         * Makefile.in:
31617         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
31618         signals and interrupts.
31619
31620         * 5zintman.ads: New File.
31621
31622         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
31623         add exception signals to the set of unmasked signals.
31624
31625         * 5ztaprop.adb:
31626         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
31627         between signals and interrupts.
31628         Add to Unblocked_Signal_Mask the set of signals that are in
31629         Keep_Unmasked.
31630
31631         * 7sinmaop.adb:
31632         Adding a check to see whether the Interrupt_ID we want to unmask is in
31633         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
31634         reason is that the index type of the Keep_Unmasked array is not always
31635         Interrupt_ID; it may be a subtype of Interrupt_ID.
31636
31637 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
31638
31639         * exp_util.adb:
31640         (Remove_Side_Effects): Condition constantness of object created for a
31641          an unchecked type conversion on the constantness of the expression
31642          to ensure the correct value for 'Constrained when passing components
31643          of view-converted class-wide objects.
31644
31645 2003-11-24  Robert Dewar  <dewar@gnat.com>
31646
31647         * par-load.adb (Load): Improve handling of misspelled and missing units
31648         Removes several cases of compilation abandoned messages
31649
31650         * lib.adb: (Remove_Unit): New procedure
31651
31652         * lib.ads: (Remove_Unit): New procedure
31653
31654         * lib-load.adb: Minor reformatting
31655
31656 2003-11-24  Vincent Celier  <celier@gnat.com>
31657
31658         * make.adb:
31659         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
31660         (Marking_Label): Label to mark processed source files. Incremented for
31661         each executable.
31662         (Gnatmake): Increase Marking_Labet for each executable
31663         (Is_Marked): Compare against marking label
31664         (Mark): Mark with marking label
31665
31666 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
31667
31668         * s-thread.ads:
31669         Move the declaration of the TSD for System.Threads to System.Soft_Links.
31670         Add some comments.
31671
31672         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
31673         (rts-cert): build a single relocatable object for the run-time lib.
31674         Fix perms.
31675
31676 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
31677
31678         * Make-lang.in:
31679         Use gnatls rather than gcc to obtain the location of GNAT RTL for
31680         crosstools build.
31681
31682 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
31683
31684         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
31685         can not use it as before (that is, as a variable) when dumping it into
31686         the tree file. Add a local variable to store the result of this
31687         function and to be used as the string to be written into the tree.
31688
31689         * scn.adb (Initialize_Scanner): Add comments explaining the recent
31690         changes.
31691
31692         * sinput.adb (Source_First, Source_Last): In case of
31693         Internal_Source_File, replace returning attributes of
31694         Internal_Source_Ptr (which is wrong) with returning attributes of
31695         Internal_Source.
31696
31697 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
31698
31699         * sem_ch3.adb:
31700         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
31701         used for implicit concatenation operators.
31702         Code cleanup.
31703
31704         * sem_elab.adb:
31705         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
31706         task bodies that are in the scope of a Suppress pragma.
31707         (Check_A Call): Use the flag to prevent spurious elaboration checks.
31708
31709         * sinfo.ads, sinfo.adb:
31710         New flag No_Elaboration_Check on function/procedure calls, to properly
31711         suppress checks on calls in task bodies that are within a local suppress
31712         pragma.
31713
31714         * exp_ch4.adb:
31715         (Expand_Concatenate_Other): Use the proper integer type for the
31716         expression for the upper bound, to avoid universal_integer computations
31717         when possible.
31718
31719 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
31720
31721         * .cvsignore: Delete.
31722
31723 2003-11-21  Andreas Schwab  <schwab@suse.de>
31724
31725         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
31726
31727 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
31728
31729         * 5wsystem.ads: Enable zero cost exception.
31730
31731 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
31732
31733         * 5ztiitho.adb: Remove an unreferenced variable.
31734
31735 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
31736
31737         * adaint.c: For FreeBSD, use mkstemp.
31738
31739 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
31740
31741         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
31742
31743 2003-11-21  Robert Dewar  <dewar@gnat.com>
31744
31745         * bld.adb: Remove useless USE of gnatvsn
31746
31747         * gnatchop.adb: Minor reformatting
31748         Clean up version handling to be more consistent
31749
31750         * gnatxref.adb: Minor reformatting
31751
31752         * gprcmd.adb: Minor reformatting
31753         Fix output of copyright to be more consistent with other tools
31754
31755 2003-11-21  Vincent Celier  <celier@gnat.com>
31756
31757         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
31758
31759 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
31760
31761         * atree.adb (Initialize): Add initializations for global variables
31762         used in New_Copy_Tree.
31763
31764         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
31765         Internal_Source_File as the actual).
31766         Put the set of statements creating Any_Character before the set of
31767         statements creating Any_Array to have Any_Character fully initialized
31768         when it is used in creating Any_Array.
31769
31770         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
31771         not call Scan in case if the actual is Internal_Source_File
31772         Add 2003 to copyright note.
31773
31774         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
31775         processing Internal_Source_File.
31776
31777         * types.ads: Add the constant Internal_Source_File representing the
31778         source buffer for artificial source-code-like strings created within
31779         the compiler (the definition of Source_File_Index is changed).
31780
31781 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
31782
31783         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
31784         56system.ads: New file, FreeBSD version.
31785
31786 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
31787
31788         * Make-lang.in (ada.extraclean): Delete.
31789
31790 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
31791
31792         * gnatmem.adb: Clean up verbose output.
31793
31794         * gprcmd.adb: Change copyright to FSF.
31795
31796 2003-11-19  Vincent Celier  <celier@gnat.com>
31797
31798         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
31799         and Version (ignored).
31800
31801         * symbols.ads: (Policy): New type
31802         (Initialize): New parameter Reference, Symbol_Policy and
31803         Library_Version.
31804         Remove parameter Force.
31805         Minor reformatting.
31806
31807         * snames.ads, snames.adbadb: New standard names
31808         Library_Reference_Symbol_File and Library_Symbol_Policy
31809
31810         * mlib-prj.adb:
31811         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
31812         project.
31813
31814         * mlib-tgt.adb:
31815         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
31816
31817         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
31818
31819         * prj.adb: (Project_Empty): New component Symbol_Data
31820
31821         * prj.ads: (Policy, Symbol_Record): New types
31822         (Project_Data): New component Symbol_Data
31823
31824         * prj-attr.adb:
31825         New attributes Library_Symbol_File, Library_Symbol_Policy and
31826         Library_Reference_Symbol_File.
31827
31828         * prj-nmsc.adb:
31829         (Ada_Check): When project is a Stand-Alone library project, process
31830         attribute Library_Symbol_File, Library_Symbol_Policy and
31831         Library_Reference_Symbol_File.
31832
31833         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
31834         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
31835         5sml-tgt.adb (Build_Dynamic_Library): New parameter
31836         Symbol_Data (ignored).
31837
31838         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
31839         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
31840         functions Option_File_Name and Version_String. Set new options of
31841         gnatsym related to symbol file, symbol policy and reference symbol
31842         file.
31843
31844         * 5vsymbol.adb:
31845         Extensive modifications to take into account the reference symbol file,
31846         the symbol policy, the library version and to put in the symbol file the
31847         minor and major IDs.
31848
31849         * bld.adb (Process_Declarative_Items): Put second argument of
31850         gprcmd to_absolute between single quotes, to avoid problems with
31851         Windows.
31852
31853         * bld-io.adb: Update Copyright notice.
31854         (Flush): Remove last character of a line, if it is a back slash, to
31855         avoid make problems.
31856
31857         * gnatsym.adb:
31858         Implement new scheme with reference symbol file and symbol policy.
31859
31860         * g-os_lib.ads: (Is_Directory): Clarify comment
31861
31862 2003-11-19  Robert Dewar  <dewar@gnat.com>
31863
31864         * atree.adb: Move New_Copy_Tree global variables to head of package
31865
31866         * errout.adb: Minor reformatting
31867
31868 2003-11-19  Javier Miranda  <miranda@gnat.com>
31869
31870         * sem_ch4.adb: (Diagnose_Call): Improve error message.
31871         Add reference to Ada0Y (AI-50217)
31872
31873         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
31874         sem_util.adb: Add reference to AI-50217
31875
31876         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
31877
31878         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
31879
31880         * sem_aggr.adb: Complete documentation of AI-287 changes
31881
31882         * par-ch4.adb: Document previous changes.
31883
31884         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
31885         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
31886         Ada0Y (AI-50217)
31887
31888         * exp_aggr.adb: Add references to AI-287 in previous changes
31889
31890 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
31891
31892         * exp_ch6.adb:
31893         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
31894         in the rewriting is the result of an inlined call.
31895
31896         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
31897         parameter is a type conversion, use original node to construct the
31898         post-call assignment, because expression may have been rewritten, e.g.
31899         if it is a packed array.
31900
31901         * sem_attr.adb:
31902         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
31903         body, just as it is in an instance.
31904         Categorization routines
31905
31906         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
31907         Instantiate_Object): Set proper sloc reference for message on missing
31908         actual.
31909
31910 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
31911
31912         * Makefile.in: Add FreeBSD libgnat pairs.
31913
31914         * usage.adb: Fix typo in usage message.
31915
31916 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
31917
31918         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
31919         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
31920         pragma Thread_Body.
31921         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
31922
31923         * s-thread.adb: This file is now a dummy implementation of
31924         System.Thread.
31925
31926 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
31927
31928         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
31929
31930 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
31931
31932         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
31933         instanciation references in the parent type description.
31934
31935 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31936
31937         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
31938
31939         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
31940         TYPE_PRECISION directly from esize.
31941
31942 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
31943
31944         * cstreams.c:
31945         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
31946
31947         * init.c: Initialization routines for FreeBSD
31948
31949         * link.c: Link info for FreeBSD
31950
31951         * sysdep.c: Add the case of FreeBSD
31952
31953 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
31954
31955         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
31956         already called in System.Threads.
31957
31958         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
31959         environment task, as it has been moved to System.Threads.Initialization.
31960
31961 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
31962
31963         * adaint.c (__gnatlib_install_locks): Only reference
31964         __gnat_install_locks on VMS, since other platforms can avoid using
31965         --enable-threads=gnat
31966
31967 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31968
31969         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
31970
31971         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
31972         TYPE_PACKED_ARRAY_TYPE_P.
31973         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
31974
31975         Part of PR ada/12806
31976         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
31977         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
31978
31979 2003-11-17  Vincent Celier  <celier@gnat.com>
31980
31981         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
31982         to False.
31983         Do not set exit status to Failure when Warning is True.
31984         (Gnatchop): Make errors "no compilation units found" and
31985         "no source files written" warnings only.
31986
31987         * make.adb (Gnatmake): When using a project file, set
31988         Look_In_Primary_Dir to False.
31989         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
31990         and Local_Configuration_Pragmas in the project where they are declared
31991         not an extending project which might have inherited them.
31992
31993         * osint.adb (Locate_File): If Name is already an absolute path, do not
31994         look for a directory.
31995
31996         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
31997         -gnats (Check_Syntax) is used, issue only a warning, not an error.
31998
31999         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
32000         in objects of type Variable_Value.
32001
32002         * prj.ads: (Variable_Value): New component Project
32003
32004         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
32005         is in a project extended by Project.
32006
32007         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
32008         Project of Variable_Values to this new parameter value.
32009         (Expression): Set component Project of Variable_Values.
32010         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
32011         Set the component Project in array elements.
32012
32013 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
32014
32015         * errout.adb: (Initialize): Add initialization for error nodes.
32016
32017         * sem_ch12.adb (Initialize): Add missing initializations for
32018         Exchanged_Views and Hidden_Entities.
32019
32020 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
32021
32022         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
32023         already instantiated tree for use in subsequent inlining.
32024         (Analyze_Associations, Instantiate_Formal_Subprogram,
32025         Instantiate_Object): improve error message for mismatch in
32026         instantiations.
32027
32028         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
32029         instantiations of subprograms declared in instances.
32030
32031 2003-11-17  Javier Miranda  <miranda@gnat.com>
32032
32033         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
32034         executed only under the Extensions_Allowed flag.
32035
32036 2003-11-17  Robert Dewar  <dewar@gnat.com>
32037
32038         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
32039         zeroes suppressed.
32040         (Address_Image): Fix bug of returning 0x instead of 0x0
32041         Minor reformatting (function specs).
32042
32043         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
32044         (missed case of 33-63)
32045
32046         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
32047
32048         * s-thread.adb: Add comments for pragma Restriction
32049
32050         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
32051         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
32052
32053 2003-11-17  Ed Falis  <falis@gnat.com>
32054
32055         * s-thread.adb: Added No_Tasking restriction for this implementation.
32056
32057 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
32058
32059         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
32060         instanciation references in the parent type description.
32061
32062 2003-11-17  GNAT Script  <nobody@gnat.com>
32063
32064         * Make-lang.in: Makefile automatically updated
32065
32066 2003-11-16  Jason Merrill  <jason@redhat.com>
32067
32068         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
32069         and TAGS files that include them for each front end.
32070
32071 2003-11-14  Andreas Jaeger  <aj@suse.de>
32072
32073         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
32074         is the canonical version.
32075         * misc.c (gnat_handle_option): Likewise.
32076
32077         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
32078
32079         * 5nsystem.ads: New file for x86_64-linux-gnu.
32080
32081 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
32082
32083         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
32084
32085         * comperr.adb: Fix logic in previous change.
32086
32087 2003-11-13  Vincent Celier  <celier@gnat.com>
32088
32089         * 5bml-tgt.adb (Build_Dynamic_Library): Use
32090         Osint.Include_Dir_Default_Prefix instead of
32091         Sdefault.Include_Dir_Default_Name.
32092
32093         * gnatlbr.adb: Update Copyright notice
32094         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
32095         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
32096         instead of Sdefault.Object_Dir_Default_Name
32097
32098         * gnatlink.adb:
32099         (Process_Binder_File): Never suppress the option following -Xlinker
32100
32101         * mdll-utl.adb:
32102         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
32103         Sdefault.Object_Dir_Default_Name.
32104
32105         * osint.ads, osint.adb:
32106         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
32107         Minor reformatting.
32108
32109         * vms_conv.ads: Minor reformating
32110         Remove GNAT STANDARD and GNAT PSTA
32111
32112         * vms_conv.adb:
32113         Allow GNAT MAKE to have several files on the command line.
32114         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
32115         Sdefault.Object_Dir_Default_Name.
32116         Minor Reformating
32117         Remove data for GNAT STANDARD
32118
32119         * vms_data.ads:
32120         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
32121         Remove data for GNAT STANDARD
32122         Remove options and documentation for -gnatwb/-gnatwB: these warning
32123         options no longer exist.
32124
32125 2003-11-13  Ed Falis  <falis@gnat.com>
32126
32127         * 5zthrini.adb: (Init_RTS): Made visible
32128
32129         * 5zthrini.adb:
32130         (Register): Removed unnecessary call to taskVarGet that checked whether
32131          an ATSD was already set as a task var for the argument thread.
32132
32133         * s-thread.adb:
32134         Updated comment to reflect that this is a VxWorks version
32135         Added context clause for System.Threads.Initialization
32136         Added call to System.Threads.Initialization.Init_RTS
32137
32138 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
32139
32140         * 5zthrini.adb:
32141         (Init_RTS): New procedure, for the initialization of the run-time lib.
32142
32143         * s-thread.adb:
32144         Remove dependancy on System.Init, so that this file can be used in the
32145         AE653 sequential run-time lib.
32146
32147 2003-11-13  Robert Dewar  <dewar@gnat.com>
32148
32149         * bindgen.adb: Minor reformatting
32150
32151 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
32152
32153         * checks.adb:
32154         (Apply_Discriminant_Check): Do no apply check if target type is derived
32155         from source type with no applicable constraint.
32156
32157         * lib-writ.adb:
32158         (Ensure_System_Dependency): Do not apply the style checks that may have
32159         been specified for the main unit.
32160
32161         * sem_ch8.adb:
32162         (Find_Selected_Component): Further improvement in error message, with
32163         RM reference.
32164
32165         * sem_res.adb:
32166         (Resolve): Handle properly the case of an illegal overloaded protected
32167         procedure.
32168
32169 2003-11-13  Javier Miranda  <miranda@gnat.com>
32170
32171         * exp_aggr.adb:
32172         (Has_Default_Init_Comps): New function to check the presence of
32173         default initialization in an aggregate.
32174         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
32175         extension aggregate of a limited record. In addition, a new formal
32176         was added to do not initialize the record controller (if any) during
32177         this recursive expansion of ancestors.
32178         (Init_Controller): Add support for limited record components.
32179         (Expand_Record_Aggregate): In case of default initialized components
32180         convert the aggregate into a set of assignments.
32181
32182         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
32183         describing the new syntax.
32184         Nothing else needed to be done because this subprogram delegates part of
32185         its work to P_Precord_Or_Array_Component_Association.
32186         (P_Record_Or_Array_Component_Association): Give support to the new
32187         syntax for default initialization of components.
32188
32189         * sem_aggr.adb:
32190         (Resolve_Aggregate): Relax the strictness of the frontend in case of
32191         limited aggregates.
32192         (Resolve_Record_Aggregate): Give support to default initialized
32193         components.
32194         (Get_Value): In case of default initialized components, duplicate
32195         the corresponding default expression (from the record type
32196         declaration). In case of default initialization in the *others*
32197         choice, do not check that all components have the same type.
32198         (Resolve_Extension_Aggregate): Give support to limited extension
32199         aggregates.
32200
32201         * sem_ch3.adb:
32202         (Check_Initialization): Relax the strictness of the front-end in case
32203         of aggregate and extension aggregates. This test is now done in
32204         Get_Value in a per-component manner.
32205
32206         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
32207         expression corresponds to a limited aggregate. This test is now done
32208         in Get_Value.
32209
32210         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
32211         Box_Present flag.
32212
32213         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
32214         present in an N_Component_Association node
32215
32216 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
32217
32218         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
32219         type-conformant entry only if they are homographs.
32220
32221 2003-11-13  GNAT Script  <nobody@gnat.com>
32222
32223         * Make-lang.in: Makefile automatically updated
32224
32225 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32226
32227         * adadecode.c: Use <> form of include for ctype.h.
32228         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
32229
32230 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32231
32232         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
32233         Works around PR middle-end/6552.
32234
32235 2003-11-10  Ed Falis  <falis@gnat.com>
32236
32237         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
32238
32239         * 5zinit.adb: (Install_Handler): Moved back to spec
32240         (Install_Signal_Handlers): Deleted
32241
32242         * 5zthrini.adb: Added context clause for System.Storage_Elements
32243         (Register): Only handles creation of taskVar; initialization moved to
32244         Thread_Body_Enter.
32245         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
32246         Added declaration of environment task secondary stack and
32247         initialization.
32248
32249         * s-thread.adb: Implement bodies for thread body processing
32250
32251         * s-thread.ads:
32252         Added comment identifying supported targets for pragma Thread_Body.
32253
32254 2003-11-10  Pascal Obry  <obry@gnat.com>
32255
32256         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
32257         GNAT_MAX_PATH_LEN.
32258
32259         * s-fileio.adb:
32260         (Open): Properly check for string length before copying into the buffer.
32261         Raises Name_Error if buffer is too small. Note that this was a potential
32262         buffer overflow.
32263
32264 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
32265
32266         * bindgen.adb, comperr.adb: Code clean ups.
32267         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
32268
32269 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
32270
32271         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
32272
32273 2003-11-10  Vincent Celier  <celier@gnat.com>
32274
32275         * gprcmd.adb:
32276         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
32277         installation.
32278
32279         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
32280
32281         * prj.adb: (Project_Empty): Add new boolean component Virtual
32282
32283         * prj.ads: (Virtual_Prefix): New constant string
32284         (Project_Data): New boolean component Virtual
32285
32286         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
32287         a library project is extended by a virtual extending project.
32288
32289         * prj-part.adb:
32290         Modifications throughout to implement extending-all project, including:
32291         (Virtual_Hash, Processed_Hash): New hash tables
32292         (Create_Virtual_Extending_Project): New procedure
32293         (Look_For_Virtual_Projects_For): New procedure
32294
32295         * prj-proc.adb:
32296         (Process): After checking the projects, if main project is an
32297         extending-all project, set the object directory of all virtual extending
32298         project to the object directory of the main project.
32299         Adjust error message when a virtual extending project has the same
32300         object directory as an project being extended.
32301         (Recursive_Process): If name starts with the virtual prefix, set Virtual
32302         to True in the project data.
32303
32304         * prj-tree.adb:
32305         (Default_Project_Node): Add new boolean component Extending_All
32306         (Is_Extending_All): New function
32307         (Set_Is_Extending_All): New procedure
32308
32309         * prj-tree.ads: (Is_Extending_All): New function
32310         (Set_Is_Extending_All): New procedure
32311         (Project_Node_Record): New boolean component Extending_All
32312
32313         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
32314
32315         * vms_data.ads:
32316         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
32317
32318         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
32319         "gprcmd prefix" to define it.
32320
32321 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
32322
32323         * einfo.ads: Fix a typo and remove an extraneous word in comments.
32324
32325         * lib-load.adb:
32326         (Create_Dummy_Package_Unit): Set the scope of the entity for the
32327         created dummy package to Standard_Standard, not to itself, to
32328         defend other parts of the front-end against encoutering a cycle in
32329         the scope chain.
32330
32331         * sem_ch10.adb:
32332         (Analyze_With_Clause): When setting the entities for the successive
32333         N_Expanded_Names that constitute the name of a child unit, do not
32334         attempt to go further than Standard_Standard in the chain of scopes.
32335         This case arises from the placeholder units created by
32336         Create_Dummy_Package_Unit in the case of a with_clause for a
32337         nonexistent child unit.
32338
32339 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
32340
32341         * exp_ch6.adb:
32342         (Expand_Thread_Body): Place subprogram on scope stack, so that new
32343         declarations are given the proper scope.
32344
32345         * sem_ch13.adb:
32346         (Check_Expr_Constants): Reject an expression that contains a constant
32347         created during expansion, and that appears after the object to which
32348         the address clause applies.
32349
32350         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
32351         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
32352         that uses 'Range of a function call with controlled components, so
32353         that the function result can be finalized before starting the loop.
32354
32355         * sem_ch8.adb:
32356         (Find_Selected_Component): Improve error message when prefix is
32357         an implicit dereference of an incomplete type.
32358
32359 2003-11-10  Robert Dewar  <dewar@gnat.com>
32360
32361         * opt.ads: New Print_Standard flag for -gnatS switch
32362
32363         * sem_ch13.adb: Remove some additional checks for unaligned arrays
32364
32365         * cstand.adb (Create_Standard): Print out package standard if -gnatS
32366         switch set
32367
32368         * debug.adb: Update doc for -gnatds to discuss relationship with new
32369         -gnatS flag
32370
32371         * sinfo.adb: Add new field Entity_Or_Associated_Node
32372
32373         * sinfo.ads: Add new field Entity_Or_Associated_Node
32374         Update documentation for Associated_Node and Entity fields to clarify
32375         relationship and usage.
32376
32377         * sprint.adb:
32378         (Write_Id): Properly process Associated_Node field in generic template
32379
32380         * switch-c.adb:
32381         Recognize new -gnatS switch for printing package Standard
32382         This replaces gnatpsta
32383
32384         * usage.adb:
32385         Add line for  new -gnatS switch for printing package Standard
32386         This replaces gnatpsta
32387
32388 2003-11-10  Andreas Jaeger  <aj@suse.de>
32389
32390         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
32391         integer.
32392
32393 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
32394
32395         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
32396         by gnat1.
32397
32398 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
32399
32400         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
32401         no longer needed.
32402
32403         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
32404
32405         * sysdep.c: Add handling of cygwin.
32406
32407 2003-11-10  GNAT Script  <nobody@gnat.com>
32408
32409         * Make-lang.in: Makefile automatically updated
32410
32411 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
32412
32413         PR 12950
32414         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
32415         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
32416         Replace GNAT_ROOT by GCC_ROOT.
32417
32418         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
32419
32420 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
32421
32422         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
32423         and update for changed meaning of GET_MODE_BITSIZE.
32424
32425 2003-11-04  Doug Rupp  <rupp@gnat.com>
32426
32427         * sysdep.c: Problem discovered during IA64 VMS port.
32428         [VMS] #include <unixio.h> to get proper prototypes.
32429
32430         * adaint.c:
32431         Issues discovered/problems fixed during IA64 VMS port.
32432         [VMS] #define _POSIX_EXIT for proper semantics.
32433         [VMS] #include <unixio.h> for proper prototypes.
32434         [VMS] (fork): #define IA64 version.
32435         (__gnat_os_exit): Remove unnecessary VMS specific code.
32436
32437 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32438
32439         Part of PR ada/12806
32440         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
32441         tree, not integer.
32442
32443         * decl.c:
32444         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
32445         not integer.
32446
32447         * targtyps.c, decl.c, misc.c,
32448         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
32449         routines to work around change in FP sizing semantics in GCC.
32450
32451         * utils.c:
32452         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
32453
32454         * gigi.h: (enumerate_modes): New function.
32455
32456         * Make-lang.in: (ada/misc.o): Add real.h.
32457
32458         * misc.c: (enumerate_modes): New function.
32459
32460 2003-11-04  Robert Dewar  <dewar@gnat.com>
32461
32462         * 3vtrasym.adb: Minor reformatting
32463         Use terminology encoded/decoded name, rather than C++ specific notion
32464         of mangling (this is the terminology used throughout GNAT).
32465
32466         * einfo.h: Regenerated
32467
32468         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
32469
32470         * exp_ch6.adb:
32471         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
32472
32473         * par-prag.adb: Add dummy entry for Thread_Body pragma
32474
32475         * rtsfind.ads:
32476         Add entries for System.Threads entities for thread body processing
32477
32478         * sem_attr.adb:
32479         (Analyze_Pragma, Access attributes): Check these are not applied to a
32480         thread body, since this is not permitted
32481
32482         * sem_prag.adb: Add processing for Thread_Body pragma.
32483         Minor comment fix.
32484
32485         * sem_res.adb:
32486         (Resolve_Call): Check for incorrect attempt to call a thread body
32487          procedure with a direct call.
32488
32489         * snames.ads, snames.adb: Add entry for Thread_Body pragma
32490         Add names associated with thread body expansion
32491
32492         * snames.h: Add entry for Thread_Body pragma
32493
32494         * s-thread.adb: Add entries for thread body processing
32495         These are dummy bodies so far
32496
32497         * s-thread.ads: Add documentation on thread body handling.
32498         Add entries for thread body processing.
32499
32500 2003-11-04  Javier Miranda  <miranda@gnat.com>
32501
32502         * sem_ch10.adb:
32503         (Build_Limited_Views): Return after posting an error in case of limited
32504         with_clause on subprograms, generics, instances or generic renamings
32505         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
32506         on subprograms, generics, instances or generic renamings
32507
32508 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
32509
32510         * raise.c (setup_to_install): Correct mistake in last revision; two
32511         arguments out of order.
32512
32513         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
32514         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
32515         notice, missed in previous change.
32516         Remove trailing blanks and other style errors introduced in previous
32517         change.
32518
32519 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
32520
32521         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
32522         rid of the wrapper for a LJM type, ensuring we don't do that if the
32523         field is addressable.  This avoids potential low level type view
32524         mismatches later on, for instance in a by-reference argument passing
32525         process.
32526
32527 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32528
32529         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
32530         aligned at byte boundary.
32531
32532 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
32533
32534         * decl.c (components_to_record): Do not delete the empty variants from
32535         the end of the union type.
32536
32537 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
32538
32539         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
32540         operation for a derived type, an explicit declaration may use a local
32541         subtype of Boolean.
32542
32543 2003-11-04  Vincent Celier  <celier@gnat.com>
32544
32545         * make.adb (Gnatmake): Allow main sources on the command line with a
32546         library project when it is only for compilation (no binding or
32547         linking).
32548
32549 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32550
32551         * Makefile.in: Remove many duplicate variables.
32552
32553 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
32554
32555         * Make-lang.in (dvi): Move targets to $(docobjdir).
32556         (gnat_ug_vms.dvi): Simplify rule and adjust target.
32557         (gnat_ug_wnt.dvi): Likewise.
32558         (gnat_ug_unx.dvi): Likewise.
32559         (gnat_ug_vxw.dvi): Likewise.
32560         (gnat_rm.dvi): Likewise.
32561         (gnat-style.dvi): Likewise.
32562
32563 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
32564
32565         * gigi.h: Missed commit from update for C90.
32566
32567 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
32568
32569         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
32570
32571 2003-10-31  Andreas Schwab  <schwab@suse.de>
32572
32573         * raise.c (get_action_description_for): Fix typo in last change.
32574
32575 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
32576
32577         PR ada/12761
32578         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
32579         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
32580
32581 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
32582
32583         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
32584         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
32585         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
32586         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
32587         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
32588
32589 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
32590
32591         * 3vtrasym.adb:
32592         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
32593         numbers when symbol name is too long.
32594
32595 2003-10-30  Ed Falis  <falis@gnat.com>
32596
32597         * g-signal.ads, g-signal.adb: New files
32598
32599         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
32600
32601         * Makefile.rtl: Introduce GNAT.Signals
32602
32603 2003-10-30  Robert Dewar  <dewar@gnat.com>
32604
32605         * freeze.adb: Minor reformatting
32606
32607         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
32608
32609         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
32610         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
32611         New handling of Id_Check parameter to improve recognition of keywords
32612         used as identifiers.
32613         Update copyright notice to include 2003
32614
32615 2003-10-29  Robert Dewar  <dewar@gnat.com>
32616
32617         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
32618         sem_ch10.adb: Minor reformatting
32619
32620         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
32621         (Expand_Assign_Record): Test right hand side for bit unaligned as well
32622
32623 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
32624
32625         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
32626         Support for TBK$SYMBOLIZE-based symbolic traceback.
32627
32628 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
32629
32630         * exp_disp.adb:
32631         Revert previous change, that did not work well when pragma No_Run_Time
32632         was used in conjunction with a run-time other than ZFP.
32633
32634 2003-10-29  Vincent Celier  <celier@gnat.com>
32635
32636         * make.adb:
32637         (Gnatmake): When there are no Ada mains in attribute Main, disable the
32638          bind and link steps only is switch -z is not used.
32639
32640 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
32641
32642         * Makefile.generic: Remove duplicated setting of CC.
32643
32644         * Makefile.prolog: Set CC to gcc by default, to override make's
32645         default (cc).
32646
32647         * einfo.h: Regenerated.
32648
32649 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
32650
32651         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
32652         current body, after compiling subunit.
32653
32654         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
32655         when in deleted code, because gigi needs properly ordered freeze
32656         actions to annotate types.
32657
32658         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
32659         prevent the premature freezing of record type that contains
32660         subcomponents with a private type that does not yet have a completion.
32661
32662 2003-10-29  Javier Miranda  <miranda@gnat.com>
32663
32664         * sem_ch12.adb:
32665         (Analyze_Package_Instantiation): Check that instances can not be used in
32666         limited with_clauses.
32667
32668         * sem_ch8.adb:
32669         (Analyze_Package_Renaming): Check that limited withed packages cannot
32670         be renamed. Improve text on error messages related to limited
32671         with_clauses.
32672
32673         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
32674
32675         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
32676         Update copyright notice.
32677
32678         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
32679         (Install_Limited_Context_Clauses): New subprogram that isolates all the
32680         checks required for limited context_clauses and installs the limited
32681         view.
32682         (Install_Limited_Withed_Unit): Complete its documentation.
32683         (Analyze_Context): Check that limited with_clauses are only allowed in
32684         package specs.
32685         (Install_Context): Call Install_Limited_Context_Clauses after the
32686         parents have been installed.
32687         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
32688         package as 'From_With_Type'; this mark indicates that the limited view
32689         is installed. Used to check bad usages of limited with_clauses.
32690         (Build_Limited_Views): Do not add shadow entities to the scope's list
32691         of entities. Do not add real entities to the Non_Limited_Views chain.
32692         Improve error notification.
32693         (Remove_Context_Clauses): Remove context clauses in two phases:
32694         limited views first and regular views later (to maintain the
32695         stack model).
32696         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
32697         its visible entities.
32698
32699 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
32700
32701         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
32702         with any type that Is_Fixed_Point_Type.
32703
32704         * sinfo.ads: Fix documentation for Associated_Node attribute.
32705
32706 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
32707
32708         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
32709         both '-gnatc' and '-gnatt' are specified.
32710
32711         * atree.adb (Initialize): Add initialization for Node_Count (set to
32712         zero).
32713
32714 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32715
32716         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
32717         do not consider as Pure.
32718
32719         Part of implementation of function-at-a-time:
32720
32721         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
32722         (tree_transform): Add new argument to build_component_ref.
32723         (tree_transform, case N_Assignment_Statement): Make and return an
32724         EXPR_STMT.
32725         (tree_transform): If result IS_STMT, set flags and return it.
32726         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
32727
32728         * utils2.c (build_simple_component_ref, build_component_ref): Add new
32729         arg, NO_FOLD_P.
32730         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
32731         (build_allocator): Likewise.
32732
32733         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
32734         Add new arg to build_component_ref.
32735         (maybe_unconstrained_array, unchecked_convert): Likewise.
32736
32737         * ada-tree.def (EXPR_STMT): New code.
32738
32739         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
32740
32741         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
32742         build_component_ref calls.
32743
32744         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
32745
32746         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
32747         (build_component_ref): Add new argument, NO_FOLD_P.
32748
32749 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
32750
32751         * Makefile.generic: Add missing substitution on object_deps handling.
32752
32753         PR ada/5909
32754         * Make-lang.in (check-ada): Enable ACATS test suite.
32755
32756 2003-10-27  Robert Dewar  <dewar@gnat.com>
32757
32758         * exp_ch3.adb:
32759         (Freeze_Array_Type): We do not need an initialization routine for types
32760         derived from String or Wide_String. They should be treated the same
32761         as String and Wide_String themselves. This caused problems with the
32762         use of Initialize_Scalars.
32763
32764         * exp_ch5.adb:
32765         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
32766         composites. This allows use of component clauses that are not byte
32767         aligned.
32768
32769         * sem_prag.adb:
32770         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
32771         is an attempt to pack an array of atomic objects.
32772
32773         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
32774
32775 2003-10-27  Pascal Obry  <obry@gnat.com>
32776
32777         * g-dirope.adb:
32778         (Basename): Check for drive letters in a pathname only on DOS based OS.
32779
32780 2003-10-27  Vincent Celier  <celier@gnat.com>
32781
32782         * make.adb:
32783         (Gnatmake): When unable to change dir to the object dir, display the
32784         content of the parent dir of the obj dir, to try to understand why this
32785         happens.
32786
32787 2003-10-27  GNAT Script  <nobody@gnat.com>
32788
32789         * Make-lang.in: Makefile automatically updated
32790
32791 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
32792
32793         * sem_ch12.adb:
32794         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
32795         should not be done in Save/Restore_Scope_Stack, because it is performed
32796         locally.
32797
32798         * sem_ch8.adb:
32799         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
32800         whether use clauses should be removed/restored.
32801
32802         * sem_ch8.ads:
32803         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
32804         whether use clauses should be removed/restored.
32805
32806 2003-10-26  Andreas Jaeger  <aj@suse.de>
32807
32808         * Makefile.in: Remove duplicated lines.
32809
32810 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
32811
32812         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
32813         minimize the differences with ACT tree.
32814
32815         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
32816         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
32817         Gnatvsn.Gnat_Static_Version_String to reduce differences between
32818         ACT and FSF trees.
32819
32820 2003-10-24  Pascal Obry  <obry@gnat.com>
32821
32822         PR ada/12014
32823         * adadecode.c (ostrcpy): New function.
32824         (__gnat_decode): Use ostrcpy of strcpy.
32825         (has_prefix): Set first parameter a const.
32826         (has_suffix): Set first parameter a const.
32827         Update copyright notice. Fix source name in header.
32828         Removes a trailing space.
32829
32830 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
32831
32832         * exp_disp.adb:
32833         Remove the test against being in No_Run_Time_Mode before generating a
32834         call to Register_Tag. It is redundant with the test against the
32835         availability of the function Register_Tag.
32836
32837 2003-10-24  Vincent Celier  <celier@gnat.com>
32838
32839         * g-catiio.adb: (Month_Name): Correct spelling of February
32840
32841         * make.adb: (Mains): New package
32842         (Initialize): Call Mains.Delete
32843         (Gnatmake): Check that each main on the command line is a source of a
32844         project file and, if there are several mains, each of them is a source
32845         of the same project file.
32846         (Gnatmake): When a foreign language is specified in attribute Languages,
32847         no main is specified on the command line and attribute Mains is not
32848         empty, only build the Ada main. If there is no Ada main, just compile
32849         the Ada sources and their closure.
32850         (Gnatmake): If a main is specified on the command line with directory
32851         information, check that the source exists and, if it does, that the path
32852         is the actual path of a source of a project.
32853
32854         * prj-env.adb:
32855         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
32856         Full_Path is True, return the full path instead of the simple file name.
32857         (Project_Of): New function
32858
32859         * prj-env.ads:
32860         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
32861         defaulted to False.
32862         (Project_Of): New function
32863
32864 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
32865
32866         * Makefile.generic:
32867         Ensure objects of main project are always checked and rebuilt if needed.
32868         Set CC to gcc by default.
32869         Prepare new handling of link by creating a global archive (not activated
32870         yet).
32871
32872         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32873         stringt.h: Update copyright notice. Remove trailing blanks.
32874         Fix source name in header.
32875
32876 2003-10-24  Robert Dewar  <dewar@gnat.com>
32877
32878         * sem_ch12.adb: Minor reformatting
32879
32880         * sem_ch3.adb:
32881         Minor reformatting (including new function return style throughout)
32882
32883         * sem_ch3.ads:
32884         Minor reformatting (including new function return style throughout)
32885
32886 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
32887
32888         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
32889         stringt.h: Update copyright notice. Remove trailing blanks.
32890         Fix source name in header.
32891
32892 2003-10-24  GNAT Script  <nobody@gnat.com>
32893
32894         * Make-lang.in: Makefile automatically updated
32895
32896 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
32897
32898         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
32899         stringt.h: Convert to ISO C90 declarations and definitions.
32900
32901 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
32902
32903         PR ada/11978
32904         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
32905         External_Tag attribute definition clauses.
32906
32907 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
32908
32909         PR ada/7613
32910         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
32911         child unit, generate a fully qualified name to avoid spurious errors
32912         when the context contains renamings of different child units with
32913         the same simple name.
32914
32915         * exp_dbug.ads: Add documentation on name qualification for renamings
32916         of child units.
32917
32918 2003-10-23  Robert Dewar  <dewar@gnat.com>
32919
32920         * g-regpat.ads, g-regpat.adb: Minor reformatting
32921
32922 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
32923
32924         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
32925
32926 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32927
32928         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
32929         Machine call.
32930
32931         * urealp.h: (Machine): Update to proper definition.
32932
32933 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
32934
32935         * init.c, adaint.c: Minor reformatting.
32936
32937 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
32938
32939         * adaint.c (w32_epoch_offset): Define static const at file level.
32940         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
32941         rather than t_create, t_access in call to GetFileTime. Use union
32942         to convert between FILETIME and  unsigned long long.
32943         (__gnat_file_time_name): Test for invalid file handle.
32944         (__gnat_set_filetime_name): Support win32 targets using
32945         w32api SetFileTime.
32946
32947 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
32948
32949         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
32950
32951         * ctrl_c.c (__gnat_int_handler): Remove declaration.
32952
32953         * decl.c (creat_concat_name):  Const-ify prefix.
32954
32955         * adaint.c: Include ctype.h if __MINGW32__.
32956         (__gnat_readlink): Mark arguments as possibly unused.
32957         (__gnat_symlink): Likewise.
32958         (__gnat_is_symbolic_link): Likewise.
32959         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
32960         declaration
32961         (__gnat_file_time_name): Don't declare struct stat statbuf when
32962         not needed.
32963         (__gnat_is_absolute_path): Add parenthesis around condition of
32964         'if' statement to avoid warning.
32965         (__gnat_plist_init): Specify void as parameter.
32966         (plist_enter): Likewise.
32967         (plist_leave): Likewise.
32968         (remove_handle): Make static. Initialize prev.
32969
32970 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
32971
32972         PR ada/10110
32973         * Makefile.in: Disable build of gnatpsta.
32974         * cstreams.c (__gnat_full_name): Minor improvements and clean up
32975         of previous change.
32976
32977 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32978
32979         * tracebak.c (MAX): Avoid redefinition warning.
32980
32981         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
32982         Change msg to const char *.
32983         (__gnat_install_handler): Remove ss, unused.
32984         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
32985         to const char *.
32986         * cstreams.c (__gnat_full_name): Declare p only when used.
32987         (__gnat_full_name) [sgi] Return buffer.
32988
32989 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
32990
32991         * mingw32.h: New file.
32992         * gnat_wrapper.adb: New file.
32993
32994 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
32995
32996         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
32997         string match a pre compiled regular expression (the corresponding
32998         version of the function working on a raw regular expression)
32999         Fix typos in various comments
33000         Update copyright notice in spec
33001
33002 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
33003
33004         * exp_ch3.adb:
33005         (Component_Needs_Simple_Initialization): Return False when the type is a
33006         packed bit array. Revise spec comments to document this case.
33007
33008         * exp_prag.adb:
33009         (Expand_Pragma_Import): Set any expression on the imported object to
33010         empty to avoid initializing imported objects (in particular this
33011         covers the case of zero-initialization of bit arrays).
33012         Update copyright notice.
33013
33014 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
33015
33016         * sem_ch12.adb:
33017         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
33018         a subunit is missing.
33019         (Instantiate_Subprogram_Body): If body of function is missing, set type
33020         of return expression explicitly in dummy body, to prevent cascaded
33021         errors when a subunit is missing.
33022         Fixes PR 5677.
33023
33024         * sem_ch3.adb:
33025         (Access_Subprogram_Declaration): Verify that return type is valid.
33026         Fixes PR 8693.
33027
33028         * sem_elab.adb:
33029         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
33030         generic.
33031         Fixes PR 12318.
33032
33033         * sem_util.adb:
33034         (Corresponding_Discriminant): If the scope of the discriminant is a
33035         private type without discriminant, use its full view.
33036         Fixes PR 8247.
33037
33038 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
33039
33040         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
33041         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
33042         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
33043         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
33044         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
33045         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
33046         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
33047         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
33048         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
33049         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
33050         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
33051         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
33052         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
33053         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
33054         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
33055         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
33056         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
33057         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
33058         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
33059         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
33060         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
33061         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
33062         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
33063         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
33064         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
33065         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
33066         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
33067         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
33068         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
33069         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
33070         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
33071         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
33072         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
33073         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
33074         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
33075         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
33076         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
33077         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
33078         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
33079         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
33080         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
33081         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
33082         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
33083         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
33084         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
33085         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
33086         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
33087         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
33088         vms_conv.ads, vms_conv.adb, vms_data.ads,
33089         vxaddr2line.adb: Files added. Merge with ACT tree.
33090
33091         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
33092         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
33093         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
33094         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
33095         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
33096         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
33097         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
33098         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
33099         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
33100         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
33101
33102         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
33103         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
33104         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
33105         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
33106         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
33107         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
33108         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
33109         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
33110         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
33111         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
33112         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33113         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
33114         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
33115         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33116         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
33117         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
33118         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
33119         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
33120         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
33121         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
33122         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
33123         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33124         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33125         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33126         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
33127         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
33128         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
33129         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33130         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
33131         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33132         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33133         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
33134         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
33135         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
33136         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
33137         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
33138         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
33139         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
33140         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
33141         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
33142         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
33143         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
33144         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
33145         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
33146         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
33147         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
33148         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
33149         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
33150         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
33151         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
33152         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
33153         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
33154         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
33155         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
33156         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
33157         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
33158         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
33159         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
33160         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
33161         checks.adb, checks.ads, cio.c, comperr.adb,
33162         comperr.ads, csets.adb, cstand.adb, cstreams.c,
33163         debug_a.adb, debug_a.ads, debug.adb, decl.c,
33164         einfo.adb, einfo.ads, errout.adb, errout.ads,
33165         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
33166         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
33167         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
33168         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
33169         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
33170         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
33171         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
33172         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
33173         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
33174         fe.h, fmap.adb, fmap.ads, fname.adb,
33175         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
33176         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
33177         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
33178         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
33179         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
33180         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
33181         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
33182         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
33183         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
33184         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
33185         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
33186         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
33187         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
33188         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
33189         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
33190         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
33191         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
33192         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
33193         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
33194         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
33195         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
33196         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
33197         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
33198         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
33199         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
33200         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
33201         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
33202         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
33203         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
33204         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
33205         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
33206         layout.adb, lib.adb, lib.ads, lib-list.adb,
33207         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
33208         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
33209         link.c, live.adb, make.adb, make.ads,
33210         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
33211         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
33212         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
33213         misc.c, mkdir.c, mlib.adb, mlib.ads,
33214         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
33215         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
33216         namet.adb, namet.ads, namet.h, nlists.ads,
33217         nlists.h, nmake.adt, opt.adb, opt.ads,
33218         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
33219         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
33220         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
33221         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
33222         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
33223         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
33224         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
33225         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
33226         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
33227         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
33228         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
33229         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
33230         prj-util.adb, prj-util.ads, raise.c, raise.h,
33231         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
33232         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
33233         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
33234         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
33235         scans.ads, scn.adb, scn.ads, s-crc32.adb,
33236         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
33237         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
33238         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
33239         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
33240         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
33241         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
33242         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
33243         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
33244         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
33245         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
33246         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
33247         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
33248         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
33249         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
33250         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
33251         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
33252         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
33253         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
33254         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
33255         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
33256         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
33257         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
33258         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
33259         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
33260         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
33261         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
33262         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
33263         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
33264         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
33265         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
33266         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
33267         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
33268         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
33269         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
33270         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
33271         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
33272         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
33273         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33274         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33275         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
33276         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
33277         stringt.adb, stringt.ads, stringt.h, style.ads,
33278         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
33279         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
33280         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
33281         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
33282         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
33283         table.adb, table.ads, targparm.adb, targparm.ads,
33284         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
33285         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
33286         ttypes.ads, types.ads, types.h, uintp.adb,
33287         uintp.ads, uintp.h, uname.adb, urealp.adb,
33288         urealp.ads, urealp.h, usage.adb, utils2.c,
33289         utils.c, validsw.adb, validsw.ads, widechar.adb,
33290         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
33291         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
33292         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
33293         gnatvsn.ads: Merge with ACT tree.
33294
33295         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
33296
33297 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
33298
33299         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
33300         (gnat_ug_vmx.info): Likewise.
33301         (gnat_ug_vxw.info): Likewise.
33302         (gnat_ug_wnt.info): Likewise.
33303         (gnat_rm.info): Likewise.
33304         (gnat-style.info): Likewise.
33305
33306         * Make-lang.in (ada.install-info): Remove target.
33307         (info): New target.
33308         (install-info): Likewise.
33309         (gnat_ug_unx.info): Simplify rule.
33310         (gnat_ug_vmx.info): Likewise.
33311         (gnat_ug_vxw.info): Likewise.
33312         (gnat_ug_wnt.info): Likewise.
33313         (gnat_rm.info): Likewise.
33314         (gnat-style.info): Likewise.
33315
33316 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
33317
33318         * Make-lang.in: Replace uses of $(target_alias) with
33319         $(target_noncanonical).
33320         * ada/Makefile.in: Remove unused mention of $(target_alias).
33321
33322 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
33323
33324         * Make-lang.in (ada.info): Replace with ...
33325         (info): ... this.
33326         (ada.dvi): Replace with ...
33327         (dvi): ... this.
33328
33329 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
33330
33331         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
33332         initialize dconstp5 and dconstmp5.
33333
33334 2003-09-28  Richard Henderson  <rth@redhat.com>
33335
33336         * trans.c (tree_transform): Update call to expand_asm_operands.
33337
33338 2003-09-21  Richard Henderson  <rth@redhat.com>
33339
33340         * trans.c, utils.c: Revert.
33341
33342 2003-09-21  Richard Henderson  <rth@redhat.com>
33343
33344         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
33345         change to const.
33346
33347 2003-09-04  Michael Matz  <matz@suse.de>
33348
33349         * misc.c: Include "target.h".
33350         * Make-lang.in (misc.o): Add dependency on target.h.
33351
33352 2003-09-03  DJ Delorie  <dj@redhat.com>
33353
33354         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
33355         hook.
33356
33357 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
33358
33359         * Makefile.in: Update substitutions to match changes to
33360         configure.  Use include directives instead of @-insertions
33361         to read in host and target fragments.  Add a rule to
33362         regenerate ada/Makefile.
33363
33364 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
33365
33366         * lang-options.h: Remove.
33367         * lang.opt: Add help text.
33368
33369 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
33370
33371         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
33372         calls.
33373
33374 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
33375
33376         * misc.c (gnat_handle_option): Don't handle filenames.
33377
33378 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
33379
33380         * Make-lang.in: Replace PWD with PWD_COMMAND.
33381         * Makefile.adalib: Likewise.
33382         * Makefile.in: Likewise.
33383
33384 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
33385
33386         * misc.c (gnat_argv): Revert last change.
33387         (gnat_handle_option, gnat_init_options): Copy arguments.
33388
33389 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
33390
33391         * misc.c (gnat_argv): Make const.
33392
33393 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
33394
33395         * misc.c (save_argc, save_argv): Keep non-static!
33396
33397 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
33398
33399         * misc.c (save_argc, save_argv): Make static.
33400         (gnat_init_options): New prototype.
33401         (gnat_init_options): Update.
33402
33403 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
33404
33405         * gnat_ug.texi: Remove unlikely characters from @vars.
33406         * gnat_ug_vms.texi: Regenerate.
33407
33408 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
33409
33410         * misc.c (record_code_position): Adjust emit_note call.
33411
33412 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
33413
33414         * misc.c (gnat_handle_option): Don't check for missing arguments.
33415
33416 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
33417
33418         * utils.c (end_subprog_body): Adjust expand_function_end call.
33419
33420 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
33421
33422         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
33423         Bind_Main_Program.
33424
33425 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
33426
33427         * lang.opt: Declare Ada.
33428         * misc.c (gnat_init_options): Update.
33429
33430 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
33431
33432         * utils.c (begin_subprog_body): Adjust init_function_start call.
33433
33434 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
33435
33436         * Make-lang.in: Update to use options.c and options.h.
33437         * misc.c: Include options.h not aoptions.h.
33438         (gnat_handle_option): Abort on unrecognized switch.
33439         (gnat_init_options): Request Ada switches.
33440
33441 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
33442
33443         * lang.opt: Add -Wall.
33444         * misc.c (gnat_handle_option): Handle it.
33445
33446 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
33447
33448         * misc.c (gnat_handle_option): Fix warnings.
33449
33450 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
33451
33452         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
33453
33454 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
33455
33456         * Make-lang.in: Update to handle command-line options.
33457         * lang.opt: New file.
33458         * misc.c: Include aoptions.h.
33459         (cl_options_count, cl_options): Remove.
33460         (gnat_handle_option): New.
33461         (gnat_decode_option): Remove.
33462         (LANG_HOOKS_DECODE_OPTION): Remove.
33463         (LANG_HOOKS_HANDLE_OPTION): Override.
33464
33465 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
33466
33467         * init.c, misc.c, trans.c, utils.c: Remove dead code.
33468
33469 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
33470
33471         * Makefile.in: Replace "host_canonical" with "host" for autoconf
33472         substitution.
33473
33474 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
33475
33476         * Make-lang.in: Update.
33477         * misc.c: Include opts.h. Define cl_options_count and cl_options.
33478
33479 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
33480
33481         * misc.c (gnat_init_options): Update.
33482
33483 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
33484
33485         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
33486         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
33487         __attribute__ ((__unused__)).
33488
33489 2003-06-05  Jan Hubicka  <jh@suse.cz>
33490
33491         * Make-lang.in:  Add support for stageprofile and stagefeedback
33492
33493 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
33494
33495         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
33496         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
33497
33498 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
33499
33500         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
33501         Remove non-VMS directive.
33502         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
33503         alternatives.
33504         (Examples of gnatls Usage): Remove VMS alternative.
33505
33506 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
33507
33508         PR ada/9953
33509         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
33510         and turn ZCX_By_Default back to False since the underlying support
33511         is not quite there yet.
33512
33513 2003-06-01  Andreas Jaeger  <aj@suse.de>
33514
33515         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
33516         and ROUND_TYPE_SIZE_UNIT.
33517
33518 2003-05-22   Geert Bosch  <bosch@gnat.com>
33519
33520         * gnat_rm.texi : Remove reference to Ada Core Technologies.
33521
33522 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
33523
33524         * trans.c (tree_transform): Use location_t and input_location
33525         directly.
33526         (build_unit_elab): Likewise.
33527         * utils.c (create_label_decl): Likewise.
33528
33529 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
33530
33531         * trans.c (tree_transform, build_unit_elab,
33532         set_lineno): Rename lineno to input_line.
33533         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
33534         end_subprog_body): Likewise.
33535         * utils2.c (build_call_raise): Likewise.
33536
33537 2003-05-01  Laurent Guerby  <guerby@acm.org>
33538
33539         PR ada/10546
33540         * 5iosinte.ads: Increase pthread_cond_t size to match recent
33541         LinuxThread and NPTL version, merge from ACT.
33542
33543 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
33544
33545         * utils.c (convert): No need to clear TREE_CST_RTL.
33546
33547 2003-04-23   Geert Bosch  <bosch@gnat.com>
33548
33549         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
33550         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
33551         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
33552         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
33553         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
33554         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
33555         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
33556         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
33557         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
33558         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
33559         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
33560         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
33561         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
33562         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
33563         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
33564         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
33565         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
33566         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
33567         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
33568         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33569         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33570         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
33571         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
33572         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
33573         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
33574         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
33575         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
33576         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
33577         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
33578         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
33579         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
33580         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
33581         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
33582         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
33583         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
33584         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
33585         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
33586         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
33587         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
33588         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
33589         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
33590         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
33591         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
33592         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
33593         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
33594         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
33595         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
33596         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
33597         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
33598         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
33599         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
33600         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
33601         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
33602         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
33603         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
33604         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
33605         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
33606         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
33607         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
33608         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
33609         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
33610         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
33611         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
33612         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
33613         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
33614         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
33615         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
33616         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
33617         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
33618         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
33619         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
33620         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
33621         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
33622         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
33623         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
33624         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
33625         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
33626         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
33627         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
33628         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
33629         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
33630         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
33631         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
33632         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
33633         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
33634         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
33635         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
33636         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
33637         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
33638         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
33639         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
33640         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
33641         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
33642         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
33643         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
33644         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
33645         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
33646         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
33647         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
33648         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
33649         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
33650         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
33651         ali.adb, ali.ads, alloc.ads, argv.c,
33652         atree.adb, atree.ads, atree.h, aux-io.c,
33653         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
33654         binde.adb, binde.ads, binderr.adb, binderr.ads,
33655         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
33656         butil.adb, butil.ads, cal.c, calendar.ads,
33657         casing.adb, casing.ads, ceinfo.adb, checks.adb,
33658         checks.ads, cio.c, comperr.adb, comperr.ads,
33659         config-lang.in, csets.adb, csets.ads, csinfo.adb,
33660         cstand.adb, cstand.ads, cuintp.c, debug.adb,
33661         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
33662         dec-io.ads, dec.ads, deftarg.c, directio.ads,
33663         einfo.adb, einfo.ads, elists.adb, elists.ads,
33664         elists.h, errno.c, errout.adb, errout.ads,
33665         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
33666         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
33667         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
33668         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
33669         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
33670         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
33671         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
33672         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
33673         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
33674         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
33675         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
33676         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
33677         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
33678         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
33679         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
33680         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
33681         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
33682         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
33683         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
33684         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
33685         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
33686         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
33687         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
33688         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
33689         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
33690         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
33691         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
33692         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
33693         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
33694         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
33695         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
33696         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
33697         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
33698         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
33699         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
33700         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
33701         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
33702         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
33703         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
33704         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
33705         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
33706         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
33707         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
33708         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
33709         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
33710         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
33711         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
33712         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
33713         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
33714         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
33715         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
33716         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
33717         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
33718         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
33719         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
33720         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
33721         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
33722         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
33723         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
33724         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
33725         lib.adb, lib.ads, live.adb, live.ads,
33726         machcode.ads, make.adb, make.ads, makeusg.adb,
33727         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
33728         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
33729         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
33730         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
33731         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
33732         mlib.ads, namet.adb, namet.ads, nlists.adb,
33733         nlists.ads, opt.adb, opt.ads, osint-b.adb,
33734         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
33735         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
33736         osint.ads, output.adb, output.ads, par-ch10.adb,
33737         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
33738         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
33739         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
33740         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
33741         par-tchk.adb, par-util.adb, par.adb, par.ads,
33742         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
33743         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
33744         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
33745         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
33746         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
33747         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
33748         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
33749         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
33750         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
33751         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
33752         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
33753         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
33754         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
33755         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
33756         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
33757         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
33758         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
33759         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
33760         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
33761         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
33762         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
33763         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
33764         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
33765         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
33766         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
33767         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
33768         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
33769         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
33770         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
33771         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
33772         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
33773         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
33774         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
33775         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
33776         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
33777         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
33778         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
33779         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
33780         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
33781         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
33782         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
33783         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
33784         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
33785         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
33786         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
33787         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
33788         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
33789         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
33790         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
33791         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
33792         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
33793         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
33794         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
33795         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
33796         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
33797         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
33798         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
33799         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
33800         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
33801         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
33802         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
33803         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
33804         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
33805         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
33806         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
33807         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
33808         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
33809         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
33810         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
33811         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
33812         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
33813         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
33814         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
33815         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
33816         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
33817         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
33818         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
33819         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
33820         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
33821         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33822         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
33823         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
33824         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
33825         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
33826         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
33827         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
33828         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
33829         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
33830         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
33831         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
33832         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
33833         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
33834         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
33835         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
33836         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
33837         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
33838         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
33839         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
33840         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
33841         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
33842         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
33843         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
33844         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
33845         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
33846         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
33847         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
33848         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
33849         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
33850         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
33851         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
33852         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
33853         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
33854         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
33855         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
33856         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
33857         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
33858         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
33859         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
33860         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
33861         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
33862         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
33863         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
33864         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
33865         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
33866         snames.ads, sprint.adb, sprint.ads, stand.adb,
33867         stand.ads, stringt.adb, stringt.ads, style.adb,
33868         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
33869         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
33870         switch-m.ads, switch.adb, switch.ads, system.ads,
33871         table.adb, table.ads, targparm.adb, targparm.ads,
33872         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
33873         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
33874         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
33875         ttypef.ads, ttypes.ads, types.adb, types.ads,
33876         uintp.adb, uintp.ads, uname.adb, uname.ads,
33877         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
33878         usage.adb, usage.ads, validsw.adb, validsw.ads,
33879         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
33880         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
33881         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
33882         formatting and other trivial changes from ACT.
33883
33884 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
33885
33886         * gigi.h, utils2.c (build_constructor):
33887         Rename gnat_build_constructor. Use build_constructor.
33888         * decl.c (gnat_to_gnu_entity)
33889         * trans.c (tree_transform, pos_to_constructor, extract_values)
33890         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
33891         (unchecked_convert)
33892         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
33893         (fill_vms_descriptor):
33894         Update to match.
33895
33896 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
33897
33898         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
33899         * misc.c (gnat_tree_size): New function.
33900         (LANG_HOOKS_TREE_SIZE): Override.
33901
33902 2003-04-03  Jason Merrill  <jason@redhat.com>
33903
33904         * misc.c (gnat_adjust_rli): #if 0.
33905
33906 2003-03-31   Geert Bosch  <bosch@gnat.com>
33907
33908         PR ada/10020
33909         * link.c : Fix misspelled "const" keyword
33910
33911 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
33912
33913         PR c++/7086
33914         * utils2.c: Adjust calls to put_var_into_stack.
33915
33916 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
33917
33918         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
33919
33920 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
33921
33922         * misc.c (gnat_init): Update for new prototype.
33923
33924 2003-03-05  Olivier Hainque  <hainque@gnat.com>
33925
33926         ada/9961
33927         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
33928         warning, and fix return type for the IN_RTS && !SJLJ case.
33929
33930 2003-03-04  Tom Tromey  <tromey@redhat.com>
33931
33932         * Make-lang.in (ada.tags): New target.
33933
33934 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
33935
33936         ada/9911
33937         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
33938         wrapper, which name remains constant whatever underlying GCC
33939         scheme.
33940
33941         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
33942         the stable interface needed for a-except.
33943
33944 2003-03-02  Andreas Jaeger  <aj@suse.de>
33945
33946         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33947         gnat_ug_wnt.texi: Regenerate.
33948
33949 2003-03-02  Laurent Guerby  <guerby@acm.org>
33950
33951         * Makefile.in (install-gnatlib): Match previous change there
33952         so it works.
33953
33954 2003-02-28  Andreas Schwab  <schwab@suse.de>
33955
33956         * Make-lang.in (install-gnatlib): Change to ada directory before
33957         running make instead of using ada/Makefile directly.
33958
33959 2003-02-18  Ben Elliston  <bje@redhat.com>
33960
33961         Part of PR ada/9406
33962         * gnat_ug.texi (Binder output file): Grammar fix.
33963
33964 2003-02-18  Ben Elliston  <bje@redhat.com>
33965
33966         PR other/7350
33967         * 5qtaprop.adb (Sleep): Fix typo in comment.
33968
33969 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
33970
33971         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
33972         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33973         gnat_ug_wnt.texi: Regenerate.
33974
33975 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
33976
33977         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
33978         be created if necessary.
33979         (ada.install-common): Let $(DESTDIR)$(bindir) be created
33980         if necessary.  Remove erroneous and redundant gnatchop
33981         installation commands.  Test for gnatdll before attempting
33982         to install it.
33983         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
33984         and gnatdll from all plausible locations.
33985
33986 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
33987
33988         * utils2.c (build_unary_op): Don't check flag_volatile.
33989         * gnat_ug.texi: Remove -fvolatile from example.
33990         * gnat_ug_vxw.texi: Likewise.
33991
33992 2003-01-29  Laurent Guerby  <guerby@acm.org>
33993
33994         PR ada/8344
33995         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
33996         * Makefile.in: match previous change.
33997         * Make-lang.in: match previous change.
33998
33999 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
34000
34001         * 5rosinte.ads: Add SIGXCPU.
34002         * 5rtpopsp.adb: New file.
34003         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
34004         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
34005         specific file 5rtpopsp.adb.
34006         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
34007         is likely needed for all newlib targets.
34008         * init.c: Add RTEMS specific version of __gnat_initialize().
34009
34010 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34011
34012         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
34013
34014 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34015
34016         * init.c (__gnat_error_handler): Make msg const.
34017
34018         * gmem.c (convert_addresses): Move declaration ...
34019         * adaint.h: ... here.
34020         * adaint.c (convert_addresses): Adapt addrs type to match
34021         prototype.
34022
34023         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
34024
34025 2003-01-24  Andreas Schwab  <schwab@suse.de>
34026
34027         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
34028         size_t to avoid warning.
34029
34030 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
34031
34032         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
34033
34034 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
34035
34036         * gnat_rm.texi: Remove RCS version number.
34037
34038         * ada-tree.h (union lang_tree_node): Add chain_next option.
34039
34040 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
34041
34042         * Make-lang.in (ada.install-info, ada.install-common,
34043         ada.uninstall): Prepend $(DESTDIR) to the destination
34044         directory in all (un)installation commands.
34045         * Makefile.in (install-gnatlib, install-rts): Ditto.
34046
34047 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
34048
34049         * gnat_rm.texi, gnat_ug.texi: Use @copying.
34050         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34051         gnat_ug_wnt.texi: Regenerate.
34052
34053 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
34054
34055         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
34056         only.
34057         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
34058         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
34059         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
34060         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
34061         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
34062         $(srcdir)/doc/include/gcc-common.texi.
34063
34064 2002-12-15   Geert Bosch  <bosch@gnat.com>
34065
34066         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
34067
34068 2002-12-14   Geert Bosch  <bosch@gnat.com>
34069
34070         PR ada/5690
34071         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
34072         case of a body created for a Renaming_As_Body, on which
34073         conformance checks are not performed.
34074
34075 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
34076
34077         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
34078         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
34079         not already included.
34080         * Make-lang.in: Update dependencies.
34081
34082 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
34083         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
34084         solution to buffer overflow bug on GNU/Linux.
34085
34086 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
34087
34088         PR ada/5856
34089         PR ada/6919
34090         * bindgen.adb: Remove all references to Public_Version.
34091         * comperr.adb: Remove all references to Public_Version and
34092         GNATPRO_Version; correct bug reporting instructions.
34093         * comperr.ads: Change to match bug box.
34094         * gnatvsn.ads: Remove all references to Public version and
34095         GNATPRO version.
34096
34097 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
34098
34099         PR ada/6919
34100         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
34101         GNU/Linux.
34102
34103         PR ada/6558
34104         * config-lang.in: Remove diff_excludes.
34105
34106 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
34107
34108         PR ada/8358
34109         * trans.c (gnu_pending_elaboration_lists): New GC root.
34110         (build_unit_elab): Use..
34111
34112 2002-10-30   Geert Bosch  <bosch@gnat.com>
34113
34114         PR ada/6558
34115         * misc.c : Include optabs.h
34116
34117         * Make-lang.in (misc.o): Add dependency on optabs.h
34118
34119 2002-10-29   Geert Bosch  <bosch@gnat.com>
34120
34121         PR ada/6558
34122         * Make-lang.in (gnatbind): Depend on CONFIG_H
34123
34124 2002-10-29  Geert bosch  <bosch@gnat.com>
34125
34126         PR ada/6558
34127         * misc.c: Unrevert misc.c (1.13)
34128
34129 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
34130
34131         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
34132         maintainership comments.
34133
34134 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
34135
34136         PR ada/5904
34137         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
34138         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
34139         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
34140         7staprop.adb: Correct statements in comments about
34141         maintainership of GNAT.
34142
34143         PR ada/5904
34144         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
34145         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
34146         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
34147         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
34148         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
34149         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
34150         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
34151         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
34152         comments about maintainership of GNAT.
34153
34154         PR ada/6919 (forward port of patch for PR ada/5904)
34155         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
34156         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
34157         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
34158         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
34159         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
34160         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
34161         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
34162         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
34163         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
34164         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
34165         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
34166         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
34167         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
34168         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
34169         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
34170         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
34171         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
34172         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
34173         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
34174         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
34175         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
34176         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
34177         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
34178         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
34179         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
34180         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
34181         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
34182         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
34183         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
34184         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
34185         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
34186         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
34187         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
34188         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
34189         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
34190         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
34191         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
34192         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
34193         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
34194         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
34195         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
34196         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
34197         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
34198         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
34199         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
34200         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
34201         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
34202         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
34203         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
34204         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
34205         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
34206         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
34207         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
34208         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
34209         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
34210         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
34211         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
34212         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
34213         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
34214         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
34215         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
34216         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
34217         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
34218         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
34219         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
34220         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
34221         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
34222         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
34223         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
34224         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
34225         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
34226         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
34227         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
34228         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
34229         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
34230         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
34231         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
34232         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
34233         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
34234         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
34235         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
34236         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
34237         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
34238         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
34239         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
34240         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
34241         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
34242         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
34243         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
34244         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
34245         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
34246         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
34247         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
34248         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
34249         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
34250         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
34251         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
34252         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
34253         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
34254         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
34255         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
34256         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
34257         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
34258         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
34259         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
34260         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
34261         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
34262         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
34263         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
34264         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
34265         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
34266         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
34267         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
34268         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
34269         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
34270         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
34271         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
34272         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
34273         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
34274         par-endh.adb par-labl.adb par-load.adb par-prag.adb
34275         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
34276         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
34277         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
34278         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
34279         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
34280         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
34281         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
34282         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
34283         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
34284         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
34285         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
34286         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
34287         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
34288         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
34289         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
34290         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
34291         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
34292         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
34293         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
34294         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
34295         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
34296         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
34297         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
34298         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
34299         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
34300         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
34301         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
34302         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
34303         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
34304         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
34305         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
34306         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
34307         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
34308         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
34309         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
34310         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
34311         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
34312         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
34313         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
34314         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
34315         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
34316         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
34317         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
34318         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
34319         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
34320         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
34321         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
34322         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
34323         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
34324         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
34325         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
34326         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
34327         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
34328         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
34329         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
34330         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
34331         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
34332         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
34333         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
34334         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
34335         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
34336         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
34337         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
34338         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
34339         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
34340         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
34341         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
34342         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
34343         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
34344         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
34345         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
34346         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
34347         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
34348         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
34349         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
34350         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
34351         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
34352         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
34353         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
34354         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
34355         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
34356         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
34357         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
34358         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
34359         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
34360         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
34361         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
34362         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
34363         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
34364         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
34365         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
34366         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
34367         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
34368         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
34369         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
34370         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
34371         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
34372         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
34373         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
34374         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
34375         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
34376         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
34377         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
34378         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
34379         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
34380         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
34381         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
34382         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
34383         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
34384         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
34385         stringt.ads stringt.h style.adb style.ads stylesw.adb
34386         stylesw.ads switch.adb switch.ads sysdep.c system.ads
34387         table.adb table.ads targparm.adb targparm.ads targtyps.c
34388         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
34389         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
34390         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
34391         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
34392         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
34393         usage.ads utils.c utils2.c validsw.adb validsw.ads
34394         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
34395         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
34396         xtreeprs.adb: Correct statements in comments about maintainership
34397         of GNAT.
34398
34399 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
34400
34401         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
34402         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
34403         * gnatvsn.ads: Gnat_Version_String is now a function.
34404         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
34405         copy the C version_string into a String and return it.
34406         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
34407         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
34408         Remove pragma Ident (Gnat_Version_String).  If this was the
34409         sole use of package Gnatvsn, remove the with statement too.
34410         * gnat1drv.adb: Tweak -gnatv output.
34411
34412 2002-09-17  Richard Henderson  <rth@redhat.com>
34413
34414         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
34415         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
34416         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
34417         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
34418         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
34419         and real_2expN instead of a loop.
34420         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
34421         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
34422
34423 2002-08-25  Andre Leis  <a.leis@gmx.net>
34424             David Billinghurst  <David.Billinghurst@riotinto.com>
34425
34426         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
34427
34428 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34429
34430         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
34431         Remove $(CONFIG_H) dependency.
34432
34433 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
34434
34435         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
34436
34437 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34438
34439         * adadecode.c (ada_demangle): Use xstrdup in lieu of
34440         xmalloc/strcpy.
34441         * misc.c (gnat_decode_option): Likewise.
34442
34443 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
34444
34445         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
34446         function approach did not work well because of a side effect (the
34447         function call could reallocate the table which was being indexed
34448         using its result). Fixes ada/4851. [RESURRECTED]
34449
34450 2002-07-01  Roger Sayle  <roger@eyesopen.com>
34451
34452         * ada/utils.c (builtin_function): Accept an additional parameter.
34453
34454 2002-06-28  Andreas Jaeger  <aj@suse.de>
34455
34456         PR ada/7144
34457         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
34458         <adi@thur.de>.
34459
34460 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34461
34462         * Makefile.in (SHELL): Set to @SHELL@.
34463
34464 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34465
34466         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
34467         array size calculation.
34468
34469 2002-06-04  Andreas Jaeger  <aj@suse.de>
34470
34471         * Make-lang.in (gnatbind): Readd rule that has been lost in last
34472         patch.
34473
34474 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
34475
34476         Merge from pch-branch:
34477
34478         * config-lang.in (gtfiles): Add ada-tree.h.
34479         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
34480         (SET_TYPE_MODULUS): New.
34481         (SET_TYPE_INDEX): New.
34482         (SET_TYPE_DIGITS_VALUE): New.
34483         (SET_TYPE_RM_SIZE): New.
34484         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
34485         (SET_TYPE_ADA_SIZE): New.
34486         (SET_TYPE_ACTUAL_BOUNDS): New.
34487         (SET_DECL_CONST_CORRESPONDING_VAR): New.
34488         (SET_DECL_ORIGINAL_FIELD): New.
34489         (TREE_LOOP_ID): Correct typo.
34490         * decl.c: Use new macros.
34491         * utils.c: Include debug.h, use new macros.
34492         * utils2.c: Use new macros.
34493
34494         * ada-tree.h: Update all macros for new tree description.
34495         (struct tree_loop_id): New.
34496         (union lang_tree_node): New.
34497         (struct lang_decl): New.
34498         (struct lang_type): New.
34499         * misc.c (gnat_mark_tree): Delete.
34500         (LANG_HOOKS_MARK_TREE): Delete.
34501         * trans.c (tree_transform): No longer any need to cast
34502         for TREE_LOOP_ID.
34503
34504         * utils.c (struct language_function): New dummy structure.
34505
34506         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
34507         (misc.o): Likewise.
34508         (utils.o): Likewise; also gtype-ada.h.
34509         * Make-lang.in (gnat1): Add dependency on s-gtype.
34510         (gnatbind): Add dependency on $(CONFIG_H).
34511         * utils.c: Correct last #include.
34512         (stuct e_stack): Remove unnecessary 'static'.
34513         (mark_e_stack): Remove unused prototype.
34514
34515         * scn-nlit.adb: Remove whitespace after version number to
34516         keep lines under 80 chars.
34517         * snames.adb: Likewise.
34518         * treepr.ads: Likewise.
34519
34520         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
34521         (misc.o): Likewise.
34522         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
34523         * config-lang.in (gtfiles): New.
34524         * decl.c: Use gengtype for roots.
34525         * gigi.h: Use gengtype for roots.
34526         * trans.c: Use gengtype for roots.
34527         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
34528
34529 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
34530
34531         * misc.c (gnat_init): Adjust setting of internal_error_function.
34532
34533 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
34534
34535         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
34536         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34537         gnat_ug_wnt.texi: Regenerate.
34538
34539 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
34540
34541         * 5ntaprop.adb (with System.OS_Primitives): Remove.
34542
34543         * cstreams.c (max_path_len): Move from here ...
34544         * adaint.c (__gnat_max_path_len): ... to here.
34545         * adaint.c (__gnat_max_path_len): Declare.
34546         * g-dirope.adb (Max_Path): Adjust.
34547         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
34548         * i-cstrea.ads (max_path_len): Adjust.
34549         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
34550         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
34551
34552         * Makefile.in, Make-lang.in: Documentation is now built in
34553         Make-lang.in.  Store Info and generated Texinfo files in the
34554         source directory.
34555         * gnat_ug.texi: Remove CVS keywords, correct version number.
34556         Set file name correctly.
34557
34558         * gnat_ug_*.texi: Add.
34559         * .cvsignore: Ignore generated Texinfo files.
34560
34561 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
34562
34563         * ada.h: Add MI guard macro.
34564         (SUBTYPE): Define constants with an anonymous enum, not static
34565         const variables.
34566         (IN): Cast constants to appropriate type before use.
34567
34568 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
34569
34570         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
34571         (experimental)".
34572
34573 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34574
34575         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
34576         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
34577         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
34578         (ALL_ADA_CFLAGS): Likewise.
34579         (ADA_INCLUDES): Likewise.
34580         Adapt for new working dir.
34581         (GNATBIND): Use Makefile.in version.
34582         (.SUFFIXES): Copy from Makefile.in.
34583         (ada-warn): Define.
34584         (.adb.o, .ads.o): Copy from Makefile.in.
34585         Added $(OUTPUT_OPTION).
34586         (GNAT1_C_OBJS): Moved from Makefile.in.
34587         Prefix with ada subdir.
34588         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
34589         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
34590         Adapt for new working dir.
34591         (EXTRA_GNATBIND_OBJS): Likewise.
34592         (ADA_BACKEND): Moved from Makefile.in.
34593         Renamed to avoid conflict with global BACKEND.
34594         Use that one.
34595         (TARGET_ADA_SRCS): Moved from Makefile.in.
34596         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
34597         Use ADA_BACKEND.
34598         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
34599         (ada_extra_files): Moved from Makefile.in.
34600         Prefix with ada subdir.
34601         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
34602         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
34603         (ada/nmake.ads): Likewise.
34604         (update-sources): Moved from Makefile.in.
34605         Prefix with ada subdir.
34606         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
34607         (ADA_TREE_H): Likewise.
34608         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
34609         (ada/memtrack.o): Likewise.
34610         (ada/adadecode.o): Likewise.
34611         Update dependencies.
34612         (ada/adaint.o): New.
34613         (ada/argv.o): Moved from Makefile.in.
34614         Prefix with ada subdir.
34615         Update dependencies.
34616         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
34617         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
34618         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
34619         Prefix with ada subdir.
34620         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
34621         (GNAT DEPENDENCIES): Regenerate.
34622         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
34623         toplevel Makefile.in.
34624         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
34625         (TARGET_ADA_SRCS): Removed.
34626         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
34627         (GNATBIND_OBJS): Likewise.
34628         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
34629         (BACKEND): Removed.
34630         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
34631         (TREE_H): Likewise.
34632         (ada_extra_files): Likewise.
34633         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
34634         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
34635         (update-sources): Likewise.
34636         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
34637         (ADA_TREE_H): Likewise.
34638         (adadecoce.o): Likewise.
34639         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
34640         (GNAT DEPENDENCIES): Likewise.
34641
34642 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34643
34644         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
34645         * Makefile.in: Likewise.
34646
34647 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34648
34649         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
34650         Restore $(CONFIG_H) and prefix.o dependencies.
34651         (ada.stage[1-4]): Depend on stage?-start.
34652
34653         * Makefile.in (b_gnatb.c): Depend on interfac.o.
34654
34655 2002-05-02  Jim Wilson  <wilson@redhat.com>
34656
34657         * utils.c (finish_record_type): Change record_size to record_type.
34658
34659 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
34660
34661         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
34662         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
34663         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
34664
34665 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
34666
34667         * misc.c (gnat_parse_file): Update.
34668
34669 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
34670
34671         * misc.c (gnat_init): Don't set lang_attribute_common.
34672
34673 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
34674
34675         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
34676
34677 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
34678
34679         * gnat_ug.texi: New file.
34680
34681         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
34682         instead of gfdl.texi
34683
34684         * xgnatug.adb, ug_words: New files.
34685
34686         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
34687         gnat_rm and gnat-style manuals.
34688
34689 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
34690
34691         * gigi.h (incomplete_type_error): Remove.
34692         * utils.c (incomplete_type_error): Remove.
34693
34694 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
34695
34696         * trans.c (tree_transform): Add has_scope argument to
34697         expand_start_stmt_expr.
34698
34699 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
34700
34701         * gigi.h (truthvalue_conversion): Rename.
34702         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
34703         * trans.c (tree_transform): Update.
34704         * utils2.c (truthvalue_conversion): Rename, update.
34705         (build_binary_op, build_unary_op): Update.
34706
34707 2002-04-04  Laurent Guerby  <guerby@acm.org>
34708
34709         * make.adb: Implement -margs, remove restriction about file name placement.
34710         * makeusg.adb: Documentation update.
34711         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
34712         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
34713
34714 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
34715
34716         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
34717         (builtin_function): Similarly.
34718
34719 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
34720
34721         * decl.c (gnat_to_gnu_entity): Update.
34722         * gigi.h (mark_addressable): Rename.
34723         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
34724         * trans.c (tree_transform): Update.
34725         * utils.c (create_var_decl): Update.
34726         * util2.c (build_binary_op, build_unary_op,
34727         fill_vms_descriptor): Update.
34728         (mark_addressable): Rename, update.
34729
34730 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
34731
34732         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
34733         Rename.
34734         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
34735         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
34736         * trans.c (tree_transform, convert_with_check): Update.
34737         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
34738         Rename.
34739
34740 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
34741
34742         * gigi.h (finish_incomplete_decl): Rename.
34743         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
34744         * utils.c (gnat_init_decl_processing): Don't set hook.
34745         (finish_incomplete_decl): Rename.
34746
34747 2002-03-29  Andreas Schwab  <schwab@suse.de>
34748
34749         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
34750         directory.
34751
34752 2001-03-28  Robert Dewar  <dewar@gnat.com>
34753
34754         * checks.ads:
34755         (Remove_Checks): New procedure
34756
34757         * checks.adb:
34758         (Remove_Checks): New procedure
34759
34760         * exp_util.adb:
34761         Use new Duplicate_Subexpr functions
34762         (Duplicate_Subexpr_No_Checks): New procedure
34763         (Duplicate_Subexpr_No_Checks_Orig): New procedure
34764         (Duplicate_Subexpr): Restore original form (checks duplicated)
34765         (Duplicate_Subexpr): Call Remove_Checks
34766
34767         * exp_util.ads:
34768         (Duplicate_Subexpr_No_Checks): New procedure
34769         (Duplicate_Subexpr_No_Checks_Orig): New procedure
34770         Add 2002 to copyright notice
34771
34772         * sem_util.adb: Use new Duplicate_Subexpr functions
34773
34774         * sem_eval.adb:
34775         (Eval_Indexed_Component): This is the place to call
34776         Constant_Array_Ref and to replace the value. We simply merge
34777         the code of this function in here, since it is now no longer
34778         used elsewhere. This fixes the problem of the back end not
34779         realizing we were clever enough to see that this was
34780         constant.
34781         (Expr_Val): Remove call to Constant_Array_Ref
34782         (Expr_Rep_Val): Remove call to Constant_Array_Ref
34783         Minor reformatting
34784         (Constant_Array_Ref): Deal with string literals (patch
34785         suggested by Zack Weinberg on the gcc list)
34786
34787 2001-03-28  Ed Schonberg  <schonber@gnat.com>
34788
34789         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
34790         Duplicate_Subexpr_Move_Checks.
34791
34792         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
34793         Duplicate_Subexpr_Move_Checks.
34794
34795         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
34796         value of array exists before retrieving it (it may a private
34797         protected component in a function).
34798
34799 2002-03-28   Geert Bosch  <bosch@gnat.com>
34800
34801         * prj-pp.adb : New file.
34802
34803         * prj-pp.ads : New file.
34804
34805 2002-03-28  Andreas Jaeger  <aj@suse.de>
34806
34807         * Makefile.in (stamp-sdefault): Fix path for Makefile.
34808
34809 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
34810
34811         * misc.c (gnat_expand_expr): Move prototype.
34812
34813 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
34814
34815         * misc.c (insert_default_attributes): Remove.
34816
34817 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
34818
34819         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
34820         (gnat_init): Don't set hook.
34821         (gnat_expand_expr): Fix prototype.
34822
34823 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
34824
34825         * misc.c (ggc_p): Remove.
34826
34827 2002-03-27  Geert Bosch  <bosch@gnat.com>
34828
34829         * prj-makr.ads, prj-makr.adb : New files.
34830
34831 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
34832
34833         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
34834         (lang_mark_tree): Make static, rename.
34835
34836 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
34837
34838         * misc.c (maybe_build_cleanup): Remove.
34839
34840 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
34841
34842         * gigi.h (yyparse): Remove.
34843
34844 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
34845
34846         From Ben Brosgol  <brosgol@gnat.com>
34847         * gnat_rm.texi: Sync with ACT version.
34848
34849 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
34850
34851         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
34852         (gnat_init): Remove old hook.
34853
34854 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
34855
34856         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
34857         (yyparse): Rename gnat_parse_file.
34858
34859 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
34860
34861         Delete all lines containing "$Revision:".
34862         * xeinfo.adb: Don't look for revision numbers.
34863         * xnmake.adb: Likewise.
34864         * xsinfo.adb: Likewise.
34865         * xsnames.adb: Likewise.
34866         * xtreeprs.adb: Likewise.
34867
34868 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34869
34870         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
34871         gnat_tree_code_name): Delete.
34872         (tree_code_type, tree_code_length, tree_code_name): Define.
34873         (gnat_init): Don't try to copy into the various tree_code
34874         arrays.
34875
34876 2002-03-11  Richard Henderson  <rth@redhat.com>
34877
34878         * Makefile.in (.NOTPARALLEL): Add fake tag.
34879
34880 2002-03-07  Geert Bosch  <bosch@gnat.com>
34881
34882         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
34883         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
34884         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
34885         switch-m.adb, switch-m.ads : New files.
34886
34887 2002-03-07  Geert Bosch  <bosch@gnat.com>
34888
34889         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
34890         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
34891         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
34892         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
34893         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
34894         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
34895         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
34896         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
34897         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
34898         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
34899         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
34900         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
34901         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
34902         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
34903         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
34904         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
34905         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
34906         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
34907         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
34908         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
34909         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
34910         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
34911         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
34912         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
34913         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
34914         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
34915         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
34916         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
34917         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
34918         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
34919         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
34920         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
34921         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
34922         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
34923         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34924         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
34925         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
34926         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
34927         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
34928         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
34929         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
34930         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
34931         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
34932         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
34933         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
34934         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
34935         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
34936         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
34937         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
34938         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
34939         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
34940         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
34941         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
34942         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
34943         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
34944         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
34945         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
34946         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
34947         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
34948         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
34949         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
34950         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
34951         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
34952         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
34953         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
34954         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
34955         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
34956         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
34957         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
34958         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
34959         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
34960         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
34961         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
34962         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
34963         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
34964         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
34965         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
34966         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
34967         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
34968         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
34969         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
34970         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
34971         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
34972         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
34973         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
34974         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
34975         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
34976         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
34977         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
34978         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
34979         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
34980         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
34981         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
34982         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
34983         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
34984         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
34985         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
34986
34987         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
34988         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
34989         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
34990         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
34991
34992         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
34993         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
34994
34995         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
34996         to mdll-fil.ad[bs] and mdll-util.ad[bs]
34997
34998         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
34999         from mdllfile.ad[bs] and mdlltool.ad[bs]
35000
35001 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
35002
35003         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
35004         lieu of explicit sizeof/sizeof.
35005
35006 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
35007
35008         * misc.c (copy_lang_decl): Remove.
35009
35010 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
35011
35012         * misc.c: Delete traditional-mode-related code copied from the
35013         C front end but not used, or used only to permit the compiler
35014         to link.
35015
35016 2002-02-07  Richard Henderson  <rth@redhat.com>
35017
35018         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
35019         * adaint.h (__gnat_to_gm_time): Update prototype.
35020
35021 2002-01-30  Richard Henderson  <rth@redhat.com>
35022
35023         * trans.c (tree_transform) [N_Loop_Statement]: Use
35024         expand_exit_loop_top_cond.
35025
35026 2001-12-23  Richard Henderson  <rth@redhat.com>
35027
35028         * utils.c (end_subprog_body): Push GC context around
35029         rest_of_compilation for nested functions.
35030
35031 2001-12-23  Richard Henderson  <rth@redhat.com>
35032
35033         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
35034
35035 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
35036
35037         * gnat-style.texi (Declarations and Types): Remove ancient style
35038         rule which was mandated by code generation issues.
35039
35040         * gnat-style.texi (header): Add @dircategory, @direntry.
35041         (title page): Remove date.
35042         (general) Add @./@: where approriate, and two spaces after the
35043         full stop at the end of a sentence.  Use @samp markup when
35044         referring concrete lexical entities (keywords, attribute names
35045         etc.), and @syntax for ARM grammar elements. Use @r for English
35046         text in comments.  Use @emph for emphasis.  Change "if-statements"
35047         etc. to "if statements" (without @samp). Break long lines.  Make
35048         casing of section names consistent.
35049         (Identifiers): Use @samp markup for variable names.
35050         (Comments): Use @samp markup for comment characters. Line-end
35051         comments may follow any Ada code, not just statements.  Fix
35052         misspelling of "Integer" as "integer".
35053         (Loop statements): Do not use variable name "I", use "J".
35054         (Subprogram Declarations): Document alignment.
35055         (Subprogram Bodies, Block statements): Document empty line before
35056         "begin".
35057
35058 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
35059
35060         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
35061         function approach did not work well because of a side effect (the
35062         function call could reallocate the table which was being indexed
35063         using its result). Fixes ada/4851.
35064
35065 2001-12-19  Robert Dewar  <dewar@gnat.com>
35066
35067         * bindgen.adb: Minor reformatting
35068
35069         * cstand.adb: Minor reformatting
35070
35071         * fmap.adb: Minor reformatting
35072         Change name from Add for Add_To_File_Map (Add is much too generic)
35073         Change Path_Name_Of to Mapped_Path_Name
35074         Change File_Name_Of to Mapped_File_Name
35075         Fix copyright dates in header
35076
35077         * fmap.ads:
35078         Change name from Add for Add_To_File_Map (Add is much too generic)
35079         Change Path_Name_Of to Mapped_Path_Name
35080         Change File_Name_Of to Mapped_File_Name
35081         Fix copyright dates in header
35082
35083         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
35084         Add use clause for Fmap.
35085
35086         * make.adb: Minor reformatting
35087
35088         * osint.adb: Minor reformatting.  Change of names in Fmap.
35089         Add use clause for Fmap.
35090
35091         * prj-env.adb: Minor reformatting
35092
35093         * prj-env.ads: Minor reformatting
35094
35095         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
35096         error found (there were odd exceptions to this general rule in
35097         -gnatec/-gnatem processing)
35098
35099 2001-12-19  Olivier Hainque  <hainque@gnat.com>
35100
35101         * raise.c (__gnat_eh_personality): Exception handling personality
35102         routine for Ada.  Still in rough state, inspired from the C++ version
35103         and still containing a bunch of debugging artifacts.
35104         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
35105         inspired from the C++ library.
35106
35107         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
35108         exception handling integration.
35109
35110 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
35111
35112         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
35113         (HIE_SOURCES): Add s-secsta.ad{s,b}.
35114         (HIE_OBJS): Add s-fat*.o
35115         (RAVEN_SOURCES): Remove files that are no longer required. Add
35116         interrupt handling files.
35117         (RAVEN_MOD): Removed, no longer needed.
35118
35119 2001-12-19  Robert Dewar  <dewar@gnat.com>
35120
35121         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
35122         Add 2001 to copyright date
35123
35124         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
35125         need to force universal inlining for these cases.
35126
35127 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
35128
35129         * s-taprob.adb: Minor clean ups so that this unit can be used in
35130         Ravenscar HI.
35131
35132         * exp_ch7.adb: Allow use of secondary stack in HI mode.
35133         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
35134
35135 2001-12-19  Vincent Celier  <celier@gnat.com>
35136
35137         * prj-tree.ads (Project_Node_Record): Add comments for components
35138         Pkg_Id and Case_Insensitive.
35139
35140 2001-12-19  Pascal Obry  <obry@gnat.com>
35141
35142         * g-socket.adb: Minor reformatting. Found while reading code.
35143
35144 2001-12-19  Robert Dewar  <dewar@gnat.com>
35145
35146         * prj-tree.ads: Minor reformatting
35147
35148 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
35149
35150         * config-lang.in (diff_excludes): Remove.
35151
35152 2001-12-17  Ed Schonberg  <schonber@gnat.com>
35153
35154         * sem_res.adb (Resolve_Selected_Component): do not generate a
35155         discriminant check if the selected component is a component of
35156         the argument of an initialization procedure.
35157
35158         * trans.c (tree_transform, case of arithmetic operators): If result
35159         type is private, the gnu_type is the base type of the full view,
35160         given that the full view itself may be a subtype.
35161
35162 2001-12-17  Robert Dewar  <dewar@gnat.com>
35163
35164         * sem_res.adb: Minor reformatting
35165
35166         * trans.c (tree_transform, case N_Real_Literal): Add missing third
35167         parameter in call to Machine (unknown horrible effects from this
35168         omission).
35169
35170         * urealp.h: Add definition of Round_Even for call to Machine
35171         Add third parameter for Machine
35172
35173 2001-12-17  Ed Schonberg  <schonber@gnat.com>
35174
35175         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
35176         predefined units in No_Run_Time mode.
35177
35178 2001-12-17  Richard Kenner  <kenner@gnat.com>
35179
35180         * misc.c (insn-codes.h): Now include.
35181
35182 2001-12-17  Olivier Hainque  <hainque@gnat.com>
35183
35184         * a-except.adb: Preparation work for future integration of the GCC 3
35185         exception handling mechanism
35186         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
35187         to factorize previous code sequences and make them externally callable,
35188         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
35189         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
35190         Use the new notification routines.
35191
35192 2001-12-17  Emmanuel Briot  <briot@gnat.com>
35193
35194         * prj-tree.ads (First_Choice_Of): Document the when others case
35195
35196 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
35197
35198         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
35199         HI-E mode, in order to support Ravenscar profile properly.
35200
35201         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
35202         mode on 32 bits targets.
35203
35204 2001-12-17  Vincent Celier  <celier@gnat.com>
35205
35206         * fmap.adb: Initial version.
35207
35208         * fmap.ads: Initial version.
35209
35210         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
35211         If search is successfully done, add to mapping.
35212
35213         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
35214
35215         * make.adb:
35216         (Gnatmake): Add new local variable Mapping_File_Name.
35217          Create mapping file when using project file(s).
35218          Delete mapping file before exiting.
35219
35220         * opt.ads (Mapping_File_Name): New variable
35221
35222         * osint.adb (Find_File): Use path name found in mapping, if any.
35223
35224         * prj-env.adb (Create_Mapping_File): New procedure
35225
35226         * prj-env.ads (Create_Mapping_File): New procedure.
35227
35228         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
35229         (Mapping_File)
35230
35231         * usage.adb: Add entry for new switch -gnatem.
35232
35233         * Makefile.in: Add dependencies for fmap.o.
35234
35235 2001-12-17  Ed Schonberg  <schonber@gnat.com>
35236
35237         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
35238         is a package instantiation rewritten as a package body.
35239         (Install_Withed_Unit): Undo previous change, now redundant.
35240
35241 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
35242
35243         * layout.adb:
35244         (Compute_Length): Move conversion to Unsigned to callers.
35245         (Get_Max_Size): Convert Len expression to Unsigned after calls to
35246         Compute_Length and Determine_Range.
35247         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
35248         Compute_Length and Determine_Range.
35249         Above changes fix problem with length computation for supernull arrays
35250         where Max (Len, 0) wasn't getting applied due to the Unsigned
35251         conversion used by Compute_Length.
35252
35253 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
35254
35255         * rtsfind.ads:
35256         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
35257          System.Secondary_Stack.
35258         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
35259          in HI-E mode.
35260         Remove unused entity RE_Exception_Data.
35261
35262         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
35263
35264         * rident.ads (No_Secondary_Stack): New restriction.
35265
35266 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
35267
35268         * gnat_rm.texi: Fix minor typos. Found while reading the section
35269         regarding "Bit_Order Clauses" that was sent to a customer.
35270         Very interesting documentation!
35271
35272 2001-12-17  Robert Dewar  <dewar@gnat.com>
35273
35274         * sem_case.adb (Choice_Image): Avoid creating improper character
35275         literal names by using the routine Set_Character_Literal_Name. This
35276         fixes bombs in certain error message cases.
35277
35278 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
35279
35280         * a-reatim.adb: Minor reformatting.
35281
35282 2001-12-17  Ed Schonberg  <schonber@gnat.com>
35283
35284         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
35285         case where the formal is an extension of another formal in the current
35286         unit or in a parent generic unit.
35287
35288 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
35289
35290         * s-tposen.adb: Update comments.  Minor reformatting.
35291         Minor code clean up.
35292
35293         * s-tarest.adb: Update comments.  Minor code reorganization.
35294
35295 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
35296
35297         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
35298         when Java_VM.
35299
35300 2001-12-17  Robert Dewa  <dewar@gnat.com>
35301
35302         * exp_attr.adb: Minor reformatting
35303
35304 2001-12-17  Ed Schonberg  <schonber@gnat.com>
35305
35306         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
35307         derivations nested within a child unit: verify that the parent
35308         type is declared in an outer scope.
35309
35310 2001-12-17  Robert Dewar  <dewar@gnat.com>
35311
35312         * sem_ch12.adb: Minor reformatting
35313
35314 2001-12-17  Ed Schonberg  <schonber@gnat.com>
35315
35316         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
35317         warning if current unit is a predefined one, from which bodies may
35318         have been deleted.
35319
35320 2001-12-17  Robert Dewar  <dewar@gnat.com>
35321
35322         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
35323         Fix header format. Add 2001 to copyright date.
35324
35325         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
35326         which caused CE during compilation if checks were enabled.
35327
35328 2001-12-17  Vincent Celier  <celier@gnat.com>
35329
35330         * make.adb:
35331         (Switches_Of): New function
35332         (Test_If_Relative_Path): New procedure
35333         (Add_Switches): Use new function Switches_Of
35334         (Collect_Arguments_And_Compile): Use new function Switches_Of.
35335         When using a project file, test if there are any relative
35336         search path. Fail if there are any.
35337         (Gnatmake): Only add switches for the primary directory when not using
35338         a project file. When using a project file, change directory to the
35339         object directory of the main project file. When using a project file,
35340         test if there are any relative search path. Fail if there are any.
35341         When using a project file, fail if specified executable is relative
35342         path with directory information, and prepend executable, if not
35343         specified as an absolute path, with the exec directory.  Make sure
35344         that only one -o switch is transmitted to the linker.
35345
35346         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
35347
35348         * prj-nmsc.adb:
35349         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
35350         when using a non standard naming scheme.
35351         (Check_Ada_Naming_Scheme): Make sure that error messages
35352         do not raise exceptions.
35353         (Is_Illegal_Append): Return True if there is no dot in the suffix.
35354         (Language_Independent_Check): Check the exec directory.
35355
35356         * prj.adb (Project_Empty): Add new component Exec_Directory
35357
35358         * prj.ads:
35359         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
35360         (Project_Data): Add component Exec_Directory
35361
35362         * snames.adb: Updated to match snames.ads revision 1.215
35363
35364         * snames.ads: Added Exec_Dir
35365
35366 2001-12-17  Robert Dewar  <dewar@gnat.com>
35367
35368         * make.adb: Minor reformatting
35369
35370         * prj-nmsc.adb: Minor reformatting
35371
35372         * snames.adb: Updated to match snames.ads
35373
35374         * snames.ads: Alphebetize entries for project file
35375
35376 2001-12-17  Ed Schonberg  <schonber@gnat.com>
35377
35378         * trans.c (process_freeze_entity): Do nothing if the entity is a
35379         subprogram that was already elaborated.
35380
35381 2001-12-17  Richard Kenner  <kenner@gnat.com>
35382
35383         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
35384         and Esize if object is referenced via pointer.
35385
35386 2001-12-17  Ed Schonberg  <schonber@gnat.com>
35387
35388         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
35389         is discrete before analyzing choices.
35390
35391 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
35392
35393         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
35394         containing the name of the Ada Main Program. This string is mainly
35395         intended for the debugger.
35396         (Gen_Output_File_C): Do the equivalent change when generating a C file.
35397
35398 2001-12-17  Robert Dewar  <dewar@gnat.com>
35399
35400         * ali.adb: Set new Dummy_Entry field in dependency entry
35401
35402         * ali.ads: Add Dummy_Entry field to source dependency table
35403
35404         * bcheck.adb (Check_Consistency): Ignore dummy D lines
35405
35406         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
35407
35408         * lib-writ.ads: Document dummy D lines for missing files.
35409
35410         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
35411
35412 2001-12-17  Robert Dewar  <dewar@gnat.com>
35413
35414         * ali.adb: Type reference does not reset current file.
35415
35416         * ali.adb: Recognize and scan renaming reference
35417
35418         * ali.ads: Add spec for storing renaming references.
35419
35420         * lib-xref.ads: Add documentation for handling of renaming references
35421
35422         * lib-xref.adb: Implement output of renaming reference.
35423
35424         * checks.adb:
35425         (Determine_Range): Document local variables
35426         (Determine_Range): Make sure Hbound is initialized. It looks as though
35427          there could be a real problem here with an uninitialized reference
35428          to Hbound, but no actual example of failure has been found.
35429
35430 2001-12-17  Laurent Pautet  <pautet@gnat.com>
35431
35432         * g-socket.ads:
35433         Fix comment of Shutdown_Socket and Close_Socket. These functions
35434         should not fail silently because if they are called twice, this
35435         probably means that there is a race condition in the user program.
35436         Anyway, this behaviour is consistent with the rest of this unit.
35437         When an error occurs, an exception is raised with the error message
35438         as exception message.
35439
35440 2001-12-17  Robert Dewar  <dewar@gnat.com>
35441
35442         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
35443         that it happens before modification of Sloc values for -gnatD.
35444
35445         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
35446         so that it happens before modification of Sloc values for -gnatD.
35447
35448         * switch.adb: Minor reformatting
35449
35450 2001-12-15  Richard Henderson  <rth@redhat.com>
35451
35452         * sem_ch7.adb: Wrap comment.
35453
35454 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
35455
35456         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
35457         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
35458         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
35459         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
35460         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
35461         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
35462         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
35463         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
35464         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
35465         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
35466         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
35467         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
35468         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
35469         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
35470         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
35471         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
35472         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
35473         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
35474         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
35475         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
35476         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
35477         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
35478         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
35479         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
35480         spelling errors.
35481
35482 2001-12-14  Vincent Celier  <celier@gnat.com>
35483
35484         * osint.adb(Create_Debug_File): When an object file is specified,
35485         put the .dg file in the same directory as the object file.
35486
35487 2001-12-14  Robert Dewar  <dewar@gnat.com>
35488
35489         * osint.adb: Minor reformatting
35490
35491         * lib-xref.adb (Output_Instantiation): New procedure to generate
35492         instantiation references.
35493
35494         * lib-xref.ads: Add documentation of handling of generic references.
35495
35496         * ali.adb (Read_Instantiation_Ref): New procedure to read
35497         instantiation references
35498
35499         * ali.ads: Add spec for storing instantiation references
35500
35501         * bindusg.adb: Minor reformatting
35502
35503         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
35504
35505         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
35506
35507         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
35508
35509         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
35510
35511         * csets.ads:
35512         Fix header format
35513         Add 2001 to copyright date
35514         Add entry for Latin-5 (Cyrillic ISO-8859-5)
35515
35516 2001-12-14  Matt Gingell  <gingell@gnat.com>
35517
35518         * adaint.c: mktemp is a macro on Lynx and can not be used as an
35519         expression.
35520
35521 2001-12-14  Richard Kenner  <kenner@gnat.com>
35522
35523         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
35524         if operand is CONSTRUCTOR.
35525
35526 2001-12-14  Ed Schonberg  <schonber@gnat.com>
35527
35528         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
35529         before emiting check on right-hand side, so that exception information
35530         is correct.
35531
35532 2001-12-14  Richard Kenner  <kenner@gnat.com>
35533
35534         * utils.c (create_var_decl): Throw away initializing expression
35535         if just annotating types and non-constant.
35536
35537 2001-12-14  Vincent Celier  <celier@gnat.com>
35538
35539         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
35540         Default_Ada_...
35541
35542         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
35543         Remove functions.
35544         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
35545
35546         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
35547         Remove functions.
35548         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
35549
35550 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
35551
35552         * ChangeLog: Remove piece of diff output.
35553
35554 2001-12-14  Geert Bosch  <bosch@gnat.com>
35555
35556         * config-lang.in: Update copyright notice
35557
35558         * layout.adb: Remove commented out code.
35559
35560         * mdllfile.ads: Update copyright notice. Fix header format.
35561
35562         * sem_case.ads: Likewise.
35563
35564         * sem_ch3.adb: Minor reformatting.
35565
35566 2001-12-12  Geert Bosch  <bosch@gnat.com>
35567
35568         * freeze.ads: Update copyright date.
35569
35570         * g-comlin.ads: Minor reformatting.
35571
35572         * gnat-style.texi: Fix typo.
35573
35574 2001-12-12  Geert Bosch  <bosch@gnat.com>
35575
35576         *  einfo.h: Regenerate.
35577
35578 2001-12-12  Ed Schonberg  <schonber@gnat.com>
35579
35580         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
35581         on known node types, rather than untyped fields. Further cleanups.
35582
35583 2001-12-12  Robert Dewar  <dewar@gnat.com>
35584
35585         * sem_ch12.adb:
35586         (Save_Entity_Descendant): Minor comment update.
35587         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
35588          of an N_Attribute_Reference node. As per note below, this does not
35589         eliminate need for Associated_Node in attribute ref nodes.
35590         (Associated_Node): Documentation explicitly mentions attribute
35591         reference nodes, since this field is used in such nodes.
35592
35593         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
35594
35595 2001-12-12  Robert Dewar  <dewar@gnat.com>
35596
35597         * s-stalib.adb: Add more comments on with statements being needed
35598
35599         * par-ch12.adb: Minor reformatting
35600
35601         * prj-dect.ads: Fix copyright header
35602
35603         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
35604         inputs fit in 32 bits, but the result still overflows.
35605
35606         * s-fatgen.ads: Minor comment improvement
35607
35608 2001-12-12  Ed Schonberg  <schonber@gnat.com>
35609
35610         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
35611         formal derived type, look for an inherited component from the full
35612         view of the parent, if any.
35613
35614 2001-12-12  Robert Dewar  <dewar@gnat.com>
35615
35616         * checks.ads (Apply_Alignment_Check): New procedure.
35617
35618         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
35619         ensure that the alignment of objects with address clauses is
35620         appropriate, and raise PE if not.
35621
35622         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
35623         Exp_Pakd.Known_Aligned_Enough
35624
35625         * mdllfile.ads: Minor reformatting
35626
35627         * mlib-fil.ads: Minor reformatting
35628
35629 2001-12-12  Ed Schonberg  <schonber@gnat.com>
35630
35631         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
35632         fix to any component reference if enclosing record has non-standard
35633         representation.
35634
35635 2001-12-12  Vincent Celier  <celier@gnat.com>
35636
35637         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
35638         Iteration
35639
35640 2001-12-12  Ed Schonberg  <schonber@gnat.com>
35641
35642         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
35643         sem_attr.
35644
35645 2001-12-12  Robert Dewar  <dewar@gnat.com>
35646
35647         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
35648
35649 2001-12-12  Emmanuel Briot  <briot@gnat.com>
35650
35651         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
35652         and it adds dependencies to system.io.
35653
35654 2001-12-12  Pascal Obry  <obry@gnat.com>
35655
35656         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
35657         variable name.
35658
35659 2001-12-11  Ed Schonberg  <schonber@gnat.com>
35660
35661         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
35662         that is the parent of other generics, the instance body replaces the
35663         instance node.  Retrieve the instance of the spec, which is the one
35664         that is visible in clients and within the body.
35665
35666 2001-12-11  Vincent Celier  <celier@gnat.com>
35667
35668         * gnatmain.adb: Initial version.
35669
35670         * gnatmain.ads: Initial version.
35671
35672         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
35673
35674         * snames.adb: Updated to match snames.ads.
35675
35676         * snames.ads: Added Gnatstub.
35677
35678 2001-12-11  Vincent Celier  <celier@gnat.com>
35679
35680         * prj-attr.adb (Initialization_Data): Change name from
35681         Initialisation_Data.
35682
35683 2001-12-11  Emmanuel Briot  <briot@gnat.com>
35684
35685         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
35686         + and * applied to backslashed expressions like \r.
35687
35688 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
35689
35690         * g-os_lib.ads: String_List type added, Argument_List type is now
35691         subtype of String_List.
35692
35693 2001-12-11  Robert Dewar  <dewar@gnat.com>
35694
35695         * g-os_lib.ads: Change copyright to FSF
35696         Add comments for String_List type
35697
35698 2001-12-11  Vincent Celier  <celier@gnat.com>
35699
35700         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
35701         string to the buffer).
35702
35703 2001-12-11  Ed Schonberg  <schonber@gnat.com>
35704
35705         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
35706         sem_attr.
35707
35708         * sem_attr.adb: Simplify previous fix for Address.
35709         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
35710         to avoid anomalies where the bound of the type appears to raise
35711         constraint error.
35712
35713 2001-12-11  Robert Dewar  <dewar@gnat.com>
35714
35715         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
35716         handled.
35717
35718 2001-12-11  Ed Schonber   <schonber@gnat.com>
35719
35720         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
35721         renamed unit before checking for recursive instantiations.
35722
35723 2001-12-11  Emmanuel Briot  <briot@gnat.com>
35724
35725         * prj.ads: Add comments for some of the fields.
35726
35727 2001-12-11  Robert Dewar  <dewar@gnat.com>
35728
35729         * lib-xref.adb (Output_Refs): Don't output type references outside
35730         the main unit if they are not otherwise referenced.
35731
35732 2001-12-11  Ed Schonberg  <schonber@gnat.com>
35733
35734         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
35735         code and diagnose additional illegal uses
35736
35737         * sem_util.adb (Is_Object_Reference): An indexed component is an
35738         object only if the prefix is.
35739
35740 2001-12-11  Vincent Celier  <celier@gnat.com>
35741
35742         * g-diopit.adb: Initial version.
35743
35744         * g-diopit.ads: Initial version.
35745
35746         * g-dirope.adb:
35747         (Expand_Path): Avoid use of Unbounded_String
35748         (Find, Wildcard_Iterator): Moved to child package Iteration
35749
35750         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
35751
35752 2001-12-11  Robert Dewar  <dewar@gnat.com>
35753
35754         * sem_attr.adb: Minor reformatting
35755
35756 2001-12-11  Ed Schonberg  <schonber@gnat.com>
35757
35758         * sem_ch3.adb: Clarify some ???.
35759
35760 2001-12-11  Robert Dewar  <dewar@gnat.com>
35761
35762         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
35763         Exp_Pakd.Known_Aligned_Enough
35764
35765         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
35766         version is moved to Exp_Ch13.
35767
35768 2001-12-11  Robert Dewar  <dewar@gnat.com>
35769
35770         * einfo.ads: Minor reformatting
35771
35772         * exp_ch5.adb: Add comment for previous.change
35773
35774         * ali.adb: New interface for extended typeref stuff.
35775
35776         * ali.ads: New interface for typeref stuff.
35777
35778         * checks.adb (Apply_Alignment_Check): New procedure.
35779
35780         * debug.adb: Add -gnatdM for modified ALI output
35781
35782         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
35783
35784         * lib-xref.adb: Extend generation of <..> notation to cover
35785         subtype/object types. Note that this is a complete rewrite,
35786         getting rid of the very nasty quadratic algorithm previously
35787         used for derived type output.
35788
35789         * lib-xref.ads: Extend description of <..> notation to cover
35790         subtype/object types. Uses {..} for these other cases.
35791         Also use (..) for pointer types.
35792
35793         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
35794
35795         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
35796         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
35797
35798 2001-12-11  Vincent Celier  <celier@gnat.com>
35799
35800         * gnatcmd.adb:
35801         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
35802         Changed /BIND_ONLY to /ACTIONS=BIND
35803         Changed /LINK_ONLY to /ACTIONS=LINK
35804
35805 2001-12-11  Ed Schonberg  <schonber@gnat.com>
35806
35807         * sem_ch8.adb (Find_Selected_Component): improved search for a
35808         candidate package in case of error.
35809
35810         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
35811         chain back on scope stack before reinstalling use clauses.
35812
35813         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
35814         is enabled, do not kill the code for the condition, to preserve
35815         warning.
35816
35817 2001-12-11  Robert Dewar  <dewar@gnat.com>
35818
35819         * checks.adb (Insert_Valid_Check): Apply validity check to expression
35820         of conversion, not to result of conversion.
35821
35822 2001-12-11  Ed Schonberg  <schonber@gnat.com>
35823
35824         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
35825         before freezing parent. If the declarations are mutually recursive,
35826         an access to the current record type may be frozen before the
35827         derivation is complete.
35828
35829 2001-12-05  Vincent Celier  <celier@gnat.com>
35830
35831         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
35832         -c /COMPILE_ONLY, -l /LINK_ONLY
35833
35834         * opt.ads:
35835         (Bind_Only): New Flag
35836         (Link_Only): New flag
35837
35838         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
35839         and -l (Link_Only)
35840
35841         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
35842
35843         * make.adb:
35844         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
35845         (Gnatmake): Set the step flags. Only perform a step if the
35846         corresponding step flag is True.
35847         (Scan_Make_Arg): Reset the bind and link step flags when -u
35848         or -gnatc has been specified.
35849
35850 2001-12-05  Ed Schonberg  <schonber@gnat.com>
35851
35852         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
35853         get bounds from right operand.
35854
35855         * sem_eval.adb: Minor reformatting
35856
35857         * exp_util.adb (Make_Literal_Range): use bound of literal rather
35858         than Index'First, its lower bound may be different from 1.
35859
35860         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
35861         and C48009J
35862
35863 2001-12-05  Vincent Celier  <celier@gnat.com>
35864
35865         * prj-nmsc.adb Minor reformatting
35866
35867         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
35868         set and libraries are not supported.
35869
35870 2001-12-05  Ed Schonberg  <schonber@gnat.com>
35871
35872         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
35873         private view explicitly, so the back-end can treat as a global
35874         when appropriate.
35875
35876 2001-12-05  Ed Schonberg  <schonber@gnat.com>
35877
35878         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
35879          unit, always replace instance node with new body, for ASIS use.
35880
35881 2001-12-05  Vincent Celier  <celier@gnat.com>
35882
35883         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
35884         libraries are not supported and both attributes Library_Name and
35885         Library_Dir are specified.
35886
35887         * prj-proc.adb (Expression): Set location of Result to location of
35888         first term.
35889
35890         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
35891         (prj-nmsc is now importing MLib.Tgt)
35892
35893         * prj-proc.adb: Put the change indicated above that was forgotten.
35894
35895 2001-12-05  Robert Dewar  <dewar@gnat.com>
35896
35897         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
35898
35899 2001-12-05  Ed Schonberg  <schonber@gnat.com>
35900
35901         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
35902         constraint, introduce explicit subtype declaration and derive from it.
35903
35904         * sem_ch3.adb: Minor reformatting
35905
35906 2001-12-05  Robert Dewar  <dewar@gnat.com>
35907
35908         * checks.adb (Determine_Range): Increase cache size for checks.
35909         Minor reformatting
35910
35911         * exp_ch6.adb: Minor reformatting
35912         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
35913         a parameter whose root type is System.Address, since treating such
35914         subprograms as pure in the code generator is almost surely a mistake
35915         that will lead to unexpected results.
35916
35917         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
35918         change handling of conversions.
35919
35920         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
35921
35922 2001-12-05  Ed Schonberg  <schonber@gnat.com>
35923
35924         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
35925         aggregate with static wrong size, attach generated Raise node to
35926         declaration.
35927
35928 2001-12-05  Robert Dewar  <dewar@gnat.com>
35929
35930         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
35931         Fixes compilation abandoned bomb in B24009B.
35932
35933 2001-12-05  Ed Schonberg  <schonber@gnat.com>
35934
35935         * sem_ch12.adb:
35936         Document use of Associated_Node on Selected_Components.
35937         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
35938         to clarify use of untyped descendant fields.
35939
35940 2001-12-05  Robert Dewar  <dewar@gnat.com>
35941
35942         * prj-dect.ads: Add ??? comment
35943         Add 2001 to copyright notice (was not done in after all)
35944
35945         * prj-part.adb: Minor reformatting. Reword one awkward error message.
35946
35947         * prj.ads: Minor reformatting throughout, and add some ??? comments
35948
35949         * snames.ads: Minor reformatting
35950
35951 2001-12-05  Geert Bosch  <bosch@gnat.com>
35952
35953         * snames.adb: Autoupdate
35954
35955 2001-12-05  Vincent Celier  <celier@gnat.com>
35956
35957         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
35958
35959         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
35960
35961         * prj-env.adb: Minor comment changes (modifying -> extends).
35962
35963         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
35964
35965         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
35966         Tok_Extends.
35967
35968         * prj.adb (Initialize): Change Modifying to Extends.
35969
35970         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
35971
35972         * prj.ads: Minor comment change (Modifying -> extending).
35973
35974         * snames.ads: Change modifying to extends.
35975
35976 2001-12-05  Robert Dewar  <dewar@gnat.com>
35977
35978         * sem_warn.adb: Remove stuff for conditionals, we are not going to
35979         do this after all.
35980
35981         * sem_warn.ads: Remove stuff for conditionals, we are not going to
35982         do this after all.  Add 2001 to copyright notice
35983
35984 2001-12-04  Geert Bosch  <bosch@gnat.com>
35985
35986         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
35987
35988 2001-12-04  Robert Dewar  <dewar@gnat.com>
35989
35990         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
35991         location if we already have errors. Stops some cases of cascaded
35992         errors.
35993
35994         * errout.adb: Improve comment.
35995
35996 2001-12-04  Robert Dewar  <dewar@gnat.com>
35997
35998         * sem_ch12.adb:
35999         (Analyze_Formal_Type_Definition): Defend against Error.
36000         (Analyze_Formal_Subprogram): Defend against Error.
36001
36002         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
36003         remove following semicolon if present. Removes cascaded error.
36004
36005 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
36006
36007         * bindgen.adb:
36008         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
36009          exceptions equals 0.
36010         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
36011         Fixes PIWG E tests (which have to be run with -gnatL).
36012
36013 2001-12-04  Robert Dewar  <dewar@gnat.com>
36014
36015         * einfo.ads: Minor reformatting
36016
36017 2001-12-04  Ed Schonberg  <schonber@gnat.com>
36018
36019         * einfo.ads: Block_Node points to the identifier of the block, not to
36020         the block node itself, to preserve the link when the block is
36021         rewritten, e.g. within an if-statement with a static condition.
36022
36023         * inline.adb (Cleanup_Scopes): recover block statement from block
36024         entity using new meaning of Block_Node.
36025
36026         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
36027         identifier of block node, rather than to node itself.
36028
36029 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
36030
36031         * layout.adb:
36032         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
36033         (Discrimify): Go back to setting the Etypes of the selected component
36034         because the Vname component does not exist at this point and will
36035         fail name resolution. Also set Analyzed.
36036         Remove with and use of Sem_Res.
36037
36038 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
36039
36040         * Makefile.in: (HIE_SOURCES): add s-fat*.
36041
36042 2001-12-04  Robert Dewar  <dewar@gnat.com>
36043
36044         * sem_attr.adb:
36045         (Compile_Time_Known_Attribute): New procedure.
36046         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
36047          proper range check.
36048
36049 2001-12-04  Ed Schonberg  <schonber@gnat.com>
36050
36051         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
36052         processing discriminants to diagnose illegal default values.
36053
36054 2001-12-04  Ed Schonberg  <schonber@gnat.com>
36055
36056         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
36057         access discriminant within a type extension that constrains its
36058         parent discriminants.
36059
36060 2001-12-04  Ed Schonberg  <schonber@gnat.com>
36061
36062         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
36063         is malformed, use instance of Any_Id to allow analysis to proceed.
36064
36065         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
36066         type definition is illegal.
36067         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
36068         misplaced.
36069
36070 2001-12-04  Ed Schonberg  <schonber@gnat.com>
36071
36072         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
36073         constants.
36074
36075 2001-12-04  Robert Dewar  <dewar@gnat.com>
36076
36077         * errout.adb: Minor reformatting
36078
36079 2001-12-04  Robert Dewar  <dewar@gnat.com>
36080
36081         * exp_util.adb: Minor reformatting from last change
36082
36083         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
36084         which is a rewriting of an expression, traverse the original
36085         expression to remove warnings that may have been posted on it.
36086
36087 2001-12-04  Ed Schonberg  <schonber@gnat.com>
36088
36089         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
36090         record that has other packed components.
36091
36092 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
36093
36094         * adaint.c: Minor cleanups.
36095
36096 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
36097
36098         * adaint.c: Do not use utime.h on vxworks.
36099
36100 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
36101
36102         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
36103         more confusion than it solves.
36104
36105 2001-12-04  Geert bosch  <bosch@gnat.com>
36106
36107         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
36108
36109 2001-12-04  Geert Bosch  <bosch@gnat.com>
36110
36111         * Makefile.in (update-sources): New target.
36112         For use by gcc_release script.
36113
36114 2001-12-04  Ed Schonberg  <schonber@gnat.com>
36115
36116         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
36117         a configuration pragma, it is now legal wherever a pragma can appear.
36118
36119 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
36120
36121         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
36122         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
36123         is now @CROSS@ -DIN_GCC; update comment.
36124
36125 2001-12-04  Robert Dewar  <dewar@gnat.com>
36126
36127         * einfo.adb (Has_Pragma_Pure_Function): New flag.
36128         Fix problem that stopped ceinfo from working
36129
36130         * einfo.ads (Has_Pragma_Pure_Function): New flag.
36131
36132         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
36133
36134 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
36135
36136         * gnatchop.adb:
36137         (File_Time_Stamp): New procedure.
36138         (Preserve_Mode): New boolean.
36139         (Write_Unit): Pass time stamp.
36140         Implement -p switch (preserve time stamps).
36141
36142         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
36143
36144         * gnatchop.adb: Do usage info for -p switch
36145
36146         * adaint.h (__gnat_set_file_time_name): New function
36147
36148         * adaint.c (__gnat_set_file_time_name): Implement
36149
36150         * adaint.h: Fix typo
36151
36152 2001-12-03  Robert Dewar  <dewar@gnat.com>
36153
36154         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
36155         have Associated_Node.
36156
36157 2001-12-03  Robert Dewar  <dewar@gnat.com>
36158
36159         * prj-proc.adb: Minor reformatting
36160
36161         * make.adb: Minor reformatting
36162
36163 2001-12-03  Geert Bosch  <bosch@gnat.com>
36164
36165         * make.adb: Minor reformatting.
36166
36167 2001-12-03 Robert Dewar  <dewar@gnat.com>
36168
36169         * sem_ch12.adb: Minor reformatting
36170
36171 2001-12-03  Ed Schonberg  <schonber@gnat.com>
36172
36173         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
36174         push Standard on the stack before analyzing the instance body,
36175         in order to have a clean visibility environment.
36176
36177         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
36178
36179 2001-12-03  Ed Schonberg  <schonber@gnat.com>
36180
36181         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
36182         instantiation of a body that contains an inlined body.
36183
36184 2001-12-03  Ed Schonberg  <schonber@gnat.com>
36185
36186         * sem_ch12.adb:
36187         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
36188         to prevent freezing within formal packages.
36189         (Freeze_Subprogram_Body): If body comes from another instance that
36190         appeared before its own body, place freeze node at end of current
36191         declarative part, to prevent a back-end crash.
36192         (Inline_Instance_Body): Handle properly a package instance within
36193         a subprogram instance that is a child unit.
36194
36195 2001-12-01  Graham Stott  <grahams@redhat.com>
36196
36197         * Makefile.in (misc.o): Add missing $(srcdir) prefix
36198         and add optabs.h dependency.
36199
36200         * misc.c: Include optabs.h
36201         (gnat_tree_code_type): Make static and const.
36202         (gnat_tree_code_length): Likewise.
36203         (gnat_tree_code_name): Likewise.
36204         (update_setjmp_buf): Obtain operands mode from insn_data.
36205
36206 2001-11-29  Richard Henderson  <rth@redhat.com>
36207
36208         * init.c: Remove obsolete dwarf2 frame.h section.
36209
36210 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
36211
36212         * Make-lang.in (ada.generated-manpages): New dummy target.
36213
36214 2001-11-29  Ed Schonberg  <schonber@gnat.com>
36215
36216         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
36217         into Command, an array conversion is illegal here. Uncovered by
36218         ACATS B460005.
36219
36220 2001-11-28  Geert Bosch  <bosch@gnat.com>
36221
36222         * init.c: Minor whitespace changes.
36223
36224 2001-11-28  Doug Rupp  <rupp@gnat.com>
36225
36226         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
36227         signal stack.
36228
36229 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
36230
36231         * misc.c (gnat_expand_constant): Move declaration above
36232         definition of lang_hooks.
36233         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
36234         (gnat_init): lang_expand_constant no longer exists.
36235
36236         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
36237         always have vprintf.
36238         (gnat_init): Always call set_internal_error_function.
36239
36240 2001-11-27  Andreas Jaeger  <aj@suse.de>
36241
36242         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
36243
36244 2001-11-27  Laurent Guerby  <guerby@acm.org>
36245
36246         * Makefile.in: Regenerate Ada dependencies.
36247
36248 2001-11-26  Richard Henderson  <rth@redhat.com>
36249
36250         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
36251         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
36252         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
36253
36254 2001-11-25  Laurent Guerby  <guerby@acm.org>
36255
36256         * sysdep.c (rts_get_*): Fix style.
36257
36258 2001-11-19  Laurent Guerby  <guerby@acm.org>
36259
36260         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
36261         since it is of no apparent use and cause warnings.
36262
36263 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
36264
36265         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
36266         static too.
36267         (gnat_init): Don't return NULL.
36268         (finish_parse): Remove.
36269
36270 2001-11-17  Laurent Guerby  <guerby@acm.org>
36271
36272         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
36273         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
36274         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
36275         * lang-spec.h: Add missing struct field to silence warnings.
36276         * sysdep.c (rts_get_*): Provide K&R prototype.
36277         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
36278         * traceback.c (Unlock_Task, Lock_Task): Likewise.
36279         * tracebak.c (__gnat_backtrace): Remove unused variable.
36280         * utils.c (end_subprog_body): Move to K&R style.
36281
36282 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36283
36284         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
36285
36286 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
36287
36288         * misc.c (gnat_init): Change prototype.  Include the
36289         functionality of the old init_parse and init_decl_processing.
36290         (gnat_init_decl_processing): New prototype.
36291         (init_parse): Remove.
36292         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
36293
36294 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
36295
36296         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
36297         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
36298         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
36299         set_yydebug): Remove.
36300
36301 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
36302
36303         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
36304         (struct lang_hooks): Constify.
36305         (language_string, lang_identify): Remove.
36306         * utils.c (init_decl_processing): Update.
36307
36308 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
36309
36310         * misc.c: Include langhooks-def.h.
36311         * Makefile.in: Update.
36312
36313 2001-10-30  Robert Dewar  <dewar@gnat.com>
36314
36315         * style.adb:
36316         (Check_Identifier): Rewrite circuit to be compatible with use of letters
36317         in the upper half of ASCII.
36318         (Check_Identifier): Minor reformatting
36319
36320 2001-10-30  Geert Bosch  <bosch@gnat.com>
36321
36322         * (Associated_Node, Set_Associated_Node): Do not check for
36323         Freeze_Entity.
36324
36325 2001-10-30  Robert Dewar  <dewar@gnat.com>
36326
36327         * a-reatim.ads: Minor reformatting
36328
36329 2001-10-30  Robert Dewar  <dewar@gnat.com>
36330
36331         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
36332         undocumented declarations.
36333
36334 2001-10-30  Pascal Obry  <obry@gnat.com>
36335
36336         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
36337         to the binder and linker.
36338         Minor style fix.
36339
36340         * mdll.ads: Fix layout.  Update copyright notice.
36341
36342         * mdll.adb: Fix layout.  Update copyright notice.
36343
36344 2001-10-30  Robert Dewar  <dewar@gnat.com>
36345
36346         * usage.adb: Minor fix to output for -gnaty.
36347
36348 2001-10-30  Ed Schonberg  <schonber@gnat.com>
36349
36350         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
36351         to accommodate all its possible values.
36352
36353         * a-reatim.adb (Split): Special-case handling of Time_Span_First
36354         and of small absolute values of T.
36355
36356 2001-10-30  Richard Kenner  <kenner@gnat.com>
36357
36358         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
36359         set_mem_attributes since not needed and wrong if RESULT if a REG;
36360         fixes ACATS failures.
36361
36362 2001-10-30  Geert Bosch  <bosch@gnat.com>
36363
36364         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
36365         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
36366
36367 2001-10-30  Robert Dewar  <dewar@gnat.com>
36368
36369         * bindusg.adb: Undocument -f switch.
36370
36371         * gnatcmd.adb: Remove /FULL_ELABORATION.
36372
36373         * opt.ads (Force_RM_Elaboration_Order): Document that this is
36374         obsolescent.
36375
36376         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
36377
36378         * gnatbind.adb: Minor update of warning msg.
36379
36380 2001-10-30  Vincent Celier  <celier@gnat.com>
36381
36382         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
36383         for project file switches (-P (/PROJECT_FILE=),
36384          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
36385         or MEDIUM or HIGH)
36386
36387 2001-10-30  Geert Bosch  <bosch@gnat.com>
36388
36389         * decl.c: Minor whitespace fixes.
36390
36391 2001-10-30  Richard Kenner  <kenner@gnat.com>
36392
36393         * utils2.c (build_allocator): Test for SIZE overflow in array case too
36394
36395 2001-10-30  Geert Bosch  <bosch@gnat.com>
36396
36397         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
36398         Found due to GCC 3.0 warning of using uninitialized value.
36399
36400         * layout.adb:
36401         (Get_Max_Size): Use variant record for tracking value/expression.
36402          Makes logic clearer and prevents warnings for uninitialized variables.
36403         (Layout_Array_Type): Use variant record for tracking value/expression.
36404          Makes logic clearer and prevents warnings for uninitialized variables.
36405
36406 2001-10-30  Robert Dewar  <dewar@gnat.com>
36407
36408         * lib.adb: Minor reformatting
36409
36410         * s-taprop.ads: Minor reformatting
36411
36412 2001-10-29  Laurent Guerby  <guerby@acm.org>
36413
36414         * init.c:
36415         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
36416         const.
36417         (_gnat_error_handler): Make MSG const.
36418
36419 2001-10-29  Richard Kenner  <kenner@gnat.com>
36420
36421         * sysdep.c: Fix localtime_r problem on LynxOS.
36422         Also remove #elif to avoid warnings.
36423
36424         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
36425         used by this.
36426
36427         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
36428
36429 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
36430
36431         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
36432         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
36433         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
36434         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
36435         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
36436         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
36437         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
36438         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
36439         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
36440         types.ads, urealp.adb: Fix spelling errors.
36441
36442 2001-10-27  Laurent Guerby  <guerby@acm.org>
36443
36444         * trans.c (gigi): Fix non determinism leading to bootstrap
36445         comparison failures for debugging information.
36446
36447 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
36448
36449         * gnat_rm.texi: Use @./@: where appropriate.
36450
36451 2001-10-26  Robert Dewar  <dewar@gnat.com>
36452
36453         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
36454
36455 2001-10-26  Richard Kenner  <kenner@gnat.com>
36456
36457         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
36458
36459 2001-10-26  Richard Kenner  <kenner@gnat.com>
36460
36461         * decl.c (validate_size): Modify message for bad size to avoid
36462         implication that compiler is modifying the size.
36463
36464 2001-10-26  Robert Dewar  <dewar@gnat.com>
36465
36466         * prj-util.adb: Minor reformatting. Fix bad header format.
36467
36468 2001-10-26  Robert Dewar  <dewar@gnat.com>
36469
36470         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
36471
36472         * sinfo.ads: Clarify use of Associated_Node (documentation only).
36473
36474         * sem_ch12.adb: Change Node4 to Associated_Node. Change
36475         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
36476         much more narrowly in places where needed. These are cleanups.
36477
36478 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
36479
36480         * 5zosinte.ads (null_pthread): new constant.
36481
36482         * 5ztaprop.adb:
36483         (Initialize_TCB): Initialize thread ID to null, to be able to verify
36484          later that this field has been set.
36485         (Finalize_TCB): ditto.
36486         (Suspend_Task): Verify that the thread ID is not null before using it.
36487         (Resume_Task): ditto.
36488
36489         * s-tasdeb.adb:
36490         (Resume_All_Tasks): Lock the tasks list before using it.
36491         (Suspend_All_Tasks): ditto.
36492
36493 2001-10-26  Richard Kenner  <kenner@gnat.com>
36494
36495         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
36496         Make constant variant of designated type for Is_Access_Constant.
36497         Call update_pointer_to with main variant.
36498
36499         * trans.c (process_freeze_entity, process_type):
36500         Call update_pointer_to on main variant.
36501
36502         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
36503         If main variant, update all other variants.
36504
36505         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
36506         TREE_STATIC.
36507
36508 2001-10-26  Robert Dewar  <dewar@gnat.com>
36509
36510         * prj-util.adb: Minor reformatting
36511
36512 2001-10-26  Robert Dewar  <dewar@gnat.com>
36513
36514         * prj-util.adb: Minor reformatting
36515
36516 2001-10-26  Robert Dewar  <dewar@gnat.com>
36517
36518         * prj-attr.adb: Minor reformatting throughout
36519
36520 2001-10-26  Robert Dewar  <dewar@gnat.com>
36521
36522         * prj-attr.ads: Minor reformatting
36523         Add ??? comment (this whole spec has almost no comments)
36524
36525 2001-10-26  Vincent Celier  <celier@gnat.com>
36526
36527         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
36528         ("//") that precede the drive letter on Interix.
36529
36530 2001-10-26  Geert Bosch  <bosch@gnat.com>
36531
36532         * gnat_rm.texi: Add GNAT Reference Manual.
36533
36534 2001-10-25  Robert Dewar  <dewar@gnat.com>
36535
36536         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
36537         is Error. Similar change for other renaming cases.
36538
36539 2001-10-25  Robert Dewar  <dewar@gnat.com>
36540
36541         * s-atacco.ads: Add pragma Inline_Always for functions.
36542         Fix header format. Add copyright 2001
36543
36544 2001-10-25  Ed Schonberg  <schonber@gnat.com>
36545
36546         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
36547         return Error rather than Empty so that analysis can proceed.
36548
36549 2001-10-25  Ed Schonberg  <schonber@gnat.com>
36550
36551         * sem_util.adb (Enter_Name): better handling of cascaded error
36552         messages when a unit appears in its own context.
36553
36554 2001-10-25  Ed Schonberg  <schonber@gnat.com>
36555
36556         * sem_util.adb (Defining_Entity): in case of error, attach created
36557         entity to specification, so that semantic analysis can proceed.
36558
36559 2001-10-25  Robert Dewar  <dewar@gnat.com>
36560
36561         * sem_util.adb
36562         (Defining_Entity): Deal with Error.
36563         (Process_End_Label): Deal with bad end label for.
36564
36565 2001-10-25  Ed Schonberg  <schonber@gnat.com>
36566
36567         * sem_elab.adb (Check_A_Call): refine message when call is in an
36568         instance but callee is not declared in the generic unit.
36569
36570 2001-10-25  Ed Schonberg  <schonber@gnat.com>
36571
36572         * sem_elab.adb (Check_A_Call): check for renaming before finding the
36573         enclosing unit, which may already be different from the calling unit.
36574
36575 2001-10-25  Geert Bosch  <bosch@gnat.com>
36576
36577         * 4gintnam.ads: fix header format.
36578
36579 2001-10-25  Ed Schonberg  <schonber@gnat.com>
36580
36581         * sem_res.adb (Resolve_Call): if the call is actually an indexing
36582         operation on the result of a parameterless call, perform elaboration
36583         check after the node has been properly rewritten.
36584
36585         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
36586         inlined within the generic tree, the defining identifier is not a
36587         compilation_unit.
36588
36589 2001-10-25  Ed Schonberg  <schonber@gnat.com>
36590
36591         * sem_res.adb (Resolve): special-case resolution of Null in an
36592          instance or an inlined body to avoid view conflicts.
36593
36594         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
36595          compatibility by retrieving the access type of the generic copy.
36596
36597 2001-10-25  Robert Dewar  <dewar@gnat.com>
36598
36599         * sem_ch3.adb:
36600         (Analyze_Number_Declaration): Handle error expression.
36601         (Signed_Integer_Type_Declaration): Handle error bound.
36602         (Analyze_Subtype_Indication): Handle error range.
36603
36604         * sem_util.adb (Get_Index_Bounds): Check for Error.
36605
36606 2001-10-25  Robert Dewar  <dewar@gnat.com>
36607
36608         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
36609         in no run time mode.
36610
36611 2001-10-25  Pascal Obry  <obry@gnat.com>
36612
36613         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
36614         mode case for ALLOC case.
36615
36616         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
36617         all platforms. Improvement of last change.
36618
36619 2001-10-25  Robert Dewar  <dewar@gnat.com>
36620
36621         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
36622
36623 2001-10-25  Geert Bosch  <bosch@gnat.com>
36624
36625         * osint.adb (Is_Relative): Remove duplicate.
36626
36627 2001-10-25  Pascal Obry  <obry@gnat.com>
36628
36629         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
36630         pathnames in UNIX and DOS style with drive letter.
36631         (Is_Relative): new routine.
36632
36633         * osint.adb: Minor reformatting
36634
36635         * osint.adb (Is_Relative): implementation using
36636         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
36637
36638 2001-10-25  Pascal Obry  <obry@gnat.com>
36639
36640         * g-dirope.adb (Basename): correctly compute offset between the
36641         original Path and the translated one.
36642
36643         * g-dirope.adb: (Base_Name): add some comments.
36644
36645 2001-10-25  Robert Dewar  <dewar@gnat.com>
36646
36647         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
36648         in HIE mode, avoids compilation abandoned message
36649
36650         * exp_imgv.adb: Correct typo in previous change
36651
36652         * exp_imgv.adb: Correct typo in previous change (not my day!)
36653
36654 2001-10-25  Robert Dewar  <dewar@gnat.com>
36655
36656         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
36657
36658 2001-10-25  Pascal Obry  <obry@gnat.com>
36659
36660         * g-awk.ads: Move all pragma inlines next to the routine
36661          declarations. This is more uniform with other GNAT spec.
36662
36663 2001-10-22  Geert Bosch  <bosch@gnat.com>
36664
36665         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
36666
36667 2001-10-19  Geert Bosch  <bosch@gnat.com>
36668
36669         * Makefile.in (tools, gnattools): Remove gnatmem.
36670
36671 2001-10-17  Richard Henderson  <rth@redhat.com>
36672
36673         * Makefile.in (misc.o): Depend on langhooks.h.
36674         * misc.c: Include it.
36675         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
36676         (LANG_HOOKS_DECODE_OPTION): New.
36677         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
36678
36679 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
36680
36681         * trans.c (tree_transform): Adjust to recent change in
36682         expand_asm_operands to implement named asm operands.
36683
36684 2001-10-11  Ed Schonberg  <schonber@gnat.com>
36685
36686         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
36687         renaming of discriminant for mutable record type.
36688
36689 2001-10-11  Robert Dewar  <dewar@gnat.com>
36690
36691         * validsw.adb: Properly save -gnatVn status.
36692
36693 2001-10-11  Robert Dewar  <dewar@gnat.com>
36694
36695         * usage.adb: Add lines for V switch.
36696
36697         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
36698         (/VALIDITY_CHECKING).
36699
36700 2001-10-11  Ed Schonberg  <schonber@gnat.com>
36701
36702         * sem_type.adb (Add_One_Interp): an operator for a type declared in
36703         an extension of System is known to be visible.
36704
36705 2001-10-11  Ed Schonberg  <schonber@gnat.com>
36706
36707         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
36708         properly. Fixes regression on ACATS C34005G.
36709
36710 2001-10-11  Robert Dewar  <dewar@gnat.com>
36711
36712         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
36713         loop in generic instance, since this is likely not very useful.
36714
36715 2001-10-11  Robert Dewar  <dewar@gnat.com>
36716
36717         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
36718         the error message for high integrity mode.
36719
36720         * rtsfind.adb (RTE): Give message if we try to find an entity that
36721         is not available in high integrity mode.
36722
36723         * rtsfind.ads:
36724         (OK_To_Use_In_HIE_Mode): New array.
36725         (RTE): May return Empty in high integrity mode.
36726
36727         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
36728         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
36729
36730         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
36731         unit if not inlined always and in no runtime mode. Fixes problem
36732         caused by new Rtsfind changes.
36733
36734         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
36735         body is deleted.
36736
36737         * rtsfind.adb (RTE): Make sure we do not try to load unit after
36738         giving message for entity not available in high integrity mode.
36739
36740 2001-10-11  Pascal Obry  <obry@gnat.com>
36741
36742         * impunit.adb: Add GNAT.CRC32.
36743
36744 2001-10-11  Ed Schonberg  <schonber@gnat.com>
36745
36746         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
36747         properly the case where one universal operand in a non-static
36748         exponentiation of a real literal.
36749
36750 2001-10-11  Ed Schonberg  <schonber@gnat.com>
36751
36752         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
36753         clause, return the gobal finalization list, for lack of anthing else.
36754
36755 2001-10-11  Ed Schonberg  <schonber@gnat.com>
36756
36757         * exp_ch7.adb (Make_Transient_Block): if statement is within
36758         exception handler, always use new transient scope to place Clean
36759         procedure.
36760
36761 2001-10-11  Pascal Obry  <obry@gnat.com>
36762
36763         * Makefile.in:
36764         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
36765         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
36766         (GNATLS_RTL_OBJS): add g-crc32.o
36767         (GNATMAKE_RTL_OBJS): add g-crc32.o
36768
36769         * ali-util.adb:
36770         (CRC_Match): new function.
36771         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
36772         instead of the previous simple checksum algorithm.
36773         (Time_Stamp_Mismatch): use CRC_Match for comparison.
36774         (Set_Source_Table): idem.
36775
36776         * ali-util.ads:
36777         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
36778         instead of simple checksum.
36779         (CRC_Match): new function.
36780         (CRC_Error): new constant.
36781
36782         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
36783         a CRC now and not a simple checksum. A CRC uses lower-case hex
36784         letters, fixes ambiguity in parsing.
36785
36786         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
36787         is what this variable will store.
36788
36789         * bcheck.adb: Change reference to chechsum in comments by CRC.
36790         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
36791         rename All_Checksum_Match to All_CRC_Match. Change due to API
36792         renaming since now GNAT does not use a simple checksum but a
36793         CRC using GNAT.CRC32.
36794
36795         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
36796         now and not anymore a simple checksum.
36797
36798         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
36799         places.
36800
36801         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
36802
36803         * scans.adb:
36804         (Restore_Scan_State): rename Checksum to CRC.
36805         (Save_Scan_State): idem.
36806
36807         * scans.ads:
36808         With GNAT.CRC32.
36809         (Checksum): rename to CRC.
36810         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
36811
36812         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
36813         GNAT.CRC32).  Update copyright notice.
36814
36815         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
36816         GNAT.CRC32).  Update copyright notice.
36817
36818         * scn.adb:
36819         (Accumulate_Checksum): removed.
36820         (Update): new procedure. Add a wide-character into the CRC.
36821
36822         * sinput-l.adb:
36823         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
36824         (Load_File): fix initialization of S (change Source_Checksum to
36825         Source_CRC)
36826
36827         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
36828         Source_CRC in S initialization.
36829
36830         * sinput.adb (Source_Checksum): renamed to Source_CRC.
36831
36832         * sinput.ads (Source_Checksum): renamed to Source_CRC.
36833         Update comments for the CRC.
36834
36835         * types.adb (Hex): Use lowercase for the letter part.
36836
36837         * types.ads (Get_Hex_String): Returns the hexadecimal representation
36838         for a word. This is currently used only for CRC. In previous version,
36839         the checksum was using a representation with all letter being
36840         upper-case. With the new implementation (using CRC) we do not remove
36841         the 32th bit of the CRC, so we can have an upper-case starting letter
36842         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
36843         It is ambigous since the CRC was optional and could be followed by
36844         options like EB, EE. So now this routines uses lower-case letter for
36845         the hexadecimal representation. Strange enough only lower case letters
36846         where checked in Scan_ALI (even if this was not a possible case).
36847
36848         * gnatvsn.ads (Library_Version): changed to 3.15a.
36849
36850         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
36851         for the compiler.
36852
36853         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
36854         for the compiler.
36855
36856         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
36857         Add 2001 to copyright notice
36858         (Accumulate_Checksum): Modify to use System.CRC32.
36859
36860         * ali-util.ads: Redo changes of previous revision to continue to use
36861         the word Checksum. Add 2001 to copyright notice.
36862
36863         * ali.adb: Undo some of previous changes, not needed.
36864         Keep the change for lower case letters in the checksum.
36865
36866         * ali.ads: Undo previous change not needed.
36867
36868         * bcheck.adb: Undo most of previous change, not needed.
36869         But do use Checksums_Match for checksum comparison.
36870
36871         * gnatls.adb: Undo most of previous change, not needed.
36872         But do use Checksums_Match for comparing checksums.
36873
36874         * lib-load.adb: Undo previous change, not needed.
36875
36876         * lib-writ.adb: Undo previous change, not needed.
36877
36878         * lib-writ.ads: Document that checksums use lower case,
36879         not upper case letters.
36880
36881         * scans.adb: Undo previous change, not needed
36882
36883         * scans.ads: Undo previous change, not needed.
36884
36885         * scn-nlit.adb: Undo previous changes, not needed.
36886
36887         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
36888
36889         * scn.adb:
36890         (Accumulate_Checksum): Use System.CRC32.
36891         (Initialize_Checksum): New procedure.
36892         Remove other changes of previous revision.
36893
36894         * sinput-p.adb: Undo previous change, not needed.
36895
36896         * sinput.adb: Undo previous change, not needed.
36897
36898         * sinput-l.adb: Undo previous change, not needed.
36899
36900         * sinput.ads: Undo previous change, not needed.  Keep only comment
36901         on new checksum algorithm
36902
36903         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
36904         Also remove a-tags and a-stream from GNAT sources.
36905
36906         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
36907
36908         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
36909
36910 2001-10-11  Geert Bosch  <bosch@gnat.com>
36911
36912         * einfo.h: Regenerate.
36913
36914         * nmake.ads: Regenerate.
36915
36916         * nmake.adb: Regenerate.
36917
36918         * sinfo.h: Regenerate.
36919
36920         * treeprs.adb: Regenerate.
36921
36922 2001-10-10  Geert Bosch  <bosch@gnat.com>
36923
36924         * gnat-style.texi: New file describing coding guidelines for Ada.
36925
36926 2001-10-10  Ed Schonberg  <schonber@gnat.com>
36927
36928         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
36929         is Flag174.
36930
36931 2001-10-10  Geert Bosch  <bosch@gnat.com>
36932
36933         * snames.ads: Add new names for project facility.
36934
36935         * snames.adb: Update to reflect snames.ads changes.
36936
36937         * snames.h: Update to reflect snames.ads changes.
36938
36939 2001-10-10  Vincent Celier  <celier@gnat.com>
36940
36941         * make.adb:
36942         (Add_Switches): reflect the changes for the switches attributes
36943         Default_Switches indexed by the programming language,
36944         Switches indexed by the file name.
36945         (Collect_Arguments_And_Compile): Idem.
36946         Reflect the attribute name changes.
36947
36948         * prj-attr.adb:
36949         (Initialisation_Data): Change the names of some packages and
36950         attributes.
36951         (Initialize): process case insensitive associative arrays.
36952
36953         * prj-attr.ads:
36954         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
36955
36956         * prj-dect.adb:
36957         (Parse_Attribute_Declaration): For case insensitive associative
36958          arrays, set the index string to lower case.
36959
36960         * prj-env.adb:
36961         Reflect the changes of the project attributes.
36962
36963         * prj-nmsc.adb:
36964         Replace Check_Naming_Scheme by Ada_Check and
36965         Language_Independent_Check.
36966
36967         * prj-nmsc.ads:
36968         Replaced Check_Naming_Scheme by 2 procedures:
36969         Ada_Check and Language_Independent_Check.
36970
36971         * prj-proc.adb:
36972         (Process_Declarative_Items): For case-insensitive associative
36973         arrays, set the index string to lower case.
36974         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
36975         Prj.Nmsc.Check_Naming_Scheme.
36976
36977         * prj-tree.adb:
36978         (Case_Insensitive): New function
36979         (Set_Case_Insensitive): New procedure
36980
36981         * prj-tree.ads:
36982         (Case_Insensitive): New function
36983         (Set_Case_Insensitive): New procedure
36984         (Project_Node_Record): New flag Case_Insensitive.
36985
36986         * prj-util.adb:
36987         (Value_Of): new function to get the string value of a single
36988         string variable or attribute.
36989
36990         * prj-util.ads:
36991         (Value_Of): new function to get the string value of a single
36992         string variable or attribute.
36993
36994         * prj.adb:
36995         (Ada_Default_Spec_Suffix): New function
36996         (Ada_Default_Impl_Suffix): New function
36997         Change definitions of several constants to reflect
36998         new components of record types.
36999
37000         * prj.ads:
37001         (Naming_Data): Change several components to reflect new
37002         elements of naming schemes.
37003         (Project_Data): New flags Sources_Present and
37004         Language_Independent_Checked.
37005         (Ada_Default_Spec_Suffix): New function.
37006         (Ada_Default_Impl_Suffix): New function.
37007
37008         * snames.ads:
37009         Modification of predefined names for project manager: added
37010         Implementation, Specification_Exceptions, Implementation_Exceptions,
37011         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
37012         Default_Switches, _Languages, Builder, Cross_Reference,
37013         Finder. Removed Body_Part, Specification_Append, Body_Append,
37014         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
37015         Gnatlink.
37016
37017         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37018         Add comments.
37019
37020         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
37021         not that it is Nil_Variable_Value.
37022
37023         * prj.ads: Add ??? for uncommented declarations
37024
37025 2001-10-10  Ed Schonberg  <schonber@gnat.com>
37026
37027         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
37028         constant, do not indicate possible modification, so that gigi can
37029         treat it as a bona fide constant.
37030
37031 2001-10-10  Robert Dewar  <dewar@gnat.com>
37032
37033         * sem_prag.adb: Add processing for pragma External.
37034
37035         * snames.ads: Add entry for pragma External.
37036
37037         * par-prag.adb: Add pragma External.
37038
37039         * snames.adb: Updated to match snames.ads.
37040
37041 2001-10-10  Ed Schonberg  <schonber@gnat.com>
37042
37043         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
37044         a dynamic task if the allocator appears in an indexed assignment
37045         or selected component assignment.
37046
37047         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
37048         For a dynamic task in an assignment statement, use target of
37049         assignment to generate meaningful name.
37050
37051 2001-10-10  Ed Schonberg  <schonber@gnat.com>
37052
37053         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
37054         a generic package.
37055
37056         * einfo.ads: Body_Entity is also defined for generic package.
37057         Documentation change only
37058
37059         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
37060         others_choice for a discriminated component initialization,
37061         convert discriminant references into the corresponding discriminals.
37062
37063         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
37064         only if original type is private and expression has to be wrapped
37065         in a conversion.
37066
37067         * checks.adb:
37068         (Apply_Constraint_Check): Do not perform length check
37069         if expression is an aggregate with only an others_choice.
37070         (Length_N_Cond): two references to the same in_parameter
37071         (typically the discriminal in an init_proc) denote the same value.
37072         Two useful optimization uncovered by bugfixes above.
37073
37074 2001-10-10  Robert Dewar  <dewar@gnat.com>
37075
37076         * xeinfo.adb: Change int to char in translation of enumeration types.
37077         This fixes a problem in the C representation of component alignment.
37078         Add 2001 to copyright notice
37079
37080 2001-10-10  Richard Kenner  <kenner@gnat.com>
37081
37082         * decl.c: (validate_size): Do check size of object of integral type
37083         if it is a packed array type.
37084
37085 2001-10-10  Richard Kenner  <kenner@gnat.com>
37086
37087         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
37088         VAR_DECL for constant if not Is_Public but -O0.
37089
37090 2001-10-10  Richard Kenner  <kenner@gnat.com>
37091
37092         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
37093
37094 2001-10-10  Geert Bosch  <bosch@gnat.com>
37095
37096         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
37097         use '/' as switch character, allowing for absolute file names.
37098
37099 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
37100
37101         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
37102         FSF address.
37103
37104 2001-10-08  Geert Bosch  <bosch@gnat.com>
37105
37106         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
37107         Automatically build utilities when files need to be regenerated.
37108
37109 2001-10-08  Geert Bosch  <bosch@gnat.com>
37110
37111         * xsnames.adb: New utility for updating snames.ads and snames.adb
37112
37113 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
37114
37115         * Make-lang.in (ADAFLAGS): Add -W -Wall.
37116         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
37117         (gnat1): Also depend on attribs.o.
37118         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
37119         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
37120         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
37121         (ADAFLAGS): Add -W -Wall.
37122         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
37123         take out CFLAGS.
37124
37125         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
37126         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
37127         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
37128         Use $(ADAC), not $(CC), as compilation command.
37129
37130         (gnattools): Depend directly on tools to build, don't use
37131         recursive make.
37132         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
37133
37134         * einfo.h, sinfo.h: New files (autogenerated).
37135
37136 2001-10-08  Richard Henderson  <rth@redhat.com>
37137
37138         * comperr.adb (Abort_In_Progress): New.
37139         (Compiler_Abort): Use it to prevent recursion.
37140
37141 2001-10-08  Robert Dewar  <dewar@gnat.com>
37142
37143         * atree.adb: Set Error_Posted in Error node, helps error recovery.
37144
37145         * par-endh.adb (Output_End_Expected): We should also not test
37146         Error_Posted on the Error node, since now it is always set.
37147
37148         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
37149         to help error recovery. Part of general work on 9407-004.
37150
37151         * par.adb: Add ??? for misuse of error
37152
37153         * sem_res.adb:
37154         (Resolve): Defend against Error, fixes 9407-003.
37155         (Resolve_Discrete_Subtype_Indication): Defend against Error.
37156
37157         * sinfo.ads (N_Error): Now has Etype field (which will be set
37158         to Any_Type to help error recovery).
37159
37160 2001-10-08  Richard Kenner  <kenner@gnat.com>
37161
37162         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
37163         Consistently set MEM attributes from expression; fixes
37164         bootstrap failure on x86.
37165
37166 2001-10-08  Geert Bosch  <bosch@gnat.com>
37167
37168         * 5oosinte.adb: Add 2001 to copyright notice.
37169
37170 2001-10-08  Geert Bosch  <bosch@gnat.com>
37171
37172         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
37173
37174         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
37175
37176 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
37177
37178         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
37179
37180 2001-10-05  Geert Bosch  <bosch@gnat.com>
37181
37182         * adaint.h: Small formatting fix.
37183
37184 2001-10-04  Geert Bosch  <bosch@gnat.com>
37185
37186         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
37187         Arg is int, not FILE *, in dummy version of functions.
37188
37189         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
37190         Arg is int, not FILE *.
37191
37192 2001-10-04  Geert Bosch  <bosch@gnat.com>
37193
37194         * 3lsoccon.ads: Added file, missed with initial check ins.
37195
37196         * 4lintnam.ads: Fix header format.
37197         Change Linux to GNU/Linux.
37198
37199         * 5iosinte.adb: Change Linux to GNU/Linux.
37200
37201         * 5iosinte.ads: Change Linux to GNU/Linux.
37202
37203         * 5itaprop.adb: Change Linux to GNU/Linux.
37204
37205         * 5itaspri.ads: Change Linux to GNU/Linux.
37206         Update copyright notice.
37207
37208         * 5lintman.adb: Change Linux to GNU/Linux.
37209
37210         * 5lml-tgt.adb: Change Linux to GNU/Linux.
37211
37212         * 5losinte.ads: Change Linux to GNU/Linux.
37213
37214         * 5lsystem.ads: Change Linux to GNU/Linux.
37215
37216         * 5qosinte.adb: Change Linux to GNU/Linux.
37217
37218         * 5qosinte.ads: Change Linux to GNU/Linux.
37219
37220         * 5qparame.ads: Change Linux to GNU/Linux.
37221
37222         * 5qtaprop.adb: Change Linux to GNU/Linux.
37223
37224         * 5qtaspri.ads: Change Linux to GNU/Linux.
37225         Add 2001 to copyright notice.
37226
37227         * 5vintman.ads: Change Linux to GNU/Linux.
37228         Fix header format.  Add 2001 to copyright notice.
37229
37230         * g-soccon.ads: Change Linux to GNU/Linux.
37231
37232         * g-trasym.ads: Change Linux to GNU/Linux.
37233         Add 2001 to copyright notice.
37234
37235         * memtrack.adb: Change Linux to GNU/Linux.
37236
37237         * s-intman.ads: Change Linux to GNU/Linux.
37238         Add 2001 to copyright notice.  Fix header format.
37239
37240         * s-stache.adb: Change Linux to GNU/Linux.
37241
37242         * adaint.c: Change Linux to GNU/Linux.
37243
37244         * cio.c: Change Linux to GNU/Linux.
37245
37246         * cstreams.c: Change Linux to GNU/Linux.
37247
37248         * init.c: Change Linux to GNU/Linux.
37249
37250         * gmem.c: Change Linux to GNU/Linux.
37251
37252         * tracebak.c: Change Linux to GNU/Linux.
37253
37254
37255 2001-10-02  Geert Bosch  <bosch@gnat.com>
37256
37257         * misc.c (insert_default_attributes): Add dummy version.