OSDN Git Service

5d4f516e7714e95ab39eab280ac7fa7a62a92002
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-08-06  Samuel Tardieu  <sam@rfc1149.net>
2
3         * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
4
5 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
6
7         * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
8         of incomplete type.
9
10         * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
11         of a formal parameter of an incomplete type. Improve error message for
12         other improper uses of incomplete types.
13
14 2008-08-06  Robert Dewar  <dewar@adacore.com>
15
16         * gnat_ugn.texi: Clarify -gnato documentation
17
18 2008-08-06  Thomas Quinot  <quinot@adacore.com>
19
20         * gcc-interface/Makefile.in,
21         g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
22         g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
23         g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
24         g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
25         g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
26         g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
27         g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
28         g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
29         g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
30         Remove GNAT.Sockets.Constants. This internal package is replaced by
31         System.OS_Constants.
32
33 2008-08-06  Thomas Quinot  <quinot@adacore.com>
34
35         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
36         Remove obsolete targets referencing gen-soccon
37         When generating s-oscons.ads, use a file name that includes the
38         THREAD_KIND, to ensure that the (potentially different) version from a
39         previous build with a different threads flavour does not get reused.
40
41 2008-08-06  Thomas Quinot  <quinot@adacore.com>
42
43         * sem_res.adb: Minor reformatting
44
45         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
46         only when the operating system reports a non-existing file or directory
47         (ENOENT), otherwise raise Name_Error.
48
49         * exp_ch11.adb: Minor reformatting
50
51 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
52
53         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
54         incomplete, add the access_to_subprogram type to the list of private
55         dependents only if the incomplete type will be completed in the current
56         scope.
57         (Build_Discriminant_Constraints): If the type of the discriminant is
58         access_to_variable, reject a constraint that is access_to_constant.
59
60 2008-08-06  Thomas Quinot  <quinot@adacore.com>
61
62         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
63         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
64         g-sttsne-dummy.ads: New files.
65
66         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
67         with pragma Unimplemented_Unit for sockets packages on Nucleus.
68
69 2008-08-06  Pascal Obry  <obry@adacore.com>
70
71         * adaint.c: Another fix for ACL support on Windows.
72
73 2008-08-06  Javier Miranda  <miranda@adacore.com>
74
75         * exp_disp (Expand_Interface_Actuals): Adds missing support for
76         expansion of calls to subprograms using selected components.
77
78 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
79
80         * sem_res.adb (Resolve_Call): Use base type to determine whether a
81         dereference is needed because a subtype of an access_to_subprogram is
82         simply an access-subtype
83
84 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
85
86         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
87         parameters, always specify the expected separator.
88
89 2008-08-06  Thomas Quinot  <quinot@adacore.com>
90
91         * xnmake.adb: Use new XUtil package for platform independent text
92         output.
93
94 2008-08-06  Vincent Celier  <celier@adacore.com>
95
96         * gnat_ugn.texi: Document compiler switch -gnateG
97
98 2008-08-06  Quentin Ochem  <ochem@adacore.com>
99
100         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
101         in the case of an empty pattern size.
102         (Compute_Result): Do not do any computation in the case of an empty
103         pattern size.
104         (Report_Result): Fixed computation of the overflow guard.
105
106 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
107
108         * g-awk.adb (Finalize): Do not use directly objects of the type in the
109         finalization routine to prevent elaboration order anomalies in new
110         finalization scheme.
111
112 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
113
114         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
115         declaration for the same type.
116
117 2008-08-06  Thomas Quinot  <quinot@adacore.com>
118
119         * sem.adb: Minor rewording (comment)
120
121 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
122
123         * g-comlin.adb (Define_Switch, Get_Switches): New.
124         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
125         ungrouping switches.
126         (For_Each_Simple_Switch): Allow more control over parameters handling.
127         This generic method now allows ungrouping of switches with parameters
128         and switches with more than one letter after the prefix.
129         (Set_Command_Line): Take care of switches that are prefixed with a
130         switch handling parameters without delimiter (-gnatya and -gnaty3 for
131         example).
132         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
133         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
134         the operation.
135         (Start, Alias_Switches, Group_Switches): Take care of parameters
136         possibly present inside a group.
137
138         * g-comlin.ads (Define_Switch): New method used to define a list of
139         expected switches, that are necessary for correctly ungrouping switches
140         with more that one character after the prefix.
141         (Get_Switches): Method that builds a getopt string from the list of
142         switches as set previously by Define_Switch.
143         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
144         status of the operation. Also allow the removal of switches with
145         parameters only.
146         (Command_Line_Configuration_Record): Maintain a list of expected
147         switches.
148
149 2008-08-06  Doug Rupp  <rupp@adacore.com>
150
151         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
152         TARGET_MALLOC64 clear.
153
154         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
155         if TARGET_MALLOC64 clear.
156
157         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
158         (TARGET_MALLC64): New macro. Default to clear.
159
160 2008-08-06  Doug Rupp  <rupp@adacore.com>
161
162         * gcc-interface/utils2.c (snames.h) Include
163         (TARGET_ABI_OPEN_VMS): Initialize.
164         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
165         for Convention C.
166
167 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
168
169         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
170         null exclusion in a discriminant declaration
171
172         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
173         indicators when type is not an access type.
174
175         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
176         indicators when type is not an access type.
177
178 2008-08-06  Javier Miranda  <miranda@adacore.com>
179
180         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
181         with the target interface before expanding the code of the interface
182         conversion.
183
184 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
185
186         * freeze.adb:
187         (Freeze_Entity): A deferred constant does not violate the restriction
188         No_Default_Initialization, 
189
190         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
191         can carry a null exclusion indicator, and on which an error may be
192         posted if the indicator is redundant.
193
194         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
195         does not apply to a subtype mark that already excludes null.
196
197         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
198         exclusion does not apply to a subtype mark that already excludes null.
199
200 2008-08-05  Thomas Quinot  <quinot@adacore.com>
201
202         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
203
204 2008-08-05  Doug Rupp  <rupp@adacore.com>
205
206         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
207
208 2008-08-05  Thomas Quinot  <quinot@adacore.com>
209
210         * gsocket.h: Make this file includable in a Nucleus environment, which
211         does not support sockets.
212
213         * socket.c: Remove Nucleus-specific hack.
214
215 2008-08-05  Pascal Obry  <obry@adacore.com>
216
217         * adaint.c: Remove support for readable attribute on vxworks and nucleus
218
219 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
220
221         * sem_attr.adb:
222         (Analyze_Attribute, case 'Result): handle properly the case where some
223         operand of the expression in a post-condition generates a transient
224         block.
225
226         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
227         right-hand side when it is an anonymous access_to_subprogram, to force
228         static accessibility check when needed.
229
230 2008-08-05  Sergey Rybin  <rybin@adacore.com>
231
232         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
233         rule according to the change in the rule option.
234         Add documentation for -gnatw.b/-gnatw.B
235
236 2008-08-05  Robert Dewar  <dewar@adacore.com>
237
238         * ug_words: Add entries for -gnatw.b/-gnatw.B
239
240         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
241
242 2008-08-05  Vincent Celier  <celier@adacore.com>
243
244         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
245         (File).
246         
247         * a-ztdeio.adb: Ditto.
248
249 2008-08-05  Pascal Obry  <obry@adacore.com>
250
251         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
252         readable attribute.
253
254 2008-08-05  Vincent Celier  <celier@adacore.com>
255
256         * s-wchwts.adb:
257         (Wide_String_To_String): Returns a String with the same 'First as its
258         parameter S.
259         (Wide_Wide_String_To_String): Ditto
260         
261         * s-wchwts.ads:
262         (Wide_String_To_String): Document that the lowest index of the returned
263         String is equal to S'First.
264
265 2008-08-05  Thomas Quinot  <quinot@adacore.com>
266
267         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
268
269         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
270         s-oscons.ads
271
272 2008-08-05  Robert Dewar  <dewar@adacore.com>
273
274         * opt.ads (Warn_On_Biased_Representation): New flag
275         
276         * sem_ch13.adb:
277         (Analyze_Attribute_Definition_Clause): Issue warning when biased
278         representation is required.
279         (Minimum_Size): Don't allow biasing if enum rep clause case
280         
281         * sem_warn.adb:
282         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
283         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
284         
285         * usage.adb: Add lines for -gnatw.b/B switches
286
287 2008-08-05  Pascal Obry  <obry@adacore.com>
288
289         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
290
291         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
292
293 2008-08-05  Thomas Quinot  <quinot@adacore.com>
294
295         * socket.c: Minor reformatting.
296
297 2008-08-05  Robert Dewar  <dewar@adacore.com>
298
299         * sem_ch3.adb: Minor reformatting
300
301         * prj-nmsc.adb: Minor reformatting
302
303 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
304
305         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
306         visibility check on the component type if the simple test fails.
307
308 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
309
310         * init.c (__gnat_install_handler for linux): If we are building the
311         Xenomai run time then we need to do two additional things: avoid
312         memory swapping and transform the Linux environment task into a native
313         Xenomai task.
314
315         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
316         time): Use interface to Xenomai native skin and avoid linux-specific
317         way of setting CPU affinity.
318         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
319
320 2008-08-05  Bob Duff  <duff@adacore.com>
321
322         * checks.ads: Minor comment fix
323
324 2008-08-05  Thomas Quinot  <quinot@adacore.com>
325
326         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
327         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
328         CS8.
329
330 2008-08-05  Robert Dewar  <dewar@adacore.com>
331
332         * mlib.adb: Minor code reorganization
333         Minor reformatting
334
335         * make.adb: Minor reformatting
336
337         * prj-attr.ads: Minor reformatting
338
339         * s-os_lib.adb: Minor reformatting
340
341         * s-fileio.adb: Minor code reorganization
342         Minor reformatting
343
344         * prj.ads: Minor reformatting
345
346 2008-08-05  Bob Duff  <duff@adacore.com>
347
348         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
349         unresolved initial value of "null", because it causes implicitly
350         generated "=" operators to be ambiguous, and because this type should
351         not be passed to gigi.
352
353 2008-08-05  Vincent Celier  <celier@adacore.com>
354
355         * mlib.adb: Update comments.
356
357         * make.adb (Switches_Of): Check for Switches (others), before checking
358         for Default_Switches ("Ada").
359         (Gnatmake): Use Builder'Switches (others) in preference to
360         Builder'Default_Switches ("Ada") if there are several mains.
361
362         * prj-attr-pm.adb:
363         (Add_Attribute): Add component Others_Allowed in Attribute_Record
364         aggregate.
365
366         * prj-attr.adb:
367         Add markers to indicates that attributes Switches allow others as index
368         (Others_Allowed_For): New Boolean function, returning True for
369         attributes with the mark.
370         (Initialize): Recognize optional letter 'O' as the marker for
371         associative array attributes where others is allowed as the index.
372
373         * prj-attr.ads:
374         (Others_Allowed_For): New Boolean function
375         (Attribute_Record): New Boolean component Others_Allowed
376         
377         * prj-dect.adb:
378         (Parse_Attribute_Declaration): For associative array attribute where
379         others is allowed as the index, allow others as an index.
380
381         * prj-nmsc.adb:
382         (Process_Binder): Skip associative array attributes with index others
383         (Process_Compiler): Ditto
384
385         * prj-util.adb:
386         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
387         index is All_Other_Names.
388
389         * prj.ads:
390         (All_Other_Names): New constant
391
392         * prj-proc.adb:
393         (Process_Declarative_Items): Skip associative array attribute when index
394         is reserved word "others".
395
396 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
397
398         * gen-oscons.c: Adapt for VMS where termios.h is not available.
399
400 2008-08-05  Thomas Quinot  <quinot@adacore.com>
401
402         * a-rttiev.adb: Minor reformatting (comments)
403
404         * gen-soccon.c: Rename to gen-oscons.c
405
406         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
407         GNAT.Sockets.Constants.
408         Add new constants for GNAT.Serial_Communications and System.File_IO.
409
410 2008-08-05  Javier Miranda  <miranda@adacore.com>
411
412         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
413         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
414         implementation of this routine has been simplified.
415
416 2008-08-05  Pascal Obry  <obry@adacore.com>
417
418         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
419         Set_Read_Only Win32 implementation.
420
421 2008-08-05  Thomas Quinot  <quinot@adacore.com>
422
423         * exp_strm.adb: Minor reformatting (comments)
424
425         * sem_ch12.adb: Minor reformatting.
426
427 2008-08-05  Robert Dewar  <dewar@adacore.com>
428
429         * sem_ch3.adb: Minor reformatting
430
431         * checks.adb: Minor reformatting
432
433 2008-08-05  Thomas Quinot  <quinot@adacore.com>
434
435         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
436         restriction on Prefix.
437
438 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
439
440         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
441         methods needed to handle switch sections when building a command line.
442         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
443         Current_Section): New public methods or methods modified to handle
444         building command lines with sections.
445         (Set_Command_Line): Take into account sections when analysing a switch
446         string.
447         (Start): Sort the switches by sections before iterating the command line
448         elements.
449         
450         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
451         Is_New_Section, Current_Section): New methods or methods modified to
452         handle building command lines with sections.
453
454 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
455
456         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
457         discriminants, indicate that the corresponding object declaration has
458         no initialization, to prevent spurious warnings when the access type is
459         null-excluding.
460
461 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
462
463         * sem_res.adb (Resolve_Call): If this is a call to the predefined
464         Abort_Task, warn if the call appears within a protected operation.
465
466 2008-08-04  Robert Dewar  <dewar@adacore.com>
467
468         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
469
470 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
471
472         * sem_ch3.adb:
473         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
474         anonymous access to protected subprogram that is the return type of the
475         specification of a subprogram body.
476
477         * sem_ch6.adb:
478         (Analyze_Subprogram_Body): if the return type is an anonymous access to
479         subprogram, freeze it now to prevent access anomalies in the back-end.
480
481         * exp_ch9.adb: Minor code cleanup.
482         Make sure that new declarations are inserted into the tree before
483         analysis (from code reading).
484
485 2008-08-04  Robert Dewar  <dewar@adacore.com>
486
487         * exp_ch5.adb:
488         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
489         at point of return.
490
491 2008-08-04  Thomas Quinot  <quinot@adacore.com>
492
493         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
494
495 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
496
497         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
498
499 2008-08-04  Javier Miranda  <miranda@adacore.com>
500
501         * sem_prag.adb (Process_Convention): Add missing support for
502          N_Private_Extension_Declaration nodes.
503
504 2008-08-04  Robert Dewar  <dewar@adacore.com>
505
506         * exp_ch4.adb: Minor reformatting
507
508 2008-08-04  Pascal Obry  <obry@adacore.com>
509
510         * adaint.h: Add missing prototype.
511
512         * adaint.c: Refine support for Windows file attributes.
513
514 2008-08-04  Robert Dewar  <dewar@adacore.com>
515
516         * sem_res.adb:
517         (Valid_Conversion): Catch case of designated types having different
518         sizes, even though they statically match.
519
520 2008-08-04  Javier Miranda  <miranda@adacore.com>
521
522         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
523         added in previous patch to handle access to subprograms.
524
525 2008-08-04  Robert Dewar  <dewar@adacore.com>
526
527         * freeze.adb:
528         (Freeze_Entity): Only check No_Default_Initialization restriction for
529         constructs that come from source
530
531 2008-08-04  Thomas Quinot  <quinot@adacore.com>
532
533         * exp_ch6.adb: Minor comment fix.
534
535         * sem_ch4.adb: Minor reformatting.
536
537 2008-08-04  Robert Dewar  <dewar@adacore.com>
538
539         * sem_res.adb: (Large_Storage_Type): Improve previous change.
540
541 2008-08-04  Pascal Obry  <obry@adacore.com>
542
543         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
544         file attributes.
545
546 2008-08-04  Javier Miranda  <miranda@adacore.com>
547
548         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
549         for N_Formal_Object_Declaration nodes. Adding kludge required by
550         First_Formal to provide its functionality with access to functions.
551         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
552         for anonymous access types returned by functions.
553
554         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
555         conversion of null-excluding access types (required only once to force
556         the generation of the required runtime check).
557
558         * sem_type.adb (Covers): minor reformating
559
560         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
561         with internally generated nodes. Avoid generating the error inside init
562         procs.
563
564         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
565         (Resolve_Null): Generate the null-excluding check in case of assignment
566         to a null-excluding object.
567         (Valid_Conversion): Add missing support for anonymous access to
568         subprograms.
569
570         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
571         anonymous access types whose designated type is an itype. This case
572         occurs with anonymous access to protected subprograms types.
573         (Analyze_Return_Type):  Add missing support for anonymous access to
574         protected subprogram.
575
576         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
577         subprograms addition of missing check on matching convention. Required
578         to properly handle access to protected subprogram types.
579
580         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
581         null excluding access types.
582
583 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
584
585         * sem_ch12.adb: Add comments
586
587         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
588         access type and the allocator is not initialized, warn rather than
589         reporting an error.
590
591 2008-08-04  Robert Dewar  <dewar@adacore.com>
592
593         * exp_ch4.adb: Minor reformatting
594
595         * exp_dist.adb: Minor reformatting
596
597         * g-comlin.adb: Minor reformatting
598
599 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
600
601         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
602         target to the type of the aggregate in the case where the target object
603         is class-wide.
604
605         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
606         result type is class-wide and inherently limited, and the expression
607         has a specific type, create a return object of the specific type, for
608         more efficient handling of returns of build-in-place aggregates (avoids
609         conversions of the class-wide return object to the specific type on
610         component assignments).
611
612         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
613         about a type mismatch for a class-wide function with a return object
614         having a specific type when the object declaration doesn't come from
615         source. Such an object can result from the expansion of a simple return.
616
617 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
618
619         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
620
621         * gcc-interface/Makefile.in: Use 64bit-specific system files when
622         compiling for 64bit windows.
623
624 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
625
626         * g-comlin.adb (Group_Switches): Preserve the switch order when
627         grouping and allow switch grouping of switches with more than one
628         character extension (e.g. gnatw.x).
629         (Args_From_Expanded): Remove this now obsolete method.
630
631 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
632
633         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
634         chain at once, to ensure that type is properly decorated for back-end,
635         when allocator appears within a loop.
636
637 2008-08-04  Kevin Pouget  <pouget@adacore.com>
638
639         * snames.h, snames.adb, snames.ads:
640         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
641
642         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
643         Build_To_Any_Call and Build_TypeCode_Call procedures.
644
645         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
646
647         * rtsfind.ads: Add corresponding names.
648
649         * tbuild.adb: Update prefix restrictions to allow '_' character.
650
651 2008-08-04  Doug Rupp  <rupp@adacore.com>
652
653         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
654         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
655         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
656         use it.  Calculate pointer range overflow using 64bit types.
657
658 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
659
660         * sem_ch3.adb (Access_Definition): A formal object declaration is a
661         legal context for an anonymous access to subprogram.
662
663         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
664         indirect call, report success to the caller to include possible
665         interpretation.
666
667         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
668         check when the type
669         of the extended return is an anonymous access_to_subprogram type.
670
671         * sem_res.adb:
672         (Resolve_Call): Insert a dereference if the type of the subprogram is an
673         access_to_subprogram and the context requires its return type, and a
674         dereference has not been introduced previously.
675
676 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
677
678         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
679         gnatcheck support in GPS.
680
681 2008-08-04  Vincent Celier  <celier@adacore.com>
682
683         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
684         requested
685
686 2008-08-04  Vincent Celier  <celier@adacore.com>
687
688         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
689         variable, but don't check the resulting value as it has no impact on
690         the processing.
691         
692         * opt.ads:
693         (Generate_Processed_File): New Boolean flag, set to True in the compiler
694         when switch -gnateG is used.
695         
696         * prep.adb:
697         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
698         when the source is modified by the preprocessor and there is no
699         preprocessing errors.
700         
701         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
702         
703         * sinput-l.adb:
704         (Load_File): Output the result of preprocessing if the source text was
705         modified.
706         
707         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
708         
709         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
710         
711         * ug_words: Add VMS equivalent for -gnateG
712         
713         * vms_data.ads:
714         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
715
716 2008-08-04  Doug Rupp  <rupp@adacore.com>
717
718         * gcc-interface/utils2.c:
719         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
720         in 32bit descriptor.
721
722 2008-08-04  Robert Dewar  <dewar@adacore.com>
723
724         * par-ch10.adb: Minor reformatting
725
726         * i-cobol.adb: Minor reformatting.
727
728 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
729
730         * sem_ch3.adb (Access_Definition): Create an itype reference for an
731         anonymous access return type of a regular function that is not a
732         compilation unit.
733
734 2008-08-04  Vincent Celier  <celier@adacore.com>
735
736         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
737         
738         * snames.adb: New standard name Global_Compilation_Switches
739         
740         * snames.ads: New standard name Global_Compilation_Switches
741
742         * make.adb: Correct spelling error in comment
743
744 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
745
746         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
747         target.
748
749 2008-08-04  Thomas Quinot  <quinot@adacore.com>
750
751         * sem_ch10.adb: Minor comment fix.
752
753 2008-08-04  Robert Dewar  <dewar@adacore.com>
754
755         * restrict.adb: Improved messages for restriction warnings
756
757         * restrict.ads: Improved messages for restriction messages
758
759         * s-rident.ads (Profile_Name): Add No_Profile
760
761 2008-08-04  Robert Dewar  <dewar@adacore.com>
762
763         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
764
765 2008-08-04  Robert Dewar  <dewar@adacore.com>
766
767         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
768
769 2008-08-04  Vincent Celier  <celier@adacore.com>
770
771         * prj-proc.adb:
772         (Copy_Package_Declarations): When inheriting package Naming from a
773         project being extended, do not inherit source exception names.
774
775 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
776
777         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
778         list of declaration to find previous subprogram, do not go to the
779         original node of a generic unit.
780
781 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
782
783         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
784         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
785
786 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
787
788         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
789         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
790         and adjust for above renaming.
791         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
792         gnu_expr_alt_type parameter.  Convert the expression to it instead
793         of changing its type in place.
794         (build_function_stub): Adjust call to above function.
795
796 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
797
798         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
799         code.  Do not get full definition of deferred constants with address
800         clause for a use.  Do not ignore deferred constant definitions with
801         address clause.  Ignore constant definitions already marked with the
802         error node.
803         <object>: Remove obsolete comment.  For a deferred constant with
804         address clause, get the initializer from the full view.
805         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
806         Rework and remove obsolete comment.
807         <N_Object_Declaration>: For a deferred constant with address clause,
808         mark the full view with the error node.
809         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
810         formatting nits.
811
812 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
813
814         * rtsfind.ads: Add block IO versions of stream routines for Strings.
815         
816         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
817         sem_prag.adb, snames.adb, snames.ads, snames.h,
818         par-prag.adb: Undo previous stream related changes.
819         
820         * s-rident.ads: Add new restriction No_Stream_Optimizations.
821         
822         * s-ststop.ads, s-ststop.adb: Comment reformatting.
823         Define enumeration type to designate different IO mechanisms.
824         Enchance generic package Stream_Ops_Internal to include an
825         implementation of Input and Output.
826
827         * exp_attr.adb (Find_Stream_Subprogram): If restriction
828         No_Stream_Optimization is active, choose the default byte IO
829         implementations of stream attributes for Strings.
830         Otherwise use the corresponding block IO version.
831
832 2008-08-01  Olivier Hainque  <hainque@adacore.com>
833         
834         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
835         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
836
837 2008-08-01  Robert Dewar  <dewar@adacore.com>
838
839         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
840         convert plain identifier into defining identifier.
841
842 2008-08-01  Robert Dewar  <dewar@adacore.com>
843
844         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
845         warnings
846
847         * lib-xref.adb: Add error defense.
848
849 2008-08-01  Bob Duff  <duff@adacore.com>
850
851         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
852
853 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
854
855         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
856         correct accessibility levels. In the "when others" case, retrieve the
857         access level of the Etype of Prev rather than Prev_Orig, because the
858         original exression has not always been analyzed.
859
860 2008-08-01  Robert Dewar  <dewar@adacore.com>
861
862         * prj-nmsc.adb: Minor reformatting
863
864         * sem_ch4.adb: Minor reformatting
865         Minor code reorganization
866
867         * prj.ads: Minor reformatting
868
869         * s-os_lib.adb: Minor reformatting
870
871         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
872         half encodings
873
874         * scans.ads: Minor reformatting.
875
876         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
877         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
878
879         * sem_res.adb:
880         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
881
882         * sem_ch12.adb: Minor comment reformatting
883
884         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
885         keyword
886
887 2008-08-01  Robert Dewar  <dewar@adacore.com>
888
889         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
890         generating code
891
892 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
893
894         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
895         converted is a real literal and the target type has static bounds,
896         perform the conversion exactly to prevent floating-point anomalies on
897         some targets.
898
899 2008-08-01  Vincent Celier  <celier@adacore.com>
900
901         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
902         
903         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
904         
905         * prj.adb (Object_Exist_For): Use Object_Generated, not
906         Objects_Generated that is removed and was never modified anyway.
907
908         * prj.ads:
909         (Path_Syntax_Kind): New enumeration type
910         (Language_Config): New component Path_Syntax, defaulted to Host.
911         Components PIC_Option and Objects_Generated removed, as they are not
912         used.
913
914         * snames.adb: New standard name Path_Syntax
915         
916         * snames.ads: New standard name Path_Syntax
917
918 2008-08-01  Vincent Celier  <celier@adacore.com>
919
920         * mlib-utl.adb:
921         (Adalib_Path): New variable to store the path of the adalib directory
922         when procedure Specify_Adalib_Dir is called.
923         (Lib_Directory): If Adalib_Path is not null, return its value
924         (Specify_Adalib_Dir): New procedure
925         
926         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
927
928 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
929
930         * sem_prag.adb:
931         (Check_Precondition_Postcondition): If not generating code, analyze the
932         expression in a postcondition that appears in a subprogram body, so that
933         it is properly decorated for ASIS use.
934
935 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
936
937         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
938         Orig_Prev to Prev in the case where the actual is N_Function_Call or
939         N_Identifier. This was interfering with other cases that are rewritten
940         as N_Identifier, such as allocators, resulting in passing of the wrong
941         accessibility level, and based on testing this code is apparently no
942         longer needed at all.
943
944 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
945
946         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
947         procedure call whose prefix
948         is a parameterless function call that returns an access_to_procedure.
949
950 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
951
952         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
953         for RTX. Adding a suffix that is incremented at each iteration.
954
955 2008-08-01  Robert Dewar  <dewar@adacore.com>
956
957         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
958         Raise_Exception
959
960 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
961
962         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
963         paths, which are authorized by Windows but can lead to errors when used
964         elsewhere.
965
966 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
967
968         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
969         a pending instantiation for the body of a subprogram that is to be
970         inlined.
971
972         * sem_ch12.adb:
973         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
974
975         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
976         create a pending instance for its body, so that calls to the subprogram
977         can be inlined by the back-end.
978
979 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
980
981         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
982         rts-rtx-w32).
983
984 2008-08-01  Robert Dewar  <dewar@adacore.com>
985
986         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
987
988 2008-08-01  Doug Rupp  <rupp@adacore.com>
989
990         * gnat_rm.texi: Document new mechanism Short_Descriptor.
991         
992         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
993         mechanism values.
994
995         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
996         mechanism and Short_Descriptor mechanism values.
997
998         * snames.adb (preset_names): Add short_descriptor entry.
999
1000         * snames.ads: Add Name_Short_Descriptor.
1001
1002         * types.h: Add new By_Short_Descriptor mechanism values.
1003
1004         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1005         mechanism and Short_Descriptor mechanism values.
1006
1007         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1008         values.
1009         (Descriptor_Codes): Modify range for new mechanism values.
1010
1011         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1012         mechanism values.
1013
1014         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1015         (gnat_to_gnu_param): Handle By_Short_Descriptor.
1016
1017         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1018         (build_vms_descriptor32): New prototype.
1019         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1020
1021         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1022         argument in call fill_vms_descriptor.
1023
1024         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1025         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1026         (build_vms_descriptor): Renamed from build_vms_descriptor64. 
1027         (convert_vms_descriptor32): New function.
1028         (convert_vms_descriptor64): New function.
1029         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1030         descriptors.
1031
1032         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1033         no longer needed.
1034
1035 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1036
1037         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1038         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1039         name.
1040
1041 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1042
1043         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1044         current directory so only fully qualified names are allowed.
1045
1046 2008-08-01  Robert Dewar  <dewar@adacore.com>
1047
1048         * gnat_ugn.texi:
1049         Minor editing, remove uncomfortable use of semicolon
1050
1051         * s-ststop.adb: Add some ??? comments
1052
1053         * sem_ch10.adb: Minor reformatting
1054
1055         * snames.ads:
1056         Minor comment fixes, some pragmas were not properly
1057         categorized in the comments, documentation change only
1058
1059         * xref_lib.adb: Minor reformatting
1060
1061         * sinput.adb: Minor reformatting
1062
1063         * gnatchop.adb: Minor reformatting
1064
1065         * sem_util.ads: Minor reformatting.
1066
1067         * opt.ads: Minor documentation fix
1068
1069         * scng.adb: Minor reformatting
1070
1071         * prj-part.adb: Update comments
1072
1073 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1074
1075         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1076         tagged synchronized type, use corresponding record type.
1077
1078 2008-08-01  Doug Rupp  <rupp@adacore.com>
1079
1080         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1081         dummy transfer address for debugging.
1082         
1083         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1084
1085         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1086
1087 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
1088
1089         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
1090         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
1091
1092 2008-07-31  Pascal Obry  <obry@adacore.com>
1093
1094         * prj-nmsc.adb: Keep Object and Exec directory casing.
1095
1096 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
1097
1098         * system-rtx-rtss.ads
1099         Change the default stack size. It is important to set the commit part.
1100         
1101         * s-taprop-rtx.adb
1102         (Initialize): Get the clock resolution.
1103         (RT_Resolution): Return the clock resolution that is indicated by the
1104         system.
1105
1106         * s-parame-vxworks.adb
1107         Document that this body is used for RTX in RTSS (kernel) mode.
1108
1109         * gcc-interface/Makefile.in
1110         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
1111         s-parame-vxworks.adb body in order to have reasonable stack sizes in
1112         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
1113         cannot ask for too big values.
1114
1115 2008-07-31  Robert Dewar  <dewar@adacore.com>
1116
1117         * exp_aggr.adb: Minor reformatting
1118
1119         * makeutl.adb: Minor reformatting
1120
1121         * prj-env.adb: Minor reformatting
1122
1123 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1124
1125         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
1126         tagged type is completed by a concurrent type.
1127
1128 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1129
1130         * sem_aggr.adb:
1131         (Resolve_Record_Aggregate): Bypass error that a type without
1132         components must have a "null record" aggregate when compiling for Ada
1133         2005, since it's legal to give an aggregate of form (others => <>)
1134         for such a type.
1135
1136 2008-07-31  Javier Miranda  <miranda@adacore.com>
1137
1138         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
1139         handle synchronized types. Required to handle well the object.operation
1140         notation applied to synchronized types.
1141
1142 2008-07-31  Quentin Ochem  <ochem@adacore.com>
1143
1144         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
1145         anymore - just used internally.
1146         Added handling of very small tasks - when the theoretical size is
1147         already full at the point of the call.
1148         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
1149         not need to be added to the result.
1150
1151 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1152
1153         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
1154         corresponding spec is a primitive wrapper. Update comment.
1155
1156 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1157
1158         * bindgen.adb Comment reformatting. Update the list of run-time globals.
1159         (Gen_Adainit_Ada): Add the declaration, import and value set for
1160         configuration flag Canonical_Streams.
1161         (Gen_Adainit_C): Add the declaration and initial value of external
1162         symbol __gl_canonical_streams.
1163         
1164         * init.c: Update the list of global values computed by the binder.
1165         
1166         * opt.ads: Add flag Canonical_Streams.
1167         
1168         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
1169         semantically handled pragmas.
1170         
1171         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
1172         (Analyze_Pragma): Add case for pragma Canonical_Streams.
1173         
1174         * snames.adb: Add character value for name Canonical_Streams.
1175         
1176         * snames.ads:
1177         Add Name_Canonical_Streams to the list of configuration pragmas.
1178         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
1179         
1180         * snames.h: Add a definition for Pragma_Canonical_Streams.
1181         
1182         * s-ststop.adb:
1183         Add a flag and import to seize the value of external symbol
1184         __gl_canonical_streams. Update comment and initial value of constant
1185         Use_Block_IO.
1186         
1187         * gnat_rm.texi: Add section of pragma Canonical_Streams.
1188         
1189         * gnat_ugn.texi:
1190         Add pragma Canonical_Streams to the list of configuration pragmas.
1191
1192 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1193
1194         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
1195         has the form A.B.C and B is a unit renaming, analyze its compilation
1196         unit and add a with_clause on A.b to the context.
1197
1198 2008-07-31  Vincent Celier  <celier@adacore.com>
1199
1200         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
1201         return the empty string, instead of raising Constraint_Error.
1202
1203 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1204
1205         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
1206         
1207         * checks.adb (Apply_Accessibility_Check): Insert the check on
1208         Insert_Node.
1209         
1210         * exp_attr.adb:
1211         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
1212         to new parameter Insert_Node on call to Apply_Accessibility_Check.
1213         Necessary to distinguish the insertion node because the dereferenced
1214         formal may come from a rename, but the check must be inserted in
1215         front of the attribute.
1216         
1217         * exp_ch4.adb:
1218         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
1219         call to Apply_Accessibility_Check.
1220         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
1221         on call to Apply_Accessibility_Check.
1222         Minor reformatting
1223
1224 2008-07-31  Javier Miranda  <miranda@adacore.com>
1225
1226         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
1227         types when the candidate type is a synchronized type.
1228         
1229         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
1230         types, and complete management of synchronized types adding missing
1231         code to handle formal that is a synchronized type.
1232         
1233         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
1234         are not available and cause the compiler to blowup. Found compiling
1235         test with switch -gnatc
1236         
1237         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
1238         Has_Correct_Formal_Mode plus code cleanup.
1239
1240 2008-07-31  Bob Duff  <duff@adacore.com>
1241
1242         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
1243         recognized as two end-of-lines, but it should be just one.
1244
1245 2008-07-31  Thomas Quinot  <quinot@adacore.com>
1246
1247         * exp_ch9.adb: Minor reformatting
1248
1249         * tbuild.ads: Fix several occurrences of incorrectly referring to
1250         Name_Find as Find_Name.
1251
1252 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1253
1254         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
1255         and the context is an object declaration with non-static bounds, treat
1256         the aggregate as non-static.
1257
1258 2008-07-31  Vincent Celier  <celier@adacore.com>
1259
1260         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
1261         Move back spec of Parse_Single_Project to body, as it is not called
1262         outside of package Prj.Part.
1263         (Project_Data): Remove components Linker_Name, Linker_Path and
1264         Minimum_Linker_Options as they are no longer set.
1265         Remove function There_Are_Ada_Sources from package Prj and move code
1266         in the only place it was used, in Prj.Env.Set_Ada_Paths.
1267
1268 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1269
1270         * mlib-utl.ads: Fix typo.
1271
1272 2008-07-31  Robert Dewar  <dewar@adacore.com>
1273
1274         * sem_ch12.adb: Minor reformatting
1275
1276 2008-07-31  Sergey Rybin  <rybin@adacore.com>
1277
1278         * gnat_ugn.texi: Change the description of the
1279         Overly_Nested_Control_Structures: now the rule always requires a
1280         positive parameter for '+R' option
1281
1282 2008-07-31  Thomas Quinot  <quinot@adacore.com>
1283
1284         * g-pehage.adb: Minor reformatting
1285
1286 2008-07-31  Pascal Obry  <obry@adacore.com>
1287
1288         * s-finimp.ads: Minor reformatting.
1289
1290 2008-07-31  Vincent Celier  <celier@adacore.com>
1291
1292         * s-regexp.ads: Minor comment fix
1293
1294 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1295
1296         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
1297         so that we can compile this file successfully with -gnatc.
1298
1299 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1300
1301         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
1302         of the type when looking for stream subprograms for type String,
1303         Wide_String and Wide_Wide_String.
1304         
1305         * s-ststop.adb: Change the initialization expression of constant
1306         Use_Block_IO.
1307
1308 2008-07-31  Geert Bosch  <bosch@adacore.com>
1309
1310         * arit64.c:
1311         New file implementing __gnat_mulv64 signed integer multiplication with
1312         overflow checking
1313
1314         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
1315
1316         * gcc-interface/gigi.h:
1317         (standard_types): Add ADT_mulv64_decl
1318         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
1319
1320         * gcc-interface/utils.c:
1321         (init_gigi_decls): Add initialization of mulv64_decl
1322
1323         * gcc-interface/trans.c:
1324         (build_unary_op_trapv): New function
1325         (build_binary_op_trapv): New function
1326         (gnat_to_gnu): Use the above functions instead of
1327         build_{unary,binary}_op
1328
1329         * gcc-interface/Makefile.in
1330         (LIBGNAT_SRCS): Add arit64.c
1331         (LIBGNAT_OBJS): Add arit64.o
1332
1333 2008-07-31  Vincent Celier  <celier@adacore.com>
1334
1335         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
1336         Linker'Default_Switches are declared. Warn if they are declared.
1337
1338 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1339
1340         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
1341         Insert_Actions to place the pointer declaration in the code, rather
1342         than Insert_Before_And_Analyze, so that insertions of temporaries are
1343         kept in the proper order when transient scopes are present.
1344
1345
1346 2008-07-31  Robert Dewar  <dewar@adacore.com>
1347
1348         * einfo.adb (Spec_PPC): Now defined for generic subprograms
1349         
1350         * einfo.ads (Spec_PPC): Now defined for generic subprograms
1351         
1352         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
1353         subprogram case
1354
1355 2008-07-31  Vincent Celier  <celier@adacore.com>
1356
1357         * s-os_lib.adb: Minor comment fix
1358
1359 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1360
1361         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
1362         transfer pre/postconditions from generic copy to original tree, so that
1363         they will appear in each instance.
1364         (Process_PPCs): Do not transform postconditions into a procedure in a
1365         generic context, to prevent double expansion of check pragmas.
1366         
1367         * sem_attr.adb: In an instance, the prefix of the 'result attribute
1368         can be the renaming of the
1369         current instance, so check validity of the name accordingly.
1370
1371 2008-07-31  Robert Dewar  <dewar@adacore.com>
1372
1373         * mlib-utl.ads: Minor reformatting
1374
1375 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1376
1377         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
1378         from context. This attribute must be usable in Ada95 mode.
1379         The attribute can appear in the body of a function marked
1380         Inline_Always, but in this case the postocondition is not enforced.
1381         
1382         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
1383         of an inlined call pre- and postconditions are legal
1384
1385 2008-07-31  Vincent Celier  <celier@adacore.com>
1386
1387         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
1388         were for gprmake only
1389
1390 2008-07-31  Robert Dewar  <dewar@adacore.com>
1391
1392         * gnat_ugn.texi: Update -gnatN documentation.
1393
1394         * gnat_rm.texi: Add note about pre/postcondition
1395         pragmas not checked in conjunction with front-end inlining.
1396
1397 2008-07-31  Robert Dewar  <dewar@adacore.com>
1398
1399         * g-pehage.adb, g-pehage.ads: Minor reformatting
1400
1401 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1402
1403         * mlib-utl.ads, prj-makr.ads: Add comments.
1404
1405 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1406
1407         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) 
1408         [WINDOWS]: Add s-winext.o.
1409
1410 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
1411
1412         PR ada/36554
1413         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
1414         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
1415         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
1416         Set precision to 1 for subtype of BOOLEAN_TYPE.
1417         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
1418         (make_type_from_size): Deal with BOOLEAN_TYPE.
1419         * gcc-interface/misc.c (gnat_print_type): Likewise.
1420         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
1421         Set boolean_type_node as its translation in the table, as well
1422         as boolean_false_node for False and boolean_true_node for True.
1423         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
1424         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
1425         (create_param_decl): Deal with BOOLEAN_TYPE.
1426         (build_vms_descriptor): Likewise.
1427         (build_vms_descriptor64): Likewise.
1428         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
1429
1430 2008-07-30  Robert Dewar  <dewar@adacore.com>
1431
1432         * exp_ch9.adb: Minor reformatting
1433
1434         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
1435         if no primitive operation is found.
1436
1437         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
1438
1439         * sem_ch8.adb: Minor reformatting
1440
1441 2008-07-30  Laurent Pautet  <pautet@adacore.com>
1442
1443         * g-pehage.adb:
1444         Remove a limitation on the length of the words handled by the minimal
1445         perfect hash function generator.
1446
1447         * g-pehage.ads:
1448         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
1449         Fix some typos.
1450
1451 2008-07-30  Robert Dewar  <dewar@adacore.com>
1452
1453         * gnatlink.adb: Minor reformatting
1454
1455 2008-07-30  Thomas Quinot  <quinot@adacore.com>
1456
1457         * rtsfind.adb (Check_RPC): Check version consistency even when not
1458         generating RCI stubs. Provide more detailed error message in case of
1459         mismatch.
1460
1461 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
1462
1463         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
1464         as a actual in an instance, check for a missing attribute to prevent
1465         program_error on an illegal program.
1466         
1467         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
1468         error if primitive is not found, so that exception can be handled
1469         elsewhere on illegal programs.
1470
1471 2008-07-30  Robert Dewar  <dewar@adacore.com>
1472
1473         * uintp.adb (UI_GCD): Fix potential overflow
1474
1475 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
1476
1477         * einfo.adb: Flag245 is now used.
1478         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
1479         check to include functions.
1480         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1481         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
1482         include functions.
1483         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
1484         to the list of displayed flags.
1485
1486         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
1487         Wrapped_Entity. These two flags are now present in functions.
1488         New flag Is_Private_Primitive.
1489         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1490
1491         * exp_ch9.adb:
1492         (Build_Wrapper_Bodies): New subprogram.
1493         (Build_Wrapper_Body): The spec and body have been moved to in
1494         Build_Wrapper_ Bodies. Code cleanup.
1495         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
1496         Wrappers are now generated for primitives declared between the private
1497         and full view of a concurrent type that implements an interface.
1498         (Build_Wrapper_Specs): New subprogram.
1499         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
1500         creation mechanism with a call to Build_Wrapper_Bodies.
1501         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
1502         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
1503         (Expand_N_Task_Body): Replace the wrapper body creation
1504         mechanism with a call to Build_Wrapper_Bodies.
1505         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
1506         creation mechanism with a call to Build_Wrapper_Specs.
1507         (Is_Private_Primitive_Subprogram): New subprogram.
1508         (Overriding_Possible): Code cleanup.
1509         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
1510
1511         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
1512
1513         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
1514         (Process_Full_View): Build wrapper specs for all primitives
1515         that belong to a private view completed by a concurrent type
1516         implementing an interface.
1517         
1518         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
1519         is a primitive of a
1520         concurrent type with a private view that implements an interface, try to
1521         find the proper spec.
1522         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
1523         primitive if the type of its first parameter is a non-generic tagged
1524         private type.
1525         (Analyze_Subprogram_Specification): Code reformatting.
1526         (Disambiguate_Spec): New routine.
1527         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
1528         (Is_Private_Concurrent_Primitive): New routine.
1529
1530         * sem_ch6.ads:
1531         (Find_Corresponding_Spec): Add a formal to control the output of errors.
1532
1533 2008-07-30  Doug Rupp  <rupp@adacore.com>
1534
1535         * gigi.h (build_vms_descriptor64): New function prototype.
1536         (fill_vms_descriptor): Modified function prototype.
1537
1538         * utils.c (build_vms_descriptor64): New function.
1539
1540         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
1541
1542         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
1543         argument.
1544
1545         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
1546         64bit and 32bit descriptor and save the 64bit version as an alternate
1547         TREE_TYPE in the parameter.
1548         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
1549         thin pointer.
1550
1551         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
1552
1553 2008-07-30  Robert Dewar  <dewar@adacore.com>
1554
1555         * make.adb: Minor reformatting
1556
1557         * mlib-utl.adb: Minor reformatting
1558
1559         * osint.ads: Minor reformatting
1560
1561 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
1562
1563         * adaint.c
1564         (__gnat_file_exists): Do not use __gnat_stat for RTX.
1565         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
1566         avoid the use of this symbol from libgcc.a in RTX kernel mode.
1567
1568         * cio.c
1569         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
1570         the function RtPrintf for console output.
1571         
1572         * argv.c Do not use the environ variable for RTX.
1573         
1574         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
1575         been moved before the call to Osint.Add_Default_Search_Dirs in order
1576         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
1577         from the appropriate run time.
1578         
1579         * targparm.ads
1580         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
1581         target is a RTSS module for RTX.
1582         
1583         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
1584         RTX_RTSS_Kernel_Module
1585         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
1586
1587         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
1588         exception handling mechanism for Windows and RTX in Win32 mode, but
1589         not for RTX in kernel mode (RTSS).
1590         (LIBGNAT_SRCS): Remove ada.h
1591
1592 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
1593
1594         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
1595         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1596         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
1597         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
1598         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
1599         ALL_ADA_CFLAGS): Remove.
1600         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
1601         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1602         (GCC_CFLAGS): Remove X_CFLAGS.
1603         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
1604         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
1605         (ADA_CFLAGS): Substitute.
1606
1607 2008-07-30  Laurent Guerby  <laurent@guerby.net>
1608
1609         PR ada/5911
1610         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
1611         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
1612         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
1613         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
1614         by stamp-gnatlib2-rts.
1615         
1616 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1617
1618         PR documentation/15479
1619         * gnat-style.texi: Remove AdaCore copyright statement and GPL
1620         statement for GNAT.  Add @copying stanza, use it.  Update to
1621         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
1622         title as Front-Cover Text.
1623         * gnat_rm.texi: Likewise.
1624         * gnat_ugn.texi: Likewise.
1625
1626 2008-07-29  Jan Hubicka  <jh@suse.cz>
1627
1628         * trans.c (process_inlined_subprograms): Remove tree_really_inline
1629         check.
1630
1631 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
1632
1633         * gcc-interface: New directory.
1634
1635         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
1636         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
1637         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
1638         to gcc-interface subdirectory.
1639
1640 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1641
1642         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
1643
1644 2008-07-28  Jan Hubicka  <jh@suse.cz>
1645
1646         * misc.c (gnat_post_options): Do not set flag_no_inline.
1647
1648 2008-07-28  Richard Guenther  <rguenther@suse.de>
1649
1650         Merge from gimple-tuples-branch.
1651
1652         2008-07-22  Olivier Hainque  <hainque@adacore.com>
1653
1654         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
1655         this is called for an elab proc to be discarded if empty.
1656         * utils.c (end_subprog_body): Honor ELAB_P.
1657         (build_function_stub): Adjust call to end_subprog_body.
1658         * trans.c (Subprogram_Body_to_gnu): Likewise.
1659         (gigi): Reorganize processing of elab procs to prevent
1660         gimplifying twice, using the new end_subprog_body argument.
1661
1662         2008-07-19  Richard Guenther  <rguenther@suse.de>
1663
1664         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
1665         (utils.o): Likewise.
1666         * trans.c: Include tree-iterator.h.
1667         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
1668         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
1669         (set_expr_location_from_node): Likewise.
1670         (gigi): Tuplify.
1671         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
1672         of GENERIC_NEXT.
1673         * utils.c: Include tree-iterator.h.
1674         * gigi.h (gnat_gimplify_expr): Adjust prototype.
1675
1676         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
1677
1678         * trans.c: Include gimple.h instead of tree-gimple.h.
1679         * utils.c: Same.
1680
1681         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
1682
1683         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
1684
1685 2008-07-25  Jan Hubicka  <jh@suse.cz>
1686
1687         * utils.c (end_subprog_body): Remove inline trees check.
1688         * misc.c (gnat_post_options): Do not set flag_inline_trees.
1689
1690 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1691
1692         * raise-gcc.c: Move tsystem.h before tm.h.
1693
1694 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
1695
1696         * gnathtml.pl: New file.
1697
1698 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1699
1700         * targtyps.c (get_target_default_allocator_alignment): Use
1701         MALLOC_ABI_ALIGNMENT.
1702
1703 2008-07-17  Olivier Hainque  <hainque@adacore.com>
1704
1705         * adaint.c (__MINGW32__ section): Include ctype.h and define
1706         a fallback ISALPHA if IN_RTS.
1707         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha. 
1708
1709 2008-07-17  Olivier Hainque  <hainque@adacore.com>
1710
1711         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
1712         argument, to apply to references in addition to definitions.  Prevent
1713         setting TREE_STATIC on externals.
1714         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
1715
1716 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1717
1718         PR documentation/15479
1719         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
1720         Replace backets around optional parameters with @ovar
1721         where possible, use @r{[}, @r{]} otherwise.
1722         Replace some @r, @i, and @emph with @var where appropriate.
1723
1724 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1725
1726         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
1727
1728 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1729
1730         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
1731         -Wc++-compat warnings.
1732         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
1733         __gnat_locate_exec_on_path): Likewise.
1734         * decl.c (annotate_value): Likewise.
1735         * misc.c (gnat_handle_option): Likewise.
1736         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
1737         post_error_ne_tree): Likewise.
1738
1739 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
1740
1741         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
1742         version of its type, attempt to first convert its elements.
1743
1744 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
1745
1746         * Makefile.in: Fix *86 kfreebsd target specific pairs.
1747
1748 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
1749
1750         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
1751
1752 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1753
1754         * utils2.c (known_alignment): Derive the alignment from pointed-to
1755         types only if it is otherwise unknown.
1756         <INTEGER_CST>: Tidy.
1757         <MULT_EXPR>: Likewise.
1758         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
1759         that of the base.
1760
1761 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1762
1763         PR ada/36573
1764         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
1765
1766 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1767
1768         * gnat_rm.texi (Implementation Defined Characteristics)
1769         (Standard Library Routines): Use @smallexample for indented
1770         text.  Drop Indentation outside examples.
1771         * gnat_ugn.texi: Likewise.
1772
1773 2008-06-13  Olivier Hainque  <hainque@adacore.com>
1774
1775         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
1776         if undefined.
1777         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
1778         realignment with force_align_arg_pointer attribute on foreign
1779         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1780         
1781 2008-06-13  Olivier Hainque  <hainque@adacore.com>
1782
1783         * utils.c (rest_of_record_type_compilation): When computing
1784         encodings for the components of a variable size type, early
1785         strip conversions on the current position expression to make
1786         sure it's shape is visible.  Use remove_conversions for this
1787         purpose.
1788
1789 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1790
1791         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
1792         constrained subtype of a discriminated type, discard the fields that
1793         are beyond its limits according to its size.
1794
1795 2008-06-10  Olivier Hainque  <hainque@adacore.com>
1796
1797         * utils.c (create_subprog_decl): If this is for the 'main' entry
1798         point according to the asm name, redirect main_identifier_node.
1799
1800 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1801
1802         * decl.c (components_to_record): Adjust the packedness for the
1803         qualified union as well.
1804
1805 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
1806
1807         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
1808         checks non fatal.
1809
1810 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
1811
1812         * sem_res.adb (Large_Storage_Type): A type is large if it
1813         requires as many bits as Positive to store its values and its
1814         bounds are known at compile time.
1815         * sem_ch13.adb (Minimum_Size): Note that this function returns
1816         0 if the size is not known at compile time.
1817
1818 2008-06-06  Nicolas Setton  <setton@adacore.com>
1819             Olivier Hainque  <hainque@adacore.com>
1820
1821         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
1822         attribute, parallel descriptive type attached to another
1823         type for debug info generation purposes.
1824         * utils.c (add_parallel_type): New function, register
1825         parallel type to be attached to a type.
1826         (get_parallel_type): New function, fetch a registered
1827         parallel type, if any.
1828         (rest_of_record_type_compilation): Register the parallel
1829         type we make for variable size records.
1830         * gigi.h (add_parallel_type, get_parallel_type): Declare.
1831         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
1832         parallel debug types we make.
1833         * trans.c (extract_encoding, decode_name): New functions.
1834         (gigi): If the DWARF attribute extensions are available, setup
1835         to use them.
1836         * lang.opt: Register language specific processing request
1837         for -gdwarf+.
1838         * misc.c (gnat_dwarf_extensions): New global variable. How much
1839         do we want of our DWARF extensions. 0 by default.
1840         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
1841         (gnat_post_options): Map gnat_dwarf_extensions to the
1842         commonuse_gnu_debug_info_extensions for later processing.
1843         
1844 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
1845
1846         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
1847
1848 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1849
1850         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
1851         * gnat_ugn.texi (Style Checking)
1852         (Adding the Results of Compiler Checks to gnatcheck Output)
1853         (Example of Binder Output File): Fix typos.
1854         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
1855         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
1856         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
1857         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
1858         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
1859         sinfo.ads, utils.c: Fix typos in comments.
1860         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
1861
1862 2008-05-29  Thomas Quinot  <quinot@adacore.com>
1863
1864         * sem_eval.adb: Minor reformatting
1865
1866 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
1867
1868         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
1869         is abstract, do not apply abstractness check on subprogram if this is
1870         a renaming declaration.
1871
1872 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
1873
1874         PR ada/864
1875         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
1876         allow recognition of program suffix in addition to prefix.
1877         
1878         * gnatchop.adb (Locate_Executable): Add support for prefix.
1879         
1880         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
1881         mlib-utl.adb: Adjust calls to Program_Name.
1882
1883 2008-05-29  Robert Dewar  <dewar@adacore.com>
1884
1885         * sem_ch3.adb: Minor reformatting
1886         * sem_prag.adb: Minor reformatting
1887         * sem_res.adb: Minor reformatting
1888         * sinput-p.ads: Minor reformatting
1889
1890 2008-05-29  Javier Miranda  <miranda@adacore.com>
1891
1892         * sem_util.adb:
1893         (Abstract_Interface_List): Add missing support for full type-declaration
1894         associated with synchronized types.
1895
1896 2008-05-29  Robert Dewar  <dewar@adacore.com>
1897
1898         * sem_eval.adb (Is_Same_Value): Take care of several more cases
1899
1900 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
1901
1902         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
1903         access type, wrap the expression in a conversion to force an
1904         accessibility check.
1905
1906         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
1907         accessibility checks even when expansion is disabled in order to
1908         generate messages in the presence of previous errors or in
1909         semantics-only mode.
1910
1911 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
1912
1913         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
1914         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
1915
1916 2008-05-28  Vincent Celier  <celier@adacore.com>
1917
1918         PR ada/34446
1919         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
1920         preprocessing expressions
1921
1922 2008-05-28  Vincent Celier  <celier@adacore.com>
1923
1924         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
1925         for preprocessing
1926         
1927         * sinput-p.ads: Minor comment update and reformatting
1928
1929 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
1930
1931         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
1932         type has a deeper level than any master only when it is the type of an
1933         access parameter.
1934
1935 2008-05-28  Javier Miranda  <miranda@adacore.com>
1936
1937         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
1938
1939 2008-05-28  Javier Miranda  <miranda@adacore.com>
1940
1941         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
1942         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
1943         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
1944         Add code that was previously located in
1945         Find_Overridden_Synchronized_Primitive because it is only used here.
1946
1947 2008-05-28  Sergey Rybin  <rybin@adacore.com>
1948
1949         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
1950         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
1951
1952 2008-05-28  Robert Dewar  <dewar@adacore.com>
1953
1954         * restrict.ads:
1955         Add missing restrictions, and properly label all GNAT defined ones
1956         
1957         * rtsfind.ads:
1958         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
1959         Add entry for Ada.Task_Termination.Set_Specific_Handler
1960         Add entry for Ada.Task_Termination.Specific_Handler
1961         
1962         * s-rident.ads:
1963         Add missing restrictions and properly mark all gnat defined ones
1964         
1965         * sem_ch3.adb:
1966         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
1967         
1968         * sem_res.adb:
1969         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1970
1971         * gnat_rm.texi: Add missing restrictions, and properly label all
1972         GNAT defined ones
1973
1974 2008-05-28  Robert Dewar  <dewar@adacore.com>
1975
1976         * restrict.adb:
1977         (Check_Restriction): violation of restriction No_Finalization is
1978         treated as a serious error to stop expansion
1979
1980 2008-05-28  Robert Dewar  <dewar@adacore.com>
1981
1982         * exp_util.adb: Minor reformatting
1983         * exp_util.ads: Minor reformatting.
1984
1985 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
1986
1987         * Make-lang.in: Remove gprmake.
1988
1989         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
1990
1991 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
1992
1993         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
1994         improper progenitor names, and avoid cascaded errors.
1995
1996 2008-05-28  Robert Dewar  <dewar@adacore.com>
1997
1998         * gnat_rm.texi: Add note on Old giving warning when applied to constant
1999
2000         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2001         a constant
2002
2003 2008-05-28  Robert Dewar  <dewar@adacore.com>
2004
2005         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2006         size
2007
2008 2008-05-28  Robert Dewar  <dewar@adacore.com>
2009
2010         * exp_ch5.adb:
2011         (Expand_Simple_Function_Return): Copy unaligned result into temporary
2012
2013 2008-05-28  Javier Miranda  <miranda@adacore.com>
2014
2015         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2016         for user-defined predefined primitives.
2017         
2018         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2019         (Find_Overridden_Synchronized_Primitive): Ditto.
2020
2021         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2022
2023 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2024
2025         * a-ststio.adb, s-direio.adb:
2026         Further code clean up of previous change.
2027         Update comments.
2028
2029 2008-05-27  Vincent Celier  <celier@adacore.com>
2030
2031         * prj-nmsc.adb: Minor reformatting
2032
2033 2008-05-27  Bob Duff  <duff@adacore.com>
2034
2035         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2036         untagged private type with a tagged full type, where the full type has
2037         a self reference, create the corresponding class-wide type early, in
2038         case the self reference is "access T'Class".
2039
2040 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2041
2042         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2043         tasks and context is an object declaration. create master entity before
2044         expansion.
2045
2046 2008-05-27  Robert Dewar  <dewar@adacore.com>
2047
2048         * mlib-prj.adb: Minor reformatting
2049
2050         * prj-part.adb: Minor reformatting
2051
2052         * prj.ads: Minor reformatting
2053
2054         * exp_ch3.adb: Minor reformatting.
2055
2056         * sem_ch3.ads: Minor reformatting
2057
2058         * sem_eval.adb: Minor reformatting
2059
2060 2008-05-27  Vincent Celier  <celier@adacore.com>
2061
2062         * gnatcmd.adb:
2063         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2064
2065 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2066
2067         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2068         tasks, create an activation chain now, before the expansion into
2069         assignments and build-in-place calls that require the presence of an
2070         activation chain.
2071         (Backend_Processing_Possible): If the component type is inherently
2072         limited, the aggregate must be expanded into individual built-in-place
2073         assignments.
2074
2075         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2076         determine whether an allocation extra parameter must be built, to
2077         handle case of a private type whose full type is a discriminated type
2078         with defaults.
2079
2080 2008-05-27  Bob Duff  <duff@adacore.com>
2081
2082         * gnat_rm.texi:
2083         Document the new behavior regarding trampolines.
2084
2085 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2086
2087         * a-direio.adb, a-sequio.adb: Replace address clause by
2088         unrestricted_access, simpler and compatible with .NET.
2089
2090 2008-05-27  Vincent Celier  <celier@adacore.com>
2091
2092         * prj-part.adb:
2093         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
2094         a project file, so that symbolic links are not resolved.
2095
2096 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2097
2098         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
2099         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
2100         portable across GNAT targets, since this kind of address clause is not
2101         supported by VM back-ends (.NET/JGNAT).
2102
2103 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2104
2105         * bindgen.adb: Update comments.
2106         
2107         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
2108
2109 2008-05-27  Vincent Celier  <celier@adacore.com>
2110
2111         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
2112         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
2113         mlib-tgt.adb, prj-env.adb, prj-env.ads:
2114         (Path_Information): New record type
2115         Use component of type Path_Information when there are two paths, one in
2116         canonical format and one in display format.
2117         Update the project manager to these new components.
2118
2119 2008-05-27  Robert Dewar  <dewar@adacore.com>
2120
2121         * makeutl.adb: Minor reformatting
2122         * prj-nmsc.adb: Minor reformatting
2123         * s-stausa.adb: Minor reformatting
2124         * s-stausa.ads: Minor reformatting
2125         * sem_ch6.adb: Minor reformatting
2126
2127 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2128
2129         * sem_res.adb: Minor comment fixes
2130
2131 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2132
2133         * makeutl.adb: Minor code reorganization
2134
2135         * exp_aggr.adb: Add ??? comment
2136         Fix typo
2137
2138         * exp_ch6.adb: Minor reformatting
2139
2140 2008-05-27  Quentin Ochem  <ochem@adacore.com>
2141
2142         * s-stausa.adb (Initialize): Updated result initialization, and
2143         initialization of environment stack.
2144         (Fill_Stack): Improved computation of the pattern zone, taking into
2145         account already filled at the calling point.
2146         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
2147         Measure and Overflow_Guard.
2148         (Report_Result): Fixed computation of the result using new fields of
2149         Stack_Analyzer.
2150         
2151         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
2152         params by more explicit Stack_Size / Max_Pattern_Size params.
2153         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
2154         Added Stack_Used_When_Filling field.
2155         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
2156         Min_Measure and Max_Measure fields.
2157         
2158         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
2159
2160 2008-05-27  Vincent Celier  <celier@adacore.com>
2161
2162         * prj-nmsc.adb:
2163         (Check_File): Make sure that a unit that replaces the same unit in a
2164          project being extended is properly processed.
2165
2166 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2167
2168         * sem_ch3.adb:
2169         (Get_Discr_Value): Remove obsolete code that failed to find the value
2170         of a discriminant for an inherited task component appearing in a type
2171         extension.
2172
2173 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2174
2175         (System.File_IO.{Close, Delete, Reset}):
2176         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
2177         
2178         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
2179         Pass File parameter by reference.
2180
2181 2008-05-27  Vincent Celier  <celier@adacore.com>
2182
2183         * prj-nmsc.adb:
2184         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
2185         sources of the same project that have the same object file name.
2186         (Find_Explicit_Sources): Always remove a source exception that was not
2187         found.
2188
2189 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2190
2191         * sem_ch3.adb: Minor reformatting
2192
2193 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2194
2195         * sem_ch6.adb:
2196         (Is_Interface_Conformant): Handle properly a primitive operation that
2197         overrides an interface function with a controlling access result.
2198         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
2199         inherited and overriding operations, omit as well the conformance check
2200         on result types, to prevent spurious errors.
2201
2202 2008-05-27  Vincent Celier  <celier@adacore.com>
2203
2204         * makeutl.ads, makeutl.adb:
2205         (Set_Location): New procedure
2206         (Get_Location): New function
2207         (Update_Main): New procedure
2208
2209 2008-05-27  Vincent Celier  <celier@adacore.com>
2210
2211         * prj-nmsc.adb:
2212         (Check_Library): Allow standard project to be extended as a static
2213         library project.
2214         (Get_Mains): Do not inherit attribute Main in an extending library
2215         project.
2216
2217 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2218
2219         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
2220         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
2221         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
2222         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
2223         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
2224         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
2225         * system-mingw.ads (Always_Compatible_Rep): Likewise.
2226         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
2227         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
2228         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
2229         
2230 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2231
2232         * sem_attr.adb: add guard to previous patch.
2233
2234 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2235
2236         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
2237         a synchronized tagged type, do not attempt to build dispatch table for
2238         full view. The table is built for the corresponding record type, which
2239         has its own declaration.
2240
2241 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
2242
2243         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
2244         to the known type entity E, rather than setting it to Any_Type. Fixes
2245         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
2246         for objects whose type had an illegal constraint.
2247
2248 2008-05-27  Vincent Celier  <celier@adacore.com>
2249
2250         * gnat_ugn.texi:
2251         Add succinct documentation for attribute Excluded_Source_List_File
2252
2253 2008-05-27  Vincent Celier  <celier@adacore.com>
2254
2255         * prj-attr.adb: Add new project level attribute Map_File_Option
2256         
2257         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
2258         
2259         * prj.ads: Minor reformatting and comment update
2260         (Project_Configuration): New component Map_File_Option
2261         
2262         * snames.adb: New standard name Map_File_Option
2263         
2264         * snames.ads: New standard name Map_File_Option
2265
2266 2008-05-27  Vincent Celier  <celier@adacore.com>
2267
2268         * xsnames.adb: Remove unused variable Oname
2269
2270 2008-05-27  Doug Rupp  <rupp@adacore.com>
2271
2272         * exp_ch6.adb:
2273         (Expand_N_Function_Call): Fix comments. Minor reformatting.
2274
2275         * exp_vfpt.ads:
2276         (Expand_Vax_Foreign_Return): Fix comments.
2277
2278 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2279
2280         * exp_dist.adb: Minor reformating
2281
2282 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
2283
2284         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
2285         No_Default_Initialization, which is now delayed until the freeze point
2286         of the object. Add a comment about deferral of the check.
2287         
2288         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
2289         on objects is moved here.
2290
2291 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2292
2293         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
2294         (Compare_Array_S16): Adjust for above change.
2295         * s-casi32.adb (Uword): Likewise.
2296         (Compare_Array_S32): Likewise.
2297         * s-casi64.adb (Uword): Likewise.
2298         (Compare_Array_S64): Likewise.
2299         * s-caun16.adb (Uhalf): Likewise.
2300         (Compare_Array_U16): Likewise.
2301         * s-caun32.adb (Uword): Likewise.
2302         (Compare_Array_U32): Likewise.
2303         * s-caun64.adb (Uword): Likewise.
2304         (Compare_Array_U64): Likewise.
2305         
2306 2008-05-26  Robert Dewar  <dewar@adacore.com>
2307
2308         * exp_ch6.adb: Add ??? comment for previous change
2309
2310         * exp_vfpt.adb: Minor reformatting
2311
2312         * exp_vfpt.ads: Add ??? comment for last change
2313
2314         * sem_attr.adb: Add some ??? comments for previous change
2315
2316         * s-vaflop.ads: Add comments for previous change
2317
2318 2008-05-26  Doug Rupp  <rupp@adacore.com>
2319
2320         * s-vaflop-vms-alpha.adb:
2321         Remove System.IO use clause, to prevent spurious ambiguities when
2322         package is access through rtsfind.
2323
2324 2008-05-26  Sergey Rybin  <rybin@adacore.com>
2325
2326         * tree_io.ads (ASIS_Version_Number): Update because of the changes
2327         made in front-end
2328
2329 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2330
2331         * sem_attr.adb:
2332         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
2333         converted to S (A)'address only if A .. B is known to be a non-null
2334         range.
2335
2336 2008-05-26  Doug Rupp  <rupp@adacore.com>
2337
2338         * s-vaflop.adb:
2339         (Return_D, Return_F, Return_G): New functions.
2340
2341         * s-vaflop.ads:
2342         (Return_D, Return_F, Return_G): New functions.
2343
2344         * exp_vfpt.adb:
2345         (Expand_Vax_Foreign_Return): New procedure
2346
2347         * exp_vfpt.ads:
2348         (Expand_Vax_Foreign_Return): New procedure
2349
2350         * rtsfind.ads:
2351         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
2352         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
2353
2354         * exp_ch6.adb:
2355         Import Exp_Vfpt
2356         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
2357
2358         * s-vaflop-vms-alpha.adb:
2359         (Return_D, Return_F, Return_G): New functions.
2360
2361 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
2362
2363         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
2364         init proc entity when there is actual default initialization associated
2365         with the component type, to avoid spurious errors on objects of scalar
2366         array types that are marked Is_Public when No_Default_Initialization
2367         applies.
2368
2369 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2370
2371         * rtsfind.ads, rtsfind.adb:
2372         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
2373         (Check_RPC): Support per-PCS-kind API versioning.
2374         
2375         exp_dist.ads, exp_dist.adb:
2376         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
2377         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
2378          library function Get_RACW.
2379         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
2380         library function Get_Reference.
2381         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
2382         through an intermediate Any.
2383         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
2384         going through an intermediate Any.
2385         
2386         * sem_dist.adb: Minor reformatting.
2387
2388 2008-05-26  Javier Miranda  <miranda@adacore.com>
2389
2390         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
2391         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
2392         (Is_Internal): Adding documentation on internal entities that have
2393         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
2394
2395         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
2396         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
2397         Added assertion to force entities with this attribute to have
2398         attribute Is_Internal set to True.
2399         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
2400
2401         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
2402         renamed as Derive_Progenitor_Subprograms. In addition, its code is
2403         a new implementation.
2404         (Add_Interface_Tag_Components): Remove special management of
2405         synchronized interfaces.
2406         (Analyze_Interface_Declaration): Minor reformating
2407         (Build_Derived_Record_Type): Minor reformating
2408         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
2409         predefined primitive inherited from interface type because the body of
2410         internally generated predefined primitives of tagged types are generated
2411         later by Freeze_Type
2412         (Derive_Subprogram): Avoid generating an internal name if the parent
2413         subprogram overrides an interface primitive.
2414         (Derive_Subprograms): New implementation that keeps separate the
2415         management of tagged types not implementing interfaces, from tagged
2416         types that implement interfaces.
2417         (Is_Progenitor): New implementation.
2418         (Process_Full_View): Add documentation
2419         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
2420         by call to Derive_Progenitor_Subprograms.
2421
2422         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
2423         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2424         Skip_Controlling_Formals.
2425
2426         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
2427         (Check_Conventions): New implementation. Remove local subprogram
2428         Skip_Check. Remove formal Search_From of routine Check_Convention.
2429         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2430         Skip_Controlling_Formals.
2431         (New_Overloaded_Entity): Enable addition of predefined dispatching
2432         operations.
2433
2434         * sem_disp.ads
2435         (Find_Primitive_Covering_Interface): New subprogram.
2436
2437         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
2438         the task body procedure as a primitive of the corresponding tagged
2439         type.
2440         (Check_Operation_From_Private_Type): Avoid adding twice an entity
2441         to the list of primitives.
2442         (Find_Primitive_Covering_Interface): New subprogram.
2443         (Override_Dispatching_Operation): Add documentation.
2444
2445         * sem_type.adb (Covers): Minor reformatings
2446
2447         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
2448         Collect_Interfaces.
2449         Rename formal.
2450         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
2451         (Implements_Interface): New subprogram.
2452         (Is_Parent): Removed.
2453         (Primitive_Names_Match): New subprogram.
2454         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2455         (Ultimate_Alias): New subprogram.
2456
2457         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
2458         Collect_Interfaces.
2459         Remove special management for synchronized types. Rename formal. Remove
2460         internal subprograms Interface_Present_In_Parent and Add_Interface.
2461         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
2462         on non-record types by code to return false in such case.
2463         (Implements_Interface): New subprogram.
2464         (Is_Parent): Removed. No special management is now required for
2465         synchronized types covering interfaces.
2466         (Primitive_Names_Match): New subprogram.
2467         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2468         (Ultimate_Alias): New subprogram.
2469
2470         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
2471         Add internal entities associated with secondary dispatch tables to
2472         the list of tagged type primitives that are not interfaces.
2473         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
2474         (Make_Predefined_Primitive_Specs): Code reorganization to improve
2475         the management of predefined equality operator. In addition, if
2476         the type has an equality function corresponding with a primitive
2477         defined in an interface type, the inherited equality is abstract
2478         as well, and no body can be created for it.
2479
2480         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
2481         exp_util to exp_disp.
2482         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
2483         an entity corresponds with one of the predefined primitives required
2484         to implement interfaces.
2485         Update copyright notice.
2486
2487         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
2488         final check on abstract subprograms all the primitives associated with
2489         interface primitives because they must be visible in the public and
2490         private part.
2491         (Write_DT): Use Find_Dispatching_Type to locate the name of the
2492         interface type. This allows the use of this routine, for debugging
2493         purposes, when the tagged type is not fully decorated.
2494         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
2495         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
2496         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
2497         entity corresponds with one of the predefined primitives required to
2498         implement interfaces.
2499
2500         * exp_util.adb (Find_Interface_ADT): New implementation
2501         (Find_Interface): Removed.
2502
2503         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
2504         list of interfaces associated with nodes
2505         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
2506
2507 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2508
2509         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
2510         condition for assignment to temporary.
2511
2512 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2513
2514         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
2515         checks on the upper bound if the index type is a modular type, to
2516         prevent wrap-around computations when size is close to upper bound of
2517         type.
2518
2519 2008-05-26  Robert Dewar  <dewar@adacore.com>
2520
2521         * sem_ch3.adb: Minor reformatting
2522
2523 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2524
2525         * sem_ch12.adb (Remove_Parent): Use specification of instance
2526         to retrieve generic parent,
2527         to handle properly the case where the instance is a child unit.
2528         Add guard to handle properly wrapper packages.
2529         Minor reformatting
2530
2531 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2532
2533         * sinfo.ads: Minor reformatting
2534
2535 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
2536
2537         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
2538         Generate a tag check when the result subtype of a function, defined by
2539         an access definition, designates a specific tagged type.
2540         (Make_Tag_Check): New routine.
2541
2542 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
2543
2544         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
2545
2546 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2547
2548         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
2549         (builtin_decl_for): Likewise.
2550         * trans.c (gigi): Likewise.
2551         * utils.c (def_builtin_1): Fix formatting.
2552
2553 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
2554
2555         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
2556         Create the statements which map a string name to protected or task
2557         entry indix.
2558
2559         * exp_ch9.adb: Add with and use clause for Stringt.
2560         Minor code reformatting.
2561         (Build_Entry_Names): New routine.
2562         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
2563         for flag Build_Entry_Names which controls the allocation of the data
2564         structure for the string names of entries.
2565
2566         * exp_ch9.ads (Build_Entry_Names): New subprogram.
2567
2568         * exp_util.adb (Entry_Names_OK): New function.
2569
2570         * exp_util.ads (Entry_Names_OK): New function.
2571
2572         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
2573         enumerations RE_Id and RE_Unit_Table.
2574
2575         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
2576         (Free_Entry_Names_Array): New routine.
2577
2578         * s-taskin.ads: Comment reformatting.
2579         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
2580         Add component Entry_Names to record Ada_Task_Control_Block.
2581         (Free_Entry_Names_Array): New routine.
2582
2583         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
2584         dynamically allocate an array
2585         of string pointers. This structure holds string entry names.
2586         (Free_Entry_Names): New routine.
2587         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
2588         (Set_Entry_Names): New routine.
2589
2590         * s-tassta.ads:
2591         (Create_Task): Add formal Build_Entry_Names. The flag is used to
2592         control the allocation of the data structure which stores entry names.
2593         (Set_Entry_Name): New routine.
2594
2595         * s-tpoben.adb:
2596         Add with and use clause for Ada.Unchecked_Conversion.
2597         (Finalize): Deallocate the entry names array.
2598         (Free_Entry_Names): New routine.
2599         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
2600         create an array of string pointers to hold the entry names.
2601         (Set_Entry_Name): New routine.
2602
2603         * s-tpoben.ads:
2604         Add field Entry_Names to record Protection_Entries.
2605         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
2606         (Set_Entry_Name): New routine.
2607
2608 2008-05-26  Vincent Celier  <celier@adacore.com>
2609
2610         * prj-nmsc.adb:
2611         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
2612
2613         * prj.ads:
2614         (Project_Configuration): New component Shared_Lib_Driver
2615
2616 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2617
2618         * inline.adb:
2619         (Cleanup_Scopes): For a protected operation, transfer finalization list
2620         to protected body subprogram, to force cleanup actions when needed.
2621
2622 2008-05-26  Robert Dewar  <dewar@adacore.com>
2623
2624         * sem_cat.adb: Minor reformatting
2625
2626         * gnatname.adb: Minor reformatting
2627
2628         * osint.ads: Minor reformatting
2629
2630         * s-carun8.ads: Minor reformatting
2631
2632         * g-heasor.ads: Minor comment fix (unit is now pure)
2633
2634 2008-05-26  Robert Dewar  <dewar@adacore.com>
2635
2636         * exp_ch2.adb:
2637         (Expand_Current_Value): Properly type generated integer literal
2638
2639 2008-05-26  Sergey Rybin  <rybin@adacore.com>
2640
2641         * gnat_ugn.texi: Add description for the new gnatcheck rule -
2642         Separate_Numeric_Error_Handlers.
2643
2644 2008-05-26  Pascal Obry  <obry@adacore.com>
2645
2646         * sem_aggr.adb: Minor reformatting.
2647
2648 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
2649
2650         * s-osinte-aix.adb:
2651         (To_Target_Priority): Setting the time slice value to 0 or greater sets
2652         the scheduling policy to FIFO within priorities or round-robin
2653         respectively.
2654         Hence, the priority must be set in this case to the one selected by the
2655         user.
2656         
2657 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2658
2659         * sem_ch12.adb:
2660         (Remove_Parent): If the enclosing scope is an instance whose generic
2661         parent is declared within some parent scope of the just completed
2662         instance, make full views of the entities in that parent visible, when
2663         applicable.
2664         
2665 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
2666
2667         * mingw32.h (STD_MINGW): Set to true for target w64.
2668
2669 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2670
2671         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
2672         instead of TREE_STATIC on the ADDR_EXPR.
2673
2674 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2675
2676         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
2677         (Sloc_to_locus): Do not overwrite known GCC locations when translating
2678         GNAT standard locations.
2679
2680 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2681
2682         * gigi.h (mark_visited): Declare.
2683         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
2684         only the topmost node of expressions.
2685         (elaborate_expression_1): Look deeper for read-only variables.
2686         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
2687         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
2688         (mark_visited_r): New function.
2689
2690 2008-05-23  Vincent Celier  <celier@adacore.com>
2691
2692         * snames.adb: New standard name Excluded_Source_List_File.
2693
2694         * snames.ads: New standard name Excluded_Source_List_File.
2695
2696         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
2697
2698         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
2699         Get excluded sources from
2700         file indicated by attribute Excluded_Source_List_File, when present and
2701         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
2702
2703 2008-05-23  Robert Dewar  <dewar@adacore.com>
2704
2705         * exp_dist.adb: Minor reformatting
2706
2707 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
2708
2709         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
2710         slice, convert it to an indexed component, which is equivalent, more
2711         efficient, and usable even if the slice itself is not addressable.
2712
2713 2008-05-23  Olivier Hainque  <hainque@adacore.com>
2714
2715         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
2716         convention also allows access to named compiler built-in subprograms
2717         such as the GCC __builtin family.
2718
2719 2008-05-23  Vincent Celier  <celier@adacore.com>
2720
2721         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
2722         sep. If there are several possibilities, choose the one with the
2723         longer prefix.
2724
2725 2008-05-23  Vincent Celier  <celier@adacore.com>
2726
2727         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
2728         back end switches when executable specified with --GCC= is same as
2729         default, even if there are additional options.
2730
2731         * gnat_ugn.texi:
2732         Document when the back end switches from the ALI file are taken into
2733         account when gnatlink is invoked with --GCC=
2734
2735 2008-05-23  Thomas Quinot  <quinot@adacore.com>
2736
2737         * s-os_lib.adb:
2738         (copy_File): Do not open destination file if source file is unreadable.
2739
2740 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2741
2742         * utils.c (handle_type_generic_attribute): Adjust to accept
2743         fixed arguments before an elipsis.
2744
2745 2008-05-21  Thomas Quinot  <quinot@adacore.com>
2746
2747         * g-sothco.ads, g-sothco.adb: New files.
2748
2749 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2750
2751         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
2752
2753         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
2754         Add missing "with" of Ada.Unchecked_Conversion
2755
2756         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, 
2757         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, 
2758         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, 
2759         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, 
2760         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, 
2761         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: 
2762         Move common code out of GNAT.Sockets.Thin implementations and into
2763         Thin_Common.
2764         New constant SIZEOF_fd_set
2765         New flag Has_Sockaddr_Len
2766         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2767
2768         * g-stsifd-sockets.adb
2769         (Create): Remove call to Set_Length; use Set_Family to set the family
2770         and (on appropriate platforms) length fields in struct sockaddr.
2771
2772         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, 
2773         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, 
2774         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
2775         Move common code out of GNAT.Sockets.Thin implementations and into
2776         Thin_Common.
2777
2778         * g-socket.ads, g-socket.adb: 
2779         Move common code out of GNAT.Sockets.Thin implementations and into
2780         Thin_Common.
2781         (Connect_Socket, Accept_Socket): Provide new versions of these two
2782         routines that operate with a user specified timeout.
2783         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
2784         this is now handled automatically by Set_Family on platforms that
2785         require it.
2786
2787         * gen-soccon.c: 
2788         Move common code out of GNAT.Sockets.Thin implementations and into
2789         Thin_Common.
2790         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
2791         this constant to 0 (not -1) because we use it to initialize an
2792         unsigned_char value.
2793         Align values for numeric constants only.
2794         Handle the case of systems that do not support AF_INET6.
2795         New constant SIZEOF_fd_set
2796         New flag Has_Sockaddr_Len
2797         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2798
2799         * gsocket.h: New flag Has_Sockaddr_Len
2800         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2801
2802 2008-05-20  Santiago Uruena  <uruena@adacore.com>
2803
2804         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
2805
2806 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
2807
2808         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
2809         the underlying issue with malloc/free has been fixed. Remove associated
2810         comments.
2811         Minor reformatting.
2812         Related to PR ada/24533
2813
2814 2008-05-20  Robert Dewar  <dewar@adacore.com>
2815
2816         * ali.adb: Correct casing of ASCII.NUL
2817
2818         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
2819         properly.
2820
2821 2008-05-20  Robert Dewar  <dewar@adacore.com>
2822             Gary Dismukes  <dismukes@adacore.com>
2823
2824         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
2825         overflow if result converted to wider integer type.
2826         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
2827         discriminated types when discriminant checks are suppressed.
2828
2829 2008-05-20  Vincent Celier  <celier@adacore.com>
2830
2831         * cstand.adb (Print_Standard): Issue the correct Size clause for type
2832         Wide_Wide_Character.
2833
2834 2008-05-20  Tristan Gingold  <gingold@adacore.com>
2835
2836         * decl.c: Do not emit a variable for a object that has an address
2837         representation clause whose value is known at compile time.
2838         When a variable has an address clause whose value is known at compile
2839         time, refer to this variable by using directly the address instead of
2840         dereferencing a pointer.
2841
2842 2008-05-20  Robert Dewar  <dewar@adacore.com>
2843
2844         PR ada/30740
2845         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
2846         subtypes, always False for non-modular types.
2847         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
2848         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
2849         for Shared_Storage package.
2850         (Is_RACW_Stub_Type): New entity flag.
2851
2852         * exp_ch4.adb
2853         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
2854         case where we have a modular type with a non-binary modules.
2855         Comments reformattings.
2856
2857         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
2858         all types.
2859
2860 2008-05-20  Javier Miranda  <miranda@adacore.com>
2861
2862         * exp_aggr.adb
2863         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
2864         tests did not covered the case in which the type of the aggregate has
2865         no progenitors but some its parents has progenitors.
2866
2867 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
2868             Hristian Kirtchev  <kirtchev@adacore.com>
2869
2870         * exp_ch3.adb
2871         (Expand_N_Object_Declaration): Correct the condition which triggers the
2872         generation of a call to Displace when initializing a class-wide object.
2873         (Build_Dcheck_Functions): Build discriminant-checking for null variants
2874         when Frontend_Layout_On_Target is true to ensure that they're available
2875         for calling when a record variant size function is built in Layout.
2876
2877 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2878
2879         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2880         procedure for a derived type retrieve the discriminant values from the
2881         parent using the corresponding discriminant.
2882         (Expand_N_Assignment_Statement): Skip generation of implicit
2883         if-statement associated with controlled types if we are
2884         compiling with restriction No_Finalization.
2885
2886 2008-05-20  Vincent Celier  <celier@adacore.com>
2887
2888         * prj.adb (Hash (Project_Id)): New function
2889         (Project_Empty): Add new component Interfaces_Defined
2890
2891         * prj.ads (Source_Data): New component Object_Linked
2892         (Language_Config): New components Object_Generated and Objects_Linked
2893         (Hash (Project_Id)): New function
2894         (Source_Data): New Boolean components In_Interfaces and
2895         Declared_In_Interfaces.
2896         (Project_Data): New Boolean component Interfaces_Defined
2897
2898         * prj-attr.adb: 
2899         New project level attribute Object_Generated and Objects_Linked
2900         Add new project level attribute Interfaces
2901
2902         * prj-dect.adb: Use functions Present and No throughout
2903         (Parse_Variable_Declaration): If a string type is specified as a simple
2904         name and is not found in the current project, look for it also in the
2905         ancestors of the project.
2906
2907         * prj-makr.adb: 
2908         Replace procedure Make with procedures Initialize, Process and Finalize
2909         to implement H414-023: process different directories with different
2910         patterns.
2911         Use functions Present and No throughout
2912
2913         * prj-makr.ads: 
2914         Replace procedure Make with procedures Initialize, Process and Finalize
2915
2916         * prj-nmsc.adb
2917         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
2918         the language configuration.
2919         (Process_Project_Level_Array_Attributes): Process new attributes
2920         Object_Generated and Object_Linked.
2921         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
2922         False, to indicate that the erreor/warning is a continuation.
2923         (Check): Call Report_No_Sources with Contnuation = True after the first
2924         call.
2925         (Error_Msg): Process successively contnuation character and warning
2926         character.
2927         (Find_Explicit_Sources): Check that all declared sources have been found
2928         (Check_File): Indicate in hash table Source_Names when a declared source
2929         is found.
2930         (Check_File): Set Other_Part when found
2931         (Find_Explicit_Sources): In multi language mode, check if all exceptions
2932         to the naming scheme have been found. For Ada, report an error if an
2933         exception has not been found. Otherwise, disregard the exception.
2934         (Check_Interfaces): New procedure
2935         (Add_Source): When Other_Part is defined, set mutual pointers in spec
2936         and body.
2937         (Check): In multi-language mode, call Check_Interfaces
2938         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
2939         for an excluded source.
2940         (Remove_Source): A source replacing a source in the interfaces is also
2941         in the interfaces.
2942
2943         * prj-pars.adb: Use function Present
2944
2945         * prj-part.adb: Use functions Present and No throughout
2946         (Parse_Single_Project): Set the parent project for child projects
2947         (Create_Virtual_Extending_Project): Register project with no qualifier
2948         (Parse_Single_Project): Allow an abstract project to be extend several
2949         times. Do not allow an abstract project to extend a non abstract
2950         project.
2951
2952         * prj-pp.adb: Use functions Present and No throughout
2953         (Print): Take into account the full associative array attribute
2954         declarations.
2955
2956         * prj-proc.adb: Use functions Present and No throughout
2957         (Expression): Call itself with the same From_Project_Node for the
2958         default value of an external reference.
2959
2960         * prj-strt.adb: Use functions Present and No throughout
2961         (Parse_Variable_Reference): If a variable is specified as a simple name
2962         and is not found in the current project, look for it also in the
2963         ancestors of the project.
2964
2965         * prj-tree.ads, prj-tree.adb (Present): New function
2966         (No): New function
2967         Use functions Present and No throughout
2968         (Parent_Project_Of): New function
2969         (Set_Parent_Project_Of): New procedure
2970
2971         * snames.ads, snames.adb: 
2972         Add new standard names Object_Generated and Objects_Linked
2973
2974 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
2975
2976         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
2977         and the derived type are of the same kind.
2978         (Expand_Call): Generate type conversions for actuals of
2979         record or array types when the parent and the derived types differ in
2980         size and/or packed status.
2981
2982 2008-05-20  Javier Miranda  <miranda@adacore.com>
2983             Ed Schonberg  <schonberg@adacore.com>
2984
2985         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
2986         generating dispatch tables of locally defined tagged types statically.
2987         Remove implicit if-statement that is no longer required.
2988         (Expand_Dispatching_Call): If this is a call to an instance of the
2989         generic dispatching constructor, the type of the first argument may be
2990         a subtype of Tag, so always use the base type to recognize this case.
2991
2992 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2993
2994         * exp_dist.adb
2995         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
2996         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
2997         assigning NULL into the result, to avoid a spurious warning.
2998         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
2999         is not frozen.
3000         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3001         type.
3002         (Build_From_Any_Function, Build_To_Any_Function,
3003         Build_TypeCode_Function): For a type that has user-specified stream
3004         attributes, use an opaque sequence of octets as the representation.
3005
3006 2008-05-20  Kevin Pouget  <pouget@adacore.com>
3007
3008         * exp_smem.ads, exp_smem.adb: Construction of access and assign
3009         routines has been replaced by an instantiation of
3010         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3011         shared variable declaration.
3012         Calls to access and assign routines have been replaced by calls to
3013         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3014         instantiated package.
3015         
3016         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3017         It identifies the new generic package added in s-shasto.
3018
3019         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3020         is instantiated for each shared passive variable. It provides
3021         supporting procedures called upon each read or write access by the
3022         expanded code.
3023
3024         * sem_attr.adb:
3025         For this runtime unit (always compiled in GNAT mode), we allow
3026         stream attributes references for limited types for the case where
3027         shared passive objects are implemented using stream attributes,
3028         which is the default in GNAT's persistent storage implementation.
3029
3030 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3031
3032         * freeze.adb
3033         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3034         convention from its base type, do not set the type to that of integer,
3035         because it may inherit a size clause.
3036         Warn on a size clause with a size different
3037         from that of Integer, if the type has convention C.
3038
3039 2008-05-20  Vincent Celier  <celier@adacore.com>
3040
3041         * gnatname.adb
3042         (Scan_Args): Rewrite to take into account new switch --and to separate
3043         arguments into sections.
3044         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3045         section, then Finalize.
3046
3047 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3048
3049         * init.c: Enable stack probing on ppc-linux.
3050
3051         * tracebak.c: Add symbolic traceback for ppc-linux.
3052
3053         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3054
3055 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3056
3057         * Makefile.in
3058         (common-tools): New rule, to avoid parallel build failure on gnat tools.
3059         Reenable parallel builds on this Makefile.
3060
3061         * Make-lang.in: Update dependencies.
3062
3063 2008-05-20  Robert Dewar  <dewar@adacore.com>
3064
3065         * opt.ads (Treat_Restrictions_As_Warnings): New switch
3066
3067         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3068         Treat_Restrictions_As_Warnings.
3069
3070         * switch-c.adb: Recognize new switch -gnatr
3071
3072         * usage.adb: Add line for -gnatr
3073
3074 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3075
3076         * par-ch3.adb
3077         (P_Access_Definition): Change the error message when parsing "access
3078         all" in Ada 95 mode. The message no longer forces the user to recompile
3079         in 05 mode only to discover that anonymous access types are not allowed
3080         to have "all".
3081
3082 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3083
3084         * par-ch9.adb
3085         (P_Protected): Update the error message on missing "-gnat05" switch when
3086         using interfaces in conjunction with protected types. Remove the
3087         incorrect error message associated with the presence of "private" after
3088         a "with".
3089
3090 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3091
3092         * sem_aggr.adb: Update comments.
3093         Improve previous change for PR ada/17985
3094
3095 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3096
3097         * sem_cat.adb
3098         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
3099         the visible part of the spec of a remote types unit.
3100         (Validate_Remote_Access_Object_Type_Declaration):
3101         New local subprogram Is_Valid_Remote_Object_Type, replaces
3102         Is_Recursively_Limited_Private.
3103         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
3104         non-controlling formals (and the return type, even though this is not
3105         explicit in the standard) must support external streaming.
3106         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
3107         as above for of RAS types and RCI subprograms. (The return type is not
3108         checked yet).
3109         Update comments related to RACWs designating limited interfaces per
3110         ARG ruling on AI05-060.
3111
3112         * sem_util.ads, sem_util.adb
3113         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
3114         Is_Remote_Call_Interface to identify RACW types in a stable and
3115         consistent way. We used to rely in this predicate on the privateness of
3116         the designated type and its ancestors, but depending on the currently
3117         visible private parts, this caused false negatives. We now uniformly
3118         rely on checks made at the point where the RACW type is declared.
3119         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
3120
3121 2008-05-20  Javier Miranda  <miranda@adacore.com>
3122             Ed Schonberg  <schonberg@adacore.com>
3123             Hristian Kirtchev  <kirtchev@adacore.com>
3124
3125         * sem_ch3.adb
3126         (Analyze_Object_Declaration): Fix over-conservative condition
3127         restricting use of predefined assignment with tagged types that have
3128         convention CPP.
3129         (Analyze_Object_Declaration): Relax the check regarding deferred
3130         constants declared in scopes other than packages since they can be
3131         completed with pragma Import.
3132         Add missing escaping of all-caps word 'CPP' in error messages.
3133         (Build_Discriminated_Subtype): Do not inherit representation clauses
3134         from parent type if subtype already carries them, because they are
3135         inherited earlier during derivation and already include those that may
3136         come from a partial view.
3137
3138         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
3139         Check the declarations of a subprogram body for proper deferred
3140         constant completion.
3141
3142         * sem_ch7.ads, sem_ch7.adb
3143         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
3144
3145 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3146             Thomas Quinot  <quinot@adacore.com>
3147
3148         * sem_ch4.adb
3149         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
3150         F is a parameterless function that returns an array, and S is a subtype
3151         mark.
3152         (Analyze_Call): Insert dereference when the prefix is a parameterless
3153         function that returns an access to subprogram and the call has
3154         parameters.
3155         Reject a non-overloaded call whose name resolves to denote
3156         a primitive operation of the stub type generated to support a remote
3157         access-to-class-wide type.
3158
3159 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3160
3161         * sem_ch8.adb
3162         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
3163         when there is a use clause for the same entity in the context.
3164         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
3165         created for a stream attribute of an abstract type or interface type.
3166
3167 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3168
3169         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
3170         subprogram.
3171
3172         * sem_type.adb
3173         (Add_One_Interp): Ignore any interpretation that is a primitive
3174         operation of an RACW stub type (these primitives are only executed
3175         through dispatching, never through static calls).
3176         (Collect_Interps): When only one interpretation has been found, set N's
3177         Entity and Etype to that interpretation, otherwise Entity and Etype may
3178         still refer to an interpretation that was ignored by Add_One_Interp,
3179         in which case would end up with being marked as not overloaded but with
3180         an Entity attribute not pointing to its (unique) correct interpretation.
3181
3182 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3183
3184         * sem_eval.adb
3185         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
3186         denotes the whole array of its prefix.
3187
3188 2008-05-20  Robert Dewar  <dewar@adacore.com>
3189
3190         * sem_res.adb (Resolve_Op_Not): Warn on double negation
3191
3192 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3193
3194         * sprint.adb
3195         (Print_Itype): Do not modify the sloc of the component type of a
3196         (packed) array itype, because it is an unrelated type whose source
3197         location is independent of the point of creation of the itype itself.
3198
3199 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3200
3201         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
3202         Append.
3203
3204 2008-05-20  Robert Dewar  <dewar@adacore.com>
3205             Vincent Celier  <celier@adacore.com>
3206
3207         * vms_data.ads: Add entry for -gnatr
3208         Put GNAT SYNC section in proper alpha order
3209         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
3210
3211         * gnat_ugn.texi: Add documentation for new gnatname switch --and
3212         Update the style checks section
3213         Add documentation of -gnatr
3214         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
3215         subsection the explanation how compiler checks should be disabled for
3216         gnatcheck.
3217         Update the list of Ada 95 reserved words used by in the project language
3218         Add documentation for project qualifiers.
3219         Document that abstract projects may be extended by different projects in
3220         the same project tree.
3221         Add documentation for gnatmake switch -d
3222
3223         * ug_words: Add -gnatyy VMS equivalence string.
3224         Add entry for -gnatr
3225
3226 2008-05-20  Bob Duff  <duff@adacore.com>
3227
3228         * a-rttiev.adb
3229         (Set_Handler): Remove code from both of these that implements
3230         RM-D.15(15/2), because it causes a race condition and potential
3231         deadlock.
3232         (Process_Queued_Events): Add comment explaining "exception when others
3233         => null". Add clarifying ".all", even though implicit .all is legal
3234         here.
3235
3236 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3237
3238         * s-winext.ads: Replace representation clause by pragma Pack. Gives
3239         equivalent representation, but has the advantage of allowing
3240         compilation of this file under 64 bits platforms.
3241
3242         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
3243
3244         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
3245
3246         * adaint.c: 
3247         Don't define dummy implementation of convert_addresses on ppc-linux.
3248
3249 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3250
3251         * exp_ch7.adb
3252         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
3253         if expression is aggregate component.
3254
3255 2008-05-20  Robert Dewar  <dewar@adacore.com>
3256
3257         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
3258         sem_ch12.adb: Update comments. Minor reformatting.
3259
3260         * exp_ch2.adb: Typo
3261
3262         * s-unstyp.ads: Fixed some typos in comments.
3263
3264 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3265
3266         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
3267         type/constant.
3268
3269         * g-socthi-vxworks.ads: Update to latest socket changes.
3270
3271         * a-caldel-vms.adb: Resync with a-caldel spec.
3272
3273         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
3274         Update comments.
3275
3276 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
3277
3278         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
3279         for dummy types pointed to by the converted pointer types.
3280
3281 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3282
3283         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
3284         of records and unions.
3285         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
3286
3287 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
3288             Robert Dewar <dewar@adacore.com>
3289
3290         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
3291         restrictions to the prefix of 'Old.
3292         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
3293         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
3294         variables.
3295
3296 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
3297
3298         PR ada/24880
3299         PR ada/26635
3300         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
3301         expression to an integral type with lower precision, use NOP_EXPR
3302         directly in a couple of special cases.
3303
3304 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
3305             Ed Schonberg <schonberg@adacore.com>
3306
3307         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
3308         constraint expressions.
3309
3310 2008-05-12  Tomas Bily  <tbily@suse.cz>
3311
3312         * utils2.c (known_alignment, contains_save_expr_p)
3313         (gnat_mark_addressable): Use CASE_CONVERT.
3314         * decl.c (annotate_value): Likewise.
3315         * trans.c (maybe_stabilize_reference): Likewise.
3316         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
3317         * utils.c (rest_of_record_type_compilation): Likewise.
3318         * trans.c (protect_multiple_eval, Attribute_to_gnu)
3319         (protect_multiple_eval): Likewise.
3320
3321 2008-05-08  Andreas Schwab  <schwab@suse.de>
3322
3323         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
3324         DECL_IS_PURE to DECL_PURE_P.
3325
3326 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
3327
3328         * decl.c (maybe_pad_type): Add ??? comment.
3329
3330 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3331
3332         * decl.c (components_to_record): Zero the alignment of the qualified
3333         union built for the variant part upon creating it.
3334
3335 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3336
3337         * decl.c (maybe_pad_type): Try to get a form of the type with integral
3338         mode even if the alignment is not a factor of the original size.  But
3339         make sure to create the inner field with the original size.  Reorder.
3340         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
3341         record as always addressable.
3342         * utils.c (convert): Deal specially with conversions between original
3343         and packable versions of a record type.
3344         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
3345         recognizing an assignment between padded objects.
3346
3347 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
3348
3349         * decl.c (make_packable_type): Resize the last component to its RM size
3350         only if it is of an aggregate type.
3351         * trans.c (call_to_gnu): Fix nit in comment.
3352         (gnat_to_gnu): Likewise.
3353
3354 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
3355
3356         * Makefile.in: Adapt sh4-linux target.
3357
3358 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
3359
3360         PR ada/35792
3361         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
3362         tagged type by an untagged protected or task type.
3363
3364 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3365             Tristan Gingold  <gingold@adacore.com>
3366
3367         PR ada/36007
3368         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
3369         of aliased objects with an unconstrained nominal subtype.
3370         Cap the promotion to the effective alignment of the word mode.
3371
3372 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3373
3374         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
3375         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
3376         Use '&&' instead of ';'.
3377
3378 2008-04-24  Olivier Hainque  <hainque@adacore.com>
3379
3380         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
3381         doesn't require signed arithmetic anymore.
3382
3383 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
3384
3385         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
3386         (call_to_gnu): Don't set TREE_INVARIANT.
3387         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
3388
3389 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
3390
3391         * s-osinte-rtems.adb: Add sigalstack function.
3392         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
3393         function. Add Alternate_Stack and Alternate_Stack_Size.
3394         Add missing process_shared field to pthread_condattr_t
3395         and change ss_low_priority to int from timespec.
3396
3397 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
3398
3399         * i-forbla.adb: Link against -llapack and -lblas by default
3400         instead of the private -lgnalasup.
3401
3402 2008-04-21  Olivier Hainque  <hainque@adacore.com>
3403
3404         Access to most C builtins from Ada
3405         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
3406         (handle_pure_attribute, handle_novops_attribute,
3407         handle_nonnull_attribute, handle_sentinel_attribute,
3408         handle_noreturn_attribute, handle_malloc_attribute,
3409         handle_type_generic_attribute): New attribute handlers, from C fe.
3410         (gnat_internal_attribute_table): Map the new handlers.
3411         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
3412         (init_gigi_decls): ... here.
3413         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
3414         Move to a section dedicated to builtins processing.
3415         (build_void_list_node, builtin_type_for_size): New functions.
3416         (def_fn_type, get_nonnull_operand): Likewise.
3417         (install_builtin_elementary_type, install_builtin_function_types,
3418         install_builtin_attributes): Likewise.
3419         (fake_attribute_handler): Fake handler for attributes we don't
3420         support in Ada.
3421         (def_builtin_1): New function, worker for DEF_BUILTIN.
3422         (install_builtin_functions): New function.
3423         (gnat_install_builtins): Move to the builtins processing section.
3424         Now calling the newly introduced installers.
3425
3426 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3427
3428         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
3429         constant objects, but not exceptions.
3430         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
3431         compatibility test.
3432         * utils.c (create_var_decl_1): Likewise.
3433         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
3434         the type when copying to padded object and the source is a constructor.
3435
3436 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3437
3438         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
3439         alignment, reset it to zero if it would end up not being greater
3440         than that of the type.
3441
3442 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3443
3444         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
3445         the padded type has a variable size.
3446
3447 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3448
3449         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
3450         target pointer mechanism as soon as the size is not constant.
3451
3452 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3453
3454         * gigi.h (create_var_decl_1): Declare.
3455         (create_var_decl): Turn into a macro invoking create_var_decl_1.
3456         (create_true_var_decl): Likewise.
3457         * utils.c (create_var_decl_1): Make global and reorder parameters.
3458         (create_var_decl): Delete.
3459         (create_true_var_decl): Likewise.
3460
3461 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3462
3463         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
3464         objects by default.
3465         * fe.h (Debug_Flag_Dot_A): Delete.
3466         * debug.adb (-gnatd.a): Update documentation.
3467
3468 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
3469
3470         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
3471         "not null" parameter.
3472
3473 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
3474
3475         * g-socket.adb: Add a message "IPv6 not supported" to the
3476         Socket_Error exception.
3477
3478 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
3479
3480         PR ada/29015
3481         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
3482         the type is known instead of the underlying type.
3483
3484 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
3485
3486         PR ada/22387
3487         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3488         procedure for a derived type retrieve the discriminant values from
3489         the parent using the corresponding discriminant.
3490
3491 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
3492             Gary Dismukes  <dismukes@adacore.com>
3493
3494         PR ada/28733
3495         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
3496         which is not an entity (and hence not a package).
3497         (End_Use_Package): Ditto.
3498
3499 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
3500
3501         PR ada/16086
3502         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
3503         protected operation that matches the signature, not only an entry, a
3504         regular subprogram or a literal.
3505
3506 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3507
3508         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
3509         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
3510         if a size or alignment is specified.  Do not take into account
3511         alignment promotions for the computation of the object's size.
3512         <type>: Call maybe_pad_type only if a size or alignment is specified.
3513         (maybe_pad_type): Really reuse the RM_Size of the original type if
3514         requested.
3515         * trans.c (Attribute_to_gnu): Fix a couple of nits.
3516         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
3517         statements.  Use the padded view of the type when copying between
3518         padded objects of the same underlying type.
3519
3520 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3521
3522         * vms_data.ads: Fix typo in constant.
3523         * gen-soccon.c: Fix typo in error string.
3524         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
3525         Fix typos.
3526         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
3527         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
3528         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
3529         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
3530         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
3531         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
3532         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
3533         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
3534         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
3535         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
3536         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
3537         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
3538         sinfo.ads: Fix typos in comments.
3539
3540 2008-04-14  Robert Dewar  <dewar@adacore.com>
3541
3542         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
3543         to every non-object and change error message.
3544
3545 2008-04-14  Robert Dewar  <dewar@adacore.com>
3546
3547         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
3548         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
3549         directly.
3550
3551 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3552
3553         PR ada/18680
3554         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
3555         apply pragma Linker_Section on type.
3556
3557 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3558
3559         PR ada/16098
3560         * sem_prag.adb (Error_Pragma_Ref): New.
3561         (Process_Convention): Specialized message for non-local
3562         subprogram renaming. Detect the problem in homonyms as well.
3563
3564 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3565
3566         PR ada/15915
3567         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
3568         * sem_ch12.adb (Instantiate_Object): Use it.
3569         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
3570         storage pool denotes a variable as per RM 13.11(15).
3571
3572 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3573
3574         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
3575         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
3576
3577 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
3578
3579         PR ada/20822
3580         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
3581         line endings even on non-Unix platforms.
3582
3583 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3584
3585         PR ada/35050
3586         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
3587         renaming information.
3588
3589 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
3590
3591         PR ada/17985
3592         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
3593         itself.
3594
3595 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3596
3597         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
3598         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
3599         snames.ads, sprint.adb, stand.ads, stringt.ads,
3600         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
3601         switch.ads, sysdep.c, table.adb, table.ads,
3602         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
3603         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
3604         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
3605         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
3606         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
3607         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
3608         Fix comment typos.
3609
3610         * sem_ch10.adb, sem_ch10.ads,
3611         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
3612         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3613         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
3614         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
3615         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
3616         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
3617         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
3618         sem_warn.ads: Fix comment typos.
3619
3620         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
3621         s-soflin.ads, s-stalib.ads, s-stausa.adb,
3622         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
3623         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3624         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
3625         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3626         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
3627         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
3628         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
3629         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
3630         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
3631         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
3632         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
3633         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
3634         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
3635         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
3636         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
3637         sem_cat.adb, sem_cat.ads: Fix comment typos.
3638
3639 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
3640
3641         PR ada/35825
3642         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
3643
3644 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
3645
3646         * s-linux-hppa.ads: Fix syntax errors.
3647
3648 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3649
3650         * gnat_ugn.texi: Fix typos.
3651         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
3652         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
3653         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
3654         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
3655         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
3656         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
3657         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
3658         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
3659         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
3660         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
3661         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
3662         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
3663         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
3664         s-osinte-darwin.ads, s-osinte-freebsd.ads,
3665         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
3666         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3667         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
3668         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
3669         s-parame-hpux.ads, s-parame-vms-alpha.ads,
3670         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
3671         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
3672         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
3673         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
3674         s-rident.ads: Fix comment typos.
3675
3676 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
3677
3678         PR ada/28305
3679         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
3680         environment if generic instance is a top-level one.
3681
3682 2008-04-09  Doug Rupp  <rupp@adacore.com>
3683
3684         * decl.c (validate_size): Set minimum size for fat pointers same as
3685         access types. Code clean ups.
3686
3687         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
3688         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
3689
3690         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
3691
3692         * s-crtl.ads (malloc32) New function, alias for malloc
3693         (realloc32) New function, alias for realloc
3694
3695         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
3696
3697         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
3698         allocator size is 32 and default pointer size is 64.
3699         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
3700         lhs type if smaller, whatever the modes.
3701
3702         * gigi.h (malloc32_decl): New macro definition
3703
3704         * utils.c (init_gigi_decls): New malloc32_decl
3705         Various code clean ups.
3706
3707         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3708         Task_Address vice System.Address.
3709
3710         * s-taspri-vms.ads: Import System.Aux_DEC
3711         (Task_Address): New subtype of System.Aux_DEC.Short_Address
3712         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
3713
3714         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3715         Task_Address vice System.Address.
3716
3717         * s-inmaop-vms.adb: Import System.Task_Primitives
3718         (To_Address): Unchecked convert to Task_Address vice System.Address
3719
3720         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
3721         expires now.
3722         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
3723         (To_Address) Unchecked convert to Task_Address vice System.Address
3724
3725         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
3726
3727         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
3728
3729 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3730
3731         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
3732         (fdesc_type_node): Define.
3733         (null_fdesc_node): Likewise.
3734         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
3735         uses descriptors for vtables and the type comes from a dispatch table,
3736         return the descriptor type.
3737         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
3738         uses descriptors for vtables and the type comes from a dispatch table,
3739         build a descriptor in the static case and copy the existing one in the
3740         non-static case.
3741         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
3742         the type is a pointer-to-subprogram coming from a dispatch table,
3743         return the null descriptor.
3744         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
3745         vtables, the source type is the descriptor type and the target type
3746         is a pointer type, first build the pointer.
3747         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
3748         build the descriptor type and the null descriptor.
3749
3750 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3751
3752         * decl.c (prepend_attributes): Fix typo.
3753         * trans.c (Pragma_to_gnu): Likewise.
3754         * utils.c (gnat_genericize): Likewise.
3755
3756 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3757             Richard Kenner  <kenner@adacore.com>
3758
3759         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
3760         * decl.c (gnat_to_gnu_entity): Adjust for above change.
3761         <E_Record_Type>: Try to get a better form of the component for
3762         packing, even if it has an integral mode.
3763         <E_Record_Subtype>: Likewise.
3764         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
3765         exception suppressing the final conversion between record types.
3766
3767 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3768
3769         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
3770         alignment for space, promote the alignment of non-scalar variables with
3771         no size and alignment.
3772         * gigi.h (gnat_types_compatible_p): Declare.
3773         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
3774         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
3775         * utils.c (gnat_types_compatible_p) : New predicate.
3776         (convert): Use it throughout to test for cases where a mere view
3777         conversion is sufficient.
3778         * utils2.c (build_binary_op): Minor tweaks.
3779         (build_unary_op): Likewise.
3780
3781 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3782
3783         * decl.c (adjust_packed): Expand comment.
3784
3785 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3786
3787         * s-tasuti.ads: Use Task_Address instead of System.Address.
3788
3789         * makeutl.adb (Path_Or_File_Name): New function
3790
3791         * nlists.ads, itypes.ads: Update comments.
3792
3793         * s-crtl.ads (malloc32, realloc32): New functions.
3794
3795         * s-auxdec.ads (Short_Address_Size): New constant.
3796
3797         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
3798
3799         * s-ststop.ads, s-ststop.adb: New file.
3800
3801         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
3802         Minor reformatting.
3803
3804 2008-04-08  Pascal Obry  <obry@adacore.com>
3805
3806         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
3807         (Stop_Bits_Number): New type.
3808         (Parity_Check): Likewise.
3809         (Set): Add parameter to set the number of stop bits and
3810         the parity. Parameter timeout is now a duration instead
3811         of a plain integer.
3812
3813         * g-sercom-linux.adb:
3814         Implement the stop bits and parity support for GNU/Linux.
3815         Fix handling of timeout, it must be given in tenth of seconds.
3816         
3817         * g-sercom-mingw.adb:
3818         Implement the stop bits and parity support for Windows.
3819         Use new s-win32.ads unit instead of declaring Win32 services
3820         directly into this body.
3821         Update handling of timeout as now a duration.
3822
3823         * s-win32.ads, s-winext.ads: New files.
3824
3825 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3826             Arnaud Charlet  <charlet@adacore.com>
3827
3828         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
3829
3830         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
3831         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
3832
3833         * s-osinte-lynxos-3.ads,
3834         (Alternate_Stack): Remove when not needed. Simplify declaration
3835         otherwise.
3836         (Alternate_Stack_Size): New constant.
3837
3838         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
3839         'Unrestricted_Access.
3840
3841         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
3842         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
3843         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
3844         s-osinte-solaris.ads, s-osinte-vms.ads
3845         (SA_ONSTACK): New constant.
3846         (stack_t): New record type.
3847         (sigaltstack): New imported function.
3848         (Alternate_Stack): New imported variable.
3849         (Alternate_Stack_Size): New constant.
3850
3851         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
3852
3853         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
3854         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
3855         s-taspri-vms.ads (Task_Address): New subtype of System.Address
3856         (Task_Address_Size): New constant size of System.Address
3857         (Alternate_Stack_Size): New constant.
3858
3859         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
3860         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
3861         Establish the alternate stack if the platform makes use of n alternate
3862         signal stack for stack overflows.
3863         (Create_Task): Take into account the alternate stack in the stack size.
3864         (Initialize): Save the address of the alternate stack into the ATCB for
3865         the environment task.
3866         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
3867
3868         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
3869
3870         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
3871
3872         * s-intman-posix.adb: 
3873         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
3874         alternate signal stack for stack overflows.
3875
3876         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
3877         x86-64, adjust the saved value of the stack pointer if the signal was
3878         raised by a stack checking probe.
3879         (HP-UX section): Use global __gnat_alternate_stack as signal handler
3880         stack and only for SIGSEGV.
3881         (Linux section): Likewise on x86 and x86-64.
3882         [VxWorks section]
3883         (__gnat_map_signal): Now static.
3884         (__gnat_error_handler): Not static any more.
3885         (__gnat_adjust_context_for_raise): New function. Signal context
3886         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
3887         propagation circuitry.
3888         (__gnat_error_handler): Second argument of a sigaction handler is a
3889         pointer, not an int, and is unused.
3890         Adjust signal context before mapping to exception.
3891         Install signal handlers for LynxOS case.
3892
3893         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
3894         (Task_Id): Set size to Task_Address_Size
3895         (To_Task_id): Unchecked convert from Task_Address vice System.Address
3896         (To_Address): Unchecked convert to Task_Address vice System.Address
3897
3898         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
3899         address into the ATCB if the platform makes use of an alternate signal
3900         stack for stack overflows.
3901         (Free_Task): Add call to Finalize_Attributes_Link.
3902         Add argument Relative_Deadline to pass the value specified for
3903         the task. This is not yet used for any target.
3904
3905         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
3906         the value specified for the task.
3907
3908 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3909
3910         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
3911         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
3912         s-vxwext-rtp.adb): New files.
3913
3914         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
3915         Minor updates to accomodate changes above.
3916
3917 2008-04-08  Pascal Obry  <obry@adacore.com>
3918
3919         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
3920         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
3921         Use new s-win32.ads unit instead of declaration
3922         from s-osinte-mingw.ads.
3923         
3924         * s-osinte-mingw.ads:
3925         Move all non tasking based interface to s-win32.ads.
3926         
3927         * s-osprim-mingw.adb:
3928         Remove duplicated declarations and use s-win32.ads
3929         unit instead.
3930
3931 2008-04-08  Vincent Celier  <celier@adacore.com>
3932             Arnaud Charlet  <charlet@adacore.com>
3933
3934         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
3935         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
3936         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3937         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3938         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
3939
3940         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
3941         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
3942         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
3943         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
3944         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
3945         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
3946         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
3947         mlib-tgt-specific-mingw.adb: New names.
3948
3949         * Makefile.in: 
3950         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
3951         Get rid of gnatbl.
3952         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
3953         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
3954         Minor updates for VMS
3955
3956         * gnatbl.c: Removed.
3957
3958 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3959
3960         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
3961         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
3962         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
3963         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
3964         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
3965         ASCII.NUL throughout.
3966
3967 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3968             Matthew Heaney  <heaney@adacore.com>
3969
3970         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
3971         renaming.
3972
3973         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
3974         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
3975         to convention for non-RM specs.
3976         Add descriptive header, and documented each operation
3977         document each operation
3978
3979 2008-04-08  Robert Dewar  <dewar@adacore.com>
3980             Bob Duff  <duff@adacore.com>
3981             Gary Dismukes  <dismukes@adacore.com>
3982             Ed Schonberg  <schonberg@adacore.com>
3983
3984         * alloc.ads: Add entries for Obsolescent_Warnings table
3985
3986         * einfo.ads, einfo.adb: Minor reformatting.
3987         (Is_Discriminal): New subprogram.
3988         (Is_Prival): New subprogram.
3989         (Is_Protected_Component): New subprogram.
3990         (Is_Protected_Private): Removed.
3991         (Object_Ref, Set_Object_Ref): Removed.
3992         (Prival, Set_Prival): Change assertion.
3993         (Privals_Chain, Set_Privals_Chain): Removed.
3994         (Prival_Link, Set_Prival_Link): New subprogram.
3995         (Protected_Operation, Set_Protected_Operation): Removed.
3996         (Protection_Object, Set_Protection_Object): New subprogram.
3997         (Write_Field17_Name): Remove case for Object_Ref.
3998         (Write_Field20_Name): Add case for Prival_Link.
3999         (Write_Field22_Name): Remove case for Protected_Operation,
4000         Privals_Chain.
4001         Add case for Protection_Object.
4002         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4003         so clients
4004         (Overlays_Constant): New flag
4005         (Is_Constant_Object): New predicate
4006         (Is_Standard_Character_Type): New predicate
4007         (Optimize_Alignment_Space): New flag
4008         (Optimize_Alignment_Time): New flag
4009         (Has_Postconditions): New flag
4010         (Obsolescent_Warrning): Field removed
4011         (Spec_PPC_List): New field
4012         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4013         subprograms to get and set the relative deadline associated to a task.
4014
4015         * exp_attr.adb (May_Be_External_Call): Account for the case where the
4016         Access attribute is part of a named parameter association.
4017         (Expand_Access_To_Protected_Op): Test for the attribute occurring
4018         within an init proc and use that directly as the scope rather than
4019         traversing up to the protected operation's enclosing scope. Only apply
4020         assertion on Is_Open_Scopes in the case the scope traversal is done.
4021         For the init proc case use the address of the first formal (_init) as
4022         the protected object reference.
4023         Implement Invalid_Value attribute
4024         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4025         contents of the dispatch table there is no need to duplicate the
4026         itypes associated with record types (i.e. the implicit full view
4027         of private types).
4028         Implement Enum_Val attribute
4029         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4030         within _Postconditions procedure
4031         (Expand_N_Attribute_Reference, case Result): Implement new attribute
4032
4033         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4034         a return statement calls a function that is not available in
4035         configurable runtime.
4036         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4037         (Expand_Non_Function_Return): Generate call to _Postconditions proc
4038         (Expand_Simple_Function_Return): Ditto
4039
4040         * frontend.adb: Add call to Sem_Aux.Initialize
4041
4042         * sem_aux.ads, sem_aux.adb: New file.
4043
4044         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4045         Add new Pragma_Relative_Deadline.
4046         Add support for pragmas Check and Check_Policy
4047
4048         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4049         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4050         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4051         missing check because they are not allowed in CPP tagged types.
4052         Add Sure parameter to Note_Possible_Modification calls
4053         Add implementation of Invalid_Value attribute
4054         Implement new attribute Has_Tagged_Values
4055         Implement Enum_Val attribute
4056         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4057         generated attributes.
4058         (Analyze_Attribute, case Result): If prefix of the attribute is
4059         overloaded, it always resolves to the enclosing function.
4060         (Analyze_Attribute, case Result): Properly deal with analysis when
4061         Postconditions are not active.
4062         (Resolve_Attribute, case Result): Properly deal with appearence during
4063         preanalysis in spec.
4064         Add processing for attribute Result
4065
4066         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4067         for operators.
4068         (Analyze_Subprogram_Body): Install private_with_clauses when the body
4069         acts as a spec.
4070         (Check_Inline_Pragma): recognize an inline pragma that appears within
4071         the subprogram body to which it applies.
4072         (Analyze_Function_Return): Check that type of the expression of a return
4073         statement in a function with a class-wide result is not declared at a
4074         deeper level than the function.
4075         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4076         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4077         user- defined operators.
4078         (Install_Formals): Moved to spec to allow use from Sem_Prag for
4079         analysis of precondition/postcondition pragmas.
4080         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4081         Last_Formal, along with lots of comments on what this is about
4082         (Analyze_Subprogram_Body): Fix case where we move entities from the
4083         spec to the body when there are no body entities (now possible with
4084         precondition and postcondition pragmas).
4085         (Process_PPCs): New procedure
4086         (Analyze_Subprogram_Body): Add call to Process_PPCs
4087
4088         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4089         clause.
4090         (Pop_Scope): Restore Check_Policy_List on scope exit
4091         (Push_Scope): Save Check_Policy_List on scope entry
4092         Change name In_Default_Expression      => In_Spec_Expression
4093         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4094         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4095         (Analyze_Object_Renaming): Allow 'Reference as object
4096         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
4097         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
4098         of restriction identifier.
4099         Add Sure parameter to Note_Possible_Modication calls
4100
4101         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
4102         Don't check for primitive operations when calling Rep_Item_Too_Late.
4103         (Process_Import_Or_Interface): Do not place flag on formal
4104         subprograms.
4105         (Analyze_Pragma, case Export): If the entity is a deferred constant,
4106         propagate information to full view, which is the one elaborated by the
4107         back-end.
4108         (Make_Inline): the pragma is effective if it applies to an internally
4109         generated subprogram declaration for a body that carries the pragma.
4110         (Analyze_Pragma, case Optimize_Alignment): Set new flag
4111         Optimize_Alignment_Local.
4112         (Analyze_PPC_In_Decl_Part): New procedure
4113         (Get_Pragma_Arg): Moved to outer level
4114         (Check_Precondition_Postcondition): Change to allow new visibility
4115         rules for package spec
4116         (Analyze_Pragma, case Check_Policy): Change placement rules to be
4117         same as pragma Suppress/Unsuppress.
4118         Change name In_Default_Expression      => In_Spec_Expression
4119         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4120         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4121         (Check_Precondition_Postcondition): Do proper visibility preanalysis
4122         for the case of these pragmas appearing in the spec.
4123         (Check_Enabled): New function
4124         (Initialize): New procedure
4125         (Tree_Read): New procedure
4126         (Tree_Write): New procedure
4127         (Check_Precondition_Postcondition): New procedure
4128         Implement pragmas Check and Check_Policy
4129         Merge Assert processing with Check
4130
4131         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
4132         New warning flag -gnatw.e
4133
4134         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
4135         returning whether a task (or main procedure) has a pragma
4136         Relative_Deadline.
4137         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
4138         (or main procedure) has a pragma Relative_Deadline.
4139         Add Next_Pragma field to N_Pragma node
4140         (PPC_Enabled): New flag
4141         (Next_Pragma): Now used for Pre/Postcondition processing
4142
4143         * snames.h, snames.ads, snames.adb: New standard name
4144         Inherit_Source_Path
4145         Add entry for 'Invalid_Value attribute
4146         Add entry for new attribute Has_Tagged_Values
4147         Add entry for Enum_Val attribute
4148         Add new standard names Aggregate, Configuration and Library.
4149         Add _Postconditions
4150         Add _Result
4151         Add Pragma_Precondition
4152         Add Pragma_Postcondition
4153         Add Attribute_Result
4154         New standard name Archive_Builder_Append_Option
4155         (Preset_Names): Add _relative_deadline and relative_deadline definitions
4156         There was also a missing non_preemptive_within_priorities.
4157         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
4158         Relative_Deadline.
4159         Add support for pragmas Check and Check_Policy
4160
4161         * tree_gen.adb: Call Sem_Aux.Tree_Write
4162
4163         * tree_in.adb: Call Sem_Aux.Tree_Read
4164
4165         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
4166         sequence
4167
4168         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
4169         sequence
4170
4171         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
4172         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
4173         Relative_Deadline.
4174         (Expand_Pragma_Check): New procedure
4175
4176         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
4177         buffer.
4178
4179         * sinfo.adb (PPC_Enabled): New flag
4180
4181 2008-04-08  Robert Dewar  <dewar@adacore.com>
4182             Gary Dismukes  <dismukes@adacore.com>
4183             Javier Miranda  <miranda@adacore.com>
4184             Ed Schonberg  <schonberg@adacore.com>
4185
4186         * fe.h: Remove global Optimize_Alignment flag, no longer used
4187
4188         * layout.adb: Test Optimize_Alignment flags rather than global switch
4189
4190         * lib.ads, lib.adb: New OA_Setting field in library record
4191
4192         * lib-load.adb: New OA_Setting field in library record
4193
4194         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
4195         units mentioned in limited_with_ clauses in the ali file, with an
4196         'Y' marker.
4197         New Ox fields in U line
4198
4199         * opt.adb: New flag Optimize_Alignment_Local
4200         (Check_Policy_List[_Config]): New flags
4201
4202         * opt.ads (Invalid_Value_Used): New flag
4203         New switch Optimize_Alignment_Local
4204         (Warn_On_Parameter_Order): New flag
4205         (Check_Policy_List[_Config]): New flags
4206
4207         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
4208         limited_with clauses.
4209         New data structures for Optimize_Alignment
4210
4211         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
4212         New procedure
4213         (Check_Consistent_Optimize_Alignment): Rework for new structure
4214         (Check_Consistent_Restrictions): Fix incorrect error message
4215
4216         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
4217         created class-wide type (to the Parent field of the specific type).
4218         (Install_Siblings): Handle properly private_with_clauses on subprogram
4219         bodies and on generic units.
4220         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
4221         illegal limited_with_clause that names a non-existent package.
4222         (Check_Body_Required): Determine whether a unit named a limited_with
4223         clause needs a body.
4224         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
4225         Capture Optimize_Alignment settings to set new OA_Setting field in
4226         library record.
4227         (Build_Limited_Views): Include task and protected type declarations.
4228
4229         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
4230         case of a possible constant redeclaration where the current object is
4231         an entry index constant.
4232         (Analyze_Object_Declaration): Generate an error in case of CPP
4233         class-wide object initialization.
4234         (Analyze_Object_Declaration): Add extra information on warnings for
4235         declaration of unconstrained objects.
4236         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
4237         conflicts with the setting of Stored_Constraint in the case where the
4238         access type entity has already been created as an E_Incomplete_Type due
4239         to a limited with clause.
4240         Use new Is_Standard_Character_Type predicate
4241         (Analyze_Object_Declaration): Apply access_constant check only after
4242         expression has been resolved, given that it may be overloaded with
4243         several access types.
4244         (Constant_Redeclaration): Additional legality checks for deferred
4245         constant declarations tha involve anonymous access types and/or null
4246         exclusion indicators.
4247         (Analyze_Type_Declaration): Set Optimize_Alignment flags
4248         (Analyze_Subtype_Declaration): Ditto
4249         (Analyze_Object_Declaration): Ditto
4250         (Analyze_Object_Declaration): Don't count tasks in generics
4251         Change name In_Default_Expression      => In_Spec_Expression
4252         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4253         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4254         (Process_Discriminants): Additional check for illegal use of default
4255         expressions in access discriminant specifications in a type that is not
4256         explicitly limited.
4257         (Check_Abstract_Overriding): If an inherited function dispaches on an
4258         access result, it must be overridden, even if the type is a null
4259         extension.
4260         (Derive_Subprogram): The formals of the derived subprogram have the
4261         names and defaults of the parent subprogram, even if the type is
4262         obtained from the actual subprogram.
4263         (Derive_Subprogram): In the presence of interfaces, a formal of an
4264         inherited operation has the derived type not only if it descends from
4265         the type of the formal of the parent operation, but also if it
4266         implements it. This is relevant for the renamings created for the
4267         primitive operations of the actual for a formal derived type.
4268         (Is_Progenitor): New predicate, to determine whether the type of a
4269         formal in the parent operation must be replaced by the derived type.
4270
4271         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
4272         predicate recursive to handle components that have a user-defined
4273         Initialize procedure. Handle controlled derived types whose ancestor
4274         has a user-defined Initialize procedured.
4275         (Note_Possible_Modification): Add Sure parameter, generate warning if
4276         sure modification of constant
4277         Use new Is_Standard_Character_Type predicate
4278         (Find_Parameter_Type): when determining whether a protected operation
4279         implements an interface operation, retrieve the type of the formal from
4280         the entity when the formal is an access parameter or an
4281         anonymous-access-to-subprogram.
4282         Move Copy_Parameter_List to sem_util, for use when building stubbed
4283         subprogram bodies.
4284         (Has_Access_Values): Tagged types now return False
4285         (Within_HSS_Or_If): New procedure
4286         (Set_Optimize_Alignment_Flags): New procedure
4287         Change name In_Default_Expression      => In_Spec_Expression
4288         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4289         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4290
4291 2008-04-08  Tristan Gingold  <gingold@adacore.com>
4292
4293         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
4294
4295 2008-04-08  Tristan Gingold  <gingold@adacore.com>
4296
4297 PR ada/10768
4298
4299         * cuintp.c: Fix 16 bits issue for AVR.
4300         On AVR, integer is 16 bits, so it can't be used to do math with
4301         Base (=32768).
4302         So use long_integer instead.
4303
4304 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4305
4306         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
4307         System.OS_Primitives.
4308         Change type of various constants, parameters and local variables from
4309         Time to representation type OS_Time.
4310         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
4311         Remove the declaration of constant Mili_F from several routines. New
4312         body for internal package Conversions_Operations.
4313         (Time_Of): Add default parameters for several formals.
4314
4315         * a-caldel.adb: Minor reformatting
4316
4317         * a-calend.ads, a-calend.adb: New body for internal package
4318         Conversions_Operations.
4319         (Time_Of): Add default parameters for several formals.
4320
4321         * Makefile.rtl: Add a-ststop
4322         Add Ada.Calendar.Conversions to the list of runtime files.
4323         Add g-timsta
4324
4325         * a-calcon.adb, a-calcon.ads: New files.
4326
4327 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
4328             Tristan Gingold  <gingold@adacore.com>
4329
4330         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
4331         (Install_Restricted_Handlers): New procedure
4332         which is a simplified version of Install_Handlers that does not store
4333         previously installed.
4334
4335         * s-interr-vxworks.adb: Fix ACATS cxc3001
4336         On VxWorks interrupts can't be detached.
4337         (Install_Restricted_Handlers): New procedure.
4338
4339         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
4340         procedure.
4341
4342 2008-04-08  Olivier Hainque  <hainque@adacore.com>
4343
4344         * s-intman-vxworks.ads, s-intman-vxworks.adb
4345         (Map_And_Raise_Exception): Remove. Was an import of only part of the
4346         required services already implemented elsewhere.
4347         (Notify_Exception): Delete body, import __gnat_error_handler instead.
4348         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
4349         argument passed to the handler, which we need for ZCX propagation
4350         purposes.
4351
4352 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4353
4354         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
4355
4356         * g-timsta.adb, g-timsta.ads: New files.
4357
4358 2008-04-08  Robert Dewar  <dewar@adacore.com>
4359
4360         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
4361         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
4362         (Raise_Exception_Always): Fix documentation accordingly
4363
4364 2008-04-08  Robert Dewar  <dewar@adacore.com>
4365
4366         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
4367         Stream_Convert)
4368
4369         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
4370         FOnly
4371
4372 2008-04-08  Javier Miranda  <miranda@adacore.com>
4373             Robert Dewar  <dewar@adacore.com>
4374             Ed Schonberg  <schonberg@adacore.com>
4375
4376         * a-tags.adb (Register_Interface_Offset): New subprogram.
4377         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
4378         (To_Predef_Prims_Table_Ptr): Removed.
4379         (Acc_Size): Removed.
4380         (To_Acc_Size): Removed.
4381         (Parent_Size): Modified to the call the subprogram returning the size of
4382         the parent by means of the new TSD component Size_Func.
4383
4384         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
4385         (DT_Offset_To_Top_Offset): New constant value that is used to generate
4386         code referencing the Offset_To_Top component of the dispatch table's
4387         prologue.
4388         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
4389         use of 'address to initialize dispatch table slots.
4390         (Size_Func): New component of the TSD. Used by the run-time to call the
4391         size primitive of the tagged type.
4392
4393         * checks.adb (Apply_Access_Check): Avoid check when accessing the
4394         Offset_To_Top component of a dispatch table.
4395         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
4396         deferred constant declaration. do not add a null expression, to prevent
4397         spurious errors when full declaration is analyzed.
4398         (Apply_Discriminant_Check): If both discriminant constraints share a
4399         node which is not static but has no side effects, do not generate a
4400         check for that discriminant.
4401         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
4402         subexpr, since the prefix of an attribute is a name.
4403
4404         * checks.ads: Fix nit in comment.
4405
4406         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
4407         and body of predefined primitives in case of CPP tagged type
4408         derivations.
4409         (Freeze_Type): Deal properly with no storage pool case
4410         (Make_Predefined_Primitive_Specs): Generate specification of abstract
4411         primitive Deep_Adjust if a nonlimited interface is derived from a
4412         limited interface.
4413         (Build_Dcheck_Functions): Create discriminant-checking functions only
4414         for variants that have some component(s).
4415         (Build_Slice_Assignment): In expanded code for slice assignment, handle
4416         properly the case where the slice bounds extend to the last value of the
4417         underlying representation.
4418         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
4419         (Is_Variable_Size_Record): An array component has a static size if
4420         index bounds are enumeration literals.
4421
4422         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
4423         an external tag has been specified for the type.
4424         (Building_Static_DT): Add missing support for private types.
4425         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
4426         to the entity associated with the parent of Typ. This is done to
4427         avoid wrong access when the parent is a private type.
4428         (Expand_Interface_Conversion): Improve error message when the
4429         configurable runtime has no support for dynamic interface conversion.
4430         (Expand_Interface_Thunk): Add missing support to interface types in
4431         configurable runtime.
4432         (Expand_Dispatching_Call): remove obsolete code.
4433         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
4434         ensure that all subtypes and aggregates associated with dispatch
4435         tables have the attribute Is_Dispatch_Table_Entity set to true.
4436         (Register_Primitive): Rename one variable to improve code reading.
4437         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
4438         of the pointer to the 'size primitive in the TSD.
4439
4440         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
4441         (RE_Offset_To_Top_Ptr): New entity.
4442         (RE_Register_Interface_Offset): New entity.
4443         (RE_Set_Dynamic_Offset_To_Top): New entity.
4444         (RE_Set_Offset_To_Top): Removed entity.
4445         (RE_Prim_Ptr): New entity
4446         (RE_Size_Func): New entity
4447         (RE_Size_Ptr): New entity
4448         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
4449         (Ada_Dispatching_Child): Define this new subrange.
4450         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
4451          RE_Time_Span, and RE_Time_Span_Zero).
4452         (RE_Unit_Table): Add new required run-time calls
4453
4454         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
4455         children.
4456
4457         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
4458         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
4459          initializes the Offset_To_Top component of a dispatch table.
4460         (Build_Predef_Prims): Removed.
4461         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
4462          its actual code.
4463         (Build_Set_Size_Function): New subprogram.
4464
4465         * exp_ch13.adb: Do not generate storage variable for storage_size zero
4466         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
4467
4468 2008-04-08  Robert Dewar  <dewar@adacore.com>
4469
4470         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
4471         computing Fore when Exp > 0
4472
4473 2008-04-08  Robert Dewar  <dewar@adacore.com>
4474
4475         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
4476
4477         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
4478         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
4479
4480         * fmap.adb: Remove Big_String declarations (now in Types)
4481         (No_Mapping_File): New Boolean global variable
4482         (Initialize): When mapping file cannot be read, set No_Mapping_File to
4483         False.
4484         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
4485         tables were empty before adding entries, open the mapping file
4486         with Truncate = True, instead of delete/re-create.
4487
4488         * fname-sf.adb: Remove Big_String declarations (now in Types)
4489
4490         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
4491         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
4492         big pointer types
4493
4494         * table.ads: Add for Table_Ptr'Storage_Size use 0
4495
4496         * types.ads: Add Big_String declarations
4497         Add Size_Clause of zero for big pointer types
4498
4499 2008-04-08  Vincent Celier  <celier@adacore.com>
4500
4501         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
4502         (Usage): Add line for switch --subdirs=
4503         Add new switch -eL, to follow symbolic links when processing project
4504         files.
4505
4506         * gnatcmd.adb: Process switches -eL and --subdirs=
4507         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
4508         Program_Name to get proper tool names when AAMP_On_Target is set.
4509         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
4510         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
4511         Osint.Program_Name).
4512
4513         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
4514         (Usage): Add lines for switches -eL and --subdirs=
4515
4516         * makeusg.adb: Add line for switch --subdirs=
4517
4518         * prj.ads: 
4519         (Source_Data): New Boolean component Compiled, defaulted to True
4520         (Empty_File_Name: New global variable in private part, initialized in
4521         procedure Initialize.
4522         (Subdirs_Option): New constant string
4523         (Subdirs): New String_Ptr global variable
4524         (Language_Config): New component Include_Compatible_Languages
4525         (Project_Qualifier): New type for project qualifiers
4526         (Project_Data): New component Qualifier
4527         (Project_Configuration): New component Archive_Builder_Append_Option
4528
4529         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
4530         another imported project indicate the name of this imported project.
4531         (Check_File): When a unit is in two project files, indicate the project
4532         names and the paths of the source files for each project.
4533         (Add_Source): Set Compiled to False if compiler driver is empty. Only
4534         set object, dependency and switches file names if Compiled is True.
4535         (Process_Compiler): Allow the empty string for value of attribute Driver
4536         (Get_Directories): When Subdirs is not null and Object_Dir is not
4537          specified, locate and create if necessary the actual object dir.
4538         (Locate_Directory): When Subdirs is not empty and Create is not the
4539         empty string, locate and create if necessary the actual directory
4540         as a subdirectory of directory Name.
4541         (Check_Library_Attributes.Check_Library): Allow a project where the only
4542         "sources" are header files of file based languages to be imported by
4543         library projects, in multi-language mode (gprbuild).
4544         (Check_Library_Attributes.Check_Library): In multi-language mode
4545         (gprbuild), allow a library project to import a project with no
4546         sources, even when this is not declared explicitly.
4547         (Check_If_Externally_Built): A virtual project extending an externally
4548         built project is also externally built.
4549         (Check_Library_Attributes): For a virtual project extending a library
4550         project, inherit the library directory.
4551         (Process_Project_Level_Array_Attributes): Process new attribute
4552         Inherit_Source_Path.
4553         For projects with specified qualifiers "standard", "library" or
4554         "abstract", check that the project conforms to the qualifier.
4555         (Process_Project_Level_Simple_Attributes): Process new attribute
4556          Archive_Builder_Append_Option.
4557
4558         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
4559         (Normalize_Compiler_Switches): Only keep compiler switches that are
4560         passed to gnat1 by the gcc driver and that are stored in the ALI file
4561         by gnat1.
4562         Do not take into account switc -save-temps
4563
4564         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
4565         gprmake is called with -eL.
4566         (Scan_Arg): Recognize switch -eL
4567         (Usage): Add line for switch -eL
4568
4569         * prj.adb (Initialize): Initialize Empty_File_Name
4570         (Project_Empty): New component Qualifier
4571
4572         * prj-attr.ads, prj-attr.adb: New project level attribute
4573         Inherit_Source_Path.
4574         New project level attribute Archive_Builder_Append_Option
4575
4576         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
4577
4578         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
4579         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
4580         upward compatibility.
4581
4582         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
4583         each Trying ..." on different lines.
4584         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
4585         is "configuration" when not in configuration. Fail when in configuration
4586         when a specified qualifier is other than "configuration".
4587
4588         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
4589         full associative array together.
4590         (Recursive_Process): Put the project qualifier in the project data
4591         
4592         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
4593         (Set_Project_Qualifier_Of): New procedure
4594
4595 2008-04-08  Robert Dewar  <dewar@adacore.com>
4596
4597         * errout.ads: Update comments for new handling of info: messages
4598
4599         * erroutc.adb (Matches): New procedure
4600         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
4601         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
4602          info messages as well as style messages.
4603
4604         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
4605
4606         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
4607         subprograms.
4608         (Check_A_Call): Special "info: " warnings now have ? in the text
4609         (Elab_Warning): Use info message in static case
4610
4611 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4612
4613         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
4614         whether an array aggregate with static bounds and scalar components
4615         should be expanded into a static constant.
4616
4617 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
4618             Ed Schonberg  <schonberg@adacore.com>
4619             Robert Dewar  <dewar@adacore.com>
4620
4621         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
4622         Has_Stream_Attribute_ Definition when checking for available stream
4623         attributes on parameters of a limited type in Ada 2005. Necessary for
4624         proper recognition of visible stream attribute clauses.
4625         (Has_Stream_Attribute_Definition): If the type is derived from a
4626         private type, then use the derived type's underlying type for checking
4627         whether it has stream attributes.
4628         (Validate_Object_Declaration): The check for a user-defined Initialize
4629         procedure applies also to types with controlled components or a
4630         controlled ancestor.
4631         Reject an object declaration in a preelaborated unit if the type is a
4632         controlled type with an overriding Initialize procedure.
4633         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
4634         checking when the parent of a dereference is a selected component and
4635         the name has not been analyzed.
4636
4637         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
4638         prefixes that are invalid explicit dereferences of remote
4639         access-to-class-wide values, first checking whether the selected
4640         component is a prefixed form of call to a tagged operation.
4641         (Analyze_Call): Remove code that issues an error for limited function
4642         calls in illegal contexts, as we now support all of the contexts that
4643         were forbidden here.
4644         Allow a function call that returns a task.and appears as the
4645         prefix of a selected component.
4646         (Analyze_Reference): Give error message if we try to make a 'Reference
4647         for an object that is atomic/aliased without its type having the
4648         corresponding attribute.
4649         (Analyze_Call): Remove condition checking for attributes to allow
4650         calls to functions with inherently limited results as prefixes of
4651         attributes. Remove related comment about Class attributes.
4652         (Analyze_Selected_Component): If the prefix is a remote type, check
4653         whether this is a prefixed call before reporting an error.
4654         (Complete_Object_Operation): If the controlling formal is an access to
4655         variable reject an actual that is a constant or an access to one.
4656         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4657         primitive operations from base type.
4658
4659         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
4660         build-in-place
4661         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4662         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
4663         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4664         (Expand_N_Slice): Test for prefix that is a build-in-place function call
4665         and call Make_Build_In_Place_Call_In_Anonymous_Context.
4666         (Analyze_Call): Remove code that issues an error for limited function
4667         calls in illegal contexts, as we now support all of the contexts that
4668         were forbidden here.
4669         New calling sequence for Get_Simple_Init_Val
4670         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
4671         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
4672
4673 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4674             Ed Schonberg  <schonberg@adacore.com>
4675             Robert Dewar  <dewar@adacore.com>
4676
4677         * exp_ch2.adb: Minor reformatting.
4678         (Expand_Entry_Index_Parameter): Set the type of the identifier.
4679         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
4680         (Expand_Protected_Component): New routine.
4681         (Expand_Protected_Private): Removed.
4682         Add Sure parameter to Note_Possible_Modification calls
4683
4684         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
4685         generated subprogram declaration must inherit the overriding indicator
4686         from the instantiation node.
4687         (Validate_Access_Type_Instance): If the designated type of the actual is
4688         a limited view, use the available view in all cases, not only if the
4689         type is an incomplete type.
4690         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
4691         and the actual subtype does not exclude null.
4692         (Process_Default): Handle properly abstract formal subprograms.
4693         (Check_Formal_Package_Instance): Handle properly defaulted formal
4694         subprograms in a partially parameterized formal package.
4695         Add Sure parameter to Note_Possible_Modification calls
4696         (Validate_Derived_Type_Instance): if the formal is non-limited, the
4697         actual cannot be limited.
4698         (Collect_Previous_Instances): Generate instance bodies for subprograms
4699         as well.
4700
4701         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
4702         try to set RM_Size.
4703         Add Sure parameter to Note_Possible_Modification calls
4704         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
4705         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
4706         constant overlaid by variable and issue warning.
4707         Use new Is_Standard_Character_Type predicate
4708         (Analyze_Record_Representation_Clause): Check that the specified
4709         Last_Bit is not less than First_Bit - 1.
4710         (Analyze_Attribute_Definition_Clause, case Address): Check for
4711         self-referential address clause
4712
4713         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
4714         detection mechanism when the lhs is a prival.
4715         (Analyze_Assignment): Call Check_Unprotected_Access to detect
4716         assignment of a pointer to protected data, to an object declared
4717         outside of the protected object.
4718         (Analyze_Loop_Statement): Check for unreachable code after loop
4719         Add Sure parameter to Note_Possible_Modication calls
4720         Protect analysis from previous syntax error such as a scope mismatch
4721         or a missing begin.
4722         (Analyze_Assignment_Statement): The assignment is illegal if the
4723         left-hand is an interface.
4724
4725         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
4726         violation of restriction No_Implicit_Conditionals
4727         Add Sure parameter to Note_Possible_Modication calls
4728         Use new Is_Standard_Character_Type predicate
4729         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
4730         call as operator. Fixes problems (e.g. validity checking) which
4731         come from the result looking as though it does not come from source).
4732         (Resolve_Call): Check case of name in named parameter if style checks
4733         are enabled.
4734         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
4735         from the checking that such calls should not occur from an entry body.
4736         (Resolve_Call): If the return type of an Inline_Always function
4737         requires the secondary stack, create a transient scope for the call
4738         if the body of the function is not available for inlining.
4739         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
4740         that are actuals for in-out formals.
4741         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4742         primitive operations from base type.
4743         (Analyze_Selected_Component): If the context is a call to a protected
4744         operation the parent may be an indexed component prior to expansion.
4745         (Resolve_Actuals): If an actual is of a protected subtype, use its
4746         base type to determine whether a conversion to the corresponding record
4747         is needed.
4748         (Resolve_Short_Circuit): Handle pragma Check
4749
4750         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
4751         Use new Is_Standard_Character_Type predicate
4752         (Eval_Relational_Op): Catch more cases of string comparison
4753
4754 2008-04-08  Robert Dewar  <dewar@adacore.com>
4755             Gary Dismukes  <dismukes@adacore.com>
4756
4757         * s-rident.ads: Add No_Default_Initialization restriction
4758
4759         * exp_tss.adb: 
4760         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
4761         (Set_TSS): Handle No_Default_Initialization case
4762
4763         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
4764         No_Default_Initialization
4765         (Expand_N_Subprogram_Body): Remove redundant initialization of out
4766         parameters when Normalize_Scalars is active.
4767         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
4768         Fix casing error in formal parameter name in call
4769         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
4770         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4771         dispatching call on VM targets.
4772
4773 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
4774             Thomas Quinot  <quinot@adacore.com>
4775
4776         * exp_ch7.adb (Find_Final_List): Change the test for generating a
4777         selected component from an access type's Associated_Final_Chain to
4778         check for the presence of that field, rather than assuming it exists
4779         for all named access types.
4780         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
4781         procedure to call at the end of the generated cleanup procedure.
4782         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
4783         and an At_End_Proc already exists in the handled sequence of statements
4784         for which cleanup actions are being expanded, the original cleanup
4785         action must be preserved.
4786
4787 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4788             Ed Schonberg  <schonberg@adacore.com>
4789             Robert Dewar  <dewar@adacore.com>
4790             Gary Dismukes  <dismukes@adacore.com>
4791
4792         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
4793         Build_Unprotected_Subprogram_Body): Generate debug info for
4794         declarations related to the handling of private data in task and
4795         protected types.
4796         (Debug_Private_Data_Declarations): New subprogram.
4797         (Install_Private_Data_Declarations): Remove all debug info flagging.
4798         This is now done by Debug_Private_Data_Declarations at the correct
4799         stage of expansion.
4800         (Build_Simple_Entry_Call): If the task name is a function call, expand
4801         the prefix into an object declaration, and make the surrounding block a
4802         task master.
4803         (Build_Master_Entity): An internal block is a master if it wraps a call.
4804         Code reformatting, update comments. Code clean up.
4805         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
4806         (Replicate_Entry_Formals): If the formal is an access parameter or
4807         anonymous access to subprogram, copy the original tree to create new
4808         entities for the formals of the subprogram.
4809         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
4810         for tasks to store the value passed using pragma Relative_Deadline.
4811         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
4812         run-time call to create a task.
4813         (Build_Wrapper_Spec): If the controlling argument of the interface
4814         operation is an access parameter with a non-null indicator, use the
4815         non-null indicator on the wrapper.
4816
4817         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
4818         present, which it may not be in the case where the type entity is an
4819         incomplete view brought in by a limited with.
4820         (Analyze_Task_Type): Only retrieve the full view when present, which it
4821         may not be in the case where the type entity is an incomplete view brought
4822         in by a limited with.
4823         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
4824         private components of a protected type, to prevent the generation of freeze
4825         nodes for which there is no proper scope of elaboration.
4826
4827         * exp_util.ads, exp_util.adb
4828         (Remove_Side_Effects): If the expression is a function call that returns a
4829         task, expand into a declaration to invoke the build_in_place machinery.
4830         (Find_Protection_Object): New routine.
4831         (Remove_Side_Effects): Also make a copy of the value
4832         for attributes whose result is of an elementary type.
4833         (Silly_Boolean_Array_Not_Test): New procedure
4834         (Silly_Boolean_Array_Xor_Test): New procedure
4835         (Is_Volatile_Reference): New function
4836         (Remove_Side_Effects): Use Is_Volatile_Reference
4837         (Possible_Bit_Aligned_Component): Handle slice case properly
4838
4839         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
4840         case test to Exp_Util
4841         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
4842
4843 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4844
4845         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
4846         in call
4847         (Add_RACW_Features): When processing an RACW in another unit than the
4848         main unit, set Body_Decls to No_List to indicate that the bodies of
4849         the type's TSS must not be generated.
4850         (GARLIC_Support.Add_RACW_Read_Attribute,
4851         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
4852         Body_Decls is No_List.
4853         (PolyORB_Support.Add_RACW_Read_Attribute,
4854         PolyORB_Support.Add_RACW_Write_Attribute,
4855         PolyORB_Support.Add_RACW_From_Any,
4856         PolyORB_Support.Add_RACW_To_Any,
4857         PolyORB_Support.Add_RACW_TypeCode): Same.
4858         (Transmit_As_Unconstrained): New function.
4859         (Build_Ordered_Parameters_List): Use the above to order parameters.
4860         (GARLIC_Support.Build_General_Calling_Stubs):
4861         Use the above to determine which parameters to unmarshall using 'Input
4862         at the point where their temporary is declared (as opposed to later on
4863         with a 'Read call).
4864         (PolyORB_Support.Build_General_Calling_Stubs):
4865         Use the above to determine which parameters to unmarshall using From_Any
4866         at the point where their temporary is declared (as opposed to later on
4867         with an assignment).
4868
4869 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4870
4871         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
4872         an Input function for an access type, do not perform default
4873         initialization on the local variable that receives the value, to
4874         prevent spurious warnings when the type is null-excluding.
4875
4876 2008-04-08  Robert Dewar  <dewar@adacore.com>
4877             Ed Schonberg  <schonberg@adacore.com>
4878
4879         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
4880         units.
4881         (Size_Known): Generic formal scalar types have known at compile
4882         time size, so remove check.
4883         Fix casing error in formal parameter name in call
4884         (Freeze_Subprogram): If the subprogram is a user-defined operator,
4885         recheck its overriding indication.
4886
4887 2008-04-08  Vincent Celier  <celier@adacore.com>
4888
4889         * gnat1drv.adb: Send all messages indicating an error to standard error
4890
4891 2008-04-08  Robert Dewar  <dewar@adacore.com>
4892
4893         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
4894         (List_Applicable_Restrictions): Do not list existing restrictions
4895
4896 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4897
4898         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
4899         add a pointer to generic sockets literature
4900         do not mention that the given example is "typical" usage.
4901         Remove obsolete comment about multicast not being supported on Windows.
4902         (Connect_Socket): Make Server mode IN rather than IN OUT
4903         since this formal is never modified.
4904
4905 2008-04-08  Robert Dewar  <dewar@adacore.com>
4906
4907         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
4908         the declaration for some different entity.
4909         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
4910         list is precent (following the parent subtype indication), display
4911         appropriate "and" keyword.
4912
4913         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
4914         Remove unnecessary calls to Init_Size_Align and Init_Esize.
4915         Add notes on use of Parent field of an Itype
4916
4917 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4918             Robert Dewar  <dewar@adacore.com>
4919             Gary Dismukes  <dismukes@adacore.com>
4920
4921         * lib-xref.adb (Is_On_LHS): Remove dead code
4922         (Output_Overriden_Op): If the overridden operation is itself inherited,
4923         list the ancestor operation, which is the one whose body or absstract
4924         specification is actually being overridden. For source navigation
4925         purposes.
4926
4927         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
4928         operation is primitive for the type.
4929         (Declare_Inherited_Private_Subprograms): If the new operation overrides
4930         an inherited private subprogram, set properly the Overridden_Operation
4931         attribute, for better cross-reference information.
4932         (Analyze_Package_Specification): Do late analysis of spec PPCs
4933         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
4934         properly the full view and underlying full views of a private type in a
4935         child unit, whose full view is derived from a private type in a parent
4936         unit, and whose own full view becomes visible in the child body.
4937
4938         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
4939         primitive operation after the type has been frozen, add an explicit
4940         reference to the type and the operation, because other primitive
4941         references have been emitted already.
4942         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4943         dispatching call on VM targets.
4944
4945 2008-04-08  Vincent Celier  <celier@adacore.com>
4946             Thomas Quinot  <quinot@adacore.com>
4947
4948         * make.adb: (Gnatmake_Called): Remove, no longer necessary
4949         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
4950         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
4951         (Insert_Project_Sources): Take into account index in multi-unit source
4952         files.
4953         After building a library project, delete all temporary files.
4954         (Initialize): Reset current output after parsing project file.
4955         (Collect_Arguments_And_Compile): Never insert in the queue the sources
4956         of library projects that are externally built.
4957         Put file name in error and inform messages if -df is used
4958         (Display): If invoked with -d7, do not display path names, but only
4959         file names.
4960
4961         * makeutl.ads (Path_Or_File_Name): New function
4962         (Path_Or_File_Name): New function
4963
4964 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4965
4966         * Make-lang.in: Disable warnings during first stage of bootstrap
4967         Get rid of gnatbl.
4968         Update dependencies.
4969
4970 2008-04-08  Vincent Celier  <celier@adacore.com>
4971
4972         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
4973         case to decide if ALI object file is included in library.
4974         (Build_Library): Never attempt to build a library if the project is
4975         externally built.
4976
4977 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4978
4979         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
4980         (No_List) is defined to return Empty.
4981
4982 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
4983
4984         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
4985         documentation.
4986         Update comments.
4987         (Read_Default_Search_Dirs): Do not consider spaces as path separators
4988         because spaces may be part of legal paths.
4989
4990 2008-04-08  Robert Dewar  <dewar@adacore.com>
4991
4992         * par-ch11.adb (P_Exception_Handler): Check indentation level for
4993         handler
4994
4995 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4996
4997         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
4998         in a type declaration, if this is not an interface declaration or
4999         private type extension.
5000
5001 2008-04-08  Vincent Celier  <celier@adacore.com>
5002
5003         * prj-util.adb (Executable_Of): New String parameter Language. When
5004         Ada_Main is False and Language is not empty, attempt to remove the body
5005         suffix or the spec suffix of the language to get the base of the
5006         executable file name.
5007         (Put): New Boolean parameter Lower_Case, defauilted to False. When
5008         Lower_Case is True, put the value in lower case in the name list.
5009         (Executable_Of): If there is no executable suffix in the configuration,
5010         then do not modify Executable_Extension_On_Target.
5011
5012         * prj-util.ads (Executable_Of): New String parameter Language,
5013         defaulted to the empty string.
5014         (Put): New Boolean parameter Lower_Case, defauilted to False
5015
5016 2008-04-08  Robert Dewar  <dewar@adacore.com>
5017
5018         * scng.adb (Scan_Identifier): Handle case of identifier starting with
5019         wide character using UTF-8 encoding.
5020
5021 2008-04-08  Javier Miranda  <miranda@adacore.com>
5022
5023         * sem.adb (Analyze): Consider case in which we analyze an empty node
5024         that was generated by a call to a runtime function that is not
5025         available under the configurable runtime.
5026
5027         * sem.ads (Inside_Freezing_Actions): New flag.
5028         (Save_Check_Policy_List): New field in scope stack entry
5029
5030 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5031             Robert Dewar  <dewar@adacore.com>
5032
5033         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5034         the ancestor part of an extension aggregate for a limited type.
5035         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5036         enumeration index bounds.
5037         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5038         when array is too short.
5039         (Check_Expr_OK_In_Limited_Aggregate): Move function
5040         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5041         change name).
5042         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5043         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5044         component associations.
5045         (Check_Non_Limited_Type): Moved to outer level and renamed.
5046         (Resolve_Record_Aggregate): In an extension aggregate, an association
5047         with a box initialization can only designate a component of the
5048         extension, not a component inherited from the given ancestor
5049
5050         * sem_case.adb: Use new Is_Standard_Character_Type predicate
5051
5052 2008-04-08  Robert Dewar  <dewar@adacore.com>
5053
5054         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5055         negative scale
5056         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5057         Properly handle case where Aft > Scale and input number is less than
5058         one.
5059
5060 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5061
5062         * s-stoele.ads, s-soflin.ads: Move the location of
5063         Dummy_Communication_Block from System.Storage_Elements to
5064         System.Soft_Links.
5065
5066         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5067         emulate Communication_Block in certain scenarios.
5068
5069 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5070
5071         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5072         subprogram.
5073         Add new subtype S_WWC, unchecked conversion routines From_WWC and
5074         To_WWC.
5075         (I_WWC, O_WWC): New routines for input and output of
5076         Wide_Wide_Character.
5077
5078 2008-04-08  Robert Dewar  <dewar@adacore.com>
5079
5080         * stringt.adb (Write_String_Table_Entry): Handle wide characters
5081         properly
5082
5083 2008-04-08  Robert Dewar  <dewar@adacore.com>
5084
5085         * styleg.adb (Check_Comment): Allow special char after -- in
5086         non-end-of-line case
5087
5088 2008-04-08  Robert Dewar  <dewar@adacore.com>
5089
5090         * stylesw.adb: Implement -gnaty + - y options
5091         (Set_GNAT_Style_Check_Options): Includ I in style check string
5092
5093         * stylesw.ads: Add comments for new style switch options
5094
5095 2008-04-08  Sergey Rybin  <rybin@adacore.com>
5096
5097         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
5098         to the set of the GNAT components needed by ASIS.
5099
5100 2008-04-08  Bob Duff  <duff@adacore.com>
5101
5102         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
5103
5104 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5105
5106         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
5107         Improve error message generation.
5108
5109 2008-04-08  Vincent Celier  <celier@adacore.com>
5110
5111         * a-direct.adb (Start_Search): Check for Name_Error before checking for
5112         Use_Error, as specified in the RM. Check if directory is open and raise
5113         Use_Error if it is not.
5114
5115 2008-04-08  Vincent Celier  <celier@adacore.com>
5116             Robert Dewar  <dewar@adacore.com>
5117
5118         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
5119         AAMP_On_Target is set.
5120
5121         * vms_data.ads: Add NOxxx to style check switch list
5122         Add entry COMPONENTS for -gnatVe
5123         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
5124         (/SUBDIRS=).
5125         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
5126         Add qualifiers for gnatmetric coupling options
5127         Add note that -gnata enables all checks
5128         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
5129         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
5130         New warning flag -gnatw.e
5131
5132         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
5133         Add entry for -gnatyN (forgotten before)
5134         Line for new warning switch -gnatw.p
5135         New warning flag -gnatw.e
5136
5137         * gnat_ugn.texi: Add documentation fpr project file switch -aP
5138         Document -gnaty - + y
5139         Replace occurences of "package specification" with "package spec"
5140         Define preprocessing symbols in documentation of gnatprep
5141         Clarify reason for distinguishing overflow checking
5142         Add documentation for project-aware tool switches -eL and --subdirs=
5143         Complete list of configuration pragmas
5144         Specify that, even when gnatmake switch -x is used, mains on the command
5145         line need to be sources of project files.
5146         Editing of gnatcheck/gnatmetric doc.
5147         Add documentation for -gnatw.p/-gnatw.P
5148         Add missing documentation for -fno-inline-functions.
5149         Add documentation for -gnatw.e
5150
5151         * gnat_rm.texi: Add documentation for No_Default_Initialization
5152         Replace occurences of "package specification" with "package spec"
5153         Document use of * in Warnings Off string
5154         Update documentation of alignment/component clauses.
5155         Add documentation for Invalid_Value
5156         Document new consistency rule for Optimize_Alignment
5157         Add documentation for Precondition and Postcondition pragmas
5158         Add documentation for Check and Check_Policy pragmas
5159         Document new Enum_Val attribute
5160         Remove requirement for static string in pragma Assert
5161         Add documentation on GNAT.Time_Stamp
5162
5163         * ug_words: add entry for -gnatVe
5164         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
5165         Add entry for -gnatw.e
5166
5167         * debug.adb: Add missing documentation for d.a flag
5168         Document new -gnatd.a switch.
5169         Add documentation for new gnatmake debug switch -df
5170
5171 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5172
5173         * gen-soccon.c: Bump year in copyright notices.
5174
5175         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
5176
5177 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5178
5179         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
5180         Minor reformatting.
5181
5182 2008-04-08  Robert Dewar  <dewar@adacore.com>
5183             Bob Duff  <duff@adacore.com>
5184
5185         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
5186         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
5187
5188         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
5189
5190         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
5191
5192         * g-trasym.ads: Minor comment improvements
5193
5194         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
5195
5196         * a-sequio.ads, a-direio.ads: improve message for tagged type
5197
5198         * a-strunb.ads: Minor reformatting
5199
5200         * a-tifiio.adb: Minor reformatting
5201
5202         * atree.adb (Fix_Parents): Use clearer names for formals
5203         Cleanup and simplify code
5204         Use named notation in calls
5205
5206         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
5207         confusing calls
5208
5209         * uintp.adb: Used named notation for some confusing calls
5210
5211         * bindusg.adb: Minor change in one line of output
5212
5213         * cstand.adb: Minor reformatting of src representation of Standard
5214
5215         * a-assert.ads: Add comment.
5216
5217         * g-decstr.adb: Fix bad indentation
5218
5219         * expander.ads, expander.adb: Code clean up.
5220
5221         * sem_dist.ads: Minor comment improvement
5222
5223         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
5224         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
5225
5226         * i-cstrin.adb: Fix casing error in formal parameter name in call
5227
5228 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5229
5230         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
5231         mentioned in limited_with_clauses to do create semantic dependencies
5232         even though they appear in the ali file.
5233
5234 2008-04-08  Emmanuel Briot  <briot@adacore.com>
5235
5236         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
5237         statement.
5238         (Get_Configuration): New subprogram.
5239
5240         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
5241         These optional parameters help preserve the casing of the project's name
5242         when pretty-printing.
5243
5244 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
5245             Arnaud Charlet  <charlet@adacore.com>
5246
5247         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
5248         then use __gnat_set_exit_status to report the returned status code.
5249
5250         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
5251         messages on .NET, since some constructs of the language are not
5252         properly supported.
5253
5254         * gnatlink.adb (Gnatlink): In case the command line is too long for the
5255         .NET linker, gnatlink now concatenate all .il files and pass this to
5256         ilasm.
5257
5258 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5259             Xavier Grave  <grave@ipno.in2p3.fr>
5260
5261         * Makefile.in: Add make ifeq define for mips/mipsel support.
5262         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
5263         system-linux-mips.ads: New files.
5264
5265 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5266
5267         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
5268         detect systems using GNU libc.
5269         * gsocket.h: ditto.
5270         * socket.c: ditto.
5271         * adaint.c: ditto.
5272         * link.c: ditto.
5273
5274 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5275
5276         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
5277         constant constant for sysconf call.
5278         (bit_field): New packed boolean type used by cpu_set_t.
5279         (cpu_set_t): New type corresponding to the C type with
5280         the same name. Note that on the Ada side we use a bit
5281         field array for the affinity mask. There is not need
5282         for the C macro for setting individual bit.
5283         (pthread_setaffinity_np): New imported routine.
5284         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
5285         on GNU/kFreeBSD.
5286
5287 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5288
5289         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
5290
5291 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5292
5293         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
5294         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
5295         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
5296         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
5297         Return by Depressed Stack Pointer.
5298
5299 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5300
5301         * decl.c (is_variable_size): Do not unconditionally return false
5302         on non-strict alignment platforms.
5303
5304 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5305
5306         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
5307         used to process all the variants of the specified type.
5308         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
5309         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
5310         (rest_of_type_decl_compilation): Likewise.
5311         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
5312
5313 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5314
5315         * gigi.h (insert_block): Kill.
5316         * utils.c (insert_block): Kill.
5317
5318 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
5319
5320         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
5321         type has self-referential size, get the size from the initializing
5322         expression directly if it is also a constant whose nominal type
5323         has self-referential size.
5324
5325 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5326
5327         PR ada/33688
5328         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
5329
5330         PR ada/33857
5331         * env.c: Always include crt_externs.h if __APPLE__ is defined.
5332         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
5333
5334 2008-04-01  Andreas Jaeger  <aj@suse.de>
5335
5336         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
5337         IP_PKTINFO.
5338
5339 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5340
5341         * g-table.adb, g-tasloc.adb, g-traceb.ads,
5342         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
5343         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
5344         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
5345         gnatlink.adb, gnatmem.adb, gprep.adb,
5346         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
5347         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
5348         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
5349         lib-xref.ads, lib.adb, link.c, live.ads,
5350         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
5351         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
5352         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
5353         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
5354         namet.adb, namet.h, nlists.adb, nlists.ads,
5355         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
5356         osint-c.ads, osint.adb, osint.ads, output.ads,
5357         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
5358         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
5359         par-endh.adb, par-labl.adb, par-prag.adb,
5360         par-sync.adb, par-tchk.adb, par-util.adb,
5361         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
5362         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
5363         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
5364         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
5365
5366 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5367
5368         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
5369         size if it has overflowed.
5370
5371 2008-03-31  Olivier Hainque  <hainque@adacore.com>
5372             Eric Botcazou  <ebotcazou@adacore.com>
5373
5374         * utils2.c (find_common_type): Document assumption on t1/t2 vs
5375         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
5376
5377 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5378
5379         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
5380         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
5381         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
5382         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
5383         exp_tss.ads, exp_util.adb, exp_util.ads,
5384         exp_vfpt.adb, freeze.adb, freeze.ads,
5385         frontend.adb, g-alleve.adb, g-altcon.adb,
5386         g-altive.ads, g-alveop.ads, g-alvevi.ads,
5387         g-arrspl.adb, g-busorg.ads, g-calend.adb,
5388         g-calend.ads, g-casuti.ads, g-cgideb.adb,
5389         g-comlin.adb, g-comlin.ads, g-curexc.ads,
5390         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
5391         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
5392         g-dyntab.adb, g-encstr.ads, g-excact.ads,
5393         g-except.ads, g-expect.ads, g-heasor.adb,
5394         g-hesora.adb, g-hesorg.adb, g-htable.ads,
5395         g-locfil.ads, g-md5.adb, g-md5.ads,
5396         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
5397         g-pehage.adb, g-pehage.ads, g-regexp.adb,
5398         g-regexp.ads, g-regpat.adb, g-regpat.ads,
5399         g-soccon-aix.ads, g-soccon-darwin.ads,
5400         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
5401         g-soccon-hpux.ads, g-soccon-irix.ads,
5402         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
5403         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
5404         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
5405         g-soccon-solaris.ads, g-soccon-tru64.ads,
5406         g-soccon-vms.ads, g-soccon-vxworks.ads,
5407         g-soccon.ads, g-socket.adb, g-socket.ads,
5408         g-socthi-mingw.adb, g-socthi-vms.adb,
5409         g-socthi-vxworks.adb, g-soliop-mingw.ads,
5410         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
5411         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
5412         typos.
5413
5414 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
5415
5416         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
5417         if the procedure is imported.
5418
5419 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5420
5421         * adaint.c: Fix warnings.
5422
5423 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5424
5425         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
5426
5427 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5428
5429         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
5430         Fix problem of status check for null file
5431
5432 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5433
5434         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
5435         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
5436         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
5437         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
5438         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
5439         comments.
5440
5441 2008-03-26  Thomas Quinot  <quinot@adacore.com>
5442
5443         PR ada/33688
5444         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
5445         Get_Socket_Option): Add support for Receive_Packet_Info.
5446
5447         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
5448         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
5449         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
5450         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
5451         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
5452         new constants SO_REUSEPORT and IP_PKTINFO
5453
5454 2008-03-26  Robert Dewar  <dewar@adacore.com>
5455
5456         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
5457         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
5458         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
5459         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
5460         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
5461         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
5462         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
5463         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5464         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
5465         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
5466         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
5467         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
5468         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
5469         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
5470         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
5471         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
5472         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
5473         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
5474         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
5475         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
5476         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
5477         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
5478         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
5479         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
5480         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
5481         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
5482         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
5483         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
5484         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
5485         s-tasloc.adb: Minor reformatting.
5486         Update comments.
5487         Remove "used for" sections from comments.
5488
5489 2008-03-26  Robert Dewar  <dewar@adacore.com>
5490
5491         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5492         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5493         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5494         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5495         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5496         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5497         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5498         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5499         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5500         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5501         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5502         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5503         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5504         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5505         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5506         double spaced if it fits on one line and otherwise single spaced.
5507
5508 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5509
5510         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
5511         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
5512         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
5513         or task info if the thread could not be created.
5514
5515 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5516
5517         * gnatvsn.ads (Library_Version): Bump to 4.4.
5518         (Current_Year): Bump to 2008.
5519
5520 2008-03-26  Robert Dewar  <dewar@adacore.com>
5521
5522         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
5523
5524         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
5525
5526         * debug.adb: Add debug flags d.r and d.v
5527         Add debug flag .T (Optimize_Alignment (Time))
5528         Add debug flag .S (Optimize_Alignment (Space))
5529
5530         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
5531         depending on setting of relevant debug flags.
5532         Replace use of Warnings_Off by Has_Warnings_Off
5533         (Freeze_Entity): In circuit for warning on suspicious convention
5534         actuals, do not give warning if subprogram has same entity as formal
5535         type, or if subprogram does not come from source.
5536         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
5537         if Optimize_Alignment set to Space.
5538
5539         * frontend.adb: Add call to Sem_Warn.Initialize
5540         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
5541         Reset Optimize_Alignment mode from debug switches .S and .T
5542
5543         * layout.adb (Layout_Composite_Object): Rewritten for
5544         Optimize_Aligment pragma.
5545
5546         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
5547         mode.
5548
5549         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
5550
5551         * par-prag.adb (N_Pragma): Chars field removed, use Chars
5552         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
5553         this change. Add entry for pragma Optimize_Alignment
5554
5555         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
5556         (Pragma_Identifier (..
5557         instead, adjustments throughout to accomodate this change.
5558         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
5559         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
5560         Add implementation of pragma Optimize_Alignment
5561
5562 2008-03-26  Vincent Celier  <celier@adacore.com>
5563
5564         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
5565         Improve memory usage to avoid use of stack.
5566
5567 2008-03-26  Robert Dewar  <dewar@adacore.com>
5568
5569         * a-teioed.ads: Correct value of Default_Fill
5570
5571         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
5572
5573 2008-03-26  Robert Dewar  <dewar@adacore.com>
5574
5575         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
5576         with Current_Output (introduce Self).
5577
5578 2008-03-26  Robert Dewar  <dewar@adacore.com>
5579
5580         * checks.adb (Ensure_Valid): Capture valid status if possible
5581         (eliminate checks)
5582
5583 2008-03-26  Robert Dewar  <dewar@adacore.com>
5584
5585         * stand.ads: Deal with reordering of package standard declarations
5586
5587         * cstand.adb: Put package Standard declarations in proper order
5588
5589 2008-03-26  Robert Dewar  <dewar@adacore.com>
5590
5591         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
5592         (Pragma_Identifier (.. instead.
5593         (OK_To_Reorder_Components): New flag
5594         (Has_Entries): Code cleanup.
5595         (Warnings_Off_Used): New flag
5596         (Warnings_Off_Used_Unmodified): New flag
5597         (Warnings_Off_Used_Unreferenced): New flag
5598         (Has_Warnings_Off): New function
5599         (Has_Unmodified): New function
5600         (Has_Unreferenced): New function
5601         (Is_Trivial_Subprogram): New flag
5602         (Is_Static_Dispatch_Table_Entity): New attribute.
5603         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
5604         (more consistent with other similar names)
5605         (Access_Subprogram_Type): New classification function
5606
5607 2008-03-26  Robert Dewar  <dewar@adacore.com>
5608
5609         * errout.ads: Document new !! insertion sequence
5610
5611         * errout.adb (N_Pragma): Chars field removed, use Chars
5612         (Pragma_Identifier (..  instead.
5613         Replace use of Warnings_Off by Has_Warnings_Off
5614         (Error_Msg_Internal): Don't delete warning ending in !!
5615
5616 2008-03-26  Robert Dewar  <dewar@adacore.com>
5617
5618         * par.adb (Check_No_Right_Paren): Removed no longer used
5619
5620         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
5621         (Pragma_Identifier (..  instead.
5622
5623         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
5624
5625         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
5626         par-ch4.adb: Minor improvements in error recovery and messages.
5627
5628         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
5629         non-serious
5630
5631         * par-ch9.adb: Minor improvements in error recovery and messages
5632         (P_Protected): Better error recovery for "protected type x;"
5633
5634         * par-util.adb: Minor improvements in error recovery and messages
5635         (Check_No_Right_Paren): Removed no longer used
5636
5637 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5638
5639         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
5640         that the prefix of an attribute is the type of the aggregate being
5641         expanded.
5642
5643 2008-03-26  Javier Miranda  <miranda@adacore.com>
5644             Robert Dewar  <dewar@adacore.com>
5645
5646         * exp_attr.adb (N_Pragma): Chars field removed.
5647         (Expand_N_Attribute_Reference): If the designated type associated with
5648         attribute 'Unrestricted_Access is a subprogram entity then replace it
5649         by an E_Subprogram_Type itype.
5650         Implement attribute Old
5651
5652         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
5653
5654         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
5655         Replace call to
5656         New_Internal_Entity by call to Create_Itype to centralize calls
5657         building itypes, ad propagate the convention of the designated
5658         subprogram. In addition, disable the machinery cleaning constant
5659         indications from all entities in current scope when 'Unrestricted_Access
5660         corresponds with a node initializing a dispatch table slot.
5661         (Analyze_Attribute): Parameterless attributes returning a string or a
5662         type will not be called with improper arguments, so we can remove junk
5663         code that was dealing with this case.
5664         Implement attribute Old
5665
5666         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
5667         Add entry for pragma Optimize_Alignment
5668         New standard names Sync and Synchronize
5669
5670 2008-03-26  Robert Dewar  <dewar@adacore.com>
5671             Arnaud Charlet  <charlet@adacore.com>
5672
5673         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
5674         stmt.
5675         (No_Exception_Propagation_Active): New function.
5676         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5677         Update comments, and review all uses of No_Exception_Propagation, which
5678         are now correct and in sync with what gigi expects.
5679
5680         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
5681         function.
5682         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5683         Update comments, and review all uses of No_Exception_Propagation, which
5684         are now correct and in sync with what gigi expects.
5685
5686 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5687
5688         * sem_ch3.adb (Access_Definition): If the access type is the return
5689         result of a protected function, create an itype reference for it
5690         because usage will be in an inner scope from the point of declaration.
5691         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
5692         OK_To_Reorder_Components.
5693         (Make_Index): If an overloaded range includes a universal integer
5694         interpretation, resolve to Standard.Integer.
5695         (Analyze_Subtype_Indication): Copy Convention to subtype
5696         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
5697         limited an synchronized progenitors in type declaration and private
5698         extension declarations.
5699
5700         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
5701         protected subprogram body, determine proper scope from subprogram
5702         declaration.
5703
5704 2008-03-26  Robert Dewar  <dewar@adacore.com>
5705
5706         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
5707         No_Run_Time_Mode
5708
5709 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
5710
5711         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
5712         of a heap allocator for a limited unconstrained function return when
5713         resstriction No_Allocators is active.
5714         (Analyze_Allocator): The restriction No_Allocators is now only checked
5715         on allocators that have Comes_From_Source set, as per RM-H.4(7).
5716
5717         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
5718         of a heap allocator for a limited unconstrained function return when
5719         resstriction No_Allocators is active.
5720         (Analyze_Allocator): The restriction No_Allocators is now only checked
5721         on allocators that have Comes_From_Source set, as per RM-H.4(7).
5722         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
5723         operands are fixed-point types, the universal_fixed predefined operation
5724         is used, regardless of whether the operand type (s) have a primitive
5725         operation of the same name.
5726
5727 2008-03-26  Javier Miranda  <miranda@adacore.com>
5728
5729         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
5730         Is_Static_Dispatch_Table
5731         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
5732         to Exchange_Declarations to exchange the private and full-view. Bug
5733         found working in this issue.
5734         (Expand_Dispatching_Call): Propagate the convention of the subprogram
5735         to the subprogram pointer type.
5736         (Make_Secondary_DT): Replace generation of Prim'Address by
5737         Address (Prim'Unrestricted_Access)
5738         (Make_DT): Replace generation of Prim'Address by
5739         Address (Prim'Unrestricted_Access)
5740         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
5741         simple call form for single entry.
5742         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
5743         tables of predefined primitives).
5744         (Make_Secondary_DT): Add support to handle access to dispatch tables of
5745         predefined primitives.
5746         (Make_Tags): Add entities to Access_Dispatch_Table associated with
5747         access to dispatch tables containing predefined primitives.
5748
5749         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
5750         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
5751         this change.
5752         (Register_Predefined_DT_Entry): Updated to handle the new contents
5753         of attribute Access_Disp_Table (pointers to dispatch tables containing
5754         predefined primitives).
5755
5756         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
5757         subprogram.
5758         (Find_Interface_ADT): Updated to skip the new contents of attribute
5759         Access_Dispatch_Table (pointers to dispatch tables containing predefined
5760         primitives).
5761
5762         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
5763         concurrent types.
5764         (Set_Convention): Use new function Is_Access_Subprogram_Type
5765         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
5766         Access_Dispatch_Table (pointers to dispatch tables containing predefined
5767         primitives).
5768
5769         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
5770         expanded code avoiding calls to Build_Predef_Prims.
5771         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
5772         call to Build_Get_Predefined_Prim_Op_Address.
5773
5774 2008-03-26  Javier Miranda  <miranda@adacore.com>
5775
5776         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
5777         subprogram Corresponding_Runtime_Package to know the runtime package
5778         that will provide support to a given protected type.
5779
5780         * exp_ch9.adb (Add_Private_Declarations,
5781         Build_Protected_Subprogram_Call,
5782         Build_Protected_Entry, Build_Simple_Entry_Call,
5783         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
5784         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
5785         cleanup using the new centralized subprogram Corresponding_Runtime
5786         Package to know the runtime package that provides support to
5787         a given protected type.
5788
5789 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5790
5791         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
5792         assignment is within the initialization procedure for a packed array,
5793         and Initialize_Scalars is enabled, compile right-hand side with checks
5794         off, because the value is purposely out of range.
5795
5796 2008-03-26  Vincent Celier  <celier@adacore.com>
5797
5798         * gnatcmd.adb: Add processing for GNAT SYNC
5799
5800         * vms_conv.ads: (Command_Type): Add command Sync
5801
5802         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
5803
5804         * vms_data.ads: Add entries for -gnatw.w
5805         Add qualifier for gnatstub --header-file option
5806         Add switches for GNAT SYNC
5807
5808         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
5809         (Add_Package_Name): New procedure
5810         (Package_Name_List): New function
5811         (Initialize): Add known package names to the list
5812         (Register_New_Package): Add the new package name to the list
5813
5814 2008-03-26  Robert Dewar  <dewar@adacore.com>
5815
5816         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
5817         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
5818         Raise_Exception by "raise with" construct.
5819
5820 2008-03-26  Pascal Obry  <obry@adacore.com>
5821
5822         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
5823         supported platforms.
5824         
5825         * Makefile.rtl: Add g-sercom.o.
5826         
5827         * impunit.adb: Add g-sercom.adb.
5828         
5829         * s-crtl.ads (open): New routine.
5830         (close): Likewise.
5831         (write): Likewise.
5832         
5833         * s-osinte-mingw.ads (BYTE): New type.
5834         (CHAR): Likewise.
5835         (OVERLAPPED): Likewise.
5836         (GENERIC_READ): New constant.
5837         (GENERIC_WRITE): Likewise.
5838         (OPEN_EXISTING): Likewise.
5839         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
5840         type instead.
5841         (CreateFile): New routine.
5842         (WriteFile): Likewise.
5843         (ReadFile): Likewise.
5844         (CloseHandle): Move next to the other file oriented routines.
5845
5846         * g-sercom.ads: New unit.
5847
5848         * g-sercom.adb: Default implementation, calls to this unit will raise
5849         a program error exception.
5850         
5851         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
5852         GNU/Linux implementations.
5853
5854 2008-03-26  Robert Dewar  <dewar@adacore.com>
5855
5856         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
5857
5858         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
5859         unchecked conversion for different conventions only for subprogram
5860         pointers or on VMS.
5861
5862 2008-03-26  Vincent Celier  <celier@adacore.com>
5863
5864         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
5865         to check if the specified object file is correct.
5866
5867 2008-03-26  Thomas Quinot  <quinot@adacore.com>
5868
5869         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
5870         Comes_From_Source to exclude primitives from being checked. We want to
5871         exclude predefined primitives only, so use the appropriate specific
5872         predicate. Also, flag a formal parameter of an anonymous
5873         access-to-subprogram type as illegal for a primitive operation of a
5874         remote access to class-wide type.
5875
5876 2008-03-26  Vincent Celier  <celier@adacore.com>
5877
5878         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
5879         known, check if it may be a missspelling of a known package name. In
5880         not verbose, not mode, issue warnings only if the package name is a
5881         possible misspelling.
5882         In verbose mode, always issue a warning for a not known package name,
5883         plus a warning if the name is a misspelling of a known package name.
5884
5885         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
5886         limited withs or limited withs are parse during one call.
5887         (Parse_Single_Project): Post parse context clause in two passes: non
5888         limited withs before current project and limited withs after current
5889         project.
5890
5891         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
5892         project with the name With_Name, even if it is only extended indirectly.
5893         (Recursive_Process): Process projects in order: first single withs, then
5894         current project, then limited withs.
5895
5896         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
5897         project with the name With_Name, even if it is only extended indirectly.
5898
5899 2008-03-26  Robert Dewar  <dewar@adacore.com>
5900
5901         * scn.adb (Initialize_Scanner): Format messages belong on standard error
5902
5903 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5904
5905         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
5906         a generic subprogram that is imported, do not attempt to compile
5907         non-existent body.
5908
5909         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
5910         imported, do not generate a raise_program_error for the non-existent
5911         body.
5912         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
5913         perform minimal name resolution on the generic to avoid spurious
5914         warnings.
5915         (Find_Actual_Type): the designated type of the actual in a child unit
5916         may be declared in a parent unit without being an actual.
5917
5918 2008-03-26  Robert Dewar  <dewar@adacore.com>
5919
5920         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
5921         * sinfo.ads, sinfo.adb (From_At_End): New flag
5922
5923 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5924
5925         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
5926         operations that have an interface parameter.
5927         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
5928         Don't treat No_Return call as raise.
5929
5930         * sem_disp.adb (Check_Dispatching_Operations): apply check for
5931         non-primitive interface primitives to access parameters, not to all
5932         parameters of an access type.
5933
5934 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5935
5936         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
5937         declarations of a parent unit are made visible when compiling a child
5938         instance, the parent is not a hidden open scope, even though it may
5939         contain other pending instance.
5940         
5941         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
5942         hidden open scope for some child instance, it does affect the
5943         visibility status of other stach entries.
5944         (Analyze_Object_Renaming): Check that a class-wide object cannot be
5945         renamed as an object of a specific type.
5946
5947 2008-03-26  Robert Dewar  <dewar@adacore.com>
5948
5949         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
5950         recursion and raise SE directly.
5951         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
5952         set for formal type for IN mode parameter.
5953
5954 2008-03-26  Robert Dewar  <dewar@adacore.com>
5955
5956         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
5957         (Initialize): New procedure
5958         (Output_Warnings_Off_Warnings): New procedure
5959         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
5960         (Output_Non_Modifed_In_Out_Warnings): Ditto
5961         (Warn_On_Unreferenced_Entity): Ditto
5962
5963 2008-03-26  Vincent Celier  <celier@adacore.com>
5964
5965         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
5966         readable.
5967
5968 2008-03-26  Matthew Heaney  <heaney@adacore.com>
5969
5970         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
5971         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
5972         Marked with clauses as private, and controlled operations as overriding
5973
5974 2008-03-26  Robert Dewar  <dewar@adacore.com>
5975
5976         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
5977
5978 2008-03-26  Robert Dewar  <dewar@adacore.com>
5979
5980         * back_end.adb, back_end.ads: Minor reformatting
5981
5982         * bindgen.adb: Minor clarification of comments
5983
5984         * fname.ads: Minor comment fixes
5985
5986         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
5987         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
5988
5989         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
5990         xsnames.adb: Remove warnings off pragma no longer needed
5991
5992         * a-catizo.ads, a-calari.ads, a-calfor.adb,
5993         a-calfor.ads: Fix header.
5994
5995 2008-03-26  Tristan Gingold  <gingold@adacore.com>
5996
5997         * init.c: Do not adjust pc for HPARITH on alpha/vms.
5998
5999 2008-03-26  Robert Dewar  <dewar@adacore.com>
6000
6001         * lib-xref.adb: (OK_To_Set_Reference): New function
6002         (Generate_Reference): Don't set referenced from occurrence in Warnings,
6003         Unmodified, or Unreferenced pragma
6004
6005 2008-03-26  Robert Dewar  <dewar@adacore.com>
6006
6007         * alloc.ads: Add entries for Warnings_Off_Pragmas table
6008
6009 2008-03-26  GNAT Script  <nobody@adacore.com>
6010
6011         * Make-lang.in: Makefile automatically updated
6012
6013 2008-03-26  Robert Dewar  <dewar@adacore.com>
6014
6015         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6016         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6017         removed, use Chars (Pragma_Identifier (..  instead, adjustments
6018         throughout to accomodate this change.
6019
6020         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6021
6022         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6023         Einfo.Set_Needs_Debug_Info)
6024
6025 2008-03-26  Robert Dewar  <dewar@adacore.com>
6026
6027         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6028         Add description for the new gnatstub option '--header-file'
6029         clarification of -gnatwz/-gnatwZ
6030         Add a "Irix-Specific Considerations" section to document the need to
6031         set LD_LIBRARY_PATH when using the default shared runtime library.
6032         Added documentation for both gcov and gprof.
6033
6034         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6035         messages that are not suppressed when clients are compiled.
6036         Add documentation of s-pooglo s-pooloc
6037         Document the new GNAT.Serial_Communications API.
6038         Add documentation for 'Old attribute
6039         Add description of pragma Optimize_Alignment
6040
6041         * ug_words: Add entries for -gnatw.w -gnatw.W
6042
6043         * usage.adb: Add line for -gnatw.w (warn on warnings off)
6044
6045 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
6046
6047         Revert
6048         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6049         PR ada/35186
6050         * decl.c (maybe_pad_type): Avoid padding an integral type when
6051         bumping its alignment is sufficient.
6052
6053 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
6054
6055         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6056         Fix wrong formatting (lines too long)
6057
6058 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6059
6060         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6061         a-calend-vms.adb, a-calend.adb, a-calend.ads,
6062         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6063         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6064         a-cohama.ads, a-comlin.ads, a-coorse.adb,
6065         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6066         a-except-2005.ads, a-except.adb, a-except.ads,
6067         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6068         a-exextr.adb, a-filico.ads, a-finali.ads,
6069         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6070         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6071         a-sequio.ads, a-strbou.ads, a-strfix.adb,
6072         checks.adb, exp_ch3.adb, exp_ch4.adb,
6073         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6074         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6075         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6076         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6077         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6078
6079 2008-03-24  Robert Dewar  <dewar@adacore.com>
6080
6081         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6082         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6083         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6084         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6085         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6086         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6087         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6088         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6089         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6090         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6091         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6092         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6093         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6094         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6095         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6096         double spaced if it fits on one line and otherwise single spaced.
6097
6098 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6099
6100         PR documentation/15479
6101         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
6102         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
6103         (doc/gnat_ugn.info): Renamed from ...
6104         (doc/gnat_ugn_unw.info): ... this.
6105         (doc/gnat_ugn.dvi): Renamed from ...
6106         (doc/gnat_ugn_unw.dvi): ... this.
6107         (doc/gnat_ugn.pdf): Renamed from ...
6108         (doc/gnat_ugn_unw.pdf): ... this.
6109         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
6110         Adjusted.
6111         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
6112         unconditionally to gnat_ugn.info.  Fix cross references to the
6113         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
6114         and GNU make manuals to be proper texinfo links.
6115         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
6116
6117 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6118
6119         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
6120         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
6121
6122 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6123
6124         * trans.c (addressable_p): Add notes on addressability issues.
6125
6126 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6127             Ed Schonberg  <schonberg@adacore.com>
6128
6129         * trans.c (addressable_p): Accept COND_EXPR when both arms
6130         are addressable.
6131         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
6132         (call_to_gnu): Do not use name reference in the error message
6133         for a misaligned by_reference_parameter. The actual may be a
6134         general expression.
6135
6136 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6137
6138         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6139
6140 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6141
6142         * gnat_rm.texi (Implementation Defined Characteristics)
6143         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
6144         appropriate.
6145         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
6146         (Switches for gnatchop, Installing a library): Likewise.
6147
6148 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
6149
6150         * trans.c (emit_range_check): Do not emit the check if the base type
6151         of the expression is the type against which its range must be checked.
6152
6153 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6154
6155         * decl.c (maybe_pad_type): Use value_factor_p.
6156
6157 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6158
6159         * lang.opt (nostdlib): Move around.
6160         * misc.c (gnat_handle_option): Fix formatting.
6161         (gnat_dwarf_name): Move around.
6162         * trans.c (Case_Statement_to_gnu): Fix formatting.
6163         (gnat_to_gnu): Likewise.
6164         * utils.c (aggregate_type_contains_array_p): Likewise.
6165         (create_subprog_decl): Likewise.
6166
6167 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6168
6169         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
6170         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
6171
6172 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6173
6174         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
6175         BIGGEST_ALIGNMENT when capping the alignment of records with
6176         strict alignment and size clause.
6177
6178 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6179
6180         * lang-specs.h: Pass -gnatwa if -Wall is passed.
6181         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
6182         and -Wuninitialized.
6183         (gnat_post_options): Clear warn_unused_parameter.
6184
6185 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6186
6187         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
6188         aligned bit-fields, bumping the alignment of the record type if deemed
6189         profitable.
6190         (value_factor_p): Return false instead of 0.
6191
6192 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6193
6194         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
6195         for scalar types with small alignment.
6196
6197 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6198
6199         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
6200         from that of the front-end's end label.
6201         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
6202         from that of the loop label.
6203
6204 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6205
6206         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
6207         comment for the packed array type case.
6208         * utils.c (build_template): Use a loop to strip padding or
6209         containing records for justified modular types.
6210
6211 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6212
6213         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
6214         large alignments specified for types.
6215         (validate_alignment): Minor cleanup.
6216
6217 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6218
6219         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
6220         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
6221         the component for packing, if possible, as well as if a component
6222         size clause is specified.
6223         <E_Record_Subtype>: For an array type used to implement a packed
6224         array, get the component type from the original array type.
6225         Try to get a smaller form of the component for packing, if possible,
6226         as well as if a component size clause is specified.
6227         (round_up_to_align): New function.
6228         (make_packable_type): Add in_record parameter.
6229         For a padding record, preserve the size.  If not in_record and the
6230         size is too large for an integral mode, attempt to shrink the size
6231         by lowering the alignment.
6232         Ditch the padding bits of the last component.
6233         Compute sizes and mode manually, and propagate the RM size.
6234         Return a BLKmode record type if its size has shrunk.
6235         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
6236         Use Original_Array_Type to retrieve the type in case of an error.
6237         Adjust call to make_packable_type.
6238         (gnat_to_gnu_field): Likewise.
6239         (concat_id_with_name): Minor tweak.
6240         * trans.c (larger_record_type_p): New predicate.
6241         (call_to_gnu): Compute the nominal type of the object only if the
6242         parameter is by-reference.  Do the conversion actual type -> nominal
6243         type if the nominal type is a larger record.
6244         (gnat_to_gnu): Do not require integral modes on the source type to
6245         avoid the conversion for types with identical names.
6246         (addressable_p): Add gnu_type parameter.  If it is specified, do not
6247         return true if the expression is not addressable in gnu_type.
6248         Adjust recursive calls.
6249         * utils.c (finish_record_type): Remove dead code.
6250
6251 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6252
6253         PR ada/35186
6254         * decl.c (maybe_pad_type): Avoid padding an integral type when
6255         bumping its alignment is sufficient.
6256
6257 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6258
6259         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
6260         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
6261         statement.
6262         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
6263         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
6264         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
6265         code output strings.
6266         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
6267         system-vms_64.ads: Fix typos in ada source code comments.
6268         * sinfo-cn.adb: Remove incomplete sentence.
6269
6270         PR documentation/15479
6271         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
6272
6273 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
6274
6275         PR ada/22255
6276         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
6277
6278 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
6279
6280         PR ada/34799
6281         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
6282         that underlying type is present.
6283
6284 2008-02-26  Tom Tromey  <tromey@redhat.com>
6285
6286         * misc.c (internal_error_function): Remove test of
6287         USE_MAPPED_LOCATION.
6288         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
6289         (Sloc_to_locus): Remove old location code.
6290
6291 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6292
6293         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
6294         `i.e.' by adding comma or `@:' as appropriate.
6295         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
6296         plain characters `C', use `@samp{C}'.
6297         * gnat_ugn.texi (File Naming Rules, About gnatkr)
6298         (Krunching Method): Likewise.
6299
6300         * gnat_ugn.texi (Conventions): List environment variables and
6301         metasyntactic variables.
6302         (Compiling Programs): Fix notation of metasyntactic variables.
6303         Add @file where appropriate.  Use @file for file extensions,
6304         @samp for strings.
6305         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
6306         instead of @file, @env instead of @code.
6307
6308 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6309
6310         PR documentation/15479
6311         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
6312         and `...' with `@dots{}' or `@enddots{}'.
6313
6314         PR documentation/15479
6315         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
6316         use @command instead of @code, @option instead of @samp or @code,
6317         @code instead of @var, @samp instead of @file.
6318
6319         PR documentation/15479
6320         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
6321         in Makefile rules, by using `&&' rather than `;'.
6322
6323 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6324
6325         PR documentation/15479
6326         * gnat_ugn.texi: In non-code, avoid space before colon.
6327         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
6328         (Examples of gnatxref Usage): Use @command{vi} instead of
6329         @file{vi}.
6330         (Character Set Control): Do not use @code for UTF-8.
6331         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
6332         use @code for IEEE.
6333         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
6334         sample.
6335         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
6336
6337 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
6338
6339         PR ada/35143
6340         * env.c: Add __rtems__ to if defined.
6341         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
6342         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
6343         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
6344         pragma Convention as required.
6345         * gsocket.h: Make compile in and out of RTS.
6346         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
6347         Use g-soccon-rtems.ads.
6348         * g-soccon-rtems.ads, system-rtems.ads: New files.
6349
6350 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6351
6352         PR other/35107
6353         * Make-lang.in (gnat1): Add $(GMPLIBS).
6354
6355 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
6356
6357         * decl.c (components_to_record): Improve comment.
6358
6359 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
6360
6361         * decl.c (components_to_record): Do not reuse the empty union type
6362         if there is a representation clause on the record.
6363         * trans.c (addressable_p): Return true for INTEGER_CST.
6364
6365 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
6366
6367         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
6368         in pointer arithmetics.
6369         * utils2.c (build_allocator): Likewise.
6370
6371 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
6372
6373         * utils.c (build_function_stub): Properly build the call expression.
6374
6375 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
6376
6377         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
6378         before converting the expression to the type of the object.
6379         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
6380         Stabilize constructors for special wrapping types.
6381
6382 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
6383
6384         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
6385         when necessary.  Merge some conditional statements.  Update comments.
6386         Rename unchecked_convert_p local variable to suppress_type_conversion.
6387         Do not suppress conversions in the In case.
6388         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
6389         into account on non strict-alignment platforms.
6390
6391 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
6392
6393         * utils.c (aggregate_type_contains_array_p): New predicate.
6394         (create_field_decl): In a packed record, force byte alignment
6395         for fields without specified position that contain an array.
6396
6397 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
6398
6399         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
6400
6401 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
6402
6403         PR ada/34466
6404         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
6405         sysconf call.
6406         (bit_field): New packed boolean type used by cpu_set_t.
6407         (cpu_set_t): New type corresponding to the C type with
6408         the same name. Note that on the Ada side we use a bit
6409         field array for the affinity mask. There is not need
6410         for the C macro for setting individual bit.
6411         (pthread_setaffinity_np): New imported routine.
6412
6413 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
6414
6415         PR ada/34647
6416         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6417         on OpenBSD as is done on other BSD systems.
6418
6419         PR ada/34645
6420         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
6421         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
6422         I/O.
6423
6424         PR ada/34644
6425         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
6426         clearenv().
6427
6428         PR ada/34646
6429         * init.c (__gnat_error_handler, __gnat_install_handler,
6430         __gnat_init_float): Define for OpenBSD.
6431
6432         * initialize.c (__gnat_initialize): Define for OpenBSD.
6433
6434 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
6435
6436         PR ada/34553
6437         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6438         instead of mktemp() or tmpnam() on NetBSD.
6439
6440 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
6441
6442         * trans.c (call_to_gnu): Make the temporary for non-addressable
6443         In parameters passed by reference.
6444         (addressable_p): Return true for STRING_CST and CALL_EXPR.
6445
6446 2007-12-19  Robert Dewar  <dewar@adacore.com>
6447
6448         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
6449         Add pragma Warnings (Off) for unassigned IN OUT arguments
6450
6451         * sem_warn.adb (Output_Reference): Suppress messages for internal names
6452         (Check_References): Extensive changes to tune up warnings
6453         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
6454         (Has_Pragma_Unmodifed_Check_Spec): New function
6455         (Check_References): Implement pragma Unmodified
6456         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
6457
6458         * par-prag.adb: Dummy entry for pragma Unmodified
6459
6460         * sem_prag.adb: Implement pragma Unmodified
6461
6462         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
6463         (Proc_Next_Component_Or_Discriminant): Fix typo.
6464         Update comments.
6465
6466         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
6467         Unmodified.
6468         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
6469         because the former already takes care of discarding the result.
6470         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
6471         Add comment.
6472
6473         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
6474
6475 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
6476
6477         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
6478         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
6479         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
6480         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
6481         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
6482         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6483         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6484         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
6485         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6486         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
6487         (Dynamic_Trampolines_Used): Delete.
6488
6489         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
6490         Turn on stack probing mechanism on LynxOS.
6491
6492 2007-12-19  Bob Duff  <duff@adacore.com>
6493
6494         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
6495         the resulting tail recursion by hand. This prevents running out of
6496         memory on deeply nested concatenations, since Field2 is where the left
6497         operand of concatenations is stored.
6498         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
6499         clarify that it can only return OK or Abandon.
6500
6501         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
6502         operand by iteration, in order to avoid running out of memory on
6503         deeply-nested concatenations. Use the Parent pointer to get back up the
6504         tree.
6505         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
6506          Resolve_Op_Concat_Rest): New procedures split out of
6507         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
6508         clearer.
6509
6510         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
6511         Traverse_Func, because the former already takes care of discarding the
6512         result.
6513
6514         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
6515         because the former already takes care of discarding the result.
6516         (Remove_Warning_Messages): Use appropriate subtype for Status and
6517         Discard 
6518
6519 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6520
6521         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
6522         discriminants forces expansion of the aggregate into assignments.
6523         (Init_Record_Controller):  If the type of the aggregate is untagged and
6524         is not inherently limited, the record controller is not limited either.
6525
6526 2007-12-19  Robert Dewar  <dewar@adacore.com>
6527
6528         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
6529         handling compile time known size of record or array (case of front end
6530         layout active, e.g. in GNAAMP).
6531
6532 2007-12-19  Javier Miranda  <miranda@adacore.com>
6533
6534         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
6535         that forces the construction of static dispatch tables in case of
6536         record subtypes.
6537
6538 2007-12-19  Robert Dewar  <dewar@adacore.com>
6539
6540         * exp_ch9.adb (Null_Statements): Moved to library level
6541         (Trivial_Accept_OK): New function
6542         (Expand_Accept_Declaration): Use Trivial_Accept_OK
6543         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
6544
6545 2007-12-19  Robert Dewar  <dewar@adacore.com>
6546
6547         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
6548         in complex case where array is Volatile.
6549
6550 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6551
6552         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
6553         properly the Ada2005 rules concerning when the current instance of a
6554         record type is aliased.
6555
6556 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6557
6558         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
6559         mangled declaration
6560         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
6561         declarations.
6562         (P_Variant_Part): Cleaner patch for parenthesized discriminant
6563
6564 2007-12-19  Vincent Celier  <celier@adacore.com>
6565
6566         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
6567         package is not known
6568
6569         * prj-attr.ads (Unknown_Package): New constant
6570         Do not crash when an unknown package is in several projects
6571
6572         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
6573         ignored
6574
6575         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
6576         existing package Language_Processing.
6577
6578 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6579             Gary Dismukes  <dismukes@adacore.com>
6580             Samuel Tardieu  <sam@rfc1149.net>
6581
6582         PR ada/15803, ada/15805
6583         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
6584         illegal access subtypes when there is a constrained partial view.
6585         (Check_For_Premature_Usage): New procedure inside
6586         Access_Subprogram_Declaration for checking that an access-to-subprogram
6587         type doesn't reference its own name within any formal parameters or
6588         result type (including within nested anonymous access types).
6589         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
6590         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
6591         context is an access_to_variable, the expression cannot be an
6592         access_to_constant.
6593
6594 2007-12-19  Bob Duff  <duff@adacore.com>
6595
6596         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
6597         (Analyze_Concatenation): Use iteration instead of recursion in order
6598         to avoid running out of stack space for deeply nested concatenations.
6599
6600 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6601             Gary Dismukes  <dismukes@adacore.com>
6602
6603         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
6604         whose renamed entity is a subprogram that requires overriding.
6605         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
6606         issuing an error for premature usage and issue a message that says
6607         'type' rather than 'object'.
6608
6609 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
6610
6611         PR ada/34149
6612         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
6613         presence of a statically tagged operand (Present (Static_Tag)) with
6614         test for Indeterm_Ancestor_Call when determining whether to propagate
6615         the static tag to tag-indeterminate operands (which forces dispatching
6616         on such calls).
6617         (Check_Controlling_Formals): Ada2005, access parameters can have
6618         defaults.
6619         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
6620         not insert subprogram in list of primitive operations if already there.
6621
6622 2007-12-19  Tristan Gingold  <gingold@adacore.com>
6623
6624         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
6625         global variable.
6626
6627 2007-12-19  Thomas Quinot  <quinot@adacore.com>
6628
6629         Part of PR ada/33688
6630         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
6631         datagram info on Linux.
6632
6633 2007-12-19  Vincent Celier  <celier@adacore.com>
6634
6635         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
6636         that the source path name is always found in the dependencies.
6637
6638 2007-12-19  Robert Dewar  <dewar@adacore.com>
6639
6640         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
6641         Fix name of Wide_Wide_Latin_1/9 file names
6642         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
6643         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
6644         Add missing documentation for Ada.Command_Line.Response_File
6645         Update list of warning letters for Warnings pragma
6646         Add documentation for pragma Unmodified
6647
6648 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
6649
6650         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
6651
6652 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
6653
6654         * s-vxwork-alpha.ads: Removed, no longer used.
6655
6656 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
6657
6658         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
6659
6660 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
6661
6662         PR ada/34360
6663         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
6664         mlib-tgt-specific.adb.
6665
6666 2007-12-13  Bob Duff  <duff@adacore.com>
6667
6668         * trans.c (Attribute_to_gnu): Check for violations of the
6669         No_Implicit_Dynamic_Code restriction. This checking used to be done in
6670         the front end, but is moved here so we can make it more accurate.
6671
6672 2007-12-13  Pascal Obry  <obry@adacore.com>
6673
6674         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
6675          version is provided for older GNU/Linux distribution not
6676          supporting thread affinity sets.
6677         
6678         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
6679         call.
6680         (bit_field): New packed boolean type used by cpu_set_t.
6681         (cpu_set_t): New type corresponding to the C type with
6682         the same name. Note that on the Ada side we use a bit
6683         field array for the affinity mask. There is not need
6684         for the C macro for setting individual bit.
6685         (pthread_setaffinity_np): New imported routine.
6686         
6687         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
6688         no null.
6689         (Create_Task): Set the processor affinity mask if information
6690         is present.
6691         
6692         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
6693         
6694 2007-12-13  Robert Dewar  <dewar@adacore.com>
6695
6696         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
6697         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
6698         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
6699         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
6700         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
6701         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
6702         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
6703         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
6704         for subprogram pointers.
6705
6706         * g-ctrl_c.adb: New file.
6707
6708         * g-ctrl_c.ads (Install_Handler): New body.
6709
6710         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
6711         instead of obsolete function Is_Always_Inlined.
6712         (Freeze_Entity): check for tagged type in imported C subprogram
6713         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
6714         (Freeze_Entity): check for convention Ada subprogram pointer in
6715         imported C subprogram.
6716         (Freeze_Fixed_Point_Type): In the case of a base type where the low
6717         bound would be chopped off and go from negative to zero, force
6718         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
6719         bound) so that the size computation for the base type will take
6720         negative values into account.
6721
6722 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
6723             Bob Duff  <duff@adacore.com>
6724             Tristan Gingold  <gingold@adacore.com>
6725
6726         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
6727         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
6728         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
6729         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
6730         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
6731         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
6732         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
6733         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
6734         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
6735         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
6736         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
6737         (Always_Compatible_Rep): New flag to control trampolines globally.
6738         (Dynamic_Trampolines_Used): New flag for implementing the
6739         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
6740         and not yet set correctly for some targets).
6741
6742         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
6743         Simply indirectly call s-stchop when a task is created.
6744
6745         * ali.ads: 
6746         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
6747         appears as an argument (entries A) in an ALI file.
6748
6749         * fe.h (Stack_Check_Limits): Declare new target parameter.
6750         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
6751
6752         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
6753         This variable is declared in C to be sure not subject to elaboration
6754         code.
6755         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
6756         Storage_Error.
6757
6758         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
6759         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
6760
6761         * s-stchop.ads: Add comments.
6762
6763         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
6764         limit method of stack checking.
6765
6766         * s-stchop-limit.ads: New file.
6767
6768 2007-12-13  Robert Dewar  <dewar@adacore.com>
6769
6770         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
6771         a-cihama.adb, g-awk.adb, 
6772         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
6773         warnings
6774
6775         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
6776
6777         * sem.adb: Update handling of assigned value/unreferenced warnings
6778
6779         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
6780
6781         * lib-xref.ads: Improve documentation for k xref type
6782
6783         * lib-xref.adb: 
6784         Update handling of assigned value/unreferenced warnings
6785         (Generate_Reference): Warning for reference to entity for which a
6786         pragma Unreferenced has been given should be unconditional.
6787         If the entity is a discriminal, mark the original
6788         discriminant as referenced.
6789
6790         * sem_warn.ads, sem_warn.adb
6791         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
6792         no entities referenced in package
6793         (Check_One_Unit): Don't give message about no entities referenced in
6794         a package if a pragma Unreferenced has appeared.
6795         Handle new warning flag -gnatw.a/-gnatw.A
6796         Update handling of assigned value/unreferenced warnings
6797
6798         * atree.h: Add flags up to Flag247
6799         (Flag231): New macro.
6800
6801 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
6802
6803         * adaint.h: (__gnat_plist_init): Not defined for RTX.
6804
6805         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
6806         RTX systems.
6807
6808         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
6809         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
6810         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
6811         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
6812
6813         * mingw32.h: 
6814         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
6815
6816         * sysdep.c (winflush_function for RTX): Procedure that does nothing
6817         since we only have problems with Windows 95/98, which are not
6818         supported by RTX.
6819         (__gnat_ttyname): Return the empty string on Nucleus, just as
6820         done on vxworks.
6821
6822 2007-12-13  Robert Dewar  <dewar@adacore.com>
6823
6824         * a-textio.adb, a-textio.ads: 
6825         Extensive changes to private part for wide character encoding
6826
6827         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
6828         (Look_Ahead): Fix mishandling of encoded sequences
6829         Move declaration of Wch_Con to private part (should not be visible)
6830
6831         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
6832         UTF-8. Probably this is never used, but if it is, brackets is
6833         clearly correct.
6834
6835         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
6836         setting wide character encoding for no main program case and when
6837         encoding is specified using -W?
6838         Initialize stack limit of environment task if stack limit method of
6839         stack checking is enabled.
6840         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
6841         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
6842         (Get_Main_Unit_Name): New function.
6843         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
6844         (Gen_Output_File): Set Bind_Main_Program to True for .NET
6845
6846         * bindusg.adb: Add line for -Wx switch
6847
6848         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
6849         Add comments
6850         Add new useful constant WC_Longest_Sequences
6851
6852         * switch-b.adb: Clean up handling of -Wx switch
6853         For -gnatWx, set Wide_Character_Encoding_Method_Specified
6854
6855         * switch-c.adb: -gnatg activates warning on assertion errors
6856         For -gnatWx, set Wide_Character_Encoding_Method_Specified
6857
6858         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
6859
6860 2007-12-13  Robert Dewar  <dewar@adacore.com>
6861             Ed Schonberg  <schonberg@adacore.com>
6862
6863         * a-ngcoty.adb: New pragma Fast_Math
6864
6865         * opt.adb: New pragma Fast_Math
6866
6867         * par-prag.adb: 
6868         Add Implemented_By_Entry to the list of pragmas which do not require any
6869         special processing.
6870         (Favor_Top_Level): New pragma.
6871         New pragma Fast_Math
6872
6873         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
6874         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6875         Expand_Allocator_Expression): Take into account VM_Target
6876         (Expand_Attribute, case 'Identity):  Handle properly the case where
6877         the prefix is a task interface.
6878         New pragma Fast_Math
6879
6880         * par.adb (Next_Token_Is): New function
6881         (P_Pragma): Add Skipping parameter
6882         (U_Left_Paren): New procedure
6883         (U_Right_Paren): New procedure
6884         New pragma Fast_Math
6885
6886         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
6887         subunit
6888         New pragma Fast_Math
6889
6890         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
6891         Implemented_By_Entry.
6892         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
6893         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
6894         items, since it can apply to more than one overloadable entity. Set
6895         new flag Has_Pragma_Inline_Always for Inline_Always case.
6896         (Analyze_Pragma, case Complex_Representation): Improve error message.
6897         (Analyze_Pragma, case Assert): When assertions are disabled build the
6898         rewritten code with Sloc of expression rather than pragma, so new
6899         warning about failing is not deleted.
6900         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
6901         protected types and update error message to reflect that. Test whether
6902         the protected type is allowed for the pragma (an error is issued if the
6903         type has any entries, or components that do not have preelaborable
6904         initialization).
6905         New pragma Fast_Math
6906         (Analyze_Pragma, case No_Return): Handle generic instance
6907
6908         * snames.h, snames.ads, snames.adb: 
6909         Add new predefined name for interface primitive _Disp_Requeue.
6910         New pragma Fast_Math
6911
6912         * a-tags.ads, a-tags.adb: New calling sequence for
6913         String_To_Wide_[Wide_]String
6914         (Secondary_Tag): New subprogram.
6915
6916         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
6917         from Exp_Attr
6918         New calling sequence for String_To_Wide_[Wide_]String
6919         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
6920         the use of the secondary stack for image routines.
6921
6922         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
6923         calling sequence for String_To_Wide_[Wide_]String
6924
6925         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
6926         Ada 95 mode
6927         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
6928         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6929
6930         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
6931         (P_Formal_Part): Use Skipping parameter in P_Pragma call
6932         to improve error recovery
6933
6934         * par-util.adb (Next_Token_Is): New function
6935         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
6936
6937         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
6938         semicolon if missing
6939         (P_Pragma): Implement new Skipping parameter
6940         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6941         Fix location of flag for unrecognized pragma message
6942
6943         * par-tchk.adb (U_Left_Paren): New procedure
6944         (U_Right_Paren): New procedure
6945
6946 2007-12-13  Geert Bosch  <bosch@adacore.com>
6947
6948         * a-tifiio.adb: 
6949         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
6950         the second or later Scaled_Divide would omit leading zeroes,
6951         resulting in too few digits produced and a Layout_Error as result.
6952         (Put): Initialize Pos.
6953
6954 2007-12-13  Robert Dewar  <dewar@adacore.com>
6955
6956         atree.ads, atree.adb (Flag231..Flag247): New functions
6957         (Set_Flag231..Set_Flag247): New procedures
6958         (Basic_Set_Convention): Rename Set_Convention to be
6959         Basic_Set_Convention
6960         (Nkind_In): New functions
6961         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6962
6963         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
6964         instead
6965          of obsolete function Is_Always_Inlined
6966         (Register_Predefined_DT_Entry): Initialize slots of the second
6967         secondary dispatch table.
6968         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6969         (Expand_N_Function_Call): Remove special provision for stack checking.
6970
6971         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
6972         Include _Disp_Requeue in the list of predefined operations.
6973         (Find_Interface_ADT): Modified to fulfill the new specification.
6974         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6975
6976         * par-ch4.adb, nlists.ads, nlists.adb: 
6977         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6978
6979         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
6980         Fix location of flag for unrecognized pragma message
6981
6982         * sem_ch7.adb: Use Nkind_In
6983
6984 2007-12-13  Vincent Celier  <celier@adacore.com>
6985
6986         * opt.ads: 
6987         Indicate what flags are used by the Project Manager, gprbuild and
6988         gprclean.
6989         (Opt.Follow_Links_For_Dirs): New flag
6990         (Warn_On_Assertion_Failure): New flag
6991         (Wide_Character_Encoding_Method_Specified): New flag
6992         (Suppress_All_Inlining): New switch set by -fno-inline
6993         (Real_VMS_Target): New flag
6994         New pragma Fast_Math
6995
6996 2007-12-13  Robert Dewar  <dewar@adacore.com>
6997
6998         * back_end.adb: Recognize -fno-inline
6999
7000 2007-12-13  Robert Dewar  <dewar@adacore.com>
7001
7002         * checks.adb: Fix optimization problem with short-circuited form
7003
7004 2007-12-13  Bob Duff  <duff@adacore.com>
7005
7006         * clean.adb (Usage): Add line for -aP
7007         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7008         with a parameter "procedure Usage", instead of passing a pointer to a
7009         procedure. This is to eliminate trampolines (since the Usage procedure
7010         is often nested in a main procedure, and it would be inconvenient to
7011         unnest it).
7012
7013         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7014         to be generic, with a parameter "procedure Callback (...)", instead of
7015         passing a pointer to a procedure. This is to eliminate trampolines
7016         (since the Callback procedure is usually nested).
7017
7018         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
7019         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7020         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7021
7022         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7023         Use the generic Heap_Sort_G instead of Heap_Sort_A.
7024
7025 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7026
7027         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7028         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7029         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7030         (Renamed_In_Spec): New flag
7031         (Has_Pragma_Inline_Always): New flag
7032         Add missing doc for pragma Obsolescent_Warning
7033         Add missing doc for 17 additional unused flags (230-247)
7034         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7035         Alphabetize with clauses.
7036         Separate Is_Thunk and Has_Thunks flags
7037         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7038         (Related_Interface): Renamed to Related_Type.
7039         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7040         (Set_Is_Flag): Restrict the assertion.
7041
7042 2007-12-13  Vincent Celier  <celier@adacore.com>
7043
7044         * errout.adb (Output_Source_Line): Do not keep a trailing space after
7045         the source line number if the source line is empty.
7046
7047 2007-12-13  Geert Bosch  <bosch@adacore.com>
7048
7049         * eval_fat.adb (Decompose_Int): Handle argument of zero.
7050         (Compose): Remove special casing of zero.
7051         (Exponent): Likewise.
7052         (Fraction): Likewise.
7053         (Machine): Likewise.
7054         (Decompose): Update comment.
7055
7056 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7057
7058         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7059         limited ancestor part, initialize controllers of enclosing record
7060         before expanding ancestor aggregate.
7061         (Gen_Assign): If a component of the aggregate is box-initialized, add
7062         code to call Initialize if the component is controlled, and explicit
7063         assignment of null if the component is an access type.
7064
7065         Handle properly aggregates for limited types that appear in object
7066         declarations when the aggregate contains controlled values such as
7067         protected types.
7068         When expanding limited aggregates into individual components, do not
7069         call Adjust on controlled components that are limited.
7070
7071 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7072
7073         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7074
7075 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7076
7077         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7078         predefined primitive _Disp_Requeue.
7079         (Make_Predefined_Primitive_Specs): Create the spec for predefined
7080         primitive _Disp_Requeue.
7081         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7082         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7083         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7084         an interface type. In case of limited interfaces we now declare all the
7085         predefined primitives associated with synchronized interfaces as
7086         abstract.
7087         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7088         declarations.
7089         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
7090         tagged type is an interface type and there is no user-defined equality
7091         function.
7092         Add also bodies of predefined primitives associated with synchronized
7093         interfaces.
7094         (Freeze_Record_Type): Do not build bodies of predefined primitives of
7095         interface types because they are now defined abstract.
7096         Add missing documentation.
7097         (Expand_Record_Controller): Update occurrence of Related_Interface
7098         to Related_Type.
7099         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
7100         (Expand_N_Object_Declaration): Take into account VM_Target when handling
7101         class wide interface object declaration.
7102         (Expand_Previous_Access_Type): Do not create a duplicate master entity
7103         if the access type already has one.
7104         (Expand_N_Object_Declaration): Defend against attempt to validity check
7105         generic types. Noticed for -gnatVcf specified with previous errors.
7106
7107 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7108
7109         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7110         Expand_Allocator_Expression): Take into account VM_Target
7111
7112         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
7113         secondary stack when VM_Target /= No_VM
7114
7115 2007-12-13  Javier Miranda  <miranda@adacore.com>
7116             Ed Schonberg  <schonberg@adacore.com>
7117
7118         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
7119         Is_Complation_Unit by Is_Library_Level_Entity in the code
7120         that decides if the static dispatch tables need to be built.
7121         (Wrap_Transient_Declaration): Do not generate a finalization call if
7122         this is a renaming declaration and the renamed object is a component
7123         of a controlled type.
7124
7125 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7126
7127         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
7128         In the case where the renamed subprogram is a dereference, call
7129         Force_Evaluation on the prefix.
7130
7131 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7132             Ed Schonberg  <schonberg@adacore.com>
7133
7134         * exp_ch9.adb (Expand_N_Asynchronous_Select,
7135         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
7136         comment reformatting.
7137         (Set_Privals): Inherit aliased flag from formal. From code reading.
7138         (Build_Simple_Entry_Call): Out parameters of an access type are passed
7139         by copy and initialized from the actual. This includes entry parameters.
7140         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
7141         and Ada 2005 models of requeue.
7142         (Null_Statements): Still connsider do-end block null if it contains
7143         Unreferenced and Warnings pragmas.
7144         (Expand_N_Accept_Statement): Do not optimize away null do end if
7145         dispatching policy is other than defaulted.
7146         (Expand_N_Timed_Entry_Call): When the triggering statement is a
7147         dispatching call, manually analyze the delay statement.
7148         (Find_Parameter_Type): Move subprogram to Sem_Util.
7149
7150 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7151             Javier Miranda  <miranda@adacore.com>
7152
7153         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
7154         _Disp_Requeue occupies dispatch table slot number 15. Move
7155         _Disp_Timed_Select to slot 16.
7156         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
7157         generate the spec and body of _Disp_Reqeueue.
7158         (Make_DT): Build and initialize the second dispatch table.
7159         Handle initialization of RC_Offset when the parent
7160         is a private type with variable size components.
7161         (Make_Secondary_DT): Complete documentation. Add support to
7162         initialize the second dispatch table.
7163         (Make_Tags): Generate the tag of the second dispatch table.
7164         (Register_Primitive): Add support to register primitives in the
7165         second dispatch table.
7166
7167 2007-12-13  Pascal Obry  <obry@adacore.com>
7168
7169         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
7170         Windows. This signal is used by gnatmake to kill child processes for
7171         example.
7172
7173 2007-12-13  Javier Miranda  <miranda@adacore.com>
7174
7175         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7176         support for generic dispatching constructor calls in which we need to
7177         locate the tag of a secondary dispatch table associated with an
7178         interface type to properly dispatch the call.
7179         (Expand_N_Attribute_Reference [case Address],
7180         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
7181         handling of VM targets.
7182
7183 2007-12-13  Robert Dewar  <dewar@adacore.com>
7184             Ed Schonberg  <schonberg@adacore.com>
7185
7186         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
7187         assert fail
7188
7189         * ug_words: Add entries for -gnatw.a -gnatw.A
7190
7191         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
7192         literal is a subtype with non-static constraints, use the base type of
7193         the context as the base of the string subtype, to prevent type
7194         mismatches in gigi.
7195         (Resolve_Actuals): If the actual is an entity name, generate a
7196         reference before the actual is resolved and expanded, to prevent
7197         spurious warnings on formals of enclosing protected operations.
7198         (Analyze_Overloaded_Selected_Component): If type of prefix if
7199         class-wide, use visible components of base type.
7200         (Resolve_Selected_Component): Ditto.
7201         (Resolve_Short_Circuit): Detect case of pragma Assert argument
7202         evaluating to False, and issue warning message.
7203
7204         * usage.adb: Add lines for -gnatw.a and -gnatw.A
7205
7206 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7207
7208         * g-calend.ads (No_Time): New constant, to represent an uninitialized
7209         time value
7210
7211         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
7212         formats.
7213         (Month_Name_To_Number): New subprogram
7214
7215         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
7216         letter to upper-case.
7217
7218 2007-12-13  Robert Dewar  <dewar@adacore.com>
7219             Ed Schonberg  <schonberg@adacore.com>
7220
7221         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
7222
7223         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
7224         context is a limited view, use non-limited view when available. If the
7225         non-limited view is an unconstrained array, this enforces consistency
7226         requirements in 3.10.2 (27).
7227         (Layout_Type): For an access type whose designated type is a limited
7228         view, examine its declaration to determine if it is an unconstrained
7229         array, and size the access type accordingly.
7230         (Layout_Type): Do not force 32-bits for convention c subprogram
7231         pointers in -gnatdm mode, only if real vms target.
7232
7233         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
7234         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7235         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
7236         violations of the No_Implicit_Dynamic_Code restriction.
7237         (Resolve_Attribute, case 'Access): If designated type of context is a
7238         limited view, use non-limited view when available. If the non-limited
7239         view is an unconstrained array, this enforces consistency requirements
7240         in 3.10.2 (27).
7241         (Layout_Type): For an access type whose designated type is a limited
7242         view, examine its declaration to determine if it is an unconstrained
7243         array, and size the access type accordingly.
7244
7245 2007-12-13  Vincent Celier  <celier@adacore.com>
7246
7247         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
7248         object directory of main project does not exist.
7249         On VMS, correctly set then environment variable for the source
7250         directories.
7251
7252 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
7253
7254         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
7255         set to True this procedure will create the value of type REG_EXPAND_SZ.
7256         It was only possible to create REG_SZ values before.
7257
7258 2007-12-13  Robert Dewar  <dewar@adacore.com>
7259
7260         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
7261         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
7262         namet-sp.adb, namet-sp.ads: New files.
7263
7264         * g-speche.adb: Use generic routine in g-spchge
7265
7266         * s-wchcnv.ads, s-wchcnv.adb: 
7267         Minor code cleanup (make formal type consistent with spec)
7268
7269         * namet.adb: Update comments.
7270
7271         * par-endh.adb (Evaluate_End_Entry): Use new
7272         Namet.Sp.Is_Bad_Spelling_Of function
7273
7274         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
7275
7276         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
7277         ancestor is an access type initialized with a box, set its type
7278         explicitly, for use in subsequent expansion.
7279         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
7280         function
7281
7282 2007-12-13  Robert Dewar  <dewar@adacore.com>
7283
7284         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
7285         access Vstring)
7286
7287 2007-12-13  Robert Dewar  <dewar@adacore.com>
7288
7289         * inline.adb (Back_End_Cannot_Inline): Use new flag
7290         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7291
7292         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
7293         Has_Pragma_Inline_Always instead.
7294         of obsolete function Is_Always_Inlined
7295         (Build_Body_To_Inline): Same change
7296         (Cannot_Inline): Same change
7297         Do not give warning on exception raise in No_Return function
7298
7299         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
7300         component has two inconsistent component clauses in the same record
7301         representation clause, favor the message that complains about
7302         duplication rather than inconsistency.
7303         Update comments.
7304         (Record_Representation_Clause): Do not warn on missing component
7305         clauses for inherited components of a type extension.
7306         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
7307         an overloadable item if it is a pragma that can apply to multiple
7308         overloadable entities (e.g. Inline) because a pragma cannot be on
7309         more than one chain at a time.
7310         (Validate_Unchecked_Conversion): Add code to warn on unchecked
7311         conversion where one of the operands is Ada.Calendar.Time.
7312         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
7313         For now, ignore Component_Size clause on VM targets, as done for
7314         pragma Pack.
7315
7316 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7317             Vincent Celier  <celier@adacore.com>
7318
7319         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
7320         string
7321         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
7322         prj.ads
7323         (Hash): Move instantiation of System.HTable.Hash from spec to body
7324         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
7325         systems, since we do not need to recompute the Name_Id for the canonical
7326         file name.
7327         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
7328         as a parameter. This parameter is in fact always "ada" in all calls, and
7329         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
7330         while loading a project with 40000 files
7331
7332         * prj-attr.adb: Fix name of attribute Dependency_Driver
7333         Change the kind of indexing for attribute Root
7334
7335         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
7336         variables already declared, in case constructions.
7337
7338         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
7339         Current_Object_Path_File to No_Path.
7340
7341         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
7342         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
7343
7344         * prj-makr.adb: new parameter Current_Dir
7345
7346         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
7347         Ada sources when language is not Ada.
7348         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
7349         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
7350         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
7351         (Locate_Directory): Always resolve links when computing Canonical_Path
7352         (Look_For_Sources): Make sure that Name_Buffer contains the file name
7353         in Source_Files before checking for the presence of a directory
7354         separator.
7355         Optimize calls to Name_Find when on case sensitive systems.
7356         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
7357         as a parameter.
7358         (Prj.Nmsc.Check): new parameter Current_Dir
7359         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
7360         cannot be empty and the spec suffix cannot be the same as the body or
7361         separate suffix.
7362         (Get_Unit): When a file name can be of several unit kinds (spec, body or
7363         subunit), always consider the longest suffix.
7364         (Check_Configuration): Do not issue an error if there is no compiler
7365         for a language. Just issue a warning and ignore the sources for the
7366         language.
7367         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
7368         not empty.
7369         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
7370         (Unit_Exceptions): New hash table
7371         (Check_Naming_Schemes): Check if a file that could be a unit because of
7372         the naming scheme is not in fact a source because there is an exception
7373         for the unit.
7374         (Look_For_Sources): Put the unit exceptions in hash table
7375         Unit_Exceptions
7376         (Get_Unit_Exceptions): Give initial value No_Source to local variable
7377         Other_Part to avoid exception when code is compiled with validity
7378         checking.
7379         (Get_Sources_From_File): Check that there is no directory information
7380         in the file names.
7381         (Look_For_Sources): Check that there is no directory information in the
7382         list of file names in Source_Files.
7383         (Look_For_Sources): In multi-language mode, do not allow exception file
7384         names that are excluded.
7385         (Excluded_Sources_Htable): New hash table
7386         (Search_Directories.Check_File): New procedure to simplify
7387         Search_Directories.
7388         (Search_Directories): Do not consider excluded sources
7389         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
7390         Search_Directories.
7391         (Get_Exceptions): Set component Lang_Kind of Source_Data
7392         (Get_Unit_Exceptions): Ditto
7393         (Search_Directories): Ditto
7394
7395         * prj-pars.adb: new parameter Current_Dir
7396
7397         * prj-part.ads, prj-part.adb: 
7398         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
7399         (Opt.Follow_Links_For_Dirs): New flag
7400         (Project_Path_Name_Of): Cache information returned by this routine as
7401         Locate_Regular_File is a costly routine. The code to output a log
7402         information and the effective call to Locate_Regular_File is now
7403         factorized into a routine (code clean-up).
7404         (Parse, Parse_Single_Project): new parameter Current_Dir
7405         When main project file cannot be found, indicate in the error
7406         message the project path that was used to do the search.
7407
7408         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
7409         (Prj.Proc.Process*): new parameter Current_Dir
7410
7411         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
7412
7413 2007-12-13  Bob Duff  <duff@adacore.com>
7414
7415         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
7416         procedure to be called from the back end to check the
7417         No_Implicit_Dynamic_Code restriction.
7418
7419 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7420
7421         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
7422         Fixes another case where RTE_Available_Call was ignored instead of being
7423         taken into account.
7424         (Load_Fail): Ditto.
7425
7426         * rtsfind.ads: Add new entries.
7427
7428 2007-12-13  Robert Dewar  <dewar@adacore.com>
7429
7430         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
7431         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
7432
7433         * scn.adb: Implement BOM recognition
7434
7435 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7436             Ed Schonberg  <schonberg@adacore.com>
7437
7438         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
7439         subprogram body that acts as its own spec may not have a non-private
7440         WITH clause on a private sibling.
7441         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
7442         child unit is a renaming, create an implicit with_clause on that
7443         parent, and not on the unit it renames, to prevent visibility errors
7444         in the current unit.
7445
7446 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7447
7448         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
7449         renaming declaration, use the Slocs of the formal parameters from the
7450         declaration of the formal subprogram when creating the formal parameter
7451         entities in the renaming declaration.
7452         (Analyze_Formal_Type_Declaration): Change the placement of the error
7453         message concerning illegal known discriminants. It is now posted on the
7454         type rather than on the first discriminant. This change ensures early
7455         error report.
7456         (Freeze_Subprogram_Body): If the generic subprogram is nested within
7457         the package body that contains the instance, do not generate an
7458         out-of-place freeze node for the enclosing package.
7459         (Collect_Previous_Instantiations): Ignore internal instantiations
7460         generated for formal packages.
7461         (Validate_Derived_Type_Instance): Add a check that when a formal
7462         derived type is Known_To_Have_Preelab_Init then the actual type must
7463         have preelaborable initialization, and issue an error when this
7464         condition is violated.
7465
7466 2007-12-13  Robert Dewar  <dewar@adacore.com>
7467
7468         * s-imenne.adb, s-imenne.ads: New files.
7469
7470         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
7471         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
7472         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
7473         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
7474         s-imgwch.ads: New calling sequence for Image routines to avoid sec
7475         stack usage.
7476
7477 2007-12-13  Javier Miranda  <miranda@adacore.com>
7478             Ed Schonberg  <schonberg@adacore.com>
7479
7480         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
7481         generation of spurious error if parent is an interface type; caused
7482         because predefined primitive bodies will be generated later by
7483         Freeze_Record_Type.
7484         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
7485         flag.
7486         (Derive_Subprograms): Handle derivations of predefined primitives
7487         after all the user-defined primitives to ensure that they are
7488         found in proper order in instantiations.
7489         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
7490         of Related_Interface to Related_Type.
7491         (Record_Type_Declaration): Minor reordering of calls to decorate the
7492         Tag component because the entity must have set its Ekind attribute
7493         before setting its Is_Tag attribute.
7494         (Analyze_Subtype_Declaration): In the case of subtypes with
7495         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
7496
7497 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7498             Ed Schonberg  <schonberg@adacore.com>
7499
7500         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
7501         statement to the list of contexts where a selected component with a
7502         concurrent tagged type prefix should yield a primitive operation.
7503         (Find_Primitive_Operation): Handle case of class-wide types.
7504         (Analyze_Overloaded_Selected_Component): If type of prefix is
7505         class-wide, use visible components of base type.
7506         (Resolve_Selected_Component): Ditto.
7507         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
7508         formal of a generic subprogram. find candidate interpretations by
7509         scanning the list of generic formal declarations.:
7510         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
7511         type from a limited_with_clause, and the full view is available, use it
7512         for subsequent semantic checks.
7513         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
7514         (Find_Primitive_Operation): New function.
7515         (Analyze_Overloaded_Selected_Component): insert explicit dereference
7516         only once if several interpretations of the prefix yield an access type.
7517         (Try_Object_Operation): Code and comment cleanup.
7518         (Analyze_Selected_Component): Reorder local variables. Minot comment and
7519         code reformatting. When the type of the prefix is tagged concurrent, a
7520         correct interpretation might be available in the primitive and
7521         class-wide operations of the type.
7522
7523 2007-12-13  Robert Dewar  <dewar@adacore.com>
7524             Ed Schonberg  <schonberg@adacore.com>
7525
7526         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
7527         renaming entry as subprogram using rename-as-body if subprogram spec
7528         frozen.
7529         (Use_One_Type): The clause is legal on an access type whose designated
7530         type has a limited view.
7531         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7532         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7533         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
7534         operation denoted by a selected component.
7535         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
7536         it can be an expression, possibly overloaded, that returns a task or
7537         an access to one.
7538
7539 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7540             Gary Dismukes  <dismukes@adacore.com>
7541
7542         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
7543         requeue statement is dispatching. Do not emit an error when the name is
7544         not an entry and the context is a dispatching select. Add code to
7545         perform subtype conformance between the formals of the current entry
7546         and those of the target interface primitive.
7547         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
7548         Timed_Entry_Call): Analyze the triggering statement as the first step of
7549         the processing. If this is a dispatching select, postpone the analysis
7550         of all select statements until the Expander transforms the select. This
7551         approach avoids generating duplicate identifiers after the Expander has
7552         replicated some of the select statements. In case the Expander is
7553         disabled, perform regular analysis.
7554         (Check_Triggering_Statement): New routine.
7555         (Analyze_Requeue): Exclude any interpretations that are not entries when
7556         checking overloaded names in a requeue. Also test type conformance for
7557         matching interpretations rather than requiring subtype conformance at
7558         that point to conform with the RM's resolution rule for requeues.
7559
7560 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7561
7562         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
7563         inherited operation is a defaulted tag-indeterminate call, and there is
7564         a statically tagged actual, use the static tag as a controlling actual
7565         for the defaulted actual.
7566
7567 2007-12-13  Geert Bosch  <bosch@adacore.com>
7568
7569         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
7570         context, so do not call Check_Non_Static_Context.
7571
7572 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7573
7574         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
7575         whether formal E is an entity which may have parameters.
7576
7577 2007-12-13  Bob Duff  <duff@adacore.com>
7578             Javier Miranda  <miranda@adacore.com>
7579             Robert Dewar  <dewar@adacore.com>
7580
7581         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
7582         (Set_Convention): New procedure to set the Convention flag, and in
7583         addition make sure the Favor_Top_Level flag is kept in sync (all
7584         foreign-language conventions require Favor_Top_Level = True).
7585         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
7586         to Related_Type.
7587         (Collect_Interfaces_Info): Minor update to handle the two secondary
7588         dispatch tables. Update occurrence of Related_Interface to Related_Type.
7589         (Generate_Parent_Ref): Add parameter to specify entity to check
7590         (Is_Preelaborable_Expression): Allow the name of a discriminant to
7591         initialize a component of a type with preelaborable initialization.
7592         This includes the case of a discriminal used in such a context.
7593         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
7594         latest Ada 2005 rules about renaming and 'Access of
7595         discriminant-dependent components.
7596         (Check_Nested_Access): Add handling when there are no enclosing
7597         subprograms (e.g. case of a package body).
7598         (Find_Parameter_Type): Factor routine from several other compiler files.
7599         Remove routine from Find_Overridden_Synchronized_Primitive.
7600
7601 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7602
7603         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
7604         an invalid access to an uninitialized slot in the
7605         Source_File_Index_Table.
7606
7607 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7608
7609         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
7610
7611 2007-12-13  Bob Duff  <duff@adacore.com>
7612
7613         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
7614         access-to-subprogram types in this package.
7615
7616 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7617
7618         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
7619         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
7620         Stack_Overlay_Address and document that we are using an internal
7621         abstraction.
7622         (Byte_Size, Unsigned_32_Size): Remove, now useless.
7623         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
7624         consistently throughout the various implementation pieces.
7625
7626         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
7627         overlay we are using to fill the stack area with patterns.
7628         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
7629         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
7630         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
7631
7632 2007-12-13  Robert Dewar  <dewar@adacore.com>
7633
7634         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
7635
7636 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7637
7638         * s-tassta.adb: 
7639         (Create_Task): Take into account tasks created by foreign threads.
7640         Code clean up: use constants instead of hard coded values.
7641
7642 2007-12-13  Robert Dewar  <dewar@adacore.com>
7643
7644         * styleg.adb (Check_Comment): More liberal rules for comment placement
7645
7646 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7647
7648         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
7649         of Procedure Value instead of Frame Pointer as the invocation
7650         identifier associated with the instruction pointer in each traceback
7651         entry.
7652
7653         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
7654         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
7655         Pointer as the invocation identifier passed to tbk$symbolize.
7656
7657         * s-traent-vms.ads, s-traent-vms.adb
7658         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
7659         Procedure Value instead of Frame Pointer as the invocation identifier
7660         passed to tbk$symbolize.
7661
7662 2007-12-13  Robert Dewar  <dewar@adacore.com>
7663
7664         * tbuild.ads, tbuild.adb: 
7665         Fix location of flag for unrecognized pragma message
7666
7667 2007-12-13  Robert Dewar  <dewar@adacore.com>
7668
7669         * treepr.ads, treepr.adb: (pl): implement use of positive value
7670         shorthands
7671
7672 2007-12-13  Robert Dewar  <dewar@adacore.com>
7673
7674         * xeinfo.adb: Remove warnings
7675         * xnmake.adb: Remove warnings
7676         * xsinfo.adb: Remove warnings
7677         * xtreeprs.adb: Remove warnings
7678         * xsnames.adb: Remove warnings
7679
7680         * a-ngcoar.adb: Fix typo.
7681         * s-interr.adb: Minor reformatting
7682         * env.c: Minor reformatting.
7683         * g-bytswa.adb: Minor reformatting.
7684         * g-rannum.ads: Minor documentation improvements
7685         * s-tasinf-mingw.adb: Minor header fix
7686         * a-clrefi.adb: Minor reformatting
7687         * g-sttsne.ads: Minor documentation improvement
7688         * g-sttsne-locking.ads: Minor documentation improvement
7689         * g-soliop-solaris.ads: Minor documentation improvement
7690         * g-soliop-mingw.ads: Minor documentation improvement
7691         * g-soliop.ads: Minor documentation improvement
7692         * exp_aggr.ads: Minor reformatting
7693         * debug.adb: Add documentation for the gprbuild debug flags
7694         * exp_ch2.adb: Use Nkind_In to simplify code throughout
7695         * exp_pakd.adb: Minor reformatting
7696
7697         * g-altive.ads, g-alleve.adb: Remove assertions.
7698         Add comment about minor differences between targets regarding
7699         floating-point operations.
7700
7701         * g-thread.adb: Remove pragma unreferenced.
7702         * lib.ads: Minor reformatting
7703         * par-ch9.adb: Minor reformatting of error messages
7704         * sem_case.adb: Minor reformatting
7705         * s-fileio.adb: Minor reformattinng
7706         * s-vmexta.ads: Minor typo
7707         * vxaddr2line.adb: 
7708         Take into account 'Success' value as per new GNAT warning.
7709
7710 2007-12-13  Vincent Celier  <celier@adacore.com>
7711
7712         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
7713         even on Windows
7714
7715 2007-12-13  Robert Dewar  <dewar@adacore.com>
7716             Bob Duff  <duff@adacore.com>
7717
7718         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
7719         Document that suffixes may be terminations of each others
7720         Add doc for -gnatw.a and -gnatw.A
7721         Document gnatbind -Wx switch
7722         Document BOM recognition
7723         Document pragma Implemented_By_Entry.
7724         Document new units.
7725
7726         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
7727         Add doc for pragma Unreferenced suppressing no entities referenced msg
7728         Add documentation of GNAT.Directory_Operations.Iteration
7729         Add documentation of GNAT.Random_Numbers
7730         Add documentation for pragma Shared.
7731         Correct documentation for Bit_Order
7732         Add documentation for the Pool_Address attribute.
7733         Fix and improve documentation of pragma machine_attribute.
7734         New pragma Fast_Math
7735         Document BOM recognition
7736
7737         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
7738         Add /Wide_Character_Encoding for binder
7739         Add qualifier for the new gnatpp option --no-separate-loop-then
7740
7741 2007-12-13  Matthew Heaney  <heaney@adacore.com>
7742
7743         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
7744         which generic formal operations are called for each operation.
7745
7746 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7747
7748         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
7749         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
7750
7751 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7752
7753         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
7754         Reference_Dir unless we actually need it.
7755
7756 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
7757             Tristan Gingold  <gingold@adacore.com>
7758
7759         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
7760
7761         * s-osprim-vms.adb,
7762         a-calend-vms.adb: Remove pragma warning off and add pragma
7763         unreferenced.
7764
7765 2007-12-13  Robert Dewar  <dewar@adacore.com>
7766
7767         * impunit.adb: Add entries for missing units
7768
7769         * Makefile.rtl: Add new run-time units.
7770
7771         * Make-lang.in:  Update dependencies.
7772
7773 2007-12-13  Bob Duff  <duff@adacore.com>
7774
7775         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
7776         types, set Can_Use_Internal_Rep appropriately, based on
7777         Always_Compatible_Rep_On_Target.
7778
7779 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7780             Arnaud Charlet  <charlet@adacore.com>
7781
7782         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
7783         it to the front end and setting the aamp_target environment variable
7784         to the switch's argument to ensure that gnaampbind and gnaamplink will
7785         take the specified library into account.
7786         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
7787         target, since the CIL compiler supports an "object" file (.il files).
7788
7789 2007-12-13  Vincent Celier  <celier@adacore.com>
7790
7791         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
7792         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
7793
7794 2007-12-13  Geert Bosch  <bosch@adacore.com>
7795
7796         * s-parame-vxworks.adb: 
7797         Update comments to reflect usage of this package by Nucleus.
7798
7799 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7800
7801         * i-vxwork.ads: Kill new warning on Convention C, since changing the
7802         spec would break code.
7803
7804         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
7805
7806         * system-vxworks-alpha.ads: Removed.
7807
7808 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
7809
7810         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
7811
7812 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
7813
7814         PR ada/34366
7815         * sem_ch3.adb (Designates_T): New function.
7816         (Mentions_T): Factor reusable part of the logic into Designates_T.
7817         Consider non-access parameters and access and non-access result.
7818         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
7819         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
7820
7821         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
7822
7823 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
7824
7825         PR ada/34361
7826         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
7827         the new implementation of target-specific calls.
7828
7829 2007-12-07  Olivier Hainque  <hainque@adacore.com>
7830
7831         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
7832         the designated full view, only follow a second level Full_View link
7833         for Non_Limited_Views of from_limited_with references.
7834         
7835 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
7836
7837         PR ada/15805
7838         * sem_ch6.adb (Process_Formals): Prevent an access type formal
7839         to be initialized with an access to constant object.
7840
7841         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
7842         when an access to constant is used to initialize an access
7843         value.
7844
7845         PR ada/21346
7846         * a-direct.adb (Compose): Containing_Directory can be an empty string.
7847
7848 2007-12-07  Olivier Hainque  <hainque@adacore.com>
7849
7850         PR ada/34173
7851         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
7852         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
7853         this is from an alignment clause on the GNAT entity.
7854         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
7855         to distinguish the case where we set it from the type's alignment.
7856         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
7857         whether this alignment was set from an explicit alignment clause.
7858
7859 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
7860
7861         * decl.c (make_packable_type): Revert last change.
7862         (gnat_to_gnu_field): Avoid setting size and position multiple times.
7863         * utils.c (finish_record_type): Retrieve the real name of the type.
7864
7865 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
7866
7867         * trans.c (lvalue_required_p): Take base node directly instead
7868         of its parent.  Rename second parameter to 'gnu_type'.
7869         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
7870         <N_Slice>: Likewise.
7871         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
7872         Adjust calls to lvalue_required_p.
7873
7874 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
7875
7876         PR ada/21489
7877         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
7878         parameters of an entry call.
7879
7880 2007-12-03  Robert Dewar  <dewar@adacore.com>
7881             Samuel Tardieu  <sam@rfc1149.net>
7882
7883         PR ada/34287
7884         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
7885         of variables declared in a library-level package.
7886     
7887 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
7888
7889         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
7890         of Empty_String'Unchecked_Access.
7891
7892         * Makefile.in: Add support for sh4-linux.
7893
7894         * system-linux-sh4.ads: New file.
7895
7896 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
7897
7898         PR ada/33722
7899         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
7900         and its argument must not be free()ed.
7901
7902 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
7903
7904         * decl.c (make_packable_type): Retrieve the real name of the type.
7905         (maybe_pad_type): Simplify similar code.
7906
7907 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
7908
7909         PR ada/15804
7910         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
7911         than an identifier is used after "case" in a variant_part.
7912
7913         PR ada/17318
7914         * par-ch4.adb (Is_Parameterless_Attribute): New map.
7915         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
7916         attribute name or not depending on the new map.
7917
7918         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
7919         returning a string or a type will not be called with improper
7920         arguments.
7921
7922         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
7923
7924         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
7925
7926         PR ada/32792
7927         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
7928         Signal an error when attribute argument is a fixed-point value of
7929         an unknown type.
7930
7931         PR ada/22559
7932         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
7933         a derived ordinary fixed point type.
7934
7935         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
7936         RM_Size when a Small clause is found.
7937
7938 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
7939
7940         PR 34081/C++
7941         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
7942         Pass 'false' for the new allocate_struct_function parameter.
7943         * utils.c (build_function_stub): Likewise.
7944
7945 2007-11-25  Richard Guenther  <rguenther@suse.de>
7946
7947         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
7948         (gnat_poplevel): Likewise.
7949
7950 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
7951
7952         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
7953         strict alignment, no alignment clause and a known static size, cap
7954         the type alignment to the greatest power of 2 factor of the size.
7955         (gnat_to_gnu_field): If the field has a component clause, is aliased
7956         or of a type with strict alignment, require that its size be equal to
7957         that of the type.
7958         (validate_size): Use the type size as the minimum size for a type with
7959         strict alignment.
7960
7961 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
7962
7963         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
7964         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7965         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
7966         Use 'Access instead of 'Unchecked_Access in second and third
7967         arguments of pthread_sigmask.
7968
7969 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
7970
7971         * decl.c (ceil_alignment): New function.
7972         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
7973         (make_packable_type): Likewise.
7974
7975 2007-11-22  Olivier Hainque  <hainque@adacore.com>
7976
7977         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
7978         to fit in 80 columns.
7979
7980 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
7981
7982         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
7983         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
7984
7985 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
7986
7987         PR ada/34098
7988         * misc.c (gnat_adjust_rli): Delete.
7989         (gnat_init): Do not initialize the translation code here.
7990         Do not call set_lang_adjust_rli.
7991         * trans.c (init_code_table): Make static.
7992         (gnat_init_stmt_group): Delete.
7993         (gigi): Initialize the translation code entirely here.
7994         Emit debug info for the common types here instead of...
7995         * utils.c (gnat_init_decl_processing): ...here.
7996         * gigi.h (init_code_table): Delete.
7997         (gnat_init_stmt_group): Likewise.
7998
7999 2007-11-16  Olivier Hainque  <hainque@adacore.com>
8000
8001         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8002         retrieving an allocator return value from a super-aligned address from
8003         here to ...
8004         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8005         expect a super-aligned address for a fat or thin pointer.
8006         
8007 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
8008
8009         * trans.c (call_to_gnu): Always set the source location on the call
8010         expression.  If the function returns-by-target, also set it on the
8011         address expression.
8012
8013 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
8014
8015         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8016         sections of non-supported Interix target.
8017
8018         * s-osinte-interix.ads: Removed.
8019
8020         * i-cstrin.ads (chars_ptr): Make it a C convention type.
8021
8022 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
8023
8024         * a-tasatt.adb: Add a comment at the beginning of the package
8025         explaining why in general 'Unchecked_Access must be used instead
8026         of 'Access.
8027
8028         * sem_prag.adb (Process_Convention): Move the test for the
8029         entity on which the Convention pragma applies down to also
8030         forbid pragma Convention on enumeration literals reached
8031         through renamings.
8032
8033 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
8034
8035         * a-tasatt.adb: Revert previous change for this file as it will
8036         generate an error when this package is instantiated from a
8037         local context.
8038
8039 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
8040
8041         * a-tasatt.adb: Type Wrapper should be declared in comment instead
8042         of already declared type Node_Access.
8043         Use 'Access instead of 'Unchecked_Access when applicable. Local
8044         lifetime is the one of the package.
8045         (Set_Value): W is allocated on the heap.
8046
8047         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8048         applicable.
8049         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8050         access type.
8051         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8052         access type.
8053
8054         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8055         applicable.
8056         (elaboration code): Timer_Queue lifetime is the one of the
8057         package.
8058
8059         * tracebak.c (i386 alternative): Remove useless comparaison
8060         which is always false; LOWEST_ADDRESS is 0 and is never greater
8061         than an unsigned integer.
8062
8063         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8064         embedded check for "Ada_Version >= Ada_05".
8065
8066 2007-11-07  Olivier Hainque  <hainque@adacore.com>
8067
8068         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8069         craft and expand comment.
8070
8071 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
8072
8073         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8074
8075 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8076
8077         * misc.c (gnat_handle_option): Replace call to abort with
8078         call to gcc_unreachable.
8079         (gnat_init): Likewise.
8080         (gnat_expand_expr): Likewise.
8081         (fp_prec_to_size): Likewise.
8082         (fp_size_to_prec): Likewise.
8083
8084 2007-10-23  Richard Guenther  <rguenther@suse.de>
8085
8086         PR bootstrap/33608
8087         * tracebak.c: #undef abort after including system.h.
8088
8089 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
8090
8091         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
8092         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
8093         for win32 targets.
8094         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
8095
8096 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
8097
8098         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
8099         Set the protection status of the guard page based on the value of On.
8100
8101         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
8102
8103         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
8104         (Exit_Task): Pass False to Hide_Yellow_Zone.
8105
8106 2007-10-15  Robert Dewar  <dewar@adacore.com>
8107
8108         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
8109         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
8110         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
8111         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
8112         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
8113         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
8114         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
8115         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
8116         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
8117         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
8118         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
8119         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
8120         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
8121         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
8122         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
8123         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
8124         Minor reformatting.
8125         Add Unreferenced and Warnings (Off) pragmas for cases of
8126         variables modified calls where they are IN OUT or OUT parameters and
8127         the resulting values are not subsequently referenced. In a few cases,
8128         we also remove redundant code found by the new warnings.
8129
8130         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
8131         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
8132         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
8133         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
8134         warning controlled by -gnatw.o that warns on cases of out parameter
8135         values being ignored.
8136
8137 2007-10-15  Geert Bosch  <bosch@adacore.com>
8138
8139         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
8140
8141         * expect.c: Initial port to arm-mentor-nucleus.
8142         Use kill for __gnat_kill() on VMS.
8143
8144 2007-10-15  Emmanuel Briot  <briot@adacore.com>
8145
8146         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
8147         value.
8148         (Xref_Record): Change type for Line, since in the case of a reference to
8149         a predefined entity (as happens for array index types), the line is set
8150         to 0.
8151         Add support for parsing multiple array index types info, or
8152         multiple inherited interfaces info. This information cannot be stored
8153         in Xref_Entity_Record, which only supports a single instance of Tref_*,
8154         and is therefore stored in the list of references instead. It has a
8155         special treatement later on in tools that use this information.
8156
8157 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8158
8159         * debug.adb: Document use of -gnatd.a and -gnatd.I
8160
8161         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
8162
8163 2007-10-15  Javier Miranda  <miranda@adacore.com>
8164
8165         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
8166         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
8167         care of access to class-wide interface types plus removal of bizarre
8168         conversion of tagged object to access type (reported by Gary
8169         Dismukes). After this patch there is no need to perform any
8170         additional management on these nodes in Expand_Interface_Actuals.
8171
8172         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
8173         that handles use of 'Access and 'Unchecked_Access applied to
8174         actuals covering interface types. Such code is now
8175         centralized in Expand_N_Attribute_Reference.
8176
8177 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8178
8179         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
8180         of tagged types whose ultimate ancestor is a CPP type.
8181         (Freeze_Array_Type): For a packed array type, generate an initialization
8182         procedure if the type is public, to handle properly a client that
8183         specifies Normalize_Scalars.
8184
8185 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8186
8187         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
8188         inside a generic body, retrieve the full view of the entry family
8189         discrete subtype if available.
8190
8191 2007-10-15  Thomas Quinot  <quinot@adacore.com>
8192
8193         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
8194         attempt to generate stubs for hidden primitive operations.
8195
8196 2007-10-15  Vincent Celier  <celier@adacore.com>
8197
8198         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
8199         returning None, used when there is no platform specific body for
8200         MLib.Tgt.Specific.
8201
8202 2007-10-15  Bob Duff  <duff@adacore.com>
8203
8204         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
8205         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
8206         the generic Heap_Sort_G, in order to avoid trampolines.
8207
8208 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
8209             Jose Ruiz  <ruiz@adacore.com>
8210
8211         * vx_stack_info.c: New file.
8212
8213         * i-forbla-unimplemented.ads: New file.
8214
8215         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
8216         for unsupported configurations; use it on VMS targets instead of the
8217         real one.
8218         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
8219         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
8220         used by VxWorks targets to have access to task-specific data and be
8221         able to extract the stack boundaries for stack checking.
8222         Use system-vms-ia64.ads on ivms.
8223
8224         * Make-lang.in: Update dependencies.
8225
8226         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
8227         (vx_stack_info.c).
8228
8229 2007-10-15  Vincent Celier  <celier@adacore.com>
8230
8231         * snames.adb, snames.ads: Add new standard name runtime_library_dir
8232
8233         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
8234
8235         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
8236
8237         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
8238         the source is unknown.
8239
8240         * prj-ext.adb: Spelling error fix
8241
8242         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
8243         95 reserved word in its name.
8244         (Process_Project_Level_Array_Attributes): Process new attribute
8245         Runtime_Library_Dir.
8246
8247         * prj-part.adb (Parse_Single_Project): Do not check the name of the
8248         config project against the user project names.
8249
8250         * prj-proc.adb (Expression): In multi-language mode, indexes that do
8251         not include a dot are always case insensitive.
8252         (Process_Declarative_Items): Ditto
8253         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
8254         detected.
8255
8256         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
8257         True, compare both indexes in lower case.
8258
8259 2007-10-15  Robert Dewar  <dewar@adacore.com>
8260
8261         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
8262
8263 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
8264
8265         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
8266         association for an access component, add an association with null as
8267         the expression. Remove testing for array subtypes and the setting in
8268         that case of Ctyp to the array component type, which prevented proper
8269         inclusion of an association for null-initialized arrays. Collapse
8270         condition that tests for array subtypes into just a test of
8271         Is_Partially_Initialized_Type (which already covers arrays anyway).
8272
8273 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8274
8275         * sem_ch12.adb: Minor code reformatting.
8276         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
8277         find the parent package which may have been hidden by local
8278         declarations.
8279
8280 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
8281
8282         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
8283         flag of derived concurrent types, taking into account the flag setting
8284         on the parent subtype and any new set of discriminants.
8285
8286 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8287
8288         * sem_ch4.adb: Minor code and comment reformatting.
8289         (Analyze_Allocator): When the designated type of an unconstrained
8290         allocator is a record with unknown discriminants or an array with
8291         unknown range bounds, emit a detailed error message depending on the
8292         compilation mode and whether the designated type is limited.
8293
8294 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8295
8296         * system-vms-ia64.ads: New file.
8297
8298         * system-vms_64.ads: Minor comment fix.
8299
8300 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8301
8302         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
8303         body generated for a function with a controlling result that is a null
8304         extension, discard the generated body in favor of the current explicit
8305         one.
8306
8307 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8308
8309         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
8310         examining its original form, to handle properly operator calls that
8311         have been rewritten.
8312
8313 2007-10-15  Olivier Hainque  <hainque@adacore.com>
8314
8315         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
8316         instead of a procedure value in each traceback entry.
8317
8318         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
8319         instead of procedure value to TBK$SYMBOLIZE.
8320
8321         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
8322         field.
8323         (TB_Entry_For): Account for the PV/FP renaming.
8324
8325         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
8326         add comment.
8327         (Null_TB_Entry): Account for change of component name.
8328         (PV_For): Rename as FP_For.
8329
8330 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8331
8332         * trans.c (gnat_to_gnu): Remove the padding structure more often.
8333         This optimize assignment to over-aligned record.
8334
8335 2007-10-15  Emmanuel Briot  <briot@adacore.com>
8336
8337         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
8338         interfaces.
8339
8340         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
8341         type, for dispatching calls.
8342
8343 2007-10-15  Vincent Celier  <celier@adacore.com>
8344             Robert Dewar  <dewar@adacore.com>
8345
8346         * gnat_ugn.texi: Add documentation for switches --version and --help
8347         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
8348         gnatxref, gnatfind, gnatls, and gnatclean.
8349         Document -gnatw.o.
8350         Mention attribute Excluded_Source_Dirs
8351         Replace obsolescent attribute Locally_Removed_Files with attribute
8352         Excluded_Source_Files.
8353         Improve documentation of -u (gnatbind)
8354         Document how to do reliable stack checking for the environmental task
8355         on iVMS.
8356
8357         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
8358         Document attribute Excluded_Source_Files and indicate that attribute
8359         Locally_Removed_Files is obsolescent.
8360
8361 2007-10-15  Thomas Quinot  <quinot@adacore.com>
8362
8363         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
8364
8365         * gen-soccon.c: 
8366         Update documentation to note that OpenVMS 8.3 or later must be used
8367         to generate g-soccon-vms.ads.
8368
8369         * atree.adb: Add ??? comment
8370
8371         * exp_util.adb: Minor reformatting.
8372         Add ??? comment in Kill_Dead_Code.
8373
8374 2007-10-15  Robert Dewar  <dewar@adacore.com>
8375
8376         * errout.ads: Comment clarification
8377
8378         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8379         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
8380
8381         * lib.ads: Comment update
8382
8383         * init.c: Minor reformatting.
8384
8385         * sem_attr.adb: Minor formatting
8386
8387         * osint-b.ads: Minor reformatting
8388
8389         * sem_ch9.adb: Implement -gnatd.I switch
8390
8391         * g-comlin.adb: (Start): Fix handling of empty command line.
8392
8393         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
8394         even when -rules follows the -cargs section.
8395
8396 2007-10-08  Ollie Wild  <aaw@google.com>
8397
8398         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
8399         gnat_return_tree.
8400         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
8401         gnat_return_tree.
8402         (gnat_eh_runtime_type): Removed.
8403         (gnat_return_tree): New function.
8404
8405 2007-10-08  Ben Elliston  <bje@au.ibm.com>
8406
8407         PR ada/33454
8408         Revert:
8409         2007-08-31  Ben Elliston  <bje@au.ibm.com>
8410
8411         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8412         when compiling for powerpc64-*-linux.
8413         * system-linux-ppc64.ads: New file.
8414
8415 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
8416
8417         Mapped location support
8418         * back_end.adb (Call_Back_End): Pass information about source
8419         files instead of units to gigi.
8420         * gigi.h (struct File_Info_Type): New.
8421         (gigi): Rename and change type of number_units parameter, change
8422         type of file_info_ptr parameter.
8423         * trans.c (number_files): New global variable.
8424         (gigi): Rename and change type of number_units parameter, change
8425         type of file_info_ptr parameter.
8426         If mapped location support is enabled, create the isomorphic mapping
8427         between source files and line maps.
8428         (Sloc_to_locus): If mapped location support is enabled, translate
8429         source location into mapped location.
8430         (annotate_with_node): Rename into set_expr_location_from_node.
8431         Call set_expr_location instead of annotate_with_locus.
8432         (Pragma_to_gnu): Adjust for above change.
8433         (Loop_Statement_to_gnu): Likewise.
8434         (call_to_gnu): Likewise.
8435         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
8436         (gnat_to_gnu): Likewise.
8437         (add_stmt_with_node): Likewise.
8438         (add_cleanup): Likewise.
8439         * utils.c (gnat_init_decl_processing): Do not set input_line.
8440
8441 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8442
8443         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
8444         (Applicable_Use): Emit a warning when a package tries to use itself.
8445         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
8446         is already in use or the package where it is declared is in use or is
8447         declared in the current package.
8448         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
8449
8450         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
8451         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
8452         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
8453
8454 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8455
8456         * a-calend-vms.adb, a-calend.adb: 
8457         Add a section on leap seconds control along with two entities used to
8458         enable and disable leap seconds support. The array Leap_Second_Times is
8459         now constant and contains hard time values pre-generated. Remove
8460         all elaboration code used to populate the table of leap seconds.
8461
8462         * bindgen.adb: 
8463         Add entity Leap_Seconds_Support to the list of global run-time variables
8464         along with a comment on its usage and values.
8465         (Gen_Adainit_Ada): Add code to generate the declaration and import of
8466         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
8467         or one (enabled) depending on the presence of binder switch "-y".
8468         (Gen_Adainit_C): Add code to generate the declaration of external int
8469         __gl_leap_seconds_support. Set is value to zero (disabled) or one
8470         (enabled) depending on the presence of binder switch "-y".
8471
8472         * init.c: Add __gl_leap_seconds_support to the list of global values
8473         computed by the binder.
8474
8475 2007-09-26  Jerome Guitton  <guitton@adacore.com>
8476
8477         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8478         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
8479          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
8480         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
8481
8482         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
8483
8484         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
8485         function which can be called by the debugger to interrupt the tasks of
8486         an Ada application asynchronously, as needed on VxWorks.
8487         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
8488
8489         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
8490         renamed from Stop_All_Tasks. Update comments.
8491         (Stop_All_tasks): New function declaration.
8492
8493 2007-09-26  Olivier Hainque  <hainque@adacore.com>
8494
8495         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
8496         #include <utime.h> and #define GCC_RESOURCE_H before
8497         #include <sys/wait.h>.
8498         Add more protections in __gnat_translate_vms.
8499
8500         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
8501         #include <sys/wait.h>.
8502
8503 2007-09-26  Thomas Quinot  <quinot@adacore.com>
8504             Sergey Rybin  <rybin@adacore.com>
8505
8506         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
8507
8508         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8509         where it belongs.
8510
8511         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8512
8513         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8514         where it belongs.
8515
8516         * sem_dist.ads: Minor comment fix
8517
8518         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8519
8520 2007-09-26  Javier Miranda  <miranda@adacore.com>
8521             Eric Botcazou  <ebotcazou@adacore.com>
8522
8523         * a-tags.adb: 
8524         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
8525          indirection added to the HT_Link component of the TSD. This is required
8526          to statically allocate the TSD.
8527
8528         * a-tags.ads: 
8529         Minor reordering of the declarations in the private part. Required to
8530         add a level of indirection to the contents of the TSD component HT_Link.
8531         This is required to statically allocate the TSD.
8532
8533         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
8534         Is_Statically_Allocated set from constant objects.
8535         Do not make exported constants created by the compiler volatile.
8536         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
8537         as read-only.
8538
8539         * trans.c (Identifier_to_gnu): For constants, unshare initializers
8540         before returning them.
8541
8542         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
8543         public part of the package.
8544         (Make_DT): Move HT_Link component out of the TSD record. For this
8545         purpose Make_DT now declares a separate object that stores the
8546         HT_Link value, and initializes the TSD component with the address
8547         of this new object. The addition of this level of indirection is
8548         required to statically allocate the TSD because the TSD cannot
8549         have variable components.
8550         (Expand_Interface_Conversion): Improve the expanded code.
8551         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
8552
8553         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
8554         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
8555         if we are building static dispatch tables then we must not generate
8556         extra code to register the primitive because the dispatch table will
8557         be built at the end of the library package; otherwise we notify that
8558         we cannot build the static dispatch table.
8559
8560 2007-09-26  Robert Dewar  <dewar@adacore.com>
8561
8562         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
8563         overlays.
8564
8565         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
8566         (Analyze_Record_Representation_Clause): Suppress junk warning for
8567         missing component clause.
8568         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
8569         tests for controlled type overlay to composites with controlled
8570         components.
8571         (Analyze_Record_Representation_Clause): Add reference for component name
8572
8573 2007-09-26  Javier Miranda  <miranda@adacore.com>
8574             Gary Dismukes  <dismukes@adacore.com>
8575
8576         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
8577         for thunks associated with interface types.
8578
8579         * einfo.ads: Improve documentatation of Is_Internal
8580         (Is_Thunk): New attribute applicable to subprograms. True for thunks
8581         associated with interface types.
8582         Extensive comment fixes regarding flags that appear in all entities. The
8583         documentation is now consistent for all such flags (there were a number
8584         of errors in the documentation in this regard).
8585
8586         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
8587
8588         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
8589         of these procedures are passed a function call that already has
8590         build-in-place actuals (testing new flag
8591         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
8592         the case where processing continues.
8593         (Expand_Call): If the call is generated from a thunk body then we
8594         propagate the extra actuals associated with the accessibility
8595         level of the access type actuals.
8596
8597         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
8598         of each extra formal of a protected operation to reference the
8599         corresponding extra formal of the subprogram denoted by the
8600         operation's Protected_Body_Subprogram.
8601         
8602         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
8603         N_Function_Call nodes.
8604
8605 2007-09-26  Robert Dewar  <dewar@adacore.com>
8606
8607         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
8608
8609         * debug.adb: Add d.s flag.
8610
8611 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8612
8613         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
8614         debug variable so that it won't be initialized when pragma
8615         Initialize_Scalars is in effect.
8616
8617 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8618
8619         * freeze.adb (Freeze_Entity): Remove check for preelaborable
8620         initialization of a full view. This is moved to
8621         Analyze_Package_Specification.
8622
8623         * sem_ch7.adb (Analyze_Package_Specification): Add check for
8624         preelaborable initialization of a full view in entity loop.
8625         (Uninstall_Declarations): If entity is a use-visible compilation unit,
8626         its child units are use-visible only if they are visible child units.
8627
8628         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
8629         whether an expression can be used within a type declaration that
8630         requires preelaborable init.
8631         (Check_Components): Replace inline code that does partial checking for
8632         preelaborable default expressions with call to
8633         Is_Preelaborable_Expression.
8634         (Has_Preelaborable_Initialization): In the case of a generic actual
8635         subtype, (that is, Is_Generic_Actual is True), return the result of
8636         applying Has_Preelaborable_Initialization to the generic actual's base
8637         type.
8638
8639 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8640
8641         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
8642         call to Jan_1_Day _Of_Week to optimize its performance.
8643         (Is_Leap): Move the routine to the scope of Week_In_Year.
8644         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
8645         weekday on which January 1 falls of Year - 1 and Year + 1. This function
8646         avoids calling Time_Of and Split, thus making it more efficent.
8647         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
8648
8649         * g-calend.ads (Week_In_Year): Change comment to reflect new
8650         implementation.
8651
8652 2007-09-26  Emmanuel Briot  <briot@adacore.com>
8653
8654         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
8655         Command_Line): New types
8656         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
8657         support for defining how switches can be grouped on a command line (as
8658         is the case for -gnatw... for GNAT), and how simple switches can be
8659         used as aliases for more complex switches (-gnatwa is same as
8660         -gnatwbcef...)
8661         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
8662         (Start, Current_*): New subprograms
8663         Added support for parsing an array of strings in addition to the real
8664         command line.
8665         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
8666          be moved from the body to the private part of the spec.
8667         (*): All subprograms now have an extra parameter with default value to
8668         specify which parser should be used. For backward compatibility, it
8669         defaults to parsing the command line of the application. They were also
8670         modified to properly handle cases where each of the argument does not
8671         start at index 1 (which is always true for Ada.Command_Line, but not
8672         when processing any Argument_List).
8673         (Free): New subprogram
8674         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
8675         Argument): New subprograms
8676         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
8677         special characters like ':', '=',... are now handled in a single place,
8678         which makes the code more extensible eventually.
8679         (Getopt, Full_Switch): When the switch was returned as part of the
8680         special character '*', make sure it is prepended by the switch character
8681         ('-' in general), so that the application knows whether "foo" or "-foo"
8682         was specified on the command line.
8683
8684 2007-09-26  Florian Villoing  <villoing@adacore.com>
8685
8686         * g-dirope.adb (Remove_Dir): In case we are removing directories
8687         recursively, make sure that if an exception is raised during the
8688         processing, the current working directory is reset to its initial
8689         value before propagating the exception.
8690
8691 2007-09-26  Vincent Celier  <celier@adacore.com>
8692
8693         * gnatbind.adb: If there are several ALI files specified and there is
8694         a main program to bind, the first ALI is expected to contain the main
8695         subprogram and the names of the binder generated files will be derived
8696         from the first ALI file name.
8697         (Gnatbind): Fix insertion character in invocation of Error_Msg
8698
8699 2007-09-26  Vincent Celier  <celier@adacore.com>
8700
8701         * gnatcmd.adb (Check_Files): Do not include sources that have been
8702         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
8703
8704 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8705
8706         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
8707         information about each of its index types, following the type
8708         reference for its component type.
8709
8710 2007-09-26  Vincent Celier  <celier@adacore.com>
8711
8712         * make.adb: (Kill): New procedure (__gnat_kill imported)
8713         (Running_Compile, Outstanding_Compiles): Global variables that
8714         were previously local to procedure Compile_Sources.
8715         (Sigint_Intercepted): Send signal SIGINT to all outstanding
8716         compilation processes.
8717
8718         (Gnatmake): If project files are used, create the mapping of all the
8719         sources, so that the correct paths will be found.
8720
8721         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
8722
8723 2007-09-26  Vincent Celier  <celier@adacore.com>
8724
8725         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
8726
8727         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
8728         Replace components Compiler_Min_Options and Binder_Min_Options with
8729         Compiler_Required_Switches and Binder_Required_Switches in record
8730         Language_Config.
8731         Remove components Default_Language and Config in Project_Tree_Data,
8732         no longer used.
8733
8734         * prj-attr.adb: New attributes Required_Switches (<language>) in
8735         packages Compiler and Binder.
8736
8737         * prj-nmsc.adb: Major rewrite of the processing of configuration
8738         attributes for gprbuild. No impact on GNAT tools.
8739
8740         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
8741         process configuration attributes: this is done in Prj.Nmsc.Check.
8742         (Recursive_Process): Make a full copy of packages inherited from project
8743         being extended, instead of a shallow copy.
8744         (Process_Project_Tree_Phase_1): New procedure
8745         (Process_Project_Tree_Phase_1): New procedure
8746         (Process): Implementation now uses the two new procedures
8747
8748         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
8749         from the project config, not the tree config that no longer exists.
8750
8751 2007-09-26  Vincent Celier  <celier@adacore.com>
8752
8753         * Make-lang.in: Update dependencies..
8754
8755 2007-09-26  Vincent Celier  <celier@adacore.com>
8756
8757         * osint.adb, osint.ads: Minor reformatting
8758
8759         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
8760
8761 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8762
8763         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
8764         message to cite use of <> in aggregate component associations rather
8765         than wrongly indicating use of limited aggregates.
8766
8767 2007-09-26  Robert Dewar  <dewar@adacore.com>
8768
8769         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
8770         Address_Taken.
8771
8772 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8773
8774         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
8775         ancestor of the derived type, the operations are inherited from the
8776         primary dispatch table of the parent.
8777         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
8778         when the context is an explicit type conversion.
8779
8780 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8781
8782         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
8783         rule for qualified expressions properly, to detect improper conversions
8784         and resolve some cases of overloading.
8785
8786 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8787
8788         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
8789         proper kind of reference to the primitive operation, for better source
8790         navigation.
8791         (Valid_Conversion): A tagged conversion is legal if both operands are
8792         tagged.
8793
8794 2007-09-26  Robert Dewar  <dewar@adacore.com>
8795
8796         * sem_warn.adb (Check_References): Catch more cases of unreferenced
8797         packages.
8798
8799 2007-09-26  Vincent Celier  <celier@adacore.com>
8800
8801         * snames.adb, snames.ads: Change Include_Option to Include_Switches
8802
8803 2007-09-26  Robert Dewar  <dewar@adacore.com>
8804
8805         * s-wchstw.adb: provide messages for run time unit exceptions
8806
8807         * a-witeio.adb: Minor reformatting
8808
8809         * exp_ch13.adb: Minor reformatting
8810
8811 2007-09-26  Sergey Rybin  <rybin@adacore.com>
8812
8813         * vms_data.ads: Revise gnatmetric qualifiers.
8814         Add qualified for the new gnatbind option '-y'
8815
8816         * gnat_ugn.texi: Revise the gnatmetric section.
8817         Add entry for new gnatbind option '-y'.
8818
8819         * gnat_rm.texi: Minor spelling correction.
8820         Document restriction on overlaying controlled types
8821
8822 2007-09-26  Vincent Celier  <celier@adacore.com>
8823
8824         * makegpr.adb (Link_Executables): Do not fail when the root project has
8825         no sources, but is an extending project.
8826
8827 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
8828
8829         * trans.c: Fix misplaced #define.
8830
8831 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
8832
8833         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
8834         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
8835
8836 2007-09-21  Olivier Hainque  <hainque@adacore.com>
8837
8838         * utils.c (type_for_nonaliased_component_p): Return false for
8839         all AGGREGATE_TYPEs.
8840
8841 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
8842
8843         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
8844         object covered by 13.3(19) volatile.
8845
8846 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
8847
8848         PR ada/26797
8849         PR ada/32407
8850         * utils.c (unchecked_convert): Use a subtype as the intermediate type
8851         in the special VIEW_CONVERT_EXPR case.
8852
8853 2007-09-12  Robert Dewar  <dewar@adacore.com>
8854
8855         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
8856
8857         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
8858         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
8859         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
8860         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
8861         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
8862         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
8863         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
8864         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
8865         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
8866         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
8867         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
8868         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
8869         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
8870         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
8871         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
8872         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
8873         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
8874         pragma Compiler_Unit and adds it to relevant library units.
8875
8876 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
8877
8878         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
8879         a box need not correspond to any component.
8880
8881 2007-09-12  Robert Dewar  <dewar@adacore.com>
8882
8883         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
8884         the tasking version of the Ada run time when foreign threads are
8885         present and there are no explicit Ada tasks or tasking constructs.
8886
8887         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
8888
8889 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
8890
8891         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
8892         the usage of switch -y.
8893
8894         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
8895         when switch -y is present.
8896
8897         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
8898         leap seconds in Ada.Calendar and its children.
8899
8900 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
8901
8902         * a-extiti.ads (Timer): The discriminant is a "not null access
8903         constant" in the Reference Manual.
8904         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
8905
8906 2007-09-12  Robert Dewar  <dewar@adacore.com>
8907
8908         * a-swuwha.adb: Remove junk RM header
8909
8910 2007-09-12  Vincent Celier  <celier@adacore.com>
8911
8912         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
8913         indicator
8914
8915         * g-bytswa.ads: Minor reformatting
8916
8917 2007-09-12  Thomas Quinot  <quinot@adacore.com>
8918
8919         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
8920         Add new constant Thread_Blocking_IO, always True by default, set False
8921         on a per-runtime basis.
8922         (Need_Netdb_Buffer): New constant.
8923
8924 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
8925
8926         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
8927         Added renames for corresponding functions in System.Partition_Interface.
8928
8929 2007-09-12  Doug Rupp  <rupp@adacore.com>
8930
8931         * Makefile.in: Remove VMS specific System.CRTL packages which are no
8932         longer needed.
8933
8934         * s-crtl-vms64.ads: Removed.
8935
8936 2007-09-12  Olivier Hainque  <hainque@adacore.com>
8937
8938         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
8939         with discriminant constraints, generalize the code for BIT_FIELDs
8940         to PACKED fields of constant size and propagate DECL_PACKED.
8941
8942 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
8943
8944         * decl.c (array_type_has_nonaliased_component): New predicate.
8945         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
8946         set the TYPE_NONALIASED_COMPONENT flag on the type.
8947         <E_Array_Subtype>: Likewise.
8948         * gigi.h (type_for_nonaliased_component_p): Declare.
8949         * utils.c (type_for_nonaliased_component_p): New predicate.
8950         (create_field_decl): Invoke the above predicate to set the
8951         DECL_NONADDRESSABLE_P flag on the field.
8952
8953 2007-09-11  Javier Miranda  <miranda@adacore.com>
8954
8955         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
8956         in library level record type entities if we are generating statically
8957         allocated dispatch tables.
8958
8959         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
8960         importing/exporting the _tag declaration by new code
8961         importing/exporting the dispatch table wrapper. This change allows us
8962         to statically allocate of the TSD.
8963         (Make_DT.Export_DT): New procedure.
8964         (Build_Static_DT): New function.
8965         (Has_DT): New function.
8966
8967         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
8968         True_Constant and Current_Value. Required to statically
8969         allocate the dispatch tables.
8970         (Check_Allocator): Make function iterative instead of recursive.
8971         Also return inner allocator node, when present, so that we do not have
8972         to look for that node again in the caller.
8973
8974 2007-09-11  Jan Hubicka  <jh@suse.cz>
8975
8976         * misc.c (gnat_expand_body): Kill.
8977         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
8978
8979 2007-09-10  Robert Dewar  <dewar@adacore.com>
8980
8981         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
8982         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8983         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8984         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
8985         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
8986         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
8987         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
8988         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
8989         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
8990         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
8991         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
8992         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
8993         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
8994         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
8995         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8996         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
8997         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
8998         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8999         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9000         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9001         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9002         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9003         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9004         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9005         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9006         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9007         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9008         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9009         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9010         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9011         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9012         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9013         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9014         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9015         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9016         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9017         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9018         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9019         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9020         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9021         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9022         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9023         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9024         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9025         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9026         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9027         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9028         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9029         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9030         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9031         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9032         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9033         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9034         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9035         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9036         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9037         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9038         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9039         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9040         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9041         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9042         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9043         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9044         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9045         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9046         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9047         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9048         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9049         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9050         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9051         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9052         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9053         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9054         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9055         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9056         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9057         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9058         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9059         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9060         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9061         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9062         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9063         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9064
9065 2007-09-10  Emmanuel Briot  <briot@adacore.com>
9066
9067         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9068         classes ("[]").
9069
9070 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
9071
9072         * adaint.c (__gnat_translate_vms): new function.
9073
9074 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
9075             Thomas Quinot  <quinot@adacore.com>
9076
9077         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9078         create an abstract subprogram in the case of 'Input. For 'Output we now
9079         create a real spec/body when the type is abstract, since it can
9080         potentially be called.
9081         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9082         body for 'Output when the type is abstract (only the creation of the
9083         body for 'Input is excluded when the type is abstract).
9084         (Stream_Operation_OK): Add an additional condition in the return
9085         statement, so that False will be returned for TTS_Stream_Input if the
9086         associated tagged type is an abstract extension. Add comments for
9087         return statement.
9088         (Expand_N_Object_Declaration): For the case of a shared passive
9089         variable, insert init proc call only after the shared variable
9090         procedures have been processed, because the IP call needs to undergo
9091         shared passive variable reference expansion, which requires these
9092         procedures to be available (and elaborated).
9093
9094 2007-09-10  Vincent Celier  <celier@adacore.com>
9095
9096         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
9097         parameter Runtime_Project.
9098
9099 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9100
9101         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
9102         given a box association, the type of the component is discriminated,
9103         and the value of the discriminant is the discriminant of the enclosing
9104         type, retrieve its value from the aggregate itself, where it must have
9105         been supplied.
9106
9107         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
9108         to remove other spurious ambiguities on arithmetic operations involving
9109         literals and addresses, on systems where Address is a visible integer
9110         type, when the operator is called in functional notation.
9111         (Try_Primitive_Operation): Within an instance, a call in prefixed form
9112         is legal when the types match, even if the operation is currently
9113         hidden.
9114
9115 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9116
9117         * sem_ch12.adb (Build_Local_Package): A formal package with no
9118         associations is legal if all formals have defaults. It is not
9119         equivalent to a formal declared with a box.
9120
9121 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9122
9123         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
9124
9125 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9126
9127         * gnat_ugn.texi: Add description of the new '-lratio' option
9128         Update 7.3.1 section about availability of the feature.
9129
9130 2007-09-10  Thomas Quinot  <quinot@adacore.com>
9131
9132         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
9133         inserted node.
9134
9135 2007-09-10  Olivier Hainque  <hainque@adacore.com>
9136
9137         * Makefile.in: (mips-irix section): Activate build of libgmem.
9138
9139 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9140
9141         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
9142         x87 registers.
9143
9144 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9145
9146         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
9147         a debug renaming declaration specially.
9148
9149 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9150
9151         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
9152         which a constant renaming is treated as a normal object declaration.
9153         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
9154         the N_Indexed_Component case.
9155         <N_Indexed_Component>: Fall through to above case.
9156         <N_Object_Renaming_Declaration>: Return true for all composite types.
9157
9158 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9159
9160         * decl.c (make_packable_type): If the new type has been given BLKmode,
9161         try again to get an integral mode for it.
9162
9163 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9164
9165         Re-apply accidentally reverted change:
9166
9167         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9168
9169         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9170         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
9171         and _Unwind_SWord with _sleb128_t.
9172
9173 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9174
9175         * trans.c (convert_with_check): Update call to real_2expN.
9176
9177 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
9178
9179         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
9180         * utils.c (end_subprog_body): Likewise.
9181
9182 2007-09-03  Nick Clifton  <nickc@redhat.com>
9183
9184         * Make-lang.in: Change copyright header to refer to version 3 of
9185         the GNU General Public License and to point readers at the
9186         COPYING3 file and the FSF's license web page.
9187         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
9188         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
9189         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
9190         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
9191         Likewise.
9192
9193 2007-08-31  Vincent Celier  <celier@adacore.com>
9194
9195         PR ada/4720
9196
9197         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
9198         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
9199         (Check_Version_And_Help): New procedure in package Switch to process
9200         switches --version and --help.
9201         Use Check_Version_And_Help in GNAT tools
9202
9203         * make.adb:  Ditto.
9204         (Compile_Sources): Make sure that sources that are "excluded" are not
9205         compiled.
9206         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
9207         project file is used.
9208         (Version_Switch): Remove, moved to Switch
9209         (Help_Switch): Remove, moved to Switch
9210         (Display_Version): Remove, moved to Switch
9211
9212         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
9213         package Switch to process switches --version and --help.
9214         (Display_Version): New procedure
9215
9216         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
9217
9218 2007-08-31  Javier Miranda  <miranda@adacore.com>
9219
9220         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
9221         internal tags.
9222
9223 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9224
9225         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
9226         (Mark_Non_Null): If the node for which we just generated an access check
9227         is a reference to an *in* parameter and the reference appears in the
9228         declarative part of a subprogram body, mark the node as known non null.
9229
9230 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9231
9232         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
9233         structure of E_Exception to reflect the new flag.
9234         (Is_Raised, Set_Is_Raised): New inlined routines.
9235         Update the usage of available flag to reflect the addition of Is_Raised.
9236         (Is_Raised, Set_Is_Raised): Bodies of new routines.
9237         (Write_Entity_Flags): Write the status of flag Is_Raised.
9238         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
9239         spurious ambiguities when integer literals appear in the context of an
9240         address type that is a visible integer type.
9241
9242         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
9243         exceptions never being raised.
9244         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
9245         explicitly raised.
9246
9247 2007-08-31  Javier Miranda  <miranda@adacore.com>
9248
9249         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
9250         statement when compiling under restriction No_Exceptions_Proparation.
9251
9252 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9253
9254         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
9255         initialization aggregate for the type, generate itype references for
9256         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
9257
9258 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
9259
9260         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
9261         library-level package renaming, pass the declaration associated with
9262         the renaming's special debug variable to Qualify_Entity_Names to ensure
9263         that its encoded name is properly qualified.
9264
9265         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
9266         occurring in the list of entities to qualify, and do not attempt to
9267         traverse an entity list in that case. Variables associated with
9268 `       library-level package renamings can now occur in the table.
9269
9270         * exp_dbug.ads: Revise documentation of the encoding for renaming
9271         declarations.
9272
9273 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9274
9275         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
9276         access type points to an unconstrained array.
9277
9278 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9279
9280         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
9281         conversion.
9282
9283         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
9284         simple redundant qualifications. The check is performed whenever the
9285         expression is a non-overloaded identifier.
9286         (Resolve_Type_Conversion): Enchance the redundant type conversion check
9287         to include loop parameters.
9288         (Valid_Conversion): Avoid generation of spurious error message.
9289
9290 2007-08-31  Bob Duff  <duff@adacore.com>
9291
9292         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
9293         concatenations of string literals into a single literal, in order to
9294         avoid very deep recursion in the front end, which was causing stack
9295         overflow.
9296
9297         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
9298         string, and the right operand is a string literal (the case of "" &
9299         "..."), optimize by avoiding copying the right operand -- just use the
9300         value of the right operand directly.
9301
9302         * stringt.adb (Store_String_Chars): Optimize by growing the
9303         String_Chars table all at once, rather than appending characters one by
9304         one.
9305         (Write_String_Table_Entry): If the string to be printed is very long,
9306         just print the first few characters, followed by the length. Otherwise,
9307         doing "pn(n)" in the debugger can take an extremely long time.
9308
9309         * sem_prag.adb (Process_Interface_Name): Replace loop doing
9310         Store_String_Char with Store_String_Chars.
9311
9312 2007-08-31  Vincent Celier  <celier@adacore.com>
9313
9314         * prj-attr.adb: Add new attribute Excluded_Source_Files
9315
9316         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
9317         Locally_Removed_Files.
9318
9319         * snames.ads, snames.adb: New standard name Excluded_Source_Files
9320
9321 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9322
9323         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
9324         clauses of subunits, ignore limited_with_clauses that are illegal and
9325         have not been fully analyzed.
9326
9327 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9328
9329         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
9330         flag, for effiency. It is called when analyzing arithmetic operators
9331         and also for actuals in calls that are universal_integers. The flag is
9332         set for the predefined type address, and for any type or subtype
9333         derived from it.
9334
9335         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
9336         Universal_Integer, when the formal is a descendent of address and the
9337         call appears in user code.
9338         (Analyze_Selected_Component): if the prefix is a private extension, the
9339         tag component is visible.
9340
9341         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
9342         entity flag.
9343
9344 2007-08-31  Robert Dewar  <dewar@adacore.com>
9345
9346         * s-fileio.adb (Open): Normalize file name to lower case in non-case
9347         sensitive file name systems to avoid unexpected mismatch in Vista.
9348
9349 2007-08-31  Vincent Celier  <celier@adacore.com>
9350
9351         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
9352
9353 2007-08-31  Vincent Celier  <celier@adacore.com>
9354
9355         * symbols-vms.adb (Initialize): Read symbol files with continuation
9356         lines
9357         (Finalize): If symbol is long, split the line
9358
9359 2007-08-31  Vincent Celier  <celier@adacore.com>
9360
9361         * fmap.ads: Minor comment updates
9362
9363 2007-08-31  GNAT Script  <nobody@adacore.com>
9364
9365         * Make-lang.in: Makefile automatically updated
9366
9367 2007-08-31  Bob Duff  <duff@adacore.com>
9368
9369         * sinfo.ads: Minor comment fix.
9370
9371 2007-08-31  Thomas Quinot  <quinot@adacore.com>
9372
9373         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
9374         with implementation.
9375         Documentation cleanup only.
9376
9377 2007-08-31  Sergey Rybin  <rybin@adacore.com>
9378
9379         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
9380         gnatpp '--separate-stmt-name' option.
9381         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
9382         option.
9383
9384         * gnat_ugn.texi: Add description for the new gnatpp
9385         '--separate-stmt-name' and '--use-on-new-line' options.
9386
9387 2007-08-31  Ben Elliston  <bje@au.ibm.com>
9388
9389         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9390         when compiling for powerpc64-*-linux.
9391         * system-linux-ppc64.ads: New file.
9392
9393 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
9394
9395         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
9396         NetBSD.
9397
9398 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9399
9400         * misc.c (gnat_type_max_size): Constify.
9401
9402 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9403
9404         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
9405         associated with Standard_Debug_Renaming_Type, to be used as the type of
9406         the special variables whose names provide debugger encodings for
9407         renaming declarations.
9408
9409         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
9410         (Set_Debug_Renaming_Link): Change to set Node25.
9411         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
9412         (Write_Field25_Name): Add case for E_Variable to output
9413         "Debug_Renaming_Link".
9414         (Write_Field23_Name): Correct the output string for "Limited_View".
9415
9416         * exp_dbug.adb: Add with and use of Tbuild.
9417         (Debug_Renaming_Declaration): Replace creation of an enumeration type
9418         and literal with creation of a variable of type
9419         Standard_Debug_Renaming_Type whose name encodes both the renamed object
9420         and the entity of the renaming declaration.
9421         (Qualify_Entity_Name): Add the delayed qualification of the entity name
9422         part of the name of a variable that has a Debug_Renaming_Link.
9423
9424         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
9425         special type to be associated with variables that provide debugger
9426         encodings for renaming declarations.
9427
9428 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9429             Ed Schonberg  <schonberg@adacore.com>
9430             Javier Miranda  <miranda@adacore.com>
9431
9432         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
9433         ancestor part given by an aggregate to test for an unchecked conversion,
9434         since this can occur in some cases when the ancestor part is a function
9435         call, and we don't want to fall into the recursive call to this
9436         procedure in that case.
9437
9438         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
9439         stream attributes on limited types to account for user-specified
9440         attributes as well as whether Input (resp. Output) becomes available
9441         due to Read (resp. Write) being available for the type. Change Boolean
9442         variable to the more accurate name
9443         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
9444         double-"not" predicate at beginning of return statement to more
9445         understandable form.
9446
9447         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
9448         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
9449         in a block statement and use that as the first statement of the
9450         expanded return rather than incorrectly using the handled sequence as
9451         the first statement.
9452
9453         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
9454         operation, generate an explicit freeze node for it rather than
9455         generating extra formals, to ensure that gigi has the proper order of
9456         elaboration for anonymous subtypes in the signature of the subprograms.
9457         (Build_In_Place_Formal): Move assertion to beginning of loop.
9458         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
9459         applied to a function call (occurs for some cases of 'Input).
9460         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
9461         applied to a function call (occurs for some cases of 'Input).
9462
9463         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
9464         2005, generate an extended return statement enclosing the result object
9465         and 'Read call.
9466
9467         * freeze.adb (Freeze_Record_Type): Extend the current management of
9468         components that are access type with an allocator as default value: add
9469         missing support to the use of qualified expressions of the
9470         allocator (which also cause freezing of the designated type!)
9471         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
9472         dispatching operation, since extra formals may be needed by calls to
9473         build-in-place functions (such as stream 'Input).
9474
9475         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
9476         formals for 'Constrained and accessibility level in the case of a
9477         predefined dispatching operation.
9478
9479         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
9480         point, no need to find the parent node.
9481
9482 2007-08-16  Javier Miranda  <miranda@adacore.com>
9483
9484         * exp_attr.adb (Attribute_Priority): Add missing support for entries
9485         and entry barriers.
9486
9487 2007-08-16  Javier Miranda  <miranda@adacore.com>
9488
9489         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
9490         is not really required and can introduce regression with the debugger.
9491         The original problem is fixed with the patch written for checks.adb.
9492
9493 2007-08-16  Thomas Quinot  <quinot@adacore.com>
9494
9495         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
9496         Range_Check on Allocated_Table.
9497
9498 2007-08-16  Vincent Celier  <celier@adacore.com>
9499
9500         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
9501         Including_Non_Switch set to False.
9502         (Gnatmake): For the compiler, call Test_If_Relative_Path with
9503         Including_Non_Switch set to False.
9504
9505         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
9506         parameter Including_Non_Switch, defaulted to True. When
9507         Including_Non_Switch is False, options that are not switches and
9508         appear as relative path are not converted to absolute paths.
9509
9510 2007-08-16  Nicolas Roche  <roche@adacore.com>
9511
9512         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
9513         makefiles
9514
9515         * Make-lang.in: Update dependencies
9516
9517 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
9518
9519         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
9520         currently inspected is a selected component, retrieve the entity of
9521         its selector.
9522         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
9523         from the immediate ancestor of Main_Unit_Entity.
9524         (Install_Limited_Withed_Unit): Do not install the limited view of
9525         package P if P is reachable through an ancestor chain from package C
9526         and C also has a with clause for P in its body.
9527         (Has_Limited_With_Clause): New routine.
9528         (Has_With_Clause): New routine.
9529
9530 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
9531
9532         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
9533         generic for an enclosing instance is a global reference, even though
9534         its scope is the enclosing instance.
9535
9536 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9537             Javier Miranda  <miranda@adacore.com>
9538
9539         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
9540         initialize a limited object.
9541         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
9542         13/2 and 14/2.
9543         Make sure Has_Complex_Representation is inherited by derived type.
9544
9545 2007-08-16  Robert Dewar  <dewar@adacore.com>
9546
9547         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
9548         exception case
9549
9550 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
9551
9552         * sem_disp.adb (Check_Dispatching_Operation): If the operation
9553         implements an operation inherited from a progenitor interface, verify
9554         that they are subtype-conformant.
9555
9556 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
9557             Bob Duff  <duff@adacore.com>
9558             Nicolas Setton  <setton@adacore.com>
9559
9560         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
9561         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
9562         the statement which is being resolved comes from a predefined library
9563         unit, all non-predefined library interpretations are skipped.
9564         (Resolve_Op_Concat): If string concatenation was folded in the parser,
9565         but the "&" is user defined, give an error, because the folding would
9566         be wrong.
9567
9568         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
9569         the parser has folded a long sequence of concatenations of string
9570         literals.
9571
9572         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
9573         and "JMP_BUF" variables as artificial.
9574         (N_String_Literal): Do not use alloca for very long string literals. Use
9575         xmalloc/free instead. Otherwise the stack might overflow.
9576
9577         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
9578         compiler.
9579
9580 2007-08-16  Vincent Celier  <celier@adacore.com>
9581
9582         * vms_conv.adb (Process_Argument): Ensure that project related options
9583         are not put in the -cargs section when using GNAT COMPILE.
9584
9585 2007-08-16  Robert Dewar  <dewar@adacore.com>
9586
9587         * gnat_ugn.texi: Add note on preprocessing (output file not written)
9588
9589 2007-08-16  Thomas Quinot  <quinot@adacore.com>
9590
9591         * a-tags.adb: Minor reformatting.
9592
9593 2007-08-16  Bob Duff  <duff@adacore.com>
9594
9595         * sem_type.ads, sem_ch4.adb: Minor reformatting.
9596
9597 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9598
9599         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
9600         s-osinte-interix.ads, system-interix.ads: Removed.
9601
9602 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9603
9604         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
9605         calls to Check_Within_Time_Bounds.
9606         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
9607         (Difference): Account for possible rounding of the resulting difference
9608
9609 2007-08-14  Robert Dewar  <dewar@adacore.com>
9610
9611         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
9612         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
9613         s-osinte-solaris.adb, s-osinte-solaris.ads,
9614         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
9615
9616         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
9617         switch -gnatyS. Enable -gnatyS in GNAT style check mode
9618
9619 2007-08-14  Robert Dewar  <dewar@adacore.com>
9620             Ed Schonberg  <schonberg@adacore.com>
9621
9622         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
9623         Suppress unmodified in-out parameter warning in some cases
9624         This patch is a also fairly significant change to the way suppressible
9625         checks are handled.
9626
9627         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
9628         needed for access to concurrent record types generated by the expander.
9629         (Generate_Range_Check): When generating a temporary to capture the
9630         value of a conversion that requires a range check, set the type of the
9631         temporary before rewriting the node, so that the type is always
9632         properly placed for back-end use.
9633         (Apply_Float_Conversion_Check): Handle case where the conversion is
9634         truncating.
9635         (Get_Discriminal): Code reformatting. Climb the scope stack looking
9636         for a protected type in order to examine its discriminants.
9637
9638 2007-08-14  Robert Dewar  <dewar@adacore.com>
9639             Gary Dismukes  <dismukes@adacore.com>
9640             Ed Schonberg  <schonberg@adacore.com>
9641             Thomas Quinot  <quinot@adacore.com>
9642
9643         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
9644         a-stwisu.adb, a-strsup.adb: Fix warnings for range
9645         tests optimized out.
9646
9647         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
9648         (Get_Allocator_Final_List): For the case of an anonymous access type
9649         that has a specified Associated_Final_Chain, do not go up to the
9650         enclosing scope.
9651         (Expand_N_Type_Conversion): Test for the case of renamings of access
9652         parameters when deciding whether to apply a run-time accessibility
9653         check.
9654         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
9655         aggregate code before allocator, and ahead of declaration for
9656         temporary, to prevent access before elaboration when the allocator is
9657         an actual for an access parameter.
9658         (Expand_N_Type_Conversion): On an access type conversion involving an
9659         access parameter, do not apply an accessibility check when the
9660         operand's original node was an attribute other than 'Access. We now
9661         create access conversions for the expansion of 'Unchecked_Access and
9662         'Unrestricted_Access in certain cases and clearly accessibility should
9663         not be checked for those.
9664
9665         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
9666         includes a type conversion of a packed component that has been expanded,
9667         recover the original expression for the object, and use this expression
9668         in the post-call assignment statement, so that the assignment is made
9669         to the object and not to a back-end temporary.
9670         (Freeze_Subprogram): In case of primitives of tagged types not defined
9671         at the library level force generation of code to register the primitive
9672         in the dispatch table. In addition some code reorganization has been
9673         done to leave the implementation clear.
9674         (Expand_Call): When expanding an inherited implicit conversion,
9675         preserve the type of the inherited function after the intrinsic
9676         operation has been expanded.
9677
9678         * exp_ch2.ads, exp_ch2.adb
9679         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
9680         of an entry formal appearing in an assignment statement does not assign
9681         to the formal.
9682         (Expand_Current_Value): Instead of calling a routine to determine
9683         whether the prefix of an attribute reference should be optimized or
9684         not, prevent the optimization of such prefixes all together.
9685
9686         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
9687         component whose prefix is known to be of an access type is an implicit
9688         dereference and does not assign to the prefix.
9689
9690 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9691             Robert Dewar  <dewar@adacore.com>
9692
9693         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
9694         itype is visited, make an entry into table to link associated node and
9695         new itype.
9696         Add comments and correct harmless error in Build_NCT_Hash_Tables
9697         (Array_Aggr_Subtype): Associate each itype created for an index type to
9698         the corresponding range construct, and not to the aggregate itself. to
9699         maintain a one-to-one correspondence between itype and its associated
9700         node, to prevent errors when complex expression is copied.
9701         Fix mishandling of multiple levels of parens
9702
9703         * sem_aggr.adb: Create a limited view of an incomplete type, to make
9704         treatment of limited views uniform for all visible declarations in a
9705         limited_withed package.
9706         (New_Copy_Tree): If hash table is being used and itype is visited,
9707         make an entry into table to link associated node and new itype.
9708         (Resolve_Record_Aggregate): Do not add an others box association for a
9709         discriminated record component that has only discriminants, when there
9710         is a box association for the component itself.
9711
9712         * par-ch4.adb: Fix mishandling of multiple levels of parens
9713
9714 2007-08-14  Robert Dewar  <dewar@adacore.com>
9715
9716         * comperr.adb: Fix problem with suppressing warning messages from gigi
9717
9718         * erroutc.ads, erroutc.adb, errout.ads, 
9719         errout.adb (Write_Eol): Remove trailing spaces before writing the line
9720         (Write_Eol_Keep_Blanks): New procedure to write a line, including
9721         possible trailing spaces.
9722         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9723         Fix problem with suppressing warning messages from back end
9724         Improve handling of deleted warnings
9725
9726         * gnat1drv.adb: 
9727         Fix problem with suppressing warning messages from back end
9728         Handle setting of Static_Dispatch_Tables flag.
9729
9730         * prepcomp.adb: 
9731         Fix problem with suppressing warning messages from back end
9732
9733         * exp_intr.adb: Improve handling of deleted warnings
9734
9735 2007-08-14  Robert Dewar  <dewar@adacore.com>
9736
9737         * debug.adb: Improve -gnatdI to cover all cases of serialization
9738         Add documentation of dZ, d.t
9739
9740         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
9741         serialization.
9742         (Sprint_Node_Actual): Generate new output associated with implicit
9743         importation and implicit exportation of object declarations.
9744
9745 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9746             Robert Dewar  <dewar@adacore.com>
9747             Javier Miranda  <miranda@adacore.com>
9748             Gary Dismukes  <dismukes@adacore.com>
9749
9750         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
9751         to make treatment of limited views uniform for all visible declarations
9752         in a limited_withed package.
9753         Improve warnings for in out parameters
9754         (Set_Related_Interaface/Related_Interface): Allow the use of this
9755         attribute with constants.
9756         (Write_Field26_Name): Handle attribute Related_Interface in constants.
9757         Warn on duplicate pragma Preelaborable_Initialialization
9758
9759         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
9760         generation of a freezing node to ensure proper management of null
9761         excluding access types in the backend.
9762         (Create_Extra_Formals): Test base type of the formal when checking for
9763         the need to add an extra accessibility-level formal. Pass the entity E
9764         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
9765         originally being done in a couple of cases), to ensure that the
9766         Extra_Formals list gets set on the entity E when the first entity is
9767         added.
9768         (Conforming_Types): Add missing calls to Base_Type to the code that
9769         handles anonymous access types. This is required to handle the
9770         general case because Process_Formals builds internal subtype entities
9771         to handle null-excluding access types.
9772         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9773         functions that need it, even when not marked Requires_Overriding.
9774         Improve warnings for in out parameters
9775         (Analyze_Function_Return): Warn for disallowed null return
9776         Warn on return from procedure with unset out parameter
9777         Ensure consistent use of # in error messages
9778         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
9779         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
9780         the implicit conversion of the expression done for anonymous access
9781         types. This is required to generate the code of the null excluding
9782         check (if required).
9783
9784         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
9785         A formal parameter is never publicly referenceable outside of its body.
9786         (Check_References): For an unreferenced formal parameter in an accept
9787         statement, use the same warning circuitry as for subprogram formal
9788         parameters.
9789         (Warn_On_Unreferenced_Entity): New subprogram, taken from
9790         Output_Unreferenced_Messages, containing the part of that routine that
9791         is now reused for entry formals as described above.
9792         (Goto_Spec_Entity): New function
9793         (Check_References): Do not give IN OUT warning for dispatching operation
9794         Improve warnings for in out parameters
9795         (Test_Ref): Check that the entity is not undefinite before calling
9796         Scope_Within, in order to avoid infinite loops.
9797         Warn on return from procedure with unset out parameter
9798         Improved warnings for unused variables
9799
9800 2007-08-14  Robert Dewar  <dewar@adacore.com>
9801             Javier Miranda  <miranda@adacore.com>
9802             Gary Dismukes  <dismukes@adacore.com>
9803
9804         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
9805         (Expand_N_Attribute_Reference): Further unify the handling of the
9806         three forms of access attributes, using common code now for all three
9807         cases. Add a test for the case of applying an access attribute to
9808         an explicit dereference when the context is an access-to-interface
9809         type. In that case we need to apply the conversion to the prefix
9810         of the explicit dereference rather than the prefix of the attribute.
9811         (Attribute_Version, UET_Address): Set entity as internal to ensure
9812         proper dg output of implicit importation.
9813         (Expand_Access_To_Type): Removed.
9814         (Expand_N_Attribute_Reference): Merge the code from the three cases
9815         of access attributes, since the processing is largely identical for
9816         these cases. The substantive fix here is to process the case of a
9817         type name prefix (current instance case) before handling the case
9818         of interface prefixes.
9819
9820 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9821             Ed Schonberg  <schonberg@adacore.com>
9822             Javier Miranda  <miranda@adacore.com>
9823             Robert Dewar  <dewar@adacore.com>
9824
9825         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
9826         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
9827         type that is an anonymous access to controlled object, establish
9828         an associated finalization chain to avoid corrupting the global
9829         finalization list when a dynamically allocated object designated
9830         by such a component is deallocated.
9831         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9832         functions that need it, even when not marked Requires_Overriding.
9833         (Initialize_Tag): Replace call to has_discriminants by call to
9834         Is_Variable_Size_Record in the circuitry that handles the
9835         initialization of secondary tags.
9836         (Is_Variable_Size_Record): New implementation.
9837         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
9838         Suppress_Initialization pragma for a derived type.
9839         (Is_Variable_Size_Record): New subprogram.
9840         (Build_Offset_To_Top_Functions): New implementation that simplifies the
9841         initial version of this routine and also fixes problems causing
9842         incomplete initialization of the table of interfaces.
9843         (Build_Init_Procedure): Improve the generation of code to initialize the
9844         the tag components of secondary dispatch tables.
9845         (Init_Secondary_Tags): New implementation that simplifies the previous
9846         version of this routine.
9847         (Make_DT): Add parameter to indicate when type has been frozen by an
9848         object declaration, for diagnostic purposes.
9849         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
9850         diagnose attemps to freeze a subprogram when some untagged type of its
9851         profile is a private type whose full view has not been analyzed yet.
9852         (Freeze_Array_Type): Generate init proc for packed array if either
9853         Initialize or Normalize_Scalars is set.
9854         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
9855         constructing the new profile, copy the null_exclusion indicator for each
9856         parameter, to ensure full conformance of the new body with the spec.
9857
9858         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
9859         Create wrappers for constructor functions that need it, even when not
9860         marked Requires_Overriding.
9861         (Covers): Handle properly designated types of anonymous access types,
9862         whose non-limited views are themselves incomplete types.
9863         (Add_Entry): Use an entity to store the abstract operation which hides
9864         an interpretation.
9865         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
9866         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
9867         initialization aggregate.
9868         (Function_Interp_May_Be_Hidden): Rename to
9869         Function_Interp_Has_Abstract_Op.
9870         (Has_Compatible_Type): Remove machinery that skips interpretations if
9871         they are labeled as potentially hidden by an abstract operator.
9872         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
9873         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
9874         (Write_Overloads): Output the abstract operator if present.
9875         (Add_Entry): Before inserting a new entry into the interpretation table
9876         for a node, determine whether the entry will be disabled by an abstract
9877         operator.
9878         (Binary_Op_Interp_May_Be_Hidden): New routine.
9879         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
9880         aggregate.
9881         (Function_Interp_May_Be_Hidden): New routine.
9882         (Has_Compatible_Type): Do not consider interpretations hidden by
9883         abstract operators when trying to determine whether two types are
9884         compatible.
9885         (Has_Hidden_Interp): New routine.
9886         (Set_May_Be_Hidden_Interp): New routine.
9887         (Write_Overloads): Write the status of flag May_Be_Hidden.
9888
9889 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9890             Javier Miranda  <miranda@adacore.com>
9891
9892         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
9893         types declared in the declarative part of a nested package body or in
9894         the proper body of a stub.
9895         (Set_All_DT_Position): Add missing check to avoid wrong assignation
9896         of the same dispatch table slot to renamed primitives.
9897         (Make_Select_Specific_Data_Table): Handle private types.
9898         (Tagged_Kind): Handle private types.
9899         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
9900         output of implicit importation and exportation.
9901         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
9902         first formal of the thunk is always associated with the controlling
9903         type. In addition perform the following code cleanup: remove formal
9904         Thunk_Alias which is no longer required, cleanup evaluation of the
9905         the controlling type, and update the documentation.
9906         Replace occurrence of Default_Prim_Op_Count by
9907         Max_Predef_Prims. Addition of compile-time check to verify
9908         that the value of Max_Predef_Prims is correct.
9909         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
9910         (Make_DT): Add parameter to indicate when type has been frozen by an
9911         object declaration, for diagnostic purposes.
9912         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
9913         construction of statically allocated dispatch tables.
9914         (Make_DT): In case of library-level tagged types export the declaration
9915         of the primary tag. Remove generation of tags (now done by Make_Tags).
9916         Additional modifications to handle non-static generation of dispatch
9917         tables. Take care of building tables for asynchronous interface types
9918         (Make_Tags): New subprogram that generates the entities associated with
9919         the primary and secondary tags of Typ and fills the contents of Access_
9920         Disp_Table. In case of library-level tagged types imports the forward
9921         declaration of the primary tag that will be declared later by Make_DT.
9922         (Expand_Interface_Conversion): In case of access types to interfaces
9923         replace an itype declaration by an explicit type declaration to avoid
9924         problems associated with the scope of such itype in transient blocks.
9925
9926 2007-08-14  Robert Dewar  <dewar@adacore.com>
9927             Ed Schonberg  <schonberg@adacore.com>
9928             Javier Miranda  <miranda@adacore.com>
9929
9930         * exp_util.ads, exp_util.adb: 
9931         This patch replaces a number of occurrences of explicit tests for N_Null
9932         with calls to Known_Null. This improves tracking of null values, since
9933         Known_Null also catches null constants, and variables currently known to
9934         be null, so we get better tracking.
9935         (Ensure_Defined): create an itype reference only in the scope of the
9936         itype.
9937         (Side_Effect_Free): A selected component of an access type that
9938         denotes a component with a rep clause must be treated as not
9939         side-effect free, because if it is part of a linked structure its
9940         value may be affected by a renaming.
9941         (Expand_Subtype_From_Expr): For limited objects initialized with build
9942         in place function calls, do nothing; otherwise we prematurely introduce
9943         an N_Reference node in the expression initializing the object, which
9944         breaks the circuitry that detects and adds the additional arguments to
9945         the called function. Bug found working in the new patch for statically
9946         allocated dispatch tables.
9947         (Is_Library_Level_Tagged_Type): New subprogram.
9948         (Remove_Side_Effects): If the expression of an elementary type is an
9949         operator treat as a function call.
9950         (Make_Literal_Range): If the index type of the array is not integer, use
9951         attributes properly to compute the constraint on the resulting aggregate
9952         which is a string.
9953
9954         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
9955         class-wide type whose base type is an incomplete private type, leave
9956         class-wide type unfrozen so that freeze nodes can be generated
9957         properly at a later point.
9958         (Freeze_Entity, array case): Handle case of pragma Pack and component
9959         size attributre clause for same array.
9960
9961 2007-08-14  Vincent Celier  <celier@adacore.com>
9962
9963         * prj.ads, prj.adb: Update Project Manager to new attribute names for
9964         gprbuild.
9965         Allow all valid declarations in configuration project files
9966         (Reset): Initialize all tables and hash tables in the project tree data
9967         Major update of the Project Manager and of the project aware tools,
9968         including gprmake, so that the same sources in the GNAT repository
9969         can be used by gprbuild.
9970         (Slash_Id): Change type to be Path_Name_Type
9971         (Slash): Return a Path_Name_Type instead of a File_Name_Type
9972
9973         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
9974         gprbuild.
9975         Update Project Manager to new attribute names for ghprbuild
9976         Allow all valid declarations in configuration project files
9977         Major update of the Project Manager and of the project aware tools,
9978         including gprmake, so that the same sources in the GNAT repository
9979         can be used by gprbuild.
9980
9981         * prj-com.ads: 
9982         Major update of the Project Manager and of the project aware tools,
9983         including gprmake, so that the same sources in the GNAT repository
9984         can be used by gprbuild.
9985
9986         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9987         insensitive flag for attributes with optional index.
9988         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9989         array attribute, put the index in lower case.
9990         Update Project Manager to new attribute names for ghprbuild
9991         Allow all valid declarations in configuration project files
9992         Major update of the Project Manager and of the project aware tools,
9993         including gprmake, so that the same sources in the GNAT repository
9994         can be used by gprbuild.
9995
9996         * prj-env.ads, prj-env.adb: 
9997         Major update of the Project Manager and of the project aware tools,
9998         including gprmake, so that the same sources in the GNAT repository
9999         can be used by gprbuild.
10000         (Get_Reference): Change type of parameter Path to Path_Name_Type
10001
10002         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10003         removing '-' from the path to start with the first character of the
10004         next directory.
10005         Major update of the Project Manager and of the project aware tools,
10006         including gprmake, so that the same sources in the GNAT repository
10007         can be used by gprbuild.
10008         Major update of the Project Manager and of the project aware tools,
10009         including gprmake, so that the same sources in the GNAT repository
10010         can be used by gprbuild.
10011
10012         * prj-nmsc.ads, prj-nmsc.adb: 
10013         Update Project Manager to new attribute names for ghprbuild
10014         Allow all valid declarations in configuration project files
10015         (Search_Directories): Detect subunits that are specified with an
10016         attribute Body in package Naming. Do not replace a source/unit in the
10017         same project when the order of the source dirs are known. Detect
10018         duplicate sources/units in the same project when the order of the
10019         source dirs are not known.
10020         (Check_Ada_Name): Allow all identifiers that are not reserved words
10021         in Ada 95.
10022         Major update of the Project Manager and of the project aware tools,
10023         including gprmake, so that the same sources in the GNAT repository
10024         can be used by gprbuild.
10025         (Look_For_Sources): If the list of sources is empty, set the object
10026         directory of non extending project to nil.
10027         Change type of path name variables to be Path_Name_Type
10028         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10029         otherwise creating missing directories will fail.
10030
10031         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
10032         prj-part.ads, prj-part.adb:
10033         Major update of the Project Manager and of the project aware tools,
10034         including gprmake, so that the same sources in the GNAT repository
10035         can be used by gprbuild.
10036
10037         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10038         insensitive flag for attributes with optional index.
10039         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10040         array attribute, put the index in lower case.
10041         (Parse_Variable_Reference): Allow the current project name to be used in
10042         the prefix of an attribute reference.
10043
10044         * prj-util.ads, prj-util.adb
10045         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10046         defaulted to False. When True, always check against indexes in lower
10047         case.
10048
10049         * snames.ads, snames.h, snames.adb: 
10050         Update Project Manager to new attribute names for gprbuild
10051         Allow all valid declarations in configuration project files
10052
10053 2007-08-14  Robert Dewar  <dewar@adacore.com>
10054             Ed Schonberg  <schonberg@adacore.com>
10055
10056         * opt.ads: Warning for non-local exception propagation now off by
10057         default
10058         New switch -gnatI to disable representation clauses
10059         Implement new pragma Implicit_Packing
10060
10061         * usage.adb: 
10062         Warning for non-local exception propagation now off by default
10063         Add warning for unchecked conversion of pointers wi different
10064         conventions.
10065         New switch -gnatI to disable representation clauses
10066
10067         * usage.adb: new switch -gnatyS
10068
10069         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10070         note that aggregates of anonymous array types are not flagged.
10071         -gnatwc now includes membership tests optimized away
10072         -gnatw.x warnings are now off by default
10073         Added conditional compilation Appendix
10074         Add documentation of -gnatI
10075         Add documentation for new -gnatyS style check
10076         Update documentation about SAL and auto-init on Windows.
10077
10078         * gnat_rm.texi: 
10079         Add documentation for pragma Check_Name and 'Enabled attribute
10080         Document that Eliminate on dispatching operation is ignored
10081         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10082         Document pragma Main
10083         Document pragma Implicit_Packing
10084
10085         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10086         different conventions
10087         New switch -gnatI to disable representation clauses
10088
10089         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
10090         recognized, report the invalid characters including "-gnat" instead of
10091         just the first character in the switch.
10092         New switch -gnatI to disable representation clauses
10093         Set Warn_On_Object_Renames_Function true for -gnatg
10094
10095         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
10096         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
10097         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
10098         to switch -aP (add directory to project search dir).
10099
10100         * par-prag.adb: Implement new pragma Implicit_Packing
10101
10102         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
10103         type as having a non-standard representation, to force expansion on
10104         conversion to related types.
10105         (Analyze_Pragma): Warn on misspelled pragma
10106         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
10107         Ensure consistent use of # in error messages
10108         Implement pragma Implicit_Packing
10109
10110 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10111             Eric Botcazou  <ebotcazou@adacore.com>
10112
10113         * targtyps.c (get_target_maximum_default_alignment): New function.
10114         Maximum alignment
10115         that the compiler might choose by default for a type or object.
10116         (get_target_default_allocator_alignment): New function. Alignment known
10117         to be honored by the target default allocator.
10118         (get_target_maximum_allowed_alignment): New function. Maximum alignment
10119         we might accept for any type or object on the target.
10120         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
10121
10122         * gigi.h (get_target_maximum_default_alignment): Declare new function.
10123         (get_target_default_allocator_alignment): Likewise.
10124         (get_target_maximum_allowed_alignment): Likewise.
10125
10126         PR ada/19037
10127         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
10128         result of a function call, first try to use a stabilized reference for
10129         a constant renaming too.
10130         (validate_alignment): Use target_maximum_allowed_alignment instead of
10131         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
10132         (gnat_to_gnu_entity): Use common nodes directly.
10133         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
10134         alignment and size for the object.
10135         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
10136         and N_Procedure_Call_Statement.
10137         (takes_address): Rename to lvalue_required_p, add third parameter
10138         'aliased' and adjust recursive calls.
10139         <N_Indexed_Component>: Update 'aliased' from the array type.
10140         <N_Selected_Component>: New case.
10141         <N_Object_Renaming_Declaration>: New Likewise.
10142         (Identifier_to_gnu): Adjust for above changes.
10143         (maybe_stabilize_reference) <CONST_DECL>: New case.
10144
10145         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
10146         between type variants.
10147         (build_simple_component_ref): Likewise.
10148         (build_call_alloc_dealloc): Use target_default_allocator_alignment
10149         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
10150         aligning type circuitry for allocations from the default storage pool.
10151         (build_allocator): Likewise.
10152         (build_simple_component_ref): Manually fold the reference for a
10153         constructor if the record type contains a template.
10154
10155         * utils.c (value_zerop): Delete.
10156         (gnat_init_decl_processing): Emit debug info for common types.
10157         (rest_of_record_type_compilation): If a union contains a field
10158         with a non-constant qualifier, treat it as variable-sized.
10159         (finish_record_type): Give the stub TYPE_DECL a name.
10160         (rest_of_record_type_compilation): Likewise.
10161         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
10162         types are equivalent array types.
10163         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
10164         even if the type is not passed by reference.
10165         (static_ctors, static_dtors): Delete.
10166         (end_subprog_body): Do not record constructors and destructors.
10167         (build_global_cdtor): Delete.
10168         (gnat_write_global_declarations): Do not call build_global_cdtor.
10169
10170         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
10171         -fRTS=rtp is specified.
10172         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
10173         specified.
10174
10175         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
10176         of the personality function with SJLJ exceptions.
10177
10178         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
10179         the name of the personality function with SJLJ exceptions.
10180
10181 2007-08-14  Robert Dewar  <dewar@adacore.com>
10182             Ed Schonberg  <schonberg@adacore.com>
10183
10184         * par.ads, par.adb: Improve handling of extra right parens.
10185         (Par): Remove flag From_Limited_With_Clause.
10186
10187         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
10188         Improve handling of extra right parens.
10189
10190 2007-08-14  Robert Dewar  <dewar@adacore.com>
10191
10192         * par-tchk.adb (TF_Semicolon): Improve error recovery
10193
10194 2007-08-14  Robert Dewar  <dewar@adacore.com>
10195             Ed Schonberg  <schonberg@adacore.com>
10196
10197         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
10198         enumeration type, mark all literals as referenced.
10199         (Eval_Attribute, case 'Image): If the argument is an enumeration
10200         literal and names are available, constant-fold but mark nevertheless as
10201         non-static.
10202         Clean up function names.
10203         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
10204         comment.
10205         (Requires_Simple_Name_Prefix): Removed.
10206
10207 2007-08-14  Robert Dewar  <dewar@adacore.com>
10208             Ed Schonberg  <schonberg@adacore.com>
10209
10210         * sem_ch11.adb: Improved warnings for unused variables
10211
10212         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
10213         is a synchronized interface, the derived type is limited.
10214         (Analyze_Object_Declaration): Mark the potential coextensions in the
10215         definition and expression of an object declaration node.
10216         (Build_Derived_Type): For the completion of a private type declaration
10217         with a derived type declaration, chain the parent type's representation
10218         items to the last representation item of the derived type (not the
10219         first one) if they are not present already.
10220         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
10221         object declaration of forward references to tags.
10222         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
10223         subprogram types can appear as access discriminants of synchronized
10224         types.
10225         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
10226         given in prefixed form as a selected component.
10227         (Process_Discriminants): If not all discriminants have defaults, place
10228         error message on a default that is present.
10229         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
10230         extend a synchronized tagged type.
10231         Improved warnings for unused variables
10232         (Is_Visible_Component): Fix a visibility hole on a component inherited
10233         by a private extension when parent is itself declared as a private
10234         extension, and the derivation is in a child unit.
10235         (Find_Hidden_Interface): Move spec from the package body.
10236
10237 2007-08-14  Robert Dewar  <dewar@adacore.com>
10238             Ed Schonberg  <schonberg@adacore.com>
10239
10240         * sem_ch5.adb: Improve warnings on redundant assignments
10241
10242         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
10243         parameter
10244         (Is_Synchronized_Tagged_Type): New subprogram that returns true
10245         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
10246         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
10247         is set to False. Improves handling of Known_[Not_]Null.
10248         (Wrong_Type): Special case address arithmetic attempt
10249         (Collect_Abstract_Interfaces): Add new formal to allow collecting
10250         abstract interfaces just using the partial view of private types.
10251         (Has_Abstract_Interfaces): Add new formal to allow checking types
10252         covering interfaces using the partial view of private types.
10253         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
10254         component still needs to be defined in this case, but is never
10255         initialized as VMs are using other dispatching mechanisms.
10256         (Abstract_Interface_List): For a protected type, use base type to get
10257         proper declaration.
10258         Improve warnings on redundant assignments
10259         (Is_Variable): Handle properly an implicit dereference of a prefixed
10260         function call.
10261         (Build_Actual_Subtype): If this is an actual subtype for an
10262         unconstrained formal parameter, use the sloc of the body for the new
10263         declaration, to prevent anomalises in the debugger.
10264
10265 2007-08-14  Robert Dewar  <dewar@adacore.com>
10266
10267         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
10268         dispatching operation
10269
10270 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10271             Gary Dismukes  <dismukes@adacore.com>
10272
10273         * exp_aggr.ads, 
10274         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
10275         expanded aggregate code before allocator, and ahead of declaration for
10276         temporary, to prevent access before elaboration when the allocator is
10277         an actual for an access parameter.
10278         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
10279         the TSD and the table of interfaces.
10280         (Convert_To_Assignments): Augment the test for delaying aggregate
10281         expansion for limited return statements to include the case of extended
10282         returns, to prevent creation of an unwanted transient scope.
10283         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
10284         (Expand_Array_Aggregate): Handle aggregates associated with
10285         statically allocated dispatch tables.
10286         (Expand_Record_Aggregate): Handle aggregates associated with
10287         statically allocated dispatch tables.
10288         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
10289         of anonymous access type.
10290
10291 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10292
10293         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
10294         is a variable that renames a slice, use the variable itself in the
10295         expannsion when the renamed expression itself may be modified between
10296         the declaration of the renaming and the array assignment.
10297
10298 2007-08-14  Jerome Guitton  <guitton@adacore.com>
10299
10300         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
10301         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
10302         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
10303         New functions; dummy implementations.
10304
10305         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
10306         functions, used to implement the multi-tasks mode routines on VxWorks.
10307
10308         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
10309         New functions, thin
10310         binding to the VxWorks routines which have changed between VxWorks 5
10311         and 6.
10312         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
10313         which are not callable from a RTP.
10314
10315         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
10316         implemented for the multi-tasks mode on VxWorks 5 and 6.
10317
10318         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
10319
10320         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
10321         functions.
10322
10323 2007-08-14  Vincent Celier  <celier@adacore.com>
10324
10325         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
10326         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
10327         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
10328         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
10329         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
10330         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
10331         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
10332         procedure.
10333         (Major_Id_Name): New function.
10334         mlib-tgt.ads/mlib.tgt.adb:
10335         (Library_Major_Minor_Id_Supported): New function, default returns True
10336         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
10337         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
10338         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
10339         Implementation of Library_Major_Minor_Id_Supported returns False
10340         clean.adb:
10341         (Clean_Library_Directory): If major/minor ids are supported, clean all
10342         library files.
10343         Major update of the Project Manager and of the project aware tools,
10344         including gprmake, so that the same sources in the GNAT repository
10345         can be used by gprbuild.
10346
10347 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10348
10349         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
10350         (GCC_ZCX_Support): Switch to True.
10351         
10352         * s-intman-solaris.adb (Notify_Exception): Call
10353         Adjust_Context_For_Raise before raising, as expected for signal
10354         handlers in general.
10355         
10356         * s-intman-posix.adb (Notify_Exception): Remove declaration of
10357         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
10358         to other implementation bodies.
10359         
10360         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
10361         be visible by multiple implementation bodies.
10362         
10363         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
10364         only for conditions coming from hardware.
10365         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
10366         adjustments to signal context prior to exception raise from signal
10367         handler.
10368         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
10369         mode.
10370         Solaris section: (__gnat_adjust_context_for_raise): New function.
10371         Implementation of the machine context adjustments to perform prior to
10372         raise from a signal handler. Version for both sparc and x86.
10373         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
10374         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
10375         prior to raising as expected for any handler, before possible nested
10376         faults to make sure all the contexts in a chain have been adjusted by
10377         the time we propagate.
10378
10379 2007-08-14  Pascal Obry  <obry@adacore.com>
10380
10381         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
10382         (SYSTEM_INFO): New record.
10383         (SetThreadIdealProcessor): New imported routine needed for supporting
10384         task_info pragma on Windows.
10385
10386         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
10387         info can be applied to the current host.
10388         (Create_Task): Set the ideal processor if information is present.
10389
10390         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
10391         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
10392
10393 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10394
10395         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
10396         stack size and initial stack pointer value for a given task.
10397         (Enter_Task): Get the stack attributes of the task we are entering and
10398         let the stack checking engine know about them.
10399
10400         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
10401         Let the stack-checking engine know about the initial sp value and stack
10402         size associated with the current task.
10403         (Set_Stack_Info): If a stack base has been notified for the current
10404         task, honor it. Fallback to the previous less accurate method otherwise.
10405
10406         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
10407
10408 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10409
10410         * sem_ch10.adb: Create a limited view of an incomplete type, to make
10411         treatment of limited views uniform for all visible declarations in a
10412         limited_withed package.
10413         Set flag indicating that a subprogram body for a child unit has a
10414         generated spec.
10415         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
10416         separate declaration, remove the unit name from visibility after
10417         compilation, so that environment is clean for subsequent compilations.
10418         (Install_Limited_Context_Clauses): Do not install a
10419         limited_private_with_clause unless the current unit is a body or a
10420         private child unit.
10421         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
10422         in the same fashion.
10423         (Install_Limited_Withed_Unit): Do not install a limited with clause if
10424         it applies to the declaration of the current package body.
10425         (Remove_Private_With_Clauses): If there is a regular with_clause for
10426         the unit, delete Private_With_Clause from context, to prevent improper
10427         hiding when processing subsequent nested packages and instantiations.
10428
10429 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
10430
10431         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
10432         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
10433         representing absolute path names.
10434         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
10435
10436         * cstreams.c (__gnat_full_name for VxWorks): Use
10437         __gnat_is_absolute_path to detect whether we need to add the current
10438         directory to normalize the path.
10439
10440 2007-08-14  Javier Miranda  <miranda@adacore.com>
10441
10442         * a-tags.ads, 
10443         a-tags.adb (Displace): Associate a message with the raised CE
10444         exception.
10445         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
10446         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
10447         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
10448         spec.
10449         (Default_Prim_Op_Count): Removed.
10450         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
10451         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
10452         Remove pragma Inline_Always.
10453
10454         * rtsfind.ads (Default_Prim_Op_Count): Removed
10455         (Max_Predef_Prims): New entity
10456         (RE_Expanded_Name): Removed
10457         (RE_HT_Link): Removed
10458         (RE_Iface_Tag): Remmoved
10459         (RE_Ifaces_Table): Removed
10460         (RE_Interfaces_Array): Removed
10461         (RE_Interface_Data_Element): Removed
10462         (RE_Nb_Ifaces): Removed
10463         (RE_RC_Offset): Removed
10464         (RE_Static_Offset_To_Top): Removed
10465
10466         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
10467         formal.
10468         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
10469         Prim_Op_Count by Max_Predef_Prims.
10470
10471 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10472             Vincent Celier  <celier@adacore.com>
10473
10474         * binde.adb (Elab_All_Links): Remove unnecessary call to
10475         Generic_Separately_Compiled (if a unit satisfies this predicate, there
10476         won't be an associated Afile).
10477         (Elab_All_Links): Fail if a referenced unit cannot be found
10478
10479         * bindgen.adb: 
10480         Fix comments in bindgen regarding consistency checks done in Bcheck:
10481         the checks are made across units within a partition, not across several
10482         partitions.
10483         Fix generation of C binder file for VxWorks.
10484
10485         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
10486         Generic_May_Lack_ALI, more descriptive of the current use of the
10487         predicate, and update documentation.
10488
10489         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
10490         reorganization and documentation update for the case of predefined
10491         library generics (for which we do not reference an Afile).
10492
10493 2007-08-14  Robert Dewar  <dewar@adacore.com>
10494
10495         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
10496         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
10497         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
10498         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
10499         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
10500         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
10501         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
10502         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
10503         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
10504         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
10505         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
10506         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
10507         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
10508         g-altcon.adb: Minor reformatting
10509
10510         ada-tree.h: Delete empty line.
10511
10512         ali.ads: Minor reformatting
10513         Clarification of comments.
10514         Minor spelling correction
10515
10516         * exp_dbug.adb: Add Warnings Off to suppress new warning
10517
10518         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10519         formal
10520
10521         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
10522         value
10523
10524         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
10525
10526         * a-textio.ads: Reorder the standard input/output/error declarations
10527         for consistency.
10528
10529         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
10530
10531         * par-ch2.adb: Recognize RM specially in errout
10532         Change 'R'M to RM in all error messages
10533
10534         * scng.adb: Recognize RM specially in errout
10535
10536         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
10537         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
10538
10539         * s-direio.adb: Add missing routine header box.
10540
10541         * sem_attr.ads: Add ??? comments
10542
10543         * sem_eval.adb: Recognize RM specially in errout
10544         Change 'R'M to RM in all error messages
10545
10546         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
10547
10548         * s-tasinf.ads: Fix minor comment typo.
10549
10550         * a-cihama.adb: Minor comment addition
10551
10552         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10553         formal
10554
10555         * s-tasinf-tru64.ads: Fix minor comment typo.
10556
10557         * itypes.ads: Comment update.
10558
10559         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
10560         anymore.
10561
10562         * argv.c: Added protection against null gnat_argv and gnat_envp.
10563
10564         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
10565         warning message when Tolerate_Consistency_Errors is True.
10566
10567         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
10568         Any_Id, as this subprogram is only applicable to *type* entities (it
10569         sets RM_Size). Instead initialize just Esize and Alignment.
10570
10571 2007-08-14  Bob Duff  <duff@adacore.com>
10572
10573         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
10574         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
10575         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
10576         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
10577         a-coorse.ads (Next): Applied pragma Inline.
10578         Make all Containers packages Remote_Types (unless they are already
10579         Pure).
10580         (Previous): applied pragma Inline
10581         (Elements_Type): is now a record instead of an array
10582
10583 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10584
10585         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
10586         of Set_Item.
10587         (Set_Item): When the new item is an element of the currently allocated
10588         table passed by reference, save a copy on the stack if we're going
10589         to reallocate. Also, in Table.Set_Item, make sure we test the proper
10590         variable to determine whether to call Set_Last.
10591
10592         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
10593         symbols-vms.adb, symbols-processing-vms-alpha.adb,
10594         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
10595         some occurrences of the pattern
10596            T.Increment_Last;
10597            T.Table (T.Last) := Value;
10598         with a cleaner call to
10599            T.Append (Value);
10600
10601 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10602             Gary Dismukes  <dismukes@adacore.com>
10603             Thomas Quinot  <quinot@adacore.com>
10604
10605         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
10606         derived type with interface progenitors use the analyzed formal as the
10607         parent of the actual, to create renamings for all the inherited
10608         operations in Derive_Subprograms.
10609         (Collect_Previous_Instances): new procedure within of
10610         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
10611         unit being loaded, to ensure that the generation of global symbols is
10612         consistent in different compilation modes.
10613         (Is_Tagged_Ancestor): New function testing the ancestor relation that
10614         takes progenitor types into account.
10615         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
10616         traversing over the primitives of the formal and actual types to locate
10617         any abstract subprograms of the actual type that correspond to a
10618         nonabstract subprogram of the formal type's ancestor type(s), and issue
10619         an error if such is found.
10620         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
10621         Instantiate_Package_Body, Instantiate_Subprogram_Body):
10622         Remove bogus guard around calls to Inherit_Context.
10623         (Reset_Entity): If the entity is the selector of a selected component
10624         that denotes a named number, propagate constant-folding to the generic
10625         template only if the named number is global to the generic unit.
10626         (Set_Instance_Env): Only reset the compilation switches when compiling
10627         a predefined or internal unit.
10628
10629 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10630
10631         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
10632         parameter to determine whether operation applies to the prefix.
10633         (Complete_Object_Operation): If actual has an access type and
10634         controlling formal is not an in_parameter, reject the actual if it is
10635         an access_to_constant type.
10636         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
10637         type, the candidate operations are found in the scope of declaration of
10638         the type, because the type has no primitive subprograms.
10639         (Analyze_Selected_Component): If prefix is class-wide, and root type is
10640         a private extension, only examine visible components before trying to
10641         analyze as a prefixed call.
10642         Change Entity_List to Type_To_Use, for better readability.
10643         (Has_Fixed_Op): Use base type when checking whether the type of an
10644         operator has a user-defined multiplication/division
10645         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
10646         user-defined operators are available for fixed-point types.
10647
10648 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10649             Ed Schonberg  <schonberg@adacore.com>
10650
10651         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
10652         formal At_Any_Place indicating, when True, that we want to test for
10653         availability of the stream attribute at any place (as opposed to the
10654         current visibility context only).
10655         (Missing_Read_Write_Attributes): A stream attribute is missing for the
10656         purpose of enforcing E.2.2(8) only if it is not available at any place.
10657         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
10658         when checking the legality of an extension aggregate in a preelaborable
10659         package. Treat the literal null as a valid default expression in a
10660         component declaration for a type with preelaborable initialization.
10661         A limited interface is a legal progenitor for the designated type of a
10662         remote access to class-wide type.
10663
10664 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10665             Ed Schonberg  <schonberg@adacore.com>
10666
10667         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
10668         reference): Use correct entity as denoted entity for the selector of
10669         the rewritten node.
10670         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
10671         setting the Referenced_As_LHS flag for entities that are implicitly
10672         dereferenced.
10673         (Find_Type): If the type is an internally generated incomplete type,
10674         mark the full view as referenced, to prevent spurious warnings.
10675         (Find_Selected_Component, Has_Components): Handle properly non-limited
10676         views that are themselves incomplete types.
10677         Handle interfaces visible through limited-with clauses.
10678         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
10679         subprogram generic actual for which we have generated a renaming.
10680         Warn when the renaming introduces a homonym of
10681         the renamed entity, and the renamed entity is directly visible.
10682
10683 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10684             Hristian Kirtchev  <kirtchev@adacore.com>
10685
10686         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
10687         appear in the subtree to the current allocator if it is not a static
10688         coextension.
10689         (Resolve_Allocator): Perform cleanup if resolution has determined that
10690         the allocator is not a coextension.
10691         (Resolve): Skip an interpretation hidden by an abstract operator only
10692         when the type of the interpretation matches that of the context.
10693         (Resolve): When looping through all possible interpretations of a node,
10694         do not consider those that are hidden by abstract operators.
10695         (Resolve_Actuals): When verifying that an access to class-wide object
10696         is an actual  for a controlling formal, ignore anonymous access to
10697         subprograms whose return type is an access to class_wide type.
10698         (Resolve_Slice): If the prefix of the slice is a selected component
10699         whose type depends on discriminants, build its actual subtype before
10700         applying range checks on the bounds of the slice.
10701         (Valid_Conversion): In an instance or inlined body, compare root types,
10702         to prevent anomalies between private and public views.
10703         (Resolve): Improve error message for ambiguous fixed multiplication
10704         expressions that involve universal_fixed multiplying operations.
10705
10706 2007-08-14  Javier Miranda  <miranda@adacore.com>
10707             Hristian Kirtchev  <kirtchev@adacore.com>
10708
10709         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
10710         location to allow the correct generation of errors in case of
10711         restrictions applied to the expanded code.
10712         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
10713         function if the condition does not reference them.
10714         (Expand_Entry_Body_Declarations): Mark the index constant as having a
10715         valid value.
10716
10717 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10718             Pablo Oliveira  <oliveira@adacore.com>
10719
10720         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
10721         typecode parameters for a union (in a variant record), remove
10722         extraneous layer of Any wrapping for member label.
10723         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
10724         elabration statements, register the package with the name server
10725         at the beginning, not at the end, of the elaboration statements so
10726         that they can create remote access to subprogram values that designate
10727         remote subprograms from the package.
10728
10729 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10730
10731         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
10732         values to compute the number of seconds since the Unix Epoc in order to
10733         account for Daylight Savings Time. Perform special processing for dates
10734         that are earlier than the Unix Epoc to obtain a negative number.
10735
10736 2007-08-14  Emmanuel Briot  <briot@adacore.com>
10737
10738         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
10739         switches.
10740
10741 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
10742
10743         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
10744         binder-generated file is not in Ada.
10745         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
10746         recorded in the ALI file.
10747         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
10748
10749 2007-08-14  Vincent Celier  <celier@adacore.com>
10750
10751         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
10752         (Output_Source): Do nothing if parameter is No_Sdep_Id
10753
10754         * make.adb (Gnatmake): Do not rebuild an archive simply because a
10755         shared library it imports has a later time stamp.
10756         (Check): Resolve the symbolic links in the path name of the object
10757         directory.
10758         Check that the ALI file is in the correct object directory
10759         Check if a file name does not correspond to the mapping of units
10760         to file names.
10761         (Display_Version): New procedure
10762         (Initialize): Process switches --version and --help
10763         Use type Path_Name_Type for path name
10764
10765 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
10766
10767         * impunit.adb: Re-organize System.Random_Numbers and
10768         GNAT.Random_Numbers and add to builds.
10769
10770         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
10771
10772         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
10773
10774         * a-assert.ads, a-assert.adb: New files.
10775
10776 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
10777
10778         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
10779         if AAMP_On_Target is True, then the size of the type encompasses two
10780         addresses (a static link and a subprogram address), except in the case
10781         of library-level access types.
10782
10783 2007-08-14  Vincent Celier  <celier@adacore.com>
10784
10785         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
10786         writing the line.
10787         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10788         possible trailing spaces.
10789         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10790
10791 2007-08-14  Javier Miranda  <miranda@adacore.com>
10792
10793         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
10794         null-excluding access types.
10795
10796 2007-08-14  Javier Miranda  <miranda@adacore.com>
10797
10798         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
10799         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
10800         of private types add missing check on matching interfaces in the
10801         partial and full declarations.
10802         (Analyze_Protected_Type): Code cleanup.
10803         (Analyze_Task_Type): Code cleanup.
10804
10805 2007-08-14  Javier Miranda  <miranda@adacore.com>
10806
10807         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
10808         generated interface thunk.
10809
10810 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10811
10812         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
10813         obsolescent warning on application of 'Class to an incomplete type.
10814
10815         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
10816         prevent obsolescent warning on application of 'Class to an incomplete
10817         type.
10818
10819 2007-08-14  Pascal Obry  <obry@adacore.com>
10820
10821         * s-fileio.adb (Is_Open): Add check for usability of the underlying
10822         file stream.
10823
10824 2007-08-14  Cyrille Comar  <comar@adacore.com>
10825
10826         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
10827         since it is potentially used in cases implying double finalization of
10828         the same object.
10829
10830 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
10831
10832         * s-tasini.adb (Get_Stack_Info): Move this function to
10833         System.Soft_Links.Tasking because it is common to the full and the
10834         restricted run times.
10835         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
10836         in SSL.Tasking.Init_Tasking_Soft_Links.
10837
10838         * s-solita.adb (Get_Stack_Info): Function moved from
10839         System.Tasking.Initialization because it is common to the full and the
10840         restricted run times.
10841         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
10842
10843 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
10844
10845         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
10846         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
10847         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
10848         parameter.
10849
10850         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
10851         guard to 12K.
10852
10853 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
10854
10855         * s-veboop.adb (SU): New named number initialized to
10856         System.Storage_Unit.
10857         (True_Val): The initialization expression is revised to use SU (=
10858         Storage_Unit) rather than assuming 8 for the component size of an
10859         unpacked Boolean array.
10860
10861 2007-08-14  Tristan Gingold  <gingold@adacore.com>
10862
10863         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
10864
10865         * tb-ivms.c: New file.
10866
10867         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
10868
10869 2007-08-14  Geert Bosch  <bosch@adacore.com>
10870
10871         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
10872         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
10873         Add required linker pragmas for automatically linking with the gnalasup
10874         linear algebra support library, and the systems math library.
10875         Rename cdot to cdotu and zdot to zdotu.
10876         Update header comment to describe purpose of package.
10877
10878 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10879
10880         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
10881         an explicitly specified Associated_Final_Chain, use that list.
10882         (Expand_N_Package_Body): Build dispatch tables of library level tagged
10883         types.
10884         (Expand_N_Package_Declaration): Build dispatch tables of library level
10885         tagged types. Minor code cleanup.
10886
10887 2007-08-14  Vincent Celier  <celier@adacore.com>
10888
10889         * gnatchop.adb (Terminate_Program): Remove exception and use
10890         Types.Terminate_Program instead.
10891
10892         * osint.ads, osint.adb (Current_Exit_Status): New global variable
10893         (Find_Program_Name): Added protection against empty name.
10894         (OS_Exit_Through_Exception): New procedure
10895
10896         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
10897         (OS_Exit_Default): New procedure that contains the previous
10898         implementation of procedure OS_Exit.
10899         (Final_Value): Remove obsolete Interix stuff.
10900
10901 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10902
10903         * g-socket.ads: Reorganize example code so that it also works on
10904         Windows XP.
10905
10906 2007-08-14  Tristan Gingold  <gingold@adacore.com>
10907
10908         * g-trasym.ads: AIX now supports symbolic backtraces.
10909
10910 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10911
10912         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
10913         units being loaded to detect circularities. A circularity may be
10914         present even if the current chain of pending units to load starts from
10915         a limited_with_clause.
10916
10917         * lib-load.ads: Change profile of Load_Unit to use a with_clause
10918         rather than a boolean flag, in order to detect circularities in
10919         with_clauses.
10920
10921         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
10922         than propagating the From_Limited_With flag, in order to handle
10923         properly circularities involving with_clauses.
10924
10925 2007-08-14  Nicolas Setton  <setton@adacore.com>
10926
10927         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
10928         warnings.
10929
10930 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
10931
10932         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
10933         to build for libgnala.
10934         libgnat: Add rules to build libgnala.a
10935         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
10936         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
10937         Add s-osinte-vxworks-kernel.adb to the target pairs of the
10938         kernel run-time lib for VxWorks 6, which would provide a different
10939         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
10940         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
10941         running ZCX by default.
10942         Add g-sttsne-locking to LynxOS version.
10943         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
10944         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
10945
10946         * system-darwin-x86.ads: New file.
10947
10948         * Make-lang.in: Delete files before copying onto them, so if they are
10949         read-only, the copy won't fail.
10950         Update dependencies
10951
10952 2007-08-14  Pascal Obry  <obry@adacore.com>
10953
10954         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
10955         naming scheme.
10956
10957 2007-08-14  Vincent Celier  <celier@adacore.com>
10958
10959         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
10960         (Gcc): Initialize Gcc_Name at the first call
10961
10962 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10963
10964         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
10965         with_clauses of the enclosing unit when analyzing the package
10966         specification of a nested instance.
10967
10968 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10969
10970         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
10971         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
10972         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
10973         layout of N_Allocator.
10974
10975 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10976
10977         * rtsfind.adb (Check_RPC): Add PCS version check.
10978
10979         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
10980         (Gnat_Free_Software): New function.
10981
10982         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
10983         the PCS_Version value from s-parint, used to check that it is consistent
10984         with what exp_dist expects.
10985
10986         * s-parint.ads (PCS_Version): New entity for checking consistency
10987         between exp_dist and PCS.
10988
10989         * gen-soccon.c: (SO_REUSEPORT): New constant.
10990
10991 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10992
10993         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
10994         variable Sub_Second to Duration in order to accomodate a larger range
10995         of arithmetic operations.
10996
10997 2007-08-14  Bob Duff  <duff@adacore.com>
10998
10999         * g-sttsne-locking.ads: Move comments from spec to body.
11000         * g-sttsne-locking.adb: Move comments from spec to body.
11001         * g-sttsne-vxworks.ads: Removed.
11002         * g-sttsne-vxworks.adb: Removed.
11003
11004 2007-08-11  Ian Lance Taylor  <iant@google.com>
11005
11006         * misc.c (gnat_get_alias_set): Change return type to
11007         alias_set_type.
11008
11009 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11010
11011         * decl.c, utils2.c: Fix whitespace in last change.
11012
11013 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11014
11015         * decl.c (compare_field_bitpos): Constify.
11016         * utils2.c (compare_elmt_bitpos): Likewise.
11017
11018 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
11019
11020         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
11021         anonymous access type.
11022         (pthread_sigmask): Now take an access sigset_t.
11023
11024 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
11025
11026         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11027         
11028 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
11029
11030         PR tree-optimization/25737
11031         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11032
11033 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11034
11035         * trans.c (Attribute_to_gnu): When subtracting an
11036         offset from a pointer, use POINTER_PLUS_EXPR with
11037         NEGATE_EXPR instead of MINUS_EXPR.
11038         (gnat_to_gnu): Likewise.
11039         * utils.c (convert): When converting between
11040         thin pointers, use POINTER_PLUS_EXPR and sizetype
11041         for the offset.
11042         * utils2.c (known_alignment): POINTER_PLUS_EXPR
11043         have the same semantics as PLUS_EXPR for alignment.
11044         (build_binary_op): Add support for the semantics of
11045         POINTER_PLUS_EXPR's operands.
11046         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11047
11048 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
11049
11050         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11051         of get_signed_or_unsigned_type.
11052         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11053
11054 2007-06-11  Bob Duff  <duff@adacore.com>
11055             Thomas Quinot  <quinot@adacore.com>
11056
11057         * g-stsifd-sockets.adb (Create): Work around strange behavior of
11058         'bind' on windows that causes 'connect' to fail intermittently, by
11059         retrying the 'bind'.
11060         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11061
11062 2007-06-10  Duncan Sands  <baldrick@free.fr>
11063
11064         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11065         than to void, for the fields when making a new fat pointer type.
11066         (gnat_substitute_in_type): Now substitute_in_type.
11067         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
11068         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11069         * utils.c (update_pointer_to): Update fat pointers by updating the
11070         dummy node pointers used for the fields.
11071
11072 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11073             Bob Duff  <duff@adacore.com>
11074
11075         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11076         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
11077         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
11078         constant Thread_Blocking_IO, always True by default, set False
11079         on a per-runtime basis.
11080         (Need_Netdb_Buffer): New constant.
11081
11082         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11083         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11084         files.
11085
11086         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11087         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11088         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11089         child package Task_Safe_NetDB
11090         (Host_Error_Messages): Add stub body.
11091         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11092
11093         * g-soccon-mingw.ads: Add Windows-specific constants.
11094         (Need_Netdb_Buffer): New constant.
11095         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
11096         wrapper and import inet_addr(3) from the standard sockets library
11097         directly instead.
11098         (In_Addr): Add alignment clause.
11099         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11100
11101 2007-06-06  Robert Dewar  <dewar@adacore.com>
11102
11103         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11104         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
11105         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
11106         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
11107         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
11108         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
11109         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
11110         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
11111         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
11112         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
11113         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
11114         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
11115         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
11116         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
11117         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
11118         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
11119         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
11120         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
11121         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
11122         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
11123         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
11124         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
11125         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
11126         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
11127         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
11128         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
11129         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
11130         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
11131         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
11132         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
11133         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
11134         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
11135         Unchecked_* by Ada.Unchecked_*
11136
11137 2007-06-06  Robert Dewar  <dewar@adacore.com>
11138
11139         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
11140         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
11141         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
11142         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
11143         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
11144         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
11145
11146         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
11147         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
11148         s-tasloc.adb, s-tasloc.ads: New files.
11149
11150 2007-06-06  Bob Duff  <duff@adacore.com>
11151
11152         * g-expect-vms.adb: 
11153         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
11154         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
11155         (Send_Signal, Close): Raise Invalid_Process if the process id is
11156         invalid.
11157         (Pattern_Matcher_Access): Is now a general access type to be able to
11158         use aliased string.
11159
11160 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11161             Arnaud Charlet  <charlet@adacore.com>
11162
11163         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
11164         (SIGEMT is now used instead of SIGTERM on AIX).
11165
11166         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
11167         (Time_Slice_Supported): Set to True.
11168         Use SIGEMT instead of SIGTERM as SIGADAABORT.
11169
11170 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11171
11172         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
11173         (Time, Time)): Use To_Relative_Time rather than manual calculation to
11174         express the bounds of Duration as Time. Raise Time_Error when the
11175         result is greater or equal to the higher bound of Duration (on the
11176         margin case).
11177         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
11178         Ada_High_And_Leaps.
11179         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
11180         Ada_High_And_Leaps.
11181         ("-" (Time, Time)): Reorder code.
11182         (All_Leap_Seconds): Removed.
11183         (Arithmetic_Operations.Add): Remove sign related kludge.
11184         (Arithmetic_Operations.Difference): Control the leaps seconds processing
11185         with flag Leap_Support.
11186         (Arithmetic_Operations.Subtract): Remove sign related kludge.
11187         (Check_Within_Time_Bounds): New procedure.
11188         (Clock): Control the leap seconds processing with flag Leap_Support.
11189         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
11190         (Formatting_Operations.Split): Control the leap seconds processing with
11191         flag Leap_Support.
11192         (Formatting_Operations.Time_Of): Control the leaps seconds processing
11193         with flag Leap_Support. Adjust the year, month and day (if applicable)
11194         when the value of day seconds designates a new day.
11195         (Split): Use parameter associations for better readability. Integrate
11196         flag Is_Ada_05.
11197         (Time_Of): Use parameter associations for better readability. Integrate
11198         flag Is_Ada_05.
11199
11200         * a-calfor.adb (Split): Use parameter associations for better
11201         readability. Integrate flag Is_Ada_05.
11202         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
11203         better readability. Integrate flag Is_Ada_05.
11204
11205 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11206
11207         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
11208         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
11209         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
11210         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
11211         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
11212         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
11213         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
11214         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
11215         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
11216         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
11217         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
11218         time when entering this routine to detect a backward clock setting
11219         (manual setting or DST adjustment), to avoid waiting for a longer delay
11220         than needed.
11221         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
11222         Remove handling of deferred priority change, and replace by setting the
11223         task priority directly, as required by AI-188.
11224         Update comments.
11225         (Max_Task_Image_Length): New constant.
11226         Replace Warnings (Off) by Unreferenced pragma, cleaner.
11227         (Dynamic_Priority_Support): Removed, no longer needed.
11228         (Poll_Base_Priority_Change): Ditto.
11229         (Set_Ceiling): Add this procedure to change the ceiling priority
11230         associated to a lock. This is a dummy implementation because dynamic
11231         priority ceilings are not supported by the underlying system.
11232
11233         * a-dynpri.adb (Set_Priority): Take into account case where Target is
11234         accepting a RV with its priority boosted.
11235         Remove handling of deferred priority change, and replace by setting the
11236         task priority directly, as required by AI-188.
11237
11238         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
11239         Succeeded = True.
11240         Remove handling of deferred priority change, and replace by setting the
11241         task priority directly, as required by AI-188.
11242         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
11243         of Self_Id earlier.
11244
11245         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
11246         (Poll_Base_Priority_Change): Removed.
11247         Code clean up: use SSL.Current_Target_Exception.
11248
11249         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
11250         to run as this is a potentially dispatching point.
11251         (Call_Synchronous): Use Local_Defer_Abort.
11252         (Callable): Relax assertion.
11253         (Selective_Wait): Relax assertion in case abort is not allowed.
11254         Remove handling of deferred priority change, and replace by setting the
11255         task priority directly, as required by AI-188.
11256
11257         * s-tasuti.adb (Make_Passive): Adjust assertions.
11258         Remove handling of deferred priority change, and replace by setting the
11259         task priority directly, as required by AI-188.
11260
11261 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11262
11263         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
11264         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
11265         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
11266         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
11267         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
11268         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
11269         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
11270         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
11271         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
11272         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
11273         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
11274         This patch changes the largest non-binary modulus from 2**31-1 to
11275         2**32-1.
11276         (Compiler_System_Version): Removed, no longer used.
11277         Clean up system files by removing flags only used on a single target.
11278         Also remove obsolete flags, only used during bootstrap from system.ads
11279         (Address): Add a pragma Preelaborable_Initialization.
11280
11281         * system-aix.ads:  Ditto.
11282         (GCC_ZCX_Support): Set to true.
11283         Update priority range on AIX and map Ada priorities to target
11284         priorities appropriately for different scheduling policies.
11285
11286         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
11287
11288 2007-06-06  Vincent Celier  <celier@adacore.com>
11289
11290         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
11291         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
11292
11293         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
11294         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
11295         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
11296         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
11297         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
11298         MLib.Tgt, containing the default versions of the exported subprograms.
11299         For each platform, create a specific version of the body of new child
11300         package MLib.Tgt.Specific that contains only the body of subprograms
11301         that are different from the default.
11302         (Archive_Builder_Append_Options): New function.
11303
11304 2007-06-06  Matthew Gingell  <gingell@adacore.com>
11305
11306         * s-osinte-aix.adb: Map Ada priorities to target priorities
11307         appropriately for different scheduling policies.
11308
11309 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11310
11311         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
11312         its C counterpart.
11313         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
11314         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
11315
11316 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
11317
11318         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
11319         Noop on VMS, added for interface commonality.
11320
11321 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11322             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11323             Olivier Hainque  <hainque@adacore.com>
11324
11325         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
11326         renamed expression of a full renaming at toplevel.
11327         (gnat_to_gnu_entity, case object): If not defining, do not look inside
11328         the values the constant is initialized to if it is an N_Allocator.
11329         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
11330         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
11331         (make_aligning_type): Accept an extra ROOM argument for storage to be
11332         made available before the aligned field, and an extra BASE_ALIGN
11333         argument for callers to pass the alignment guaranteed to be honored for
11334         the whole aligning object. Avoid call to finish_record_type, which only
11335         interferes with the sizes we want to set.
11336         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
11337         make_aligning_type for super-aligned objects on stack.
11338         (components_to_record): Pass the adjusted size of the type when creating
11339         fields in the qualified union for the variant part.
11340         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
11341         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
11342         packed array type.
11343         (maybe_pad_type): Set TYPE_USER_ALIGN.
11344         (make_aligning_type): Likewise.
11345         ALIGN argument is unsigned int.
11346         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
11347         (gnat_to_gnu_param): Likewise, for parameters.
11348         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
11349         if it is constant and stems from a function call.
11350         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
11351         of the record is specified.  Adjust accordingly.
11352         (adjust_packed): New static function.
11353         (gnat_to_gnu_field): Use it to adjust the packedness setting.
11354         (components_to_record): Likewise.
11355         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
11356         side-effects if the object is deemed constant.
11357         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
11358         type instead of merely finalizing it.  Tidy.
11359         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
11360         <E_Access_Type>: Likewise.
11361         (defer_debug_incomplete_list): Rename to defer_finalize_list.
11362         (defer_debug_level): Delete.
11363         (gnat_to_gnu_entity) <debug_deferred>: Likewise
11364         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
11365         type.
11366         <E_Record_Type>: Do not explicitly defer finalizing the type.
11367         Adjust for write_record_type_debug_info renaming.
11368         <E_Subprogram_Type>: Likewise.
11369         Finalize deferred types right after deferred incomplete types are
11370         expanded.
11371         (rest_of_type_decl_compilation): New global function.
11372         (components_to_record): Rename defer_debug parameter to do_not_finalize.
11373         (components_to_record): Propagate the packedness to the fields of the
11374         qualified union type if there is a variant part.
11375         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
11376         instead of inline code to adjust the XUT field offsets.
11377         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
11378         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
11379         and write the debug info if the type derives from a discriminated one.
11380         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
11381         <E_Array_Subtype>: Likewise.
11382         <E_String_Literal_Subtype>: Likewise.
11383         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
11384         an alignment clause.
11385         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
11386         before giving warning.
11387         (prepend_one_attribute_to): New function, helper to prepend an attribute
11388         to an attribute list.
11389         (gnat_to_gnu_entity) <E_Procedure>: Use it.
11390         (prepend_attributes): Likewise.
11391         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
11392         <E_Array_Type>: Declare the padding type for the element type, if any.
11393         <E_Array_Subtype>: Likewise.
11394         (defer_limited_with): New variable.
11395         (Gigi_Equivalent_Type): New function.
11396         (gnat_to_gnu_entity): Use it at start and use result throughout.
11397         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
11398         Gigi_Equivalent_Type, support Limited_With, allow two levels of
11399         indirection, precompute if unconstrained array to simplify logic, and
11400         use defer_limited_with to defer elaboration of some types from limited
11401         with.
11402         (finalize_from_with_types): New function.
11403
11404 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
11405             Eric Botcazou  <ebotcazou@adacore.com>
11406             Tristan Gingold  <gingold@adacore.com>
11407             Olivier Hainque  <hainque@adacore.com>
11408
11409         * trans.c (Identifier_to_gnu): Change test for deferred constant by
11410         adding guard that the entity is an E_Constant before testing presence
11411         of Full_view (and remove unnecessary test that entity is not a type).
11412         For a CONST_DECL used by reference, manually retrieve
11413         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
11414         (struct language_function): Move from utils.c to here.
11415         (struct parm_attr): New structure.
11416         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
11417         (f_parm_attr_cache): New macro.
11418         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
11419         expressions for the 'First, 'Last and 'Length attributes of the
11420         unconstrained array IN parameters.
11421         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
11422         Allocate the information structure for the function earlier, as well
11423         as the language-specific part.
11424         If the parameter attributes cache has been populated, evaluate the
11425         cached expressions on entry.
11426         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
11427         N_Procedure_Call_Statement and N_Indexed_Component.
11428         (Pragma_to_gnu): Translate inspection_point to an asm statement
11429         containaing a comment and a reference to the object (either its address
11430         for BLKmode or its value).
11431         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
11432         to go to DECL_INITIAL. Together with the size constraint relaxation
11433         in create_var_decl, enlarges the set of situations in which an
11434         identifier may be used as an initializer without implying elaboration
11435         code.
11436         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
11437         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
11438         node.
11439         (maybe_stabilize_reference): Remove lvalues_only parameter.
11440         (gnat_stabilize_reference): Adjust for above change.
11441         (gnat_to_gnu): Do not set location information on the result
11442         if it is a reference.
11443         (add_cleanup): Add gnat_node parameter and set the location of the
11444         cleanup to it.
11445         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
11446         (Exception_Handler_to_gnu_zcx): Likewise.
11447         (gigi): Remove the cgraph node if the elaboration procedure is empty.
11448         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
11449         the former right after the latter.
11450         (start_stmt_group): Make global.
11451         (end_stmt_group): Likewise.
11452         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
11453         vars.
11454         (gnu_program_error_label_stack): Likewise.
11455         (gigi): Initialize them.
11456         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
11457         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
11458         New cases.
11459         (push_exception_label_stack): New function.
11460         (takes_address): New function.
11461
11462         * utils.c (struct language_function): Move to trans.c from here.
11463         (unchecked_convert): Do not wrap up integer constants in
11464         VIEW_CONVERT_EXPRs.
11465         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
11466         the latter for aggregate types, unexpected by later passes, and relax an
11467         arbitrary size constraint on the former.
11468         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
11469         to compare the sizes.
11470         (convert_vms_descriptor): When converting to a fat pointer type, be
11471         prepared for a S descriptor at runtime in spite of a SB specification.
11472         (shift_unc_components_for_thin_pointers): New function.
11473         (write_record_type_debug_info): For variable-sized fields, cap the
11474         alignment of the pointer to the computed alignment.
11475         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
11476         If REP_LEVEL is 2, do not compute the sizes.
11477         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
11478         (build_unc_object_type): Likewise.
11479         (declare_debug_type): New function.
11480
11481         * ada-tree.def: USE_STMT: removed (not emitted anymore).
11482
11483         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
11484         no statement is expandable anymore.
11485         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
11486         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
11487         when the user requested it explicitely.
11488         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
11489         to 0 for Ada.
11490         (get_alias_set): Return alias set 0 for a type if
11491         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
11492
11493         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
11494         (DECL_FUNCTION_STUB): New accessor macro.
11495         (SET_DECL_FUNCTION_STUB): New setter macro.
11496
11497         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
11498
11499         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
11500         declarations.
11501
11502 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
11503
11504         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
11505         Rename to Abort_Task_Interrupt to be able to keep the same interface
11506         as the rest of the targets.
11507
11508         * s-osinte-vxworks.ads s-osinte-vxworks.adb
11509         (To_VxWorks_Priority): Remove explicit "in" mode indicator
11510
11511         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
11512         New files.
11513
11514 2007-06-06  Robert Dewar  <dewar@adacore.com>
11515
11516         * a-chahan.ads: Remove obsolescent pragmas
11517
11518         * a-chlat1.ads: Minor reformatting
11519
11520 2007-06-06  Robert Dewar  <dewar@adacore.com>
11521
11522         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
11523         for Errout
11524
11525         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
11526         implementation
11527
11528         * errout.ads (Finalize): Changed interface
11529         (Output_Messages): New procedure
11530         (Compilation_Errors): New Interface
11531
11532         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
11533         Finalize/Output_Messages interface for Errout
11534         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
11535         Errout.
11536
11537 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11538             Olivier Hainque  <hainque@adacore.com>
11539             Robert Dewar  <dewar@adacore.com>
11540
11541         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
11542         check.
11543         (Raise_Current_Excep): Call Debug_Raise_Exception just before
11544         propagation starts, to let debuggers know about the event in a reliable
11545         fashion.
11546         (Local_Raise): Moved to System.Exceptions
11547         More convenient to have this as a separate unit
11548
11549         * s-except.adb, s-except.ads: New files.
11550
11551         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
11552         Debug_Unhandled_Exception in System.Exceptions where it belongs
11553         together with a couple of other debug helpers.
11554         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
11555         the former Unhandled_Exception.
11556
11557         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
11558         (Warn_No_Exception_Propagation): New procedure
11559         (Warn_If_No_Propagation): Rewritten for new warning generation
11560         (Expand_Exception_Handlers): New warning generation
11561         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
11562         (Add_Exception_Label): Use Special_Exception_Package_Used for test
11563         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
11564         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
11565         even if restriction is set (makes life easier in Check_Returns)
11566         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
11567         checking exception identities.
11568         (Expand_Local_Exception_Handlers): Do not optimize when all others case
11569         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
11570         block for handler (used by Check_Returns)
11571         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
11572         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
11573         remove all exception handlers when optimizing local raise statements.
11574         (Find_Local_Handler): Use Get_Renamed_Entity
11575         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
11576         marked analyzed after expanding exception handlers, do not generate
11577         redundant cleanup actions, because they have been constructed already.
11578
11579 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11580
11581         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
11582         presence of this categorization pragma is mandated by the language.
11583         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
11584         for this type.
11585
11586 2007-06-06  Vincent Celier  <celier@adacore.com>
11587             Robert Dewar  <dewar@adacore.com>
11588
11589         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
11590         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
11591         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
11592         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
11593         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
11594         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
11595         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
11596         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
11597         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
11598         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
11599         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
11600         ali.ads, ali.adb: 
11601         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
11602         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
11603         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
11604         Use variables of types File_Name_Type and Unit_Name_Type in error
11605         messages.
11606         (Get_Name): Add parameter Ignore_Special, and set it reading file name
11607         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
11608         here.
11609         Define flags Flag217-Flag230 with associated subprograms
11610         (Flag_Word5): New record type.
11611         (Flag_Word5_Ptr): New access type.
11612         (To_Flag_Word5): New unchecked conversion.
11613         (To_Flag_Word5_Ptr): Likewise.
11614         (Flag216): New function.
11615         (Set_Flag216): New procedure.
11616
11617 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11618
11619         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
11620         instead of 'Size.
11621
11622         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
11623
11624 2007-06-06  Javier Miranda  <miranda@adacore.com>
11625
11626         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
11627         the package.
11628         (Object_Specific_Data_Array): This is now internal to the package.
11629         (Object_Specific_Data): This is now internal to the package.
11630         (Select_Specific_Data_Element): This is now internal to the package.
11631         (Select_Specific_Data_Array): This is now internal to the package.
11632         (Select_Specific_Data): This is now internal to the package.
11633         (Offset_To_Top_Function_Ptr): This is now public.
11634         (To_Offset_To_Top_Function_Ptr): Removed.
11635         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
11636          local to subprogram Offset_To_Top.
11637         (Predefined_DT): Removed.
11638         (Typeinfo_Ptr): Removed.
11639         (OSD): This function is now internal to this package.
11640         (SSD): This function is now internal to this package.
11641         (DT): New function that displaces the pointer to the table of primitives
11642          to get access to the enclosing wrapper record.
11643         (IW_Membership): Code cleanup.
11644         (Offset_To_Top): Code cleanup.
11645         (Predefined_DT): Removed.
11646         (Register_Interface_Tag): Removed.
11647         (Set_Interface_Table): Removed.
11648         (Set_Offset_Index): Removed.
11649         (Set_Offset_To_Top): Code cleanup.
11650         (Set_OSD): Removed.
11651         (Set_Signature): Removed.
11652         (Set_SSD): Removed.
11653         (Set_Tagged_Kind): Removed.
11654         (Typeinfo_Ptr): Removed.
11655         (TSD): Removed.
11656         (Displace): Add missing check on null actual.
11657
11658         * exp_disp.ads, exp_disp.adb
11659         (Select_Expansion_Utilities): Removed.
11660         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
11661         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
11662         the interface requires a new parameter.
11663         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
11664         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
11665         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
11666         Done to remove package Select_Expansion_Utilities.
11667         (Make_DT): New implementation for statically allocated dispatch tables.
11668         (Make_Secondary_DT): Moved to the scope of Make_DT.
11669         (Register_Primitive): Code cleanup plus incoporate the use of the new
11670         function DT_Address_Attribute.
11671         (Expand_Interface_Thunk): The profile of this subprogram has been
11672         changed to return the Thunk_Id and the corresponding code.
11673         (Fill_DT_Entry): Removed. Its functionality is now provided by
11674         subprogram Register_Primitive.
11675         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
11676         subprogram Register_Primitive.
11677         (Register_Primitive): New subprogram that incorporates the previous
11678         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
11679         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
11680         was only required to call Make_DT_Access_Action, which is now removed.
11681         (Ada_Actions): Removed
11682         (Action_Is_Proc): Removed
11683         (Action_Nb_Arg): Removed
11684         Replace all the calls to Make_DT_Access_Action by direct calls to
11685         Make_Procedure_Call_Statement or Make_Function_Call.
11686         (Set_DTC_Entity_Value): New subprogram.
11687         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
11688         (Expand_Interface_Thunk): Add missing support for primitives that are
11689         functions with a controlling result (case in which there is no need
11690         to generate the thunk).
11691
11692         * exp_atag.ads, exp_atag.adb
11693         (Build_DT): New subprogram that displaces the pointer to reference the
11694         base of the wrapper record.
11695         (Build_Typeinfo_Offset): Removed.
11696         (RTE_Tag_Node): Removed.
11697         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
11698         (Build_Get_RC_Offset): Removed.
11699         (Build_Inherit_Predefined_Prims): Removed.
11700         (Build_Inherit_TSD: Removed.
11701         (Build_New_TSD): Removed.
11702         (Build_Set_External_Tag): Removed.
11703         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
11704         (Build_Set_Prim_Op_Address): Add documentation.
11705         (Build_Set_TSD): Removed.
11706
11707         * rtsfind.ads, rtsfind.adb
11708         (Load_Fail): If load fails and we are not in configurable run-time
11709         mode, then raise Unrecoverable_Error.
11710         (Text_IO_Kludge): Generate an error message if a run-time library is
11711         not available in a given run-time (ie. zfp run-time).
11712         (RTE_Record_Component): Add code to check that the component we search
11713         for is not found in two records in the given run-time package.
11714         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
11715         (RE_DT_Predef_Prims_Offset): New entity
11716         (RE_Static_Offset_To_Top): New entity
11717         (RE_HT_Link): New entity.
11718         (System_Address_Image): Addition of this run-time package.
11719         (RE_Address_Image): New entity.
11720         (RE_Abstract_Interface): Removed.
11721         (RE_Default_Prim_Op_Count): Removed.
11722         (RE_DT_Entry_Size): Removed.
11723         (RE_DT_Min_Prologue_Size): Removed.
11724         (RE_DT_Prologue_Size): Removed.
11725         (RE_Ifaces_Table_Ptr): Removed.
11726         (RE_Interface_Data_Ptr): Removed.
11727         (RE_Type_Specific_Data): Removed.
11728         (RE_Primary_DT): Removed.
11729         (RE_Register_Interface_Tag): Removed.
11730         (RE_Set_Offset_Index): Removed.
11731         (RE_Set_OSD): Removed.
11732         (RE_Set_SSD): Removed.
11733         (RE_Set_Signature): Removed.
11734         (RE_Set_Tagged_Kind): Removed.
11735         (RE_Address_Array): New entity.
11736         (RE_DT): New entity.
11737         (RE_Iface_Tag): New entity.
11738         (RE_Interfaces_Table): New entity.
11739         (RE_No_Dispatch_Table): New entity.
11740         (RE_NDT_Prims_Ptr): New entity.
11741         (RE_NDT_TSD): New entity.
11742         (RE_Num_Prims): New entity.
11743         (RE_Offset_To_Top_Function_Ptr): New entity.
11744         (RE_OSD_Table): New entity.
11745         (RE_OSD_Num_Prims): New entity.
11746         (RE_Predef_Prims): New entity
11747         (RE_Predef_Prims_Table_Ptr): New entity.
11748         (RE_Primary_DT): New entity.
11749         (RE_Signature): New entity.
11750         (RE_SSD): New entity.
11751         (RE_TSD): New entity.
11752         (RE_Type_Specific_Data): New entity.
11753         (RE_Tag_Kind): New entity.
11754
11755 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11756
11757         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
11758         C imported variable.
11759         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
11760         on entry.
11761
11762 2007-06-06  Robert Dewar  <dewar@adacore.com>
11763
11764         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
11765         character
11766
11767 2007-06-06  Vincent Celier  <celier@adacore.com>
11768
11769         * a-tifiio.adb (Put, internal): For negative numbers, check that there
11770         is room for at least one digit and the minus sign.
11771         (Put.Put_Character): Never put a character outside of the range of
11772         string To.
11773
11774 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11775             Eric Botcazou  <ebotcazou@adacore.com>
11776
11777         * utils2.c (build_allocator): Provide the extra arguments to
11778         make_aligning_type for super-aligned objects allocated from the default
11779         pool. Leave enough room for a pointer before the aligning field, and
11780         store the system's allocator return value there.
11781         (build_call_alloc_dealloc): When releasing a super-aligned object,
11782         retrieve the system's allocator return value from where build_allocator
11783         has stored it, just ahead of the adjusted address we are passed.
11784         (build_call_raise): Handle properly the generation of line numbers when
11785         the node is marked No_Location.
11786         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
11787         by using DECL_UID on ties.
11788         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
11789         main variant.
11790         (build_call_raise): Handle converting exception into goto; support new
11791         argument KIND.
11792         (build_component_ref): Add new arg to build_call_raise.
11793
11794 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11795
11796         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
11797         "." in the case of nnn.xxx when nnn terminates with an underscore.
11798         Parse the remaining "#" or ":" in the case of nnn#.xxx#
11799
11800 2007-06-06  Robert Dewar  <dewar@adacore.com>
11801
11802         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
11803
11804 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11805             Vincent Celier  <celier@adacore.com>
11806             Robert Dewar  <dewar@adacore.com>
11807
11808         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
11809         needed.
11810         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
11811         ((destructor)) for adafinal, even when switch -a is used.
11812         Do not issue pragma Linker_Destructor for adafinal when switch -a is
11813         used.
11814         (Gen_Object_Files_Options): Add formatting of Linker Options, when
11815         Output_Linker_Option_List is set. Suppress this formatting when
11816         Zero_Formatting is set.
11817         Add case for CLI_Target.
11818         (System_Restrictions_Used): New flag, used to avoid generating with of
11819         System_Restrictions and initialization of the data unless there is
11820         some use of System.Restrictions in the partition.
11821         (Check_System_Restrictions_Used): New procedure
11822
11823         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
11824         since we only with this unit in the binder file if it is used elsewhere
11825         in the partition.
11826
11827 2007-06-06  Vincent Celier  <celier@adacore.com>
11828
11829         * bindusg.adb: Add line for @<response file>
11830         Add lines for new switches -R and -Z
11831
11832         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
11833         hierarchy in the list of files of the closure when -R is used
11834         (Gnatbind): Accept arguments starting with '@' to indicate response
11835         files and take the arguments from the response files.
11836         If List_Closure is set, display the referenced files
11837
11838 2007-06-06  Javier Miranda  <miranda@adacore.com>
11839             Robert Dewar  <dewar@adacore.com>
11840             Ed Schonberg  <schonberg@adacore.com>
11841
11842         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
11843         which the address-clause is applied to in-mode actuals (allowed by
11844         13.1(22)).
11845         (Apply_Discriminant_Check): Do not generate a check if the type is
11846         constrained by a current instance.
11847         (Activate_Division_Check): New procedure
11848         (Activate_Overflow_Check): New procedure
11849         (Activate_Range_Check): New procedure
11850         Call these new Activate procedures instead of setting flags directly
11851         (Apply_Array_Size_Check): Removed, no longer needed.
11852         Code clean up: remove obsolete code related to GCC 2.
11853         (Get_E_Length): Protect against bomb in case scope is standard
11854         (Selected_Range_Checks): If the node to be checked is a conversion to
11855         an unconstrained array type, and the expression is a slice, use the
11856         bounds of the slice to construct the required constraint checks.
11857         Improve NOT NULL error messages
11858         (Apply_Constraint_Check): If the context is a null-excluding access
11859         type, diagnose properly the literal null.
11860
11861 2007-06-06  Pascal Obry  <obry@adacore.com>
11862
11863         * clean.adb (Clean_Archive): Use untouched casing for the archive name
11864         and the corresponding .deps file.
11865         (Clean_Interface_Copy_Directory): Use untouched casing for the library
11866         src directory. Minor code-clean-up. Use untouched casing for files
11867         read into the library src dir.
11868         (Clean_Library_Directory): Idem.
11869         (Parse_Cmd_Line): Accept new switch -aP
11870
11871 2007-06-06  Javier Miranda  <miranda@adacore.com>
11872             Ed Schonberg  <schonberg@adacore.com>
11873             Robert Dewar  <dewar@adacore.com>
11874             Eric Botcazou  <ebotcazou@adacore.com>
11875             Arnaud Charlet  <charlet@adacore.com>
11876
11877         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
11878         applicable to types that have the With_Type flag set. Returns the
11879         non-limited view of the type, if available, otherwise the type itself.
11880         For class-wide types, there is no direct link in the tree, so we have
11881         to retrieve the class-wide type of the non-limited view of the Etype.
11882         New attributes Static_Initialization and Static_Elaboration_Desired.
11883         Remove the pragma Thread_Body, and the associated flag
11884         Is_Thread_Body in entities, and all related code.
11885         (Suppress_Value_Tracking_On_Call): New flag
11886         E_Exception has Esize and Alignment fields
11887         (Universal_Aliasing): New function.
11888         (Set_Universal_Aliasing): New procedure.
11889         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
11890         (Check_Nested_Access): New procedure.
11891         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11892         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11893         (Related_Interface): New attribute. Present in dispatch table pointer
11894         components of records. Set to point to the entity of the corresponding
11895         interface type.
11896         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
11897         (Original_Access_Type): Remove, not needed.
11898         (Root_Type): Handle properly subtypes of class-wide-types.
11899         Update comments.
11900
11901         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
11902         class-wide types visible through limited-with clauses.
11903         (Try_Primitive_Operation): When examining all primitive operations of a
11904         tagged type, do not consider subprograms labeled as hidden unless they
11905         belong to a private generic type with a tagged parent.
11906         (Try_Object_Operation): Extensive rewriting, to handle properly various
11907         overloading cases, when several ancestors may have class-wide operations
11908         that are possible candidates, and when the overloaded functions return
11909         array types and have defaulted parameters so that the call may be
11910         interpreted as an indexing.
11911         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
11912         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
11913         successive actuals before analyzing the call itself.
11914         (Try_Primitive_Operation): A primitive operation is compatible with the
11915         prefix if the prefix has a synchronized type and the type of the formal
11916         is its corresponding record, as can be the case when the primitive
11917         operation is declared outside of the body of the type.
11918         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
11919         perform homonym traversal, looking for class-wide operation matches
11920         (formerly done in statements of Try_Class_Wide_Operation). Matches on
11921         access parameters are now restricted to anonymous access types.
11922         (Mark_Allocator): An allocator with a discriminant association parent is
11923         a coextension.
11924         (Try_One_Prefix_Interpretation): If the type of the object is
11925         incomplete, as can be happen when it is a limited view obtained through
11926         a limited_with_clause, the selected component is not part of a prefixed
11927         call.
11928         (Complete_Object_Operation): Diagnose properly an object that is not
11929         aliased when the corresponding controlling formal is an access
11930         parameter.
11931         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
11932         ambiguous calls in prefixed notation, where two primitives differ only
11933         in that the controlling argument of one is an access parameter.
11934
11935         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
11936         whether a function that returns an unconstrained type can be inlined.
11937         (Process_Formals): Diagnose properly the illegal use of an incomplete
11938         type in the profile of an access_to_subprogram declaration.
11939         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
11940         operations are attached to the corresponding record.
11941         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
11942         When processing a primitive of a concurrent type which implements an
11943         interface change the type of all controlling formals to that of the
11944         corresponding record type.
11945         (Check_Synchronized_Overriding): Relax the conditional logic when trying
11946         to determine the tagged type to which a primitive belongs.
11947         (Check_Conventions): Capture condition to ignore a primitive operation
11948         (which is shared between the loop in Check_Conventions and the one in
11949         Check_Convention) in a new local function Skip_Check.
11950         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
11951         confusion with Check_Conventions' own Prim_Op local variable.
11952         (Create_Extra_Formals): Test for a tagged result type rather than a
11953         controlling result when determining whether to add a BIP_Alloc_Form
11954         formal and a BIP_Final_List formal to the function.
11955         (Check_Conformance); For parameters that are anonymous access types,
11956         subtype conformance requires that the not null and the constant
11957         indicators must match
11958         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
11959         to retrieve the appropriate type when processing a concurrent type
11960         declared within a generic. Minor comment reformatting. Change invocation
11961         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
11962         mitive.
11963         (Analyze_Subprogram_Body): If the return type of a function is an
11964         anonymous access to the limited view of a class-wide type, and the
11965         non-limited view of the type is available, update the type of the
11966         function so that code can be generated.
11967         (Process_Formals): In case of access-subtype itype whose designated
11968         type is also an itype (situation that happens now with access to
11969         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
11970         attribute to avoid backend problems.
11971         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
11972         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
11973         anonymous types' designated types are same before testing
11974         Subtypes_Statically_Match.
11975         (Create_Extra_Formals): Test for a named access parameter that is a
11976         controlling formal as an additional condition for adding an
11977         accessibility level formal. This can occur in the subp type created for
11978         dispatching calls in Expand_Dispatching_Call, and allows calling
11979         Create_Extra_Formals from that procedure rather than special-casing the
11980         extra formals there.
11981         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
11982         when the function has a controlling result.
11983         (Check_Returns): Add much more knowledge of the optimization of local
11984         raise statements to gotos, to retain proper warnings in this case.
11985         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
11986         nodes when looking for last statement.
11987
11988         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
11989         class-wide types visible through limited with clauses.
11990         (Add_One_Interp): If the operands are anonymous access types, the
11991         predefined operator on universal_access is immediately visibles
11992         (Find_Unique_Type): Handle anonymous access to subprogram types just as
11993         other anonymous access types.
11994         (Disambiguate): Take into account CIL convention.
11995         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
11996
11997 2007-06-06  Robert Dewar  <dewar@adacore.com>
11998
11999         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12000         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12001         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12002         Fix lower bound of tables.
12003         Add rep clauses.
12004
12005         * nlists.adb: Ditto.
12006         (Prev_Node, Next_Node): Change index type to Int so that it properly
12007         covers the range First_Node_Id - 1 up.
12008
12009 2007-06-06  Javier Miranda  <miranda@adacore.com>
12010             Ed Schonberg  <schonberg@adacore.com>
12011             Bob Duff  <duff@adacore.com>
12012             Hristian Kirtchev  <kirtchev@adacore.com>
12013
12014         * exp_aggr.ads, exp_aggr.adb: 
12015         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12016         in extension aggregates.
12017         (Flatten): Other conditions being met, an aggregate is static if the
12018         low bound given by component associations is different from the low
12019         bound of the base index type.
12020         (Packed_Array_Aggregate_Handled): If the component type is itself a
12021         packed array or record, the front-end must expand into assignments.
12022         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12023         Init_Pr, instead of Ancestor_Is_Expression.
12024         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12025         coextension chain root, either generate a list controller or use the
12026         already existing one.
12027         (Static_Array_Aggregate): New procedure to construct a positional
12028         aggregate that can be handled by the backend, when all bounds and
12029         components are compile-time known constants.
12030         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12031         types covering interface types into assignments.
12032         (Replace_Type): move to Build_Record_Aggr_Code.
12033         (Expand_Record_Aggr_Code): if the target of the aggregate is an
12034         interface type, convert to the definite type of the aggregate itself,
12035         so that needed components are visible.
12036         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12037         components and the context is an extended return statement do not
12038         create a transient block for it, to prevent premature finalization
12039         before the return is executed.
12040         (Gen_Assign): Do not generate a call to deep adjust routine if the
12041         component type is itself an array of controlled (sub)-components
12042         initialized with an inner aggregate.
12043         (Component_Check): New name for Static_Check. This name is now more
12044         appropriate, and documentation is added which was missing.
12045         (Component_Check): Add test for bit aligned component value
12046         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12047         Tagged_Comps, name is more appropriate given added function below.
12048         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12049
12050 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12051             Javier Miranda  <miranda@adacore.com>
12052             Robert Dewar  <dewar@adacore.com>
12053
12054         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12055         Terminated: Add unchecked type conversion from System.Address to
12056         System.Tasking.Task_Id when calling the predefined primitive
12057         _disp_get_task_id.
12058         Disable new Ada 05 accessibility check for JVM.NET targets, which
12059         cannot be implemented in a practical way.
12060         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12061         the sources always references the tag of the actual object. Therefore,
12062         if 'Tag is applied in the sources to class-wide interface objects we
12063         generate code that displaces "this" to reference the base of the object.
12064         (Expand_N_Attribute_Reference, case Size): Return specified size if
12065         known to front end.
12066         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12067         has code that displaces the pointer of the object to manage interface
12068         types. However this code must not be executed when the prefix is a
12069         subprogram. This bug caused the wrong expansion of the internally
12070         generated assignment that fills the dispatch table when the primitive
12071         is a function returning a class-wide interface type.
12072         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12073         Set_Attribute_Name for Name_Unaligned_Valid.
12074
12075 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12076             Gary Dismukes  <dismukes@adacore.com>
12077
12078         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12079         If the initialization is the equivalent aggregate of the initialization
12080         procedure of the type, do not remove it.
12081         (Expand_N_Attribute_Definition_Clause): Exclude access variables
12082         initialized to null from having their expression reset to empty and
12083         note this exception in the comment.
12084
12085 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12086             Robert Dewar  <dewar@adacore.com>
12087             Ed Schonberg  <schonberg@adacore.com>
12088             Gary Dismukes  <dismukes@adacore.com>
12089
12090         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
12091         Add "with" and "use" clauses for Sem_Attr.
12092         (Expand_Current_Value): Do not replace occurences of attribute
12093         references where the prefix must be a simple name.
12094
12095         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
12096         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
12097         Attribute_Requires_Simple_Name_Prefix.
12098         (Name_Modifies_Prefix): Body of new function.
12099         (Requires_Simple_Name_Prefix): Body of new function.
12100         (Resolve_Attribute, case Access): Improve error message for case of
12101         mismatched conventions.
12102         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
12103         incomplete type.
12104         (Analyze_Attribute, case 'Access): If the type of the prefix is a
12105         constrained subtype for a nominal unconstrained type, use its base type
12106         to check for conformance with the context.
12107         (Resolve_Attribute): Remove test of the access type being associated
12108         with a return statement from condition for performing accessibility
12109         checks on access attributes, since this case is now captured by
12110         Is_Local_Anonymous_Access.
12111         (Analyze_Access_Attribute): Set Address_Taken on entity
12112         (Analyze_Attribute, case Address): Set Address_Taken on entity
12113         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
12114         validating an access attribute whose prefix is a current instance.
12115         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
12116         applied to dispatching operations, if freezing is required then we set
12117         the attribute Has_Delayed_Freeze in the prefix's entity.
12118         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
12119         current scope if access of local subprogram taken
12120         (Analyze_Access_Attribute): Check legality of self-reference even if the
12121         expression comes from source, as when a single component association in
12122         an aggregate has a box association.
12123         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
12124         the prefix if it is a protected operation and the attribute is
12125         Unrestricted_Access.
12126         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
12127         reference to the base type of the context, to force a constraint check
12128         when the context is an access subtype with an explicit constraint.
12129         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
12130         node is rewritten as an interface conversion. leave unanalyzed after
12131         resolution, to ensure that type checking against the context will take
12132         place.
12133
12134 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12135             Javier Miranda  <miranda@adacore.com>
12136             Robert Dewar  <dewar@adacore.com>
12137
12138         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
12139         wrapper when the full view of the controlling type of an inherited
12140         function that dispatches on result implements interfaces.
12141         (Expand_N_Object_Declaration): In cases where the type of the
12142         declaration is anonymous access, create finalization list for it.
12143         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
12144         if the object has no explicit initialization, to match description of
12145         functionality of pragam Persistent_BSS.
12146         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
12147         new function to build static aggregates, to replace initialization call
12148         when static initialization is desired.
12149         (Freeze_Type): Generate a list controller for an access type whenever
12150         its designated type has controlled anonymous access discriminants.
12151         (Build_Equivalent_Aggregate): New procedure to compute a static
12152         aggregate to be used as default initialization for composite types,
12153         instead of a generating a call to the initialization procedure for the
12154         type.
12155         (Build_Initialization_Call): When available, replace a call to the
12156         initialization procedure with a copy of the equivalent static aggregate
12157         for the type.
12158         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
12159         declarations for objects of a class-wide interface type, rather than
12160         just identifiers, to prevent visibility problems.
12161         (Expand_N_Object_Declaration): When expanding the declaration for an
12162         object of a class-wide interface type, preserve the homonym chain of
12163         the original entity before exchanging it with that of the generated
12164         renaming declaration.
12165         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
12166         active, because there is no way to handle the exception.
12167         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
12168         to do a minimum decoration of the Access_Disp_Table list.
12169         (Expand_Record_Controller): Avoid the addition of the controller between
12170         the component containing the tag of a secondary dispatch table and its
12171         adjacent component that stores the offset to the base of the object.
12172         This latter component is only generated when the parent type has
12173         discriminants ---documented in Add_Interface_Tag_Components).
12174         (Apply_Array_Size_Check): Removed, no longer needed.
12175         (Expand_N_Full_Type_Declaration): If the type has anonymous access
12176         components, create a Master_Entity for it only if it contains tasks.
12177         (Build_Init_Procedure): Suppress the tag assignment compiling under
12178         no run-time mode.
12179         (Freeze_Record_Type): Remove code associated with creation of dispatch
12180         table.
12181         (Init_Secondary_Tags): Update type of actuals when generating calls to
12182         Ada.Tags.Set_Offset_To_Top
12183         (Stream_Operation_OK): Disable use of streams compiling under no
12184         run-time mode
12185         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
12186         if Has_Init_Expression set.
12187         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
12188         Register_Primitive, which provides the same functionality.
12189         (Requires_Init_Proc): Return false in case of interface types.
12190         (Add_Secondary_Tables): Use the new attribute Related_Interface to
12191         cleanup the code.
12192         (Predefined_Primitive_Freeze): Do not assume that an internal entity
12193         is always associated with a predefined primitive because the internal
12194         entities associated with interface types are not predefined primitives.
12195         Therefore, the call to Is_Internal is replaced by a call to the
12196         function Is_Predefined_Dispatching_Operation.
12197         (Make_Eq_If): When generating the list of comparisons for the
12198         components of a given variant, omit the controller component that is
12199         present if the variant has controlled components.
12200
12201 2007-06-06  Javier Miranda  <miranda@adacore.com>
12202             Hristian Kirtchev  <kirtchev@adacore.com>
12203             Bob Duff  <duff@adacore.com>
12204
12205         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
12206         handle the creation of finalization lists and calls for nested
12207         coextensions when the root of the chains is part of a return statement.
12208         (Inside_A_Return_Statement): New function inside Complete_Coextension_
12209         Finalization.
12210         (Expand_Record_Equality): Skip components that are interface types.
12211         (Displace_Allocator_Pointer): Add missing support for interface subtypes
12212         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
12213         with Rewrite_Coextension. Change the condition for detecting coextension
12214         root nodes.
12215         (Is_Local_Access_Discriminant): Removed.
12216         (Rewrite_Coextension): New routine which rewrites a static coextension
12217         as a temporary and uses its unrestricted access in the construction of
12218         the outer object.
12219         (Complete_Coextension_Finalization): New routine. Generate finalization
12220         attachment calls to all delayed coextensions.
12221         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
12222         the allocator is not a coextension itself and has delayed coextensions.
12223         If the current allocator is controlled, but also a coextension, delay
12224         the generation of the finalization attachment call.
12225         Rename local variable "Node" to "Nod" in order to avoid confusion with
12226         "Elists.Node".
12227         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
12228         limited types that are not inherently limited. Such an allocator is
12229         illegal, but is generated by the expander for a return statement, to
12230         copy the result onto the secondary stack. This is the only case where a
12231         limited object can be copied. Generate code to displace the pointer
12232         to the object if the qualified expression is a class-wide interface
12233         object. Such displacement was missing and hence the copy of the object
12234         was wrong.
12235         (Apply_Accessibility_Check): Handle allocated objects initialized in
12236         place.
12237         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
12238         and Expand_Allocator_Expression. Allocating class-wide interface objects
12239         this routine displaces the pointer to the allocated object to reference
12240         the component referencing the corresponding secondary dispatch table.
12241         Expand_Allocator_Expression): Add missing support to allocate class-wide
12242         interface objects initialized with a qualified expression.
12243         (Get_Allocator_Final_List): Test for an anonymous access type that is a
12244         function result type, and use the finalization list associated with the
12245         function scope in that case (such an anonymous type should not be
12246         treated like an access parameter's type).
12247
12248 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12249             Gary Dismukes  <dismukes@adacore.com>
12250             Javier Miranda  <miranda@adacore.com>
12251
12252         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
12253         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
12254         required exception handler.
12255         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
12256         properly the case of a function whose return type is a limited
12257         class-wide interface type. Modify the code of the accessibility
12258         check to handle class-wide interface objects. In this case we need to
12259         displace "this" to reference the primary dispatch table to get access
12260         to the TSD of the object (to evaluate its accessibility level).
12261         (Expand_N_Extended_Return_Statement): Test for a tagged result type
12262         rather than a controlling result as one of the conditions for
12263         generating tests of the implicit BIP_Alloc_Form formal. The
12264         initialization assignment is also handled according to whether the
12265         result is tagged instead of controlling.
12266         In the case where the init assignment is inserted in the "then" part of
12267         the allocation conditional, rewrite the target to be a dereference of
12268         the implicit BIP_Object_Access formal.
12269         If the returned value is unconstrained and created on the secondary
12270         stack, mark the enclosing block and function so that the secondary
12271         stack is not reclaimed on return.
12272         Treat returns from functions with controlling results similarly to
12273         returns from functions with unconstrained result subtypes.
12274         If the object returned is unconstrained, and an allocator must be
12275         created for it, analyze the allocator once the block for the extended
12276         return is installed, to ensure that finalizable components
12277         of the expression use the proper finalization list. Guard the call to
12278         Move_Final_List with a check that there is something to finalize.
12279         (Make_Tag_Ctrl_Assignment): Use "old" handling
12280         of controlled type assignment for virtual machines, since new code uses
12281         unsupported features (such as direct access to bytes in memory).
12282
12283 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12284             Ed Schonberg  <schonberg@adacore.com>
12285
12286         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
12287         accessibility actual, check for the case of an aliased object that has
12288         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
12289         we fall into processing for the attribute rather than the name of the
12290         object.
12291         (Expand_Inline_Call): If an actual is a literal, and the corresponding
12292         formal has its address taken in the body, create a temporary to capture
12293         value.  If the return type is a limited interface, do not treat the
12294         return value as Controlled.
12295         (Is_In_Place_Function):  If the return type is a limited interface,
12296         treat as returning in place. The actual returned object may not always
12297         be limited, but the caller has to assume that it is returned in place.
12298         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
12299         context of an allocator, use the correct finalization chain (that is,
12300         the chain belonging to the access type, rather than the chain belonging
12301         to the current scope).
12302         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
12303         result type rather than a controlling result as a precondition for
12304         adding an allocation form actual to a build-in-place call.
12305         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
12306         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
12307         primitive in the dispatch tables. This work is now done by Make_DT when
12308         the type is frozen.
12309         (Register_Predefined_DT_Entry): Removed.
12310         (Add_Return): If end label is not present, use sloc of last statement
12311         for generated return statement in procedure, for better gdb behavior
12312         on expanded code.
12313         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
12314         object address nodes to ensure proper processing by routines like
12315         Insert_After*.
12316         (Expand_Call): Fix generation of validity check for parameter
12317         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
12318         the allocation form parameter if the result subtype is constrained,
12319         except when the function has a controlling result.
12320         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
12321         rather than Is_Controlled and Has_Controlled_Component, since we want to
12322         include class-wide result types in this treatment. Also test for a
12323         controlling result, since that also requires passing a finalization
12324         list.
12325         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
12326         even when the result subtype is constrained, to handle calls involving
12327         controlling results.
12328         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
12329         is now called even when the result subtype is constrained, to handle
12330         calls involving controlling results.
12331         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
12332         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
12333         now performs the test).
12334         (Make_Build_In_Place_Call_In_Object_Declaration):
12335         Add_Alloc_Form_Actual_* is now called even when the result subtype is
12336         constrained, to handle calls involving controlling results.
12337         (Add_Return): Accomodate rewritten pattern from local raise to goto
12338         transformation, so that we still recognize an transfer statement
12339         and do the right thing here in that case.
12340         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
12341         and end of subprogram code.
12342         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
12343         support for primitives that are functions (without formals) with a
12344         controlling result.
12345         (Inherited_From_Formal): If the actual subtype has not generic parent
12346         type, it is not an actual for a formal derived type, and there is no
12347         operation to inherit from the formal.
12348
12349 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12350             Thomas Quinot  <quinot@adacore.com>
12351
12352         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
12353         inserted cleanup code appropriately for GDB use.
12354         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
12355         exception handler for Deep_Adjust or Deep_Finalize.
12356         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
12357         Raise_From_Controlled_Operation is available, use a call to that
12358         subprogram instead of a plain "raise Program_Error" node to raise
12359         Program_Error if an exception is propagated from an Adjust or Finalize
12360         operation.
12361         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
12362         appears in the optional statement list of a triggering alternative, the
12363         scope actions can be inserted directly there, and not in the list that
12364         includes the asynchronous select itself.
12365
12366 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12367             Robert Dewar  <dewar@adacore.com>
12368             Hristian Kirtchev  <kirtchev@adacore.com>
12369
12370         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
12371         generated exception handler appropriately when debugging generated code.
12372         Deal properly with No_Exception_Propagation restriction mode.
12373         (Expand_N_Abort_Statement): Add an unchecked type conversion from
12374         System.Address to System.Tasking.Task_Id when processing the result of
12375         the predefined primitive _disp_get_task_id.
12376         (Expand_N_Asynchronous_Select): Clarify comment.
12377         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
12378         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
12379         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
12380         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
12381         privals and for generated call to Complete_Entry_Body, for better gdb
12382         behavior.
12383         (Copy_Result_Type): Utility to construct a parameter and result profile
12384         for protected functions whose return type is an anonymous access to
12385         subprogram.
12386         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
12387         call the above.
12388         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
12389         point when the local-raise-to-goto transformation has taken place.
12390
12391 2007-06-06  Javier Miranda  <miranda@adacore.com>
12392             Nicolas Setton  <setton@adacore.com>
12393
12394         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
12395         functionality when the backend is generating code.
12396         Otherwise any serious error
12397         reported by the backend calling the frontend routine Error_Msg
12398         changes the Compilation_Mode to Check_Semantics, disables the
12399         functionality of this routine and causes the generation of
12400         spureous additional errors.
12401
12402         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
12403         debugging information now generated by the compiler for fat-pointer
12404         types.
12405         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
12406         DWARF2/3.
12407         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
12408
12409 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12410
12411         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
12412         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12413         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
12414         For a remote call to a function with a classwide return type, apply an
12415         E.4(18) check to the returned value.
12416         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
12417         stream attributes of the designated type of an RACW, as they are not
12418         dispatching primitive operations.
12419
12420 2007-06-06  Geert Bosch  <bosch@adacore.com>
12421
12422         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
12423         negative literal
12424         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
12425         positive
12426         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
12427         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
12428         positive
12429         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
12430
12431 2007-06-06  Javier Miranda  <miranda@adacore.com>
12432
12433         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
12434         attribute compiling package Ada.Tags under No_Run_Time_Mode.
12435
12436 2007-06-06  Javier Miranda  <miranda@adacore.com>
12437
12438         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
12439         deallocation of class-wide interface objects.
12440         (Expand_Dispatching_Constructor_Call): Take into account that if the
12441         result of the dispatching constructor is an interface type, the
12442         function returns a class-wide interface type; otherwise the returned
12443         object would be actual. The frontend previously accepted returning
12444         interface types because Expand_Interface_Actuals silently performed
12445         the management of the returned type "as if" it were a class-wide
12446         interface type.
12447         (Expand_Dispatching_Constructor_Call): Replace call to
12448         Make_DT_Access_Action by direct call to Make_Function_Call.
12449
12450 2007-06-06  Robert Dewar  <dewar@adacore.com>
12451             Ed Schonberg  <schonberg@adacore.com>
12452
12453         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
12454         compute masking constant, since we now set Esize properly to the
12455         underlying size.
12456         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
12457         to match the alignment.
12458         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
12459         packed arrays of 8 bits or less.
12460
12461         * freeze.adb (Freeze_Entity): When freezing the formals of a
12462         subprogram, freeze the designated type of a parameter of an access type
12463         only if it is an access parameter.
12464         Increase size of C convention enumeration object
12465         (Freeze_Entity, array type case): Make sure Esize value is properly
12466         adjusted for the alignment if it is known.
12467         (Freeze_Entity, array type case): When checking bit packed arrays for
12468         the size being incorrect, check RM_Size, not Esize.
12469         (Freeze_Record_Type): Check for bad discriminated record convention
12470         (In_Exp_Body): Return true if the body is generated for a subprogram
12471         renaming, either an attribute renaming or a renaming as body.
12472         (Check_Itype): If the designated type of an anonymous access component
12473         is a non-protected subprogram type, indicate that it is frozen, to
12474         prevent out-of-scope freeze node at some subsequent call.
12475         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
12476         only if the subprogram is neither imported nor exported, as well as the
12477         NCA descriptor class if the subprogram is exported.
12478
12479 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12480             Arnaud Charlet  <charlet@adacore.com>
12481             Robert Dewar  <dewar@adacore.com>
12482             Gary Dismukes  <dismukes@adacore.com>
12483
12484         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
12485         default initialization on an imported object, when there is no
12486         initialization call generated for it.
12487         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
12488         restriction
12489
12490         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
12491         Static_Elaboration_Desired.
12492         Remove pragma Thread_Body.
12493         Implement a new pragma No_Body
12494         Removes the Explicit_Overriding pragma
12495         Remove Optional_Overriding pragma
12496         (Prag): Deal with Universal_Aliasing.
12497         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12498         Pragma_CIL_Constructor): New names.
12499
12500         * sem_cat.adb (Validate_Object_Declaration): An initialization that
12501         uses the equivalent aggregate of a type must be treated as an implicit
12502         initialization.
12503         (Get_Categorization): Check a unit for pragma Preelaborate only if it
12504         has none of the other categories.
12505         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
12506         to apply Import to an object renaming declaration.
12507
12508         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
12509         from a C++ class should be declared as limited and that it will be
12510         considererd limited.
12511         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
12512         should be declared as limited and that it will be considererd limited.
12513         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
12514         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
12515         (Analyze_Pragma): Deal with Universal_Aliasing.
12516         (Sig_Flags): Likewise.
12517         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
12518         (Overflow_Checks_Unsuppressed): New flag.
12519         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12520         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
12521         case of JVM or .NET targets, and compiling user code.
12522         Add debugging convenience routine rv
12523
12524 2007-06-06  Robert Dewar  <dewar@adacore.com>
12525
12526         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
12527         are interface type.
12528         (Build_Elementary_Input_Call): For floating-point use right type in the
12529         absence of strange size or stream size clauses.
12530         (Build_Elementary_Write_Call): Same fix
12531         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
12532         set to value that does not match base type size.
12533
12534 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12535
12536         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
12537         object of a limited type can be initialized with a call to a function
12538         that returns in place. If the limited type has unknown discriminants,
12539         and the underlying type is a constrained composite type, build an actual
12540         subtype from the function call, as is done for private types.
12541         (Side_Effect_Free): An expression that is the renaming of an object or
12542         whose prefix is the renaming of a object, is not side-effect free
12543         because it may be assigned through the renaming and its value must be
12544         captured in a temporary.
12545         (Has_Controlled_Coextensions): New routine.
12546         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
12547         as is done for other limited types.
12548         (Non_Limited_Designated_Type): new predicate.
12549         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
12550         objects.
12551         Remove all handling of with_type clauses.
12552
12553         * par-ch10.adb: Remove all handling of with_type clauses.
12554
12555         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
12556         checksum if the main source could not be parsed.
12557         (Loat_Unit): When processing a child unit, determine properly whether
12558         the parent unit is a renaming when the parent is itself a child unit.
12559         Remove handling of with_type clauses.
12560
12561         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
12562         (Set_Is_Static_Coextension): New procedure.
12563         (Has_Local_Raise): New function
12564         (Set_Has_Local_Raise): New procedure
12565         (Renaming_Exception): New field
12566         (Has_Init_Expression): New flag
12567         (Delay_Finalize_Attach): Remove because flag is obsolete.
12568         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
12569         Remove all handling of with_type clauses.
12570         (Exception_Junk): Can now be set in N_Block_Statement
12571
12572 2007-06-06  Vincent Celier  <celier@adacore.com>
12573             Robert Dewar  <dewar@adacore.com>
12574
12575         * frontend.adb (Frontend): Return immediately if the main source could
12576         not be parsed, because of preprocessing errors.
12577
12578         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
12579         (Gnat1drv): Exit with errors if the main source could not be parsed,
12580         because of preprocessing errors.
12581         (Check_Rep_Info): New procedure
12582
12583 2007-06-06  Robert Dewar  <dewar@adacore.com>
12584
12585         * g-hesorg.ads, g-heasor.ads,
12586         g-busorg.ads, g-bubsor.ads: Update documentation
12587         GNAT.Heap/Bubble_Sort_G is now pure
12588
12589 2007-06-06  Robert Dewar  <dewar@adacore.com>
12590
12591         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
12592
12593 2007-06-06  Robert Dewar  <dewar@adacore.com>
12594             Ed Schonberg  <schonberg@adacore.com>
12595
12596         * g-comlin.ads, g-comlin.adb: 
12597         Add new warning for renaming of function return objects
12598
12599         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
12600         (Tree_Read): Use size of object instead of type'object_size, since the
12601         latter is incorrect for packed array types.
12602         (Tree_Write): Same fix
12603
12604         * opt.ads: Add new warning for renaming of function return objects
12605         (Generating_Code): New boolean variable used to indicate that the
12606         frontend as finished its work and has called the backend to process
12607         the tree and generate the object file.
12608         (GCC_Version): Is now private
12609         (Static_Dispatch_Tables): New constant declaration.
12610         (Overflow_Checks_Unsuppressed): New flag.
12611         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12612         (List_Closure): New flag for gnatbind (-R)
12613         Zero_Formatting: New flag for gnatbind (-Z)
12614         (Special_Exception_Package_Used): New flag.
12615         (Warn_On_Unrepped_Components): New flag.
12616
12617         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
12618         unit is a compilation unit, rather than relying on its scope, so that
12619         Standard can be renamed.
12620         (Analyze_Object_Renaming): Add new warning for renaming of function
12621         return objects.
12622         Also reject attempt to rename function return object in Ada 83 mode.
12623         (Attribute_Renaming): In case of tagged types, add the body of the
12624         generated function to the freezing actions of the type.
12625         (Find_Type): A protected type is visible right after the reserved word
12626         "is" is encountered in its type declaration. Set the entity and type
12627         rather than emitting an error message.
12628         (New_Scope): Properly propagate Discard_Names to inner scopes
12629         (Check_Nested_Access): New procedure.
12630         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
12631         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12632
12633         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
12634         Add new warning for renaming of function return objects
12635         (Check_References): Suppress warnings for objects whose type or
12636         base type has Warnings suppressed.
12637         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
12638         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
12639
12640 2007-06-06  Vincent Celier  <celier@adacore.com>
12641             Emmanuel Briot  <briot@adacore.com>
12642             Olivier Hainque  <hainque@adacore.com>
12643
12644         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
12645         absolute value of Header.Block_Size when displaying the freed physical
12646         memory in traces.
12647         (Allocate): Compute Storage_Address using Integer_Address, not
12648         Storage_Offset, because the range of Storage_Offset may not be large
12649         enough.
12650         (Configure): New parameter Low_Level_Traces
12651         (Allocate, Deallocation, Free_Physically): Added low-level traces
12652         (Configure): new parameter Errors_To_Stdout.
12653         (Output_File): new subprogram
12654         (Deallocate, Dereference): Send error messages to the proper stream
12655         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
12656         documented. Previous code would send it to the current output file
12657         defined in GNAT.IO, which might not be stdout
12658         (Is_Valid): Adjust comment to mention that a positive reply means that
12659         Header_Of may be used to retrieve the allocation header associated with
12660         the subprogram Storage address argument. Return False early if this
12661         address argument is misaligned.
12662
12663 2007-06-06  Vincent Celier  <celier@adacore.com>
12664
12665         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
12666         switch -P
12667         (ASIS_Main): New global variable
12668         (Get_Closure): New procedure
12669         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
12670         check, metric or pretty. Call Get_Closure in this case.
12671         (Check_Files): For GNAT LIST, check all sources of all projects when
12672         All_Projects is True.
12673         (GNATCmd): Accept -U for GNAT LIST
12674
12675 2007-06-06  Vincent Celier  <celier@adacore.com>
12676
12677         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
12678         has been specified
12679         Correct error message when invocation of the linker fails
12680         Add explicit size clause for the C imported variables
12681         Object_List_File_Supported and Using_GNU_Linker to emphasize that
12682         we expect char size.
12683         Read target parameters earlier, since this is needed to set
12684         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
12685         targets.
12686
12687 2007-06-06  Vincent Celier  <celier@adacore.com>
12688
12689         * gnatls.adb: 
12690         Add 3 spaces before the default project directory when displaying
12691         the project search path.
12692         Add new command line switch '-l' to display license information.
12693
12694 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12695
12696         * gmem.c: Add support for timestamps on memory operations.
12697
12698         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
12699         operations (not used currently, just foundation for future
12700         enhancements). Add possibility to perform full dump of gmem.out file.
12701         (Print_Back_Traces): Declare accesses to root arrays constants since
12702         they aren't modified.
12703         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
12704
12705 2007-06-06  Vincent Celier  <celier@adacore.com>
12706
12707         * gnatsym.adb: Update Copyright notice
12708         (Parse_Cmd_Line): Accept new switch -D
12709         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
12710          file.
12711
12712         * prj.ads (Policy): New policy Direct
12713         (Yes_No_Unknown): New enumeration type
12714         (Project_Data): New component Libgnarl_Needed
12715
12716         * prj-nmsc.adb (Check_For_Source): When recording a source file make
12717         use the untouched pathname casing.
12718         (Get_Directories): Ensure that the Display_Exec_Directory is using the
12719         proper casing on non case-sensitive platforms like Windows.
12720         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
12721         on all platforms, as it is not possible to know which one is allowed
12722         before processing the project files.
12723         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
12724         specified when symbol policy is Direct. Check that when there is a
12725         symbol file defined (either by default or with attribute
12726         Library_Symbol_File) it is not the same as the reference symbol file.
12727         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
12728         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
12729         extending projects.
12730         (Record_Ada_Source): Record a source that has been locally removed in an
12731         imported project.
12732
12733         * symbols.ads (Policy): New policy Direct
12734
12735         * symbols-vms.adb (Initialize): Take new policy Direct in case
12736         statement
12737
12738 2007-06-06  Vincent Celier  <celier@adacore.com>
12739
12740         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
12741         Correct obvious bug (return Dir; instead of return Directory;).
12742         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
12743
12744 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12745
12746         * g-pehage.adb (Produce): Open output files in Binary mode, so that
12747         they have UNIX line endings (LF only) even on Windows, and thus pass
12748         all GNAT style checks.
12749
12750 2007-06-06  Emmanuel Briot  <briot@adacore.com>
12751
12752         * g-regpat.adb (Quote): Fix improper quoting of '.'
12753
12754 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12755
12756         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
12757         default, set False on a per-runtime basis.
12758         (Need_Netdb_Buffer): New constant.
12759
12760         * g-socket.ads, g-socket.adb: Import new package
12761         GNAT.Sockets.Thin.Task_Safe_NetDB.
12762         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
12763         binding to obtain proper message.
12764         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
12765         Replace various occurrences of Arry (Arry'First)'Address with the
12766         equivalent Arry'Address (GNAT always follows implementation advice from
12767         13.3(14)).
12768         (Get_Host_By_Address, Get_Host_By_Name,
12769         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
12770         instead, rely on platform-specific task safe netdb operations provided
12771         by g-socthi.
12772
12773         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
12774         parameter Process_Blocking_IO.
12775         (Host_Error_Messages): Add stub body.
12776         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12777         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
12778         Safe_Getservbyport): Move functions into new child package
12779         Task_Safe_NetDB.
12780         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
12781         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
12782         (In_Addr): Add alignment clause.
12783
12784 2007-06-06  Robert Dewar  <dewar@adacore.com>
12785
12786         * g-trasym.ads, g-traceb.ads: Update list of supported targets
12787         Add note about symbolic traceback
12788
12789 2007-06-06  Pascal Obry  <obry@adacore.com>
12790
12791         * hostparm.ads (Normalized_CWD): Use the host directory separator
12792         instead of the hardcoded forward slash which is not the proper
12793         character on Windows for example.
12794         (Java_VM): Removed.
12795
12796 2007-06-06  Vincent Celier  <celier@adacore.com>
12797             Arnaud Charlet  <charlet@adacore.com>
12798
12799         * a-clrefi.adb, a-clrefi.ads: New files
12800
12801         * impunit.adb: Add s-os_lib in the list of user visible units.
12802         (Non_Imp_File_Names_95): Add a-clrefi to this list
12803         Remove obsolete run-time entries.
12804         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
12805          "a-exetim" -- Ada.Execution_Time
12806          "a-extiti" -- Ada.Execution_Time.Timers
12807
12808         * mlib-prj.ads, mlib-prj.adb
12809         (Build_Library): Use untouched object dir and library dir. At the
12810         same time makes sure that the checks are done using the canonical
12811         form. Removes hard-coded directory separator and use the proper host
12812         one instead.
12813         (Process_Project): Do not look in object directory to check if libgnarl
12814         is needed for a library, if there is no object directory.
12815         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
12816         linking.
12817         (Build_Library): When invoking gnatbind, use a response file if the
12818         total size of the arguments is too large.
12819
12820         * Makefile.rtl: (g-sttsne): New object file.
12821         Add entry for a-clrefi, s-utf_32, System.Exceptions
12822
12823         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
12824         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
12825         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
12826         Change g-string to s-string, g-os_lib to s-os_lib
12827         Change all g-utf_32 references to s-utf_32
12828
12829 2007-06-06  Tristan Gingold  <gingold@adacore.com>
12830             Olivier Hainque  <hainque@adacore.com>
12831
12832         * init.c: Do not adjust IP of an imported VMS exception of ia64.
12833         LIB$STOP is called to raise an exception and the IP of the exception
12834         is the instruction right after the call.
12835         (__gnat_adjust_context_for_raise, AIX): Implement.
12836         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
12837          adjust_context_for_raise before Raise_From_Signal_Hanler.
12838         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
12839         siginfo is passed to the handler, necessary to let the zcx propagation
12840         engine unwind past it.
12841
12842 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12843
12844         * initialize.c (__gnat_initialize for vxworks):  Update documentation
12845         on the ZCX support, using different sets of crtstuff objects than with
12846         GCC 3.4.
12847
12848 2007-06-06  Robert Dewar  <dewar@adacore.com>
12849
12850         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
12851         spec from body
12852         (Layout_Type): Fix recomputation of size from alignment.
12853
12854 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12855             Javier Miranda  <miranda@adacore.com>
12856
12857         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
12858         association in an instance.
12859         (Copy_Generic_Node): If the node is a string literal, no need to copy
12860         its descendants.
12861         (Is_Generic_Formal): For a formal subprogram, the declaration is the
12862         grandparent of the entity.
12863         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
12864         to simplify handling of formal interfaces that derive from other formal
12865         interfaces.
12866         (Instantiate_Subprogram_Body): The defining unit name of the body of
12867         the instance should be a defining identifier.
12868         (Install_Formal_Packages): make global to the package, for use in
12869         instantiations of child units.
12870         (Analyze_Package_Instantiation): Do not attempt to set information on an
12871         enclosing master of an entry when expansion is disabled.
12872         (Instantiate_Type): If the actual is a tagged synchronized type and the
12873         generic ancestor is an interface, create a generic actual for the
12874         corresponding record.
12875         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
12876         declaration, to ensure that the interface list is processed correctly.
12877         (Inline_Instance_Body): If enclosing scope is an instance body, remove
12878         its entities from visibiility as well.
12879         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
12880         given with a named association, analyze the expression only, not the
12881         discriminant association itself.
12882         (Reset_Entity): If the analysis of a selected component is transformed
12883         into an expanded name in the prefix of a call with parameters, do not
12884         transform the original node into an expanded name, to prevent visibility
12885         errors in the case of nested generics.
12886         (Check_Private_View): For an array type, check whether the index types
12887         may need exchanging.
12888
12889 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12890             Vincent Celier  <celier@adacore.com>
12891
12892         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
12893         since both are separated.
12894         Add support for imported CIL packages.
12895         Add further special handling of "value_type" for CIL.
12896         Add special handling of pragma Import for CIL.
12897
12898         * make.ads, make.adb: When switch -eS is used, direct all outputs to
12899         standard output instead of standard error, except errors.
12900         (Absolute_Path): Use untouched casing for the parent directory.
12901         (Add_Library_Search_Dir): Use the untouched directory name.
12902         (Add_Source_Search_Dir): Idem.
12903         (Change_To_Object_Directory): Update output to use proper casing.
12904         (Create_Binder_Mapping_File): Use the untouched filename to set
12905         ALI_Name.
12906         (Gnatmake): Use untouched library and executable directory names.
12907         (Insert_Project_Sources): Use untouched filename for spec and body.
12908         (Is_In_Object_Directory): Use untouched object directory.
12909         (Mark_Directory): Idem.
12910         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
12911         contains the non-canonical filename in all cases.
12912         (Change_To_Object_Directory): In verbose mode, display the name of the
12913         object directory we're changing to.
12914         (Compile_Sources): Make sure, when a project file is used, to compile
12915         the body of the unit, when there is one, even when only the spec is
12916         recorded in an ALI file.
12917         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
12918         spec to the body.
12919         (Report_Compilation_Failed): New procedure
12920         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
12921         procedures moved from the spec to the body.
12922         (Extract_Failure): Removed, not used
12923         Replace explicit raises of exception Bind_Failed and Link_Failed with
12924         calls to Make_Failed with the proper message.
12925         Replace explicit raises of exception Compilation_Failed with calls to
12926         procedure Report_Compilation_Failed.
12927         (Initialize): Create mapping files unconditionally when using project
12928         files.
12929
12930         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12931         Pragma_CIL_Constructor): New names.
12932
12933         * targparm.ads, targparm.adb
12934         (Compiler_System_Version): Removed, no longer used.
12935         (Get_Target_Parameters): Relax checks on system.ads validity. Add
12936         handling of two new system flags: JVM and CLI.
12937
12938 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12939             Arnaud Charlet  <charlet@adacore.com>
12940
12941         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
12942         time, use the default s-interr body that provides interrupt support
12943         based on signals.
12944         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
12945         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
12946         g-soccon.ads, and s-taprop.adb for the marte run time.
12947         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
12948         timers are supported on marte.
12949         (EH_MECHANISM for marte): Do not use ZCX.
12950         (THREADSLIB for marte): Use -lmarte.
12951         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
12952         Add mlib-tgt-specific.o to gnatmake objects
12953         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
12954         longer of MLib.Tgt.
12955         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
12956         6, either kernel or rtp, use a specialized version of s-osinte.ads.
12957
12958 2007-06-06  Pascal Obry  <obry@adacore.com>
12959
12960         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
12961
12962 2007-06-06  Vincent Celier  <celier@adacore.com>
12963
12964         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
12965         separator, use instead the proper host directory separator.
12966         (Copy_ALI_Files): Make sure that an already existing ALI file in the
12967         ALI copy dir is writable, before doing the copy.
12968
12969         * mlib-utl.ads, mlib-utl.adb: 
12970         (Gcc): If length of command line is too long, put the list of object
12971         files in a response file, if this is supported by the platform.
12972         (Ar): If invocation of the archive builder is allowed to be done in
12973         chunks and building it in one shot would go above an OS dependent
12974         limit on the number of characters on the command line, build the archive
12975         in chunks.
12976
12977 2007-06-06  Vincent Celier  <celier@adacore.com>
12978
12979         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
12980         of specified object file is not equal to base name of source.
12981
12982 2007-06-06  Javier Miranda  <miranda@adacore.com>
12983             Hristian Kirtchev  <kirtchev@adacore.com>
12984             Ed Schonberg  <schonberg@adacore.com>
12985
12986         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
12987         the full type declaration.
12988         (Analyze_Component_Declaration): Add local variable E to capture the
12989         initialization expression of the declaration. Replace the occurences of
12990         Expression (N) with E.
12991         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
12992         limited interface object with a function call.
12993         (Array_Type_Declaration): If the declaration lacks subtype marks for
12994         indices, create a simple index list to prevent cascaded errors.
12995         (Is_Null_Extension): Ignore internal components created for secondary
12996         tags when checking whether a record extension is a null extension.
12997         (Check_Abstract_Interfaces): Add missing support for interface subtypes
12998         and generic formals.
12999         (Derived_Type_Declaration): Add missing support for interface subtypes
13000         and generic formals.
13001         (Analyze_Object_Declaration): If an initialization expression is
13002         present, traverse its subtree and mark all allocators as static
13003         coextensions.
13004         (Add_Interface_Tag_Component): When looking for components that may be
13005         secondary tags, ignore pragmas that can appear within a record
13006         declaration.
13007         (Check_Abstract_Overriding): an inherited function that dispatches on
13008         result does not need to be overriden if the controlling type is a null
13009         extension.
13010         (Mentions_T): Handle properly a 'class attribute in an anonymous access
13011         component declaration, when the prefix is an expanded name.
13012         (Inherit_Component): If the derivation is for a private extension,
13013         inherited components remain visible and their ekind should not be set
13014         to Void.
13015         (Find_Type_Of_Object): In the case of an access definition, always set
13016         Is_Local_Anonymous_Access. We were previously not marking the anonymous
13017         access type of a return object as a local anonymous type.
13018         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13019         range with character literal bounds.
13020         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13021         (Access_Subprogram_Declaration): Indicate that the type declaration
13022         depends on an incomplete type only if the incomplete type is declared
13023         in an open scope.
13024         (Analyze_Subtype_Declaration): Handle properly subtypes of
13025         synchronized types that are tagged, and that may appear as generic
13026         actuals.
13027         (Access_Subprogram_Declaration): An anonymous access to subprogram can
13028         appear as an access discriminant in a private type declaration.
13029         (Add_Interface_Tag_Components): Complete decoration of the component
13030         containing the tag of a secondary dispatch table and the component
13031         containing the offset to the base of the object (this latter component
13032         is only generated when the parent type has discriminants --as documented
13033         in this routine).
13034         (Inherit_Components): Use the new decoration of the tag components to
13035         improve the condition that avoids inheriting the components associated
13036         with secondary tags of the parent.
13037         (Build_Discriminanted_Subtype): Indicate to the backend that the
13038         size of record types associated with dispatch tables is known at
13039         compile time.
13040         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13041         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13042         to include task, protected, and synchronized interfaces as limited
13043         interfaces.
13044         (Process_Discriminants): Remove the setting of
13045         Is_Local_Anonymous_Access on the type of (anonymous) access
13046         discriminants of nonlimited types.
13047         (Analyze_Interface_Type_Declaration): Complete the decoration of the
13048         class-wide entity it is is already present. This situation occurs if
13049         the limited-view has been previously built.
13050         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13051         field.
13052         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13053         Related_Interface.
13054
13055 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13056
13057         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13058         of the type that specify the position of interface tags when the type
13059         inherits discriminated array components from the parent type.
13060         If a component is initialized with a box, check for the presence of a
13061         default expression in its declaration before using its default
13062         initialization procedure.
13063         (Resolve_Record_Aggregate): If a component is box-initialized, and the
13064         component type has a discriminants, create a partial aggregate for it
13065         by copying the discriminants of the component subtype.
13066         Reject attempt to initialize a discriminant with a box.
13067         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13068         associated with dispatch tables is known at compile time.
13069         (Get_Value): If an association in a record aggregate has a box
13070         association, and the corresponding record component has a default
13071         expression, always copy the default expression, even when the
13072         association has a single choice, in order to create a proper
13073         association for the expanded aggregate.
13074
13075 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13076             Robert Dewar  <dewar@adacore.com>
13077
13078         * par-ch12.adb (P_Generic_Associations): The source position of an
13079         Others association is that of the others keyword, not that of the token
13080         that follows the box.
13081         (P_Formal_Type_Definition): Handle formal access types that carry a
13082         not null indicator.
13083
13084         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13085         multiple identifier are present, save Scan_State before scanning the
13086         colon, to ensure that separate trees are constructed for each
13087         declaration.
13088         (P_Identifier_Declarations): For object declaration, set new flag
13089         Has_Init_Expression if initialization expression present.
13090         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
13091         Improve NOT NULL error messages
13092
13093 2007-06-06  Robert Dewar  <dewar@adacore.com>
13094
13095         * par-ch4.adb: (P_Name): Recover from literal used as name
13096
13097 2007-06-06  Vincent Celier  <celier@adacore.com>
13098
13099         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
13100         defaulted to False.
13101         In the "not" case, recursive call with Complemented set to True.
13102         Do not allow "or" or "and" operators when Complemented is True.
13103
13104 2007-06-06  Vincent Celier  <celier@adacore.com>
13105
13106         * prj.adb (Project_Empty): Gives default value for new component
13107         Libgnarl_Needed
13108
13109         * prj-attr.ads: Minor reformatting
13110
13111         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
13112         directory using the untouched casing.
13113         (For_All_Source_Dirs): Idem.
13114
13115         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
13116         directories specified with switches -aP.
13117         (Add_Search_Project_Directory): New procedure
13118         (Initialize_Project_Path): Put the directories in table
13119         Search_Directories in the project search path.
13120         (Initialize_Project_Path): For VMS, transform into canonical form the
13121         project path.
13122
13123 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13124
13125         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
13126         true if configurable run-time or No_Run_Time is set.
13127         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
13128         processing an unit which is not the one being compiled.
13129
13130 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13131
13132         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
13133         Replace UC by Ada.UC
13134
13135         * s-bitops.adb: Get rid of System.Pure_Exceptions.
13136         Replace UC by Ada.UC
13137
13138 2007-06-06  Robert Dewar  <dewar@adacore.com>
13139
13140         * scng.adb: (Check_End_Of_Line): Deal with very long lines
13141
13142 2007-06-06  Robert Dewar  <dewar@adacore.com>
13143
13144         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
13145         Remove no longer used nodes.
13146
13147 2007-06-06  Javier Miranda  <miranda@adacore.com>
13148             Ed Schonberg  <schonberg@adacore.com>
13149             Robert Dewar  <dewar@adacore.com>
13150
13151         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
13152         on obsolescent withed unit in case of limited-withed units.
13153         (Analyze_Compilation_Unit): Add guard to code that removed an
13154         instantiation from visibility, to prevent compiler aborts when
13155         instantiation is abandoned early on.
13156         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
13157         current unit being analyzed, and Distinguish local incomplete types
13158         from limited views of types declared elsewhere.
13159         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
13160         to state that the class-wide entity is shared by the limited-view
13161         and the full-view.
13162         (Analyze_With_Clause): Improve placement of flag for case of
13163         unimplemented unit.
13164         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
13165         manner similar to GNAT.Current_Exception. This is a violation of
13166         restriction (No_Exception_Propagation), and also inhibits the
13167         optimization of local raise to goto.
13168         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
13169         and if so set Most_Recent_Exception_Used flag in Opt, and also check
13170         for violation of restriction No_Exception_Propagation.
13171
13172 2007-06-06  Javier Miranda  <miranda@adacore.com>
13173             Hristian Kirtchev  <kirtchev@adacore.com>
13174             Gary Dismukes  <dismukes@adacore.com>
13175
13176         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
13177         use of entity Exception_Occurrence if it is not available in the
13178         target run-time.
13179
13180         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
13181         concurrent types are declared within an Ada 2005 generic, build their
13182         corresponding record types since they are needed for overriding-related
13183         semantic checks.
13184         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
13185         protected type does not implement a task interface or a nonlimited
13186         interface.
13187         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
13188         type does not implement a protected interface or a nonlimited interface.
13189         (Single_Task_Declaration, Single_Protected_Declaration): use original
13190         entity for variable declaration, to ensure that debugging information
13191         is correcty generated.
13192         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
13193         routines if the expander is not active.
13194         (Analyze_Task_Body): Mark all handlers to stop optimization of local
13195         raise, since special things happen for task exception handlers.
13196
13197         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
13198         concurrent types declared within a generic.
13199         (Check_Dispatching_Operation): Do not emit warning about late interface
13200         operations in the context of an instance.
13201         (Check_Dispatching_Call): Remove restriction against calling a
13202         dispatching operation with a limited controlling result.
13203         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
13204         Register_Interface_DT_Entry by calls to Register_Primitive.
13205         (Check_Dispatching_Formals): Handle properly a function with a
13206         controlling access result.
13207
13208 2007-06-06  Robert Dewar  <dewar@adacore.com>
13209             Arnaud Charlet  <charlet@adacore.com>
13210
13211         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
13212         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
13213         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
13214         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
13215         message when using a VM, since this attribute is not supported.
13216         (Analyze_Record_Representation_Clause): Give unrepped component warnings
13217
13218         * usage.adb: Add new warning for renaming of function return objects
13219         Indicate that -gnatwp and -gnatwP concern front-end inlining
13220         Add line for -gnatyg
13221         Add usage information for -gnatw.c/C
13222
13223 2007-06-06  Robert Dewar  <dewar@adacore.com>
13224             Ed Schonberg  <schonberg@adacore.com>
13225
13226         * sem_ch5.adb
13227         (Find_Var): Do not consider function call in test for infinite loop
13228         warning if warnings set off for function entity.
13229         (One_Bound): Do not create a temporary for a loop bound if it is a
13230         character literal.
13231         (Analyze_Assignment): Traverse the right hand side of an assignment and
13232         mark all allocators as static coextensions.
13233         (Analyze_Assignment): Exempt assignments involving a dispatching call
13234         to a function with a controlling access result from the check requiring
13235         the target to be class-wide.
13236
13237 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13238             Ed Schonberg  <schonberg@adacore.com>
13239             Robert Dewar  <dewar@adacore.com>
13240             Javier Miranda  <miranda@adacore.com>
13241
13242         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
13243         chain of coextensions when an allocator serves as the root of such a
13244         chain.
13245         (Propagate_Coextensions): Remove the test for the root being an
13246         allocator.
13247         (Resolve_Allocator): Add condition to ensure that all future decoration
13248         occurs on an allocator node. Add processing and cleanup for static
13249         coextensions.
13250         (Valid_Conversion): If the operand type is the limited view of a
13251         class-wide type, use the non-limited view is available to determine
13252         legality of operation.
13253         (Ambiguous_Character): move to spec, for use elsewhere.
13254         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
13255         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
13256         character literals.
13257         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
13258         Do_Division_Check flag explicitly.
13259         (Resolve_Actuals): If the actual is of a synchronized type, and the
13260         formal is of the corresponding record type, this is a call to a
13261         primitive operation of the type, that is declared outside of the type;
13262         the actual must be unchecked-converted to the type of the actual
13263         (Resolve_Call): Kill all current values for any subprogram call if
13264         flag Suppress_Value_Tracking_On_Call is set.
13265         (Resolve_Type_Conversion): Generate error message the the operand
13266         or target of interface conversions come from a limited view.
13267         (Check_Infinite_Recursion): Ignore generated calls
13268         (Check_Allocator_Discrim_Accessibility): New procedure for checking
13269         that an expression that constrains an access discriminant in an
13270         allocator does not denote an object with a deeper level than the
13271         allocator's access type.
13272         (Resolve_Allocator): In the case of an allocator initialized by an
13273         aggregate of a discriminated type, check that associations for any
13274         access discriminants satisfy accessibility requirements by calling
13275         Check_Allocator_Discrim_Accessibility.
13276         (Resolve_Equality_Op): Handle comparisons of anonymous access to
13277         subprogram types in the same fashion as other anonymous access types.
13278         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
13279         message that is not a continuation message.
13280         (Resolve_Type_Conversion): Add missing support for conversion to
13281         interface type.
13282         (Resolve_Actuals): Introduce a transient scope around the call if an
13283         actual is a call to a function returning a limited type, because the
13284         resulting value must be finalized after the call.
13285         (Resolve_Actuals): If the call was given in prefix notations, check
13286         whether an implicit 'Access reference or implicit dereference must be
13287         added to make the actual conform to the controlling formal.
13288
13289 2007-06-06  Robert Dewar  <dewar@adacore.com>
13290             Javier Miranda  <miranda@adacore.com>
13291
13292         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
13293         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
13294         overriding of an inherited private subprogram now there is no need to
13295         inherit its dispatching slot and reduce the size of the dispatch table.
13296         Set_All_DT_Position now ensures that the same slot is now assigned to
13297         both entities. This is required to statically build the dispatch table.
13298         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
13299         of calling Set_All_DT_Position to re-evaluate the position of the
13300         entries in the dispatch table. Such reevaluation is not desired if
13301         the tagged type is already frozen.
13302
13303 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13304             Gary Dismukes  <dismukes@adacore.com>
13305             Robert Dewar  <dewar@adacore.com>
13306             Javier Miranda  <miranda@adacore.com>
13307
13308         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
13309         reference acts as an lvalue when the attribute name modifies the prefix
13310         (Is_Coextension_Root): New routine.
13311         (Mark_Static_Coextensions): New routine.
13312         (Type_Access_Level): Revise code for checking the level of the
13313         anonymous access type of a return object.
13314         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
13315         (Matches_Prefixed_View_Profile): Remove the no longer necessary
13316         retrieval of the corresponding controlling record type.
13317         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
13318         concurrent types declared within a generic as well as class wide types.
13319         Emit a mode incompatibility error whenever a protected entry or routine
13320         override an interface routine whose first parameter is not of mode
13321         "out", "in out" or access to variable.
13322         (Overrides_Synchronized_Primitive): Rename to
13323         Find_Overridden_Synchronized_Primitive.
13324         (Collect_Interface_Components): New subprogram that collects all the
13325         components of a tagged record containing tags of secondary dispatch
13326         tables.
13327         (Add_Global_Declaration): New procedure
13328         (Abstract_Interface_List): Handle properly the case of a subtype of a
13329         private extension.
13330         (Type_Access_Level): In the case of a type whose parent scope is a
13331         return statement, call Type_Access_Level recursively on the enclosing
13332         function's result type to determine the level of the return object's
13333         type.
13334         (Build_Elaboration_Entity): Build name of elaboration entity from the
13335         scope chain of the entity, rather than the unit name of the file name.
13336         (Check_Nested_Access): New procedure.
13337         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13338         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13339         (Get_Renamed_Entity): Utility routine for performing common operation
13340         of chasing the Renamed_Entity field of an entity.
13341
13342 2007-06-06  Robert Dewar  <dewar@adacore.com>
13343
13344         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
13345         elaboration model
13346         (Check_A_Call): Add check for entry call which was causing blowup
13347
13348 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13349
13350         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
13351         special code on ia64-vms to handle major incompatibilities between the
13352         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
13353         this routine with a very different set of arguments and expectations on
13354         the return value.
13355
13356 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13357
13358         * socket.c (__gnat_close_signalling_fd): New function.
13359         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
13360         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
13361         New supporting functions for task safe Netdb operations.
13362
13363 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13364             Olivier Hainque  <hainque@adacore.com>
13365
13366         * a-except-2005.ads, a-except-2005.adb
13367         (Raise_From_Controlled_Operation): New procedure in
13368         (private part of) Ada.Exceptions (standard runtime version). Used to
13369         provide informational exception message when Program_Error is raised as
13370         a result of an Adjust or Finalize operation propagating an exception.
13371         (Rmsg_28): Fix description for E.4(18) check.
13372         (Raise_Current_Excep): Call Debug_Raise_Exception just before
13373         propagation starts, to let debuggers know about the event in a reliable
13374         fashion.
13375         Take the address of E and dereference to make sure it is homed on stack
13376         and prevent the stores from being deleted, necessary for proper
13377         debugger behavior on "break exception" hits.
13378         (Local_Raise): Moved to System.Exceptions
13379
13380         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
13381         exception message from the current occurrence and raise Program_Error
13382         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
13383
13384 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
13385             Arnaud Charlet  <charlet@adacore.com>
13386
13387         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
13388         lock, if needed.
13389
13390         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
13391         priority associated to a lock.
13392
13393         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
13394         assertion to take into account case of no abort restriction.
13395         (Initialize_Protection_Entries): Add initialization for the field
13396         New_Ceiling associated to the protected object.
13397         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
13398         needed.
13399
13400         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13401         since this function needs to be set consistently with Update_Exception.
13402
13403         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13404         since this function needs to be set consistently with Update_Exception.
13405
13406         * s-taskin.ads: Update comments on
13407         Interrupt_Server_Blocked_On_Event_Flag.
13408         (Unbind_Handler): Fix handling of server_task wakeup
13409         (Server_Task): Set self's state so that Unbind_Handler can take
13410         appropriate actions.
13411         (Common_ATCB): Now use a constant from System.Parameters to determine
13412         the max size of the Task_Image field.
13413
13414         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
13415         Initialize_Analyzer function.
13416         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
13417         take into account case of no abort restriction.
13418         ([Vulnerable_]Complete_Master): Modify assertion.
13419
13420         * s-tataat.adb (Finalize): Use the nestable versions of
13421         Defer/Undefer_Abort.
13422
13423         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
13424
13425         * s-tpobop.ads: Update comments.
13426
13427         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
13428         of locking the object manually, to avoid inconsistencies between
13429         Lock/Unlock_Entry assertions.
13430
13431         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
13432         terminating
13433         application and System.Parameters.No_Abort is True.
13434         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
13435         (Unbind_Handler): Fix handling of server_task wakeup
13436         (Server_Task): Set self's state so that Unbind_Handler can take
13437         appropriate actions.
13438
13439 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13440
13441         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
13442         declarations instead of an explicit null body, for conciseness.
13443
13444 2007-06-06  Robert Dewar  <dewar@adacore.com>
13445
13446         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
13447         illegal aggregate and the type is still Any_Composite.
13448         (Subtypes_Statically_Match): Fix problem of empty discriminant list
13449
13450 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13451
13452         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
13453         to prevent subsequent expansion.
13454
13455 2007-06-06  Robert Dewar  <dewar@adacore.com>
13456
13457         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
13458
13459 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13460             Robert Dewar  <dewar@adacore.com>
13461
13462         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
13463         exceptions.
13464         (Write_Itype): Handle case of string literal subtype, which
13465         comes up in this context.
13466         (Update_Itype): when debugging expanded code, update sloc of itypes
13467         associated with defining_identifiers and ranges, for gdb use.
13468         (Sprint_Node_Actual): Add static keyword to object or exception
13469         declaration output if Is_Statically_Allocated is True.
13470         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
13471         or task body, so that the tree carries the proper Sloc information for
13472         debugging use.
13473         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
13474
13475 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13476
13477         * s-secsta.adb (Chunk): Ensure this object has a static size known at
13478         compile time, to avoid dynamic memory allocation
13479         (Elaboration code): Only use dynamic memory allocation when needed.
13480
13481 2007-06-06  Quentin Ochem  <ochem@adacore.com>
13482
13483         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
13484         "Overflow_Guard".
13485         (Stack_Analyzer): Added field "Overflow_Guard"
13486         (Task_Result): Added field "Overflow_Guard".
13487         (Index_Str): New constant.
13488         (Task_Name_Str): New constant.
13489         (Actual_Size_Str): New constant.
13490         (Pattern_Array_Element_Size): New constant.
13491         (Get_Usage_Range): New subprogram.
13492         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
13493         Now align the output.
13494         Added comments.
13495         (Initialize): Added value for Overflow_Guard.
13496         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
13497         Update the value of the overflow guard according to the actual
13498         beginning of the pattern array.
13499         (Initialize_Analyzer): Added parameter Overflow_Guard.
13500         Take this parameter into accound when computing the max size.
13501         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
13502         (Report_Result): Removed extra useless procedure.
13503         Updated call to Output_Result.
13504         Moved full computation of the Task_Result here.
13505
13506 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13507
13508         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
13509         Thread_Blocking_IO, always True by default, set False on a per-runtime
13510         basis.
13511         Add Windows-specific constants
13512         Add new constant Need_Netdb_Buffer.
13513         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13514         not, whether to use getXXXbyYYY_r.
13515
13516         * gsocket.h: Add new constant Need_Netdb_Buffer.
13517         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13518         not, whether to use getXXXbyYYY_r.
13519
13520 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13521
13522         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
13523         than their first call.
13524         Add type Dummy_Communication_Block used in the generation of the pre-
13525         defined dispatching primitive _disp_asynchronous_select.
13526         (Storage_Element): Put Pragma Universal_Aliasing on it.
13527
13528 2007-06-06  Vincent Celier  <celier@adacore.com>
13529
13530         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
13531         function.
13532
13533         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
13534         letter if it is not followed by a '/' or a '\'.
13535         (Windows): New Boolean function
13536
13537         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
13538         Ada 2005.
13539         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
13540         drive letter.
13541         (Containing_Directory): Raise Use_Error when the directory is a root
13542         directory.
13543         (Extension): When returning the result, use a conversion to Result_Type,
13544         not a qualification.
13545
13546 2007-06-06  Robert Dewar  <dewar@adacore.com>
13547
13548         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
13549         (Set_Style_Check_Options): Recognize new -gnatyg style switch
13550
13551         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
13552         Warn_On_Non_Local_Exception to False, to turn off warnings for
13553         No_Exception_Propagation in ZFP runtime.
13554         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
13555         back-ends.
13556         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
13557
13558 2007-06-06  Vincent Celier  <celier@adacore.com>
13559
13560         * switch-b.adb (Scan_Binder_Switches): Add processing for new
13561         switches -R and -Z
13562
13563         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
13564         (Scan_Make_Switches): Recognize new switch -aP
13565
13566 2007-06-06  Matthew Gingell  <gingell@adacore.com>
13567             Jose Ruiz  <ruiz@adacore.com>
13568
13569         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
13570         VxWorks task descriptor in the Ada run time, call a C subprogram
13571         (__gnat_get_stack_info) that extracts the required information.
13572
13573         * sysdep.c: Back out temporary lynxos workaround.
13574         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
13575         time the stack information associated to the currently executing task.
13576         Only VxWorks systems require this function.
13577
13578 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13579
13580         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
13581         add the stack bias if the offset is computed from a frame address.
13582         (__gnat_backtrace): Adjust for above change.
13583
13584 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13585
13586         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
13587         PE_Non_Transportable_Actual.
13588         (By_Descriptor_Last): New constant.
13589         (By_Copy_Return): Likewise.
13590
13591 2007-06-06  Vincent Celier  <celier@adacore.com>
13592
13593         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
13594         is.
13595
13596         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
13597         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
13598         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
13599         Add missing comment for /OPTIMIZE=SPACE
13600         Add entry for OPTIMIZE=SPACE
13601         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
13602         Add documentation for new qualifiers corresponding to -gnatw.c/.C
13603
13604 2007-06-06  Vincent Celier  <celier@adacore.com>
13605             Robert Dewar  <dewar@adacore.com>
13606
13607         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
13608         -gnatw.C)
13609
13610         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
13611         Document gnatbind switch -a
13612         (case Constructions): Document that variables declarations are allowed
13613         for previously declared variables.
13614         Fix external lib project example
13615         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
13616         Indicate that "#if not X or Y then" is not allowed in input files to
13617         gnatprep.
13618         Document gnatw.x and gnatw.X warning flags
13619         Mention -Winline switch to activate warnings when back-end inlining is
13620         ineffective.
13621         Add gnatcheck rule descriptions
13622         Describe how to use the GNAT driver to call a tool on a closure.
13623         Describe how to run project-wide checks or metrics.
13624         Document gnatbind's -R option
13625         Updated to account for Ada 2005 support
13626
13627         * gnat_rm.texi (Case Construction): Allow variable declarations for
13628         previously declared variables.
13629         (Representation Clauses and Pragmas): Lift restriction on alignment
13630         clauses for record types.
13631         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
13632         Document No_Exception_Propagation restriction
13633         Document No_Body pragma
13634         Updated to account for Ada 2005 support; corrected some typos
13635         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
13636
13637         * gnat-style.texi: Make it clear that we never use mode IN for
13638         procedures or functions
13639
13640         * ug_words: Add entries for -gnatw.x and -gnatw.X
13641         Add entries for -gnatw.c/.C
13642
13643 2007-06-06  Pascal Obry  <obry@adacore.com>
13644             Vincent Celier  <celier@adacore.com>
13645
13646         * makegpr.adb (Add_Archive_Path): Use untouched object and library
13647         dirs and library name.
13648         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
13649         comments.
13650         (Build_Library): Idem.
13651         (Compile_Individual_Sources): Idem.
13652         (Compile_Link_With_Gnatmake): Idem.
13653         (Compile_Sources): Idem.
13654         (Get_Imported_Directories): Idem.
13655         (Link_Executables): Idem. Same change for the executable dir.
13656         (Check_Compilation_Needed): C_Source_Path new variable containing
13657         the canonical form of Source_Path to check against the source names
13658         in the dependency file.
13659         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
13660         verbose mode, display the name of the object directory we're changing
13661         to.
13662         (Saved_Switches): New name of table X_Switches
13663         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
13664         (Usage): New line for switch -aP
13665         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
13666         testing if a directory should be added to the search path.
13667
13668 2007-06-06  Javier Miranda  <miranda@adacore.com>
13669
13670         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
13671         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
13672         declaration after freezing point of all its associated tagged types;
13673         otherwise such types are frozen too early.
13674
13675 2007-06-06  Robert Dewar  <dewar@adacore.com>
13676
13677         * a-reatim.adb: Documentation addition
13678
13679         * g-cgideb.adb: Minor code reorganization
13680
13681         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
13682         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
13683         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
13684
13685         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
13686         function.  Change name New_Scope to Push_Scope
13687         (Get_Debug_Flag_K): Remove unused obsolete function.
13688
13689         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
13690         Push_Scope.
13691
13692         * makeusg.adb: Update Copyright notice
13693         Add line for switch -aP
13694
13695         * makeusg.adb: Fix wording of some usage messages
13696
13697         * s-assert.adb (Raise_Assert_Failure): Add call to
13698         Debug_Raise_Assert_Failure.
13699
13700         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
13701         (2, Standard'Alignment) for compatibility with AAMP (where alignment
13702         is restricted to 1).
13703
13704         * s-wchjis.adb: Remove use of System.Pure_Exceptions
13705
13706         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
13707         node location to No_Location when we're not debugging the expanded
13708         code.
13709
13710 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
13711
13712         * misc.c (enumerate_modes): Consider log2_b to always be one.
13713
13714 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
13715
13716         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13717
13718 2007-05-02  Pascal Obry  <obry@adacore.com>
13719
13720         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
13721         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
13722         encoding support of Stream_IO.
13723         (Write_Unit): Idem.
13724
13725         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
13726         filename and corresponding encoding to match the OS requirement.
13727         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
13728         routine will fail on specific devices like CON: AUX: ...
13729
13730         PR ada/29856: Add missing braces
13731
13732 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13733
13734         PR ada/31660
13735         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
13736
13737 2007-04-21  Jan Hubicka  <jh@suse.cz>
13738
13739         * misc.c (gnat_expand_body): Don't call target for destructors,
13740         avoid redundant check on syntax errors.
13741
13742 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13743
13744         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
13745         instead of checking GIMPLE_STMT_P in chain_next.
13746
13747 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
13748
13749         PR ada/31576
13750         * system-linux-alpha.ads: Disable constant condition warning for the
13751         Default_Bit_Order variable.
13752         * system-linux-s390.ads: Likewise.
13753         * system-linux-s390x.ads: Likewise.
13754         * system-linux-sparc.ads: Likewise.
13755
13756 2007-04-06  Javier Miranda  <miranda@adacore.com>
13757             Matt Heaney  <heaney@adacore.com>
13758             Robert Dewar  <dewar@adacore.com>
13759
13760         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
13761         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
13762         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
13763         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
13764         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
13765         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
13766         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
13767         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
13768         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
13769         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
13770         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
13771         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
13772         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
13773         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
13774         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
13775         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
13776         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
13777         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
13778         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
13779         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
13780         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
13781         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
13782         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
13783         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
13784         s-taprop-tru64.adb, s-taprop-irix.adb,
13785         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
13786         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
13787         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
13788         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
13789         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
13790         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
13791         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
13792         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
13793         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
13794         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
13795         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
13796         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
13797         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
13798         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
13799         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
13800         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
13801         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
13802         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
13803         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
13804         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
13805         access types.
13806         Update documentation.
13807         Minor rewording.
13808
13809 2007-04-06  Robert Dewar  <dewar@adacore.com>
13810
13811         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13812         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13813         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
13814         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
13815         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
13816         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13817         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13818         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
13819         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
13820         system-hpux-ia64.ads, targparm.adb,
13821         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
13822
13823         * system.ads: Move Functions_Return_By_DSP to obsolete section,
13824         kept for bootstrap purposes only.
13825
13826 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13827
13828         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
13829         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
13830         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
13831         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
13832
13833 2007-04-06  Robert Dewar  <dewar@adacore.com>
13834
13835         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
13836         (Local_Raise): New dummy procedure called when a raise is converted
13837         to a local goto. Used for debugger to detect that the exception
13838         is raised.
13839
13840         * debug.adb: Document new d.g flag (expand local raise statements to
13841         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
13842
13843         * exp_sel.adb: Use Make_Implicit_Exception_Handler
13844
13845         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
13846         suppress warnings for unused handlers.
13847         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
13848         warnings for raise statements not handled locally.
13849         (Get_RT_Exception_Entity): New function
13850         (Get_Local_Call_Entity): New function
13851         (Find_Local_Handler): New function
13852         (Warn_If_No_Propagation): New procedure
13853         (Expand_At_End_Handler): Call Make_Implicit_Handler
13854         (Expand_Exception_Handlers): Major additions to deal with local handlers
13855         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
13856         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
13857         for local raise
13858
13859         * exp_ch11.ads (Get_RT_Exception_Entity): New function
13860         (Get_Local_Call_Entity): New function
13861
13862         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
13863         of restrictions that the binder will never suggest adding.
13864
13865         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
13866         to No_Elist.
13867
13868         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
13869         be with'ed in the presence of pragma Restriction
13870         (No_Exception_Propagation).
13871
13872         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
13873
13874         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
13875         parameter, then the handler is not a suitable target for a local raise,
13876         and this is a violation of restriction No_Exception_Propagation.
13877         (Analyze_Handled_Statements): Analyze choice parameters in exception
13878         handlers before analyzing statement sequence (needed for proper
13879         detection of local raise statements).
13880         (Analyze_Raise_Statement): Reraise statement is a violation of the
13881         No_Exception_Propagation restriction.
13882
13883         * s-rident.ads: Add new restriction No_Exception_Propagation
13884
13885         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
13886         function, like Make_Exception_Handler but sets Local_Raise_Statements
13887         to No_List.
13888         (Add_Unique_Serial_Number): Deal with case where this is called during
13889         processing of configuration pragmas.
13890
13891 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13892             Pat Rogers  <rogers@adacore.com>
13893             Pascal Obry  <obry@adacore.com>
13894
13895         * g-stsifd-sockets.adb: New file.
13896
13897         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
13898         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
13899         g-socthi-vms.adb: Move signalling
13900         fd management to a nested package, so that they can conveniently be
13901         moved to a subunit that is shared across Windows, VMS, and VxWorks
13902         (Ada implementation) or completed with imported bodies from socket.c
13903         (UNIX case).
13904         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
13905         subprograms.
13906         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
13907         the signalling file descriptor.
13908         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
13909         signalling file descriptor.
13910         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
13911         instead of creating a pair of sockets for signalling here.
13912
13913         * g-socthi.adb: Ditto.
13914         Set the runtime process to ignore SIGPIPEs on platforms that support
13915         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13916
13917         * g-socthi-mingw.adb: Ditto.
13918         (WS_Version): Use Windows 2.2.
13919         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13920
13921         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
13922         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13923
13924         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
13925         added GNAT byte swapping facility
13926         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
13927
13928         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
13929
13930         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
13931         New subprograms.
13932         (__gnat_create_signalling_fds): New subprogram.
13933         Set the runtime process to ignore SIGPIPEs on platforms that support
13934         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13935
13936 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
13937             Vincent Celier  <celier@adacore.com>
13938
13939         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
13940         New version of Ada.Calendar which supports the new upper bound of Ada
13941         time (2399-12-31 86_399.999999999).
13942         The following modifications have been made to the package:
13943          - New representation of time as count of nanoseconds since the start of
13944            Ada time (1901-1-1 0.0).
13945          - Target independent Split and Time_Of routines which service both
13946            Ada 95 and Ada 2005 code.
13947          - Target independent interface to the Ada 2005 children of Calendar.
13948          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
13949          - Handling of non-leap centenial years.
13950          - Updated clock function.
13951          - Updated arithmetic and comparison operators.
13952
13953         * a-caldel.adb (To_Duration): Add call to target independent routine in
13954         Ada.Calendar to handle the conversion of time to duration.
13955
13956         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
13957         (UTC Offset).
13958         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
13959         set off to 0.
13960         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
13961         targets do not have a natural time zone, GMT is used as a default.
13962         (__gnat_get_task_options): New.
13963
13964         * a-direct.adb (Modification_Time): Add with and use clauses for
13965         Ada.Calendar and Ada.
13966         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
13967         since it is no longer needed.
13968         (Duration_To_Time): Removed.
13969         (OS_Time_To_Long_Integer): Removed.
13970         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
13971         Formatting Time_Of routines which automatically handle time zones,
13972         buffer periods and leap seconds.
13973
13974         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
13975         target independent routines in Ada.Calendar.
13976
13977         * a-calfor.ads, a-calfor.adb: 
13978         Code cleanup and addition of validity checks in various routines.
13979         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
13980         Ada.Calendar.
13981
13982         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
13983         independent routine in Ada.Calendar.
13984
13985 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13986
13987         * adaint.c: 
13988         (convert_addresses): Adjust prototype and dummy definition to expect an
13989          extra file_name argument.
13990
13991         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
13992         filling the now expected file_name argument with the appropriate
13993         argv[0] expansion.
13994         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
13995         (tracebk): Array of void * instead of char *, corresponding to what
13996          convert_addresses expects.
13997         (exename): New static global, to hold the executable file name to be
13998         used in all convert_addresses invocations.
13999         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14000         change.
14001         (__gnat_gmem_a2l_initialize): Resolve exename.
14002         (__gnat_convert_addresses): Use exename as the convert_addresses
14003         file_name argument.
14004
14005         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14006         "convert_addresses", now expecting a filename argument. Import the
14007         necessary entities to compute the filename to use and pass it to
14008         convert_addresses.
14009
14010 2007-04-06  Matt Gingell  <gingell@adacore.com>
14011
14012         * system-aix.ads: Back out previous change.
14013         (Functions_Return_By_DSP): Removed
14014
14015 2007-04-06  Pascal Obry  <obry@adacore.com>
14016
14017         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14018         or the monotonic used by Ada.Real_Time) to compute the sleep duration
14019         on Windows.
14020
14021 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14022
14023         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14024         function. Its value changes in different VxWorks versions, and it is
14025         now handled by the function __gnat_get_task_options.
14026
14027         * s-taprop-vxworks.adb (Create_Task): Call the function
14028         __gnat_get_task_options to get the required options for creating a task.
14029
14030 2007-04-06  Pascal Obry  <obry@adacore.com>
14031             Thomas Quinot  <quinot@adacore.com>
14032
14033         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14034         dealing with filename.
14035         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14036         filename from a standard string to a wide-string depending on the
14037         encoding value.
14038         (__gnat_freopen): Idem.
14039         (__gnat_current_time): New function (wrapper for time(3) standard C
14040         function).
14041
14042         * g-os_lib.ads (Current_Time): New function. Returns the current
14043         system time as an OS_Time value.
14044
14045         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14046         (Monotonic_Clock): Same.
14047
14048 2007-04-06  Quentin Ochem  <ochem@adacore.com>
14049
14050         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14051         not on a natural.
14052         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14053
14054 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14055
14056         * a-retide.adb: Add elaboration code to ensure that the tasking run
14057         time is initialized when using delay operations even when no task is
14058         created.
14059
14060 2007-04-06  Javier Miranda  <miranda@adacore.com>
14061
14062         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14063         component Num_Prim_Ops.
14064         (Set_Num_Prim_Ops): Removed.
14065         Remove all the assertions because all the routines of this
14066         package are inline always.
14067         (Get_Offset_Index): Add support to primary dispatch tables.
14068         Move the documentation about the dispatch table to a-tags.ads
14069         (Set_External_Tag): Removed
14070         (Inherit_TSD): Removed.
14071         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14072         moved to a-tags.ads
14073         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14074         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14075         of the TSD field "Table" because this field has been renamed to
14076         "Ifaces_Table".
14077         (Inherit_CPP_DT): Removed.
14078         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14079         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14080         declarations have been moved to a-tags.ads
14081         (Check_Size): Removed.
14082         (Expanded_Name): Updated to get access to the new field of TSD
14083         containing the address of the expanded name.
14084         (Get_Access_Level/Set_Access_Level): Removed.
14085         (Get_Predefined_Prim_Op_Address): Removed.
14086         (Set_Predefined_Prim_Op_Address): Removed.
14087         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14088         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14089         (Set_Expanded_Name): Removed.
14090         (Inherit_DT): Removed.
14091         (Inherit_CPP_DT): Removed.
14092         (Set_RC_Offset): Removed.
14093         (Set_TSD): Removed.
14094         (Base_Address): New function that displaces "this" to point to the base
14095         of the object (that is, to point to the primary tag of the object).
14096
14097 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14098             Javier Miranda  <miranda@adacore.com>
14099
14100         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
14101         anonymous access component, do not create a master_id if type already
14102         has one, as may happen if the type is a subcomponent of a packed array
14103         type.
14104         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
14105         Initialize_Tag): Remove code associated with the old CPP pragmas.
14106         CPP_Virtual and CPP_Vtable are no longer supported.
14107         (Build_Offset_To_Top_Internal): Add support for concurrent record types
14108         (Build_Offset_To_Top_Functions): Add support for concurrent record types
14109         (Freeze_Record_Type): Remove call to
14110         Init_Predefined_Interface_Primitives.
14111         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
14112         code required to initialize the tags of the secondary dispatch tables.
14113         This leaves the algoritm more clear.
14114         (Init_Secondary_Tags): Add support for concurrent record types
14115         (Make_Predefined_Primitive_Specs): Code cleanup.
14116         (Predefined_Primitive_Bodies): Code cleanup.
14117         (Build_Master_Renaming): New local subprogram.
14118         (Expand_N_Full_Type_Declaration): Build the master_id associated with
14119         anonymous access to task type components.
14120         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
14121         subtype indication are resolved during analysis, and must not be done
14122         here.
14123         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
14124
14125 2007-04-06  Geert Bosch  <bosch@adacore.com>
14126             Ed Schonberg  <schonberg@adacore.com>
14127             Javier Miranda  <miranda@adacore.com>
14128             Bob Duff  <duff@adacore.com>
14129
14130         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
14131         for conversion of a Float_Type'Truncation to integer.
14132
14133         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
14134         check if a node is an attribute that can be handled directly by the
14135         back end.
14136         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
14137         attributes that can be handled directly by the back end.
14138         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
14139         use new predicate Is_Access_Protected_Subprogram_Type.
14140         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
14141         and Unchecked_Union if it is generated as part of the default  Output
14142         procedure for a type with default discriminants.
14143         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
14144         if we are compiling under restriction No_Dispatching_Calls.
14145         (Constrained): Use Underlying_Type, in case the type is private without
14146         discriminants, but the full type has discriminants.
14147         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
14148         call to Build_Get_Access_Level.
14149         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
14150         interface objects requires a call to the run-time subprogram that
14151         returns the base address of the object.
14152         (Valid_Conversion): Improve error message on illegal attempt to store
14153         an anonymous access to subprogram value into a record component.
14154
14155         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
14156         null".
14157         (Simplify_Type_Conversion): New procedure that performs simplification
14158         of Int_Type (Float_Type'Truncation (X)).
14159         (Resolve_Type_Conversion): Call above procedure after resolving operand
14160         and before performing checks. This replaces the existing ineffective
14161         code in Exp_Ch4.
14162         (Set_String_Literal_Subtype): When creating the internal static lower
14163         bound subtype for a string literal, use a newly created copy of the
14164         subtree representing the lower bound.
14165         (Resolve_Call): Exclude build-in-place function calls from transient
14166         scope treatment. Update comments to describe this exception.
14167         (Resolve_Equality_Op): In case of dispatching call check violation of
14168         restriction No_Dispatching_Calls.
14169         (Resolve_Call): If the call returns an array, the context imposes the
14170         component type of the array, and the function has one non-defaulted
14171         parameter, rewrite the call as the indexing of a call with a single
14172         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
14173         in prefix form.
14174         (Resolve_Actuals): If an actual is an allocator for an access parameter,
14175         the master of the created object is the innermost enclosing statement.
14176         (Remove_Conversions): For a binary operator, check if type of second
14177         formal is numeric, to check if an abstract interpretation is present
14178         in the case of exponentiation as well.
14179
14180 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14181             Bob Duff  <duff@adacore.com>
14182
14183         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
14184         copying a parameter list in a call, set properly the First_Named_Formal
14185         and Next_Named_Formal fields in the new list and in the enclosing call.
14186         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
14187         names, to ease typing in the debugger. Improve comments.
14188         (Watch_Node): New variable, intended to be set in the debugger.
14189         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
14190         called when the watched node is created.
14191         (New_Node_Debugging_Output): Combined version of local procedures
14192         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
14193         with a parameter so that conditional breakpoints like "if Node = 12345"
14194         work.
14195         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
14196         Add Elist1 function
14197
14198 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14199             Ed Schonberg  <schonberg@adacore.com>
14200             Gary Dismukes  <dismukes@adacore.com>
14201
14202         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
14203         required for a conversion between two access-to-unconstrained-array
14204         types.
14205         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
14206         to discriminant constraints on discriminant objects. This rule must
14207         apply as well to discriminants of protected types in private components.
14208         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
14209         object of a null-excluding access type then don't require the
14210         the object declaration to have an expression and don't emit a
14211         run-time check.
14212
14213 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14214             Eric Botcazou  <botcazou@adacore.com>
14215
14216         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
14217         and made constant.
14218
14219         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
14220         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
14221         carry any.
14222
14223         * fe.h (Compiler_Abort): Add third parameter.
14224
14225         * misc.c (internal_error_function): Build third argument from current
14226         input location and pass it to Compiler_Abort.
14227
14228 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
14229
14230         * cstand.adb (Create_Standard): When the target's storage unit size is
14231         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
14232         Standard_String.
14233
14234 2007-04-06  Nicolas Roche  <roche@adacore.com>
14235
14236         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
14237         absolute path can have the following form: device:/a/b. In this case
14238         '/' should be inserted between the path and the filename.
14239
14240 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14241             Eric Botcazou  <botcazou@adacore.com>
14242
14243         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
14244         VAR_DECL to a CONST_DECL we make for a public constant when we know the
14245         corresponding definition has created the so made visible variable.
14246         Handle anonymous access to protected subprogram.
14247         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
14248         object with an address clause volatile.  Re-enable original fix.
14249         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
14250         too.
14251         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
14252         associated with either the Equivalent or Root type, instead of the
14253         naked type node.
14254         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
14255         subtree for every field of a global record type.
14256         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
14257         discriminants, invoke again variable_size on its newly computed sizes.
14258
14259 2007-04-06  Robert Dewar  <dewar@adacore.com>
14260             Thomas Quinot  <quinot@adacore.com>
14261             Ed Schonberg  <schonberg@adacore.com>
14262             Bob Duff  <duff@adacore.com>
14263
14264         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
14265         (Next_Component_Or_Discriminant): New function and procedure
14266         (First_Index, First_Literal, Master_Id,
14267         Set_First_Index, Set_First_Literal, Set_Master_Id):
14268         Add missing Ekind assertions.
14269         (Is_Access_Protected_Subprogram_Type): New predicate.
14270         (Has_RACW): New entity flag, set on package entities to indicate that
14271         the package contains the declaration of a remote accecss-to-classwide
14272         type.
14273         (E_Return_Statement): This node type has the Finalization_Chain_Entity
14274         attribute, in case the result type has controlled parts.
14275         (Requires_Overriding): Add this new flag, because "requires
14276         overriding" is subtly different from "is abstract" (see AI-228).
14277         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
14278         Is_Abstract_Type. Make sure these are called only when appropriate.
14279         (Has_Pragma_Unreferenced_Objects): New flag
14280
14281         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
14282         class-wide, the tag of the right-hand side must be an exact match, not
14283         an ancestor of that of the object on left-hand side.
14284         (Move_Activation_Chain): New procedure to create the call to
14285         System.Tasking.Stages.Move_Activation_Chain.
14286         (Expand_N_Extended_Return_Statement): Generate code to call
14287         System.Finalization_Implementation.Move_Final_List at the end of a
14288         return statement if the function's result type has controlled parts.
14289         Move asserts to Build_In_Place_Formal.
14290         (Move_Final_List): New function to create the call statement.
14291         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
14292         tagged type, replace generation of call to the run-time subprogram
14293         CW_Membership by call to Build_CW_Membership.
14294         (Expand_N_Return_Statement): Replace generation of call to the run-time
14295         subprogram Get_Access_Level by call to Build_Get_Access_Level.
14296         (Expand_N_Simple_Function_Return): Replace generation of call to the
14297         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14298
14299         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
14300         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
14301         access to protected operations.
14302         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
14303         master and chain actual parameters to a build-in-place function call
14304         involving tasks.
14305         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
14306         statement.
14307         (Make_Build_In_Place_Call_In_Allocator,
14308         Make_Build_In_Place_Call_In_Anonymous_Context,
14309         Make_Build_In_Place_Call_In_Assignment,
14310         Make_Build_In_Place_Call_In_Object_Declaration): Call
14311         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
14312         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
14313         stubbed procedure with a null body, replace the call with a null
14314         statement without using the full inlining machinery, for efficiency
14315         and to avoid invalid values in source file table entries.
14316
14317         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
14318         renamings of calls to build-in-place functions.
14319
14320         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
14321         provides the functionality of RTE_Available to record components.
14322         (RTU_Entity): The function Entity has been renamed to RTU_Entity
14323         to avoid undesired overloading.
14324         (Entity): New subprogram that returns the entity for the referened
14325         unit. If this unit has not been loaded, it returns Empty.
14326         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
14327         Remove no longer used entities.
14328         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
14329         (RE_Type_Specific_Data): New entity.
14330         (RE_Move_Any_Value): New entity.
14331         (RE_TA_A, RE_Get_Any_Type): New entities.
14332         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
14333          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
14334          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
14335         (Entity): New subprogram that returns the entity for the referened
14336         unit. If this unit has not been loaded, it returns Empty.
14337         (RTE): Addition of a new formal that extends the search to the scopes
14338         of the record types found in the chain of the package.
14339
14340         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
14341         "abstract subprograms must be visible" message, whether or not the type
14342         is an interface; that is, remove the special case for interface types.
14343         (Analyze_Function_Return): Remove error message "return of task objects
14344         is not yet implemented" because this is now implemented.
14345         (Create_Extra_Formals): Add the extra master and activation chain
14346         formals in case the result type has tasks.
14347         Remove error message "return of limited controlled objects is not yet
14348         implemented".
14349         (Create_Extra_Formals): Add the extra caller's finalization list formal
14350         in case the result type has controlled parts.
14351         (Process_Formals): In case of access formal types there is no need
14352         to continue with the analysis of the formals if we already notified
14353         errors.
14354         (Check_Overriding_Indicator): Add code to check overriding of predefined
14355         operators.
14356         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
14357         flags for formals that do not require them,.
14358         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
14359         hidden entity is use visible or directly visible.
14360         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
14361         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
14362         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
14363         New_Overloaded_Entity): Split Is_Abstract flag into
14364         Is_Abstract_Subprogram and Is_Abstract_Type.
14365
14366         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
14367         a return statement's finalization list to the caller's list, used for
14368         build-in-place functions with result type with controlled parts.
14369         Remove no longer used entities.
14370
14371         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
14372         longer needed, because the full type is now limited, and therefore a
14373         pass-by-reference type.
14374         (Foreign_Task_Level): New constant.
14375
14376         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
14377         move tasks from the activation chain belonging to a return statement to
14378         the one passed in by the caller, and update the master to the one
14379         passed in by the caller.
14380         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
14381         of unactivated tasks, so we don't kill the ones that are being returned
14382         by a build-in-place function.
14383         (Create_Task): Ignore AI-280 for foreign threads.
14384
14385 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14386             Robert Dewar  <dewar@adacore.com>
14387             Bob Duff  <duff@adacore.com>
14388             Gary Dismukes  <dismukes@adacore.com>
14389
14390         * errout.adb (Unwind_Internal_Type): Use predicate
14391         Is_Access__Protected_Subprogram_Type.
14392
14393         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
14394         (Freeze_Entity, packed array case): Do not override explicitly set
14395         alignment and size clauses.
14396         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
14397         the enclosing subprogram is a child unit body that acts as a spec.
14398         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
14399         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
14400         Remove all code for DSP option
14401
14402         * layout.adb (Layout_Record_Type): Use First/
14403         Next_Component_Or_Discriminant
14404         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
14405         to handle properly the anonymous access case.
14406
14407         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
14408         for all access attributes, because overload resolution should work the
14409         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
14410         causes the error message for the ambiguous "X'Access = Y'Access" and
14411         "X'Unrestricted_Access = Y'Access" and so forth to match.
14412         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
14413         now that anonymous access to protected operations have their own kind.
14414         (Resolve_Attribute): In case of dispatching call check the violation of
14415         restriction No_Dispatching_Calls.
14416         (Check_Array_Type): Check new -gnatyA array index style option
14417
14418         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
14419         attempt to derive from a synchronized tagged type.
14420         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
14421         type, inherit the class-wide type already created, because it may
14422         already have been used in a self-referential anonymous access component.
14423         (Mentions_T): Recognize self-referential anonymous access components
14424         that use (a subtype of) the class-wide type of the enclosing type.
14425         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
14426         Derived_Type for Prev formal on call to
14427         Check_Anonymous_Access_Components rather than Empty.
14428         (Make_Incomplete_Type_Declaration): Add test for case where the type has
14429         a record extension in deciding whether to create a class-wide type,
14430         rather than just checking Tagged_Present.
14431         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
14432         to stand-alone object declarations as well as component declarations.
14433         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
14434         prevent accidental overwriting when enclosing package appears in
14435         a limited_with_clause.
14436         (Array_Type_Declaration): If the component type is an anonymous access,
14437         the associated_node for the itype is the type declaration itself.
14438         (Add_Interface_Tag_Components): Modified to support concurrent
14439         types with abstract interfaces.
14440         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
14441         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
14442         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
14443         to complete the decoration of synchronized interface types. Add also
14444         a call to Check_Abstract_Interfaces to verify the ARM rules.
14445         (Derive_Interface_Subprograms): Modified to support concurrent types
14446         with abstract interfaces.
14447         (Analyze_Subtype_Indication): Resolve the range with the given subtype
14448         mark, rather than delaying the full resolution depending on context.
14449         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
14450         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
14451         Array_Type_Declaration,Build_Derived_Record_Type,
14452         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
14453         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
14454         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
14455         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14456         called only when appropriate.
14457         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
14458         to private type.
14459         (Analyze_Subtype_Declaration): For an access subtype declaration, create
14460         an itype reference for the anonymous designated subtype, to prevent
14461         scope anonmalies in gigi.
14462         (Build_Itype_Reference): New utility, to simplify construction of such
14463         references.
14464
14465 2007-04-06  Vincent Celier  <celier@adacore.com>
14466
14467         * errutil.adb (Initialize): Initialize warnings table, if all warnings
14468         are suppressed, supply an initial dummy entry covering all possible
14469         source locations.
14470
14471         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
14472         and start with only one, such as "-RTS=none".
14473         (Collect_Arguments): Do not check for sources outside of projects.
14474         Do not collect arguments if project is externally built.
14475         (Compile_Sources): Do nothing, not even check if the source is up to
14476         date, if its project is externally built.
14477         (Compile): When compiling a predefined source, add -gnatpg
14478         as the second switch, after -c.
14479         (Compile_Sources): Allow compilation of Annex J renames without -a
14480         (Is_In_Object_Directory): Check if the ALI file is in the object
14481         even if there is no project extension.
14482         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
14483         gnatbind if the ALI file effectively exists.
14484         (Initialize): Add the directory where gnatmake is invoked in front of
14485         the path if it is invoked from a bin directory, even without directory
14486         information, so that the correct GNAT tools will be used when spawned
14487         without directory information.
14488
14489         * makeusg.adb: Change switch -S to -eS
14490         Add lines for new switches -we, -wn and -ws
14491         Add line for new switch -p
14492
14493         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
14494         Treat_As_Error and there are warnings.
14495
14496         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
14497         -gnatww Change gnatmake switch -S to -eS
14498         (Scan_Make_Switches): Code reorganisation. Process separately multi
14499         character switches and single character switches.
14500         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
14501         False when switch is not recognized by gnatmake.
14502         (Scan_Make_Switches): Set Setup_Projects True when -p or
14503         --create-missing-dirs is specified.
14504
14505         * fname.adb (Is_Predefined_File_Name): Return True for annex J
14506         renamings Calendar, Machine_Code, Unchecked_Conversion and
14507         Unchecked_Deallocation only when Renamings_Included is True.
14508
14509         * par.adb: Allow library units Calendar, Machine_Code,
14510         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
14511         when -gnatg is not specified.
14512         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14513         there is no need to generate always a record_definition_node in case
14514         of synchronized interface types.
14515         (SIS_Entry_Active): Initialize global variable to False
14516         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
14517         indicate cases where AI-447 says "not null" is legal.
14518
14519         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
14520
14521         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
14522         files with with several lines starting with the object fileb name.
14523         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
14524         is specified.
14525         (Initialize): Add the directory where gprmake is invoked in front of the
14526         path, if it is invoked from a bin directory or with directory
14527         information, so that the correct GNAT tools will be used when invoked
14528         directly.
14529         (Check_Compilation_Needed): Process correctly backslashes on Windows.
14530
14531         * vms_data.ads: Update switches/qualifiers
14532
14533 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14534             Thomas Quinot  <quinot@adacore.com>
14535
14536         * exp_aggr.adb:
14537         If the array component is a discriminated record, the array aggregate
14538         is non-static even if the component is given by an aggregate with
14539         static components.
14540         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
14541         (Convert_Aggr_In_Allocator): If the allocator is for an access
14542         discriminant and the type is controlled. do not place on a finalization
14543         list at this point. The proper list will be determined from the
14544         enclosing object.
14545         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
14546         initialize record controller if needed, before the components, to ensure
14547         that they are properly finalized.
14548         (Build_Record_Aggr_Code): For the case of an array component that has a
14549         corresponding array aggregate in the record aggregate, perform sliding
14550         if required.
14551
14552 2007-04-06  Javier Miranda  <miranda@adacore.com>
14553             Gary Dismukes  <dismukes@adacore.com>
14554             Ed Schonberg  <schonberg@adacore.com>
14555
14556         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
14557         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
14558
14559         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
14560         accessibility on class-wide allocators if the allocator occurs at the
14561         same scope level as the allocator's type. The check is guaranteed to
14562         succeed in that case, even when the expression originates from a
14563         parameter of the containing subprogram.
14564         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
14565         under No_Dispatching_Calls restriction. During the semantic analysis
14566         we already notified such violation.
14567         (Tagged_Membership): Constant folding. There is no need to check
14568         the tag at run-time if the type of the right operand is non
14569         class-wide abstract.
14570         Replace call to Is_Ancestor by call to Is_Parent
14571         to support concurrent types with interface types.
14572         (Expand_N_Allocator): Add an assertion associated with the generation
14573         of the master_id.
14574         (Expand_N_Slice): Do not enable range check to nodes associated
14575         with the frontend expansion of the dispatch table.
14576         (Is_Local_Access_Discriminant): Subsidiary function to
14577         Expand_N_Allocator.
14578         (Tagged_Membership): Replace generation of call to the run-time
14579         subprogram CW_Membership by call to Build_CW_Membership.
14580         (Expand_Allocator_Expression): Replace generation of call to the
14581         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14582
14583         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
14584         initialize most the TSD components by means of an aggregate.
14585         Modify the declaration of the object containing the TSD
14586         because we now expand code that has a higher level of abstraction.
14587         The TSD has a discriminant containing the Inheritance Depth Level,
14588         value that is used in the membership test but also to fix the size
14589         of the table of ancestors.
14590         (Expand_Interface_Conversion): Insert function body at the closest place
14591         to the conversion expression, to prevent access-before-elaboration
14592         errors in the backend.
14593         Code improved to reduce the size of the dispatch table if
14594         compiling under restriction No_Dispatching_Calls plus code cleanup.
14595         Code reorganization plus removal of calls to Set_Num_Prim_Ops
14596         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
14597         (Expand_Dispatching_Call): Minor code reorganization plus addition of
14598         code to return immediately if compiling under No_Dispatching_Calls
14599         restriction.
14600         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
14601         CPP_Virtual and CPP_Vtable are no longer supported.
14602         (Expand_Interface_Conversion): Add missing support for interface type
14603         derivations.
14604         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
14605         Is_Parent to support concurrent types with interfaces.
14606         (Init_Predefined_Interface_Primitives): Removed.
14607         (Make_Secondary_DT): Modified to support concurrent record types.
14608         (Set_All_DT_Position): Modified to support concurrent record types.
14609         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14610         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
14611         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
14612         with CW_Membership.
14613         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14614         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
14615         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
14616         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
14617         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
14618         (Expand_Dispatching_Call): Replace generation of call to the run-time
14619         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
14620         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
14621         Address.
14622         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
14623         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
14624         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
14625         Build_Set_Prim_Op_Address.
14626         (Get_Remotely_Callable): Subprogram removed.
14627         (Init_Predefined_Interface_Primitives): Replace generation of call to
14628         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
14629         Prims.
14630
14631         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
14632         First (Parameter_Associations ()) with the call to First_Actual that
14633         returns an actual parameter expression for both named and positional
14634         associations.
14635
14636         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
14637         check violation of restriction No_Dispatching_Calls.
14638         (Check_Controlling_Type): A formal of a tagged incomplete type is a
14639         controlling argument.
14640
14641         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
14642         First/Next_Component_Or_Discriminant
14643         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
14644         (Find_Implemented_Interface): Removed. All the calls to this subprogram
14645         specify Any_Limited_Interface, and this functionality is already
14646         provided by the function Has_Abstract_Interfaces.
14647         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
14648         support concurrent types implementing interfaces.
14649         (Find_Implemented_Interface): Removed. All the calls to this subprogram
14650         specify kind Any_Limited_Interface, and this functionality is already
14651         provided by the function Has_Abstract_Interfaces.
14652         (Remove_Side_Effects): replace Controlled_Type by
14653         CW_Or_Controlled_Type whenever the issue is related to
14654         using or not the secondary stack.
14655
14656         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
14657         P_Interface_Type_Definition to fulfill the new interface (the formal
14658         Is_Synchronized is no longer required).
14659
14660         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
14661         Update dependencies.
14662
14663         * exp_atag.ads, exp_atag.adb: New file
14664
14665 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14666             Bob Duff  <duff@adacore.com>
14667             Cyrille Comar  <comar@adacore.com>
14668
14669         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
14670         anonymous, use finalization list of enclosing dynamic scope.
14671         (Expand_N_Package_Declaration): For a library package declaration
14672         without a corresponding body, generate RACW subprogram bodies in the
14673         spec (just as we do for the task activation call).
14674         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
14675         Is_Abstract_Type. Make sure these are called only when appropriate.
14676         Remove all code for DSP option
14677         (CW_Or_Controlled_Type): new subprogram.
14678
14679 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
14680             Ed Schonberg  <schonberg@adacore.com>
14681             Gary Dismukes  <dismukes@adacore.com>
14682
14683         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
14684         parameter. If it is set to true, return a result capped according to
14685         the global upper bound for the index of an entry family.
14686         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
14687         (Build_Find_Body_Index): Adjust for above change.
14688         (Entry_Index_Expression): Likewise.
14689         (Is_Potentially_Large_Family): New function extracted from...
14690         (Collect_Entry_Families): ...here. Call it to detect whether the family
14691         is potentially large.
14692         (Build_Entry_Count_Expression): If the family is potentially large, call
14693         Family_Size with 'Cap' set to true.
14694         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
14695         a protected version of an operation declared in the private part of
14696         a protected object, because they may be invoked through a callback.
14697         (Set_Privals): If the type of a private component is an anonymous access
14698         type, do not create a new itype for each protected body.
14699         If the body of a protected operation creates
14700         controlled types (including allocators for class-widetypes), the
14701         body of the corresponding protected subprogram must include a
14702         finalization list.
14703         (Build_Activation_Chain_Entity): Build the chain entity for extended
14704         return statements.
14705         (Type_Conformant_Parameters): Use common predicate Conforming_Types
14706         to determine whether operation overrides an inherited primitive.
14707         (Build_Wrapper_Spec): Add code to examine the parents while looking
14708         for a possible overriding candidate.
14709         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
14710         hold an actual parameter value since its initialization is separated
14711         from the the declaration. Prevents errors on null-excluding access
14712         formals.
14713
14714 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14715             Pablo Oliveira  <oliveira@adacore.com>
14716
14717         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
14718         Do an Unchecked_Conversion to handle the passage from the Underlying
14719         Type to the Base Type when calling Build_To_Any_Call and
14720         Build_From_Any_Call.
14721         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
14722         E_Constant, depending upon Variable formal.
14723         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14724         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
14725         parameter that requires an extra constrained parameter, declare
14726         temporary for actual as a variable, not a constant.
14727         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
14728         the unit being compiled is the one that contains the stub type.
14729         Change primitive operation name for the RACW associated with a RAS
14730         from Call to _Call so it cannot clash with any legal identifier.
14731         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
14732         Is_RAS.
14733         (Append_RACW_Bodies): New subprogram.
14734         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
14735         Add_Receiving_Stubs_To_Declarations functions.
14736         When expanding a package body, this list correspond to the
14737         statements in the HSS at the end of the pacakge.
14738         When expanding a package spec, this list correspond to the
14739         spec declarations.
14740         (Add_Receiving_Stubs_To_Declarations): Append the function
14741         registering the receiving stubs at the end of the 'Stmts' list.
14742         (RCI_Package_Locator): Pass the new Version generic formal when
14743         instantiating a RCI_Locator package.
14744         (Build_From_Any_Function): To compute the High bound for an
14745         unconstrained array actual, we add the Low bound with the length.
14746         Thus we must convert the low bound and the length to an appropriate
14747         type before doing the sum.
14748         (Build_Subprogram_Receiving_Stubs, PolyORB):
14749          * Retrieve the extra formals parameters at the
14750            end of the parameter stream.
14751          * Use Move_Any_Value to write back out parameters
14752            after executing the request as it is more efficient
14753            than Copy_Any_Value.
14754          * Build the any containing Extra Formals with the
14755            appropriate typecode.
14756         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
14757         empty Component_List.
14758         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
14759         the tree the declaration for an object that serves as actual parameter
14760         in server-side stubs.
14761         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14762         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14763         Use Build_Actual_Object_Declaration to prepare the actuals.
14764         (Add_Parameter_To_NVList): Set the parameter mode to In for
14765         Extra Constrained Parameters.
14766         (Build_General_Calling_Stubs): Set the parameter type to boolean for
14767         Extra Constrained parameters.
14768         (Build_To_Any_Function, Build_From_Any_Function,
14769         Built_TypeCode_Function): When Typ is implicit, call the correct
14770         function with the first not implicit parent type.
14771         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
14772         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
14773         typecode from the Etype. Therefore we retrieve the correct typecode
14774         with a call to Get_Any_Type.
14775         (Copy_Specification): Do controlling formal type substitution based on
14776         Is_Controlling_Formal flag, instead of caller-provided object type.
14777         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
14778         a RACW primitive operation, we might get a subprogram declaration for an
14779         ancestor of the RACW designated type (not for the designated type
14780         itself), in the case where this operation is inherited. In this case we
14781         have no easy means of determining the original tagged type for which
14782         the primitive was declared, so instead we now rely on
14783         Copy_Specification to use the Is_Controlling_Formal flag to determine
14784         which formals require type substitution.
14785
14786 2007-04-06  Robert Dewar  <dewar@adacore.com>
14787             Ed Schonberg  <schonberg@adacore.com>
14788
14789         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
14790         GNAT.Current_Exception are not allowed if pragma Restrictions
14791         (No_Exception_Propagation) is set and in any case make the associated
14792         handler unsuitable as a target for a local raise statement.
14793         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
14794         run-time subprogram CW_Membership by call to Build_CW_Membership.
14795         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
14796         by a function call, a temporary must be created before expanding the
14797         Constructor_Call itself, to prevent out-of-order elaboration in the
14798         back-end when stack checking is enabled..
14799
14800 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14801
14802         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
14803         result are the bounds of the left operand, not the right.
14804
14805 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14806
14807         * exp_strm.adb
14808         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
14809          discriminant defaults.
14810         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
14811         (Make_Component_List_Attributes): Ditto.
14812
14813 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14814             Bob Duff  <duff@adacore.com>
14815
14816         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
14817         an association with a box as providing a value even though the
14818         initialization procedure for the type is not available.
14819         (Resolve_Record_Aggregate): Check that a choice of an association with a
14820         box corresponds to a component of the type.
14821         (Resolve_Record_Aggregate): Split Is_Abstract flag into
14822         Is_Abstract_Subprogram and Is_Abstract_Type.
14823
14824         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
14825         assert.
14826
14827         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
14828         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14829         called only when appropriate.
14830
14831 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14832
14833         * g-alleve.ads (Low Level Vector type definitions): Map each to the
14834         associated vector view instead of all to the unsigned char view.
14835
14836         * g-altcon.adb (Generic_Conversions): New internal generic package,
14837         offering facilities for all the Vector/View conversion routines
14838         implemented by this unit.
14839         (To_View/To_Vector - all versions): Reimplemented in a systematic
14840         manner, using the internal Generic_Conversions facilities.
14841
14842 2007-04-06  Pascal Obry  <obry@adacore.com>
14843
14844         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
14845         string.
14846         (Create): Free the source string before storing the new one.
14847
14848 2007-04-06  Vincent Celier  <celier@adacore.com>
14849
14850         * g-debpoo.adb (Validity): New package with a complete new
14851         implementation of subprograms Is_Valid and Set_Valid.
14852         (Is_Valid): Move to local package Validity
14853         (Set_Valid): Move to local package Validity
14854
14855 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14856             Pablo Oliveira  <oliveira@adacore.com>
14857
14858         * g-expect.adb (Get_Command_Output): When expanding the output buffer
14859         we must ensure that there is enough place for the new data we are going
14860         to copy in.
14861
14862 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14863
14864         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
14865         computation.
14866
14867 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14868             Vincent Celier  <celier@adacore.com>
14869
14870         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
14871         (Stack_String): Add this String that contains the name of the Stack
14872         package in the project file.
14873         (Packages_To_Check_By_Stack): Add this list that contains the packages
14874         to be checked by gnatstack, which are the naming and the stack packages.
14875         (Check_Files): If no .ci files were specified for gnatstack we add all
14876         the .ci files belonging to the projects, including binder generated
14877         files.
14878         (Non_VMS_Usage): Document that gnatstack accept project file switches.
14879         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
14880         Add gnatstack to the list of commands that use project file related
14881         switches, and get the single attribute Switches from the stack package
14882         in a project file when calling gnatstack. Parse the -U flag for
14883         processing files belonging to all projects in the project tree.
14884         Remove all processing for command Setup
14885
14886         * prj-attr.adb: Add new package Stack with single attribute Switches
14887
14888         * vms_conv.ads (Command_Type): Add command Stack.
14889         Move to body declarations that are only used in the body: types Item_Id,
14890         Translation_Type, Item_Ptr, Item and its subtypes.
14891
14892         * vms_conv.adb: (Initialize): Add data for new command Stack.
14893         Add declarations moved from the spec: types Item_Id, Translation_Type,
14894         Item_Ptr, Item and its subtypes.
14895         (Cargs_Buffer): New table
14896         (Cargs): New Boolean global variable
14897         (Process_Buffer): New procedure to create arguments
14898         (Place): Put character in table Buffer or Cargs_Buffer depending on the
14899          value of Cargs.
14900         (Process_Argument): Set Cargs when processing qualifiers for GNAT
14901         COMPILE
14902         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
14903         empty, for table Cargs_Buffer.
14904         (Initialize): Remove component Setup in Command_List
14905
14906 2007-04-06  Vincent Celier  <celier@adacore.com>
14907
14908         * gprep.adb (Process_Files.Process_One_File): Use full file name when
14909         issuing pragma Source_Reference.
14910
14911 2007-04-06  Emmanuel Briot  <briot@adacore.com>
14912
14913         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
14914         [[:xdigit:]] character class.
14915         Also raise an exception when an invalid character class is used.
14916
14917 2007-04-06  Pascal Obry  <obry@adacore.com>
14918
14919         * i-cstrea.ads: (fopen): Add encoding parameter.
14920         (freopen): Idem.
14921         Change reference from a-sysdep.c to sysdep.c in comment.
14922         Update copyright notice.
14923         This set of patch add support for the encoding form parameter.
14924
14925         * mingw32.h (S2WSU): New macro to convert from a string to a
14926         wide-string using the UTF-8 encoding. The S2WS macro supports now only
14927         standard 8bits encoding.
14928         (WS2SU): As above but converting from wide-sring to string.
14929         This is needed as it is necessary to have access to both versions in the
14930         runtime for the form parameter encoding support.
14931         This set of patch add support for the encoding form parameter.
14932         (S2WS): Improve implementation to handle cases where the filename is not
14933         UTF-8 encoded. In this case we default to using the current code page
14934         for the conversion.
14935
14936         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
14937         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
14938         the constants defined in adaint.h.
14939         (fopen): Add encoding parameter.
14940         (freopen): Idem.
14941
14942         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
14943         encoding. This is needed for the Reset routine (freopen low level-call).
14944
14945         * s-fileio.adb (Open): Decode encoding form parameter and set the
14946         corresponding encoding value into AFCB structure.
14947         (Reset): Pass the encoding value to freopen.
14948         (Close): Move the call to Lock_Task to the beginning of the procedure.
14949
14950 2007-04-06  Geert Bosch  <bosch@adacore.com>
14951             Robert Dewar  <dewar@adacore.com>
14952
14953         * i-fortra.ads: Add Double_Complex type.
14954
14955         * impunit.adb: (Is_Known_Unit): New function
14956         Add Gnat.Byte_Swapping
14957         Add GNAT.SHA1
14958         Add new Ada 2005 units
14959         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
14960         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
14961         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
14962         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
14963
14964         * impunit.ads (Is_Known_Unit): New function
14965
14966         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
14967         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
14968         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
14969         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
14970         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
14971         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
14972         New files.
14973
14974         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
14975
14976         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
14977
14978 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
14979             Arnaud Charlet  <charlet@adacore.com>
14980
14981         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
14982         __gnat_adjust_context_for_raise.
14983         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
14984         implementation of floating point operations as native x86 targets.
14985         So the FPU should be initialized in the same way using finit. Fix
14986         floating point operations accuracy issues.
14987         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
14988         member in struct sigaction, so as to avoid warning for incompatible
14989         pointer types.
14990
14991 2007-04-06 Serguei Rybin  <rybin@adacore.com>
14992
14993         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
14994         switches from previously loaded tree
14995
14996 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14997
14998         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
14999         cases where a given dependency has a body or not.
15000         (Write_With_File_Names): New subprogram, common code for the two cases
15001         above.
15002
15003 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15004             Javier Miranda  <miranda@adacore.com>
15005
15006         * lib-xref.ads, lib-xref.adb: 
15007         Modify the loop that collects type references, to include interface
15008         types that the type implements. List each of these interfaces when
15009         building the entry for the type.
15010         (Generate_Definition): Initialize component Def and Typ of new entry
15011         in table Xrefs, to avoid to have these components unitialized.
15012         (Output_References): Split Is_Abstract flag into
15013         Is_Abstract_Subprogram and Is_Abstract_Type.
15014         (Generate_Reference): Add barrier to do not generate the warning
15015         associated with Ada 2005 entities with entities generated by the
15016         expander.
15017
15018 2007-04-06  Robert Dewar  <dewar@adacore.com>
15019             Arnaud Charlet  <charlet@adacore.com>
15020             Vincent Celier  <celier@adacore.com>
15021
15022         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15023         Update 'Exception Handling Control' chapter which was outdated.
15024         Minor fix to documentation of -gnatwq
15025         Remove section "Adapting the Run Time to a New C++ Compiler" because
15026         it is now obsolete.
15027         Add passage on need of -nostart-files in some non-ada-main cases.
15028         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15029         Update documentation about Interfacing with C++
15030         Add documentation for new gnatmake switch -p
15031         Add missing protocol part in URLs.
15032         Document -gnatyA
15033         Document pragma Compile_Time_Error
15034         Add documentation for Object_Size indicating that stand alone
15035         objects can have a larger size in some cases.
15036         Add node for GNAT.Byte_Swapping, GNAT.SHA1
15037         Update reference to the Ravenscar profile.
15038         Document pragma Unreferenced_Objects
15039
15040         * gnat-style.texi: Fix typo
15041
15042 2007-04-06  Vincent Celier  <celier@adacore.com>
15043
15044         * mlib.adb (Building_Library): Only output "building a library..." in
15045         verbose mode
15046
15047         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15048         files in verbose mode.
15049
15050         * mlib-utl.adb (Ar): Only output the first object files when not in
15051         verbose mode.
15052         (Gcc): Do not display all the object files if not in verbose mode, only
15053         the first one.
15054
15055 2007-04-06  Robert Dewar  <dewar@adacore.com>
15056
15057         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15058         it no longer destroys the contents of Name_Buffer or Name_Len and
15059         non-standard and invalid names are handled better.
15060         (Get_Decoded_Name_String): Improve performance by using
15061         Name_Has_No_Encodings flag in the name table.
15062         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15063         Used for debugging printouts.
15064
15065 2007-04-06  Robert Dewar  <dewar@adacore.com>
15066             Javier Miranda  <miranda@adacore.com>
15067             Bob Duff  <duff@adacore.com>
15068
15069         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15070         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15071         there is no need to generate always a record_definition_node in case
15072         of synchronized interface types.
15073         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15074         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15075         illegal in Ada 95, in cases where it is legal. Change the warnings to
15076         errors in other cases. Don't give the error unless the "not null"
15077         parses properly. Correct the source position at which the error occurs.
15078         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15079         P_Null_Exclusion, to suppress "not null" warnings.
15080         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15081         associated goto statements.
15082
15083         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15084         of END RECORD
15085
15086         * scans.ads (Type_Token_Location): New flag
15087
15088         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15089         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
15090         P_Null_Exclusion, to suppress "not null" warnings.
15091
15092 2007-04-06  Robert Dewar  <dewar@adacore.com>
15093             Javier Miranda  <miranda@adacore.com>
15094             Bob Duff  <duff@adacore.com>
15095             Vincent Celier  <celier@adacore.com>
15096
15097         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
15098         (Extensions_Allowed): No longer sets Ada_Version
15099         Entry for pragma Unreferenced_Objects
15100
15101         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
15102         system.tasking if pragma priority used in a procedure
15103         (Analyze_Pragma, case Warning): Handle dot warning switches
15104         (Process_Compile_Time_Warning_Or_Error): New procedure
15105         (Analyze_Pragma): Add processing for Compile_Time_Error
15106         Add support for extra arguments External_Name and Link_Name.
15107         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
15108         (Process_Import_Or_Interface): Add support for the use of pragma Import
15109         with tagged types.
15110         (Extensions_Allowed): No longer affects Ada_Version
15111         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
15112         Is_Abstract_Type. Make sure these are called only when appropriate.
15113         Add processing for pragma Unreferenced_Objects
15114
15115         * snames.h, snames.ads, snames.adb: Add entry for pragma
15116         Compile_Time_Error
15117         Add new standard name Minimum_Binder_Options for new gprmake
15118         Add new standard names for gprmake: Archive_Suffix,
15119         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
15120         Library_Support, Library_Version_Options,
15121         Shared_Library_Minimum_Options,
15122         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
15123         Change Name_Call to Name_uCall so that it cannot clash with a legal
15124         subprogram name.
15125         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
15126         Append C_Plus_Plus to convention identifiers as synonym for CPP
15127         Add new standard names Stack and Builder_Switches
15128         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
15129         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
15130         Run_Path_Option, Toolchain_Version.
15131         Entry for pragma Unreferenced_Objects
15132
15133         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
15134         switches, without repetition of "eD". Make sure that last character of
15135         -gnatep= switch is not taken as -gnat switch character.
15136         Complete rewrite of circuit for handling saving compilation options
15137         Occasioned by need to support dot switchs for -gnatw, but cleans up
15138         things in general.
15139         -gnatX does not affect Ada_Version
15140         Include -gnatyA in -gnatg style switches
15141
15142         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
15143         warnings on return objects.
15144         (Warn_On_Useless_Assignment): Exclude warnings on return objects
15145         (Set_Dot_Warning_Switch): New procedure
15146         (Check_References): Add missing case of test for
15147         Has_Pragma_Unreferenced_Objects
15148         (Output_Unreferenced_Messages): Implement effect of new pragma
15149         Unreferenced_Objects, remove special casing of limited controlled
15150         variables.
15151
15152 2007-04-06  Vincent Celier  <celier@adacore.com>
15153
15154         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
15155         the default project path, initially done during elaboration of the
15156         package.
15157         If the prefix returned by Sdefault is null, get the prefix from a call
15158         to Executable_Prefix_Path.
15159         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
15160         null.
15161
15162         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
15163         canonical directory name to open the directory from which files are
15164         retrieved.
15165         (Record_Other_Sources): Idem.
15166         (Locate_Directory): Add the possibility to create automatically missing
15167         directories when Setup_Projects is True.
15168         Call Locate_Directory so that the directory will be created when
15169         Setup_Projects is True, for object dir, library dir, library ALI dir,
15170         library source copy dir and exec dir.
15171
15172         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
15173         versions of GNAT.
15174
15175 2007-04-06  Robert Dewar  <dewar@adacore.com>
15176
15177         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
15178         Use First/Next_Component_Or_Discriminant
15179         (Analyze_Record_Representation_Clause):
15180         Use First/Next_Component_Or_Discriminant
15181         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
15182         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
15183         definition if type is unconstrained.
15184         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15185         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
15186         Is_Abstract_Subprogram and Is_Abstract_Type.
15187         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15188
15189         * repinfo.adb (List_Record_Info): Use First/
15190         Next_Component_Or_Discriminant.
15191
15192         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
15193         New procedure.
15194
15195         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
15196         Include -gnatyA in default switches
15197
15198         * opt.ads: (Warn_On_Non_Local_Exception): New flag
15199         (Warn_On_Reverse_Bit_Order): New flag
15200         (Extensions_Allowed): Update the documentation.
15201         (Warn_On_Questionable_Missing_Parens): Now on by default
15202
15203         * usage.adb: Add documentation of -gnatw.x/X switches
15204         Document new -gnatyA style switch
15205         -gnatq warnings are on by default
15206
15207 2007-04-06  Ed Falis  <falis@adacore.com>
15208
15209         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
15210         full word is no longer compared twice.
15211
15212 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15213
15214         * sem_ch10.adb (Install_Limited_Context_Clauses.
15215         Expand_Limited_With_Clause): Use a new copy of selector name in the
15216         call to Make_With_Clause. This fixes the tree structure for ASIS
15217         purposes. Nothing is changed in the compiler behaviour.
15218         (Process_Body_Clauses): Handle properly use clauses whose prefix is
15219         a package renaming.
15220         (Install_Limited_With_Clauses): Do not install non-limited view when it
15221         is still incomplete.
15222
15223 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15224             Gary Dismukes  <dismukes@adacore.com>
15225
15226         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
15227         when capturing size information, instead of base type, which for a
15228         formal array type will be the unconstrained type.
15229         (Analyze_Formal_Object_Declaration): Add check for illegal default
15230         expressions for a formal in object of a limited type.
15231         (Instantiate_Object): Ditto.
15232         (Check_Formal_Package_Instance): Skip entities that are formal objects,
15233         because they were defaulted in the formal package and no check applies
15234         to them.
15235         (Check_Formal_Package_Instance): Extend conformance check to other
15236         discrete types beyond Integer.
15237         (Process_Default): Copy directly the unmatched formal. A generic copy
15238         has already been performed in Analyze_Formal_Package.
15239         (Analyze_Associations): If a formal subprogram has no match, check for
15240         partial parametrization before looking for a default, to prevent
15241         spurious errors.
15242         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
15243         not set the instantiation environment before analyzing the actuals.
15244         Fixes regression on 8515-003 with implementation of AI-133.
15245         Set_Instance_Env checks whether the generic unit is a predefined
15246         unit, in which case the instance must be analyzed with the latest Ada
15247         mode. This setting must take place after analysis of the actuals,
15248         because the actuals must be analyzed and frozen in the Ada mode extant
15249         outside of the current instantiation.
15250         (Save_Env, Restore_Env): Preserve and restore the configuration
15251         parameters so that predefined units can be compiled in the proper Ada
15252         mode.
15253         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
15254         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
15255         and Is_Abstract_Type.
15256         (Analyze_Formal_Package): For better error recovery, Add exception
15257         handler to catch Instantion_Error, which can be raised in
15258         Analyze_Associations
15259
15260 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15261             Bob Duff  <duff@adacore.com>
15262             Gary Dismukes  <dismukes@adacore.com>
15263
15264         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
15265         prefix type is a discriminated subtype of the type of the formal.
15266         (Analyze_Allocator): Collect all coextensions regardless of the context.
15267         Whether they can be allocated statically is determined in exp_ch4.
15268         (Analyze_Selected_Component): If the prefix is a limited view and the
15269         non-limited view is available, use the non-limited one.
15270         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
15271         therefore illegal), suggest a qualified expression rather than a type
15272         conversion, because a type conversion would be illegal in this context.
15273         (Anayze_Allocator): Trace recursively all nested allocators so that all
15274         coextensions are on the corresponding list for the root. Do no mark
15275         coextensions if the root allocator is within a declaration for a stack-
15276         allocated object, because the access discriminants will be allocated on
15277         the stack as well.
15278         (Analyze_Call): Remove restriction on calls to limited functions for the
15279         cases of generic actuals for formal objects, defaults for formal objects
15280         and defaults for record components.
15281         (Analyze_Allocator): Before analysis, chain coextensions on the proper
15282         element list. Their expansion is delayed until the enclosing allocator
15283         is processed and its finalization list constructed.
15284         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
15285         for an operation with the given name among the primitive operations of
15286         the corresponding record type.
15287         (Analyze_Selected_Component): If the prefix is a task type that
15288         implements an interface, and there is no entry with the given name,
15289         check whether there is another primitive operation (e.g. a function)
15290         with that name.
15291         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
15292         properly the indexing of a function call written in prefix form, where
15293         the function returns an array type, and all parameters of the function
15294         except the first have defaults.
15295         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
15296         the original operands, rather than relocating them, for efficiency and
15297         to work properly when an operand is overloaded.
15298         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
15299         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
15300         (Analyze_Selected_Component): If the prefix is a private extension, only
15301         scan the visible components, not those of the full view.
15302         (Try_Primitive_Operation): If the operation is a procedure, collect all
15303         possible interpretations, as for a function, because in the presence of
15304         classwide parameters several primitive operations of the type can match
15305         the given arguments.
15306
15307 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15308             Robert Dewar  <dewar@adacore.com>
15309
15310         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
15311         tag-indeterminate call to an abstract function, when the left-hand side
15312         is not classwide.
15313         (Analyze_Loop_Statement): Improve detection of infinite loops
15314
15315 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15316             Thomas Quinot  <quinot@adacore.com>
15317
15318         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
15319         out of Analyze_Package_Declaration, because processing must be applied
15320         to package bodies as well, for deferred constants completed by pragmas.
15321         (Analyze_Package_Declaration): When the package declaration being
15322         analyzed does not require an explicit body, call Check_Completion.
15323         (May_Need_Implicit_Body): An implicit body is required when a package
15324         spec contains the declaration of a remote access-to-classwide type.
15325         (Analyze_Package_Body): If the package contains RACWs, append the
15326         pending subprogram bodies generated by exp_dist at the end of the body.
15327         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
15328         Is_Abstract_Subprogram and Is_Abstract_Type.
15329         (Preserve_Full_Attributes): The full entity list is not an attribute
15330         that must be preserved from full to partial view.
15331
15332         * sem_dist.adb (Add_RAS_Dereference_TSS):
15333         Change primitive name to _Call so it cannot clash with any legal
15334         identifier, and be special-cased in Check_Completion.
15335         Mark the full view of the designated type for the RACW associated with
15336         a RAS as Comes_From_Source to get proper view switching when installing
15337         private declarations.
15338         Provite a placeholder nested package body along with the nested spec
15339         to have a place for Append_RACW_Bodies to generate the calling stubs
15340         and stream attributes.
15341
15342 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15343             Robert Dewar  <dewar@adacore.com>
15344
15345         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
15346         that is a limited view, check the non-limited view if available.
15347         (Undefined): Refine error message for missing with of Text_IO
15348         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
15349         to distinguish real missing with cases.
15350         Fix format of all missing with messages
15351         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
15352         renaming as body when renamed entity is abstract.
15353
15354 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15355             Javier Miranda  <miranda@adacore.com>
15356
15357         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
15358         predicate recursive, to handle complex expressions on literals whose
15359         spurious ambiguity comes from the abstract interpretation of some
15360         subexpression.
15361         (Interface_Present_In_Ancestor): Add support to concurrent record
15362         types.
15363         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
15364         Is_Abstract_Subprogram and Is_Abstract_Type.
15365
15366 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15367             Javier Miranda  <miranda@adacore.com>
15368
15369         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
15370         dereference of a local object R created as a reference to another
15371         object O, use the access level of O.
15372         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
15373         rather than local Same_Formal_Type, to check whether protected operation
15374         overrides an inherited one.
15375         (Same_Formal_Type): New predicate, used when matching signatures of
15376         overriding synchronized operations, to handle the case when a formal
15377         has a type that is a generic actual.
15378         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
15379         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
15380         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
15381         syntactic ambiguities involving indexing of function calls that return
15382         arrays.
15383         (Abstract_Interface_List): New subprogram that returns the list of
15384         abstract interfaces associated with a concurrent type or a
15385         concurrent record type.
15386         (Interface_Present_In_Parent): New subprogram used to check if a
15387         given type or some of its parents implement a given interface.
15388         (Collect_Abstract_Interfaces): Add support for concurrent types
15389         with interface types.
15390         (Has_Abstract_Interfaces): Add support for concurrent types with
15391         interface types.
15392         (Is_Parent): New subprogram that determines whether E1 is a parent
15393         of E2. For a concurrent type its parent is the first element of its
15394         list of interface types; for other types this function provides the
15395         same result than Is_Ancestor.
15396         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
15397         (Collect_Synchronized_Interfaces): Removed because the subprogram
15398         Collect_Abstract_Interfaces provides this functionality.
15399         (Collect_Abstract_Interfaces): Minor update to give support to
15400         concurrent types and thus avoid undesired code duplication.
15401         (Get_Subprogram_Entity): Handle entry calls.
15402         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
15403         entry calls.
15404         (Enter_Name): Do not give -gnatwh hiding warning for record component
15405         entities, they never result in hiding.
15406
15407 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15408             Robert Dewar  <dewar@adacore.com>
15409
15410         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
15411         to chain nested components that are allocators for access discriminants
15412         of the enclosing object.
15413         Add N_Push and N_Pop nodes
15414         New field Exception_Label added
15415         (Local_Raise_Statements): New field in N_Exception_Handler_Node
15416         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
15417         (Is_Coextension): New flag for allocators, to mark allocators that
15418         correspond to access discriminants of dynamically allocated objects.
15419         (N_Block_Statement): Document the fact that the corresponding entity
15420         can be an E_Return_Statement.
15421         (Is_Coextension): New flag for allocators.
15422         Remove all code for DSP option
15423
15424         * sprint.ads, sprint.adb: Display basic information for class_wide
15425         subtypes. Add handling of N_Push and N_Pop nodes
15426
15427 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15428
15429         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
15430         before propagating exception.
15431
15432 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15433
15434         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
15435         an address always within the call instruction from a return address.
15436
15437 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15438             Eric Botcazou  <botcazou@adacore.com>
15439
15440         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
15441         expression with a COMPOUND_EXPR including the call instead of emitting
15442         the call directly here.
15443         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
15444         high bound is constant and the slice is empty.  Tidy.
15445         (tree_transform, case N_Op_Not): Handle properly the case where the
15446         operation applies to a private type whose full view is a modular type.
15447         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
15448         Address_Clause, use the associated Expression as the GNAT tree
15449         representing the choice value to ensure the corresponding GCC tree is
15450         of the proper kind.
15451         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
15452         instead of just the operands, as the base GCC stabilize_reference does.
15453         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
15454         requested; otherwise fail.
15455         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
15456
15457 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15458
15459         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
15460         implementation of UI_Div.
15461         (UI_Div): Reimplement as a call to UI_Div_Rem.
15462         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
15463         remainder, avoiding the cost of a multiplication and a subtraction.
15464         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
15465         provides both quotient and remainder in a single computation.
15466         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
15467         functions for uint.
15468         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
15469         is undefined if the given n is not inversible.
15470
15471 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15472
15473         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
15474         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
15475         opcodes.
15476
15477 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15478             Olivier Hainque  <hainque@adacore.com>
15479
15480         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
15481         when updating the contents of the old pointer to an unconstrained array.
15482         (end_subprog_body): Set error_gnat_node to Empty.
15483         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
15484         (unchecked_convert): For subtype to base type conversions, require that
15485         the source be a subtype if it is an integer type.
15486         (builtin_decls): New global, vector of available builtin functions.
15487         (gnat_pushdecl): Add global builtin function declaration nodes to the
15488         builtin_decls list.
15489         (gnat_install_builtins): Adjust comments.
15490         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
15491         calling gnat_pushdecl, so that it knows when it handed a builtin
15492         function declaration node.
15493         (builtin_decl_for): Search the builtin_decls list.
15494
15495 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15496
15497         * s-stchop-vxworks.adb: 
15498         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
15499
15500 2007-04-06  Robert Dewar  <dewar@adacore.com>
15501             Arnaud Charlet  <charlet@adacore.com>
15502
15503         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
15504
15505         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
15506         of files
15507         Add mention of -Sev (set initialize_scalars option from environment
15508         variable at run time) in gnatbind usage message.
15509
15510         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
15511
15512         * fname-uf.ads: Minor comment fix
15513
15514         * osint.ads: Change pragma Elaborate to Elaborate_All
15515
15516         * par-load.adb: Add documentation.
15517
15518         * sem_cat.ads, sem_cat.adb: Minor code reorganization
15519
15520         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
15521
15522         * s-secsta.ads: Extra comments
15523
15524         * s-soflin.ads: Minor comment fixes
15525
15526         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
15527
15528         * s-wchcon.ads: Minor comment addition
15529
15530         * treepr.adb: Minor change in message
15531         (Print_Name,Print_Node): Make these debug printouts more robust: print
15532         "no such..." instead of crashing on bad input.
15533
15534 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
15535
15536         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
15537         instead of gnat_signed_or_unsigned_type.
15538         * utils.c (gnat_signed_or_unsigned_type): Remove.
15539         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
15540         * gigi.h (gnat_signed_or_unsigned_type): Remove
15541
15542 2007-03-09  Roger Sayle  <roger@eyesopen.com>
15543
15544         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
15545         fold with the result of buildN.
15546         * decl.c (gnat_to_gnu_entity): Likewise.
15547         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
15548         * utils.c (finish_record_type, merge_sizes, max_size, convert):
15549         Likewise.
15550         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
15551         nonbinary_modular_operation, build_binary_op, build_unary_op,
15552         build_cond_expr): Likewise.
15553
15554         * utils.c (convert): Use fold_build1 when casting values to void.
15555         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
15556         fold_convert instead of convert when appropriate.
15557
15558 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
15559
15560         * Make-lang.in: Add install-pdf target as copied from
15561         automake v1.10 rules.
15562
15563 2007-02-28  Andreas Schwab  <schwab@suse.de>
15564
15565         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
15566         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
15567         (doc/gnat-style.info): Likewise.
15568
15569 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
15570
15571         * gnat-style.texi: Standardize title page.
15572         * gnat_rm.texi: Likewise.
15573         * gnat_ugn.texi: Likewise.
15574
15575 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
15576
15577         * decl.c (annotate_value): Adjust for refactoring of tree_map
15578         hierarchy.
15579
15580 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
15581
15582         * decl.c (annotate_value): Adjust for refactoring of tree_map
15583         hierarchy.
15584
15585 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
15586
15587         PR ada/18819
15588         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
15589         untagged derived type, add hidden components to keep discriminant
15590         layout consistent, when a given discriminant of the derived type
15591         constraints several discriminants of the parent type.
15592
15593 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
15594             Sandra Loosemore  <sandra@codesourcery.com>
15595
15596         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
15597         build the call expression.
15598         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
15599         * utils.c (max_size) <tcc_exceptional>: Delete.
15600         <tcc_vl_exp>: New case.
15601         <tcc_expression>: Delete CALL_EXPR subcase.
15602         (build_global_cdtor): Use build_call_nary instead of build3.
15603         * utils2.c (build_call_1_expr): Likewise.
15604         (build_call_2_expr): Likewise.
15605         (build_call_0_expr): Likewise.
15606         (build_call_alloc_dealloc): Likewise.
15607
15608 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15609
15610         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
15611         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
15612         and _Unwind_SWord with _sleb128_t.
15613
15614 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
15615
15616         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
15617         * decl.c: Include gt-ada-decl.h.
15618         (annotate_value_cache): New.
15619         (annotate_value): Use it instead of TREE_COMPLEXITY.
15620
15621 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
15622
15623         * misc.c, utils2.c: Fix comment typos.
15624
15625 2007-01-24  Roger Sayle  <roger@eyesopen.com>
15626
15627         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
15628         TREE_CONSTANT_OVERFLOW.
15629         (allocatable_size_p, annotate_value): Likewise.
15630         * trans.c (gnat_to_gnu): Likewise.
15631         * utils.c (unchecked_convert): Likewise.
15632         * utils2.c (build_simple_component_ref): Likewise.
15633
15634 2007-01-23  Richard Guenther  <rguenther@suse.de>
15635
15636         PR bootstrap/30541
15637         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
15638         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
15639         (gnatboot3): Likewise.
15640         (GNATBIND): Do not define.
15641         * Makefile.in (GNATBIND): Do not define.
15642
15643 2007-01-08  Richard Guenther  <rguenther@suse.de>
15644
15645         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
15646         * trans.c (gnat_to_gnu): Likewise.
15647
15648 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
15649
15650         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
15651         * adaint.c: Likewise.
15652
15653 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
15654
15655         Merge from gimple-tuples-branch:
15656         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
15657
15658         * ada-tree.h (lang_tree_node): Handle gimple tuples.
15659         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
15660         GIMPLE_MODIFY_STMT.
15661
15662 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
15663
15664         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
15665         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
15666         Fix typos.
15667
15668 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
15669
15670         PR ada/27936
15671         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
15672         if the initializer takes into account the padding.
15673
15674 2006-11-11  Richard Guenther  <rguenther@suse.de>
15675
15676         * trans.c (maybe_stabilize_reference): Remove handling of
15677         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
15678
15679 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
15680
15681         PR ada/29707
15682         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
15683         (To_Target_Priority): New function.
15684
15685 2006-10-31  Robert Dewar  <dewar@adacore.com>
15686
15687         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
15688         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
15689         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
15690         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
15691         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
15692         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
15693         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
15694         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
15695         a-szbzha.adb: Minor reformatting. Fix header.
15696
15697         * a-numaux-x86.adb: Add parentheses for use of unary minus
15698         * a-ngcefu.adb: Supply missing parentheses for unary minus
15699         * a-ngcoty.adb: Add parens for use of unary minus
15700         * a-ngelfu.adb: Add missing parens for unary minus
15701         * a-tifiio.adb: Add parentheses for uses of unary minus
15702
15703 2006-10-31  Robert Dewar  <dewar@adacore.com>
15704             Bob Duff  <duff@adacore.com>
15705             Ed Schonberg  <schonberg@adacore.com>
15706
15707         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
15708         with multiplying operator.
15709         (Expected_Type_Is_Any_Real): New function to determine from the Parent
15710         pointer whether the context expects "any real type".
15711         (Resolve_Arithmetic_Op): Do not give an error on calls to the
15712         universal_fixed "*" and "/" operators when they are used in a context
15713         that expects any real type. Also set the type of the node to
15714         Universal_Real in this case, because downstream processing requires it
15715         (mainly static expression evaluation).
15716         Reword some continuation messages
15717         Add some \\ sequences to continuation messages
15718         (Resolve_Call): Refine infinite recursion case. The test has been
15719         sharpened to eliminate some false positives.
15720         Check for Current_Task usage now includes entry barrier, and is now a
15721         warning, not an error.
15722         (Resolve): If the call is ambiguous, indicate whether an interpretation
15723         is an inherited operation.
15724         (Check_Aggr): When resolving aggregates, skip associations with a box,
15725         which are priori correct, and will be replaced by an actual default
15726         expression in the course of expansion.
15727         (Resolve_Type_Conversion): Add missing support for conversion from
15728         a class-wide interface to a tagged type. Minor code cleanup.
15729         (Valid_Tagged_Converion): Add support for abstact interface type
15730         conversions.
15731         (Resolve_Selected_Component): Call Generate_Reference here rather than
15732         during analysis, and use May_Be_Lvalue to distinguish read/write.
15733         (Valid_Array_Conversion): New procedure, abstracted from
15734         Valid_Conversion, to incorporate accessibility checks for arrays of
15735         anonymous access types.
15736         (Valid_Conversion): For a conversion to a numeric type occurring in an
15737         instance or inlined body, no need to check that the operand type is
15738         numeric, since this has been checked during analysis of the template.
15739         Remove legacy test for scope name Unchecked_Conversion.
15740
15741         * sem_res.ads: Minor reformatting
15742
15743         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
15744         (PE_Current_Task_In_Entry_Body): New exception code
15745         (SE_Restriction_Violation): Removed, not used
15746
15747         * a-except.ads:  Update comments.
15748
15749         * types.h, types.ads: Add definition for Validity_Check
15750         (PE_Current_Task_In_Entry_Body): New exception code
15751         (SE_Restriction_Violation): Removed, not used
15752
15753 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15754
15755         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
15756         error status.
15757
15758 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15759             Jose Ruiz  <ruiz@adacore.com>
15760
15761         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
15762         part of Ada.Calendar: all subprogram raise Unimplemented.
15763         (Split_W_Offset): Temp function body, raising Unimplemented
15764
15765         * a-calend.ads, a-calend-vms.ads: 
15766         Add imported variable Invalid_TZ_Offset used to designate targets unable
15767         to support time zones.
15768         (Unimplemented): Temporary function raised by the body of new
15769         subprograms below.
15770         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
15771         unit provides handling of leap seconds and is used by the new Ada 2005
15772         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
15773         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
15774         version returns an extra value which is the offset to UTC.
15775
15776         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
15777         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
15778         (Split_W_Offset): New function body.
15779         (Time_Of): When a date is close to UNIX epoch, compute the time for
15780         that date plus one day (that amount is later substracted after
15781         executing mktime) so there are no problems with time zone adjustments.
15782
15783         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
15784
15785         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
15786         a-catizo.ads, a-catizo.adb: New files.
15787
15788         * impunit.adb: Add new Ada 2005 entries
15789
15790         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
15791         Rename all occurences of "__gnat_localtime_r" to
15792         "__gnat_localtime_tzoff".
15793         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
15794         zone data and calculate the GMT offset.
15795         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
15796         Use the field "tm_gmtoff" to extract the GMT offset.
15797         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
15798         the external variable "timezone" to calculate the GMT offset.
15799
15800 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15801             Jose Ruiz  <ruiz@adacore.com>
15802
15803         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
15804         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
15805         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
15806         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
15807         System.Any_Priority to a POSIX priority on the target.
15808
15809         * system-linux-ia64.ads: 
15810         Extend range of Priority types on Linux to use the whole range made
15811         available by the system.
15812
15813         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
15814         function maps from System.Any_Priority to a POSIX priority on the
15815         target.
15816         (PTHREAD_PRIO_PROTECT): Set real value.
15817         (PTHREAD_PRIO_INHERIT): Now a function.
15818         (SIGCPUFAIL): New signal.
15819         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
15820         are documented as reserved by the OS.
15821
15822         * system-aix.ads: Use the full range of priorities provided by the
15823         system on AIX.
15824
15825         * s-taprop-posix.adb: Call new function To_Target_Priority.
15826         (Set_Priority): Take into account Task_Dispatching_Policy and
15827         Priority_Specific_Dispatching pragmas when determining if Round Robin
15828         must be used for scheduling the task.
15829
15830         * system-linux-x86_64.ads, system-linux-x86.ads, 
15831         system-linux-ppc.ads: Extend range of Priority types on Linux to use
15832         the whole range made available by the system.
15833
15834         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
15835         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
15836         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
15837         when deallocating the TCB in order to avoid potential references to
15838         deallocated data.
15839         (Set_Priority): Take into account Task_Dispatching_Policy and
15840         Priority_Specific_Dispatching pragmas when determining if Round Robin
15841         or FIFO within priorities must be used for scheduling the task.
15842
15843         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
15844         the Thread field (to be used internally by the run-time system) and the
15845         kernel-level task id in the LWP field (to be used by the debugger).
15846         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
15847         instance, and propagate the current task options to the spawned task.
15848         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
15849         (Initialize): Set Round Robin dispatching when the corresponding pragma
15850         is in effect.
15851
15852 2006-10-31  Robert Dewar  <dewar@adacore.com>
15853
15854         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
15855         system-linux-hppa.ads, system-hpux-ia64.ads, 
15856         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
15857         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
15858         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
15859         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
15860         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
15861         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
15862         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
15863         Default_Bit_Order) to kill constant condition warnings for references
15864         to this switch.
15865
15866 2006-10-31  Vincent Celier  <celier@adacore.com>
15867             Eric Botcazou  <ebotcazou@adacore.com>
15868
15869         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
15870         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
15871         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
15872         Ext_To, when building the library file name
15873
15874         * mlib-tgt-vxworks.adb: ditto.
15875         (Get_Target_Suffix): Add support for x86 targets.
15876
15877         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
15878
15879         * mlib-tgt-darwin.adb: 
15880         Use Append_To, instead of Ext_To, when building the library file name
15881         (Flat_Namespace): New global variable.
15882         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
15883         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
15884         (Link_Shared_Libgcc): Delete.
15885         (Build_Dynamic_Library): Adjust for above changes.
15886         Use Opt package.
15887         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
15888
15889 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
15890
15891         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
15892         (Initialize): Add type conversions required by above change.
15893
15894 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
15895
15896         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
15897         (getpid): New body for this function that uses the underlying taskIdSelf
15898         function for VxWorks 5 and VxWorks 6 in kernel mode.
15899         (unsigned_int): New type, modular to allow logical bit operations.
15900         (taskOptionsGet): New imported function.
15901
15902         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
15903         field to be compliant with the type used by the corresponding operating
15904         system primitive.
15905
15906 2006-10-31  Pascal Obry  <obry@adacore.com>
15907             Eric Botcazou  <ebotcazou@adacore.com>
15908             Vincent Celier  <celier@adacore.com>
15909
15910         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
15911         ASCII version of the registry API. This is needed as the GNAT runtime
15912         is now UNICODE by default.
15913         Include version.h.
15914         (get_gcc_version): Do not hardcode the return value.
15915         (__gnat_file_time_name): On Windows properly set the default returned
15916         value to -1 which corresponds to Invalid_Time.
15917         (__gnat_fopen): New routine. A simple wrapper on all plateforms
15918          except on Windows where it does conversion for unicode support.
15919         (__gnat_freopen): Idem.
15920         (__gnat_locate_exec_on_path): If environment variable PATH does not
15921         exist, return a NULL pointer
15922
15923         * adaint.h: (__gnat_fopen): Declare.
15924         (__gnat_freopen): Likewise.
15925
15926         * mingw32.h (_tfreopen): Define this macro here for older MingW
15927         version.
15928         Activate the unicode support on platforms using a MingW runtime
15929         version 3.9 or newer.
15930
15931         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
15932         This is needed for proper unicode support on Windows.
15933         (freopen): Idem.
15934
15935 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
15936             Nicolas Setton  <setton@adacore.com>
15937             Olivier Hainque  <hainque@adacore.com>
15938             Gary Dismukes  <dismukes@adacore.com>
15939
15940         * gigi.h: (tree_code_for_record_type): Declare.
15941         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
15942         (get_global_renaming_pointers): Rename to
15943         invalidate_global_renaming_pointers.
15944         (static_ctors): Delete.
15945         (static_dtors): Likewise.
15946         (gnat_write_global_declarations): Declare.
15947         (create_var_decl): Adjust descriptive comment to indicate that the
15948         subprogram may return a CONST_DECL node.
15949         (create_true_var_decl): Declare new function, similar to
15950         create_var_decl but forcing the creation of a VAR_DECL node.
15951         (get_global_renaming_pointers): Declare.
15952         (add_global_renaming_pointer): Likewise.
15953
15954         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
15955
15956         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
15957         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
15958         processing.
15959         (gnat_to_gnu_entity): Remove From_With_Type from computation for
15960         imported_p.
15961         <E_Access_Type>: Use the Non_Limited_View as the full view of the
15962         designated type if the pointer comes from a limited_with clause.  Make
15963         incomplete designated type if it is in the main unit and has a freeze
15964         node.
15965         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
15966         Underlying_Full_View similarly.  Return earlier if the full view already
15967         has an associated tree.
15968         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
15969         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
15970         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
15971         reference type built for objects with an address clause.
15972         Use create_true_var_decl with const_flag set for
15973         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
15974         TREE_READONLY set.
15975         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
15976         for Character and Wide_Character types. This info is read by the
15977         dwarf-2 writer, and is needed to be able to use the command "ptype
15978         character" in the debugger.
15979         (gnat_to_gnu_entity): When generating a type representing
15980         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
15981         so that debug writers can distinguish it from ordinary integers.
15982         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
15983         addition to TREE_READONLY to assert the constantness of variables for
15984         elaboration purposes.
15985         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
15986         parameters to call new Einfo function First_Formal_With_Extras.
15987         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
15988         protected type with its corresponding discriminant, to obtain a usable
15989         declaration
15990         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
15991         for a multiple elaboration of the "equivalent" type.
15992         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
15993         into record_global_renaming_pointer.
15994         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
15995         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
15996         <E_Array_Subtype>: Likewise.
15997         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
15998         incomplete subtypes and incomplete subtypes of incomplete types visible
15999         through a limited with clause.
16000         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16001         the base index type for the maximum size of the array only if they are
16002         constant.
16003         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16004         expression into a SAVE_EXPR if stabilization failed.
16005
16006         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16007         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16008         by lower level compilation passes.
16009         (gnat_genericize): New function, lowering a function body to GENERIC.
16010         Turn the type of RESULT_DECL into a real reference type if the decl
16011         has been marked DECL_BY_REFERENCE, and adjust references to the latter
16012         accordingly.
16013         (gnat_genericize_r): New function. Tree walking callback for
16014         gnat_genericize.
16015         (convert_from_reference, is_byref_result): New functions. Helpers for
16016         gnat_genericize_r.
16017         (create_type_decl): Call gnat_pushdecl before calling
16018         rest_of_decl_compilation, to make sure that field TYPE_NAME of
16019         type_decl is properly set before calling the debug information writers.
16020         (write_record_type_debug_info): The heuristics which compute the
16021         alignment of a field in a variant record might not be accurate. Add a
16022         safety test to make sure no alignment is set to a smaller value than
16023         the alignment of the field type.
16024         (make_dummy_type): Use the Non_Limited_View as the underlying type if
16025         the type comes from a limited_with clause. Do not loop on the full view.
16026         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16027         (dummy_node_table): New global variable, moved from decl.c.
16028         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16029         (save_gnu_tree): Use above macros.
16030         (get_gnu_tree): Likewise.
16031         (present_gnu_tree): Likewise.
16032         (init_dummy_type): New function, moved from decl.c. Use above macros.
16033         (make_dummy_type): Likewise.
16034         (tree_code_for_record_type): New function extracted from make_dummy_type
16035         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16036         (static_ctors): Change it to a vector, make static.
16037         (static_dtors): Likewise.
16038         (end_subprog_body): Adjust for above change.
16039         (build_global_cdtor): Moved from trans.c.
16040         (gnat_write_global_declarations): Emit global constructor and
16041         destructor, and call cgraph_optimize before emitting debug info for
16042         global declarations.
16043         (global_decls): New global variable.
16044         (gnat_pushdecl): Store the global declarations in global_decls, for
16045         later use.
16046         (gnat_write_global_declarations): Emit debug information for global
16047          declarations.
16048         (create_var_decl_1): Former create_var_decl, with an extra argument to
16049          state whether the creation of a CONST_DECL is allowed.
16050         (create_var_decl): Behavior unchanged. Now a wrapper around
16051         create_var_decl_1 allowing CONST_DECL creation.
16052         (create_true_var_decl): New function, similar to create_var_decl but
16053         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16054         (create_field_decl): Do not always mark the field as addressable
16055         if its type is an aggregate.
16056         (global_renaming_pointers): New static variable.
16057         (add_global_renaming_pointer): New function.
16058         (get_global_renaming_pointers): Likewise.
16059
16060         * misc.c (gnat_dwarf_name): New function.
16061         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16062         (gnat_post_options): Add comment about structural alias analysis.
16063         (gnat_parse_file): Do not call cgraph_optimize here.
16064         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16065
16066         * trans.c (process_freeze_entity): Don't abort if we already have a
16067         non dummy GCC tree for a Concurrent_Record_Type, as it might
16068         legitimately have been elaborated while processing the associated
16069         Concurrent_Type prior to this explicit freeze node.
16070         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16071         exception handler volatile if it is of variable size.
16072         (process_type): Remove bypass for types coming from a limited_with
16073         clause.
16074         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16075         actual, convert the corresponding gnu_actual to the real destination
16076         type when necessary.
16077         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16078         originally TREE_READONLY but whose elaboration cannot be performed
16079         statically.
16080         Part of fix for F504-021.
16081         (tree_transform, subprogram cases): Change loops on formal parameters to
16082         call new Einfo function First_Formal_With_Extras.
16083         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16084         stemming from type conversion for the lhs.
16085         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16086         number of bits per unit for components of records.
16087         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16088         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16089         with At_End_Proc after the SJLJ EH cleanup.
16090         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
16091         compilation unit.
16092         (elaborate_all_entities): Do not retest type_annotate_only.
16093         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
16094         result type of an abstract subprogram, which may be an itype associated
16095         with an anonymous access result (related to AI-318-02).
16096         (build_global_cdtor): Move to utils.c.
16097         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
16098         this choice is not a null tree nor an integer constant.
16099         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
16100         on the body of elaboration routines instead of mark_unvisited.
16101         (add_stmt): Do not mark the tree.
16102         (add_decl_expr): Tweak comment.
16103         (mark_unvisited): Delete.
16104         (unshare_save_expr): New static function.
16105         (call_to_gnu): Issue an error when making a temporary around a
16106         procedure call because of non-addressable actual parameter if the
16107         type of the formal is by_reference.
16108         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
16109         after building the elaboration routine.
16110
16111 2006-10-31  Bob Duff  <duff@adacore.com>
16112
16113         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
16114         as finalization-started, so we can raise Program_Error on 'new'.
16115
16116         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
16117         collection has already started.
16118
16119         * s-finimp.ads (Collection_Finalization_Started): Added new special
16120         flag value for indicating that a collection's finalization has started.
16121
16122         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
16123         create a task whose master has already waited for dependent tasks.
16124
16125 2006-10-31  Robert Dewar  <dewar@adacore.com>
16126
16127         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
16128
16129         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
16130         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
16131         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
16132         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
16133         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
16134         a-except-2005.ads: Add pragma Preelaborable_Warning
16135
16136 2006-10-31  Robert Dewar  <dewar@adacore.com>
16137             Jose Ruiz  <ruiz@adacore.com>
16138
16139         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
16140
16141         * ali.adb (Get_Name): Properly handle scanning of wide character names
16142         encoded with brackets notation.
16143         (Known_ALI_Lines): Add S lines to this list.
16144         (Scan_ALI): Acquire S (priority specific dispatching) lines.
16145         New flag Elaborate_All_Desirable in unit table
16146
16147         * ali.ads (Priority_Specific_Dispatching): Add this range of
16148         identifiers to be used for Priority_Specific_Dispatching table entries.
16149         (ALIs_Record): Add First_Specific_Dispatching and
16150         Last_Specific_Dispatching that point to the first and last entries
16151         respectively in the priority specific dispatching table for this unit.
16152         (Specific_Dispatching): Add this table for storing each S (priority
16153         specific dispatching) line encountered in the input ALI file.
16154         New flag Elaborate_All_Desirable in unit table
16155
16156         * bcheck.adb: (Check_Configuration_Consistency): Add call to
16157         Check_Consistent_Dispatching_Policy.
16158         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
16159         verifying that the use of Priority_Specific_Dispatching,
16160         Task_Dispatching_Policy, and Locking_Policy is consistent across the
16161         partition.
16162
16163         * bindgen.adb: (Public_Version_Warning): function removed.
16164         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
16165         required information from ALI files in order to initialize the table
16166         containing the specific dispatching policy.
16167         (Gen_Adainit_Ada): Generate the variables required for priority specific
16168         dispatching entries (__gl_priority_specific_dispatching and
16169         __gl_num_specific_dispatching).
16170         (Gen_Adainit_C): Generate the variables required for priority specific
16171         dispatching entries (__gl_priority_specific_dispatching and
16172         __gl_num_specific_dispatching).
16173         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
16174         pragma entries.
16175         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
16176         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
16177         (Tab_To): Removed.
16178         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
16179         a call to gnat_set_globals.
16180         Generate a string containing settings from
16181         Priority_Specific_Dispatching pragma entries.
16182         (Gen_Object_Files_Options): Do not include the runtime libraries when
16183         pragma No_Run_Time is specified.
16184
16185         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
16186         consistency with s-intman-posix.adb.
16187         (__gnat_error_handler, case FreeBSD): Account for the fact that the
16188         handler is installed with SA_SIGINFO.
16189         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
16190         FreeBSD ZCX support, copied from Linux version.
16191         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
16192         sigfillset, and sigemptyset so the routines defined by MaRTE.
16193         (__gl_priority_specific_dispatching): Add this variable that stores the
16194         string containing priority specific dispatching policies in the
16195         partition.
16196         (__gl_num_specific_dispatching): Add this variable that indicates the
16197         highest priority for which a priority specific dispatching pragma
16198         applies.
16199         (__gnat_get_specific_dispatching): Add this routine that returns the
16200         priority specific dispatching policy, as set by a
16201         Priority_Specific_Dispatching pragma appearing anywhere in the current
16202         partition. The input argument is the priority number, and the result
16203         is the upper case first character of the policy name.
16204         (__gnat_set_globals): Now a dummy function.
16205         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
16206         mechargs instead of sigargs, as the latter can be retrieved from the
16207         former and sigargs is not what we want on ia64.
16208         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
16209         mechargs argument.
16210         (__gnat_adjust_context_for_raise, ia64-vms): New function.
16211         (tasking_error): Remove unused symbol.
16212         (_abort_signal): Move this symbol to the IRIX specific part since this
16213         is the only target that uses this definition.
16214         (Check_Abort_Status): Move this symbol to the IRIX specific part since
16215         this is the only target that uses this definition.
16216         (Lock_Task): Remove unused symbol.
16217         (Unlock_Task): Remove unused symbol.
16218
16219         * lib-writ.adb (Write_ALI): Output new S lines for
16220         Priority_Specific_Dispatching pragmas.
16221         Implement new flag BD for elaborate body desirable
16222
16223         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
16224         (Specific_Dispatching): Add this table for storing the entries
16225         corresponding to Priority_Specific_Dispatching pragmas.
16226         Document new BD flag for elaborate body desirable
16227
16228         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
16229         of known pragmas.
16230
16231 2006-10-31  Javier Miranda  <miranda@adacore.com>
16232
16233         * a-tags.ads, a-tags.adb: 
16234         (Predefined_DT): New function that improves readability of the code.
16235         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
16236         Inherit_DT): Use the new function Predefined_DT to improve code
16237         readability.
16238         (Register_Interface_Tag): Update assertion.
16239         (Set_Interface_Table): Update assertion.
16240         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
16241         determining progenitor interfaces in Tags.
16242         (Inherit_CPP_DT): New subprogram.
16243
16244         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
16245         analysis of the thunk code.
16246         (Expand_Interface_Conversion): Handle run-time conversion of
16247         access to class wide types.
16248         (Expand_Dispatching_Call): When generating the profile for the
16249         subprogram itype for a dispatching operation, properly terminate the
16250         formal parameters chaind list (set the Next_Entity of the last formal
16251         to Empty).
16252         (Collect_All_Interfaces): Removed. This routine has been moved to
16253         sem_util and renamed as Collect_All_Abstract_Interfaces.
16254         (Set_All_DT_Position): Hidden entities associated with abstract
16255         interface primitives are not taken into account in the check for
16256         3.9.3(10); this check is done with the aliased entity.
16257         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
16258         interfacing with CPP by default.
16259         (Expand_Interface_Conversion): Add missing support for static conversion
16260         from an interface to a tagged type.
16261         (Collect_All_Interfaces): Add new out formal containing the list of
16262         abstract interface types to cleanup the subprogram Make_DT.
16263         (Make_DT): Update the code to generate the table of interfaces in case
16264         of abstract interface types.
16265         (Is_Predefined_Dispatching_Alias): New function that returns true if
16266         a primitive is not a predefined dispatching primitive but it is an
16267         alias of a predefined dispatching primitive.
16268         (Make_DT): If the ancestor of the type is a CPP_Class and we are
16269         compiling under full ABI compatibility mode we avoid the generation of
16270         calls to run-time services that fill the dispatch tables because under
16271         this mode we currently inherit the dispatch tables in the IP subprogram.
16272         (Write_DT): Emit an "is null" indication for a null procedure primitive.
16273         (Expand_Interface_Conversion): Use an address as the type of the formal
16274         of the internally built function that handles the case in which the
16275         target type is an access type.
16276
16277 2006-10-31  Robert Dewar  <dewar@adacore.com>
16278
16279         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
16280
16281 2006-10-31  Robert Dewar  <dewar@adacore.com>
16282
16283         * bindusg.ads, bindusg.adb:
16284         Change to package and rename procedure as Display, which
16285         now ensures that it only outputs usage information once.
16286
16287 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16288
16289         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
16290         using RTPs.
16291
16292         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
16293         when using RTPs.
16294
16295 2006-10-31  Robert Dewar  <dewar@adacore.com>
16296             Ed Schonberg  <schonberg@adacore.com>
16297
16298         * treepr.adb: Use new subtype N_Membership_Test
16299
16300         * checks.ads, checks.adb: Add definition for Validity_Check
16301         (Range_Or_Validity_Checks_Suppressed): New function
16302         (Ensure_Valid): Test Validity_Check suppressed
16303         (Insert_Valid_Check): Test Validity_Check suppressed
16304         (Insert_Valid_Check): Preserve Do_Range_Check flag
16305         (Validity_Check_Range): New procedure
16306         (Expr_Known_Valid): Result of membership test is always valid
16307         (Selected_Range_Checks): Range checks cannot be applied to discriminants
16308         by themselves. Disabling those checks must also be done for task types,
16309         where discriminants may be used for the bounds of entry families.
16310         (Apply_Address_Clause_Check): Remove side-effects if address expression
16311         is non-static and is not the name of a declared constant.
16312         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
16313         Code cleanup and new error messages.
16314         (Enable_Range_Check): Test for some cases of suppressed checks
16315         (Generate_Index_Checks): Suppress index checks if index checks are
16316         suppressed for array object or array type.
16317         (Apply_Selected_Length_Checks): Give warning for compile-time detected
16318         length check failure, even if checks are off.
16319         (Ensure_Valid): Do not generate a check on an indexed component whose
16320         prefix is a packed boolean array.
16321         * checks.adb: (Alignment_Checks_Suppressed): New function
16322         (Apply_Address_Clause_Check): New procedure, this is a completely
16323         rewritten replacement for Apply_Alignment_Check
16324         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
16325         we request a discriminal value only in case of discriminants.
16326         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
16327         assignments where the target subtype is unconstrained and the target
16328         object is a parameter or dereference (other aliased cases are known
16329         to be unconstrained).
16330
16331 2006-10-31  Robert Dewar  <dewar@adacore.com>
16332
16333         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
16334         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
16335         vms_conv.adb: Fix bad table increment values (much too small)
16336
16337         * table.adb (Realloc): Make sure we get at least some new elements
16338         Defends against silly small values for table increment
16339
16340 2006-10-31  Robert Dewar  <dewar@adacore.com>
16341             Ed Schonberg  <schonberg@adacore.com>
16342             Bob Duff  <duff@adacore.com>
16343
16344         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
16345         entities. Move other fields around to make this possible
16346         (Is_Derived_Type): Add missing call to Is_Type.
16347         (Extra_Formals): New function for subprograms, entries, subprogram
16348         types.
16349         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
16350         (First_Formal_With_Extras): New function for subprogs, entries, subp
16351         types.
16352         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
16353         Add node information for E_Return_Statement.
16354         (Elaborate_Body_Desirable): New flag
16355         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
16356         to be Is_Inherently_Limited_Type, because return-by-reference has
16357         no meaning in Ada 2005.
16358         (E_Return_Statement): New entity kind.
16359         (Return_Applies_To): Field of E_Return_Statement.
16360         (Is_Return_Object): New flag in object entities.
16361         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
16362         (Must_Have_Preelab_Init): New flag
16363         (Known_To_Have_Preelab_Init): New flag
16364         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
16365         (Is_Visible_Formal): New flag on entities in formal packages.
16366         (Low_Bound_Known): New flag
16367         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
16368         Incomplete_Kind.
16369         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
16370         output when Id is an incomplete subtype.
16371
16372 2006-10-31  Robert Dewar  <dewar@adacore.com>
16373
16374         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
16375         Avoid abbreviation Creat
16376         (Finalize): List all sources in extended mail source if -gnatl
16377         switch is active.
16378         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
16379         (Finalize): Implement new -gnatl=xxx switch to output listing to file
16380         (Set_Specific_Warning_On): New procedure
16381         (Set_Specific_Warning_Off): New procedure
16382         Add implementation of new insertion \\
16383         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
16384         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
16385         types.
16386         (Error_Msg_Internal): Make sure that we set Last_Killed to
16387         True when a message from another package is suppressed.
16388         Implement insertion character ~ (insert string)
16389         (First_Node): Minor adjustments to get better placement.
16390
16391         * frontend.adb: 
16392         Implement new -gnatl=xxx switch to output listing to file
16393
16394         * gnat1drv.adb: 
16395         Implement new -gnatl=xxx switch to output listing to file
16396
16397         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
16398         (Commands_To_Stdout): New flag
16399         Implement new -gnatl=xxx switch to output listing to file
16400         New switch Dump_Source_Text
16401         (Warn_On_Deleted_Code): New warning flag for -gnatwt
16402         Define Error_Msg_Line_Length
16403         (Warn_On_Assumed_Low_Bound): New switch
16404
16405         * osint.ads, osint.adb
16406         (Normalize_Directory_Name): Fix bug.
16407         Implement new -gnatl=xxx switch to output listing to file
16408         (Concat): Removed, replaced by real concatenation
16409         Make use of concatenation now allowed in compiler
16410         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
16411         we find the 'lib' or 'bin' directory even when the tool has been
16412         invoked with a relative path.
16413         (Executable_Name): New function taking string parameters.
16414
16415         * osint-c.ads, osint-c.adb: 
16416         Implement new -gnatl=xxx switch to output listing to file
16417
16418         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
16419
16420         * switch-c.adb: 
16421         Implement new -gnatl=xxx switch to output listing to file
16422         Recognize new -gnatL switch
16423         (no longer keep in old warning about old style usage)
16424         Use concatenation to simplify code
16425         Recognize -gnatjnn switch
16426         (Scan_Front_End_Switches): Clean up handling of -gnatW
16427         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
16428
16429 2006-10-31  Robert Dewar  <dewar@adacore.com>
16430
16431         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
16432         (Set_Specific_Warning_Off): New procedure
16433         (Warning_Specifically_Suppressed): New function
16434         (Validate_Specific_Warnings): New procedure
16435         (Output_Msg_Text): Complete rewrite to support -gnatjnn
16436
16437         * err_vars.ads: Implement insertion character ~ (insert string)
16438
16439 2006-10-31  Bob Duff  <duff@adacore.com>
16440             Ed Schonberg  <schonberg@adacore.com>
16441
16442         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
16443         the parent part is a build-in-place function call, generate assignments.
16444         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
16445         are build-in-place function calls.
16446         (Replace_Self_Reference): New subsidiary of
16447         Make_OK_Assignment_Statement, to replace an access attribute that is a
16448         self-reference into an access to the appropriate component of the
16449         target object. Generalizes previous mechanism to handle self-references
16450         nested at any level.
16451         (Is_Self_Referential_Init): Remove, not needed.
16452         (Is_Self_Referential_Init): New predicate to simplify handling of self
16453         referential components in record aggregates.
16454         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
16455         check for presence of entity before checking for self-reference.
16456         (Has_Default_Init_Comps): Return True if a component association is a
16457         self-reference to the enclosing type, which can only come from a
16458         default initialization.
16459         (Make_OK_Assignment_Statement): If the expression is of the form
16460         Typ'Acc, where Acc is an access attribute, the expression comes from a
16461         default initialized self-referential component.
16462         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
16463         that has been derived from several abstract interfaces we must also
16464         initialize the tags of the secondary dispatch tables.
16465
16466 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16467             Thomas Quinot  <quinot@adacore.com>
16468             Javier Miranda  <miranda@adacore.com>
16469             Robert Dewar  <dewar@adacore.com>
16470
16471         * exp_attr.adb: 
16472         (Expand_Access_To_Protected_Op): If the context indicates that an access
16473         to a local operation may be transfered outside of the object, create an
16474         access to the wrapper operation that must be used in an external call.
16475         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
16476         target, pass the Valid attribute applied to a floating-point prefix on
16477         to the back end without expansion.
16478         (Storage_Size): Use the new run-time function Storage_Size to retrieve
16479         the allocated storage when it is specified by a per-object expression.
16480         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
16481         Nothing to do here, the attribute has been rewritten during semantic
16482         analysis.
16483         (Expand_Attribute_Reference): Handle expansion of the new Priority
16484         attribute
16485         (Find_Fat_Info): Handle case of universal real
16486         (Expand_Access_To_Protected_Op): Fix use of access to protected
16487         subprogram from inside the body of a protected entry.
16488         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
16489         'Access and 'Unrestricted_Access, to transform the attribute reference
16490         into a fat pointer.
16491         (Is_Constrained_Aliased_View): New predicate to help determine whether a
16492         subcomponent's enclosing variable is aliased with a constrained subtype.
16493         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
16494         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
16495         an aliased prefix must be known to be constrained in order to use True
16496         for the attribute value, and now it's possible for some aliased views
16497         to be unconstrained.
16498
16499 2006-10-31  Robert Dewar  <dewar@adacore.com>
16500
16501         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
16502         (Expand_Entity_Reference): Correct error of not handling subprogram
16503         formals in current_value processing.
16504
16505 2006-10-31  Javier Miranda  <miranda@adacore.com>
16506             Robert Dewar  <dewar@adacore.com>
16507             Ed Schonberg  <schonberg@adacore.com>
16508             Gary Dismukes  <dismukes@adacore.com>
16509
16510         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
16511         register in the final list objects containing class-wide interfaces;
16512         otherwise we incorrectly register the tag of the interface in the final
16513         list.
16514         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
16515         generate the wrapper if the parent primitive is abstract. This is
16516         required to report the correct error message.
16517         (Expand_N_Subtype_Indication): Do validity checks on range
16518         (Clean_Task_Names): If an initialization procedure includes a call to
16519         initialize a task (sub)component, indicate that the procedure will use
16520         the secondary stack.
16521         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
16522         compatibility for interfacing with CPP by default.
16523         (Expand_N_Object_Declaration): Only build an Adjust call when the
16524         object's type is a nonlimited controlled type.
16525         * exp_ch3.adb: Add with and use of Exp_Ch6.
16526         (Expand_N_Object_Declaration): Check for object initialization that is a
16527         call to build-in-place function and apply Make_Build_In_Place_Call_In_
16528         Object_Declaration to the call.
16529         (Freeze_Type): When the designated type of an RACW was not frozen at the
16530         point where the RACW was declared, validate the primitive operations
16531         with respect to E.2.2(14) when it finally is frozen.
16532         (Build_Initialization_Call,Expand_Record_Controller): Rename
16533         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
16534         return-by-reference has no meaning in Ada 2005.
16535         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
16536         to register tag of the immediate ancestor interfaces in the
16537         run-time structure.
16538         (Init_Secondary_Tags): Moved to the specification to allow the
16539         initialization of extension aggregates with abstract interfaces.
16540         (Build_Master_Renaming): Make public, for use by function declarations
16541         whose return type is an anonymous access type.
16542         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
16543         Insert_List_Before_And_Analyze after the generation of the specs
16544         associated with null procedures.
16545         (Expand_Tagged_Root): Update documentation in its specification.
16546         (Init_Secondary_Tags): Update documentation.
16547         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
16548         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
16549         then generate code to inherit the contents of the dispatch table
16550         directly from the ancestor.
16551         (Expand_Record_Controller): Insert controller component after tags of
16552         implemented interfaces.
16553         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
16554         create null procedure overridings when null procedures are inherited
16555         from interfaces.
16556         (Make_Null_Procedure_Specs): New procedure to generate null procedure
16557         declarations for overriding null primitives inherited from interfaces.
16558         (Is_Null_Interface_Procedure): New function in
16559         Make_Null_Procedure_Specs.
16560         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
16561         immediate ancestor of a tagged type is an abstract interface type we
16562         must generate the specification of the predefined primitives associated
16563         with controlled types (because the dispatch table of the ancestor is
16564         null and hence these entries cannot be inherited). This is required to
16565         elaborate well the dispatch table.
16566
16567 2006-10-31  Javier Miranda  <miranda@adacore.com>
16568             Ed Schonberg  <schonberg@adacore.com>
16569             Bob Duff  <duff@adacore.com>
16570             Gary Dismukes  <dismukes@adacore.com>
16571             Robert Dewar  <dewar@adacore.com>
16572
16573         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
16574         conversion.
16575         (Expand_N_In): Do validity checks on range
16576         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
16577         (Expand_N_Allocator): For "new T", if the object is constrained by
16578         discriminant defaults, allocate the right amount of memory, rather than
16579         the maximum for type T.
16580         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
16581         when the allocator is initialized by a build-in-place call, since the
16582         allocator is already rewritten as a reference to the function result,
16583         and this prevents an unwanted duplication of the function call.
16584         Add with and use of Exp_Ch6.
16585         (Expand_Allocator_Expresssion): Check for an allocator whose expression
16586         is a call to build-in-place function and apply
16587         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
16588         untagged designated types).
16589         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
16590         optimization if source or target is biased.
16591         (Expand_N_Allocator): Add comments for case of an allocator within a
16592         function that returns an anonymous access type designating tasks.
16593         (Expand_N_Allocator): apply discriminant checks for access
16594         discriminants of anonymous access types (AI-402, AI-416)
16595
16596 2006-10-31  Bob Duff  <duff@adacore.com>
16597             Robert Dewar  <dewar@adacore.com>
16598             Gary Dismukes  <dismukes@adacore.com>
16599             Ed Schonberg  <schonberg@adacore.com>
16600
16601         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
16602
16603         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
16604         (Expand_N_Assignment_Statement): Call
16605         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
16606         build-in-place function call. Currently, this can happen only for
16607         assignments that come from aggregates.
16608         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16609         in order to alleviate the upward compatibility introduced by AI-318.
16610         (Expand_N_Extended_Return_Statement): Add support for handling the
16611         return object as a build-in-place result.
16612         (Expand_Non_Function_Return): Implement simple return statements nested
16613         within an extended return.
16614         (Enable_New_Return_Processing): Turn on the new processing of return
16615         statements.
16616         (Expand_Non_Function_Return): For a return within an extended return,
16617         don't raise Program_Error, because Sem_Ch6 now gives a warning.
16618         (Expand_N_Extended_Return_Statement): Implement AI-318
16619         (Expand_Simple_Function_Return): Ditto.
16620         (Expand_N_If_Statement): Handle new -gnatwt warning
16621         (Expand_N_Case_Statement): Handle new -gnatwt warning
16622         (Expand_N_Assignment): Handle assignment to the Priority attribute of
16623         a protected object.
16624         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
16625         validity checking of assignments to elementary record components.
16626         (Expand_N_Return_Statement): return Class Wide types on the secondary
16627         stack independantly of their controlled status since with HIE runtimes,
16628         class wide types are not potentially controlled anymore.
16629
16630         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
16631         node kind.
16632
16633         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
16634         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
16635         it expects a block, procedure, or task. The return statement will get
16636         turned into a block, and Expand_Cleanup_Actions will happen then.
16637
16638 2006-10-31  Robert Dewar  <dewar@adacore.com>
16639             Ed Schonberg  <schonberg@adacore.com>
16640             Bob Duff  <duff@adacore.com>
16641             Gary Dismukes  <dismukes@adacore.com>
16642
16643         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
16644         capability.
16645         (Expand_Inlined_Call): Tagged types are by-reference types, and
16646         therefore should be replaced by a renaming declaration in the expanded
16647         body, as is done for limited types.
16648         (Expand_Call): If this is a call to a function with dispatching access
16649         result, propagate tag from context.
16650         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
16651         CPP by default.
16652         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
16653         build-in-place when the right-hand side of an assignment is a
16654         build-in-place function call.
16655         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
16656         of the explicit dereference of the allocator to the result subtype of
16657         the build-in-place function. This is needed to satisfy type checking
16658         in cases where the caller's return object is created by an allocator for
16659         a class-wide access type and the type named in the allocator is a
16660         specific type.
16661         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
16662         conversion of the reference to the declared object to the result subtype
16663         of the build-in-place function. This is needed to satisfy type checking
16664         in cases where the declared object has a class-wide type. Also, in the
16665         class-wide case, change the type of the object entity to the specific
16666         result subtype of the function, to avoid passing a class-wide object
16667         without explicit initialization to the back end.
16668         (Register_Interface_DT_Entry): Moved outside the body of
16669         Freeze_Subprogram because this routine is now public; it is called from
16670         Check_Dispatching_Overriding to handle late overriding of abstract
16671         interface primitives.
16672         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
16673         adding an implicit access actual on a call to a build-in-place function.
16674         (Expand_Actuals): Test for an actual parameter that is a call to a
16675         build-in-place function and apply
16676         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
16677         (Is_Build_In_Place_Function): New function to determine whether an
16678         entity is a function whose calls should be handled as build-in-place.
16679         (Is_Build_In_Place_Function_Call): New function to determine whether an
16680         expression is a function call that should handled as build-in-place.
16681         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
16682         calls to build-in-place functions as the initialization of an allocator.
16683         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
16684         handling calls to build-in-place functions in contexts that do not
16685         involve init of a separate object (for example, actuals of subprogram
16686         calls).
16687         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
16688         handling calls to build-in-place functions as the initialization of an
16689         object declaration.
16690         (Detect_Infinite_Recursion): Add explicit parameter Process to
16691         instantiation of Traverse_Body to avoid unreferenced warning.
16692         (Check_Overriding_Inherited_Interfaces): Removed.
16693         (Register_Interface_DT_Entry): Code cleanup.
16694         (Register_Predefined_DT_Entry): Code cleanup.
16695         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
16696         inlined statements if within a transient scope.
16697         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
16698         formal parameters with occurrences of actuals in inlined body, establish
16699         visibility on the proper view of the actual's subtype for the body's
16700         context.
16701         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
16702         compatibility mode and we have an imported CPP subprogram because
16703         for now we assume that imported CPP primitives correspond with
16704         objects whose constructor is in the CPP side (and therefore we
16705         don't need to generate code to register them in the dispatch table).
16706         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
16707         aligned selected component.
16708         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
16709         the actual of an in-mode parameter is a type conversion.
16710         (Expand_Actuals): If the call does not come from source and the actual
16711         is potentially misaligned, let gigi handle it rather than rejecting the
16712         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
16713         Class Wide types as returning by reference independantly of their
16714         controlled status since with HIE runtimes class wide types are not
16715         potentially controlled anymore.
16716
16717 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16718
16719         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
16720         references that are private components of the protected object.
16721         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
16722         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
16723         instantiation to deal with warnings.
16724         (Initialize_Protection): If expression for priority is non-static, use
16725         System_Priority as its expected type, in case the expression has not
16726         been analyzed yet.
16727
16728 2006-10-31  Robert Dewar  <dewar@adacore.com>
16729
16730         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
16731         initialization of Homonym_Len.
16732         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
16733         names from fully qualified name. Fixes problem of duplicate
16734         external names differing only in the presence of such a block name.
16735
16736 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16737             Pablo Oliveira  <oliveira@adacore.com>
16738
16739         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
16740         subprogram Ids, even if they are not yet assigned.
16741         (Build_Subprogram_Id): It is now this function that will take care of
16742         calling Assign_Subprogram_Ids if necessary.
16743         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
16744         should be done only once they are assigned.
16745         (Build_From_Any_Function, case of tagged types): Add missing call to
16746         Allocate_Buffer.
16747         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
16748         type for an RACW type.
16749         (Add_RACW_Features): When processing an RACW declaration for which the
16750         designated type is already frozen, enforce E.2.2(14) rules immediately.
16751         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
16752         special reordering of controlling formals.
16753
16754         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
16755         associated stub type for an RACW type.
16756
16757 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16758
16759         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
16760         fixed-point operations in an integer context, i.e. as operands of a
16761         conversion to an integer type, indicate that result must be rounded.
16762
16763 2006-10-31  Robert Dewar  <dewar@adacore.com>
16764
16765         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
16766         cases, pass the encoding method, since it is now required by the run
16767         time.
16768
16769         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
16770         assumption that Str'First = 1.
16771         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
16772         it on to the Value_Wide_Wide_Character call.
16773         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
16774         properly handles a string of the form quote-encoded_wide_char-quote.
16775
16776         * s-wchcnv.adb: Minor reformatting
16777
16778 2006-10-31  Javier Miranda  <miranda@adacore.com>
16779
16780         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
16781         run-time membership test to ensure that the constructed object
16782         implements the target abstract interface.
16783
16784 2006-10-31  Robert Dewar  <dewar@adacore.com>
16785
16786         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
16787         Machine_Attribute pragma internally to implement the user pragma.
16788         Add processing for pragma Interface so that it is now completely
16789         equivalent to pragma Import.
16790
16791         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
16792         so that it can be applied to all entities, including record components
16793         and enumeration literals.
16794         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
16795         priority ranges are correct, verify compatibility against task
16796         dispatching and locking policies, and if everything is correct an entry
16797         is added to the table containing priority specific dispatching entries
16798         for this compilation unit.
16799         (Delay_Config_Pragma_Analyze): Delay processing
16800         Priority_Specific_Dispatching pragmas because when processing the
16801         pragma we need to access run-time data, such as the range of
16802         System.Any_Priority.
16803         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
16804         Allow pragma Unreferenced as a context item
16805         Add pragma Preelaborable_Initialization
16806         (Analyze_Pragma, case Interface): Interface is extended so that it is
16807         now syntactically and semantically equivalent to Import.
16808         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
16809         insertion characters.
16810         Add handling for Pragma_Wide_Character_Encoding
16811         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
16812         never supercedes a real restriction, and that a real restriction
16813         always supercedes a warning.
16814         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
16815         appropriate form.
16816
16817 2006-10-31  Bob Duff  <duff@adacore.com>
16818             Ed Schonberg  <schonberg@adacore.com>
16819             Robert Dewar  <dewar@adacore.com>
16820
16821         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
16822         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
16823         Is_Inherently_Limited_Type, because return-by-reference has no meaning
16824         in Ada 2005.
16825         (Find_Node_To_Be_Wrapped): Use new method of determining the result
16826         type of the function containing a return statement, because the
16827         Return_Type field was removed. We now use the Return_Applies_To field.
16828
16829         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
16830         (Build_Task_Image_Decl): If procedure is not called from an
16831         initialization procedure, indicate that function that builds task name
16832         uses the sec. stack. Otherwise the enclosing initialization procedure
16833         will carry the indication.
16834         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
16835         N_Object_Declaration instead.
16836         (Kill_Dead_Code): New interface to implement -gnatwt warning for
16837         conditional dead code killed, and change implementation accordingly.
16838         (Insert_Actions): Add N_Return_Object_Declaration case.
16839         Correct comment to mention N_Extension_Aggregate node.
16840         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
16841         attempts to save information for global variables which cannot be
16842         safely tracked.
16843         (Get_Current_Value_Condition): Handle conditions the other way round
16844         (constant on left). Also handle right operand of AND and AND THEN
16845         (Set_Current_Value_Condition): Corresponding changes
16846         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
16847         (Get_Current_Value_Condition): Handle simple boolean operands
16848         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
16849         (Get_Current_Value_Condition): If the variable reference is within an
16850         if-statement, does not appear in the list of then_statments, and does
16851         not come from source, treat it as being at unknown location.
16852         (Get_Current_Value_Condition): Enhance to allow while statements to be
16853         processed as well as if statements.
16854         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
16855         come from source.
16856         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
16857         of loop. This is safe now that we fixed Kill_Current_Values.
16858         (OK_To_Do_Constant_Replacement): Check whether current scope is
16859         Standard, before examining outer scopes.
16860
16861 2006-10-31  Vincent Celier  <celier@adacore.com>
16862
16863         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
16864         When True, apply VMS treatment to children of packages A, G, I and S.
16865         For F320-016
16866
16867         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
16868
16869 2006-10-31  Robert Dewar  <dewar@adacore.com>
16870             Ed Schonberg  <schonberg@adacore.com>
16871
16872         * freeze.adb: Add handling of Last_Assignment field
16873         (Warn_Overlay): Supply missing continuation marks in error msgs
16874         (Freeze_Entity): Add check for Preelaborable_Initialization
16875
16876         * g-comlin.adb: Add Warnings (Off) to prevent new warning
16877
16878         * g-expect.adb: Add Warnings (Off) to prevent new warning
16879
16880         * lib-xref.adb: Add handling of Last_Assignment field
16881         (Generate_Reference): Centralize handling of pragma Obsolescent here
16882         (Generate_Reference): Accept an implicit reference generated for a
16883         default in an instance.
16884         (Generate_Reference): Accept a reference for a node that is not in the
16885         main unit, if it is the generic body corresponding to an subprogram
16886         instantiation.
16887
16888         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
16889
16890         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
16891         -gnatwq/Q.
16892         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
16893         exception handler.
16894         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
16895         use clauses, to avoid messages on packages used to qualify, and also
16896         to avoid messages from obsolescent units.
16897         (Warn_On_Useless_Assignments): Don't generate messages for imported
16898         and exported variables.
16899         (Warn_On_Useless_Assignments): New procedure
16900         (Output_Obsolescent_Entity_Warnings): New procedure
16901         (Check_Code_Statement): New procedure
16902
16903         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
16904         Change name Is_Ada_2005 to Is_Ada_2005_Only
16905         (Last_Assignment): New field for useless assignment warning
16906
16907 2006-10-31  Olivier Hainque  <hainque@adacore.com>
16908
16909         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
16910         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
16911
16912 2006-10-31  Bob Duff  <duff@adacore.com>
16913             Robert Dewar  <dewar@adacore.com>
16914             Ed Schonberg  <schonberg@adacore.com>
16915
16916         * g-awk.adb (Default_Session, Current_Session): Compile this file in
16917         Ada 95 mode, because it violates the new rules for AI-318.
16918
16919         * g-awk.ads: Use overloaded subprograms in every case where we used to
16920         have a default of Current_Session. This makes the code closer to be
16921         correct for both Ada 95 and 2005.
16922
16923         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
16924         code, relying on the fact that the compiler generates a warning
16925         instead of an error in -gnatg mode.
16926
16927         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
16928         E_Return_Statement entity kind.
16929         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
16930
16931         * par.adb (P_Interface_Type_Definition): Addition of one formal to
16932         report an error if the reserved word abstract has been previously found.
16933         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
16934
16935         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
16936         parenthesized range attribute usage
16937         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
16938
16939         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
16940         in the syntax for extended_return_statement. This is not in the latest
16941         RM, but the ARG is expected to issue an AI allowing this.
16942         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
16943         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
16944         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
16945         P_Return_Statement): Parse the new syntax for extended_return_statement.
16946
16947         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
16948         Output_End_Missing): Add error-recovery code for the new
16949         extended_return_statement syntax; that is, the new E_Return entry on
16950         the scope stack.
16951
16952         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
16953         limited to nonlimited, because otherwise we violate the new Ada 2005
16954         rules about returning limited types in function Create_AST_Handler in
16955         s-asthan.adb.
16956
16957         * sem.adb (Analyze): Add cases for new node kinds
16958         N_Extended_Return_Statement and N_Return_Object_Declaration.
16959
16960         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
16961         type is in the same category as type of context before applying check,
16962         to prevent anomalies in instantiations.
16963         (Resolve_Aggregate): Remove test for limited components in aggregates.
16964         It's unnecessary in Ada 95, because if it has limited components, then
16965         it must be limited. It's wrong in Ada 2005, because limited aggregates
16966         are now allowed.
16967         (Resolve_Record_Aggregate): Move check for limited types later, because
16968         OK_For_Limited_Init requires its argument to have been resolved.
16969         (Get_Value): When copying the component default expression for a
16970         defaulted association in an aggregate, use the sloc of the aggregate
16971         and not that of the original expression, to prevent spurious
16972         elaboration errors, when the expression includes function calls.
16973         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
16974         were missing. We also didn't handle qualified expressions. Now also
16975         allow function calls. Use new common routine OK_For_Limited_Init.
16976         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
16977         with space can upper case letter).
16978
16979         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
16980         Has_Static_Discriminants flag
16981         (Record_Type_Declaration): Diagnose an attempt to declare an interface
16982         type with discriminants.
16983         (Process_Range_Expr_In_Decl): Do validity checks on range
16984         (Build_Discriminant_Constraints): Use updated form of
16985         Denotes_Discriminant.
16986         (Process_Subtype): If the subtype is a private subtype whose full view
16987         is a concurrent subtype, introduce an itype reference to prevent scope
16988         anomalies in gigi.
16989         (Build_Derived_Record_Type, Collect_Interface_Primitives,
16990         Record_Type_Declaration):  The functionality of the subprograms
16991         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
16992         is now performed by a single routine.
16993         (Build_Derived_Record_Type): If the type definition includes an explicit
16994         indication of limitedness, then the type must be marked as limited here
16995         to ensure that any access discriminants will not be treated as having
16996         a local anonymous access type.
16997         (Check_Abstract_Overriding): Issue a detailed error message when an
16998         abstract subprogram was not overridden due to incorrect mode of its
16999         first parameter.
17000         (Analyze_Private_Extension_Declaration): Add support for the analysis of
17001         synchronized private extension declarations. Verify that the ancestor is
17002         a limited or synchronized interface or in the generic case, the ancestor
17003         is a tagged limited type or synchronized interface and all progenitors
17004         are either limited or synchronized interfaces.
17005         Derived_Type_Declaration): Check for presence of private extension when
17006         dealing with synchronized formal derived types.
17007         Process_Full_View): Enchance the check done on the usage of "limited" by
17008         testing whether the private view is synchronized.
17009         Verify that a synchronized private view is completed by a protected or
17010         task type.
17011         (OK_For_Limited_Init_In_05): New function.
17012         (Analyze_Object_Declaration): Move check for limited types later,
17013         because OK_For_Limited_Init requires its argument to have been resolved.
17014         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17015         in order to alleviate the upward compatibility introduced by AI-318.
17016         (Constrain_Corresponding_Record): If the constraint is for a component
17017         subtype, mark the itype as frozen, to avoid out-of-scope references to
17018         discriminants in the back-end.
17019         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17020         this subprogram against wrong sources.
17021         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17022         discriminant of limited type completed with a protected type, when the
17023         discriminant is used to constrain a private component of the type, and
17024         expansion is disabled.
17025         (Find_Type_Of_Object): Do not treat a return subtype that is an
17026         anonymous subtype as a local_anonymous_type, because its accessibility
17027         level is the return type of the enclosing function.
17028         (Check_Initialization): In -gnatg mode, turn the error "cannot
17029         initialize entities of limited type" into a warning.
17030         (OK_For_Limited_Init): Return true for generated nodes, since it
17031         sometimes violates the legality rules.
17032         (Make_Incomplete_Declaration): If the type for which an incomplete
17033         declaration is created happens to be the currently visible entity,
17034         preserve the homonym chain when removing it from visibility.
17035         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17036         inherited subprograms.
17037         (Access_Definition): If this is an access to function that is the return
17038         type of an access_to_function definition, context is a type declaration
17039         and the scope of the anonymous type is the current one.
17040         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17041         incomplete subtype to the set of private dependents of the original
17042         incomplete type.
17043         (Constrain_Discriminated_Type): Emit an error message whenever an
17044         incomplete subtype is being constrained.
17045         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17046         corresponding subtype of the full view of the original incomplete type.
17047         (Check_Incomplete): Properly detect invalid usage of incomplete types
17048         and subtypes.
17049
17050 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17051
17052         * g-catiio.ads, g-catiio.adb (Value): New function.
17053         Given an input String, try and parse a valid Time value.
17054
17055 2006-10-31  Vincent Celier  <celier@adacore.com>
17056
17057         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17058         Integer_Address arithmetic, as in Set_Valid.
17059
17060 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17061             Robert Dewar  <dewar@adacore.com>
17062
17063         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17064         handling executable extension manually and duplicating code.
17065
17066         * make.adb: Implement new -S switch
17067         (Gnatmake): Use new function Osint.Executable_Name instead
17068         of handling executable extension manually.
17069
17070         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17071         is specified, the executable name ends with this suffix.
17072         Take advantage of Osint.Executable_Name instead of duplicating code.
17073
17074         * switch-m.adb: Recognize new gnatmake -S switch
17075
17076         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17077         variable.
17078         (Get_Target_Parameters): Set Executable_Extension_On_Target if
17079         available.
17080
17081         * makeusg.adb: Add line for gnatmake -S switch
17082
17083 2006-10-31  Vincent Celier  <celier@adacore.com>
17084
17085         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17086         call it with -static-libgcc, as there are some platforms, such as
17087         Darwin, where one of these two switches is compulsory to link.
17088
17089 2006-10-31  Vincent Celier  <celier@adacore.com>
17090
17091         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
17092         instead of ADA_PROJECT_PATH, for the project path.
17093         (Gnatls): When displaying the project path directories, use host dir
17094         specs.
17095
17096         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
17097         names in the project path, as absolute paths may correspond to
17098         multi-valued VMS logical names.
17099
17100 2006-10-31  Vincent Celier  <celier@adacore.com>
17101
17102         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
17103         absolute path name.
17104         (Locate_Regular_File): Ditto
17105         (Change_Dir): Remove, no longer used
17106         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
17107         on Windows. Get it calling Get_Current_Dir.
17108         (OpenVMS): Remove imported boolean, no longer needed.
17109         (Normalize_Pathname)[VMS]: Do not resolve directory names.
17110         (Pid_To_Integer): New function to convert a Process_Id to  Integer
17111
17112 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17113
17114         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
17115         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
17116         to No_Socket.
17117         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
17118         W_Sig_Socket.
17119
17120 2006-10-31  Robert Dewar  <dewar@adacore.com>
17121
17122         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
17123         initial letter o as a zero.
17124
17125 2006-10-31  Robert Dewar  <dewar@adacore.com>
17126
17127         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
17128
17129 2006-10-31  Robert Dewar  <dewar@adacore.com>
17130
17131         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
17132         variant records
17133         (Layout_Variant_Record): Retrieve the discriminants from the entity
17134         rather than from the type definition, because in the case of a full
17135         type for a private type we need to take the discriminants from the
17136         partial view.
17137         (Layout_Component_List): When applying the Max operator to variants with
17138         a nonstatic size, check whether either operand is static and scale that
17139         operand from bits to storage units before applying Max.
17140         (Layout_Type): In VMS, if a C-convention access type has no explicit
17141         size clause (and does not inherit one in the case of a derived type),
17142         then the size is reset to 32 from 64.
17143
17144 2006-10-31  Vincent Celier  <celier@adacore.com>
17145
17146         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
17147         its file has already been loaded, according to the unit being loaded,
17148         not to the current value of Multiple_Unit_Index.
17149
17150 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17151             Eric Botcazou  <ebotcazou@adacore.com>
17152             Arnaud Charlet  <charlet@adacore.com>
17153
17154         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
17155         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
17156         possible.
17157         (a-except.o): Pass it to the compiler.
17158         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
17159         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
17160         a-calend-mingw.adb version.
17161
17162         * Makefile.rtl: Added s-dsaser.
17163         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
17164         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
17165         Ada.Dispatching.Round_Robin.
17166         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
17167
17168         * Make-lang.in: Remove all references to gt-ada-decl.h.
17169         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
17170         sources.
17171         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
17172         Update dependencies.
17173
17174         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
17175
17176 2006-10-31  Vincent Celier  <celier@adacore.com>
17177
17178         * mlib-utl.adb (Initialized): Remove, no longer used
17179         (Initialize): Remove, no longer used
17180         (Ar): If Ar_Exec is null, get the location of the archive builder and,
17181         if there is one, the archive indexer. Fail if the archive builder cannot
17182         be found.
17183         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
17184         be found.
17185
17186 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17187
17188         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
17189         Process_Body_Clauses): If the context of a body includes a use clause
17190         for P.Q then a with_clause for P in the same body is not redundant,
17191         even if the spec also has a with_clause on P.
17192         Add missing continuation mark to error msg
17193         (Build_Limited_Views): A limited view of a type is tagged if its
17194         declaration includes a record extension.
17195         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
17196         node, even if the subunit has errors. This avoids malfunction by
17197         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
17198         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
17199         generation of obsolescent messages for with statements (cannot do
17200         this too early, or we cannot implement avoiding the messages in the
17201         case of obsolescent units withing obsolescent units).
17202         (Install_Siblings): If the with_clause is on a remote descendant of
17203         an ancestor of the current compilation unit, find whether there is
17204         a sibling child unit that is immediately visible.
17205         (Remove_Private_With_Clauses): New procedure, invoked after completing
17206         the analysis of the private part of a nested package, to remove from
17207         visibility the private with_clauses of the enclosing package
17208         declaration.
17209         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
17210         now centralized in Generate_Reference.
17211         (Install_Limited_Context_Clauses): Remove superfluous error
17212         message associated with unlimited view visible through use
17213         and renamings. In addition, at the point in which the error
17214         is reported, we add the backslash to the text of the error
17215         to ensure that it is reported as a single error message.
17216         Use new // insertion for some continuation messages
17217         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
17218         to create implicit with_clause for parent unit mentioned in original
17219         limited_with_clause.
17220         (Install_Limited_With_Unit): Set entity of parent identifiers if the
17221         unit is a child unit. For ASIS queries.
17222         (Analyze_Subunit): If the subunit appears within a child unit, make all
17223         ancestor child units directly visible again.
17224
17225 2006-10-31  Robert Dewar  <dewar@adacore.com>
17226
17227         * par-ch10.adb (P_Context_Clause): Minor error message fix
17228
17229 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17230             Javier Miranda  <miranda@adacore.com>
17231
17232         * par-ch12.adb: Grammar update and cleanup.
17233         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
17234         support for synchronized derived type definitions.
17235         Add the new actual Abstract_Present to every call to
17236         P_Interface_Type_Definition.
17237         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
17238         a formal object declaration with an access definition or a subtype mark
17239         with a null exclusion.
17240         (P_Generic_Association): Handle association with box, and others_choice
17241         with box, to support Ada 2005 partially parametrized formal packages.
17242
17243 2006-10-31  Robert Dewar  <dewar@adacore.com>
17244             Javier Miranda  <miranda@adacore.com>
17245
17246         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
17247         (P_Type_Declaration): Remove barrier against the reserved word "limited"
17248         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
17249         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
17250         private extensions.
17251         (P_Type_Declaration): Add the new actual Abstract_Present to every call
17252         to P_Interface_Type_Definition.
17253         (P_Interface_Type_Definition): Addition of one formal to report an error
17254         if the reserved word abstract has been previously found.
17255         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
17256         object renaming declaration with an access definition or subtype mark
17257         with a possible null exclusion.
17258
17259         * par-ch9.adb: Minor error msg fix
17260
17261         * par-load.adb: Add missing continuation mark to error msg
17262
17263         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
17264
17265 2006-10-31  Vincent Celier  <celier@adacore.com>
17266
17267         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
17268         unknown attribute in unknown package or in package that does not need
17269         to be checked.
17270         (Parse_Package_Declaration): Do not issue warning for unknown package in
17271         quiet output.
17272
17273 2006-10-31  Vincent Celier  <celier@adacore.com>
17274
17275         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
17276         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
17277         Packages_To_Check.
17278
17279 2006-10-31  Vincent Celier  <celier@adacore.com>
17280
17281         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
17282         on VMS, change "__" to '.' before checking the name.
17283         (Record_Ada_Source): Always add the source file name in the list of
17284         of sources, even if it is not the first time, as it is for another
17285         source index.
17286         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
17287         dot, instead of replacing only the first '_'.
17288
17289         * prj-part.adb (Parse): Convert project file path to canonical form
17290
17291         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
17292         extended, the project id of the project extending it is recorded in its
17293         data, even when it has already been processed as an imported project.
17294
17295 2006-10-31  Robert Dewar  <dewar@adacore.com>
17296
17297         * repinfo.adb (List_Entities): Don't list entities from renaming
17298         declarations.
17299
17300 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17301             Robert Dewar  <dewar@adacore.com>
17302
17303         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
17304         only a restriction warning is active for the given restriction. This is
17305         desirable because we do not want to modify code in the case where only
17306         a warning is set.
17307         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
17308         causes overriding of real restrictions.
17309         Take advantage of new No_Restrictions constant.
17310
17311         * raise.h: (__gnat_set_globals): Change profile.
17312
17313 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17314
17315         * rtsfind.adb: Remove s-polint from comment as it exists no more.
17316
17317         * rtsfind.ads: 
17318         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
17319         Move all the entities in obsolete package System.PolyORB_Interface to
17320         System.Partition_Interface.
17321         (RE_Storage_Size): New function in System.Tasking.
17322         (RE_Get_Ceiling): New entity.
17323         (RE_Set_Ceiling): New entity.
17324         (RO_PE_Get_Ceiling): New entity.
17325         (RO_RE_Set_Ceiling): New entity.
17326         (Inherit_CPP_DT): New entity
17327
17328 2006-10-31  Robert Dewar  <dewar@adacore.com>
17329
17330         * scng.adb (Scan, case of numeric literal): Better msg for identifier
17331         starting with a digit.
17332
17333 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17334             Thomas Quinot  <quinot@adacore.com>
17335             Javier Miranda  <miranda@adacore.com>
17336             Gary Dismukes  <dismukes@adacore.com>
17337
17338         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
17339         properly an attempt to apply Unchecked_Access to a protected operation.
17340         (OK_Self_Reference): New subprogram to check the legality of an access
17341         attribute whose prefix is the type of an enclosing aggregate.
17342         Generalizes previous mechanism to handle attribute references nested
17343         arbitrarily deep within the aggregate.
17344         (Analyze_Access_Attribute): An access attribute whose prefix is a type
17345         can appear in an aggregate if this is a default-initialized aggregate
17346         for a self-referential type.
17347         (Resolve_Attribute, case Access): Ditto.
17348         Add support for new implementation defined attribute Stub_Type.
17349         (Eval_Attribute, case Attribute_Stub_Type): New case.
17350         (Analyze_Attribute, case Attribute_Stub_Type): New case.
17351         (Stream_Attribute_Available): Implement using new subprogram from
17352         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
17353         Has_Specified_Stream_Attribute flag.
17354         Disallow Storage_Size and Storage_Pool for access to subprogram
17355         (Resolve_Attribute, case 'Access et al): Take into account anonymous
17356         access types of return subtypes in extended return statements. Remove
17357         accessibility checks on anonymous access types when Unchecked_Access is
17358         used.
17359         (Analyze_Attribute): Add support for the use of 'Class to convert
17360         a class-wide interface to a tagged type.
17361         Add support for the attribute Priority.
17362         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
17363         whether the designated type is discriminated with a constrained partial
17364         view and require static matching in that case.
17365         Add local variable Des_Btyp. The Designated_Type
17366         of an access to incomplete subtype is either its non-limited view if
17367         coming from a limited with or its etype if regular incomplete subtype.
17368
17369         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
17370         Fix predicate to identify and allow cases of (expander-generated)
17371         references to tag of designated object of a RACW.
17372         (Validate_Static_Object_Name): In Ada 2005, a formal object is
17373         non-static, and therefore cannot appear as a primary in a preelaborable
17374         package.
17375         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
17376         Has_Read_Write_Attributes.
17377         (Has_Read_Write_Attributes): Reimplement in termes of
17378         Has_Stream_Attribute_Definition.
17379         (Missing_Read_Write_Attributes): When checking component types in a
17380         record, unconditionally call Missing_Read_Write_Attributes recursively
17381         (remove guard checking for Is_Record_Type / Is_Access_Type).
17382
17383 2006-10-31  Robert Dewar  <dewar@adacore.com>
17384
17385         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
17386         useless assignments here and conditionalize it on absence of exception
17387         handlers.
17388         (Analyze_Exception_Handlers): Small code reorganization of error
17389         detection code, for new handling of formal packages.
17390
17391 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17392             Hristian Kirtchev  <kirtchev@adacore.com>
17393
17394         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
17395         that has been constant-folded, preserve information of original tree,
17396         for ASIS uses.
17397         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
17398         generated private extension declaration if the formal derived type is
17399         synchronized. Carry synchronized present over to the generated private
17400         extension.
17401         (Validate_Derived_Type_Instance): Ensure that the actual of a
17402         synchronized formal derived type is a synchronized tagged type.
17403         (Instantiate_Formal_Package): When creating the instantiation used to
17404         validate the actual package of a formal declared without a box, check
17405         whether the formal itself depends on a prior actual.
17406         (Instantiate_Formal_Subprogram): Create new entities for the defining
17407         identifiers of the formals in the renaming declaration, for ASIS use.
17408         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
17409         a renaming declaration or a subtype declaration for an actual in an
17410         instance, capture location information of declaration in generic, for
17411         ASIS use.
17412         (Instantiate_Formal_Package): Add comments on needed additional tests.
17413         AI-317 (partial parametrization) is fully implemented.
17414         (Validate_Private_Type_Instance): Add check for actual which
17415         must have preelaborable initialization
17416         Use new // insertion for some continuation messages
17417         (Analyze_Formal_Object_Declaration): Change usage of Expression to
17418         Default_Expression. Add type retrieval when the declaration has an
17419         access definition. Update premature usage of incomplete type check.
17420         (Check_Access_Definition): New subsidiary routine. Check whether the
17421         current compilation version is Ada 05 and the supplied node has an
17422         access definition.
17423         (Instantiate object): Alphabetize local variables. Handle the creation
17424         of new renaming declarations with respect to the kind of definition
17425         used - either an access definition or a subtype mark. Guard against
17426         unnecessary error message in the context of anonymous access types after
17427         they have been resolved. Add check for required null exclusion in a
17428         formal object declaration.
17429         (Switch_View): A private subtype of a non-private type needs to be
17430         switched (the base type can have been switched without its private
17431         dependents because of the last branch of Check_Private_View.
17432         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
17433         value from BT.
17434         (Instantiate_Type): Emit an error message whenever a class-wide type of
17435         a tagged incomplete type is used as a generic actual.
17436         (Find_Actual_Type): Extend routine to handle a component type in a child
17437         unit that is imported from a formal package in a parent.
17438         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
17439         agree on constrainedness, rather than checking against ultimate ancestor
17440         (Instantiate_Subprogram_Body): Create a cross-reference link to the
17441         generic body, for navigation purposes.
17442
17443 2006-10-31  Robert Dewar  <dewar@adacore.com>
17444             Thomas Quinot  <quinot@adacore.com>
17445
17446         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
17447         type.
17448         (New_Stream_Subprogram): When processing an attribute definition clause
17449         for a stream-oriented subprogram, record an entity node occurring at
17450         the point of clause to use for checking the visibility of the clause,
17451         as defined by 8.3(23) as amended by AI-195.
17452         (New_Stream_Subprogram): New procedure, factoring behaviour from both
17453          New_Stream_Function and New_Stream_Procedure.
17454         (New_Stream_Function, New_Stream_Procedure): Removed.
17455         (Analyze_Attribute_Definition_Clause, case Address): Check new
17456         Alignment_Check check
17457
17458 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17459             Javier Miranda  <miranda@adacore.com>
17460             Robert Dewar  <dewar@adacore.com>
17461
17462         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
17463         generate the same errors compiling under -gnatc.
17464         (Try_Object_Operation): If no candidate interpretation succeeds, but
17465         there is at least one primitive operation with the right name, report
17466         error in call rather than on a malformed selected component.
17467         (Analyze_Selected_Component): If the prefix is an incomplete type from
17468         a limited view, and the full view is available, use the full view to
17469         determine whether this is a prefixed call to a primitive operation.
17470         (Operator_Check): Verify that a candidate interpretation is a binary
17471         operation before checking the type of its second formal.
17472         (Analyze_Call): Add additional warnings for function call contexts not
17473         yet supported.
17474         (Analyze_Allocator): Move the check for "initialization not allowed for
17475         limited types" after analyzing the expression. This is necessary,
17476         because OK_For_Limited_Init looks at the structure of the expression.
17477         Before analysis, we don't necessarily know what sort of expression it
17478         is. For example, we don't know whether F(X) is a function call or an
17479         indexed component; the former is legal in Ada 2005; the latter is not.
17480         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
17481         were missing. We also didn't handle qualified expressions. Now also
17482         allow function calls. Use new common routine OK_For_Limited_Init.
17483         (Analyze_Type_Conversion): Do not perform some legality checks in an
17484         instance, because the error message will be redundant or spurious.
17485         (Analyze_Overloaded_Selected_Component): Do not do style check when
17486         setting an entity, since we do not know it is the right entity yet.
17487         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
17488         (Analyze_Overloaded_Selected_Component): Same change
17489         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
17490         since regular incomplete subtypes are transformed into corresponding
17491         subtypes of their full views.
17492         (Complete_Object_Operation): Treat name of transformed subprogram call
17493         as coming from source, for browsing purposes.
17494         (Try_Primitive_Operation): If formal is an access parameter, compare
17495         with base type of object to determine whether it is a primitive
17496         operation.
17497         (Operator_Check): If no interpretation of the operator matches, check
17498         whether a use clause on any candidate might make the operation legal.
17499         (Try_Class_Wide_Operation): Check whether the first parameter is an
17500         access type whose designated type is class-wide.
17501
17502 2006-10-31  Robert Dewar  <dewar@adacore.com>
17503             Ed Schonberg  <schonberg@adacore.com>
17504             Gary Dismukes  <dismukes@adacore.com>
17505
17506         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
17507         warn on infinite loops.
17508         Add \\ to some continuation messages
17509         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
17510         (Process_Bounds): If the bounds are integer literals that result from
17511         constant-folding, and they carry a user-defined type, preserve that type
17512         rather than treating this as an integer range.
17513         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
17514         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
17515         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
17516         left hand side of assignment.
17517         (Analyze_Assignment): Add suport to manage assigments to the attribute
17518         priority of a protected object.
17519         (Check_Possible_Current_Value_Condition): Allow fully qualified names
17520         not just identifiers.
17521         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
17522         or AND THEN for possible tracking.
17523         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
17524         case of while loops so we can track values in the loop body.
17525
17526 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17527             Hristian Kirtchev  <kirtchev@adacore.com>
17528             Bob Duff  <duff@adacore.com>
17529
17530         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
17531         procedure cannot be a protected operation (it is a basic_declaration,
17532         not a subprogram_declaration).
17533         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
17534         Subp. Add logic for entry processing.
17535         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
17536         Determine whether an entry or subprogram of a protected or task type
17537         override an inherited primitive of an implemented interface.
17538         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
17539         Update the actual used in calls to Check_Overriding_Indicator.
17540         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
17541         generate the proper reference to the parent unit, for cross-reference.
17542         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
17543         Is_Formal.
17544         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17545         (Add_Extra_Formal): Revise procedure to allow passing in associated
17546         entity, scope, and name suffix, and handle setting of the new
17547         Extra_Formals field.
17548         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
17549         pass new parameters. Add support for adding the new extra access formal
17550         for functions whose calls are treated as build-in-place.
17551         (Analyze_A_Return_Statement): Correct casing in error message.
17552         Move Pop_Scope to after Analyze_Function_Return, because an extended
17553         return statement really is a full-fledged scope. Otherwise, visibility
17554         doesn't work right. Correct use of "\" for continuation messages.
17555         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
17556         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
17557         the node doesn't get properly marked as analyzed.
17558         (Analyze_Subprogram_Body): If subprogram is a function that returns
17559         an anonymous access type that denotes a task, build a Master Entity
17560         for it.
17561         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
17562         proper usage of null exclusion in a result definition.
17563         (Process_Formals): Code cleanup and new error message.
17564         (Process_Formals): Detect incorrect application of null exclusion to
17565         non-access types.
17566         (Conforming_Types): Handle conformance between [sub]types and itypes
17567          generated for entities that have null exclusions applied to them.
17568         (Maybe_Primitive_Operation): Add an additional type retrieval when the
17569          base type is an access subtype. This case arrises with null exclusions.
17570         (New_Overloaded_Entity): Do not remove the overriden entity from the
17571         homonym chain if it corresponds with an abstract interface primitive.
17572         (Process_Formals): Replace membership test agains Incomplete_Kind with a
17573         call to the synthesized predicate Is_Incomplete_Type.
17574         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
17575         primitives.
17576         (Analyze_Subprogram_Declaration): Check that abstract interface
17577         primitives are abstract or null.
17578         (Analyze_Subprogram_Specification): Remove previous check for abstract
17579         interfaces because it was not complete.
17580         (Has_Interface_Formals): Removed.
17581
17582 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17583             Javier Miranda  <miranda@adacore.com>
17584
17585         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
17586         of Analyze_Package_Body, to create Itype references for anonymous
17587         access types created in the package declaration, whose designated types
17588         may have only a limited view.
17589         (Analyze_Package_Specification): For the private part of a nested
17590         package, install private_with_clauses of enclosing compilation unit if
17591         we are in its visible part.
17592         (Declare_Inherited_Private_Subprograms): Complete barrier
17593         to ensure that the primitive operation has an alias to some parent
17594         primitive. This is now required because, after the changes done for the
17595         implementation of abstract interfaces, the contents of the list of
17596         primitives has entities whose alias attribute references entities of
17597         such list of primitives.
17598         (Analyze_Package_Specification): Simplify code that handles parent units
17599         of instances and formal packages.
17600         (Uninstall_Declarations): Check the convention consistency among
17601         primitive overriding operations of a tagged record type.
17602
17603 2006-10-31  Robert Dewar  <dewar@adacore.com>
17604             Hristian Kirtchev  <kirtchev@adacore.com>
17605             Javier Miranda  <miranda@adacore.com>
17606             Ed Schonberg  <schonberg@adacore.com>
17607
17608         * sem_ch8.adb: Minor error msg rewording
17609         (Undefined): When checking for misspellings, invert arguments (to get
17610         expected and found set right)
17611         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
17612         (Analyze_Generic_Renaming): Same fix
17613         (Use_One_Package): Do not take into account the internal entities of
17614         abstract interfaces during the analysis of entities that are marked
17615         as potentially use-visible.
17616         (Find_Type): Handle the case of an attribute reference for
17617         implementation defined attribute Stub_Type (simply let the analysis of
17618         the attribute reference rewrite it).
17619         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
17620         type that appears in a Use_Type clause.
17621         (Analyze_Object_Renaming): Add support for renaming of the Priority
17622         attribute.
17623         (Find_Type): In Ada 2005, a task type can be used within its own body,
17624         when it appears in an access definition.
17625         (Analyze_Object_Renaming): Remove warning on null_exclusion.
17626         (Analyze_Object_Renaming): Introduce checks for required null exclusion
17627          in a formal object declaration or in a subtype declaration.
17628         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
17629         (Check_Null_Exclusion): New local routine to
17630         Analyze_Subprogram_Renaming. Check whether the formals and return
17631         profile of a renamed subprogram have required null exclusions when
17632         their counterparts of the renaming already impose them.
17633         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
17634         Determine whether an entity is inside a generic scope.
17635         (In_Open_Scope): First pass of documentation update.
17636         (Find_Expanded_Name): Add support for shadow entities associated with
17637         limited withed packages. This is required to handle nested packages.
17638         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
17639         that makes a renaming of a limited withed package illegal.
17640
17641 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17642             Ed Schonberg  <schonberg@adacore.com>
17643
17644         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
17645         Check_Overriding_Indicator.
17646         (Analyze_Task_Definition): Ditto.
17647         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
17648         (Check_Overriding_Indicator): To find overridden interface operation,
17649         examine only homonyms that have an explicit subprogram declaration, not
17650         inherited operations created by an unrelated type derivation.
17651         (Check_Overriding_Indicator): When checking for the presence of "null"
17652         in a procedure, ensure that the queried node is a procedure
17653         specification.
17654         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
17655         type when the formal is an access to variable.
17656         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
17657         (Analyze_Task_Type): Same addition
17658         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
17659         provide navigation capabilities for entries.
17660
17661 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17662             Ed Schonberg  <schonberg@adacore.com>
17663             Javier Miranda  <miranda@adacore.com>
17664             Gary Dismukes  <dismukes@adacore.com>
17665
17666         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
17667         inherited from an interface ancestor by another interface in the
17668         context of an instance as 'late'.
17669         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
17670         of a call to a function that dispatches on access result.
17671         (Check_Dispatching_Operation): In case of late overriding of a primitive
17672         that covers abstract interface subprograms we register it in all the
17673         secondary dispatch tables associated with abstract interfaces.
17674         (Check_Dispatching_Call): Add check that a dispatching call is not made
17675         to a function with a controlling result of a limited type. This is a
17676         current implementation restriction.
17677         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
17678         (Check_Dispatching_Operation): Do no emit a warning if the controlling
17679         argument is an interface type that is a generic formal.
17680         (Is_Interface_Subprogram): Removed.
17681         (Check_Dispatching_Operation): If the subprogram is not a dispatching
17682         operation, check the formals to handle the case in which it is
17683         associated with an abstract interface type.
17684
17685 2006-10-31  Robert Dewar  <dewar@adacore.com>
17686             Ed Schonberg  <schonberg@adacore.com>
17687
17688         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
17689         Add new calls to this procedure during traversal
17690         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
17691         another unit if expansion is disabled.
17692
17693 2006-10-31  Robert Dewar  <dewar@adacore.com>
17694
17695         * sem_eval.adb (Compile_Time_Compare): Make use of information from
17696         Current_Value in the conditional case, to evaluate additional
17697         comparisons at compile time.
17698
17699 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17700             Hristian Kirtchev  <kirtchev@adacore.com>
17701             Javier Miranda  <miranda@adacore.com>
17702
17703         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
17704         subprogram type to provide better diagnostics in case of ambiguity.
17705         (Covers): Handle coverage of formal and actual anonymous access types in
17706         the context of generic instantiation.
17707         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
17708         abstract interface types; this is required to handle concurrent types
17709         with discriminants and abstract interface types.
17710         (Covers): Include type coverage of both regular incomplete subtypes and
17711         incomplete subtypes of incomplete type visibles through a limited with
17712         clause.
17713
17714 2006-10-31  Robert Dewar  <dewar@adacore.com>
17715             Hristian Kirtchev  <kirtchev@adacore.com>
17716             Ed Schonberg  <schonberg@adacore.com>
17717
17718         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
17719         messages for entities in packages which are not used.
17720         (Collect_Synchronized_Interfaces): New procedure.
17721         (Overrides_Synchronized_Primitive): New function.
17722         (Denotes_Discriminant): Extend predicate to apply to task types.
17723         Add missing continuation marks in error msgs
17724         (Unqualify): New function for removing zero or more levels of
17725         qualification from an expression. There are numerous places where this
17726         ought to be used, but we currently only deal properly with zero or one
17727         level.
17728         (In_Instance); The analysis of the actuals in the instantiation of a
17729         child unit is not within an instantiation, even though the parent
17730         instance is on the scope stack.
17731         (Safe_To_Capture_Value): Exclude the case of variables that are
17732         renamings.
17733         (Check_Obsolescent): Removed
17734         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
17735         is an aliased view, even when rewritten as a reference to the target
17736         object in an assignment.
17737         (Get_Subprogram_Entity): New function
17738         (Known_To_Be_Assigned): New function
17739         (Type_Access_Level): Compute properly the access level of a return
17740         subtype that is an anonymous access type.
17741         (Explain_Limited_Type): Correct use of "\" for continuation messages.
17742         (Is_Transfer): The new extended_return_statement causes a transfer of
17743         control.
17744         (Has_Preelaborable_Initialization): New function
17745         (Has_Null_Exclusion): New function. Given a node N, determine whether it
17746         has a null exclusion depending on its Nkind.
17747         Change Is_Lvalue to May_Be_Lvalue
17748         (May_Be_Lvalue): Extensive additional code to deal with subprogram
17749         arguments (IN parameters are not Lvalues, IN OUT parameters are).
17750         (Safe_To_Capture_Value): Extend functionality so it can be used for
17751         the current value condition case.
17752         (Has_Compatible_Alignment): New function
17753         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
17754         objects to handle the Ada 2005 case, where aliasedness no longer implies
17755         that the object is constrained. In particular, for dereferenced names,
17756         the designated object must be assumed to be unconstrained.
17757         (Kill_Current_Values): Properly deal with the case where we encounter
17758         a loop in the scope chain.
17759         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
17760         a value.
17761         (Compile_Time_Constraint_Error): Improve error message in error case
17762
17763         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
17764         associated with entities of abstract interface primitives.
17765         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
17766
17767 2006-10-31  Robert Dewar  <dewar@adacore.com>
17768
17769         * s-osinte-tru64.adb: 
17770         Mark Asm statements Volatile to prevent warnings (seems a
17771         reasonable change anyway)
17772         Fixes new warnings
17773
17774         * s-mastop-irix.adb: Add Volatile to Asm statements
17775         Suppresses warning, and seems appropriate in any case
17776
17777         * s-osinte-vms.adb: Add Volatile to Asm statement
17778
17779         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
17780
17781         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
17782         returned.
17783         Add call to Check_Code_Statement
17784
17785 2006-10-31  Robert Dewar  <dewar@adacore.com>
17786             Ed Schonberg  <schonberg@adacore.com>
17787             Bob Duff  <duff@adacore.com>
17788
17789         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
17790         Synchronized_Present): Add Formal_Derived_Type_Definition and
17791         Private_Extension_Declaration to the list of assertions.
17792         (Is_Entry_Barrier_Function): New flag
17793         (Has_Self_Reference): New flag on aggregates, to indicate that they
17794         contain a reference to the enclosing type, inserted through a default
17795         initialization.
17796         (Next_Rep_Item): Move from Node4 to Node5.
17797         (Entity): Add this field for N_Attribute_Definition_Clause.
17798         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
17799         (N_Return_Object_Declaration): Remove this node kind. We now use
17800         N_Object_Declaration instead.
17801         (Actual_Designated_Subtype): Move to a different place to make room in
17802         N_Extended_Return_Statement.
17803         (Procedure_To_Call): Move to a different place to make room in
17804         N_Extended_Return_Statement.
17805         (Return_Type): Removed this field to make room in return statements
17806         (both kinds).
17807         (Return_Statement_Entity): New field in return statements, in part to
17808         replace Return_Type, and in part to support the fact that return
17809         statements are now pushed on the scope stack during semantic analysis.
17810         (Return_Object_Declarations): New field to support extended return
17811         statements.
17812         (N_Extended_Return_Statement): New node for extended_return_statement
17813         nonterminal.
17814         (N_Return_Object_Declaration): New node for part of
17815         extended_return_statement nonterminal. Needed because all the necessary
17816         fields won't fit in N_Extended_Return_Statement.
17817         Generic_associations now carry the Box_Present flag, to indicate a
17818         default for an actual in a partially parametrized formal package.
17819
17820         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
17821         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
17822         and for the new predefined dispatching policies: EDF_Across_Priorities,
17823         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
17824         Introduce new name Stub_Type for implementation defined attribute.
17825         Add pragma Preelaborable_Initialization
17826         Add entry for Priority attribute.
17827         Add Pragma_Wide_Character_Encoding
17828         (Get_Convention_Name): Given a convention id, this function returns the
17829         corresponding name id from the names table.
17830
17831 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17832             Robert Dewar  <dewar@adacore.com>
17833             Bob Duff  <duff@adacore.com>
17834
17835         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
17836         print null exclusion twice in the case of an access definition,
17837         Implement new -gnatL switch
17838         Remove N_Return_Object_Declaration. We now use
17839         N_Object_Declaration instead. Implement the case for
17840         N_Extended_Return_Statement. Alphabetize the cases.
17841         Add cases for new nodes N_Extended_Return_Statement and
17842         N_Return_Object_Declaration. The code is not yet written.
17843         Update the output for N_Formal_Object_Declaration
17844         and N_Object_Renaming_Declaration.
17845         (Write_Itype): Account for the case of a modular integer subtype whose
17846         base type is private.
17847
17848 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17849
17850         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
17851         Remove elaboration code, now done in the binder.
17852
17853         * s-rident.ads: Make this unit Preelaborate.
17854         (No_Restrictions): New constant used to clean up code and follow
17855         preelaborate constraints.
17856
17857         * s-stalib.adb: 
17858         Add System.Restrictions dependence, referenced directly from the
17859         binder generated file.
17860
17861 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
17862
17863         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
17864         True when AAMP extended floating-point is in use (48-bit). Change type
17865         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
17866         the two byte array types on AFloat. Change type of IV_Ilf overlay
17867         variable from Byte8 to ByteLF. Add appropriate initializations of
17868         floating-point overlays for AAMP cases.
17869
17870 2006-10-31  Javier Miranda  <miranda@adacore.com>
17871
17872         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
17873         (Get_Ceiling): New subprogram that returns
17874         the ceiling priority of the protected object.
17875         (Set_Ceiling): New subprogram that sets the new ceiling priority of
17876         the protected object.
17877
17878         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
17879
17880         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
17881
17882 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17883
17884         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
17885         requeuing to the same protected object to give higher priority tasks
17886         the opportunity to execute.
17887
17888 2006-10-31  Robert Dewar  <dewar@adacore.com>
17889
17890         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
17891         add more precise check for the character sequence that follows '[' to
17892         avoid possible confusion in case if '[' is the last character of a
17893         string literals.
17894         (Scan_Wide): Always allow brackets encoding
17895
17896 2006-10-31  Olivier Hainque  <hainque@adacore.com>
17897
17898         * s-stchop.ads: make this unit preelaborate. This is desirable in
17899         general and made mandatory by the use of this unit by s-taprop which
17900         is itself preelaborate.
17901
17902         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
17903         Td_Events component.
17904
17905 2006-10-31  Vincent Celier  <celier@adacore.com>
17906
17907         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
17908         in file names.
17909
17910 2006-10-31  Vincent Celier  <celier@adacore.com>
17911
17912         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
17913
17914 2006-10-31  Vincent Celier  <celier@adacore.com>
17915
17916         * makegpr.adb (Check_Compilation_Needed): Take into account path names
17917         with spaces.
17918         (Check_Compilation_Needed): When checking a C or C++ source, do not
17919         resolve symbolic links.
17920         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
17921         When not in verbose mode and Ellipse is True, display "..." for the
17922         first argument with Display set to False.
17923         (Build_Global_Archive): Always set Display True for the first object
17924         file. Call Display_Command with Ellipse set to True.
17925
17926 2006-10-31  Matt Heaney  <heaney@adacore.com>
17927
17928         * a-crbtgo.ads: Commented each subprogram
17929
17930         * a-crbtgo.adb: Added reference to book from which algorithms were
17931         adapted.
17932
17933         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
17934         indicate which child.
17935         (Generic_Conditional_Insert): changed parameter name from "Success" to
17936         "Inserted".
17937         (Generic_Unconditional_Insert_With_Hint): improved algorithm
17938
17939         * a-coorse.adb (Replace_Element): changed parameter name in call to
17940         conditional insert operation.
17941
17942         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
17943
17944         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
17945         Generic_Iteration
17946
17947         * a-ciorse.adb (Replace_Element): changed parameter name in call to
17948         conditional insert operation.
17949
17950         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
17951         Generic_Iteration.
17952
17953         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
17954         instead of mode inout.
17955
17956         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
17957         draft
17958         (Generic_Read): preserve existing buckets array if possible
17959         (Generic_Write): don't send buckets array length anymore
17960
17961         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
17962         instead of mode inout.
17963
17964         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
17965         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17966
17967         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
17968         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17969         (Replace_Element): local operation is now an instantiation
17970
17971         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
17972         check current length.
17973         (Generic_Replace_Element): new operation
17974
17975 2006-10-31  Doug Rupp  <rupp@adacore.com>
17976
17977         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
17978         Call TBK$SYMBOLIZE without omitting parameters.
17979
17980 2006-10-31  Vincent Celier  <celier@adacore.com>
17981
17982         * symbols-processing-vms-ia64.adb,
17983         symbols-processing-vms-alpha.adb (Process): Do not include symbols
17984         that come from generic instantiations in bodies.
17985
17986 2006-10-31  Pat Rogers  <rogers@adacore.com>
17987
17988         * a-rttiev.ads, a-rttiev.adb: 
17989         This is a significant redesign primarily for the sake of automatic
17990         timer task termination but also to fix a design flaw.
17991         Therefore we are now using an RTS lock, instead of a protected
17992         object, to provide mutual exclusion to the queue of pending events
17993         and the type Timing_Event is no longer a protected type.
17994
17995 2006-10-31  Robert Dewar  <dewar@adacore.com>
17996             Cyrille Comar  <comar@adacore.com>
17997             Ben Brosgol  <brosgol@adacore.com>
17998
17999         * debug.adb:  Update flags documentation
18000
18001         * gnat_ugn.texi: Add documentation for new -gnatwq switch
18002         Clean up documentation for several other warning switches
18003         Clarify how task stack size can be specified with various
18004         versions of Windows.
18005         Add note that -gnatVo includes ranges including loops
18006         Add documentation for -gnatL switch
18007         Add note on elaboration warning for initializing variables
18008         Add documentation for new -gnatwt warning switch
18009         Document new form of pragma Warnings (On|Off, string)
18010         Add comment on use of pragma Warnings to control warnings
18011         Add documentation for -gnatjnn switch
18012         Modify section on interfacing with C for VMS 64-bit.
18013         Add doc for -gnatVe/E
18014         Add documentation of new warning flags -gnatww/-gnatwW
18015         Add warnings about address clause overlays to list of warnings
18016         (Exception Handling Control): Document that the option --RTS must be
18017         used consistently for gcc and gnatbind.
18018         Clarify that inlining is not always possible
18019         Update documentation on pragma Unchecked_Union.
18020
18021         * gnat_rm.texi: 
18022         Add documentation for new extended version of pragma Obsolescent
18023         Add documentation for implementation defined attribute 'Stub_Type.
18024         Add note on use of Volatile in asm statements
18025         Add documentation on use of pragma Unreferenced in context clause
18026         Document new form of pragma Warnings (On|Off, pattern)
18027         Document pragma Wide_Character_Encoding
18028         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18029         enforced if code generation is active.
18030         Add section on pragma Suppress to document GNAT specific check
18031         Alignment_Check
18032         Clarify difference between No_Dispatching_Calls & No_Dispatch.
18033         Add documentation for pragma Restrictions (No_Elaboration_Code)
18034
18035         * gnat-style.texi: 
18036         Add comments on layout of subprogram local variables in the
18037         presence of nested subprograms.
18038
18039         * ug_words: Resync.
18040
18041         * elists.ads: Minor reformatting
18042         Node returns Node_Or_Entity_Id (doc change only)
18043
18044         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18045
18046         * g-arrspl.ads (Create): Update comments.
18047
18048         * sem.ads: Add details on the handling of the scope stack.
18049
18050         * usage.adb: Update documentation.
18051
18052         * validsw.ads, validsw.adb: 
18053         Add definition of Validity_Check_Components and implement -gnatVe/E
18054
18055         * vms_data.ads: Add missing VMS qualifiers.
18056
18057         * s-addope.ads: Add documentation on overflow and divide by zero
18058
18059 2006-10-31  Robert Dewar  <dewar@adacore.com>
18060             Thomas Quinot  <quinot@adacore.com>
18061             Arnaud Charlet  <charlet@adacore.com>
18062
18063         * fmap.adb: Put routines in alpha order
18064
18065         * g-boumai.ads: Remove redundant 'in' keywords
18066
18067         * g-cgi.adb: Minor reformatting
18068
18069         * g-cgi.ads: Remove redundant 'in' keywords
18070
18071         * get_targ.adb: Put routines in alpha order
18072
18073         * prj-attr.ads: Minor reformatting
18074
18075         * s-atacco.ads: Minor reformatting
18076
18077         * scn.adb: Put routines in alpha order
18078
18079         * sinput-l.adb: Minor comment fix
18080
18081         * sinput-p.adb: Minor comment fix
18082
18083         * s-maccod.ads: Minor reformatting
18084
18085         * s-memory.adb: Minor reformatting
18086
18087         * s-htable.adb: Fix typo in comment.
18088
18089         * s-secsta.adb: Minor comment update.
18090
18091         * s-soflin.adb: Minor reformatting
18092
18093         * s-stoele.ads: 
18094         Add comment about odd qualification in Storage_Offset declaration
18095
18096         * s-strxdr.adb: 
18097         Remove unnecessary 'in' keywords for formal parameters.
18098
18099         * treeprs.adt: Minor reformatting
18100
18101         * urealp.adb: Put routines in alpha order
18102
18103         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
18104         taking string.
18105
18106         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18107
18108         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
18109
18110         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
18111         workaround as on other platforms.
18112
18113         * g-eacodu-vms.adb: Remove redundant 'in' keywords
18114         * g-expect-vms.adb: Remove redundant 'in' keywords
18115
18116         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
18117         clear error message if the list-of-files file cannot be opened.
18118
18119         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
18120         equality operator is always visible.
18121
18122         * lang.opt: Woverlength-strings: New option.
18123
18124         * nmake.adt: 
18125         Update copyright, since nmake.ads and nmake.adb have changed.
18126
18127         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
18128         (Binder_Output_Time_Stamps_Set): removed.
18129         (Old_Binder_Output_Time_Stamp): idem.
18130         (New_Binder_Output_Time_Stamp): idem.
18131         (Recording_Time_From_Last_Bind): idem.
18132         (Recording_Time_From_Last_Bind): Make constant.
18133
18134         * output.ads, output.adb (Write_Str): Allow LF characters
18135         (Write_Spaces): New procedure
18136
18137         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
18138
18139         * inline.adb: Minor reformatting
18140
18141         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18142
18143         * s-mastop-vms.adb: Remove redundant 'in' keywords
18144
18145         * s-osprim-vms.adb: Remove redundant 'in' keywords
18146
18147         * s-trafor-default.adb: Remove redundant 'in' keywords
18148
18149         * 9drpc.adb: Remove redundant 'in' keywords
18150
18151         * s-osinte-mingw.ads: Minor reformatting
18152
18153         * s-inmaop-posix.adb: Minor reformatting
18154
18155         * a-direio.ads: Remove quotes from Compile_Time_Warning message
18156
18157         * a-exexda.adb: Minor code reorganization
18158
18159         * a-filico.adb: Minor reformatting
18160
18161         * a-finali.adb: Minor reformatting
18162
18163         * a-nudira.ads: Remove quote from Compile_Time_Warning message
18164
18165         * a-numeri.ads: Minor reformatting
18166
18167         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
18168
18169         * exp_pakd.ads: Fix obsolete comment
18170
18171         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
18172         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
18173         Probably not a bug, but certainly neater and more efficient.
18174
18175         * a-tienio.adb: Minor reformatting
18176
18177         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
18178         Avoid assuming low bound of string is 1.
18179
18180         * gnatbind.adb: Change Bindusg to package and rename procedure as
18181         Display, which now ensures that it only outputs usage information once.
18182         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
18183
18184         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
18185         Table'First.
18186
18187         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
18188         warning.
18189         (Match): Add pragma Assert to ensure that Matches'First is zero
18190
18191         * g-regpat.ads (Match): Document that Matches lower bound must be zero
18192
18193         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
18194         documented preconditions (also kills warnings about bad indexes).
18195
18196         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
18197         is 1.
18198         (Build_Import_Library): Ditto;
18199
18200         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
18201
18202         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
18203
18204         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
18205         lower bound of choice table is 1.
18206
18207         * sem_case.ads (Analyze_Choices): Document that lower bound of
18208         Choice_Table is 1.
18209
18210         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
18211         string is 1.
18212
18213         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
18214         and add appropriate Assert pragma to suppress warnings.
18215
18216         * atree.h, atree.ads, atree.adb
18217         Change Elist24 to Elist25
18218         Add definitions of Field28 and Node28
18219         (Traverse_Field): Use new syntactic parent table in sinfo.
18220
18221         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18222
18223         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18224
18225         * exp_tss.adb: Put routines in alpha order
18226
18227         * fe.h: Remove redundant declarations.
18228
18229 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
18230
18231         * utils.c (builtin_function): Rename to gnat_builtin_function.
18232         Move common code to add_builtin_function.
18233         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
18234         gnat_builtin_function.
18235         * gigi.h (builtin_function): Rename to gnat_builtin_function.
18236         Change the signature.
18237
18238 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
18239
18240         * Makefile.in: Add TEXI2PDF definition.
18241         * Make-lang.in: Add "ada.pdf" target.
18242
18243 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
18244
18245         * decl.c, utils.c: Fix comment typos.
18246         * utils.c: Fix a typo.
18247
18248 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
18249
18250         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
18251         on "pure" Ada subprograms if SJLJ exceptions are used.
18252         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
18253         on the declaration node of JMPBUF_SAVE.
18254         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
18255         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
18256         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
18257
18258 2006-08-20  Laurent Guerby  <laurent@guerby.net>
18259
18260         PR ada/28716
18261         g-socket.adb (Bind_Socket): Call Set_Address.
18262
18263 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
18264
18265         PR ada/15802
18266         * decl.c (same_discriminant_p): New static function.
18267         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
18268         subtype and we have discriminants, fix up the COMPONENT_REFs
18269         for the discriminants to make them reference the corresponding
18270         fields of the parent subtype after it has been built.
18271
18272 2006-09-15  Roger Sayle  <roger@eyesopen.com>
18273
18274         PR ada/18817
18275         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
18276         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
18277
18278 2006-09-13  Olivier Hainque  <hainque@adacore.com>
18279
18280         PR ada/29025
18281         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
18282         of a SAVE_EXPR, just make the operand addressable/not-readonly and
18283         let the common gimplifier code make and propagate a temporary copy.
18284         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
18285         out/in-out actuals and defer setting the addressable/readonly bits
18286         to the gimplifier.
18287
18288 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
18289
18290         PR ada/28591
18291         * decl.c (components_to_record): Defer emitting debug info for the
18292         record type associated with the variant until after we are sure to
18293         actually use it.
18294
18295 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
18296
18297         PR ada/21952
18298         * gigi.h (gnat_internal_attribute_table): Declare.
18299         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
18300         * utils.c (gnat_internal_attribute_table): New global variable.
18301         (builtin_function): Always call decl_attributes on the builtin.
18302         (handle_const_attribute): New static function.
18303         (handle_nothrow_attribute): Likewise.
18304
18305 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
18306
18307         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
18308
18309 2006-06-23  Olivier Hainque  <hainque@adacore.com>
18310
18311         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
18312         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
18313
18314 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
18315             Eric Botcazou  <ebotcazou@adacore.com>
18316
18317         PR ada/18692
18318         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
18319         check-gnat into check-acats.
18320
18321 2006-06-17  Karl Berry  <karl@gnu.org>
18322
18323         * gnat-style.texi (@dircategory): Use "Software development"
18324         instead of "Programming", following the Free Software Directory.
18325
18326 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18327
18328         PR ada/27944
18329         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
18330
18331 2006-06-06  Laurent Guerby  <laurent@guerby.net>
18332
18333         PR ada/27769
18334         mlib-utl.adb: Use Program_Name.
18335
18336 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
18337
18338         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
18339         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
18340         trans.c, utils.c: Fix comment typos.  Follow spelling
18341         conventions.
18342         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
18343         conventions.
18344
18345 2006-05-19  Nicolas Setton  <setton@adacore.com>
18346
18347         * misc.c (gnat_dwarf_name): New function.
18348         (LANG_HOOKS_DWARF_NAME): Define to it.
18349
18350 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18351
18352         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
18353         (ada/misc.o): Likewise.
18354         (ada/utils.o): Likewise.
18355
18356 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
18357
18358         * Makefile.in: Add Ada support for GNU/kFreeBSD.
18359         * s-osinte-kfreebsd-gnu.ads: New file.
18360
18361 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
18362
18363         * Make-lang.in: Rename docdir to gcc_docdir.
18364
18365 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
18366
18367         * gigi.h (get_ada_base_type): Delete.
18368         * utils2.c (get_ada_base_type): Likewise.
18369         * trans.c (convert_with_check): Operate in the real base type.
18370
18371 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18372
18373         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
18374
18375 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
18376
18377         * utils.c (create_var_decl): Use have_global_bss_p when deciding
18378         whether to make the decl common.
18379
18380 2006-02-20  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
18381
18382         * Make-lang.in (Ada): Remove.
18383         (.PHONY): Remove Ada
18384
18385 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18386
18387         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
18388         aggregate, check the interpretations of the other operand to find one
18389         that may be a boolean array.
18390
18391         (Analyze_Selected_Component): Fix flow-of-control typo in case where
18392         the prefix is a private extension.
18393
18394 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
18395
18396         PR ada/26315
18397         * utils2.c (find_common_type): If both input types are BLKmode and
18398         have the same constant size, keep using the first one.
18399
18400         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
18401
18402         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
18403
18404         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
18405
18406 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
18407
18408         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
18409         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
18410         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
18411         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
18412         Abort_Defer/Undefer pairs to avoid the possibility of a task being
18413         aborted while owning a lock.
18414
18415 2006-02-17  Javier Miranda  <miranda@adacore.com>
18416             Robert Dewar  <dewar@adacore.com>
18417
18418         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
18419         through an access to class-wide interface we force the displacement of
18420         the pointer to the allocated object to reference the corresponding
18421         secondary dispatch table.
18422         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
18423         if Long_Shifts are supported on the target, even if 64 bit divides
18424         are not supported (configurable run time mode).
18425         (Expand_N_Type_Conversion): Do validity check if validity checks on
18426         operands are enabled.
18427         (Expand_N_Qualified_Expression): Do validity check if validity checks
18428         on operands are enabled.
18429
18430 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18431
18432         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
18433         must be materialized when the renamed expression is an explicit
18434         dereference.
18435
18436 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18437
18438         * freeze.adb (Statically_Discriminated_Components): Return false if
18439         the bounds of the type of the discriminant are not static expressions.
18440
18441         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
18442         the bounds of the discriminant type are not static.
18443
18444 2006-02-17  Robert Dewar  <dewar@adacore.com>
18445
18446         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
18447         then we close To if it is valid.
18448
18449 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
18450
18451         * init.c (facility_resignal_table): new array
18452         (__gnat_default_resignal_p): enhance default predicate to resignal if
18453         VMS condition has one of the predefined facility codes.
18454
18455 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
18456
18457         * Makefile.in: Use VMS64 specialized versions of several units in
18458         Interfaces.C hierarchy to be compatible with HP C default size choices.
18459         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
18460
18461 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18462
18463         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
18464         instantiation, the corresponding entity is the related_instance of the
18465         wrapper package created for the instance.
18466
18467 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18468
18469         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
18470         the current instance is nested within another instance in a child unit.
18471
18472 2006-02-17  Javier Miranda  <miranda@adacore.com>
18473             Ed Schonberg  <schonberg@adacore.com>
18474
18475         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
18476         type we cannot inherit the primitive operations; we inherit the
18477         Corresponding_Record_Type (which has the list of primitive operations).
18478         (Check_Anonymous_Access_Types): When creating anonymous access types for
18479         access components, use Rewrite in order to preserve the tree structure,
18480         for ASIS use.
18481         (Analyze_Object_Declaration): For limited types with access
18482         discriminants with defaults initialized by an aggregate, obtain
18483         subtype from aggregate as for other mutable types.
18484         (Derived_Type_Declaration): If the derived type is a limited interface,
18485         set the corresponding flag (Is_Limited_Record is not sufficient).
18486
18487 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18488
18489         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
18490         to inline a function that returns an unconstrained type, the return
18491         expression must be the first variable declared in the body of the
18492         function.
18493
18494 2006-02-17  Javier Miranda  <miranda@adacore.com>
18495
18496         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
18497         abstract interface type, the static analysis is not enough to know if
18498         the interface is implemented or not by the source tagged type. Hence
18499         we must pass the work to the expander to generate the required code to
18500         evaluate the conversion at run-time.
18501         (Resolve_Equality_Op): Do not apply previous
18502         transformation if expansion is disasbled, to prevent anomalies when
18503         locating global references in a generic unit.
18504
18505 2006-02-17  Vincent Celier  <celier@adacore.com>
18506
18507         * snames.ads, snames.adb: New standard names for new project attributes:
18508         archive_builder, archive_indexer, compiler_pic_option,
18509         config_body_file_name, config_body_file_name_pattern,
18510         config_file_switches, config_file_unique, config_spec_file_name,
18511         config_spec_file_name_pattern, default_builder_switches,
18512         default_global_compiler_switches, default_language,
18513         dependency_file_kind, global_compiler_switches, include_path,
18514         include_path_file, language_kind, linker_executable_option,
18515         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
18516         roots, runtime_project.
18517
18518 2006-02-17  Matthew Heaney  <heaney@adacore.com>
18519
18520         * a-convec.ads, a-convec.adb: 
18521         (operator "&"): handle potential overflow for large index types
18522         (Insert): removed Contraint_Error when using large index types
18523         (Insert_Space): removed Constraint_Error for large index types
18524         (Length): moved constraint check from Length to Insert
18525
18526         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
18527         as not null access.
18528         Explicit raise statements now include an exception message.
18529         (operator "&"): handle potential overflow for large index types
18530         (Insert): removed Contraint_Error when using large index types
18531         (Insert_Space): removed Constraint_Error for large index types
18532         (Length): moved constraint check from Length to Insert
18533
18534 2006-02-17  Robert Dewar  <dewar@adacore.com>
18535
18536         * s-wchcnv.adb: Document handling of [ on output (we do not change
18537         this to ["5B"] and the new comments say why not.
18538
18539         * gnat_ugn.texi: 
18540         Add note for -gnatVo that this now includes the cases of type
18541         conversions and qualified expressions.
18542         Add comments on handling of brackets encoding for Text_IO
18543
18544 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
18545             Thomas Quinot  <quinot@adacore.com>
18546             Robert Dewar  <dewar@adacore.com>
18547             Javier Miranda  <miranda@adacore.com>
18548
18549         * expander.adb: Fix typo in comment
18550
18551         * exp_pakd.adb: Fix typo
18552         Minor comment reformatting.
18553
18554         * g-dyntab.adb: Minor reformatting
18555
18556         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
18557         aliased subprograms to look for the abstract interface subprogram.
18558
18559 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
18560
18561         * env.c (__gnat_setenv): Use size_t.
18562         (__gnat_unsetenv): Likewise.
18563         (__gnat_clearenv): Likewise.
18564
18565 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
18566
18567         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
18568
18569 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18570
18571         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
18572         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
18573         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
18574         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
18575         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
18576         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
18577         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
18578         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
18579         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
18580         no longer used.
18581
18582 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
18583
18584         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
18585         protection against race conditions is not needed.
18586         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
18587         fallback handler.
18588         (Set_Specific_Handler): Add mutual exclusive access to the specific
18589         handler.
18590         (Specific_Handler): Add mutual exclusive access for retrieving the
18591         specific handler.
18592
18593         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
18594         back handler.
18595
18596         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
18597         Fall_Back_Handler and Specific_Handler.
18598
18599         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
18600         termination handlers.
18601         Set two different owerflow depending on the maximal stack size.
18602
18603         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
18604         protection against race conditions is not needed when executing the
18605         task termination handler.
18606
18607 2006-02-13  Robert Dewar  <dewar@adacore.com>
18608
18609         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
18610         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
18611         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18612         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
18613         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
18614         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
18615         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
18616         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
18617         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
18618         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18619         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
18620         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
18621         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
18622         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
18623         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
18624         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
18625         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
18626         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
18627         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
18628         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
18629         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
18630         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
18631         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
18632         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
18633         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
18634         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
18635         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
18636         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
18637         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
18638         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
18639         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
18640         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
18641         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
18642         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
18643         reformatting.
18644
18645 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
18646
18647         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
18648         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
18649         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
18650         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
18651         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
18652         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
18653         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
18654         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
18655         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
18656
18657 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18658
18659         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
18660         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
18661         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
18662         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
18663         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
18664         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
18665         replaced by anonymous access type.
18666         (pthread_sigmask): Now take an access sigset_t
18667
18668         * s-osinte-hpux.ads:  Ditto.
18669         (pthread_mutex_t, pthread_cond_t): Update definitions to support
18670         properly 32 and 64 bit ABIs.
18671
18672 2006-02-13  Pascal Obry  <obry@adacore.com>
18673
18674         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
18675         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
18676         s-taprop-linux.adb, s-taprop-solaris.adb,
18677         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
18678         adjustement is already done when calling this routine.
18679
18680 2006-02-13  Pascal Obry  <obry@adacore.com>
18681
18682         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
18683         table to take advantage of the 16 priority levels available on Windows
18684         2000 and XP. On NT4 there are only 7 priority levels, this is properly
18685         supported by this new mapping.
18686
18687 2006-02-13  Nicolas Setton  <setton@adacore.com>
18688
18689         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
18690         (get_encoding): New subprogram. Extracts the encodings from an encoded
18691         Ada name.
18692
18693 2006-02-13  Pascal Obry  <obry@adacore.com>
18694             Nicolas Roche  <roche@adacore.com>
18695             Arnaud Charlet  <charlet@adacore.com>
18696
18697         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
18698         support.
18699         (__gnat_try_lock): Add unicode support by using a specific section on
18700         Windows.
18701         (__gnat_get_current_dir): Idem.
18702         (__gnat_open_read): Idem.
18703         (__gnat_open_rw): Idem.
18704         (__gnat_open_create): Idem.
18705         (__gnat_create_output_file): Idem.
18706         (__gnat_open_append): Idem.
18707         (__gnat_open_new): Idem.
18708         (__gnat_file_time_name): Idem.
18709         (__gnat_set_file_time_name): Idem.
18710         (__gnat_stat): Idem.
18711         (win32_no_block_spawn): Idem.
18712         (__gnat_locate_exec_on_path): Idem.
18713         (__gnat_opendir): New routine.
18714         (__gnat_closedir): Idem.
18715         (__gnat_readdir): Add new parameter length (pointer to int). Update
18716         implementation to use it and add specific Win32 code for Unicode
18717         support.
18718         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
18719         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
18720         (convert_addresses): Do not define this dummy routine on VMS.
18721
18722         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
18723         runtime Unicode support will be activated.
18724         (S2WS): String to Wide-String conversion. This version just copy a
18725         string in non Unicode version.
18726         (WS2S): Wide-String to String conversion. This version just copy a
18727         string in non Unicode version.
18728
18729         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
18730         (Open): Now import __gnat_opendir from adaint.c.
18731         (Read): Change the implementation to support unicode characters. It is
18732         not possible to use strlen() on Windows as this version supports only
18733         standard ASCII characters. So the length of the directory entry is now
18734         returned from the imported __gnat_readdir routine.
18735         Update copyright notice.
18736
18737         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
18738         (opendir): Moved to adaint.c.
18739
18740         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
18741         (Get_Directory): Fix wrong indexing.
18742         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
18743         __gnat_getenv from env.c
18744         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
18745         from env.c
18746
18747         * env.h, env.c: New file.
18748
18749         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
18750         adaint.c by __gnat_getenv from env.c
18751
18752         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
18753         adaint.c by __gnat_getenv from env.c
18754
18755         * Make-lang.in: Add env.o in the list of C object needed by gnat1
18756         and gnatbind.
18757         Update dependencies.
18758
18759 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18760             Olivier Hainque  <hainque@adacore.com>
18761             Eric Botcazou  <ebotcazou@adacore.com>
18762
18763         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
18764         
18765         * gigi.h (value_factor_p): Add prototype and description, now public.
18766
18767         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
18768         promotion for field with rep clause if the associated size was proven
18769         to be in error.
18770         Expand comments describing attempts to use a packable type.
18771         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
18772         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
18773         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
18774         necessary since these are not different types and pointers may
18775         actually designate any subtype in this hierarchy.
18776         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
18777         discriminants but put them into record only if not Unchecked_Union;
18778         pass flag to components_to_record showing Unchecked_Union.
18779         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
18780         components before variants; don't set TYPE_UNCHECKED_UNION_P.
18781         (components_to_record): New argument UNCHECKED_UNION.
18782         Remove special case code for Unchecked_Union and instead use main code
18783         with small changes.
18784
18785         PR ada/26096
18786         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
18787         variable with the expression being built, only its inner field.
18788
18789         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
18790         emit_sequence_entry_statements.
18791         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
18792         (establish_gnat_vms_condition_handler): Move before
18793         Subprogram_Body_to_gnu.
18794         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
18795         for a subprogram if it has a foreign convention or is exported.
18796         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
18797         substituted for a CONST_DECL.
18798         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
18799         Etype to assoc_to_constructor.
18800         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
18801         discriminants of Unchecked_Union.
18802         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
18803         don't need cluttering preprocessor directives.
18804         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
18805         condition handler as current in the compiled function.
18806         (body_with_handlers_p): New function. Tell whether a given sequence of
18807         statements node is attached to a package or subprogram body and involves
18808         exception handlers possibly nested within inner block statements.
18809         (emit_sequence_entry_statements): New function, to emit special
18810         statements on entry of sequences when necessary. Establish GNAT
18811         condition handler in the proper cases for VMS.
18812         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
18813         emit_sequence_entry_statements.
18814
18815         * utils2.c (find_common_type): If both input types are BLKmode and
18816         have a constant size, use the smaller one.
18817         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
18818         the same.
18819
18820         * utils.c (value_factor_p): Make public, to allow uses from other gigi
18821         units.
18822         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
18823         (convert, case UNION_TYPE): Remove special treatment for unchecked
18824         unions.
18825
18826         PR ada/18659
18827         (update_pointer_to): Update variants of pointer types to unconstrained
18828         arrays by attaching the list of fields of the main variant.
18829
18830 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18831             Robert Dewar  <dewar@adacore.com>
18832
18833         * a-exexpr.adb, a-exexpr-gcc.adb
18834         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
18835         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
18836         Remove code unused for exception propagation for the compiler itself
18837         from a-except.adb and update to still share separate packages.
18838
18839         * a-except.ads, a-except.adb: Ditto.
18840         Add comments that this version is now used only by the compiler and
18841         other basic tools. The full version that includes the Ada 2005 stuff
18842         is in separate files a-except-2005.ads/adb. The reason is that we do
18843         not want to cause bootstrap problems with compilers not recognizing
18844         Wide_Wide_String.
18845         Add exception reason code PE_Implicit_Return
18846         Add new exception reason code (Null Exception_Id)
18847
18848         * a-except-2005.adb, a-except-2005.ads: New files.
18849
18850         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
18851
18852         * s-wchcon.adb: New file.
18853
18854         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
18855         (traceback.o deps): Likewise.
18856         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
18857         Activate build of GMEM instrumentation library on VMS targets.
18858         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
18859         Use a-except-2005.ads/adb for all run-time library builds unless
18860         specified otherwise.
18861         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
18862         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
18863         Use s-parame.adb on all native platforms.
18864         Use s-parame-vxworks.adb on all vxworks platforms.
18865         Add env.c env.h in LIBGNAT_SRCS
18866         Add env.o in LIBGNAT_OBJS
18867         (GNATMAKE_OBJS): Remove ctrl_c.o object.
18868         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
18869         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
18870         supports VxWorks 6 RTPs.
18871         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
18872         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
18873
18874         * types.h, types.ads (Terminate_Program): New exception
18875         Add comment on modifying multiple versions of a-except.adb when the
18876         table of exception reasons is modified.
18877         Add exception reason code PE_Implicit_Return
18878         Add new exception reason code (Null Exception_Id)
18879
18880         * clean.adb (Initialize): Get the target parameters before checking
18881         if target is OpenVMS. Move the OpenVMS specific code here from package
18882         body elaboration code.
18883
18884 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18885             Vincent Celier  <celier@adacore.com>
18886             Robert Dewar  <dewar@adacore.com>
18887
18888         * ali-util.adb (Get_File_Checksum): Update to account for change in
18889         profile of Initialize_Scanner.
18890
18891         * gprep.adb (Gnatprep): Update to account for change in profile of
18892         Initialize_Scanner.
18893         (Process_One_File): Same.
18894
18895         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
18896         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
18897         that behaviour using the new Unit information recorded in the source
18898         files table, rather than going through all units every time.
18899         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
18900         (Get_Source_Unit): Same.
18901
18902         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
18903         change in profile of Initialize_Scanner.
18904         (Prepare_To_Preprocess): Same.
18905
18906         * lib.ads: Fix typo in comment (templace -> template).
18907
18908         * prj-part.adb (Parse_Single_Project): Update to account for change in
18909         profile of Initialize_Scanner.
18910
18911         * scn.adb (Initialize_Scanner): Account for change in profile of
18912         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
18913         Also record the association of the given Source_File_Index to the
18914         corresponding Unit_Number_Type.
18915
18916         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
18917         procedure.
18918         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
18919         Remove Unit formal for generic scanner: this formal
18920         is only relevant to Scn (the scanner instance used to parse Ada source
18921         files), not to other instances. Update comment accordingly.
18922         (Scan): Use new function Snames.Is_Keyword_Name.
18923
18924         * sinfo-cn.adb: Fix typo in comment.
18925
18926         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
18927         Unit.
18928
18929         * sinput.ads (Source_File_Record): New component Unit, used to capture
18930         the unit identifier (if any) associated to a source file.
18931
18932         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
18933         Unit in Source_File_Record.
18934
18935         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
18936         in profile of Initialize_Scanner.
18937
18938         * scans.adb (Initialize_Ada_Keywords): New procedure
18939
18940         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
18941         Ada keywords in the Namet table, without the need to call
18942         Initialize_Scanner.
18943
18944         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
18945         (Is_Keyword_Name): New function
18946
18947         * snames.ads: Add subtype Configuration_Pragma_Names
18948         Add pragma Ada_2005 (synonym for Ada_05)
18949         (Is_Keyword_Name): New function
18950
18951         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
18952
18953 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18954
18955         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
18956         index.
18957
18958         * a-stwima.adb (To_Set): Add extra check when N = 0.
18959
18960         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
18961
18962 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18963
18964         * s-parame-mingw.adb, s-parame-linux.adb,
18965         s-parame-solaris.adb: Removed, replaced by s-parame.adb
18966
18967         * s-parame-vxworks.ads: Fix typo.
18968
18969         * s-parame-vxworks.adb: New file.
18970
18971         * s-parame.adb: Version now used by all native platforms.
18972         (Default_Stack_Size): Use 2 megs for default stack size and use
18973         __gl_default_stack_size when available.
18974         (Minimum_Stack_Size): Use 12K.
18975
18976         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
18977         (Create_Task): Refine implementation taking advantage of the XP stack
18978         size support. On XP, we now create the thread using the flag
18979         STACK_SIZE_PARAM_IS_A_RESERVATION.
18980
18981         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
18982
18983         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
18984         XP and 0 on older Windows versions.
18985
18986         * interfac-vms.ads: Removed, no longer used.
18987
18988 2006-02-13  Matthew Heaney  <heaney@adacore.com>
18989
18990         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
18991         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
18992         a-cohase.adb: All explicit raise statements now include an exception
18993         message.
18994
18995         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
18996         (Update_Element_Preserving_Key): renamed op to just Update_Element.
18997         Explicit raise statements now include an exception message
18998
18999         * a-cihase.ads, a-cohase.ads: Removed comment.
19000
19001         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19002         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19003         a-szbzha.adb, a-szfzha.ads: New files.
19004
19005 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19006
19007         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19008         quicksort.
19009
19010 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19011
19012         * lang.opt: Wvariadic-macros: New option.
19013         Wold-style-definition: Likewise.
19014         Wmissing-format-attribute: Likewise.
19015
19016         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19017         -Wold-style-definition and -Wmissing-format-attribute.
19018
19019 2006-02-13  Robert Dewar  <dewar@adacore.com>
19020
19021         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19022
19023         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19024
19025 2006-02-13  Nicolas Roche  <roche@adacore.com>
19026
19027         * a-envvar.adb, a-envvar.ads: New files.
19028
19029 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19030
19031         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19032
19033         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19034
19035 2006-02-13  Pat Rogers  <rogers@adacore.com>
19036
19037         * a-rttiev.adb, a-rttiev.ads: New files.
19038
19039 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19040
19041         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19042         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
19043
19044         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19045
19046 2006-02-13  Robert Dewar  <dewar@adacore.com>
19047
19048         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
19049         sem_case.adb: Minor code reorganization (not Present should be No)
19050
19051 2006-02-13  Geert Bosch  <bosch@adacore.com>
19052             Gary Dismukes  <dismukes@adacore.com>
19053
19054         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19055         0, since the lower bound of the actual string may be greater than one.
19056
19057         PR ada/20753
19058         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19059         layout is requested.
19060
19061 2006-02-13  Vincent Celier  <celier@adacore.com>
19062
19063         * back_end.adb (Scan_Compiler_Arguments): Check if
19064         Search_Directory_Present is True and, if it is, add the argument in
19065         the source search directory path.
19066
19067         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19068         Search_Directory_Present to True.
19069
19070 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
19071
19072         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19073         volatile, to tell the compiler to preserve this variable at any level
19074         of optimization.
19075         (Gen_Versions_Ada): Temporarily work around codegen bug.
19076
19077 2006-02-13  Vincent Celier  <celier@adacore.com>
19078
19079         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19080         gcc to link with option -shared-libgcc.
19081         (Gnatlink): Remove duplicate switches -shared-libgcc
19082
19083 2006-02-13  Robert Dewar  <dewar@adacore.com>
19084
19085         * gnatvsn.ads (Current_Year): New constant, used to easily update
19086         copyright on all GNAT tools.
19087
19088         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19089         copyright notice.
19090
19091 2006-02-13  Robert Dewar  <dewar@adacore.com>
19092
19093         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
19094         after hyphen (small aesthetic change useful for a range of numbers
19095         using ^-^.
19096         Suppress range checks for a couple of assignments which otherwise
19097         cause validity checks with validity checking turned on.
19098
19099         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
19100         Improvement in error message for object.
19101         (Rep_Item_Too_Late): Remove '!' in warning message.
19102
19103 2006-02-13  Robert Dewar  <dewar@adacore.com>
19104             Eric Botcazou  <ebotcazou@adacore.com>
19105
19106         * err_vars.ads: Suppress range checks for a couple of assignments
19107         which otherwise cause validity checks with validity checking turned on.
19108         Update comments.
19109
19110         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
19111         Make message unconditional if it is a warning.
19112         (Error_Msg_NEL): Always output warning messages.
19113         Suppress range checks for a couple of assignments which otherwise
19114         cause validity checks with validity checking turned on.
19115
19116         * errout.ads (Message Insertion Characters): Document that '!' is
19117         implied by '?' in error messages.
19118
19119         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
19120         (Gnat1drv): Use a goto to end of main subprogram instead of
19121         Exit_Program (E_Success) so that finalization can occur normally.
19122
19123 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19124
19125         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
19126         wrapped around.
19127
19128 2006-02-13  Vincent Celier  <celier@adacore.com>
19129
19130         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
19131         Unchecked_Conversion functions.
19132         (Modification_Time): Use direct conversion of OS_Time to Calendar time
19133         when OpenVMS returns False.
19134
19135         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
19136         a-dirval.adb (OpenVMS): New Boolean function
19137
19138 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19139             Thomas Quinot  <quinot@adacore.com>
19140
19141         * checks.adb (Build_Discriminant_Checks): If the expression being
19142         checks is an aggregate retrieve the values of its discriminants to
19143         generate the check, rather than creating a temporary and a reference
19144         to it.
19145         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
19146         (Install_Null_Excluding_Check): Ditto
19147         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
19148         not for the renamed object, so that the actual itype is attached in the
19149         proper context.
19150
19151 2006-02-13  Robert Dewar  <dewar@adacore.com>
19152             Vincent Celier  <celier@adacore.com>
19153
19154         * debug.adb: Eliminate numeric switches for binder/gnatmake
19155
19156         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
19157         switches for the compiler.
19158         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
19159         (Scan_Make_Switches): When failing with an illegal switch, output an
19160         error message with the full switch.
19161         Eliminate numeric switches for binder/gnatmake
19162
19163         * switch.ads, switch.adb (Bad_Switch): New procedure
19164
19165         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
19166         Remove 0-9 as debug flag character possibilities
19167         -d is now controlling the primary stack size when its value is a
19168         positive. Also add checks against invalid values, and support for kb,
19169         mb. Ditto for -D switch.
19170
19171 2006-02-13  Robert Dewar  <dewar@adacore.com>
19172             Serguei Rybin  <rybin@adacore.com>
19173
19174         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
19175         save/restore routines.
19176         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19177         were not always properly handled previously.
19178         Since we are changing the tree format anyway, also get rid of the
19179         junk obsolete Immediate_Errors flag.
19180         (Tree_Read): Change the way of reading Tree_Version_String - now we
19181         read the version string from the tree even if its length is not the
19182         same as the length of the version string computed from Gnatvsn.
19183         (Search_Directory_Present): New Boolean flag for the compiler.
19184         Define Tree_Version_String as a dynamic string.
19185         (Default_Stack_Size): new variable, used to handle switch -d.
19186
19187         * par-prag.adb: 
19188         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
19189         only for main unit.
19190         Add pragma Ada_2005 (synonym for Ada_05)
19191         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19192         were not always properly handled previously.
19193
19194         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
19195         explicit Ada_95 to Ada_2005.
19196
19197 2006-02-13  Javier Miranda  <miranda@adacore.com>
19198             Robert Dewar  <dewar@adacore.com>
19199             Ed Schonberg  <schonberg@adacore.com>
19200
19201         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
19202         against errors in the source program: a private types for which the
19203         corresponding full type declaration is missing and pragma CPP_Virtual
19204         is used.
19205         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
19206         (Is_Known_Null): New flag
19207         (Has_Pragma_Pure): New flag
19208         (No_Return): Present in all entities, set only for procedures
19209         (Is_Limited_Type): A type whose ancestor is an interface is limited if
19210         explicitly declared limited.
19211         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
19212         entities. Only used for component marked Is_Tag. If present it stores
19213         the Offset_To_Top function used to provide this value in tagged types
19214         whose ancestor has discriminants.
19215
19216         * exp_ch2.adb: Update status of new Is_Known_Null flag
19217
19218         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
19219
19220         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
19221         the categorization sense if Is_Pure was set by pragma Pure_Function.
19222
19223 2006-02-13  Quentin Ochem  <ochem@adacore.com>
19224             Olivier Hainque  <hainque@adacore.com>
19225
19226         * bindusg.adb: Updated documentation for -d and -D switches.
19227
19228         * raise.h (__gnat_set_globals): added new parameter for
19229         Default_Stack_Size.
19230
19231         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
19232         (__gnat_handle_vms_condition): Adjust context before raise.
19233         (__gnat_install_handler): Restore the global vector setup for GCC
19234         versions before 3.4, as the frame based circtuitry is not available
19235         in this case.
19236         (__gnat_set_globals): added a parameter default_stack_size
19237         (__gl_default_stack_size): new variable.
19238
19239 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19240
19241         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
19242         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
19243         does not exist in the Ada RM.
19244         (Compatible_Int_Bounds): Determine whether two integer range bounds
19245         are of equal length and have the same start and end values.
19246         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
19247         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
19248         aggregate when it is part of an object declaration.
19249         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
19250         constrains discriminants of its parent, add explicitly the discriminant
19251         constraints of the ancestor by retrieving them from the
19252         stored_constraint of the parent.
19253
19254 2006-02-13  Robert Dewar  <dewar@adacore.com>
19255
19256         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
19257         attribute Mechanism_Code is applied to renamed subprogram, modify
19258         prefix to point to base subprogram.
19259         Max/Min attributes now violate Restriction No_Implicit_Conditionals
19260
19261         * sinfo.ads: Document that Mechanism_Code cannot be applied to
19262         renamed subprograms so that the front-end must replace the prefix
19263         appropriately.
19264
19265 2006-02-13  Javier Miranda  <miranda@adacore.com>
19266             Gary Dismukes  <dismukes@adacore.com>
19267
19268         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
19269         availability of RE_Interface_Tag.
19270         (Build_Initialization_Call): Fix wrong access to the discriminant value.
19271         (Freeze_Record_Type): Do not generate the tables associated with
19272         timed and conditional dispatching calls through synchronized
19273         interfaces if compiling under No_Dispatching_Calls restriction.
19274         When compiling for Ada 2005, for a nonabstract
19275         type with a null extension, call Make_Controlling_Function_Wrappers
19276         and insert the wrapper function declarations and bodies (the latter
19277         being appended as freeze actions).
19278         (Predefined_Primitive_Bodies): Do not generate the bodies of the
19279         predefined primitives associated with timed and conditional
19280         dispatching calls through synchronized interfaces if we are
19281         compiling under No_Dispatching_Calls.
19282         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
19283         service is available before generating a call.
19284         (Make_Controlling_Function_Wrappers): New procedure.
19285         (Expand_N_Full_Type_Declaration): Create a class-wide master for
19286         access-to-limited-interfaces because they can be used to reference
19287         tasks that implement such limited interface.
19288         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
19289         procedure spec and body of the Offset_To_Top function that is generated
19290         when the parent of a type with discriminants has secondary dispatch
19291         tables.
19292         (Init_Secondary_Tags): Handle the case in which the parent of the type
19293         containing secondary dispatch tables has discriminants to generate the
19294         correct arguments to call Set_Offset_To_Top.
19295         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
19296
19297         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
19298         Add Wide_[Wide_]Expanded_Name.
19299         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
19300         the same functionality of Get_Prim_Op_Address but applied to predefined
19301         primitive operations because the pointers to the predefined primitives
19302         are now saved in a separate table.
19303         (Parent_Size): Modified to get access to the separate table of primitive
19304         operations or the parent type.
19305         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
19306         functionality of Set_Prim_Op_Address but applied to predefined primitive
19307         operations.
19308         (Set_Signature): New subprogram used to store the signature of a DT.
19309         (Displace): If the Offset_To_Top value is not static then call the
19310         function generated by the expander to get such value; otherwise use
19311         the value stored in the table of interfaces.
19312         (Offset_To_Top): The type of the actual has been changed to Address to
19313         give the correct support to tagged types with discriminants. In this
19314         case this value is stored just immediately after the tag field.
19315         (Set_Offset_To_Top): Two new formals have been added to indicate if the
19316         offset_to_top value is static and hence pass this value to the run-time
19317         to store it in the table of interfaces, or else if this value is dynamic
19318         and then pass to the run-time the address of a function that is
19319         generated by the expander to provide this value for each object of the
19320         type.
19321
19322         * rtsfind.ads (Default_Prin_Op_Count): Removed.
19323         (Default_Prim_Op_Count): New entity
19324         (Get_Predefined_Prim_Op_Address): New entity
19325         (Set_Predefined_Prim_Op_Address): New entity
19326         (RE_Set_Signature): New entity
19327
19328 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19329             Ed Schonberg  <schonberg@adacore.com>
19330
19331         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
19332         Make_Adjust_Call done for a newly-allocated object.
19333
19334         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
19335         in a subprogram are wrapped in a cleanup block, indicate that the
19336         subprogram contains an inner block with an exception handler.
19337         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
19338         Adjust call is for a newly-allocated object. In that case we must not
19339         assume that the finalization list chain pointers are correct (since they
19340         come from a bit-for-bit copy of the original object's pointers) so if
19341         the attach level would otherwise be zero (no change), we set it to 4
19342         instead to cause the pointers to be reset to null.
19343
19344         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
19345         reset chain pointers to null.
19346
19347 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19348
19349         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
19350         string, and the context requires a loop for the assignment (e.g.
19351         because the left-hand side is packed), generate a unique name for the
19352         temporary that holds the string, to prevent spurious name clashes.
19353
19354 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19355             Javier Miranda  <miranda@adacore.com>
19356             Robert Dewar  <dewar@adacore.com>
19357             Gary Dismukes  <dismukes@adacore.com>
19358
19359         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
19360         return unconstrained arrays.
19361         Update comments.
19362         (Expand_Call):  An indirect call through an access parameter of a
19363         protected operation is not a protected call.
19364         Add circuit to raise CE in Ada 2005 mode following call
19365         to Raise_Exception.
19366         (Register_DT_Entry): Do nothing if
19367         the run-time does not give support to abstract interfaces.
19368         (Freeze_Subprogram): In case of dispatching operations, do not generate
19369         code to register the operation in the dispatch table if the source
19370         is compiled with No_Dispatching_Calls.
19371         (Register_Predefined_DT_Entry): Generate code that calls the new
19372         run-time subprogram Set_Predefined_Prim_Op_Address instead of
19373         Set_Prim_Op_Address.
19374
19375         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
19376         on array assignments if the right-hand side is a function call that has
19377         been inlined. Check is performed on the assignment in the block.
19378         (Process_Bounds): If bounds and range are overloaded, apply preference
19379         rule for root operations to disambiguate, and diagnose true ambiguity.
19380         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
19381         a tag-indeterminate right-hand side even when Expander_Active is True.
19382         Needed to ensure that dispatching calls to T'Input are allowed and
19383         get the tag of the target class-wide object.
19384
19385         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
19386         an inherited primitive operation that already overrides several
19387         abstract interface primitives. For transitivity, the new entity must
19388         also override all the abstract interface primitives covered by the
19389         inherited overriden primitive.
19390         Emit warning if new entity differs from homograph in same scope only in
19391         that one has an access parameter and the other one has a parameter of
19392         a general access type with the same designated type, at the same
19393         position in the signature.
19394         (Make_Inequality_Operator): Use source locations of parameters and
19395         subtype marks from corresponding equality operator when creating the
19396         tree structure for the implicit declaration of "/=". This does not
19397         change anything in behaviour except that the decoration of the
19398         components of the subtree created for "/=" allows ASIS to get the
19399         string images of the corresponding identifiers.
19400         (Analyze_Return_Statement): Remove '!' in warning message.
19401         (Check_Statement_Sequence): Likewise.
19402         (Analyze_Subprogram_Body): For an access parameter whose designated type
19403         is an incomplete type imported through a limited_with clause, use the
19404         type of the corresponding formal in the body.
19405         (Check_Returns): Implicit return in No_Return procedure now raises
19406         Program_Error with a compile time warning, instead of beging illegal.
19407         (Has_Single_Return):  Function returning unconstrained type cannot be
19408         inlined if expression in unique return statement is not an identifier.
19409         (Build_Body_To_Inline): It is possible to inline a function call that
19410         returns an unconstrained type if all return statements in the function
19411         return the same local variable. Subsidiary procedure Has_Single_Return
19412         verifies that the body conforms to this restriction.
19413
19414         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
19415         same type, and  one of them is of an anonymous access type, convert
19416         the other operand to it, so that this is a valid binary operation for
19417         gigi.
19418         (Resolve_Type_Conversion): Handle subtypes of protected types and
19419         task types when accessing to the corresponding record type.
19420         (Resolve_Allocator): Add '\' in 2-line warning message.
19421         Remove '!' in warning message.
19422         (Resolve_Call): Add '\' in 2-line warning message.
19423         (Valid_Conversion): Likewise.
19424         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
19425         resulting type may be an access type with an implicit dereference.
19426         Obtain the proper component from the designated type.
19427         (Make_Call_Into_Operator): Handle properly a call to predefined equality
19428         given by an expanded name with prefix Standard, when the operands are
19429         of an anonymous access type.
19430         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
19431         Explicit_Dereference and Resolve_Selected_Component, to verify that the
19432         prefix of the expression is not of an incomplete type. Allows full
19433         diagnoses of all semantic errors.
19434         (Resolve_Actuals): If the actual is an allocator whose directly
19435         designated type is a class-wide interface we build an anonymous
19436         access type to use it as the type of the allocator. Later, when
19437         the subprogram call is expanded, if the interface has a secondary
19438         dispatch table the expander will add a type conversion to force
19439         the displacement of the pointer.
19440         (Resolve_Call): If a function that returns an unconstrained type is
19441         marked Inlined_Always and inlined, the call will be inlined and does
19442         not require the creation of a transient scope.
19443         (Check_Direct_Boolean_Op): Removed
19444         (Resolve_Comparison_Op): Remove call to above
19445         (Resolve_Equality_Op): Remove call to above
19446         (Resolve_Logical_Op): Inline above, since this is only call.
19447         (Valid_Conversion): Handle properly conversions between arrays of
19448         convertible anonymous access types.
19449
19450         PR ada/25885
19451         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
19452         the literal in an unchecked conversion, because GCC 4.x needs a static
19453         value for a string bound.
19454
19455 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19456             Hristian Kirtchev  <kirtchev@adacore.com>
19457
19458         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
19459         components of the corresponding record, take into account component
19460         definitions that are access definitions.
19461         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
19462         procedure is not considered a dispatching call and will be expanded
19463         properly.
19464
19465 2006-02-13  Javier Miranda  <miranda@adacore.com>
19466
19467         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
19468         controlling argument of the dispatching call is an abstract interface
19469         class-wide type then we use it directly.
19470         Check No_Dispatching_Calls restriction.
19471         (Default_Prim_Op_Position): Remove the code that looks for the last
19472         entity in the list of aliased subprograms. This code was wrong in
19473         case of renamings.
19474         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
19475         when the source is compiled with the No_Dispatching_Calls restriction.
19476         (Init_Predefined_Interface_Primitives): No need to inherit primitives
19477         if we are compiling with restriction No_Dispatching_Calls.
19478         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
19479         subprograms if we are compiling under No_Dispatching_Calls restriction.
19480         (Make_DT): Generate a dispatch table with a single dummy entry if
19481         we are compiling with the No_Dispatching_Calls restriction. In
19482         addition, in this case we don't generate code that calls to the
19483         following run-time subprograms: Set_Type_Kind, Inherit_DT.
19484         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
19485         of this subprogram if compiling with the No_Dispatching_Calls
19486         restriction.
19487         (Expand_Type_Conversion): Instead of using the actual parameter,
19488         the argument passed as parameter to the conversion function was
19489         erroneously referenced by the expander.
19490         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
19491         Set_Predefined_Primitive_Op_Address and Set_Signature.
19492         (Expand_Dispatching_Call): Generate call to
19493         Get_Predefined_Prim_Op_Address for predefined primitives.
19494         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
19495         predefined primitives.
19496         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
19497         primitives we reserve one dummy entry to ensure that the tag does not
19498         point to some memory that is associated with some other object. In
19499         addition, remove all the old code that generated the assignments
19500         associated with the signature of the dispatch table and replace them
19501         by a call to the new subprogram Set_Signature.
19502         (Set_All_DT_Position): Change the algorithm because now we have a
19503         separate dispatch table associated with predefined primitive operations.
19504         (Expand_Interface_Conversion): In case of non-static offset_to_top
19505         add explicit dereference to get access to the object after the call
19506         to displace the pointer to the object.
19507         (Expand_Interface_Thunk): Modify the generation of the actual used
19508         in the calls to the run-time function Offset_To_Top to fulfil its
19509         new interface.
19510         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
19511
19512 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19513
19514         * exp_dist.adb (Copy_Specification): For access parameters, copy
19515         Null_Exclusion flag, which will have been set for stream subprograms
19516         in Ada2005 mode.
19517
19518 2006-02-13  Pascal Obry  <obry@adacore.com>
19519
19520         * expect.c (__gnat_expect_portable_execvp): New implementation. The
19521         previous implementation was using the C runtime spawnve routine but
19522         the corresponding wait was using directly the Win32 API. This was
19523         causing some times a lock when waiting for an event using
19524         WaitForSingleObject in __gnat_waitpid. This new implementation uses
19525         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
19526         API fixes this problem.
19527
19528 2006-02-13  Robert Dewar  <dewar@adacore.com>
19529
19530         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
19531         call.
19532
19533 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19534
19535         * exp_pakd.ads: Fix typos in comments.
19536
19537         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
19538         array reference that is an explicit dereference, mark the converted
19539         (packed) array reference as analyzed to prevent a forthcoming
19540         reanalysis from resetting its type to the original (non-packed) array
19541         type.
19542
19543 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19544             Javier Miranda  <miranda@adacore.com>
19545             Eric Botcazou  <ebotcazou@adacore.com>
19546
19547         * exp_util.ads, exp_util.adb (Find_Prim_Op,
19548         Is_Predefined_Primitive_Operation): When
19549         searching for the predefined equality operator, verify that operands
19550         have the same type.
19551         (Is_Predefined_Dispatching_Operation): Remove the code that looks
19552         for the last entity in the list of aliased subprograms. This code
19553         was wrong in case of renamings.
19554         (Set_Renamed_Subprogram): New procedure
19555         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
19556         Exp_Type constant computed when entering this subprogram.
19557         (Known_Null): New function
19558         (OK_To_Do_Constant_Replacement): New function
19559         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
19560         (Side_Effect_Free): An attribute reference 'Input is not free of
19561         side effect, unlike other attributes that are functions. (from code
19562         reading).
19563         (Remove_Side_Effects): Expressions that involve packed arrays or records
19564         are copied at the point of reference, and therefore must be marked as
19565         renamings of objects.
19566         (Is_Predefined_Dispatching_Operation): Return false if the operation is
19567         not a dispatching operation.
19568
19569         PR ada/18819
19570         (Remove_Side_Effects): Lift enclosing type conversion nodes for
19571         elementary types in all cases.
19572
19573 2006-02-13  Javier Miranda  <miranda@adacore.com>
19574
19575         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
19576         task types when accessing to the corresponding record type.
19577         Remove '!' in warning message.
19578
19579 2006-02-13  Olivier Hainque  <hainque@adacore.com>
19580
19581         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
19582         to avoid useless and space inefficient overalignments on targets where
19583         Max_Alignment is larger than 16.
19584
19585 2006-02-13  Pascal Obry  <obry@adacore.com>
19586
19587         * g-catiio.adb (Sec_Number): New type used to compute the number of
19588         seconds since 1-1-1970.
19589         (Image) [Natural]: The parameter was an Integer, as we can't deal with
19590         negative numbers (years, months...) it is better to have a Natural here.
19591         Code clean-up.
19592         (Image) [Number]: Change parameter from Long_Integer to Number.
19593         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
19594         overflow for dates past year 2038.
19595
19596 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19597
19598         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
19599         Constraint_Error.
19600
19601 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19602
19603         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
19604         native platforms.
19605         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
19606         finalization can occur normally.
19607
19608 2006-02-13  Vincent Celier  <celier@adacore.com>
19609
19610         * gnatcmd.adb (Rules_Switches): New table
19611         (Add_To_Rules_Switches): New procedure
19612         (GNATCmd): For command CHECK, put all options following "-rules" in the
19613         Rules_Switches table. Append these -rules switches after the -cargs
19614         switches.
19615
19616 2006-02-13  Robert Dewar  <dewar@adacore.com>
19617
19618         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
19619         These two cases were generating incorrect output, and if this unit
19620         was built with checks on, generated a discriminant mismatch constraint
19621         error.
19622
19623 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19624             Robert Dewar  <dewar@adacore.com>
19625
19626         * lib-xref.adb (Get_Type_Reference): For a private type whose full
19627         view is an array type, indicate the component type as well, for
19628         navigation purposes.
19629         (Generate_Reference): Don't consider array ref on LHS to be a case
19630         of violating pragma Unreferenced.
19631         Do not give Ada 2005 warning except on real reference.
19632
19633 2006-02-13  Vincent Celier  <celier@adacore.com>
19634
19635         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
19636         main source, add switch -mdebug-main=_ada_ so that the executable can
19637         be debugged by the standard VMS debugger.
19638         (Gnatmake): Set No_Main_Subprogram to True when there is no main
19639         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
19640         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
19641         of the last source, as the binding and linking phases are never
19642         performed.
19643         Set all executable obsolete when rebuilding a library.
19644
19645         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
19646         options.
19647
19648 2006-02-13  Javier Miranda  <miranda@adacore.com>
19649
19650         PR ada/23973
19651         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
19652         code to improve the error message reported when the program has
19653         declarations of abstract interface types and it is not compiled with
19654         the -gnat05 switch.
19655         (P_Access_Definition): Reorganize the code to improve the error
19656         message reported when the new Ada 2005 syntax for anonymous
19657         access types is used and the program is not compiled with the
19658         -gnat05 switch.
19659
19660 2006-02-13  Robert Dewar  <dewar@adacore.com>
19661
19662         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
19663         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
19664         (MODE_IN)
19665
19666 2006-02-13  Javier Miranda  <miranda@adacore.com>
19667
19668         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
19669         against source containing syntax errors.
19670
19671 2006-02-13  Vincent Celier  <celier@adacore.com>
19672
19673         * prj.adb (Reset): Initialize the first element of table Namings with
19674         the standard naming data.
19675
19676 2006-02-13  Vincent Celier  <celier@adacore.com>
19677
19678         * prj.ads (Error_Warning): New enumeration type
19679
19680         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
19681         unknown, use the location of the project to report the error.
19682         (When_No_Sources): New global variable
19683         (Report_No_Ada_Sources): New procedure
19684         (Check): New parameter When_No_Sources. Set value of global variable
19685         When_No_Sources,
19686         (Find_Sources): Call Report_No_Ada_Sources when appropriate
19687         (Get_Sources_From_File): Ditto
19688         (Warn_If_Not_Sources): Better warning messages indicating the unit name
19689         and the file name.
19690
19691         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
19692         Call Prj.Proc.Process with parameter When_No_Sources.
19693
19694         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
19695         Call Recursive_Check with parameter When_No_Sources.
19696         (Recursive_Check): New parameter When_No_Sources. Call itself and
19697         Prj.Nmsc.Check with parameter When_No_Sources.
19698         (Process): New parameter When_No_Sources. Call Check with parameter
19699         When_No_Sources.
19700         (Copy_Package_Declarations): New procedure to copy renamed parameters
19701         and setting the location of the declared attributes to the location
19702         of the renamed package.
19703         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
19704         packages.
19705
19706 2006-02-13  Vincent Celier  <celier@adacore.com>
19707
19708         * prj-makr.adb (Make): Preserve the comments from the original project
19709         file.
19710         When removing nodes (attributes Source_Dirs, Source_Files,
19711         Source_List_File and package Naming), save the comments and attach the
19712         saved comments to the newly created nodes.
19713         Do not add a with clause for the naming package if one already exists.
19714
19715 2006-02-13  Javier Miranda  <miranda@adacore.com>
19716             Gary Dismukes  <dismukes@adacore.com>
19717             Robert Dewar  <dewar@adacore.com>
19718
19719         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
19720
19721         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
19722         aliased entities to look for the overriden abstract interface
19723         subprogram.
19724         (Is_Interface_Subprogram): Complete documentation.
19725         (Check_Dispatching_Operation): Do not generate code to register the
19726         operation in the dispatch table if the source is compiled with
19727         restriction No_Dispatching_Calls.
19728         (Override_Dispatching_Operation): Check for illegal attempt to override
19729         No_Return procedure with procedure that is not No_Return
19730         (Check_Dispatching_Call): Suppress the check for an abstract operation
19731         when the original node of an actual is a tag-indeterminate attribute
19732         call, since the attribute, which must be 'Input, can never be abstract.
19733         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
19734         call to the Input attribute (even when rewritten).
19735         (Propagate_Tag): Augment comment to indicate the possibility of a call
19736         to an Input attribute.
19737
19738         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
19739         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
19740
19741         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
19742         No_Wide_Characters is no longer partition-wide
19743         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
19744         rather than GNAT
19745
19746 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19747
19748         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
19749
19750 2006-02-13  Javier Miranda  <miranda@adacore.com>
19751
19752         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
19753         handles default-initialized components to keep separate the management
19754         of this feature but also avoid the unrequired resolution and
19755         expansion of components that do not have partially initialized
19756         values.
19757         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
19758         (Check_Bounds): Likewise.
19759         (Check_Length): Likewise.
19760
19761 2006-02-13  Javier Miranda  <miranda@adacore.com>
19762             Ed Schonberg  <schonberg@adacore.com>
19763
19764         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
19765         abstract interface type call analyze_and_resolve to expand the type
19766         conversion into the corresponding displacement of the
19767         reference to the base of the object.
19768         (Eval_Attribute, case Width): For systems where IEEE extended precision
19769         is supported, the maximum exponent occupies 4 decimal digits.
19770         (Accessibility_Message): Add '\' in 2-line warning message.
19771         (Resolve_Attribute): Likewise.
19772         (case Attribute_Access): Significantly revise checks
19773         for illegal access-to-subprogram Access attributes to properly enforce
19774         the rules of 3.10.2(32/2).
19775         Diagnose use of current instance with an illegal attribute.
19776
19777         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
19778         to a Node_Id.
19779         (Enclosing_Generic_Unit): New function to return a node's innermost
19780         enclosing generic declaration node.
19781         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
19782         (Type_Access_Level): The accessibility level of anonymous acccess types
19783         associated with discriminants is that of the current instance of the
19784         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
19785         (Compile_Time_Constraint_Error): Handle case of conditional expression.
19786         (Kill_Current_Values_For_Entity): New function
19787         (Enter_Name): Change formal type to Entity_Id
19788
19789 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19790             Ed Schonberg  <schonberg@adacore.com>
19791             Gary Dismukes  <dismukes@adacore.com>
19792
19793         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
19794         Analyze_Compilation_Unit.
19795         Detect and warn on redundant with clauses detected in a package spec
19796         and/or body when -gnatwr is used.
19797         (Analyze_Context): Analyze config pragmas before other items
19798         (Install_Context_Items): Don't analyze config pragmas here
19799         (Install_Limited_Withed_Unit): Set limited entity of package in
19800         with_clause so that cross-reference information or warning messages on
19801         unused packages can be properly generated
19802         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
19803         has Error_Posted set. Prevent infinite loops in illegal programs.
19804         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
19805         to the point of the error test requiring the current unit to be private.
19806         This ensures that private with clauses are not exempted from the basic
19807         checking for being a descendant of the same library unit parent as a
19808         withed private descendant unit.
19809         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
19810         handle private with clauses properly, as well as to account for cases
19811         where the withed unit is a public descendant of a private ancestor
19812         (in which case the current unit must be a descendant of the private
19813         ancestor's parent). The spec comments were updated accordingly. Also,
19814         the old error message in this subprogram was replaced with error
19815         messages that mirror the errors tested and reported by
19816         Check_Private_Child_Unit.
19817         Parameter and variable names improved for readability.
19818         (Install_Limited_Context_Clauses): Remove test for a withed unit being
19819         private as the precondition for calling
19820         Check_Private_Limited_Withed_Unit since that subprogram has been
19821         revised to test public units as well as private units.
19822
19823 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19824             Robert Dewar  <dewar@adacore.com>
19825             Ed Schonberg  <schonberg@adacore.com>
19826             Javier Miranda  <miranda@adacore.com>
19827
19828         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
19829         that Scope_Stack.First = 1.
19830         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19831         were not always properly handled previously.
19832         (Formal_Entity): Complete rewrite, to handle properly some complex case
19833         with multiple levels of parametrization by formal packages.
19834         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
19835         to the corresponding derived type declaration for proper semantics.
19836
19837         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
19838         (Check_Component): Enforce restriction on components of
19839         unchecked_unions: a component in a variant cannot contain tasks or
19840         controlled types.
19841         (Unchecked_Union): Allow nested variants and multiple discriminants, to
19842         conform to AI-216.
19843         Add pragma Ada_2005 (synonym for Ada_05)
19844         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19845         were not always properly handled previously.
19846         Document that pragma Propagate_Exceptions has no effect
19847         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
19848         (Set_Convention_From_Pragma): Check that if a convention is
19849         specified for a dispatching operation, then it must be
19850         consistent with the existing convention for the operation.
19851         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
19852         longer required to specify an vtable-ptr component in the record. For
19853         compatibility reasons we leave the support for the previous definition.
19854         (Analyze_Pragma, case No_Return): Allow multiple arguments
19855
19856         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
19857         non-overrideen inherited operation with a controlling result as
19858         illegal only its implicit declaration comes from the derived type
19859         declaration of its result's type.
19860         (Check_Possible_Deferred_Completion): Relocate the object definition
19861         node of the subtype indication of a deferred constant completion rather
19862         than directly analyzing it. The analysis of the generated subtype will
19863         correctly decorate the GNAT tree.
19864         (Record_Type_Declaration): Check whether this is a declaration for a
19865         limited derived record before analyzing components.
19866         (Analyze_Component_Declaration): Diagnose record types  not explicitly
19867         declared limited when a component has a limited type.
19868         (Build_Derived_Record_Type): Code reorganization to check if some of
19869         the inherited subprograms of a tagged type cover interface primitives.
19870         This check was missing in case of a full-type associated with a private
19871         type declaration.
19872         (Constant_Redeclaration): Check that the subtypes of the partial and the
19873         full view of a constrained deferred constant statically match.
19874         (Mentions_T): A reference to the current type in an anonymous access
19875         component declaration  must be an entity name.
19876         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
19877         class_wide type to refer to full type, not to the incomplete one.
19878         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
19879         available. Required to give support to the certified run-time.
19880         (Analyze_Component_Declaration): In case of anonymous access components
19881         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
19882         (Process_Discriminants): For an access discriminant, use the
19883         discriminant specification as the associated_node_for_itype, to
19884         simplify accessibility checks.
19885
19886 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19887             Javier Miranda  <miranda@adacore.com>
19888
19889         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
19890         abstract interpretations on an operator, remove interpretations that
19891         yield Address or a type derived from it, if one of the operands is an
19892         integer literal.
19893         (Try_Object_Operation.Try_Primitive_Operation,
19894         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
19895         location when creating the new reference to a primitive or class-wide
19896         operation as a part of rewriting a subprogram call.
19897         (Try_Primitive_Operations): If context requires a function, collect all
19898         interpretations after the first match, because there may be primitive
19899         operations of the same type with the same profile and different return
19900         types. From code reading.
19901         (Try_Primitive_Operation): Use the node kind to choose the proper
19902         operation when a function and a procedure have the same parameter
19903         profile.
19904         (Complete_Object_Operation): If formal is an access parameter and prefix
19905         is an object, rewrite as an Access reference, to match signature of
19906         primitive operation.
19907         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
19908         by an expanded name with prefix Standard, when the operands are of an
19909         anonymous access type.
19910         (Remove_Abstract_Operations): If the operation is abstract because it is
19911         inherited by a user-defined type derived from Address, remove it as
19912         well from the set of candidate interpretations of an overloaded node.
19913         (Analyze_Membership_Op): Membership test not applicable to cpp-class
19914         types.
19915
19916 2006-02-13  Bob Duff  <duff@adacore.com>
19917
19918         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
19919         redundant use clauses.
19920         In particular, if the scope of two use clauses overlaps, but one is not
19921         entirely included in the other, we should not warn.  This can happen
19922         with nested packages.
19923         (Analyze_Subprogram_Renaming): Protect the compiler against previously
19924         reported errors. The bug was reported when the compiler was built
19925         with assertions enabled.
19926         (Find_Type): If the node is a 'Class reference and the prefix is a
19927         synchronized type without a corresponding record, return the type
19928         itself.
19929
19930 2006-02-13  Javier Miranda  <miranda@adacore.com>
19931
19932         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
19933         if this is the full-declaration associated with a private declaration
19934         that implement interfaces, then the private type declaration must be
19935         limited.
19936         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
19937         as aliased. The use of the 'access attribute is not available for such
19938         object (for this purpose the object should be explicitly marked as
19939         aliased, but being an anonymous type this is not possible).
19940
19941 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19942             Robert Dewar  <dewar@adacore.com>
19943
19944         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
19945         compilation unit is an elaboration scope.
19946         (Add_Task_Proc): Add '\' in 2-line warning message.
19947         (Activate_All_Desirable): Deal with case of unit with'ed by parent
19948
19949 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19950             Javier Miranda  <miranda@adacore.com>
19951
19952         * sem_type.adb (Write_Overloads): Improve display of candidate
19953         interpretations.
19954         (Add_One_Interp): Do not add to the list of interpretations aliased
19955         entities corresponding with an abstract interface type that is an
19956         immediate ancestor of a tagged type; otherwise we have a dummy
19957         conflict between this entity and the aliased entity.
19958         (Disambiguate): The predefined equality on universal_access is not
19959         usable if there is a user-defined equality with the proper signature,
19960         declared in the same declarative part as the designated type.
19961         (Find_Unique_Type): The universal_access equality operator defined under
19962         AI-230 does not cover pool specific access types.
19963         (Covers): If one of the types is a generic actual subtype, check whether
19964         it matches the partial view of the other type.
19965
19966 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19967
19968         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
19969         line. This is necessary to allow In_Extended_Main_Unit to provide
19970         correct results for itypes while writing out expanded source.
19971         (Close_File): No need to update the source_index_table here since it's
19972         now done for each line.
19973
19974 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19975             Robert Dewar  <dewar@adacore.com>
19976
19977         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
19978         preserve the source unit where the itype is declared, and prevent a
19979         backend abort.
19980         (Note_Implicit_Run_Time_Call): New procedure
19981         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
19982         E_Subprogram_Type)
19983
19984         * sprint.ads: Document use of $ for implicit run time routine call
19985
19986 2006-02-13  Quentin Ochem  <ochem@adacore.com>
19987
19988         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
19989         task name.
19990
19991 2006-02-13  Bob Duff  <duff@adacore.com>
19992
19993         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
19994         Scan_Unsigned, so we do not scan leading blanks and sign twice.
19995         Integer'Value("- 5") and Integer'Value("-+5") now correctly
19996         raise Constraint_Error.
19997
19998         * s-vallli.adb (Scan_Long_Long_Integer): Call
19999         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20000         do not scan leading blanks and sign twice.
20001         Integer'Value("- 5") and Integer'Value("-+5") now correctly
20002         raise Constraint_Error.
20003
20004         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20005         Scan_Long_Long_Unsigned): Split out most of the processing from
20006         Scan_Long_Long_Unsigned out into
20007         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20008         This prevents scanning leading blanks and sign twice.
20009         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20010         See RM-3.5(44).
20011
20012         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20013         out most of the processing from Scan_Unsigned out into
20014         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20015         This prevents scanning leading blanks and sign twice.
20016
20017         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20018         use with Modular'Value attribute.
20019         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20020         attribute.
20021
20022 2006-02-13  Robert Dewar  <dewar@adacore.com>
20023
20024         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20025
20026 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20027
20028         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20029         (PPC VxWorks): Likewise.
20030         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20031         (forced_callee): Make non-inlinable and non-pure.
20032         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20033
20034 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20035             Ben Brosgol  <brosgol@adacore.com>
20036             Robert Dewar  <dewar@adacore.com>
20037
20038         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20039         support.
20040         Document that gnatbind -M option is for cross environments only.
20041         Added description of using gnatmem to trace gnat rtl allocs and deallocs
20042         Add note on use of $ to label implicit run time calls
20043         Add documentation for -gnatyI (check mode IN)
20044         Updated chapter on compatibility with HP Ada
20045         VMS-oriented edits.
20046         Ran spell and corrected errors
20047         Add documentation for gnatbind -d and rework documentation of -D
20048         at the same time.
20049         Add subprogram/data elimination section.
20050         Minor editing of annex A.
20051         Add section for gnatcheck.
20052         Add documentation for restriction No_Dispatching_Calls
20053         Add documentation for pragma Ada_2005
20054         Remove mention of obsolete pragma Propagate_Exceptions
20055         Document that pragma Unreferenced can appear after DO in ACCEPT
20056         Clarify Pure_Function for library level units
20057         Mention Max/Min in connection with No_Implicit_Conditionals
20058         No_Wide_Characters restriction is no longer partition-wide
20059         Add a nice example for Universal_Literal_String attribute
20060         Document that pragma No_Return can take multiple arguments
20061
20062         * ug_words: Added entry for gnatcheck
20063
20064         * g-ctrl_c.ads (Install_Handler): Enhance comments
20065
20066         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20067
20068         * g-trasym.ads: Add documentation on how to do off line symbolic
20069         traceback computation.
20070
20071         * s-fatgen.adb: Add comments for Unaligned_Valid
20072
20073         * stand.ads: Fix typo in comment
20074
20075 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20076
20077         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20078
20079 2006-02-06  Roger Sayle  <roger@eyesopen.com>
20080
20081         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20082
20083 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20084
20085         PR target/25926
20086         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20087         implementation that calls __main.
20088
20089 2006-01-25  Peter O'Gorman  <peter@pogma.com>
20090
20091         PR bootstrap/25859
20092         * Makefile.in (GCC_LINK): Remove quotes.
20093         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
20094         or $(GCC_LINK).
20095
20096         (powerpc-darwin): Pass -shared-libgcc when building shared library.
20097
20098 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20099
20100         PR ada/24533
20101         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
20102
20103 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20104
20105         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
20106
20107 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20108
20109         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
20110         needed.
20111
20112 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20113
20114         * Make-lang.in: Update dependencies
20115
20116 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20117
20118         * Make-lang.in: Add rule for ada/exp_sel.o
20119
20120 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20121
20122         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
20123
20124 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
20125
20126         * gnatvsn.ads (Library_Version): Bump to version 4.2
20127         (ASIS_Version_Number): Bumped.
20128
20129 2005-12-09  Doug Rupp  <rupp@adacore.com>
20130
20131         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
20132         Ada bind file prefix on VMS from b$ to b__.
20133         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
20134         __init.
20135
20136         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
20137         Targparm.OpenVMS_On_Target.
20138         (Object_Suffix): Initialize with target object suffix.
20139         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
20140
20141         * butil.adb: Change some Hostparm.OpenVMS checks to
20142         Targparm.OpenVMS_On_Target.
20143
20144         * clean.adb: Change some Hostparm.OpenVMS checks to
20145         Targparm.OpenVMS_On_Target.
20146         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
20147         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
20148         Ada bind file prefix on VMS from b$ to b__.
20149
20150         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
20151         --GCC so that Get_Target_Parameters can find system.ads.
20152         (Gnatlink): Call Get_Target_Parameters in mainline.
20153         Initialize standard packages for Targparm.
20154         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20155         (Process_Args): Also Check for object files with target object
20156         extension.
20157         (Make_Binder_File_Names): Create with target object extension.
20158         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
20159         to b__.
20160
20161         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
20162         Targparm.OpenVMS_On_Target.
20163         ({declaration},Build_Library,Check_Library): Change Ada bind file
20164         prefix on VMS from b$ to b__.
20165
20166         * osint-b.adb: Change some Hostparm.OpenVMS checks to
20167         Targparm.OpenVMS_On_Target.
20168         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
20169         b__.
20170
20171         * targext.c: New file.
20172
20173         * Makefile.in: add support for vxworks653 builds
20174         (../../vxaddr2line): gnatlink with targext.o.
20175         (TOOLS_LIBS): Move targext.o to precede libgnat.
20176         (init.o, initialize.o): Minor clean up in dependencies.
20177         (GNATLINK_OBJS): Add targparm.o, snames.o
20178         Add rules fo building targext.o and linking it explicitly with all
20179         tools.
20180         Also add targext.o to gnatlib.
20181
20182         * Make-lang.in: Add rules for building targext.o and linking it in
20183         with gnat1 and gnatbind.
20184         Add entry for exp_sel.o.
20185
20186         * osint.adb Change some Hostparm.OpenVMS checks to
20187         Targparm.OpenVMS_On_Target.
20188         (Object_File_Name): Use target object suffix.
20189
20190         * osint.ads (Object_Suffix): Remove, no longer used.
20191         (Target_Object_Suffix): Initialize with target object suffix.
20192
20193         * rident.ads: Add special exception to license.
20194
20195         * targparm.adb (Get_Target_Parameters): Set the value of
20196         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
20197         value.
20198         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
20199         
20200         * targparm.ads: Add special exception to license.
20201
20202         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
20203         function.
20204         (Copy_File): Make sure from file is closed if error on to file
20205         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
20206
20207         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
20208         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
20209
20210         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
20211         target object suffix.
20212
20213 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
20214             Quentin Ochem  <ochem@adacore.com>
20215             Florian Villoing  <villoing@adacore.com>
20216
20217         * a-taster.ads, a-taster.adb: New files.
20218
20219         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
20220         link to the version that does nothing. This way the task termination
20221         routine is not executed twice for the environment task when finishing
20222         because of an unhandled exception.
20223
20224         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
20225         handler because of an unhandled exception.
20226
20227         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
20228         System.Tasking.Utilities instead of that in System.Tasking.Stages.
20229
20230         * s-finimp.adb (initialization code): Modify the soft link for the
20231         finalization of the global list instead of Adafinal.
20232
20233         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
20234         non-tasking version of the soft link for task termination. We do
20235         nothing since if we are using the non-tasking version it
20236         means that the task termination functionality is not used.
20237         (Null_Finalize_Global_List): Add this null version for the procedure
20238         in charge of finalizing the global list for controlled objects.
20239         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
20240         instead for handling run-time termination in a more flexible way.
20241         (Adafinal_NT): This new procedure will take care of finalizing the
20242         global list for controlled objects if needed, but no tasking
20243         finalization.
20244
20245         * s-tarest.adb (Task_Lock): Do not try to lock again the
20246         Global_Task_Lock if we already own it. Otherwise, we get blocked in
20247         some run-time operations.
20248         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
20249         until all nested locks have been released.
20250         (Task_Wrapper): Call the fall-back task termination handler. It
20251         applies to all tasks but the environment task.
20252         (Finalize_Global_Tasks): Add the call for the task termination
20253         procedure for the environment task.
20254         (Task_Wrapper): suppress warnings around declaration of
20255         Secondary_Stack_Address.
20256
20257         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
20258         moved to the Common_ATCB record.
20259         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
20260         Common_ATCB record.
20261         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
20262         Common_ATCB record.
20263
20264         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
20265         Fall_Back_Handler, and Specific_Handler.
20266
20267         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
20268         defined in Ada.Task_Termination, to avoid circular dependencies.
20269         (Termination_Handler): Redefine this type here, alredy defined in
20270         Ada.Task_Termination, for avoiding circular dependencies.
20271         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
20272         for storing task termination handlers. In addition,
20273         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
20274         Common_ATCB because it is used by both the regular and the restricted
20275         run times.
20276         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
20277         Common_ATCB because it is used by both the regular and the restricted
20278         run times.
20279         (Common_ATCB): Added a dynamic task analyzer field.
20280
20281         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
20282         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
20283         (Task_Wrapper): Call the task termination handler. It applies to all
20284         tasks but the environment task.
20285         (Finalize_Global_Tasks): Call the task termination procedure for the
20286         environment task. The call to Finalize_Global_List is now performed
20287         using the soft links mechanism.
20288         (Task_Wrapper): added dynamic stack analysis.
20289
20290         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
20291         potentially blocking operations has been moved from
20292         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
20293         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
20294         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
20295         this run-time check.
20296
20297         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
20298         of task termination procedure.
20299         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
20300         link for the task termination procedure.
20301
20302         * bindusg.adb: (Bindusg): Added documentation for -u option.
20303
20304         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
20305         (Get_Main_C): Add handling of dynamic stack analysis.
20306         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
20307
20308         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
20309         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
20310         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
20311
20312         * opt.ads: Added flags used by dynamic stack measurement.
20313         (Max_Line_Length): Remove (not used anymore)
20314
20315         * s-io.ads, s-io.adb (Standard_Error): new subprogram
20316         (Standart_Output): new subprogram
20317         (Set_Output): new subprogram
20318         (Put): now uses the value of Current_Out to know if the output has to be
20319         send to stderr or stdout.
20320         
20321         * s-stausa.ads: Complete implementation.
20322
20323         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
20324         
20325         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
20326         list of Ada 05 files.
20327         (GNAT Library Units): Add AltiVec files.
20328
20329         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
20330         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
20331         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
20332
20333 2005-12-09  Nicolas Setton  <setton@adacore.com>
20334
20335         * adaint.c (__gnat_locate_regular_file): Return immediately if
20336         file_name is empty.
20337
20338 2005-12-09  Javier Miranda  <miranda@adacore.com>
20339             Hristian Kirtchev  <kirtchev@adacore.com>
20340
20341         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
20342         to the specification because the frontend generates code that uses this
20343         subprogram.
20344         (Set_Interface_Table): Add missing assertion.
20345         Update documentation describing the run-time structure.
20346         (Displace): New subprogram that displaces the pointer to the object
20347         to reference one of its secondary dispatch tables.
20348         (IW_Membership): Modified to use the new table of interfaces.
20349         (Inherit_TSD): Modified to use the new table of interfaces.
20350         (Register_Interface_Tag): Use the additional formal to fill the
20351         contents of the new table of interfaces.
20352         (Set_Interface_Table): New subprogram that stores in the TSD the
20353         pointer to the table of interfaces.
20354         (Set_Offset_To_Top): Use the additional formal to save copy of
20355         the offset value in the table of interfaces.
20356         Update structure of GNAT Primary and Secondary dispatch table diagram.
20357         Add comment section on GNAT dispatch table prologue.
20358         (Offset_To_Signature): Update the constant value of the Signature field.
20359         (Dispatch_Table): Update comment on hidden fields in the prologue.
20360         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
20361         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
20362         the type of formal parameter T to Tag, introduce additional assertions.
20363         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
20364         conversion.
20365         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
20366
20367         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
20368         in all the calls to Expand_Interface_Thunk. Instead of referencing the
20369         record component containing the tag of the secondary dispatch table we
20370         have to use the Offset_To_Top run-time function to get this information;
20371         otherwise if the pointer to the base of the object has been displace
20372         we get a wrong value if we use the 'position attribute.
20373
20374         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
20375         all the calls to Expand_Interface_Thunk.
20376         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
20377         interfaces; hence the call to Set_Interface_Table was clearly wrong.
20378         (Collect_All_Interfaces): Modify the internal subprogram Collect to
20379         ensure that the interfaces implemented by the ancestors are placed
20380         at the header of the generated list.
20381         (Expand_Interface_Conversion): Handle the case in which the displacement
20382         associated with the interface conversion is not statically known. In
20383         this case we generate a call to the new run-time subprogram Displace.
20384         (Make_DT): Generate and fill the new table of interfaces.
20385         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
20386         Get_Tagged_Kind and Set_Tagged_Kind.
20387         (Tagged_Kind): New function that determines the tagged kind of a type
20388         with respect to limitedness and concurrency and returns a reference to
20389         RE_Tagged_Kind.
20390         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
20391         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
20392         primary dispatch table for a type.
20393         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
20394         secondary dispatch table respectively of a tagged type.
20395
20396         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
20397         (Expand_Interface_Conversion): New subprogram to indicate if the
20398         displacement of the type conversion is statically known.
20399         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
20400
20401         * rtsfind.ads (RE_Offset_To_Top): New entity
20402         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
20403         accessible to users.
20404         (Re_Displace): New entity
20405         (RE_Interface_Data): New entity
20406         (RE_Set_Interface_Data): New_Entity
20407         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
20408         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
20409         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
20410         RE_TK_Tagged, RE_TK_Task.
20411
20412         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
20413         Init_Secondary_Tags_Internal to allow its use with interface types and
20414         also to generate the code for the new additional actual required
20415         by Set_Offset_To_Top.
20416         (Build_Init_Statements): In case of components associated with abstract
20417         interface types there is no need to generate a call to its IP.
20418         (Freeze_Record_Type): Generate Select Specific Data tables only for
20419         concurrent types.
20420         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
20421         the bodies and specifications of the predefined primitive operations
20422         dealing with dispatching selects and abort, 'Callable, 'Terminated only
20423         for concurrent types.
20424
20425         * exp_sel.ads, exp_sel.adb: New files.
20426
20427         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
20428         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
20429         properly protected objects and attach handler in the case of the
20430         restricted profile.
20431         Move embeded package Select_Expansion_Utilities into a separate external
20432         package.
20433         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
20434         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
20435         (Build_K, Build_S_Assignment): New subprograms, part of the select
20436         expansion utilities.
20437         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
20438         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
20439         where the trigger is a dispatching procedure of a limited tagged type.
20440
20441 2005-12-09  Olivier Hainque  <hainque@adacore.com>
20442
20443         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
20444         pointer initialization values. Make a SAVE_EXPR instead. Add comments
20445         about the use and expansion of SAVE_EXPRs in the various possible
20446         renaming handling cases.
20447         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
20448         abusing DECL_FCONTEXT.
20449
20450 2005-12-09  Matthew Heaney  <heaney@adacore.com>
20451
20452         * a-convec.adb (Merge): Added assertions to check whether vector params
20453         are sorted.
20454
20455         * a-coinve.adb (Merge): Added assertions to check whether vector params
20456         are sorted.
20457
20458         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
20459         draft.
20460         (Cursor'Read): raises PE
20461
20462         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
20463         to its default value.
20464
20465         * a-cihama.adb: Manually check whether cursor's key and elem are
20466         non-null
20467
20468         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
20469         (Merge): Assert that target and source lists are in order
20470         (Swap): Declare non-const temporaries, to pass to Splice
20471
20472         * a-cdlili.ads: (Splice): Changed param name and param mode
20473
20474         * a-cdlili.adb: (Splice): Changed param name and param mode
20475         (Merge): Assert that target and source lists are in order
20476         (Swap): Declare non-const temporaries, to pass to Splice
20477
20478         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
20479         (Write): declare Stream param as not null
20480
20481         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
20482         an exception message.
20483
20484 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20485             Robert Dewar  <dewar@adacore.com>
20486
20487         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
20488         which is the absolute maximum length we can support.
20489
20490         * frontend.adb: For the processing of configuration pragma files,
20491         remove references to Opt.Max_Line_Length, which is not checked anymore.
20492
20493         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
20494         length.
20495
20496         * scn.adb, scng.adb: 
20497         Always check line length against the absolute supported maximum,
20498         Hostparm.Max_Line_Length.
20499
20500         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
20501         value for the maximum line length is Max_Line_Length (not
20502         Column_Number'Last).
20503         Minor error msg update
20504         (Set_Style_Check_Options): New interface returning error msg
20505         Minor code reorganization (processing for 'M' was out of alpha order)
20506
20507         * switch-c.adb: New interface for Set_Style_Check_Options
20508
20509         * stylesw.ads (Set_Style_Check_Options): New interface returning error
20510         msg.
20511
20512 2005-12-09  Javier Miranda  <miranda@adacore.com>
20513
20514         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
20515         with IP subprogram were only supported if there were limited types.
20516
20517         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
20518         records with IP subprogram were only supported if there were limited
20519         types.
20520
20521 2005-12-09  Olivier Hainque  <hainque@adacore.com>
20522             Eric Botcazou  <ebotcazou@adacore.com>
20523
20524         * trans.c (tree_transform, emit_check): Adjust calls to
20525         build_call_raise, passing the now expected GNAT_NODE argument.
20526
20527         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
20528         source line information than what the current global locus indicates
20529         when appropriate.
20530
20531         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
20532         field has overflowed.
20533         (build_call_raise): Add a GNAT_NODE argument to convey better source
20534         line information than what the current global locus indicates when
20535         appropriate.
20536         (build_component_ref): Adjust call to build_call_raise.
20537
20538 2005-12-09  Pascal Obry  <obry@adacore.com>
20539
20540         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
20541         the iterator is quitting iteration on parent directory.
20542
20543 2005-12-09  Javier Miranda  <miranda@adacore.com>
20544
20545         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
20546         and the assignment to a class-wide object, before the assignment we
20547         generate a run-time check to ensure that the tag of the Target is
20548         covered by the tag of the source.
20549
20550 2005-12-09  Robert Dewar  <dewar@adacore.com>
20551
20552         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
20553         parameter in call to Image_Wide_Character.
20554
20555         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
20556         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
20557         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
20558         annoying FFFE/FFFF inconsistency.
20559
20560 2005-12-09  Robert Dewar  <dewar@adacore.com>
20561             Javier Miranda  <miranda@adacore.com>
20562             Ed Schonberg  <schonberg@adacore.com>
20563
20564         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
20565         of type conversion.
20566         (Find_Interface): New subprogram that given a tagged type and one of its
20567         component associated with the secondary table of an abstract interface
20568         type, return the entity associated with such abstract interface type.
20569         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
20570         base type to create anonymous subtype, because entity may be a locally
20571         declared subtype or generic actual.
20572         (Find_Interface): New subprogram that given a tagged type and one of its
20573         component associated with the secondary table of an abstract interface
20574         type, return the entity associated with such abstract interface type.
20575
20576         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
20577         conversion cannot be handled at compile time. In this case we pass this
20578         information to the expander to generate the appropriate code.
20579
20580 2005-12-09  Robert Dewar  <dewar@adacore.com>
20581             Ed Schonberg  <schonberg@adacore.com>
20582             Gary Dismukes  <dismukes@adacore.com>
20583             Javier Miranda  <miranda@adacore.com>
20584             Hristian Kirtchev  <kirtchev@adacore.com>
20585
20586         * einfo.adb (Itype_Printed): New flag
20587         (Is_Limited_Type): Derived types do not inherit limitedness from
20588         interface progenitors.
20589         (Is_Return_By_Reference_Type): Predicate does not apply to limited
20590         interfaces.
20591
20592         * einfo.ads (Itype_Printed): New flag
20593         Move Is_Wrapper_Package to proper section
20594         Add missing Inline for Is_Volatile
20595
20596         * output.ads, output.adb (Write_Erase_Char): New procedure
20597         (Save/Restore_Output_Buffer): New procedures
20598         (Save/Restore_Output_Buffer): New procedures
20599
20600         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
20601         Add missing support for anonymous access type
20602         (Write_Id): Insert calls to Write_Itype
20603         (Write_Itype): New procedure to output itypes
20604
20605         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
20606         use of "limited" in declaration.
20607
20608         * sinfo.ads, sinfo.adb: 
20609         Formal derived types can carry an explicit "limited" indication.
20610
20611         * sem_ch3.adb: Add with and use of Targparm.
20612         (Create_Component): If Frontend_Layout_On_Target is True and the
20613         copied component does not have a known static Esize, then reset
20614         the size and positional fields of the new component.
20615         (Analyze_Component_Declaration): A limited component is
20616         legal within a protected type that implements an interface.
20617         (Collect_Interfaces): Do not add to the list the interfaces that
20618         are implemented by the ancestors.
20619         (Derived_Type_Declaration): If the parent of the full-view is an
20620         interface perform a transformation of the tree to ensure that it has
20621         the same parent than the partial-view. This simplifies the job of the
20622         expander in order to generate the correct object layout, and it is
20623         needed because the list of interfaces of the full-view can be given in
20624         any order.
20625         (Process_Full_View): The parent of the full-view does not need to be
20626         a descendant of the parent of the partial view if both parents are
20627         interfaces.
20628         (Analyze_Private_Extension_Declaration): If declaration has an explicit
20629         "limited" the parent must be a limited type.
20630         (Build_Derived_Record_Type): A derived type that is explicitly limited
20631         must have limited ancestor and progenitors.
20632         (Build_Derived_Type): Ditto.
20633         (Process_Full_View): Verify that explicit uses of "limited" in partial
20634         and full declarations are consistent.
20635         (Find_Ancestor_Interface): Remove function.
20636         (Collect_Implemented_Interfaces): New procedure used to gather all
20637         implemented interfaces by a type.
20638         (Contain_Interface): New function used to check whether an interface is
20639         present in a list.
20640         (Find_Hidden_Interface): New function used to determine whether two
20641         lists of interfaces constitute a set equality. If not, the first
20642         differing interface is returned.
20643         (Process_Full_View): Improve the check for the "no hidden interface"
20644         rule as defined by AI-396.
20645
20646 2005-12-09  Robert Dewar  <dewar@adacore.com>
20647
20648         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
20649         types, not on record subtypes.
20650         (Freeze_Entity): Code cleanup. Add barrier to the loop
20651         that generates the references for primitive operations. This allows to
20652         remove an unnecessary exception handler.
20653         Code reformatting and comment clean ups.
20654
20655 2005-12-09  Vincent Celier  <celier@adacore.com>
20656
20657         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
20658         If GNAT CHECK is called with a project file, but with no
20659         source on the command line, call gnatcheck with all the compilable
20660         sources of the project.
20661         Take into account the new command Check, for gnatcheck. Treat as for
20662         other ASIS tools: take into account project, specific package Check and
20663         Compiler switches.
20664         For ASIS tools, add the switches in package Compiler for
20665         the invocation of the compiler.
20666
20667         * prj-attr.adb: Add package Check and its attributes
20668
20669         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
20670
20671         * vms_conv.adb (Initialize): Change Params of command Check to
20672         unlimited files.
20673         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20674         Add data for new command Check
20675
20676         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
20677         ELIM.
20678         Add qualifiers for Check command options
20679         (Command_Type): New command Check
20680
20681 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20682
20683         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
20684         command line switch overruns the output buffer.
20685
20686 2005-12-09  Robert Dewar  <dewar@adacore.com>
20687
20688         * sem_prag.adb: Processing for new pragma Complete_Representation
20689         (Analyze_Pragma, case Debug): Implement two argument form.
20690
20691         * par-prag.adb: Entry for new pragma Complete_Representation
20692         (Prag, case Debug): Recognize two argument form of pragma Debug
20693         New interface for Set_Style_Check_Options.
20694
20695         * sem_ch13.adb: Implement new pragma Complete_Representation.
20696
20697         * snames.adb, snames.ads, snames.h: Entry for new pragma
20698         Complete_Representation.
20699
20700 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
20701
20702         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
20703         available user-specified stream attributes on limited parameters to
20704         also test the type directly rather than only its underlying type (for
20705         Ada 95) and, in the case of Ada 2005, to check that the user-specified
20706         attributes are visible at the point of the subprogram declaration.
20707         For Ada 2005, the error message is modified to indicate that the
20708         type's stream attributes must be visible (again, only for -gnat05).
20709
20710 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20711
20712         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
20713         anonymous access types.
20714
20715         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
20716         matching of anonymous access types and anonymous access to subprogram
20717         types. 'R'M 4.9.1 (2/2).
20718
20719 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20720
20721         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
20722         rule prematurely when operands are universal, remaining ambiguities
20723         will be removed during resolution.
20724         Code cleanup.
20725
20726         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
20727         that are Ada 2005 functions.
20728         (Has_Abstract_Interpretation): Subsidiary to
20729         Remove_Conversions, to remove ambiguities caused by abstract operations
20730         on numeric types when operands are universal.
20731
20732 2005-12-09  Robert Dewar  <dewar@adacore.com>
20733
20734         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
20735         for case where spec is categorized.
20736
20737 2005-12-09  Javier Miranda  <miranda@adacore.com>
20738
20739         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
20740         types use the corresponding record type. This was not needed before
20741         the implementation of Ada 2005 synchronized types because
20742         concurrent types were never tagged types in Ada 95.
20743
20744 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20745
20746         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
20747         first subtype of the type of the expression to verify that it is a
20748         legal Time type.
20749
20750 2005-12-09  Robert Dewar  <dewar@adacore.com>
20751
20752         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
20753         decoded names.
20754
20755 2005-12-09  Quentin Ochem  <ochem@adacore.com>
20756             Robert Dewar  <dewar@adacore.com>
20757             Ed Falis  <falis@adacore.com>
20758             Florian Villoing  <villoing@adacore.com>
20759             Thomas Quinot  <quinot@adacore.com>
20760             Arnaud Charlet  <charlet@adacore.com>
20761
20762         * gnat_ugn.texi: Created section "Stack Related Tools"
20763         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
20764         "Stack Related Tools"
20765         Added subsection "Static Stack Usage Analysis"
20766         Added subsection "Dynamic Stack Usage Analysis"
20767         Include documentation of itypes in sprint listing (-gnatG)
20768         Documented gnatbind -D switch (default sec stack size for fixed sec
20769         stacks).
20770         Added Interrupt_State and Persistent_BSS to list of configuration
20771         pragmas.
20772         Add missing doc for maximum value of nnn in -gnatyMnnn
20773
20774         * gnat_rm.texi: Document the AltiVec binding.
20775         Add documentation for pragma Complete_Representation
20776         Shortened an overly long line (> 79 chars)
20777         Clarify documentation of unchecked conversion in implementation
20778         defined cases.
20779         Document two argument form of pragma Debug
20780
20781         * types.ads (Column_Number): Update documentation.
20782
20783         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
20784         library level Finalize_Storage_Only objects (these are not attached to
20785         any finalization list).
20786
20787         * system-mingw.ads: (Underlying_Priorities): Update comment.
20788
20789 2005-12-09  Robert Dewar  <dewar@adacore.com>
20790
20791         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
20792         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20793         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
20794         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
20795         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
20796         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
20797         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
20798         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
20799         reformatting.
20800
20801 2005-12-09  Robert Dewar  <dewar@adacore.com>
20802
20803         * s-vaflop-vms-alpha.adb: (Ne_F): New function
20804         (Ne_G): New function
20805
20806         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
20807         for tag assignment.
20808         (Rewrite_Comparison): Handle case where operation is not a comparison
20809         and ignore, and also handle type conversion case.
20810
20811 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20812
20813         * exp_aggr.ads: Fix typo in comment.
20814         ???-mark Convert_Aggr_In_Assignment as needing documentation.
20815
20816 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
20817
20818         * layout.adb: Replace various uses of byte by storage unit throughout.
20819         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
20820         static size, convert to storage units before returning, to conform to
20821         spec.
20822
20823 2005-12-09  Matthew Gingell  <gingell@adacore.com>
20824
20825         * g-exctra.ads: Fix typo in comment.
20826
20827 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20828
20829         * utils.c: Minor reformatting.
20830
20831 2005-12-09  Robert Dewar  <dewar@adacore.com>
20832
20833         * g-soccon.ads: 
20834         Further comment fixes to make the status of the default file clear
20835
20836         * s-bitops.adb: Clarify comment for Bits_Array
20837
20838 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
20839
20840         * Make-lang.in (ada.install-normal): Remove.
20841
20842 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
20843
20844         * Make-lang.in: Remove all dependencies on s-gtype.
20845
20846 2005-12-05  Richard Guenther  <rguenther@suse.de>
20847
20848         * utils.c (convert): Use fold_convert where appropriate.
20849
20850 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
20851
20852         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
20853         a period is meant.
20854
20855 2005-12-02  Richard Guenther  <rguenther@suse.de>
20856
20857         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
20858
20859 2005-12-01  Roger Sayle  <roger@eyesopen.com>
20860
20861         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
20862         nodes.
20863
20864 2005-11-23  Laurent Guerby  <laurent@guerby.net>
20865
20866         * mlib-prj.adb (Build_Library): Initialize Delete.
20867
20868 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
20869
20870         * socket.c: Add extern int h_errno for rtems since networking header
20871         files are not available at this point in a tool bootstrap. Newlib
20872         only has basic C library header files.
20873
20874 2005-11-19  Richard Guenther  <rguenther@suse.de>
20875         Roger Sayle  <roger@eyesopen.com>
20876
20877         PR ada/23717
20878         * misc.c (internal_error_function): Don't use vsprintf to format
20879         the error message text, instead use pp_format_text and the new
20880         pretty printer APIs.  This allows handling of %qs, %w, etc.
20881
20882 2005-11-18  Laurent Guerby  <laurent@guerby.net>
20883
20884         PR ada/24857
20885         * Makefile.in: Use s-auxdec-empty for RTEMS.
20886
20887 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20888
20889         PR ada/22333
20890         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
20891         a temporary if taking the address of something that is neither
20892         reference, declaration, or constant, since the gimplifier
20893         can't handle that case.
20894
20895 2005-11-17  Laurent Guerby  <laurent@guerby.net>
20896
20897         PR ada/24857
20898         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
20899
20900 2005-11-16  Richard Guenther  <rguenther@suse.de>
20901
20902         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
20903
20904 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
20905
20906         PR ada/24855
20907         * raise-gcc.c: Add missing stdarg.h include.
20908  
20909 2005-11-16  Richard Guenther  <rguenther@suse.de>
20910
20911         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
20912         (ada/misc.o): Likewise.
20913
20914 2005-11-14  Thomas Quinot  <quinot@adacore.com>
20915
20916         * g-soccon.ads: Minor reformatting. Update comments.
20917
20918         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
20919         gain visibility on the declaration of struct timeval.
20920
20921         * g-soccon-freebsd.ads,
20922         g-soccon-darwin.ads,
20923         g-soccon-tru64.ads,
20924         g-soccon-aix.ads,
20925         g-soccon-irix.ads,
20926         g-soccon-hpux.ads,
20927         g-soccon-solaris.ads,
20928         g-soccon-vms.ads,
20929         g-soccon-mingw.ads,
20930         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
20931
20932         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
20933         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
20934         g-soccon-linux-x86.ads: New files.
20935
20936         * g-socthi-mingw.adb: 
20937         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
20938
20939         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
20940         (time_t, suseconds_t): New types constructed to match the tv_sec
20941         and tv_usec fields of C struct timeval.
20942         (Timeval): Construct structure in terms of the new types.
20943         (Host_Errno): New function (imported from socket.c), returns last hosts
20944         database error.
20945
20946         * g-socthi-vxworks.adb:  Add error handling circuitry.
20947
20948         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
20949         components of struct timeval.
20950         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
20951         (Check_Selector): In error conditions, clear internal socket sets to
20952         avoid a memory leak.
20953         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
20954         Send_Timeout, Receive_Timeout.
20955
20956         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
20957         the tv_sec and tv_usec fields of C struct timeval.
20958         (Timeval): Construct structure in terms of the new types.
20959         (Host_Errno): New function (imported from socket.c), returns last hosts
20960         database error.
20961
20962         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
20963         hosts database last error code.
20964
20965         * gen-soccon.c: Complete value expansion should not be performed on
20966         TARGET, as it has the form of a math expression, and some components
20967         may be platform-defined macros.
20968         For VxWorks, generate the OK and ERROR values.
20969         New constants giving the sizes of the components of C struct timeval.
20970
20971 2005-11-14  Robert Dewar  <dewar@adacore.com>
20972             Ed Schonberg  <schonberg@adacore.com>
20973
20974         PR ada/18434
20975         * types.ads: Include All_Checks in Suppress_Array
20976
20977         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
20978         not(a=b), since we no longer do this rewriting, and hence it is not
20979         needed.
20980         (Elaboration_Checks_Suppressed): Add special casing to
20981         deal with different cases of static and dynamic elaboration checks (all
20982         checks does not count in the first case, but does in the second).
20983         (Expr_Known_Valid): Do not assume that the result of any arbitrary
20984         function call is valid, since this is not the case.
20985         (Ensure_Valid): Do not apply validity check to a real literal
20986         in a universal or fixed context
20987
20988         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
20989         elementary types using the operator in standard. It is cleaner not to
20990         modify the programmers intent, especially in the case of floating-point.
20991         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
20992         it did not matter because we always rewrote a/=b to not(a=b).
20993         (Expand_Allocator_Expression): For an allocator expression whose nominal
20994         subtype is an unconstrained packed type, convert the expression to its
20995         actual constrained subtype.
20996         Implement warning for <= or >= where < or > not possible
20997         Fix to Vax_Float tests (too early in many routines, causing premature
20998         Vax_Float expansions.
20999
21000         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21001         to be used with packages and generic packages as well as with
21002         subprograms.
21003         (Suppress): Set All_Checks, but not Elaboration_Check, for case
21004         of pragma Suppress (All_Checks)
21005         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21006         a string literal for precise control over warnings.
21007         Avoid raise of pragma in case of unrecognized pragma and just return
21008         instead.
21009
21010         * sem_prag.ads: Minor reformatting
21011
21012         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21013         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21014         Switch. Do not handle any exception.
21015         Include -gnatwx as part of -gnatg (warn on redundant parens)
21016         Allow optional = after -gnatm
21017         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21018         longer sets Elaboration_Checks.
21019         Code to set warning mode moved to Sem_Warn
21020         so that it can be shared by pragma processing.
21021
21022         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21023         statement.
21024
21025         * s-taprop-solaris.adb: 
21026         Change some <= to =, to avoid new warning
21027
21028         * a-exexda.adb, prj-proc.adb: 
21029         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21030         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21031
21032 2005-11-14  Robert Dewar  <dewar@adacore.com>
21033
21034         * exp_vfpt.adb: Handle /= case
21035         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21036         so that we do not get duplicate scaling for fixed point conversions.
21037
21038         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21039
21040 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21041
21042         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
21043         Increase default priority on Lynx from 15 to 17, and meet the Ada
21044         requirement that Default_Priority be ((Priority'First +
21045         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21046
21047 2005-11-14  Vincent Celier  <celier@adacore.com>
21048
21049         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21050         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21051         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21052         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21053         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21054         mlib-tgt-lynxos.adb (DLL_Prefix): New function
21055
21056 2005-11-14  Doug Rupp  <rupp@adacore.com>
21057
21058         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21059         private part.
21060
21061 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21062
21063         * s-traces-default.adb, s-trafor-default.ads,
21064         s-tratas-default.adb: Fix compilation errors.
21065
21066 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21067
21068         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21069         raising the exception so the memory used is freed.
21070
21071 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21072
21073         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21074         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21075         (convert_address): Update comments and list of platforms using this.
21076
21077         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21078         no longer used.
21079
21080 2005-11-14  Pascal Obry  <obry@adacore.com>
21081             Vincent Celier  <celier@adacore.com>
21082
21083         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21084         GNAT.Command_Line.
21085
21086         * memroot.adb: Remove redundant with/use clause on
21087         System.Storage_Elements.
21088
21089 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21090
21091         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
21092         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
21093         related code to a-exexpr.adb
21094         (Save_Occurrence_And_Private): Move GCC EH related code to
21095         a-exexpr-gcc.adb
21096         (Raise_Current_Excep): Add new variable Id with pragma
21097         volatile, to ensure that the variable lives on stack.
21098
21099         * a-exexpr-gcc.adb, raise-gcc.c: New file.
21100
21101         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
21102         from a-except.adb.
21103         Move GCC EH related code to a-exexpr-gcc.adb
21104
21105         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
21106         64-bit Solaris
21107         Split the Linux version of g-soccon into separate variants for 32 and 64
21108         bit platforms.
21109         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
21110         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
21111         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
21112         of host variable $(RANLIB_FLAGS).
21113         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
21114         Code clean up: remove unused/obsolete targets.
21115         (EH_MECHANISM): New variable introduced to differenciate between the
21116         two EH mechanisms statically.
21117         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
21118         (LIBGNAT_OBJS): Add raise-gcc.o
21119         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
21120         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
21121         supports VxWorks 6 RTPs.
21122         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
21123         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
21124
21125         * raise.c: Move all GCC EH-related routines to raise-gcc.c
21126
21127 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21128
21129         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
21130         deferral level, when abort is not allowed, to a later stage (the
21131         Task_Wrapper).
21132         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
21133         it will not get changed by the generated code. It was previously done
21134         in Create_Task.
21135
21136 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21137             Olivier Hainque  <hainque@adacore.com>
21138             Eric Botcazou  <ebotcazou@adacore.com>
21139
21140         * decl.c:
21141         Factor common code to build a storage type for an unconstrained object
21142         from a fat or thin pointer type and a constrained object type.
21143         (annotate_value): Handle BIT_AND_EXPR.
21144         (annotate_rep): Don't restrict the back annotation of inherited
21145         components to the type_annotate_only case.
21146         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
21147         we are not defining the type.
21148         <E_Record_Type>: Likewise.
21149         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
21150         to get advantage of the new maybe_stabilize_reference interface, to
21151         ensure that what we reference is indeed stabilized instead of relying
21152         on assumptions on what the stabilizer does.
21153         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
21154         type imported through a limited_with clause, use its non-limited view.
21155         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
21156         differentiation.
21157         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
21158         of #if sections + explicit comparisons of convention identifiers.
21159         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
21160         before early-returning for certain types when code generation is
21161         disabled.
21162         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
21163         nullification of gnu_expr we do for objects with address clause and
21164         that we are not defining.
21165         (elaborate_expression_1): Do not create constants when creating
21166         variables needed by the debug info: the dwarf2 writer considers that
21167         CONST_DECLs is used only to represent enumeration constants, and emits
21168         nothing for them.
21169         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
21170         object with an address clause into an indirect reference, drop the
21171         initializing expression.
21172         Include "expr.h".
21173         (STACK_CHECK_BUILTIN): Delete.
21174         (STACK_CHECK_PROBE_INTERVAL): Likewise.
21175         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
21176         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
21177         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
21178         corresponding to the renamed object as ignored for debugging purposes.
21179
21180         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
21181         related): For a prefix that is a dereference of a fat or thin pointer,
21182         if there is an actual subtype provided by the front-end, use that
21183         subtype to build an actual type with bounds template.
21184         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
21185         is provided by the front-end, use that subtype to compute the size of
21186         the deallocated object.
21187         (gnat_to_gnu): When adding a statement into an elaboration procedure,
21188         check for a potential violation of a No_Elaboration_Code restriction.
21189         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21190         with extra arguments to control whether to recurse through non-values
21191         and to let the caller know if the stabilization has succeeded.
21192         (gnat_stabilize_reference): Now a simple wrapper around
21193         maybe_stabilize, for common uses without restriction on lvalues and
21194         without need to check for the success indication.
21195         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
21196         pass false instead of 0 as the FORCE argument which is a bool.
21197         (Identifier_to_gnu): Remove checks ensuring that an renamed object
21198         attached to a renaming pointer has been properly stabilized, as no such
21199         object is attached otherwise.
21200         (call_to_gnu): Invoke create_var_decl to create the temporary when the
21201         function uses the "target pointer" return mechanism.
21202         Reinstate conversion of the actual to the type of the formal
21203         parameter before any other specific treatment based on the passing
21204         mechanism. This turns out to be necessary in order for PLACEHOLDER
21205         substitution to work properly when the latter type is unconstrained.
21206
21207         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
21208         common pattern.
21209         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21210         with extra arguments to control whether to recurse through non-values
21211         and to let the caller know if the stabilization has succeeded.
21212
21213         * utils2.c (gnat_build_constructor): Only sort the fields for possible
21214         static output of record constructor if all the components are constant.
21215         (gnat_build_constructor): For a record type, sort the list of field
21216         initializers in increasing bit position order.
21217         Factor common code to build a storage type for an unconstrained object
21218         from a fat or thin pointer type and a constrained object type.
21219         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
21220         types variants, and process special cases of VIEW_CONVERT expressions
21221         as their NOP_EXPR counterpart to ensure we get to the
21222         CORRESPONDING_VARs associated with CONST_DECls.
21223         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
21224         on the right-hand side.
21225
21226         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
21227         a common pattern.
21228         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
21229         are converting back to its original type.
21230         (convert) <JM input>: Fallthrough regular conversion code instead of
21231         extracting the object if converting to a type variant.
21232         (create_var_decl): When a variable has an initializer requiring code
21233         generation and we are at the top level, check for a potential violation
21234         of a No_Elaboration_Code restriction.
21235         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
21236         SIZE and SIZE_UNIT which we need for later back-annotations.
21237         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
21238         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
21239         is an unchecked union.
21240         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
21241         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
21242         main variant, just replace the VIEW_CONVERT_EXPR.
21243         <UNION_TYPE>: Revert 2005-03-02 change.
21244
21245         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
21246
21247         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
21248
21249 2005-11-14  Matthew Heaney  <heaney@adacore.com>
21250
21251         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
21252         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
21253         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
21254         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
21255         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
21256         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
21257         Compiles against the spec for ordered maps described in sections
21258         A.18.6 of the most recent (August 2005) AI-302 draft.
21259
21260 2005-11-14  Olivier Hainque  <hainque@adacore.com>
21261
21262         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
21263         to ensure bias adjustments take place when need be and to prevent
21264         occurrences of intermediate overflows.
21265
21266 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21267             Olivier Hainque  <hainque@adacore.com>
21268
21269         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
21270         ia64 HP-UX.
21271
21272         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
21273         tracebacks on ia64 HP-UX and provide explanatory comment.
21274         Enable backtraces on ia64 GNU/Linux.
21275         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
21276         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
21277
21278 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
21279             Javier Miranda  <miranda@adacore.com>
21280
21281         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
21282         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
21283         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
21284         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
21285
21286         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
21287         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
21288         assertions).
21289
21290         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
21291         subprogram that generates the external name associated with a
21292         secondary dispatch table.
21293         (Get_Secondary_DT_External_Name): New subprogram that generates the
21294         external name associated with a secondary dispatch table.
21295
21296 2005-11-14  Emmanuel Briot  <briot@adacore.com>
21297
21298         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
21299         line in the ALI file to include both an instantiation reference, and a
21300         returned value.
21301
21302 2005-11-14  Vincent Celier  <celier@adacore.com>
21303
21304         * clean.adb (Check_Project): Look for Ada code in extending project,
21305         even if Ada is not specified as a language.
21306         Use new function DLL_Prefix for DLL_Name
21307         (Clean_Interface_Copy_Directory): New procedure
21308         (Clean_Library_Directory): New procedure
21309         (Clean_Directory): Remove procedure, no longer used
21310         (Clean_Project): Do not delete any file in an externally built project
21311
21312         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
21313         directory of an extending project, even when there are no Ada source
21314         present.
21315         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
21316         (Set_Ada_Paths.Add.Recursive_Add): Ditto
21317
21318         * mlib-prj.adb (Check_Library): For all library projects, get the
21319         library file timestamp.
21320         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
21321         (Build_Library): Use new function DLL_Prefix for the DLL_Name
21322         (Clean): Remove procedure, no longer used
21323         (Ultimate_Extension_Of): New function
21324         (Build_Library): When cleaning the library directory, only remove an
21325         existing library file and any ALI file of a source of the project.
21326         When cleaning the interface copy directory, remove any source that
21327         could be a source of the project.
21328
21329         * prj.ads, prj.adb (Project_Empty): Add values of new components
21330         Library_TS and All_Imported_Projects.
21331         (Project_Empty): Add values for new components of Project_Data:
21332         Library_ALI_Dir and Display_Library_ALI_Dir
21333
21334         * prj-attr.adb: New project level attribute name Library_ALI_Dir
21335
21336         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
21337         attribute Library_ALI_Dir.
21338         (Check_Library_Attributes): The library directory cannot be the same as
21339         any source directory of the project tree.
21340         (Check_Stand_Alone_Library): The interface copy directory cannot be
21341         the same as any source directory of the project tree.
21342
21343         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
21344         all temporary files.
21345
21346 2005-11-14  Robert Dewar  <dewar@adacore.com>
21347             Ed Schonberg  <schonberg@adacore.com>
21348
21349         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21350         (Check_Elab_Call): A call within a protected body is never an
21351         elaboration call, and does not require checking.
21352         (Same_Elaboration_Scope): Take into account protected types for both
21353         entities.
21354         (Activate_Elaborate_All_Desirable): New procedure
21355
21356         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
21357         desirable
21358
21359         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
21360         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
21361
21362         * lib-writ.ads, lib-writ.adb: 
21363         Implement new AD/ED for Elaborate_All/Elaborate desirable
21364         Use new Elaborate_All_Desirable flag in N_With_Clause node
21365
21366         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
21367         N_Free_Statement nodes.
21368         Define new class N_Subprogram_Instantiation
21369         Add Elaborate_Desirable flag to N_With_Clause node
21370         Add N_Delay_Statement (covering two kinds of delay)
21371
21372         * debug.adb: Introduce d.f flag for compiler
21373         Add -da switch for binder
21374
21375 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21376             Cyrille Comar  <comar@adacore.com>
21377
21378         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
21379         for task component, in the case of a limited aggregate. The enclosed
21380         object declaration will create it earlier. Otherwise, in the case of a
21381         nested aggregate, the object may appear in the wrong scope.
21382         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
21383         (Gen_Assign): If the component being assigned is an array type and the
21384         expression is itself an aggregate, wrap the assignment in a block to
21385         force finalization actions on the temporary created for each row of the
21386         enclosing object.
21387         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
21388         structures are initialized after all discriminants are set so that
21389         they can be accessed even when their offset is dynamic.
21390
21391 2005-11-14  Robert Dewar  <dewar@adacore.com>
21392             Hristian Kirtchev  <kirtchev@adacore.com>
21393
21394         * sem_attr.adb: Implement Machine_Rounding attribute
21395         (Analyze_Access_Attribute): The access attribute may appear within an
21396         aggregate that has been expanded into a loop.
21397         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
21398         'Terminated whenever the prefix is of a task interface class-wide type.
21399         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
21400         the prefix is of a task interface class-wide type.
21401
21402         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
21403         to avoid warnings.
21404
21405         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
21406         Remove pragma Inline for [Unaligned_]Valid.
21407         Add comments that Valid routines do not work for Vax_Float
21408
21409         * exp_attr.adb: Implement Machine_Rounding attribute
21410
21411         * snames.h: Add entry for Machine_Rounding attribute
21412
21413 2005-11-14  Javier Miranda  <miranda@adacore.com>
21414             Robert Dewar  <dewar@adacore.com>
21415             Hristian Kirtchev  <kirtchev@adacore.com>
21416
21417         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
21418         and related): For a prefix that is an explicit dereference of an
21419         access to unconstrained packed array type, annotate the dereference
21420         with an actual subtype so GIGI can make a correct size computation.
21421         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
21422         'Unrestricted_Access, if the designated type is an interface we
21423         add a type conversion to force the displacement of the pointer
21424         to the secondary dispatch table.
21425         Use Universal_Real instead of Long_Long_Float when we need a high
21426         precision float type for the generated code (prevents gratuitous
21427         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21428         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
21429         'Terminated for task interface class-wide objects. Generate a call to
21430         the predefined dispatching routine used to retrieve the _task_id from
21431         a task corresponding record.
21432         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
21433
21434         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21435         (Check_Dispatching_Operation): Protect the frontend againts
21436         previously detected errors.
21437
21438         * Makefile.rtl: Add new instantiations of system.fat_gen
21439
21440         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
21441         Change name of instantiated package for better consistency
21442         with newly added system.fat_gen instantiations.
21443
21444         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
21445         s-fvagfl.ads: New files.
21446
21447 2005-11-14  Cyrille Comar  <comar@adacore.com>
21448             Thomas Quinot  <quinot@adacore.com>
21449
21450         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
21451         assignment of a value of a tagged type that has been rewritten to a
21452         block statement, it is known by construction that no checks are
21453         necessary for the statements within the block: analyze it with checks
21454         suppressed.
21455         (Expand_N_If_Statement): When killing a dead then-branch in an
21456         if-statement that has elsif_parts, recompute the Current_Value node
21457         for any entity whose value is known from the condition of the first
21458         elsif_part.
21459         (Expand_N_Return_Statement): When returning a mutable record, convert
21460         the return value into its actual subtype in order to help the backend
21461         to return the actual size instead of the maximum. This is another
21462         aftermath of not returning mutable records on the sec-stack anymore.
21463
21464         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
21465         handling of error msg for suspicious reverse range iteration.
21466         (Check_Possible_Current_Value_Condition): Move declaration from body to
21467         spec, to allow this subprogram to be called from exp_ch5.
21468
21469 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21470
21471         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
21472         generate a set of nested array aggregates instead of a single flat
21473         aggregate for multi-dimensional arrays.
21474
21475 2005-11-14  Pascal Obry  <obry@adacore.com>
21476
21477         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
21478         by spawnve is a process handle, no need to convert. Add a parameter
21479         close to control wether the process handle must be closed.
21480         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
21481         a process handle, not need to convert.
21482         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
21483
21484         * g-expect.adb: (Kill): Document the new close parameter.
21485         (Close): Do not release the process handle in the kill there as
21486         waitpid() is using it.
21487         (Send_Signal): Release the process handle.
21488
21489 2005-11-14  Robert Dewar  <dewar@adacore.com>
21490
21491         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
21492         need a high precision float type for the generated code (prevents
21493         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21494         used).
21495
21496         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
21497         need a high precision float type for the generated code (prevents
21498         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21499         used).
21500         (Expand_Width_Attribute): In configurable run-time, the attribute is not
21501         allowed on non-static enumeration subtypes. Force a load error to emit
21502         the correct diagnostic.
21503
21504 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21505             Robert Dewar  <dewar@adacore.com>
21506             Ed Schonberg  <schonberg@adacore.com>
21507
21508         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
21509         subtype to compute the size of the designated object at run-time,
21510         create such a subtype and store it in the Actual_Designated_Subtype
21511         attribute of the N_Free_Statement.
21512         Generate itype for classwide designated object in both cases of
21513         user-specified storage pool: specific and class-wide, not only in the
21514         specific case.
21515         Raise CE when trying to set a not null access type object to null.
21516         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
21517         an explicit loop, because freeze nodes make its position variable.
21518
21519         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
21520         null object.
21521
21522 2005-11-14  Javier Miranda  <miranda@adacore.com>
21523
21524         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
21525         Build_Stream_Procedure): Add the null-excluding attribute to the first
21526         formal.
21527         This has no semantic meaning under Ada95 mode but it is a
21528         requirement under Ada05 mode.
21529
21530         * par-ch3.adb (P_Access_Definition): Addition of warning message if
21531         the null exclusion is used under Ada95 mode
21532         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
21533         (P_Access_Definition): Remove assertion that forbids the use of
21534         the null-exclusion feature in Ada95.
21535
21536 2005-11-14  Robert Dewar  <dewar@adacore.com>
21537
21538         * impunit.adb: Exclude container helper units not intended for use by
21539         users.
21540
21541 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21542
21543         * freeze.adb (Freeze_Entity): For an access formal that is an access
21544         to subprogram, freeze the anonymous subprogram type at the same time,
21545         to prevent later freezing in the wrong scope, such as the enclosing
21546         subprogram body.
21547         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
21548         subprogram whenever available.
21549
21550 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21551
21552         PR ada/23732
21553         * gnatvsn.ads (Library_Version): Bump to 4.1
21554
21555 2005-11-14  Robert Dewar  <dewar@adacore.com>
21556
21557         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
21558         Storage_Offset to avoid wrap around causing invalid results.
21559
21560 2005-11-14  Pascal Obry  <obry@adacore.com>
21561
21562         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
21563         cross-compiler.
21564         (Scan_Bind_Arg): Fail with an error message if -M option is used
21565         on a native compiler.
21566
21567 2005-11-14  Robert Dewar  <dewar@adacore.com>
21568             Vincent Celier  <celier@adacore.com>
21569
21570         * gprep.adb: Implement -C switch to scan comments
21571
21572         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
21573
21574         * scans.ads: Comment updates (including new use of Tok_Comment in
21575         preprocessing)
21576
21577         * opt.ads: Add documentation for flags that are used by gprmake,
21578         currently and in the next version of gprmake.
21579         (Verbosity_Level): New variable
21580         Add Replace_In_Comments switch
21581
21582         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
21583         and -vm.
21584         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
21585
21586 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21587
21588         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
21589         message, friendlier.
21590
21591 2005-11-14  Robert Dewar  <dewar@adacore.com>
21592
21593         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
21594
21595 2005-11-14  Doug Rupp  <rupp@adacore.com>
21596
21597         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
21598
21599 2005-11-14  Robert Dewar  <dewar@adacore.com>
21600
21601         * interfac.ads: Change declarations of IEEE float types so that we no
21602         longer need a separate version of this package for VMS.
21603
21604 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21605
21606         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
21607         internal entity created for the declaration of a child subprogram body
21608         with no spec as coming from source, to generate proper cross-reference
21609         information.
21610
21611 2005-11-14  Vincent Celier  <celier@adacore.com>
21612
21613         * make.adb (Compile_Sources): Change verbose message to minimum
21614         verbosity level High for "is in an Ada library", "is a read-only
21615         library" and "is an internal library",
21616         (Create_Binder_Mapping_File): Path name of ALI file for library project
21617         must include the library directory, not the object directory.
21618         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
21619         for new switches -vl, -vm and -vh.
21620         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
21621         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
21622         (Compile_Sources): Do not attempt to compile if an ALI file is missing
21623         in a project that is externally built.
21624         (Compute_All_Imported_Projects): New procedure
21625         (Gnatmake): Check if importing libraries should be regenerated because
21626         at least an imported library is more recent.
21627         (Initialize): For each project compute the list of the projects it
21628         imports directly or indirectly.
21629         (Add_Library_Search_Dir): New procedure, used in place of
21630         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21631         put in the search paths.
21632         (Add_Source_Search_Dir): New procedure, used in place of
21633         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21634         put in the search paths.
21635         (Mark_Directory): Resolve the absolute path the directory before marking
21636         it.
21637
21638         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
21639         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21640         Switch. Do not handle any exception.
21641         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
21642         so that the switch is recognized as valid.
21643         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
21644
21645 2005-11-14  GNAT Script  <nobody@adacore.com>
21646
21647         * Make-lang.in: Makefile automatically updated
21648
21649 2005-11-14  Pascal Obry  <obry@adacore.com>
21650
21651         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
21652         used.
21653         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
21654         In both cases the last argument was dropped.
21655
21656 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
21657
21658         * namet.h: (Column_Numbe): New type.
21659         (Get_Column_Number): Define to sinput__get_column_number.
21660         (Instantiation): Define to sinput__instantiation.
21661         (Get_Column_Number): Declare.
21662         (Instantiation): Likewise.
21663
21664 2005-11-14  Robert Dewar  <dewar@adacore.com>
21665
21666         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
21667         syntax, which could cause compiler hangs.
21668
21669 2005-11-14  Vincent Celier  <celier@adacore.com>
21670
21671         * prj-ext.adb: Take into account new environment variable
21672         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
21673         are defined.
21674         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
21675         normalize its path name, making it absolute and resolving symbolic
21676         links, and replace the original if resolved path is different.
21677
21678 2005-11-14  Vincent Celier  <celier@adacore.com>
21679
21680         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
21681         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
21682
21683 2005-11-14  Emmanuel Briot  <briot@adacore.com>
21684
21685         * prj-pp.adb (Print): Do not output the with statement if the
21686         associated name is empty, which happens for virtual extending projects.
21687         (Print): Preserve the "extends all" attribute when printing the project.
21688
21689         * prj-tree.ads (String_Value_Of): Add comment about returned value for
21690         a virtual extending project.
21691
21692 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21693
21694         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
21695         rhs of an assignment even if the type is unconstrained, when the
21696         context is non-expanding.
21697         In an inlined body, if the context type is private,
21698         resolve with its full view, which must be a composite type.
21699
21700 2005-11-14  Robert Dewar  <dewar@adacore.com>
21701             Ed Schonberg  <schonberg@adacore.com>
21702
21703         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21704         Do not give obsolescent warning on with of subprogram (since we
21705         diagnose calls)
21706         (Analyze_With_Clause): Add test for obsolescent package
21707         (Install_Context_Clauses): If the unit is the body of a child unit, do
21708         not install twice the private declarations of the parents, to prevent
21709         circular lists of Use_Clauses in a parent.
21710         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
21711         compiling body of child unit.
21712         Use new class N_Subprogram_Instantiation
21713         (Expand_With_Clause): If this is a private with_clause for a child unit,
21714         appearing in the context of a package declaration, then the implicit
21715         with_clauses generated for parent units are private as well.
21716         (License_Check): Do not generate message if with'ed unit is internal
21717
21718 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
21719             Ed Schonberg  <schonberg@adacore.com>
21720             Thomas Quinot  <quinot@adacore.com>
21721
21722         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
21723         names are internal, because they will not have a corresponding partner
21724         in the actual package.
21725         (Analyze_Formal_Package): Move the setting of the formal package spec's
21726         Generic_Parent field so that it occurs prior to analyzing the package,
21727         to allow proper operation of Install_Parent_Private_Declarations.
21728         (Analyze_Package_Instantiation): Set the instantiated package entity's
21729         Package_Instantiation field.
21730         (Get_Package_Instantiation_Node): Move declaration to package spec.
21731         Retrieve the N_Package_Instantiation node when the Package_Instantiation
21732         field is present.
21733         (Check_Generic_Child_Unit): Within an inlined call, the only possible
21734         instantiation is Unchecked_Conversion, for which no parents are needed.
21735         (Inline_Instance_Body): Deinstall and record the use_clauses for all
21736         parent scopes of a scope being removed prior to inlining an instance
21737         body.
21738         (Analyze_Package_Instantiation): Do not perform front-end inlining when
21739         the current context is itself an instance within a non-instance child
21740         unit, to prevent scope stack errors.
21741         (Save_References): If the node is an aggregate that is an actual in a
21742         call, rewrite as a qualified expression to preserve some type
21743         information, to resolve possible ambiguities in the instance.
21744         (Instance_Parent_Unit): New global variable to record the ultimate
21745         parent unit associated with a generic child unit instance (associated
21746         with the existing Parent_Unit_Visible flag).
21747         (type Instance_Env): New component Instance_Parent_Unit for stacking
21748         parents recorded in the global Instance_Parent_Unit.
21749         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
21750         stack.
21751         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
21752         it's not a top-level unit, and only do this if Instance_Parent_Unit is
21753         not already set. Replace test of Is_Child_Unit with test of parent's
21754         scope against package Standard. Add comments and a ??? comment.
21755         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
21756         on a child instance parent to test that the parent equals
21757         Instance_Parent rather than simply checking that the unit is not a
21758         child unit.
21759         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
21760         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
21761         a formal interface are ancestors of the corresponding actual.
21762         (Validate_Formal_Interface_Type): Additional legality checks.
21763         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
21764         interface types with ancestors.
21765         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
21766         to diagnose attempts to use generic within its own declaration.
21767
21768 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21769             Javier Miranda  <miranda@adacore.com>
21770
21771         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
21772         discriminant.
21773         (Build_Private_Derived_Type): The entity of the created full view of the
21774         derived type does not come from source. If after installing the private
21775         declarations of the parent scope the parent is still private, use its
21776         full view to construct the full declaration of the derived type.
21777         (Build_Derived_Record_Type): Relax the condition that controls the
21778         execution of the check that verifies that the partial view and
21779         the full view agree in the set of implemented interfaces. In
21780         addition, this test now only takes into account the progenitors.
21781         (Derive_Interface_Subprograms): No need to derive subprograms
21782         of ancestors that are interfaces.
21783         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
21784         associated code.
21785         Change name Is_Package to Is_Package_Or_Generic_Package
21786         (Complete_Subprograms_Derivation): Handle the case in which the full
21787         view is a transitive derivation of the ancestor of the partial view.
21788         (Process_Full_View): Rename local subprogram Find_Interface_In_
21789         Descendant to Find_Ancestor_Interface to leave the code more clear.
21790         Remove wrong code that avoids the generation of an error message
21791         when the immediate ancestor of the partial view is an interface.
21792         In addition some minor reorganization of the code has been done to
21793         leave it more clear.
21794         (Analyze_Type_Declaration): If type has previous incomplete tagged
21795         partial view, inherit properly its primitive operations.
21796         (Collect_Interfaces): Make public, for analysis of formal
21797         interfaces.
21798         (Analyze_Interface_Declaration): New procedure for use for regular and
21799         formal interface declarations.
21800         (Build_Derived_Record_Type): Add support for private types to the code
21801         that checks if a tagged type implements abstract interfaces.
21802         (Check_Aliased_Component_Type): The test applies in the spec of an
21803         instance as well.
21804         (Access_Type_Declaration): Clean up declaration of malformed type
21805         declared as an access to its own classwide type, to prevent cascaded
21806         crash.
21807         (Collect_Interfaces): For private extensions and for derived task types
21808         and derived protected types, the parent may be an interface that must
21809         be included in the interface list.
21810         (Access_Definition): If the designated type is an interface that may
21811         contain tasks, create Master_Id for it before analyzing the expression
21812         of the declaration, which may be an allocator.
21813         (Record_Type_Declaration): Set properly the interface kind, for use
21814         in allocators, the creation of master id's for task interfaces, etc.
21815
21816 2005-11-14  Javier Miranda  <miranda@adacore.com>
21817             Ed Schonberg  <schonberg@adacore.com>
21818
21819         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
21820         omitted in case of stream attribute subprograms.
21821         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
21822         appear immediately after a subprogram body, when there is no previous
21823         subprogram declaration.
21824         Change name Is_Package to Is_Package_Or_Generic_Package
21825         (Process_Formals): A non null qualifier on a non null named access
21826         type is not an error, and is a warning only if Redundant_Constructs
21827         are flagged.
21828
21829 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
21830             Ed Schonberg  <schonberg@adacore.com>
21831
21832         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
21833         nested within Analyze_Package_Specification to install the private
21834         declarations and use clauses within each of the parent units of a
21835         package instance of a generic child package.
21836         (Analyze_Package_Specification): When entering a private part of a
21837         package associated with a generic instance or formal package, the
21838         private declarations of the parent must be installed (by calling new
21839         procedure Install_Parent_Private_Declarations).
21840         Change name Is_Package to Is_Package_Or_Generic_Package
21841         (Preserve_Full_Attributes): For a synchronized type, the corresponding
21842         record is absent in a generic context, which does not indicate a
21843         compiler error.
21844
21845 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21846
21847         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
21848         not try to rewrite a renamed stream attribute, because the operations
21849         on the type may not have been generated.
21850         Handle properly a renaming_as_body generated for a stream operation
21851         whose default is abstract because the object type itself is abstract.
21852         (Find_Type): If the type is incomplete and appears as the prefix of a
21853         'Class reference, it is tagged, and its list of primitive operations
21854         must be initialized properly.
21855         (Chain_Use_Clauses): When chaining the use clauses that appear in the
21856         private declaration of a parent unit, prior to compiling the private
21857         part of a child unit, find on the scope stack the proper parent entity
21858         on which to link the use clause.
21859         (Note_Redundant_Use): Emit a warning when a redundant use clause is
21860         detected.
21861         (Analyze_Object_Renaming): An attribute reference is not a legal object
21862         if it is not a function call.
21863
21864 2005-11-14  Robert Dewar  <dewar@adacore.com>
21865             Ed Schonberg  <schonberg@adacore.com>
21866
21867         * sem_eval.adb: Implement d.f flag
21868         (Subtype_Statically_Match): A generic actual type has unknown
21869         discriminants when the corresponding actual has a similar partial view.
21870         If the routine is called to validate the signature of an inherited
21871         operation in a child instance, the generic actual matches the full view,
21872
21873 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
21874             Ed Schonberg  <schonberg@adacore.com>
21875             Robert Dewar  <dewar@adacore.com>
21876             Thomas Quinot  <quinot@adacore.com>
21877
21878         * sem_res.adb (Resolve_Call): Provide a better error message whenever
21879         a procedure call is used as a select statement trigger and is not an
21880         entry renaming or a primitive of a limited interface.
21881         (Valid_Conversion): If the operand has a single interpretation do not
21882         remove address operations.
21883         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
21884         statement to inhibit warning.
21885         (Resolve_Unary_Op): Do not produce a warning when
21886         processing an expression of the form -(A mod B)
21887         Use Universal_Real instead of Long_Long_Float when we need a high
21888         precision float type for the generated code (prevents gratuitous
21889         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21890         (Resolve_Concatenation_Arg): Improve error message when argument is an
21891         ambiguous call to a function that returns an array.
21892         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
21893         there is an implicit operator in the given scope if we are within an
21894         instance: legality check has been performed on the generic.
21895         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
21896         after resolving operand, to avoid false warnings on overloaded calls.
21897
21898 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21899             Javier Miranda  <miranda@adacore.com>
21900
21901         PR ada/15604
21902         * sem_type.adb (Covers): In an inlined body, a composite type matches
21903         a private type whose full view is a composite type.
21904         (Interface_Present_In_Ancestor): Protect the frontend against
21905         previously detected errors to ensure that its compilation
21906         with assertions enabled gives the same output that its
21907         compilation without assertions.
21908         (Interface_Present_In_Ancestor): Add support for private types.
21909         Change name In_Actual to In_Generic_Actual (clean up)
21910         (Disambiguate): New predicate In_Actual, to recognize expressions that
21911         appear in the renaming declaration generated for generic actuals, and
21912         which must be resolved in the outer context.
21913
21914 2005-11-14  Robert Dewar  <dewar@adacore.com>
21915             Thomas Quinot  <quinot@adacore.com>
21916             Hristian Kirtchev  <kirtchev@adacore.com>
21917             Ed Schonberg  <schonberg@adacore.com>
21918
21919         * sem_util.ads, sem_util.adb: Change name Is_Package to
21920         Is_Package_Or_Generic_Package.
21921         (Check_Obsolescent): New procedure.
21922         (Set_Is_Public): Remove obsolete junk test.
21923         (Set_Public_Status): Do not set Is_Public on an object whose declaration
21924         occurs within a handled_sequence_of_statemets.
21925         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
21926         for a parameterless procedure.
21927         (Enter_Name): Recognize renaming declarations created for private
21928         component of a protected type within protected operations, so that
21929         the source name of the component can be used in the debugger.
21930
21931 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21932             Robert Dewar  <dewar@adacore.com>
21933
21934         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
21935         of a generic subprogram are not visible outside the body.
21936         (Set_Warning_Switch): New procedure (code to set warning mode moved
21937         here from Switch.C so that it can be shared by pragma processing.
21938         (Check_References): Special case warning for non-modified non-imported
21939         volatile objects.
21940         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
21941         form with a string literal argument
21942
21943 2005-11-14  Javier Miranda  <miranda@adacore.com>
21944
21945         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
21946         anonymous access.
21947         (Write): Addition of "not null" to the anonymous access.
21948         (Read): Addition of "not null" to the anonymous access.
21949         (Write): Addition of "not null" to the anonymous access.
21950
21951         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
21952         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
21953         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
21954         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
21955         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
21956         "not null" to the anonymous access.
21957
21958 2005-11-14  Robert Dewar  <dewar@adacore.com>
21959
21960         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
21961         offset values
21962
21963 2005-11-14  Vincent Celier  <celier@adacore.com>
21964
21965         * switch.adb (Bad_Switch): New procedure
21966         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
21967         message when in error.
21968
21969         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
21970         Too_Many_Output_Files): Remove declarations, no longer used.
21971         (Scan_Nat): New parameter Switch
21972         (Scan_Pos): Ditto
21973         (Bad_Switch): New procedure
21974
21975         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
21976         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
21977         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
21978         to Osint.Fail. Do not handle any exception.
21979
21980 2005-11-14  Vincent Celier  <celier@adacore.com>
21981
21982         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
21983         designates a non existent directory.
21984
21985 2005-11-14  Robert Dewar  <dewar@adacore.com>
21986
21987         * xgnatugn.adb: Replace invalid membership test by 'Valid
21988
21989 2005-11-14  Vincent Celier  <celier@adacore.com>
21990
21991         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
21992         there is no object directory.
21993
21994 2005-11-14  Robert Dewar  <dewar@adacore.com>
21995
21996         * usage.adb: Minor adjustment to output format, use nn instead of nnn
21997         (so that -gnateInnn does not run into next column)
21998
21999 2005-11-14  Ed Falis  <falis@adacore.com>
22000
22001         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22002         "constrained"
22003
22004 2005-11-14  Cyrille Comar  <comar@adacore.com>
22005
22006         * s-chepoo.ads: Add comments on Dereference.
22007         Remove unnecessary inherited abstract primitives.
22008         Cosmetic cleanup.
22009
22010 2005-11-14  Robert Dewar  <dewar@adacore.com>
22011
22012         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22013         node parameter, not needed, since it is available as Declaration_Node.
22014
22015 2005-11-14  Geert Bosch  <bosch@adacore.com>
22016
22017         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22018         grammatically correct.
22019
22020 2005-11-14  Vincent Celier  <celier@adacore.com>
22021
22022         * s-fileio.ads: Correct spelling error in comment
22023
22024 2005-11-14  Cyrille Comar  <comar@adacore.com>
22025             Robert Dewar  <dewar@adacore.com>
22026             Vincent Celier  <celier@adacore.com>
22027             Ben Brosgol  <brosgol@adacore.com>
22028             Jose Ruiz  <ruiz@adacore.com>
22029             Pascal Obry  <obry@adacore.com>
22030
22031         * gnat_ugn.texi: 
22032         Document that -fstack-check is needed for strict compliance with the
22033         Ada 95 Reference Manual.
22034         Correct reference to VAX systems to meet HP guidelines
22035         Add documentation for new gnatmake switches -vl, -vm and -vh
22036         Replace DEC Ada by HP Ada
22037         Replace DIGITAL by HP
22038         Remove empty section on tools in compatibility section
22039         Clarify the Windows convention semantics.
22040         Document the Win32 calling convention.
22041         The Stdcall, Win32 and DLL convention are synonyms.
22042         Add a note in -gnatR description about zero size record components
22043         Note on new >= and <= warnings for -gnatwc
22044         Document that equal sign after -gnatm is optional.
22045         Note that strip is working fine on DLL built with a Library
22046         Project. The restriction apply only to DLL built with gnatdll.
22047         Update section about the way to debug a DLL.
22048         Update information about the DLL convention.
22049         Document -C switch for gnatprep
22050         Document new attribute Library_ALI_Dir
22051         Update elaboration doc to include implicit Elaborate pragmas now
22052         generated for subprogram instantiations.
22053         Document limitation on executable names that include spaces for --GCC,
22054         --GNATBIND, and --GNATLINK switches.
22055         Document that -w causes -gnatws to be added at start of gcc switches
22056
22057         * gnat_rm.texi: Document that -mieee is needed for generating infinite
22058         and NaN values in case of overflow on machines that are not fully
22059         compliant with the IEEE floating-point standard.
22060         Create a section describing the set of compiler options needed for
22061         strict compliance with the Ada 95 Reference Manual.
22062         Add documentation for pragma Obsolescent applied to a package
22063         Clarify potential issues of mixed language programs related to the
22064         I/O buffering enabling in the elaboration of the GNAT runtime.
22065         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22066         This documentation only patch adds extra documentsion for pragma
22067         Restrictions (No_Elaboration_Code), explaining why it is not possible
22068         to document this restriction in terms of allowed source constructs.
22069         Document string literal form of pragma Warnings
22070         Document new attribute Library_ALI_Dir
22071         Add documentation on stable attributes in project files that was missing
22072
22073         * gnat-style.texi: Indicate that paragraphs within a single comment
22074         should be separated by empty comment lines
22075
22076         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22077         /05 respectively)
22078
22079         * bindusg.adb: Minor cleanup, put -m before -M for consistency
22080
22081 2005-11-14  Robert Dewar  <dewar@adacore.com>
22082
22083         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22084         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22085         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22086         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22087         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22088         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22089         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22090         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
22091         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
22092         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22093         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
22094         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
22095         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
22096         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
22097         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
22098         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
22099         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
22100         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
22101         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
22102         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
22103         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22104         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
22105         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
22106         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
22107         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
22108         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
22109         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
22110         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
22111         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
22112         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
22113         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
22114         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
22115         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
22116         system-interix.ads, system-solaris-sparc.ads,
22117         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
22118         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
22119         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
22120         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
22121         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
22122         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
22123         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
22124         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22125         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
22126         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
22127         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
22128         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
22129         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
22130         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
22131         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
22132         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
22133         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
22134         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
22135         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
22136         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
22137         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
22138         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
22139         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
22140         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
22141         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
22142         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22143         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
22144         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
22145         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
22146         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
22147         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
22148         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
22149         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22150         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
22151         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
22152         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
22153         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22154         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
22155         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
22156         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
22157         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
22158         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
22159         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
22160         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
22161         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
22162         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
22163         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
22164         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
22165         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
22166         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
22167         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
22168         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
22169         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
22170         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
22171         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
22172         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
22173         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
22174         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
22175         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
22176         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
22177         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
22178         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
22179         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
22180         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
22181         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
22182         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
22183         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
22184         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
22185         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
22186         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
22187         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
22188         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
22189         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
22190         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
22191         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
22192         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
22193         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
22194         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
22195         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
22196         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
22197         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
22198         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
22199         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
22200         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
22201         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
22202         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
22203         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
22204         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
22205         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
22206         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
22207         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
22208         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
22209         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
22210         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
22211         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
22212         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
22213         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
22214         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
22215         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
22216         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
22217         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
22218         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
22219         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
22220         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
22221         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
22222         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
22223         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
22224         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
22225         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
22226         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
22227         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
22228         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
22229         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
22230         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
22231         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
22232         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
22233         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
22234         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
22235         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
22236         a-numaux-darwin.ads, a-numaux-darwin.adb,
22237         a-swuwha.ads, a-stunha.ads: Minor reformatting
22238
22239 2005-11-14  Robert Dewar  <dewar@adacore.com>
22240
22241         PR ada/18434
22242         * osint-m.adb: Add pragma Elaborate_All for Osint
22243
22244 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
22245
22246         PR ada/23995
22247         * trans.c (call_to_gnu): Restore statement lost in translation.
22248
22249 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
22250
22251         * init.c: Use the Linux-specific section for the IA-64/Linux target.
22252         (__gnat_adjust_context_for_raise): Add conditional code so that the
22253         IA-64 is also supported.
22254
22255 2005-11-03  James E Wilson  <wilson@specifix.com>
22256
22257         PR ada/23427
22258         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
22259         TREE_OVERFLOW check.
22260
22261 2005-09-21  Olivier Hainque  <hainque@adacore.com>
22262
22263         PR ada/22418
22264         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
22265         as we create them to store a size in bits.
22266
22267 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
22268
22269         PR ada/21937
22270         PR ada/22328
22271         PR ada/22381
22272         PR ada/22383
22273         PR ada/22419
22274         PR ada/22420
22275         * utils2.c (build_return_expr): New helper function.
22276         * gigi.h (build_return_expr): Declare it.
22277         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
22278         of manually building the RETURN_EXPR tree.
22279         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
22280         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
22281         build_binary_op for the "target pointer" case.  Use build_return_expr
22282         instead of manually building the RETURN_EXPR tree.
22283
22284 2005-09-16  Laurent Guerby  <laurent@guerby.net>
22285
22286         PR ada/23788
22287         * s-tpinop.ads: Make this unit Preelaborate.
22288
22289 2005-09-16  Andreas Jaeger  <aj@suse.de>
22290
22291         * socket.c: Add string.h for memcpy.
22292
22293 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
22294
22295         * dec-io.ads, dec-io.adb: Removed, no longer used.
22296
22297 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22298
22299         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
22300
22301         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22302         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
22303         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
22304         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
22305         dependent units are Preelaborate.
22306         (Initialize): Call Interrupt_Managemeent.Initialize and
22307         OS_Primitives.Initialize to ensure proper initialization of this unit.
22308         Remove use of System.Soft_Links
22309         Make this unit Preelaborate.
22310
22311         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22312         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
22313         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
22314         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
22315         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
22316         s-tratas.ads, s-tasinf.ads: Minor reformatting.
22317         Add pragma Preelaborate, since these packages are suitable for this
22318         categorization.
22319         Update comments.
22320
22321         * s-traent-vms.ads, s-intman-dummy.adb,
22322         s-taprop-dummy.adb: Make this unit Preelaborate.
22323
22324         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
22325         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
22326         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
22327         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
22328         s-intman-solaris.adb, s-intman-irix-athread.adb,
22329         s-intman-irix.adb: Mark this unit Preelaborate.
22330         (Initialize): New procedure.
22331         Update comments.
22332
22333         * s-taspri-linux.ads: Removed.
22334
22335         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
22336         as done by other implementations (e.g. posix).
22337
22338         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
22339         responsible for deferring abort.
22340         Mark this unit Preelaborate.
22341
22342         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
22343         proper initialization of the tasking run-time.
22344
22345         * s-tasdeb.ads: Mark this unit Preelaborate.
22346         (Known_Tasks): Add explicit default value to avoid elaboration code.
22347
22348         * s-inmaop-vms.adb (Elaboration code): Add call to
22349         Interrupt_Management.Initialize since the elaboration code depends on
22350         proper initialization of this package.
22351
22352         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
22353         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
22354         s-osprim-posix.adb: Make this unit Preelaborate.
22355
22356         * a-calend.adb: Add call to OS_Primitives.Initialize
22357
22358         * a-elchha.adb: Update use of Except.Id.Full_Name.
22359         Minor reformatting.
22360         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
22361
22362         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
22363         Move with clauses outside Warnings Off now that dependent units are
22364         Preelaborate.
22365         Use raise xxx with "..."; Ada 2005 form.
22366
22367         * a-taside.ads, a-taside.adb:
22368         Remove some dependencies, to make it easier to make this unit truly
22369         Preelaborate.
22370         Rewrite some code to be conformant with Preelaborate rules.
22371
22372         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
22373         marked Preelaborate in the future.
22374
22375         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
22376         these units Preelaborate.
22377
22378         * s-exctab.adb: Update use of Except.Id.Full_Name.
22379
22380         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
22381         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
22382         Set_Exc_Stack_Addr): Removed, no longer used.
22383         Remove reference to *Machine_State_Addr*, no longer needed.
22384
22385         * s-stalib.ads: Mark this unit as Preelaborate[_05].
22386         (Exception_Data): Full_Name is now a System.Address so that this unit
22387         can be made Preelaborate.
22388         Clean up/simplify code thanks to Full_Name being a System.Address.
22389         Remove obsolete pragma Suppress (All_Checks), no longer needed.
22390
22391         * s-taskin.ads, s-taskin.adb:
22392         Move with clauses outside Warnings Off now that dependent units are
22393         Preelaborate.
22394         Make this unit Preelaborate.
22395         (Initialize): New proceduure, replace elaboration code and makes the
22396         set up of the tasking run-time cleaner.
22397         (Detect_Blocking): Now a function instead of a deferred boolean, to
22398         obey Preelaborate rules.
22399
22400         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
22401         soft links, no longer used.
22402
22403         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
22404         packages are suitable for this categorization.
22405
22406         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
22407         since we compile run-time sources in Ada 2005 mode.
22408         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
22409         avoid having s-taprop*.adb depend on s-soflin and to avoid code
22410         duplication.
22411         Remove reference to *Machine_State_Addr*, no longer needed.
22412
22413 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22414
22415         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
22416         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22417         Remove reference to System.Exceptions.
22418
22419         * s-mastop-x86.adb: Removed, no longer used.
22420
22421         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
22422
22423         * a-excach.adb: Minor reformatting.
22424
22425         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
22426         instead fix new warnings that were hidden by this change.
22427         (AAA, ZZZ): Removed, replaced by...
22428         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
22429         are used instead of constants, to help make Ada.Exception truly
22430         preelaborate.
22431         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
22432         Raise_Storage_Error): File is now a System.Address, to simplify code.
22433         (Elab code): Removed, no longer used.
22434         (Null_Occurrence): Remove Warnings Off and make this construct
22435         preelaborate.
22436         Remove code related to front-end zero cost exception handling, since
22437         it is no longer used.
22438         Remove -gnatL/-gnatZ switches.
22439
22440         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
22441         Update use of Except.Msg.
22442
22443         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
22444         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
22445         to front-end zero cost exception handling, since it is no longer used.
22446         Remove -gnatL/-gnatZ switches.
22447
22448         * lib-writ.ads: Minor reformatting
22449         Remove doc of UX
22450
22451         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
22452
22453         * Make-lang.in: Remove references to s-except.ads
22454
22455         * s-except.ads: Removed, no longer used.
22456
22457         * s-mastop.ads, s-mastop.adb:
22458         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22459         Remove reference to System.Exceptions.
22460
22461         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
22462         switch-b.adb: Remove code related to front-end zero cost exception
22463         handling, since it is no longer used.
22464         Remove -gnatL/-gnatZ switches.
22465
22466 2005-09-01  Robert Dewar  <dewar@adacore.com>
22467             Gary Dismukes  <dismukes@adacore.com>
22468             Javier Miranda  <miranda@adacore.com>
22469
22470         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
22471         type by valid test and generate warning.
22472         (Tagged_Membership): Generate call to the run-time
22473         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
22474         Change formal name Subtype_Mark to Result_Definition in several calls to
22475         Make_Function_Specification.
22476         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
22477         check for proper accessibility of the operand of a class-wide allocator.
22478         The check can be left out if checks are suppressed or if the expression
22479         has a specific tagged type whose level is known to be safe.
22480
22481         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
22482         generates the run-time check associated with null-excluding entities.
22483         (Expand_N_Return_Statement): Add tests to determine if the accessibility
22484         check on the level of the return expression of a class-wide function
22485         can be elided. The check usually isn't needed if the expression has a
22486         specific type (unless it's a conversion or a formal parameter). Also
22487         add a test for whether accessibility checks are suppressed. Augment
22488         the comments to describe the conditions for performing the check.
22489
22490 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
22491             Javier Miranda  <miranda@adacore.com>
22492             Gary Dismukes  <dismukes@adacore.com>
22493             Ed Schonberg  <schonberg@adacore.com>
22494
22495         * a-tags.adb (IW_Membership): Give support to
22496         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
22497         subprogram has been extended to look for the tag in the ancestors tag
22498         table.
22499         Update the structure of the GNAT Dispatch Table to reflect the
22500         additional two tables used in dispatching selects.
22501         Introduce appropriate array types and record components in
22502         Type_Specific_Data to reflect the two tables.
22503         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
22504         the TSD of a tag, indexed by position.
22505         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
22506         operation kind in the TSD of a tag, indexed by position.
22507
22508         * a-tags.ads: Introduce an enumeration type to capture different
22509         primitive operation kinds. Define a constant reflecting the number of
22510         predefined primitive operations.
22511         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
22512         of an entry wrapper.
22513         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
22514         callable entity of a primitive operation.
22515
22516         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
22517         primitive operations used in dispatching selects for limited
22518         interfaces, limited tagged, task and protected types what implement a
22519         limited interface.
22520         (Freeze_Type): Generate the bodies of the primitive operations used in
22521         dispatching selects for limited tagged, task and protected types that
22522         implement a limited interface. Generate statements to populate the two
22523         auxiliary tables used for dispatching in select statements.
22524         (Freeze_Record_Type): Add call to initialize the dispatch table entries
22525         associated with predefined interface primitive operations.
22526         (Build_Dcheck_Function): Change Set_Subtype_Mark to
22527         Set_Result_Definition.
22528         (Build_Variant_Record_Equality): Change Subtype_Mark to
22529         Result_Definition.
22530         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
22531         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
22532         (Build_Assignment): Simplify the code that adds the run-time-check.
22533         (Expand_N_Object_Declaration): Code cleanup.
22534
22535         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
22536         entries when there is a protected type that implements a limited
22537         interface.
22538
22539         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
22540         common routines used in expansion of dispatching selects.
22541         (Add_Private_Declarations): Select the appropriate protection type when
22542         there is a protected type that implements a limited interface.
22543         (Build_Parameter_Block): Generate a wrapped parameter block.
22544         (Build_Protected_Subprogram_Body): Select the appropriate type for
22545         locking entries when there is a protected type that implements a
22546         limited interface.
22547         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
22548         classified as entry wrappers.
22549         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
22550         asynchronous selects.
22551         (Expand_N_Conditional_Entry_Call): Add support for expansion of
22552         dispatching conditional selects.
22553         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
22554         protection when there is a protected type that implements limited
22555         interfaces.
22556         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
22557         timed selects.
22558         (Extract_Dispatching_Call): Extract the entity of the name of a
22559         dispatching call, the object parameter, actual parameters and
22560         corresponding formals.
22561         (Make_Initialize_Protection): Correct logic of protection initialization
22562         when there is a protected type that implements a limited interface.
22563         (Parameter_Block_Pack): Populate a wrapped parameter block with the
22564         values of actual parameters.
22565         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
22566         block and assign them to the original actual parameters.
22567
22568         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
22569         (Build_Protected_Sub_Specification): Change the type and name of the
22570         last formal to account for the increased variety of protection modes.
22571
22572         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
22573         entities. Used to save the value of the Is_Hidden attribute when the
22574         limited-view is installed.
22575         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
22576         the attribute of procedures classified as entry wrappers.
22577         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
22578         entity of a primitive wrapper.
22579         (Write_Entity_Flags): Output the name and value of the
22580         Is_Primitive_Wrapper attribute.
22581         (Write_Field27_Name): Output the name and entity of the field Wrapped_
22582         Entity.
22583         (Underlying_Type): If we have an incomplete entity that comes from
22584         the limited view then we return the Underlying_Type of its non-limited
22585         view if it is already available.
22586         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
22587         including operators.
22588         (Write_Field26_Name): Add entry for Overridden_Operation
22589         (Overridden_Operation): New attribute of functions and procedures.
22590
22591         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
22592         predefined position in the dispatch table for the primitive operations
22593         used in dispatching selects.
22594         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
22595         predefined primitive operations and replace it with
22596         Default_Prim_Op_Count.
22597         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
22598         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
22599         the names of the generated primitive operations used in dispatching
22600         selects.
22601         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
22602         case of abstract interface types. They will be inherit by the objects
22603         implementing the interface.
22604         (Make_DT): There is no need to inherit the dispatch table of the
22605         ancestor interface for the elaboration of abstract interface types.
22606         The dispatch table will be inherited by the object implementing the
22607         interface.
22608         (Copy_Secondary_DTs): Add documentation.
22609         (Validate_Position): Improve this static check in case of
22610         aliased subprograms because aliased subprograms must have
22611         the same position.
22612         (Init_Predefined_Interface_Primitives): New subprogram that initializes
22613         the entries associated with predefined primitives of all the secondary
22614         dispatch tables.
22615         (Build_Anonymous_Access_Type): Removed.
22616         (Expand_Interface_Actuals): With the previous cleanup there is no need
22617         to build an anonymous access type. This allows further cleanup in the
22618         code generated by the expander.
22619         (Expand_Interface_Conversion): If the actual is an access type then
22620         build an internal function to handle the displacement. If the actual
22621         is null this function returns null because no displacement is
22622         required; otherwise performs a type conversion that will be
22623         expanded in the code that returns the value of the displaced actual.
22624         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
22625         conversions that have no effect in the generated code because no
22626         displacement is required. Code cleanup; use local variables to
22627         avoid repeated calls to the subprogram directly_designated_type().
22628
22629         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
22630         Classify the primitive operations used in dispatching selects as
22631         predefined.
22632         (Implements_Limited_Interface): Determine whether some type either
22633         directly implements a limited interface or extends a type that
22634         implements a limited interface.
22635         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
22636         (Expand_Subtype_From_Expr): Do not build actual subtype if the
22637         expression is limited.
22638         (Find_Interface_Tag): Add code to handle class-wide types and
22639         entities from the limited-view.
22640
22641         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
22642         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
22643         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
22644         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
22645         Set_Prim_Op_Kind.
22646
22647         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
22648         of procedure name or prefix that appears as a trigger in a triggering
22649         alternative.
22650
22651         * uintp.ads: Introduce constants Uint_11 and Uint_13.
22652
22653 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22654
22655         * s-tataat.adb, a-tasatt.adb:
22656         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
22657
22658         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
22659         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
22660         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
22661         longer used.
22662
22663 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22664             Jose Ruiz  <ruiz@adacore.com>
22665
22666         * s-taprop-vxworks.adb:
22667         Move with clauses outside Warnings Off now that dependent units are
22668         Preelaborate.
22669         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
22670         initialization of this unit.
22671         (Specific): Add new procedures Initialize and Delete so that this
22672         package can be used for VxWorks 5.x and 6.x
22673         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
22674         differences between VxWorks 5.x and 6.x
22675         Minor reformatting.
22676         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
22677         caller.
22678         Use only Preelaborate-compatible constructs.
22679
22680         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
22681         Primitives.Operations.
22682         (Delete, Initialize): New procedures.
22683
22684         * s-osinte-vxworks.adb: Body used to handle differences between
22685         VxWorks 5.x and 6.x
22686         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
22687
22688         * s-osinte-vxworks.ads: Minor reformatting.
22689         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
22690         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
22691         and 6.
22692         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
22693         between Vxworks 5 and 6.
22694         (taskLock, taskUnlock): Removeed, no longer used.
22695
22696         * adaint.c: The wait.h header is not located in the sys directory on
22697         VxWorks when using RTPs.
22698         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
22699         using RTPs.
22700         (__gnat_dup): dup is available on Vxworks when using RTPs.
22701         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
22702
22703         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
22704
22705         * expect.c: The wait.h header is not located in the sys directory on
22706         VxWorks when using RTPs.
22707
22708 2005-09-01  Thomas Quinot  <quinot@adacore.com>
22709
22710         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
22711
22712         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
22713
22714         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
22715         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22716         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
22717         g-soccon-freebsd.ads: Add new constants:
22718          IP_MULTICAST_IF
22719          SO_RCVTIMEO/SO_SNDTIMEO
22720          IOV_MAX
22721
22722         * gen-soccon.c:
22723         Move all target-specific file inclusions and macro definitions to
22724         gsocket.h, in order to ensure that any C code in socket.c will see a
22725         set of constants that is consistent with the contents of g-soccon.ads.
22726
22727         * gsocket.h: Code imported from gen-soccon.c:
22728         Move all target-specific file inclusions and macro definitions to
22729         gsocket.h, in order to ensure that any C code in socket.c will see a set
22730         of constants that is consistent with the contents of g-soccon.ads.
22731         This change also makes gen-soccon self-contained (removing dependencies
22732         upon GCC internal headers).
22733
22734         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
22735         iovecs at a time.
22736         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
22737
22738         * socket.c: Minor reformatting.
22739
22740 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22741             Thomas Quinot  <quinot@adacore.com>
22742
22743         * fname-sf.adb, mlib-tgt.ads,
22744         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
22745         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
22746         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
22747         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
22748         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
22749         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
22750         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
22751         makegpr.adb: Remove redundant use_clauses.
22752
22753 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22754
22755         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
22756         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
22757         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
22758         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
22759         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
22760         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
22761         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
22762         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
22763         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22764         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
22765         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
22766         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
22767         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
22768         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
22769         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
22770         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
22771         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22772         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22773         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
22774         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
22775         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
22776         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
22777         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
22778         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
22779         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
22780         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
22781         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
22782         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
22783         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
22784         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
22785         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
22786         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
22787         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
22788         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
22789         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
22790         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
22791         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
22792         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
22793         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
22794         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
22795         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
22796         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
22797         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
22798         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
22799         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
22800         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
22801         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
22802         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
22803         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
22804         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
22805         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
22806         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
22807         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
22808         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
22809         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
22810         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
22811         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
22812         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
22813         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
22814         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
22815         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
22816         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
22817         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
22818         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
22819         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
22820         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
22821         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
22822         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
22823         and always use the no parameter form for consistency.
22824
22825         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
22826
22827 2005-09-01  Robert Dewar  <dewar@adacore.com>
22828
22829         * binde.adb: Minor reformatting
22830         (Find_Elab_Order): Output warning if -p used with static elab order
22831
22832 2005-09-01  Robert Dewar  <dewar@adacore.com>
22833
22834         * checks.adb (Check_Needed): New procedure, deals with removing checks
22835         based on analysis of short-circuited forms. Also generates warnings for
22836         improper use of non-short-circuited forms.
22837         Code clean ups.
22838
22839 2005-09-01  Robert Dewar  <dewar@adacore.com>
22840
22841         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
22842         with 'Valid tests.
22843
22844 2005-09-01  Robert Dewar  <dewar@adacore.com>
22845
22846         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
22847         spec.
22848         Implement new insertion char < (conditional warning)
22849         * errutil.adb, erroutc.adb: Implement new insertion char <
22850         (conditional warning).
22851         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
22852         (Error_Msg_Warn): New variable for < insertion char.
22853         * prj-nmsc.adb: Implement new errout insertion char < (conditional
22854         warning).
22855         (Check_For_Source): Change value of Source_Id only after the current
22856         source has been dealt with.
22857
22858 2005-09-01  Robert Dewar  <dewar@adacore.com>
22859             Doug Rupp  <rupp@adacore.com>
22860
22861         * exp_attr.adb: Handle vax fpt for 'Valid attribute
22862         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
22863         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
22864         (Valid_D, Valid_F, Valid_G): New functions
22865
22866 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22867             Hristian Kirtchev  <kirtchev@adacore.com>
22868             Javier Miranda  <miranda@adacore.com>
22869
22870         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
22871         from object notation, the original node is unanalyzed and carries no
22872         semantic information, so that accessiblity checks must be performed on
22873         the type of the actual itself.
22874         (Expand_N_Subprogram_Declaration): Change last actual parameter for
22875         compatibility with Build_Protected_Sub_Specification.
22876         (Check_Overriding_Inherited_Interfaces): Add suport to handle
22877         overloaded primitives.
22878         (Register_Interface_DT_Entry): Use the new name of the formal
22879         the the calls to Expand_Interface_Thunk
22880
22881         * exp_dbug.ads: Augment comments on encoding of protected types to
22882         include the generation of dispatching subprograms when the type
22883         implements at least one interface.
22884
22885         * lib.ads: Extend information in Load_Stack to include whether a given
22886         load comes from a Limited_With_Clause.
22887
22888         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
22889         whether a potential circularity is harmless, because it includes units
22890         loaded through a limited_with clause. Extends previous treatment which
22891         did not handle properly arbitrary combinations of limited and
22892         non-limited clauses.
22893
22894 2005-09-01  Nicolas Setton  <setton@adacore.com>
22895
22896         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
22897         to be encoded as typ___XBLU_lowerbound__upperbound instead of
22898         typ___XB_lowerbound__upperbound.
22899
22900 2005-09-01  Thomas Quinot  <quinot@adacore.com>
22901
22902         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
22903         dummy access formal for RACW/RAS TypeCode TSS.
22904         (Build_TypeCode_Call): Do not generate dummy null access actual for
22905         calls to the TypeCode TSS.
22906
22907 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22908
22909         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
22910         fully qualified name, to distinguish instances with the same local name.
22911
22912         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
22913         fully qualified.
22914
22915 2005-09-01  Robert Dewar  <dewar@adacore.com>
22916
22917         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
22918         packed arrays.
22919
22920 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
22921
22922         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
22923         (Free): New deallocation procedure for filter elements
22924         (Close): Deallocate any existing filter for the concerned connection
22925
22926 2005-09-01  Laurent Pautet  <pautet@adacore.com>
22927
22928         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
22929         position set is provided, we compute one in order to reduce the maximum
22930         length of the keys.  This computation first selects a character
22931         position between 1 and the minimum length of the keys in order to
22932         avoid reducing one of the keys to an empty string.
22933         (Initialize, Compute): When the ratio V to K is too low, the algorithm
22934         does not converge. The initialization procedure now comes with a
22935         maximum number of iterations such that when exceeded, an exception is
22936         raised in Compute. The user can initialize this ratio to another value
22937         and try again
22938         Reformating and updated headers.
22939
22940 2005-09-01  Javier Miranda  <miranda@adacore.com>
22941
22942         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
22943         that given an entity T creates and returns an Itype that duplicates the
22944         contents of T. The returned Itype has the null-exclusion
22945         attribute set to True, and its Etype attribute references T
22946         to keep the association between the two entities.
22947         Update copyright notice
22948
22949         * sem_aggr.adb (Check_Can_Never_Be_Null,
22950         Aggregate_Constraint_Checks, Resolve_Aggregate,
22951         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
22952
22953         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
22954
22955 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
22956             Robert Dewar  <dewar@adacore.com>
22957             Hristian Kirtchev  <kirtchev@adacore.com>
22958
22959         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
22960         Result_Definition.
22961
22962         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
22963         function specs.
22964         Call Set_Result_Definition instead of Set_Subtype_Mark.
22965         (P_Subprogram_Specification): Add parsing of anonymous access result
22966         plus null exclusions. Call Set_Result_Definition instead of
22967         Set_Subtype_Mark.
22968
22969         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22970         (P_Access_Type_Definition): Add parsing for an anonymous access result
22971         subtype, plus parsing for null exclusions. Call Set_Result_Definition
22972         instead of Set_Subtype_Mark.
22973
22974         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22975         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
22976         (Result_Definition): New function for N_Function_Specifications.
22977         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
22978         N_Function_Specification.
22979         (Set_Null_Exclusion_Present): Allow this flag for
22980         N_Function_Specification.
22981         (Set_Result_Definition): New procedure for N_Function_Specifications.
22982         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
22983         and N_Function_Specification.
22984
22985         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
22986         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
22987         Add support for LIMITED NEW for Ada 2005 AI-419
22988         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
22989         syntax for anonymous access results.
22990         Replace Subtype_Mark field by Result_Definition in
22991         N_Function_Specification and N_Access_Definition specs.
22992         Add Null_Exclusion_Present to spec of N_Function_Specification.
22993         (Result_Definition): New function for N_Function_Specification and
22994         N_Access_Function_Definition.
22995         (Set_Result_Definition): New procedure for N_Function_Specification and
22996         N_Access_Function_Definition.
22997
22998         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
22999         Result_Definition for cases of N_Access_Function_Definition and
23000         N_Function_Specification.
23001         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23002
23003 2005-09-01  Vincent Celier  <celier@adacore.com>
23004
23005         * lib-writ.adb: Update Copyright notice
23006         (Write_With_Lines): On platforms where file names are case-insensitive,
23007         record the file names in lower case.
23008         (Write_ALI): For D lines, on platforms where file names are
23009         case-insensitive, record the file names in lower case.
23010
23011 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23012             Emmanuel Briot  <briot@adacore.com>
23013
23014         * lib-xref.adb (Output_Overridden_Op): Display information on
23015         overridden operation.
23016
23017         * lib-xref.ads: Add documentation on overridden operations.
23018
23019         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23020         information.
23021
23022         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23023         overriding entity information.
23024
23025 2005-09-01  Vincent Celier  <celier@adacore.com>
23026
23027         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23028         including those that are inherited.
23029
23030 2005-09-01  Robert Dewar  <dewar@adacore.com>
23031
23032         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23033
23034         * par-prag.adb: Implement new pragma Debug_Policy
23035
23036         * sem_prag.adb Implement new pragma Debug_Policy
23037         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23038         Component_Size attribute specification. Give warning for ignored pragma
23039         Pack.
23040
23041         * snames.h, snames.ads, snames.adb: Introduce entries in
23042         Preset_Names for Name_Disp_Asynchronous_Select,
23043         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23044         Name_Disp_Timed_Select.
23045         New pragma Debug_Policy
23046
23047         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23048         explicitly.
23049         Switch -gnata also sets Debug_Pragmas_Enabled
23050
23051         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23052         handle an explicit -gnata when compiling predefined files.
23053
23054 2005-09-01  Vincent Celier  <celier@adacore.com>
23055
23056         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23057         directories of projects that have no Ada sources.
23058
23059 2005-09-01  Robert Dewar  <dewar@adacore.com>
23060
23061         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23062         (makes a difference for wide characters)
23063
23064         * widechar.adb, widechar.ads:
23065         Add Wide_Char_Byte_Count feature to count chars vs bytes
23066
23067 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23068             Ed Schonberg  <schonberg@adacore.com>
23069             Robert Dewar  <dewar@adacore.com>
23070
23071         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23072         'Address attribute reference with an overloaded prefix, use the
23073         location of the prefix (not the location of the attribute reference) as
23074         the error location.
23075         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23076         a function renaming thereof, is a valid prefix for 'Size (where it is
23077         intepreted as a function call).
23078         (Statically_Denotes_Entity): New predicate to determine whether the
23079         prefix of an array attribute can be considered static.
23080
23081         PR ada/9087
23082         (Eval_Attr): Fix failure to evaluate Component_Size for
23083         unconstrained arrays (resulted in wrong value in packed case, since
23084         back end cannot handle this case)
23085
23086 2005-09-01  Robert Dewar  <dewar@adacore.com>
23087
23088         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23089         error msgs for most common cases.
23090         Use new errout insertion char < (conditional warning)
23091
23092 2005-09-01  Javier Miranda  <miranda@adacore.com>
23093             Ed Schonberg  <schonberg@adacore.com>
23094
23095         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
23096         become local to the whole package.
23097         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
23098         the package was already analyzed the new algorithm "replaces" the
23099         real entities by the shadow ones. This is required to ensure that
23100         the order of these entities in the homonym chains does not change;
23101         otherwise we can have undefined references at linking time because
23102         in case of conflicts the external name of the entities will have
23103         a suffix that depends on the order of the entities in the chain.
23104         (Remove_Limited_With_Clause): Complementary code that completes the
23105         new algorithm and replaces the shadow entities by the real ones.
23106         (Install_Limited_Withed_Unit): When unchaining entities before the
23107         installation of the shadow entities, only regular entities of the
23108         public part must be taken into account. This is required to
23109         keep this routine in synch with the work done by Remove_Limited_
23110         With_Clause
23111         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
23112         even if unit is analyzed, because the analysis of the unit is
23113         idempotent in any case, and the limited view of the unit may have to
23114         be installed for proper visibility.
23115         (Expand_Limited_With_Clause): Even if the unit in the implicit
23116         with_clause has been analyzed already, a limited view of the package
23117         must be built for the current context, if it does not exist yet.
23118
23119 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23120             Javier Miranda  <miranda@adacore.com>
23121             Gary Dismukes  <dismukes@adacore.com>
23122
23123         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
23124         defining entity for the instance body, make a new defining identifier
23125         rather than copying the entity of the spec, to prevent accidental
23126         sharing of the entity list.
23127         (Check_Private_View): When exchanging views of private types, build the
23128         list of exchanged views as a stack, to ensure that on exit the exchanges
23129         are undone in the proper order.
23130         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
23131         Restore the compilation environment in case of instantiation_error.
23132         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
23133         for an anonymous access result.
23134         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
23135         (Formal_Entity): Handle properly the case of a formal package that
23136         denotes a generic package renaming.
23137
23138 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23139
23140         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
23141         clause if the array aggregate is surrounded by parentheses.
23142
23143 2005-09-01  Cyrille Comar  <comar@adacore.com>
23144             Gary Dismukes  <dismukes@adacore.com>
23145             Ed Schonberg  <schonberg@adacore.com>
23146             Javier Miranda  <miranda@adacore.com>
23147
23148         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
23149         underlying type
23150         to check if a type is Constrained in cases related to code generation
23151         (rather than semantic checking) since otherwise we do not generate
23152         similar code for mutable private types depending if their
23153         discriminants are visible or not.
23154         (Check_Abstract_Overriding): Do not complain about failure to override
23155         the primitive operations used in dispatching selects since they will
23156         always be overriden at the freeze point of the type.
23157         (Access_Definition): Separate out handling for resetting the scope
23158         of an anonymous access function result type. Retrieve the scope
23159         of the associated function rather than using Current_Scope, which
23160         does not have a consistent value (depends on whether we're in the
23161         middle of analyzing formal parameters). Add ??? comment about
23162         finding a cleaner way to handle the special cases of scope setting.
23163         (Process_Incomplete_Dependents): A protected operation is never a
23164         dispatching operation (only its wrapper may be).
23165         (Build_Derived_Record_Type): In case of tagged private types that
23166         implement interfaces add derivation of predefined primitive
23167         operations.
23168         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
23169         by two parameters that are used in case of derivation from abstract
23170         interface types: No_Predefined_Prims is used to avoid the derivation
23171         of predefined primitives from the interface, and Predefined
23172         Prims_Only is used to complete the derivation predefined primitives
23173         in case of private tagged types implementing interfaces.
23174         Fix typo in comments
23175         (Find_Interface_In_Descendant): Protect the frontend against
23176         wrong code with large circularity chains.
23177         (Is_Private_Overriding): Add support for entities overriding interface
23178         subprograms. The test failed because Entities associated with overriden
23179         interface subprograms are always marked as hidden (and used to build
23180         the secondary dispatch table); in this case the overriden entity is
23181         available through the field abstract_interface_alias (cf. override_
23182         dispatching_operation)
23183         (Access_Definition): Set the scope of the type to Current_Scope for the
23184         case of a function with an anonymous access result type.
23185         (Access_Subprogram_Declaration): Handle creation of the type entity for
23186         an access-to-function type with an anonymous access result.
23187         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
23188         in handling for N_Access_Function_Definition.
23189         (Analyze_Subtype_Declaration): Modify the text of error message.
23190         (Derived_Type_Declaration): Modify the text of error message.
23191         (Process_Subtype): Modify the text of error message plus cleanup
23192         of one redundant error message.
23193         (Analyze_Component_Declaration): Code cleanup.
23194         (Analyze_Object_Declaration): Code cleanup.
23195         (Analyze_Subtype_Declaration): Propagate the null-exclusion
23196         attribute in case of access types. Code cleanup.
23197         (Array_Type_Declaration): Code cleanup.
23198         (Process_Discriminants): Create the new null-excluding itype
23199         if required. Code cleanup.
23200         (Process_Subtype): Create the new null-excluding itype if
23201         required. Code cleanup.
23202         (Build_Derived_Record_Type): Code cleanup to avoid calling
23203         twice the subprogram derive_subprograms in case of private
23204         types that implement interfaces. In this particular case the
23205         subprogram Complete_Subprograms_Derivation already does the
23206         job associated with the second call.
23207
23208         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
23209         conversion to the full view when generating an operation for a
23210         discriminant whose type may currently be private.
23211
23212 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23213             Javier Miranda  <miranda@adacore.com>
23214
23215         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
23216         V (Obj.F), the rewriting does not involve the indexed component, but
23217         only the selected component itself.
23218         Do not apply the transformation if the analyzed node is an actual of a
23219         call to another subprogram.
23220         (Complete_Object_Operation): Retain the entity of the
23221         dispatching operation in the selector of the rewritten node. The
23222         entity will be used in the expansion of dispatching selects.
23223         (Analyze_One_Call): Improve location of the error message associated
23224         with interface.
23225         (Analyze_Selected_Component): No need to resolve prefix when it is a
23226         function call, resolution is done when parent node is resolved, as
23227         usual.
23228         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
23229         when attempting to resolve a call transformed from its object notation.
23230         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
23231         of the argument list for each interpretation of the operation.
23232         (Try_Object_Operation): The designated type of an access parameter may
23233         be an incomplete type obtained through a limited_with clause, in which
23234         case the primitive operations of the type are retrieved from its full
23235         view.
23236         (Analyze_Call): If this is an indirect call, and the return type of the
23237         access_to_subprogram is incomplete, use its full view if available.
23238
23239 2005-09-01  Javier Miranda  <miranda@adacore.com>
23240             Gary Dismukes  <dismukes@adacore.com>
23241
23242         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
23243         access types the null-exclusion and access-to-constant attributes must
23244         also match.
23245         (Analyze_Return_Statement): When the result type is an anonymous access
23246         type, apply a conversion of the return expression to the access type
23247         to ensure that appropriate accessibility checks are performed.
23248         (Analyze_Return_Type): For the case of an anonymous access result type,
23249         generate the Itype and set Is_Local_Anonymous_Access on the type.
23250         Add ??? placeholder for check to disallow returning a limited object
23251         in Ada 2005 unless it's an aggregate or a result of a function call.
23252         Change calls from Subtype_Mark to Result_Definition.
23253         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
23254         Result_Definition in call to Make_Function_Specification.
23255         (Build_Body_To_Inline): Change Set_Subtype_Mark to
23256         Set_Result_Definition.
23257         (Make_Inequality_Operator): Change formal Subtype_Mark to
23258         Result_Definition in call to Make_Function_Specification.
23259         (Process_Formals): Create the new null-excluding itype if required.
23260         (New_Overloaded_Entity): For an entity overriding an interface primitive
23261         check if the entity also covers other abstract subprograms in the same
23262         scope. This is required to handle the general case, that is, overriding
23263         other interface primitives and overriding abstract subprograms inherited
23264         from some abstract ancestor type.
23265         (New_Overloaded_Entity): For an overriding entity that comes from
23266         source, note the operation that it overrides.
23267         (Check_Conformance, Type_Conformant): Addition of one new formal
23268         to skip controlling formals in the analysis. This is used to
23269         handle overloading of abstract interfaces.
23270         (Base_Types_Match): Add missing case for types imported from
23271         limited-with clauses
23272         (New_Overloaded_Entity): Add barrier to protect the use of
23273         the "alias" attribute.
23274
23275 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23276
23277         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
23278         verify that the procedure and the entry are mode conformant.
23279         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
23280         as a different operator, which is often a cut-and-paste error.
23281
23282 2005-09-01  Javier Miranda  <miranda@adacore.com>
23283             Ed Schonberg  <schonberg@adacore.com>
23284
23285         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
23286         used in controlling parameters exclude null because it is necessary to
23287         read the tag to dispatch, and null has no tag.
23288         (Override_Dispatching_Operation): If the previous operation is inherited
23289         from an interface, it becomes hidden  and does not participate in later
23290         name resolution.
23291
23292 2005-09-01  Javier Miranda  <miranda@adacore.com>
23293             Ed Schonberg  <schonberg@adacore.com>
23294             Gary Dismukes  <dismukes@adacore.com>
23295
23296         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
23297         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
23298         the expander will generate the corresponding run-time check to evaluate
23299         the expression.
23300         (Resolve_Call): Check for legal type of procedure name or prefix that
23301         appears as a trigger in a triggering alternative.
23302         (Valid_Conversion): If expression is ambiguous and the context involves
23303         an extension of System, remove System.Address interpretations.
23304         (Resolve_Qualified_Expression): Reject the case of a specific-type
23305         qualification applied to a class-wide argument. Enhance comment
23306         to explain checking of Original_Node.
23307         (Resolve_Type_Conversion): The location of the error message was not
23308         general enough to handle the general case and hence it has been removed.
23309         In addition, this patch improves the text of the message.
23310         (Resolve_Type_Conversion): Add missing support for access to interface
23311         types.
23312         (Resolve_Type_Conversion): If the target is a class-wide interface type,
23313         do not expand if the expression is the actual in a call, because proper
23314         expansion will take place when the call itself is expanded.
23315         (Resolve_Allocator): If the context is an unchecked conversion, the
23316         allocator inherits its storage pool, if any, from the target type of
23317         the conversion.
23318
23319 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23320             Javier Miranda  <miranda@adacore.com>
23321
23322         * sem_type.adb (Add_One_Interp): If a candidate operation is an
23323         inherited interface operation that has an implementation, use the
23324         implementation to avoid spurious ambiguities.
23325         (Interface_Present_In_Ancestor): In case of concurrent types we can't
23326         use the Corresponding_Record_Typ attribute to look for the interface
23327         because it is set by the expander (and hence it is not always
23328         available). For this reason we traverse the list of interfaces
23329         (available in the parent of the concurrent type).
23330         (Interface_Present_In_Ancestor): Handle entities from the limited view
23331
23332 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23333
23334         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
23335         from the list of required components.
23336         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
23337         primitive procedure of a limited interface with a controlling first
23338         parameter.
23339         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
23340         of an entry.
23341         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
23342         capture if it is generated in the second operand of a short-circuit
23343         operation.
23344         Do not capture values for variables with address clauses.
23345         (Is_Object_Reference): Treat a function call as an object reference only
23346         if its type is not Standard_Void_Type.
23347
23348 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23349
23350         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
23351         to a variable that is statically known to be constant.
23352
23353 2005-09-01  Geert Bosch  <bosch@adacore.com>
23354             Robert Dewar  <dewar@adacore.com>
23355
23356         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
23357         (VAXGF_Safe_First): Idem.
23358
23359 2005-09-01  Robert Dewar  <dewar@adacore.com>
23360             Arnaud Charlet  <charlet@adacore.com>
23361
23362         * g-dirope.ads: Minor reformatting
23363         Document that bounds of result of Base_Name match the input index
23364         positions.
23365         Add documentation on environment variable syntax for Expand_Path
23366
23367         * gnat_ugn.texi: Update documentation to include mention of -m switches
23368         Document new treatment of wide characters in max line length
23369         style check.
23370         Remove -gnatL/-gnatZ switches, no longer used.
23371         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
23372         of -gnata switch.
23373
23374         * gnat_rm.texi: Add doc for two argument form of pragma
23375         Float_Representation.
23376         Add documentation for pragma No_Strict_Aliasing
23377         Add note that explicit component clause overrides pragma Pack.
23378         Add documentation of pragma Debug_Policy
23379
23380 2005-09-01  Matthew Heaney  <heaney@adacore.com>
23381
23382         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
23383         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
23384         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
23385         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
23386         draft (Draft 13, August 2005) of Ada Amendment 1.
23387
23388 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23389
23390         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
23391         Note that the platform-specific version of g-soccon.ads for VMS is now
23392         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
23393         really is a package spec).
23394         Replace s-taspri-linux.ads by s-taspri-posix.ads
23395         Remove references to s-mastop-x86.adb
23396
23397         * system-vxworks-xscale.ads: Removed, no longer used.
23398         * s-vxwork-xscale.ads: Removed, no longer used.
23399
23400 2005-09-01  Robert Dewar  <dewar@adacore.com>
23401
23402         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
23403         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
23404         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
23405         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
23406         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
23407         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
23408         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
23409         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
23410         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
23411         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
23412         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
23413         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
23414         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
23415         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
23416         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
23417         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
23418         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
23419         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
23420         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
23421         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
23422         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
23423
23424 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
23425
23426         PR ada/23187
23427         * adaint.c
23428         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
23429
23430 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
23431             Doug Rupp  <rupp@adacore.com>
23432
23433         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
23434         when needed.
23435         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
23436         this code in the GNAT run-time.
23437
23438         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
23439
23440         PR ada/21053
23441         * init.c (__gnat_error_handler [many]): Mark "msg" as const
23442         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
23443
23444         (__gnat_inside_elab_final_code): Moved here from
23445         Standard_Library and only defined for the compiler.
23446         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
23447         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
23448         using RTPs because directly vectored Interrupt routines are not
23449         supported on this configuration.
23450         (getpid): Do not redefine this function on VxWorks when using RTPs
23451         because this primitive is well supported by the RTP libraries.
23452         (copy_msg): Correct the code that checks for buffer overflow.
23453         Discovered during code reading.
23454
23455 2005-08-29  Olivier Hainque  <hainque@adacore.com>
23456
23457         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
23458         a library level mutable variable with an initializer, tell
23459         build_allocator to ignore the initializer's size. It may not be large
23460         enough for all the values that might be assigned to the variable later
23461         on.
23462
23463 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
23464             Eric Botcazou  <ebotcazou@adacore.com>
23465
23466         * trans.c: Protect < in error msg with quote
23467         Replace GCC_ZCX by Back_End_Exceptions.
23468         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
23469         has been sufficiently aligned in the record.
23470
23471 2005-08-15  James E. Wilson  <wilson@specifix.com>
23472
23473         * system-linux-alpha.ads: Change ia64 to alpha.
23474
23475 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
23476
23477         * decl.c, utils.c: Fix comment typos.
23478
23479 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
23480
23481         * decl.c, init.c, initialize.c: Fix comment typos.
23482
23483 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
23484
23485         Make CONSTRUCTOR use VEC to store initializers.
23486         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
23487         CONSTRUCTOR_ELTS.
23488         * trans.c (extract_values): Likewise.
23489         * utils.c (convert, remove_conversions): Likewise.
23490         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
23491         gnat_build_constructor): Likewise.
23492
23493 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
23494
23495         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
23496         DECL_SECTION_NAME.
23497         (compare_field_bitpos): Likewise.
23498
23499 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
23500
23501         * utils.c (create_var_decl): Only set DECL_COMMON on
23502         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
23503         VAR_OR_FUNCTION_DECL_P.
23504
23505 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
23506
23507         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
23508         removed.
23509
23510 2005-07-07  Pascal Obry  <obry@adacore.com>
23511
23512         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
23513         returned type on Windows.
23514
23515         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
23516         routine.
23517
23518         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
23519         exception in this case.
23520         Simplify the code as "Image (Image'Range)" = "Image".
23521
23522 2005-07-07  Vincent Celier  <celier@adacore.com>
23523
23524         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
23525         the destructor/constructor attributes for <lib>final/<lib>init.
23526
23527         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
23528
23529 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
23530
23531         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
23532         type if the parameter is not passed by copy but reference by default.
23533
23534 2005-07-07  Javier Miranda  <miranda@adacore.com>
23535
23536         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
23537         Reimplementation of the support for abstract interface types in order
23538         to leave the code more clear and easy to maintain.
23539
23540         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
23541         abstract interface types in order to leave the code clearer and easier
23542         to maintain.
23543
23544         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
23545         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
23546         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
23547         appropriate entry of the secondary dispatch table.
23548         (Make_DT): Add code to inherit the secondary dispatch tables of
23549         the ancestors.
23550
23551         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
23552         implementing both functionalities by means of a common routine, each
23553         routine has its own code.
23554
23555 2005-07-07  Javier Miranda  <miranda@adacore.com>
23556
23557         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
23558
23559         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
23560         types:
23561         --
23562           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23563         --
23564
23565         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
23566         use of tag incomplete types.
23567
23568         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
23569         give support to tagged incomplete types.
23570
23571         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
23572         expression is a discriminant reference and its type is private, as can
23573         happen within a stream operation for a mutable record, use the full
23574         view of the type to resolve the case alternatives.
23575         (Analyze_Assignment): Check wrong dereference of incomplete types.
23576
23577         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
23578         types.
23579
23580         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
23581         incomplete types.
23582
23583         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
23584         N_Incomplete_Type_Declaration nodes.
23585
23586         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
23587         Tag_Present to give support to tagged incomplete types:
23588         --
23589           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23590         --
23591
23592 2005-07-07  Olivier Hainque  <hainque@adacore.com>
23593
23594         PR ada/22301
23595         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
23596         definitions for the Unwind wrappers in the compiler case.
23597
23598 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
23599             Javier Miranda  <miranda@adacore.com>
23600
23601         * par-load.adb (Load): If a child unit is loaded through a limited_with
23602         clause, each parent must be loaded as a limited unit as well.
23603
23604         * sem_ch10.adb (Previous_Withed_Unit): Better name for
23605         Check_Withed_Unit. Return true if there is a previous with_clause for
23606         this unit, whether limited or not.
23607         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
23608         the current unit.
23609         (Is_Visible_Through_Renamings): New local subprogram of install_limited
23610         _withed_unit that checks if some package installed through normal with
23611         clauses has a renaming declaration of package whose limited-view is
23612         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
23613         of the current Draft document for Ada 2005.
23614         (Analyze_Context): Complete the list of compilation units that
23615         are allowed to contain limited-with clauses. It also contains
23616         checks that were previously done by Install_Limited_Context_Clauses.
23617         This makes the code more clear and easy to maintain.
23618         (Expand_Limited_With_Clause) It is now a local subprogram of
23619         Install_Limited_Context_Clauses, and contains the code that adds
23620         the implicit limited-with clauses for parents of child units.
23621         This functionality was prevously done by Analyze_Context.
23622
23623         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
23624         incomplete type.
23625
23626         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
23627         been erroneously named in a limited-with clause of its own context.
23628         In this case the error has been previously notified by Analyze_Context.
23629
23630 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
23631
23632         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
23633         generic package that contains local declarations with the same name.
23634         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
23635
23636 2005-07-07  Bernard Banner  <banner@adacore.com>
23637
23638         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
23639         ia64 platform only on platforms that you the GCC unwind library
23640         rather than the system unwind library.
23641
23642 2005-07-07  Thomas Quinot  <quinot@adacore.com>
23643
23644         * expect.c: Minor reformatting
23645
23646 2005-07-07  Sergey Rybin  <rybin@adacore.com>
23647
23648         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
23649         --no-separate-is
23650
23651         * gnat_ugn.texi: Add description for new gnatpp option
23652         (--no-separate-is)
23653
23654 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23655
23656         * g-expect-vms.adb, g-expect.ads, g-expect.adb
23657         (Get_Command_Output): New subprogram to launch a process and get its
23658         standard output as a string.
23659
23660 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23661             Olivier Hainque  <hainque@adacore.com>
23662
23663         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
23664         fetch a code-range descriptor associated with the machine state. On
23665         failure set the machine state's PC to 0; on success, pass the
23666         descriptor to exc_virtual_unwind.
23667
23668         * init.c (Tru64 section): New function __gnat_set_code_loc.
23669
23670 2005-07-04  Vincent Celier  <celier@adacore.com>
23671
23672         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23673         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23674         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
23675         Remove all auto-initialization code, as this is now done through the
23676         constructor mechanism.
23677
23678         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
23679         __gnat_sals_init_using_constructors): New functions.
23680
23681         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
23682         Linker_Constructor and Linker_Destructor when switch -a is used.
23683
23684         * bindusg.adb: Add line for new switch -a
23685
23686         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
23687         (Gnatbind): When switch -a is used, check if it is allowed
23688
23689         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
23690
23691 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
23692
23693         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
23694         This prevents us from hitting a limitation during the debug info
23695         generation when using stabs.
23696         (Prims_Ptr): Likewise.
23697
23698 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
23699             Ed Schonberg  <schonberg@adacore.com>
23700             Javier Miranda  <miranda@adacore.com>
23701
23702         * checks.adb (Null_Exclusion_Static_Checks): In the case of
23703         N_Object_Declaration, only perform the checks if the Object_Definition
23704         is not an Access_Definition.
23705
23706         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
23707         where the parent of an the access definition is an N_Object_Declaration
23708         when determining the Associated_Node_For_Itype and scope of an
23709         anonymous access-to-subprogram type.
23710
23711         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
23712         Corresponding_Spec on the body created for a null procedure. Add ???
23713         comment. Remove New_Copy_Tree call on body argument to
23714         Set_Body_To_Inline.
23715
23716         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
23717         discriminants, use the type of the actual as well, because the
23718         discriminants may be read by the called subprogram.
23719
23720         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
23721         access type we do not need to handle non-limited views.
23722         (Build_Derived_Record_Type): Additional check to check that in case of
23723         private types, interfaces are only allowed in private extensions.
23724
23725 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23726
23727         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
23728         <Pragma_Linker_Destructor>: Likewise.
23729
23730         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
23731         Pragma_Linker_Destructor.
23732
23733         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
23734         ATTR_LINK_DESTRUCTOR.
23735         (static_ctors, static_dtors): New variables.
23736
23737         * misc.c (gnat_expand_body): Output current function as constructor
23738         and destructor if requested.
23739
23740         * par-prag.adb: Add processing for pragma Linker_Constructor and
23741         Linker_Destructor.
23742
23743         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
23744         extracted from Check_Interrupt_Or_Attach_Handler.
23745         (Check_Interrupt_Or_Attach_Handler): Invoke it.
23746         Implement pragma Linker_Constructor and Linker_Destructor with the
23747         help of Find_Unique_Parameterless_Procedure.
23748         Replace Name_Alias with Name_Target for pragma Linker_Alias.
23749
23750         * snames.h, snames.ads, snames.adb:
23751         Add Name_Linker_Constructor and Name_Linker_Destructor.
23752         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
23753         * snames.adb: Remove Name_Alias.
23754
23755         * trans.c: Include cgraph.h.
23756         (build_global_cdtor): New function.
23757         (Compilation_Unit_to_gnu): Build global constructor and destructor if
23758         needed.
23759         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
23760         of objects too.
23761         (addressable_p) <COMPONENT_REF>: Unconditionally test
23762         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
23763
23764         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
23765         variable if it is external.
23766
23767         (static_ctors, static_dtors): New global variables.
23768         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
23769         <ATTR_LINK_DESTRUCTOR>: Likewise.
23770         (end_subprog_body): Chain function as constructor and destructor
23771         if requested.
23772
23773         * exp_util.adb (Force_Evaluation): Unconditionally invoke
23774         Remove_Side_Effects with Variable_Ref set to true.
23775         (Remove_Side_Effects): Handle scalar types first. Use a renaming
23776         for non-scalar types even if Variable_Ref is true and for class-wide
23777         expressions.
23778
23779 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23780
23781         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
23782         to prevent spurious warnings.
23783
23784 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23785
23786         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
23787         Itypes. Itypes are really unexpected there.
23788         (Build_TypeCode_Function): Generalise special processing for Itypes to
23789         handle the case of numeric implicit base types as well as enumerated
23790         ones.
23791
23792 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23793
23794         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
23795         controlled, indicate the expected type of the dereference that is
23796         created for the call to Deep_Finalize, to prevent spurious errors when
23797         the designated type is private and completed with a derivation from
23798         another private type.
23799
23800 2005-07-04  Vincent Celier  <celier@adacore.com>
23801
23802         * make.adb (Change_To_Object_Directory): When unable to change the
23803         current dir to the object directory, output the full path of the
23804         directory.
23805
23806 2005-07-04  Matthew Gingell  <gingell@adacore.com>
23807
23808         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
23809
23810         * indepsw-linux.adb: Replace by...
23811
23812         * indepsw-gnu.adb: ...this new file
23813
23814 2005-07-04  Vincent Celier  <celier@adacore.com>
23815
23816         * mlib-prj.adb (Auto_Initialize): New constant String
23817         (SALs_Use_Constructors): New Boolean function
23818         (Build_Library): Call gnatbind with Auto_Initialize switch when
23819         SALs_Use_Constructors returns True.
23820
23821         * mlib-tgt.ads: Minor reformatting
23822
23823         * mlib-utl.ads: Minor reformatting
23824
23825         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
23826
23827 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23828
23829         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
23830         single protected declarations can have an interface list.
23831         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
23832         with seriously malformed entry declarations, and lead to compilation
23833         abandoned messages.
23834
23835 2005-07-04  Javier Miranda  <miranda@adacore.com>
23836
23837         * par-load.adb: Load the context items in two rounds.
23838
23839 2005-07-04  Robert Dewar  <dewar@adacore.com>
23840
23841         * scng.adb: Do not consider Mod used as an attribute to be a keyword
23842
23843 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23844             Javier Miranda  <miranda@adacore.com>
23845
23846         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
23847         type extension needs a limited view.
23848         Remove previous restriction on private types available through the
23849         limited-view (only tagged private types were previously allowed).
23850         (Install_Withed_Unit): In the code that implements the
23851         legality rule given in AI-377, exclude a child unit with the name
23852         Standard, because it is a homonym of the Standard environment package.
23853
23854 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23855
23856         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
23857         overloaded function call, carry interpretations from the original tree
23858         to the copy.
23859
23860 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23861
23862         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
23863         types check whether some designated type is a limited view, and use
23864         the non-limited view if available.
23865
23866 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
23867
23868         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
23869         constraint of full view of a private view T1 if present, when T2 is a
23870         discriminated full view.
23871
23872 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23873
23874         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
23875         actual that is a view conversion of a bit packed array reference.
23876
23877 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23878
23879         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
23880         present before checking whether an interface type covers a synchronized
23881         type.
23882
23883 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23884
23885         * sem_util.adb (Is_Object_Reference): An indexed or selected component
23886         whose prefix is an implicit dereference is an object reference. Removes
23887         spurious errors when compiling with -gnatc.
23888
23889 2005-07-04  Robert Dewar  <dewar@adacore.com>
23890
23891         PR ada/22039
23892         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
23893
23894 2005-07-04  Matthew Gingell  <gingell@adacore.com>
23895
23896         * tracebak.c: Enable tracebacks on ia64 platforms
23897
23898 2005-07-04  Vincent Celier  <celier@adacore.com>
23899
23900         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
23901         the GNAT BIND command, as gnatbind accepts multiples ALI files with
23902         the -L or -n switches.
23903
23904 2005-07-04  Vincent Celier  <celier@adacore.com>
23905
23906         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
23907         correctly computed and the main project data is not modified while
23908         doing so.
23909         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
23910         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
23911         c++linker as this does not work on some platforms.
23912
23913 2005-07-04  Matthew Heaney  <heaney@adacore.com>
23914
23915         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
23916         was changed.
23917         * a-coinve.adb: Perform constraint checks explicitly.
23918
23919 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23920             Thomas Quinot  <quinot@adacore.com>
23921
23922         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
23923         new target gen-soccon.
23924
23925 2005-07-04  Robert Dewar  <dewar@adacore.com>
23926
23927         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
23928
23929 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23930
23931         * g-socket.ads (Check_Selector): Minor rewording of comment.
23932
23933 2005-07-04  Vincent Celier  <celier@adacore.com>
23934
23935         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
23936
23937 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23938
23939         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
23940
23941 2005-07-04  Sergey Rybin  <rybin@adacore.com>
23942
23943         * gnat_ugn.texi: Add description of --eol gnatpp option
23944
23945 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23946             Thomas Quinot  <quinot@adacore.com>
23947
23948         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
23949         if the user wants all calls of a subprogram to be flagged,
23950         independently of whether they are made from within the same unit or
23951         another unit.
23952         Mention restriction for pragma Linker_Alias on some platforms.
23953         Document pragma Linker_Constructor and Linker_Destructor.
23954         Rewrite documentation of Weak_External, Linker_Section and
23955         Linker_Alias pragmas.
23956
23957 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
23958
23959         * s-stausa.ads, s-stausa.adb: New files.
23960
23961 2005-06-30  Kelley Cook
23962
23963         * all files:  Update FSF address in copyright headers.
23964         * gen-soccon.co (main): Output new FSF address in generated files.
23965
23966 2005-06-28  Paul Brook  <paul@codesourcery.com>
23967
23968         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
23969
23970 2005-06-14  Olivier Hainque  <hainque@adacore.com>
23971             Eric Botcazou  <ebotcazou@adacore.com>
23972
23973         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
23974         exc_unwind, now that we are generating proper .debug_frame output for
23975         that target.
23976
23977         * tracebak.c: Remove the mips-irix section, as we are now using the
23978         s-mastop based unwinder again.
23979         Under SPARC/Solaris, take into account the stack bias to compute the
23980         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
23981         ABI.
23982
23983 2005-06-14  Doug Rupp  <rupp@adacore.com>
23984
23985         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
23986
23987         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
23988
23989 2005-06-14  Pascal Obry  <obry@adacore.com>
23990
23991         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
23992         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
23993         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
23994         package name).
23995
23996         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
23997         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
23998         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
23999         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24000         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24001         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24002         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24003         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24004         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24005         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24006         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24007         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24008         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24009         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24010         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24011         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24012         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24013         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24014         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24015         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24016         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24017         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24018         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24019         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24020         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24021         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24022         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24023         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24024         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24025         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24026         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24027         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24028         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24029         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24030         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24031         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24032         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24033         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24034         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24035         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24036         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24037         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24038         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24039         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24040         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24041         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24042         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24043         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24044         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24045         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24046         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24047         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24048         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24049         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24050         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24051         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24052         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24053         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24054         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24055         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24056         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24057         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24058         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24059         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24060         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24061         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24062         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24063         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24064         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24065         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24066         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24067         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24068         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24069         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24070         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24071         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24072         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24073         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24074         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24075         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24076         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24077         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24078         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24079         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24080         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24081         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24082         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24083         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24084         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24085         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24086         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24087         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24088         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24089         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
24090         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
24091         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
24092         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
24093         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
24094         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
24095         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
24096         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
24097         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
24098         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
24099         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
24100         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
24101         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
24102         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
24103         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
24104         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
24105         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
24106         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
24107         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
24108         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24109         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
24110         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
24111         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
24112         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
24113         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
24114         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
24115         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
24116         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
24117         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
24118         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
24119         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
24120         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
24121         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
24122         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
24123         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
24124         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
24125         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
24126         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
24127         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
24128         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
24129
24130 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
24131             Arnaud Charlet  <charlet@adacore.com>
24132
24133         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
24134         longer protected objects. They have been replaced by lower-level
24135         suspension objects made up by a mutex and a condition variable (or
24136         their equivalent given a particular OS) plus some internal data to
24137         reflect the state of the suspension object.
24138         (Initialize, Finalize): Add this initialization procedure for
24139         Suspension_Object, which is a controlled type.
24140         (Finalize): Add the finalization procedure for Suspension_Object,
24141         which is a controlled type.
24142
24143         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
24144         Ada.Synchronous_Task_Control because there is no longer a need for a
24145         VxWorks specific version of this package. Target dependencies
24146         has been moved to System.Task_Primitives.Operations.
24147
24148         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
24149         longer needed.
24150         (InitializeCriticalSection, EnterCriticalSection,
24151         LeaveCriticalSection, DeleteCriticalSection): Replace the type
24152         pCriticalSection by an anonymous access type so that we avoid problems
24153         of accessibility to local objects.
24154
24155         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
24156         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24157         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
24158         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
24159         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
24160         set the environment task mask here.
24161         (Current_State): Add this function that returns the state of the
24162         suspension object.
24163         (Set_False): Add this procedure that sets the state of the suspension
24164         object to False.
24165         (Set_True): Add this procedure that sets the state of the suspension
24166         object to True, releasing the task that was suspended, if any.
24167         (Suspend_Until_True): Add this procedure that blocks the calling task
24168         until the state of the object is True. Program_Error is raised if
24169         another task is already waiting on that suspension object.
24170         (Initialize): Add this procedure for initializing the suspension
24171         object. It initializes the mutex and the condition variable which are
24172         used for synchronization and queuing, and it sets the internal state
24173         to False.
24174         (Finalize): Add this procedure for finalizing the suspension object,
24175         destroying the mutex and the condition variable.
24176
24177         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
24178         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
24179         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
24180         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
24181         which provides a low-level abstraction (using operating system
24182         primitives) for Ada.Synchronous_Task_Control.
24183         This object is made up by a mutex (for ensuring mutual exclusion), a
24184         condition variable (for queuing threads until the condition is
24185         signaled), a Boolean (State) indicating whether the object is open,
24186         and a Boolean (Waiting) reflecting whether there is a task already
24187         suspended on this object.
24188
24189         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
24190         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
24191         s-intman-vms.ads, s-intman-mingw.adb,
24192         (Initialize_Interrupts): Removed, no longer used.
24193
24194         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
24195         (Setup_Interrupt_Mask): New procedure.
24196
24197         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
24198
24199         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
24200
24201         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
24202         this is no longer done in the body of s-taprop
24203         (Server_Task): Explicitely test for Pending_Action in case
24204         System.Parameters.No_Abort is True.
24205
24206         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
24207         is no longer done in the body of s-taprop
24208
24209 2005-06-14  Robert Dewar  <dewar@adacore.com>
24210
24211         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24212         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24213         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24214         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24215         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24216         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
24217         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
24218         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24219         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
24220         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
24221         system-linux-hppa.ads, system-vms_64.ads,
24222         system-vxworks-alpha.ads: Minor comment update for
24223         AI-362 (unit is Pure).
24224
24225         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
24226         Add pragma Pure_05 for AI-362
24227         Make remaining conversion functions obsolescent in Ada 95
24228
24229         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24230         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
24231         Add entries for a-wichun and a-zchuni
24232         Add a-widcha a-zchara for AI-395
24233         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
24234
24235         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24236         Add entries for a-wichun.o and a-zchuni.o
24237         Entries for a-widcha.o and a-zchara.o
24238         Add entry for a-chacon.o
24239
24240         * a-ztenau.adb: Add with of Ada.Characters.Conversions
24241
24242         * a-chacon.ads, a-chacon.adb: New files.
24243
24244         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
24245         categorization violations.
24246
24247         * a-strmap.ads: Add pragma Pure_05 for AI-362
24248         * a-strmap.ads: Add note on implicit categorization for AI-362
24249
24250         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
24251
24252         * par-prag.adb: Dummy entry for pragma Persistent_BSS
24253         Set Ada_Version_Explicit, for implementation of AI-362
24254         Add processing for pragma Pure_05 and Preelaborate_05
24255         Add entry for Assertion_Policy pragma
24256
24257         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
24258         when needed for proper processing of categorization stuff
24259
24260         * sem_cat.adb:
24261         For several cases, make errors in preealborate units warnings,
24262         instead of errors, if GNAT_Mode is set. For AI-362.
24263
24264         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
24265         preelaborate unit is now warning if in GNAT mode
24266
24267         * s-stoele.ads: Document AI-362 for pragma preelaborate
24268
24269 2005-06-14  Doug Rupp  <rupp@adacore.com>
24270
24271         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
24272         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
24273         Default_Exception_Msg_Max_Length: new parameter.
24274
24275         * a-except.ads: (Exception_Msg_Max_Length): Set to
24276         System.Parameters.Default_Exception_Msg_Max_Length
24277         Add pragma Preelaborate_05 for AI-362
24278         Add warnings off to allow categorization violations for AI-362
24279
24280 2005-06-14  Vincent Celier  <celier@adacore.com>
24281
24282         * gnatsym.adb: Adapt to modification of package Symbols: procedure
24283         Process is now in package Processing.
24284
24285         * symbols.ads, symbols.adb:
24286         (Processing): New package, containing procedure Process
24287
24288         * symbols-vms-alpha.adb:
24289         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
24290
24291         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
24292         symbols-processing-vms-ia64.adb: New files.
24293
24294 2005-06-14  Pascal Obry  <obry@adacore.com>
24295
24296         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
24297         implementation. This new version generates the proper DllMain routine
24298         to initialize the SAL. The DllMain is generated in Ada and compiled
24299         before being added as option to the library build command.
24300
24301 2005-06-14  Doug Rupp  <rupp@adacore.com>
24302             Pascal Obry  <obry@adacore.com>
24303
24304         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
24305         call to decc$translate_vms.
24306         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
24307         need to remove those quotes before catenating the filename.
24308         (__gnat_locate_exec_on_path): improvements to the Win32 section:
24309         * avoid allocating the memory twice for better efficiency;
24310         * allocate 32K buffer for environment expansion as suggested by MSDN;
24311         * prepend ".;" to the path so that current directory is searched too.
24312
24313 2005-06-14  Robert Dewar  <dewar@adacore.com>
24314
24315         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
24316         instead of raising CE (AI-241)
24317         Add warnings off to allow categorization violations for AI-362
24318
24319 2005-06-14  Robert Dewar  <dewar@adacore.com>
24320
24321         * ali-util.adb, gnatbind.adb: Remove references to
24322         Force_RM_Elaboration_Order.
24323
24324         * switch-b.adb: Remove recognition of -f switch
24325
24326 2005-06-14  Pascal Obry  <obry@adacore.com>
24327
24328         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
24329         implementation which is slightly more efficient.
24330
24331 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
24332             Javier Miranda  <miranda@adacore.com>
24333             Ed Schonberg  <schonberg@adacore.com>
24334             Hristian Kirtchev  <kirtchev@adacore.com>
24335
24336         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
24337         allocator's designated type is a class-wide type, and compiling for
24338         Ada 2005, emit a run-time check that the accessibility level of the
24339         type given in the allocator's expression is not deeper than the level
24340         of the allocator's access type.
24341
24342         (Tagged_Membership): Modified to gives support to abstract interface
24343         types.
24344
24345         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
24346         Access_Level.
24347         (Descendant_Tag): New predefined function
24348         (Is_Descendant_At_Same_Level): New predefined function
24349         (Get_Access_Level): New private function
24350         (Set_Access_Level): New private procedure
24351         (IW_Membership): New function. Given the tag of an object and the tag
24352         associated with an interface, evaluate if the object implements the
24353         interface.
24354         (Register_Interface_Tag): New procedure used to initialize the table of
24355         interfaces used by the IW_Membership function.
24356         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
24357         of the dispatch table.
24358         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
24359         table of interfaces of the parent.
24360         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
24361         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
24362         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
24363         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
24364         Ada 2005 semantics for the new predefined function.
24365
24366         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
24367         call to Descendant_Tag rather than Internal_Tag.
24368         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
24369         the accessibility level of the attribute's Item parameter is not deeper
24370         than the level of the attribute's prefix type. Tag_Error is raised if
24371         the check fails. The check is only emitted for Ada_05.
24372         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
24373         requested stream attribute, use it.
24374         (Expand_N_Attribute_Reference): If the designated type is an interface
24375         then rewrite the referenced object as a conversion to force the
24376         displacement of the pointer to the secondary dispatch table.
24377         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
24378         is a dereference of an object with a constrained partial view.
24379
24380         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
24381         type is a class-wide type, emit a run-time check that the accessibility
24382         level of the returned object is not deeper than the level of the
24383         function's master (only when compiling for Ada 2005).
24384
24385         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
24386         Action_Nb_Arg): Add entries for new Get_Access_Level and
24387         Set_Access_Level routines in these tables.
24388         (Make_DT): Generate a call to set the accessibility level of the
24389         tagged type in its TSD.
24390         (Make_DT): Code cleanup. The functionality of generating all the
24391         secondary dispatch tables has been moved to freeze_record_type.
24392         (Make_Abstract_Interface_DT): Minor code cleanup.
24393         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
24394         this subprogram implements a new algorithm that provides the
24395         same functionality and it is more clear in case of primitives
24396         associated with abstract interfaces.
24397         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
24398         clean up, the functionality of this subprogram is now provided
24399         by Set_All_DT_Position.
24400         (Write_DT): New subprogram: a debugging procedure designed to be called
24401         within gdb to display the dispatch tables associated with a tagged
24402         type.
24403         (Collect_All_Interfaces): New subprogram that collects the whole list
24404         of interfaces that are directly or indirectly implemented by a tagged
24405         type.
24406         (Default_Prim_Op_Position): New subprogram that returns the fixed
24407         position in the dispatch table of the default primitive operations.
24408         (Expand_Interface_Actuals): New subprogram to generate code that
24409         displaces all the actuals corresponding to class-wide interfaces to
24410         reference the interface tag of the actual object.
24411         (Expand_Interface_Conversion): New subprogram. Reference the base of
24412         the object to give access to the interface tag associated with the
24413         secondary dispatch table.
24414         (Expand_Interface_Thunk): New subprogram that generates the code of the
24415         thunk. This is required for compatibility with the C+ ABI.
24416         (Make_Abstract_Interface_DT): New subprogram that generate the
24417         declarations for the secondary dispatch tables associated with an
24418         abstract interface.
24419         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
24420         attribute for each primitive operation covering interface subprograms
24421         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
24422         These subprograms were upgraded to give support to abstract interfaces
24423
24424         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
24425         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
24426         RE_Set_Access_Level.
24427         (RE_Unit_Table): Add entries for new Ada.Tags operations.
24428         Add support to call the followig new run-time subprograms:
24429         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
24430
24431         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
24432         match its full declaration when both have an access definition with
24433         statically matching designated subtypes.
24434         (Analyze_Component_Declaration): Delete commented out code that was
24435         incorrectly setting the scope of an anonymous access component's type.
24436         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
24437         an access discriminant when the containing type is nonlimited.
24438         (Make_Incomplete_Type_Declaration): Create an incomplete type
24439         declaration for a record type that includes self-referential access
24440         components.
24441         (Check_Anonymous_Access_Types): Before full analysis of a record type
24442         declaration, create anonymous access types for each self-referential
24443         access component.
24444         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
24445         an access component in this context is a Local_Anonymous_Access, for
24446         proper accessibility checks.
24447         (Access_Definition): Set properly the scope of the anonymous access type
24448         created for a stand-alone access object.
24449         (Find_Type_Of_Object): An object declaration may be given with an access
24450         definition.
24451         (Complete_Subprograms_Derivation): New subprogram used to complete
24452         type derivation of private tagged types implementing interfaces.
24453         In this case some interface primitives may have been overriden
24454         with the partial-view and, instead of re-calculating them, they
24455         are included in the list of primitive operations of the full-view.
24456         (Build_Derived_Record_Type): Modified to give support to private
24457         types implemening interfaces.
24458         (Access_Definition): Reject ALL on anonymous access types.
24459         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
24460         type derivation to occur at a deeper accessibility level than the
24461         parent type.
24462         For the case of derivation within a generic body however, disallow the
24463         derivation if the derived type has an ancestor that is a formal type
24464         declared in the formal part of an enclosing generic.
24465         (Analyze_Object_Declaration): For protected objects, remove the check
24466         that they cannot contain interrupt handlers if not declared at library
24467         level.
24468         (Add_Interface_Tag_Components): New subprogram to add the tag components
24469         corresponding to all the abstract interface types implemented by a
24470         record type or a derived record type.
24471         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24472         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24473         Process_Full_View, Record_Type_Declaration): Modified to give
24474         support to abstract interface types
24475         (Collect_Interfaces): New subprogram that collects the list of
24476         interfaces that are not already implemented by the ancestors
24477         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
24478         when partial view has no discriminants and full view has defaults.
24479         (Constrain_Access): Reject a constraint on a general access type
24480         if the discriminants of the designated type have defaults.
24481         (Access_Subprogram_Declaration): Associate the Itype node with the inner
24482         full-type declaration or subprogram spec. This is required to handle
24483         nested anonymous declarations.
24484         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24485         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24486         Process_Full_View, Record_Type_Declaration): Modified to give
24487         support to abstract interface types
24488         (Derive_Subprograms): Addition of a new formal to indicate if
24489         we are in the case of an abstact-interface derivation
24490         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
24491         to the specification because it is requied to analyze all the
24492         identifiers found in a list of interfaces
24493
24494         * debug.adb: Complete documentation of flag "-gnatdZ"
24495
24496         * exp_ch3.adb: Implement config version of persistent_bss pragma
24497         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
24498         testing for TSS presence to properly enforce visibility rules.
24499         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
24500         Make_Abstract_Interfaces_DT to generate the secondary tables
24501         associated with abstract interfaces.
24502         (Build_Init_Procedure): Modified to initialize all the tags
24503         corresponding.
24504         (Component_Needs_Simple_Initialization): Similar to other tags,
24505         interface tags do not need initialization.
24506         (Freeze_Record_Type): Modified to give support to abstract interface
24507         types.
24508         (Expand_N_Object_Declaration): Do not generate an initialization for
24509         a scalar temporary marked as internal.
24510
24511         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
24512         in-out parameter that is a component in an initialization procedure,
24513         whose constraint might depend on discriminants, and that may be
24514         misaligned because of packing or representation clauses.
24515         (Is_Legal_Copy): New predicate to determine whether a possibly
24516         misaligned in-out actual can actually be passed by copy/return. This
24517         is an error in case the type is by_reference, and a warning if this is
24518         the consequence of a DEC import pragma on the subprogram.
24519         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
24520         interface types
24521         (Expand_Inlined_Call): Mark temporary generated for the return value as
24522         internal, so that no useless scalar normalization is generated for it.
24523         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
24524         null procedure can always be inlined.
24525         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
24526         procedure, generate an explicit empty body for it.
24527
24528         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
24529         Given a type implementing an interface, returns the corresponding
24530         access_disp_table value.
24531         (Find_Interface_Tag): New subprogram. Given a type implementing an
24532         interface, returns the record component containing the tag of the
24533         interface.
24534         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
24535         previous ones that return the corresponding tag and access_disp_table
24536         entities.
24537         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
24538         is a predefined primitive operation.
24539         (Expand_Subtype_From_Expr): If the expression is a selected component
24540         within an initialization procedure, compute its actual subtype, because
24541         the component may depend on the discriminants of the enclosing record.
24542
24543         * i-cpp.ads, i-cpp.adb:
24544         This package has been left available for compatibility with previous
24545         versions of the frontend. As part of the new layout this is now a
24546         dummy package that uses declarations available at a-tags.ads
24547
24548         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
24549         "constant access" and "aliased [constant] access" when not compiling
24550         with -gnat05.
24551         Suppress Ada 2005 keyword warning if -gnatwY used
24552         (P_Identifier_Declarations): Add support for object declarations with
24553         access definitions.
24554         (Private_Extension_Declaration): Complete the documentation
24555         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
24556         attribute in case of private extension declaration
24557         (P_Type_Declaration): Mark as "abstract" the type declarations
24558         corresponding with protected, synchronized and task interfaces
24559         (P_Declarative_Items): "not" and "overriding" are overriding indicators
24560         for a subprogram or instance declaration.
24561
24562         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
24563         instantiation that is a dispatching operation has controlling access
24564         parameters that are null excluding.
24565         Save and restore Ada_Version_Explicit, for implementation of AI-362
24566         (Validate_Derived_Type_Instance): Add check for abstract interface
24567         types.
24568         (Analyze_Formal_Package): Establish Instantiation source for the copy of
24569         the generic that is created to represent the formal package.
24570         (Analyze_Package_Instantiation): Instantiate body immediately if the
24571         package is a predefined unit that contains inlined subprograms, and
24572         we are compiling for a Configurable_Run_Time.
24573         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
24574         If the program has a null default, generate an empty body for it.
24575
24576         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
24577         error message condition, null procedures are correctly detected now.
24578         (New_Overloaded_Entity): Bypass trivial overriding indicator check
24579         for subprograms in the context of protected types. Instead, the
24580         indicator is examined in Sem_Ch9 while analysing the subprogram
24581         declaration.
24582         (Check_Overriding_Indicator): Check consistency of overriding indicator
24583         on subprogram stubs as well.
24584         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
24585         the library level.
24586         (Analize_Subprogram_Specification): When analyzing a subprogram in which
24587         the type of the first formal is a concurrent type, replace this type
24588         by the corresponding record type.
24589         (Analyze_Subprogram_Body): Undo the previous work.
24590         (Analyze_Procedure_Call): If the call has the form Object.Op, the
24591         analysis of the prefix ends up analyzing the call itself, after which
24592         we are done.
24593         (Has_Interface_Formals): New subprogram subsidiary to analyze
24594         subprogram_specification that returns true if some non
24595         class-wide interface subprogram is found
24596         (New_Overloaded_Entity): Modified to give support to abstract
24597         interface types
24598         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
24599         access to subprograms must be recursive.
24600         (Is_Unchecked_Conversion): Improve the test that recognizes
24601         instantiations of Unchecked_Conversion, and allows them in bodies that
24602         are to be inlined by the front-end. When the body comes from an
24603         instantiation, a reference to Unchecked_Conversion will be an
24604         Expanded_Name, even though the body has not been analyzed yet.
24605         Replace Is_Overriding and Not_Overriding in subprogram_indication with
24606         Must_Override and Must_Not_Override, to better express intent of AI.
24607         (Analyze_Subprogram_Body): If an overriding indicator is given, check
24608         that it is consistent with the overrinding status of the subprogram
24609         at this point.
24610         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
24611         always inlined.
24612         If the subprogram is a null procedure, indicate that it does not need
24613         a completion.
24614
24615         * sem_disp.adb (Check_Controlling_Type): Give support to entities
24616         available through limited-with clauses.
24617         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
24618         allowed as the last primitive of a tagged type if it has no previous
24619         spec.
24620         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
24621         to give support to abstract interface types
24622
24623         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
24624         in the case where the target type is an anonymous access type of an
24625         object or component (that is, when Is_Local_Anonymous_Access is true).
24626         Prevent the special checks for conversions of access discriminants in
24627         the case where the discriminant belongs to a nonlimited type, since
24628         such discriminants have their accessibility level defined in the same
24629         way as a normal component of an anonymous access type.
24630         (Resolve_Allocator): When an allocator's designated type is a class-wide
24631         type, check that the accessibility level of type given in the
24632         allocator's expression or subtype indication is not statically deeper
24633         than the level of the allocator's access type.
24634         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
24635         name in a discriminant constraint of a record component.
24636         (Resolve_Explicit_Dereference): Do not check whether the type is
24637         incomplete when the dereference is a use of an access discriminant in
24638         an initialization procedure.
24639         (Resolve_Type_Conversion): Handle conversions to abstract interface
24640         types.
24641         (Valid_Tagged_Conversion): The conversion of a tagged type to an
24642         abstract interface type is always valid.
24643         (Valid_Conversion): Modified to give support to abstract interface types
24644         (Resolve_Actuals): Enable full error reporting on view conversions
24645         between unrelated by_reference array types.
24646         The rule for view conversions of arrays with aliased components is
24647         weakened in Ada 2005.
24648         Call to obsolescent subprogram is now considered to be a violation of
24649         pragma Restrictions (No_Obsolescent_Features).
24650         (Check_Direct_Boolean_Operator): If the boolean operation has been
24651         constant-folded, there is nothing to check.
24652         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
24653         check on possible violation of restriction No_Direct_Boolean_Operators
24654         until after expansion of operands, to prevent spurious errors when
24655         operation is constant-folded.
24656
24657         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
24658         Has_Compatible_Type): Modified to give support to abstract interface
24659         types.
24660         (Interface_Present_In_Ancestor): New function to theck if some ancestor
24661         of a given type implements a given interface
24662
24663         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
24664         prefix is a parameterless function that returns an access_to_procedure.
24665         (Transform_Object_Operation): Handle properly function calls of the
24666         form Obj.Op (X), which prior to analysis appear as indexed components.
24667         (Analyze_One_Call): Complete the error notification to help new Ada
24668         2005 users.
24669         (Analyze_Allocator): For an allocator without an initial value, where
24670         the designated type has a constrained partial view, a discriminant
24671         constraint is illegal.
24672
24673 2005-06-14  Robert Dewar  <dewar@adacore.com>
24674
24675         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
24676         do with treatment of Set_Col when positioned at end of line character.
24677
24678 2005-06-14  Robert Dewar  <dewar@adacore.com>
24679
24680         * atree.adb: (Elist*): Protect against uninitialized field
24681
24682 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24683
24684         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
24685         for an attribute reference that returns an access type.
24686         (Apply_Discriminant_Check): No need for check if (designated) type has
24687         constrained partial view.
24688
24689         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
24690         both bound checks, rather than a conjunction.
24691         (Insert_Valid_Check): If the expression is an actual that is an indexed
24692         component of a bit-packed array, force expansion of the packed element
24693         reference, because it is specifically inhibited elsewhere.
24694
24695 2005-06-14  Vincent Celier  <celier@adacore.com>
24696
24697         * clean.adb (Clean_Project): Correctly delete executable specified as
24698         absolute path names.
24699
24700         * make.adb (Gnatmake): Allow relative executable path names with
24701         directory information even when project files are used.
24702         (Change_To_Object_Directory): Fail gracefully when unable to change
24703         current working directory to object directory of a project.
24704         (Gnatmake): Remove exception handler that could no longer be exercized
24705         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
24706         may be deallocated by Normalize_Arguments.
24707         (Collect_Arguments): Eliminate empty arguments
24708
24709         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
24710         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
24711         (Check_Project): Return False when Project is No_Project. Return True
24712         when All_Projects is True.
24713         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
24714         All_Projects to True.
24715         Minor reformatting
24716
24717 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24718             Javier Miranda  <miranda@adacore.com>
24719             Thomas Quinot  <quinot@adacore.com>
24720             Robert Dewar  <dewar@adacore.com>
24721             Hristian Kirtchev  <kirtchev@adacore.com>
24722             Gary Dismukes  <dismukes@adacore.com>
24723
24724         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
24725         anonymous access types, to indicate that the accessibility level of
24726         the type is determined by that of the enclosing declaration.
24727         (Has_Persistent_BSS): New flag
24728         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
24729         of this attribute with functions.
24730         (Is_Primitive_Wrapper): Remove the barrier.
24731         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
24732         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
24733         New subprograms.
24734         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
24735         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
24736         New subprograms.
24737         (Is_Pure_Unit_Access_Type): New flag
24738         (Abstract_Interfaces): Complete the assertion to cover all usages.
24739         (Set_Is_Interface): Complete the assertion to cover all usages.
24740         (Is_Primitive_Wrapper): New attribute.
24741         (Is_Obsolescent): Now applies to all entities (though it is only set
24742         for subprograms currently)
24743         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
24744         which solves various problems concerning access subtypes.
24745         (Has_Persistent_BSS): New flag
24746         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
24747         Remove these subprograms because this attribute is currently
24748         not used.
24749         New entity flags:
24750         Has_Specified_Stream_Input (Flag190)
24751         Has_Specified_Stream_Output (Flag191)
24752         Has_Specified_Stream_Read (Flag192)
24753         Has_Specified_Stream_Write (Flag193)
24754         Present in all type and subtype entities. Set for a given view if the
24755         corresponding stream-oriented attribute has been defined by an
24756         attribute definition clause. When such a clause occurs, a TSS is set
24757         on the underlying full view; the flags are used to track visibility of
24758         the attribute definition clause for partial or incomplete views.
24759         (Is_Pure_Unit_Access_Type): New flag
24760         Clarify use of Is_Internal.
24761         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
24762         internally generated to wrap the invocation of tasks and protected
24763         types that implement interfaces.
24764         (Implementation_Base_Type): Documentation correction
24765         (Is_Obsolescent): Now applies to all entities (though it is only set
24766         for subprograms currently)
24767         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
24768         which solves various problems concerning access subtypes.
24769
24770         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
24771         for examined parameters. Identify unequal parameter list lengths as
24772         non-conformant parameters.
24773         (Overriding_Possible): Do not check for "All" qualifier in declaration
24774         of controlling access parameter, following prescription of AI-404.
24775         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
24776         that build the procedure body that wraps an entry invocation
24777         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
24778         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
24779         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
24780         give support to abstract interface types
24781
24782         * freeze.adb (Freeze_Entity): Issue error message if
24783         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
24784         type has no storage pool (Ada 2005) AI-366.
24785         Also modified to give support to abstract interface types
24786         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
24787         Inline_Always pragma.
24788
24789         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
24790         now begin an entry declaration.
24791         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
24792         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
24793         a subprogram declaration preceded by an overriding indicator.
24794         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
24795         declarations or subprogram declarations preceded by reserved words
24796         "not" or "overriding".
24797         (P_Entry_Declaration): Update comment. Parse and check overriding
24798         indicator, set semantic flags of entry declarations.
24799         (P_Task): New error message in case of private applied
24800         to a task type declaration.
24801         (P_Protected): New error message in case of private applied
24802         to a task type declaration.
24803
24804         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
24805         in which the full view of a type implementing an interface is a
24806         concurrent type.
24807         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
24808         Declare_Inherited_Private_Subprograms): If an explicit operation
24809         overrides an operation that is inherited in the private part, mark the
24810         explicit one as overriding, to enable overriding indicator checks.
24811         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
24812         full view to partial view, to simplify handling in back-end.
24813
24814         * sprint.adb: Print interface lists where needed: derived types,
24815         protected types, task types.
24816         output "is null" for null procedures. Part of implementation of
24817
24818         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
24819         relaxation of rules for access types in pure, shared passive partitions.
24820
24821         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
24822         first read discriminants into temporary objects, performing checks on
24823         the read values, then possibly performing discriminant checks on the
24824         actual (if it is constrained), and only finally reading the components
24825         into a constrained temporary object.
24826         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
24827         case of reading discriminants of a mutable record type to recognize
24828         the new form of the code generated by
24829         Build_Mutable_Record_Read_Procedure.
24830
24831         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
24832         of a simple call to Make_TSS_Name.
24833         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
24834         buffer, in order for Is_TSS to work correctly on local TSS names.
24835
24836         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
24837         Is_Local_Anonymous_Access to check legaliy of attributes in the
24838         context of  access components and stand-alone access objects.
24839         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
24840         treated as available for a limited private type if there is an
24841         attribute_definition_clause that applies to its full view, but not in
24842         other cases where the attribute is available for the full view
24843         (specifically, the sole fact that the full view is non-limited does not
24844         make the attribute available for the partial view).
24845         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
24846         non-overloaded intrinsic subprogram.
24847         (Check_Stream_Attribute): Reject an attribute reference for an
24848         unavailable stream attribute even if the prefix is not a limited type
24849         (case of a 'Input attribute reference for an abstract, non-classwide
24850         type)
24851         (Stream_Attribute_Available): New function to determine whether a stream
24852         attribute is available at a place.
24853         (Check_Attribute): Use Stream_Attribute_Available instead of just
24854         testing for TSS presence on the implementation base type.
24855         (Analyze_Attribute): Modified to give support to task interfaces.
24856         (Analyze_Access_Attribute): Add error check for use of an Access (or
24857         Unrestricted_Access) attribute with a subprogram marked as
24858         Inline_Always.
24859         (Analyze_Attribute, case Attribute_Address): Add error check for use of
24860         an Address attribute with a subprogram marked as Inline_Always.
24861         Update Eval_Attribute to handle new value of Width from AI-395
24862
24863         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
24864         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
24865         Factor common code across the stream-oriented attribute circcuits into
24866         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
24867         processing is functionally identical to the previous duplicated one,
24868         except that an expression that denotes an abstract subprogram will now
24869         be rejected, as mandated by AI-195 item 5.
24870
24871         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
24872         Is_Local_Anonymous_Access to apply accessibility checks to access
24873         components and stand-alone access objects.
24874         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
24875         elsewhere.
24876         (Is_Potentially_Persistent_Type): New function
24877         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
24878         a heap-object whose type has a constrained partial view, the object is
24879         unconstrained and the component may depend on a discriminant, making its
24880         renaming illegal.
24881
24882         * sinfo.ads, sinfo.adb
24883         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
24884         (Must_Override): Flag applicable to N_Entry_Declaration.
24885         Indicate that interface_list can appear in single task and single
24886         protected declarations.
24887         Replace Is_Overriding and Not_Overriding with Must_Override and
24888         Must_Not_Override, to better express intent of AI.
24889         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
24890         of an overriding indicator in a subprogram or instance.
24891         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
24892         Add the overriding indicator [[not] overriding] construct to the
24893         following grammar productions:
24894          ENTRY_DECLARATION
24895          GENERIC_INSTANTIATION
24896          SUBPROGRAM_SPECIFICATION
24897
24898         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
24899         can start with an overriding indicator.
24900
24901         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
24902         flags accordingly on subrogram specifications or instances.
24903
24904         * sem_ch8.adb:
24905         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
24906         overriding_indicator, if present, is consistent with status of spec.
24907         Improve error message for null-excluding checks on controlling access
24908         parameters.
24909         (Check_In_Previous_With_Clause): Protect the frontend against
24910         previously reported critical errors in the context clauses.
24911         Save and restore Ada_Version_Explicit, for implementation of AI-362
24912         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
24913         operation verify that controlling formals of the renamed entity that
24914         are access parameters are explicitly non-null.
24915         (Find_Expanded_Name): Improve error message when prefix is an illegal
24916         reference to a private child unit.
24917
24918         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
24919         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
24920         Rewrite to correspond to new wide character names in AI-395
24921
24922         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
24923         default procedures.
24924
24925 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24926             Robert Dewar  <dewar@adacore.com>
24927
24928         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
24929         code, not on the bodies of predefined operations, to cut down on
24930         spurious noise.
24931
24932 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24933
24934         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
24935         be expanded in place. The size computation does not require a
24936         subtraction, which would raise an exception on a compiler built with
24937         assertions when the upper bound is Integer'first.
24938         (Flatten): For an array of composite components, take into account the
24939         size of the components to determine whether it is safe to expand the
24940         array into a purely positional representation.
24941
24942 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24943
24944         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
24945         denoting a formal parameter into account.
24946
24947 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24948
24949         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
24950         the entry_call alternative of a conditional entry call, wrap the
24951         conditional entry call itself.
24952
24953 2005-06-14  Nicolas Setton  <setton@adacore.com>
24954             Ed Schonberg  <schonberg@adacore.com>
24955
24956         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
24957         the "simple_choice" member in a variant record, in accordance with the
24958         description in the package spec: the information output for a constant
24959         should be "S number", not "SS number".
24960         (Get_Encoded_Name): Return at once if not generating code. Avoids name
24961         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
24962
24963 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24964
24965         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
24966         RACW without any primitives, do not generate the if statement for
24967         dispatching by name in the PolyORB/DSA case, as it would be malformed
24968         (it would have an Elsif_Parts list that is not No_List, but with a
24969         length of 0).
24970
24971 2005-06-14  Robert Dewar  <dewar@adacore.com>
24972
24973         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
24974
24975 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
24976
24977         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
24978         can determine whether pragma Suppress_Exception_Locations is in effect.
24979
24980         * utils2.c (build_call_raise): Do not pass the file name to the
24981         exception handler if pragma Suppress_Exception_Locations is in effect.
24982         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
24983
24984 2005-06-14  Emmanuel Briot  <briot@adacore.com>
24985
24986         * g-debpoo.adb (Deallocate, Dereference): Improve output.
24987
24988 2005-06-14  Nicolas Roche  <roche@adacore.com>
24989
24990         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
24991         to ""
24992         (Next_Level): Fix minor bug in handling of ../dir case
24993         (Read): Add dir separator to Directory name so that "" is understood as
24994          "/"
24995
24996 2005-06-14  Pascal Obry  <obry@adacore.com>
24997
24998         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
24999         releasing the items.
25000
25001 2005-06-14  Vincent Celier  <celier@adacore.com>
25002             Cyrille Comar  <comar@adacore.com>
25003
25004         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25005         with output file descriptor and with output file name.
25006         (Dup, Dup2): Now global procedures as they are used by two subprograms
25007         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25008
25009 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25010
25011         PR ada/6717
25012         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25013         broadcast address.
25014         (Create_Selector): Bind listening socket used to create the signalling
25015         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25016         Set listen backlog to 1 to ensure that we detect socket theft by a
25017         failure of our own connect(2) call.
25018         (Check_Selector): Improve documentation of the selector mechanism.
25019         (Broadcast_Inet_Addr): New constant.
25020
25021 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25022
25023         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25024         type which turns out to be an incomplete and incorrect fix.
25025         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25026         of the type is declared in a record (for determination of insertion
25027         type).
25028         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25029         a private type and ensure that the primary entity is used for the type
25030         of the newly created function's V formal by taking the Etype of the
25031         view.
25032
25033 2005-06-14  Javier Miranda  <miranda@adacore.com>
25034             Jose Ruiz  <ruiz@adacore.com>
25035             Robert Dewar  <dewar@adacore.com>
25036             Ed Schonberg  <schonberg@adacore.com>
25037
25038         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25039         that indicates if we are parsing a compilation unit found in a
25040         limited-with clause.
25041         It is use to avoid the circularity check.
25042
25043         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25044         we are parsing a compilation unit found in a limited-with clause. This
25045         is use to avoid the circularity check.
25046
25047         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25048         unit as a consequence of parsing a limited-with clause. This is used
25049         to avoid the circularity check.
25050
25051         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25052         (Analyze_Context): Limited-with clauses are now allowed
25053         in more compilation units.
25054         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25055         againts previously reported critical errors in context clauses
25056         (Install_Limited_Withed_Unit): Code cleanup plus static detection
25057         of two further errors: renamed subprograms and renamed packages
25058         are not allowed in limited with clauses.
25059         (Install_Siblings): Do not install private_with_clauses on the package
25060         declaration for a non-private child unit.
25061         (Re_Install_Parents): When a parent of the subunit is reinstalled,
25062         reset visibility of child units properly.
25063         (Install_Withed_Unit): When a child unit appears in a with_clause of its
25064         parent, it is immediately visible.
25065
25066 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25067             Emmanuel Briot  <briot@adacore.com>
25068
25069         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25070         declared within an inlined body as referenced, to prevent spurious
25071         warnings.
25072         (Output_One_Ref): If an entity renames an array component, indicate in
25073         the ALI file that this aliases (renames) the array. Capture as well
25074         function renamings that rename predefined operations.
25075         Add information about generic parent for package and subprogram
25076         instances.
25077         (Get_Type_Reference): For a subtype that is the renaming of an actual in
25078         an instantiation, use the first_subtype to ensure that we don't generate
25079         cross-reference information for internal types.
25080         For objects and parameters of a generic private type, retain the '*'
25081         indicator to distinguish such an entity from its type.
25082
25083         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25084         to store information about instantiated entities.
25085
25086         * ali.adb (Scan_ALI): Add support for parsing the reference to the
25087         generic parent
25088
25089         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
25090         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
25091         information.
25092
25093 2005-06-10  Doug Rupp  <rupp@adacore.com>
25094             Arnaud Charlet  <charlet@adacore.com>
25095             Olivier Hainque  <hainque@adacore.com>
25096             Jose Ruiz  <ruiz@adacore.com>
25097
25098         * Make-lang.in: Add initialize.o when needed.
25099         Remove obsolete references to RT_FLAGS.
25100         Add missing dependencies for sdefault.o
25101
25102         * initialize.c: New file.
25103
25104         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
25105         [VMS] cond_signal_table: Fix problem in declaration.
25106         [VMS] __gnat_error_handler: rewrite.
25107         Move all __gnat_initialize() routines to initialize.c
25108         Specialize the former "hpux" section to "hppa hpux", as this is what the
25109         section really is here for and we now have other hpux ports that need
25110         different contents.
25111         (__gnat_adjust_context_for_raise) i386-linux: First version of this
25112         function for this target. Adjust PC by one in the machine context. This
25113         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
25114         it is more reliable to do that in the signal handler itself.
25115         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
25116         flags, so that the handler is passed the context structure to adjust
25117         prior to the raise.
25118         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
25119         SA_SIGINFO sigaction should look like. Call
25120         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
25121         Machine_State_Operations stuff.
25122         Add conditional code so that the x86_64 is also supported.
25123
25124 2005-06-14  Pascal Obry  <obry@adacore.com>
25125
25126         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
25127         the library name.
25128
25129 2005-06-14  Robert Dewar  <dewar@adacore.com>
25130
25131         * opt.ads, opt.adb: New flags for persistent_bss mode
25132         Add Ada_Version_Explicit, for implementation of AI-362
25133         Add Assertions_Enabled_Config and associated handling
25134         Needed since setting can be changed with Assertion_Policy pragma
25135         Add new flag Warn_On_Ada_2005_Compatibility
25136
25137         * switch-c.adb: Recognize -gnatwy/Y
25138         Set Ada_Version_Explicit, for implementation of AI-362
25139         The -gnatg switch now includes -gnatyu
25140
25141         * usage.adb: Add -gnatwy/Y
25142         Remove wrong asterisk on -gnatwX line
25143         Add line for -gnatyu switch
25144
25145 2005-06-14  Vincent Celier  <celier@adacore.com>
25146
25147         * osint.adb (Add_Default_Search_Dirs): Put source and object
25148         directories of project files before directories coming from
25149         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
25150
25151 2005-06-14  Robert Dewar  <dewar@adacore.com>
25152
25153         PR ada/15613
25154         * par-ch2.adb (Scan_Pragma_Argument): New procedure
25155         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
25156
25157 2005-06-14  Vincent Celier  <celier@adacore.com>
25158
25159         * prep.adb (Preprocess): Ignore error when scanning the first token of
25160         a line.
25161
25162 2005-06-14  Vincent Celier  <celier@adacore.com>
25163
25164         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
25165         (Check_Stand_Alone_Library): If the specified reference symbol file does
25166         not exist, only issue a warning when the symbol policy is not
25167         Controlled. And, when symbol policy is Compliant, set the symbol
25168         policy to Autonomous.
25169
25170 2005-06-14  Vincent Celier  <celier@adacore.com>
25171
25172         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
25173         when the project file in a with clause is not the last one, that is the
25174         project file name is followed by a comma.
25175         * prj-pp.adb: (First_With_In_List): New Boolean global variable
25176         (Print): Issue list of project files separated by commas in with clauses
25177         according to the values returned by Is_Not_Last_In_List.
25178         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
25179         (Set_Is_Not_Last_In_List): New procedure
25180
25181 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
25182
25183         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
25184
25185 2005-06-14  Robert Dewar  <dewar@adacore.com>
25186
25187         * scng.adb: Add call to new Check_EOF routine
25188         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
25189         Add some comments regarding wide character handling
25190
25191         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
25192
25193         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
25194
25195         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
25196         characters are now considered graphic characters and hence yield false
25197         in this call.
25198
25199         * nmake.adt: Modify header so that xnmake does not generate output
25200         files with multiple blank lines.
25201
25202         * treeprs.adt: Remove a blank line so that output from xtreeprs does
25203         not have an extra blank line
25204
25205 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25206
25207         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
25208         expression when the component type is an anonymous access type to
25209         ensure that appropriate accessibility checks are done.
25210
25211         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
25212         expression of an assignment when the target object is of an anonymous
25213         access type. This ensures that required accessibility checks are done.
25214         (One_Bound): Move the check for type Universal_Integer to
25215         Process_Bounds.
25216         (Process_Bounds): Check whether the type of the preanalyzed range is
25217         Universal_Integer, and in that case set Typ to Integer_Type prior
25218         to setting the type of the original range and the calls to One_Bound.
25219
25220 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25221
25222         * sem_case.adb (Expand_Others_Choice): Improve warning.
25223
25224 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25225
25226         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
25227         constraint of full view if present, when other type is discriminated.
25228         (Eval_Relational_Op): Recognize tests of pointer values against Null,
25229         when the pointer is known to be non-null, and emit appropriate warning.
25230
25231 2005-06-14  Robert Dewar  <dewar@adacore.com>
25232             Ed Schonberg  <schonberg@adacore.com>
25233
25234         PR ada/10671
25235         * sem_prag.adb: Implement pragma Persistent_BSS
25236         Remove obsolete pragma Persistent_Data, Persistent_Object
25237         Set Ada_Version_Explicit, for implementation of AI-362
25238         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
25239         Add processing for pragma Pure_05 and Preelaborate_05
25240         Add processing for Assertion_Policy pragma
25241         Add pragma identifiers for Assert
25242         (Analyze_Pragma, case Assert): Check number of arguments
25243         (Process_Inline): Additional guard against an illegal program, where the
25244         argument of the pragma is undefined, and warnings on redundant
25245         constructs are enabled.
25246         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
25247         Ada_05 to this pragma, specifying that the pragma is only active in
25248         Ada_05 mode.
25249         (Check_Arg_Order): New procedure
25250         Add appropriate calls to this procedure throughout
25251         Also throughout, check entity name before doing any other checks
25252
25253         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
25254         Remove obsolete pragma Persistent_Data, Persistent_Object
25255         Add entries for pragma Pure_05 and Preelaborate_05
25256         Add entries for Assertion_Policy pragma and associated names
25257         Add some names for pragma argument processing
25258
25259         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
25260
25261 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25262
25263         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
25264         appears within a negation (either from source or as a rewriting of
25265         inequality) adjust text of warning accordingly.
25266
25267 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25268
25269         * s-strxdr.adb: Follow AI95-00132
25270
25271 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
25272
25273         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
25274
25275 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
25276             Jose Ruiz  <ruiz@adacore.com>
25277
25278         * s-tposen.adb, s-tpobop.adb
25279         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
25280         the exception id.
25281         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
25282         there is no violation of the Max_Entry_Queue_Length restriction (if it
25283         has been set); Program_Error is raised otherwise.
25284         (Requeue_Call): Before requeuing the task on the target entry queue we
25285         check that there is no violation of the Max_Entry_Queue_Length
25286         restriction (if it has been set); Program_Error is raised otherwise.
25287
25288 2005-06-14  Robert Dewar  <dewar@adacore.com>
25289
25290         * styleg.adb: Fix several remaining problems in -gnatyu switch
25291         Blank line count not reset at start
25292         Scanning outside source buffer in some cases
25293         Confusing message for blanks at end of file
25294         Non-empty blank lines not recognized
25295
25296         * nmake.adt: Modify header so that xnmake does not generate output
25297         files with multiple blank lines.
25298
25299         * treeprs.adt: Remove a blank line so that output from xtreeprs does
25300         not have an extra blank line
25301
25302 2005-06-14  Sergey Rybin  <rybin@adacore.com>
25303
25304         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
25305
25306 2005-06-14  Doug Rupp  <rupp@adacore.com>
25307             Vincent Celier  <celier@adacore.com>
25308
25309         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
25310         Update copyright.
25311
25312         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
25313         Remove "Library" command.
25314         Change keyword for style check -gnatyd from NOCRLF to
25315         DOS_LINE_ENDINGS.
25316         Remove useless second style check keyword NONE
25317         Remove help documentation for inexistent style check keyword
25318         RM_COLUMN_LAYOUT.
25319         Add help documentation for style check keywords DOS_LINE_ENDINGS,
25320         UNNECESSARY_BLANK_LINES and XTRA_PARENS
25321         Add UNNECESSARY_BLANK_LINES for -gnatyu
25322         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
25323
25324         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
25325
25326 2005-06-14  Vincent Celier  <celier@adacore.com>
25327
25328         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
25329         gprmake was invoked with -d.
25330         (Compile_Sources): If -d was used, output the "completed ..." message
25331         for each compilation.
25332         (Scan_Arg): Recognize new switch -d
25333         When -c and at least one main is specified, set
25334         Unique_Compile to True to guarantee that no other sources will be
25335         compiled.
25336
25337 2005-06-14  Matthew Heaney  <heaney@adacore.com>
25338
25339         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
25340         * a-swuwha.ads, a-swuwha.adb: New files
25341
25342         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
25343         * a-szuzha.ads, a-szuzha.adb: New files.
25344
25345         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
25346         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
25347         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
25348         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
25349         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
25350         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
25351         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
25352         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
25353         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
25354         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
25355         Ada 2005 RM.
25356
25357 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
25358             Olivier Hainque  <hainque@adacore.com>
25359             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25360             Pascal Obry  <obry@adacore.com>
25361
25362         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
25363
25364         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
25365         making a temporary around a procedure call because of non-addressable
25366         actual parameter.
25367         (process_freeze_entity): If entity is a private type, capture size
25368         information that may have been computed for the full view.
25369         (tree_transform, case N_Allocator): If have initializing expression,
25370         check type for Has_Constrained_Partial_View and pass that to
25371         build_allocator.
25372         (tree_transform, case N_Return_Statement): Pass extra arg to
25373         build_allocator.
25374
25375         * decl.c (annotate_value): Remove early return if -gnatR is not
25376         specified.
25377         (gnat_to_gnu_field): Don't make a packable type for a component clause
25378         if the position is byte aligned, the field is aliased, and the clause
25379         size isn't a multiple of the packable alignment. It serves no useful
25380         purpose packing-wise and would be rejected later on.
25381         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
25382
25383         PR ada/20515
25384         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
25385         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
25386         instead.
25387         (create_concat_name): Idem.
25388
25389 2005-06-10  Robert Dewar  <dewar@adacore.com>
25390             Eric Botcazou  <ebotcazou@adacore.com>
25391             Ben Brosgol  <brosgol@adacore.com>
25392             Cyrille Comar  <comar@adacore.com>
25393             Sergey Rybin  <rybin@adacore.com>
25394             Pascal Obry  <obry@adacore.com>
25395
25396         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
25397         Document second argument (Ada_05) of pragma Obsolescent
25398         Add note that call to subprogram marked with pragma Obsolescent
25399         is now considered to be a violation of program Restrictions
25400         (No_Obsolescent_Features).
25401         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
25402         that only machine-dependent attributes are supported.
25403
25404         * gnat_ugn.texi:
25405         Commented out menu lines and empty section for gnatclean examples
25406         Document -gnatwy/Y
25407         Fix some over long lines
25408         Clarify and enhance documentation of ADA_PROJECT_PATH.
25409         Rework section 2.11.2(3) about linking with a non-GNU compiler.
25410         Mention new switch -fcallgraph-info.
25411         Mention new switch -fstack-usage.
25412         For gnatpp, replace '-notab' with '-N' and add this option to Index
25413         Corrected VMS example.
25414         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
25415         Minor reformatting
25416         Add documentation for -gnatyu switch (unnecessary blank lines)
25417         Document new switch -U for GNAT PRETTY and GNAT METRIC
25418         Add note about Stdcall being handled as C convention on non Windows OS.
25419         Remove some junk typo in description of gnatbind -S switch
25420         Remove reference to Extensions_Allowed pragma
25421         Document the new order of the directories to be searched (source and
25422         object directories of project files before directories in ADA_*_PATH
25423         environment variables.
25424
25425         * g-trasym.ads: Document that IRIX is supported
25426
25427 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
25428
25429         * Makefile.in: Add initialize.o when needed.
25430         Adapt to new VMS package body Symbols and subunits
25431         No specialized version of a-sytaco is needed for VxWorks.
25432
25433         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
25434         * a-zchara.ads, a-widcha.ads: New files.
25435
25436         * system-hpux-ia64.ads: New file.
25437
25438         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
25439         is imported from the VxWorks kernel.
25440
25441 2005-06-14  Robert Dewar  <dewar@adacore.com>
25442
25443         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
25444         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
25445         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
25446         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
25447         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
25448         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
25449         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
25450         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
25451         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
25452         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
25453         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
25454         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
25455
25456 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25457
25458         * xeinfo.adb: Fix typo in comment
25459
25460 2005-06-14  Javier Miranda  <miranda@adacore.com>
25461
25462         * repinfo.ads: Fix typo in comment
25463
25464 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25465
25466         * s-finimp.adb (Parent_Tag): Delete this imported function (function
25467         Parent_Tag is now in the visible part of Ada.Tags).
25468         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
25469         using imported function.
25470
25471 2005-06-14  Bernard Banner  <banner@adacore.com>
25472
25473         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
25474         also apply for handling support for VxSim 653.
25475
25476 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
25477
25478         * xsnames.adb: Add automatic generation of snames.h.
25479
25480 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25481
25482         * gen-soccon.c: Add IP_MULTICAST_IF constant
25483         Minor reformatting and adjustments to prevent warnings.
25484
25485 2005-06-14  Pascal Obry  <obry@adacore.com>
25486
25487         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
25488
25489 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
25490
25491         * trans.c (gnat_gimplify_expr): Call
25492         recompute_tree_invarant_for_addr_expr when we change
25493         the operand of the ADDR_EXPR.
25494
25495 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25496
25497         * misc.c: Don't include errors.h.
25498
25499 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25500
25501         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
25502
25503 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
25504
25505         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
25506         comment typos.
25507         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
25508
25509 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
25510
25511         PR ada/20270
25512         * Makefile.in: Make TGT_LIB behave correctly.
25513
25514 2005-04-23  DJ Delorie  <dj@redhat.com>
25515
25516         * misc.c: Adjust warning() callers.
25517
25518 2005-04-16  Laurent Guerby  <laurent@guerby.net>
25519
25520         PR ada/18847
25521         * a-nudira.adb (Value): Check for valid string.
25522         * a-nuflra.adb (Value): Likewise.
25523
25524 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
25525
25526         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
25527
25528 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
25529
25530         * adaint.c, init.c, tracebak.c: Fix comment typos.
25531         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
25532
25533 2005-04-07  Laurent Guerby  <laurent@guerby.net>
25534             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25535
25536         * Makefile.in: Add make ifeq define for hppa linux tasking support.
25537         * system-hpux.ads: Define Signed_Zeros to be True.
25538         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
25539
25540 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
25541
25542         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
25543         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
25544         typos.
25545
25546 2005-03-30  Tom Tromey  <tromey@redhat.com>
25547
25548         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
25549
25550 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25551
25552         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
25553
25554 2005-03-29  Robert Dewar  <dewar@adacore.com>
25555
25556         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
25557         fixed-point expression has value that is not a multiple of the Small
25558         value.
25559
25560         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
25561
25562         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
25563         nanoseconds.
25564
25565         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
25566
25567 2005-03-29  Vincent Celier  <celier@adacore.com>
25568
25569         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
25570         (Build_Dynamic_Library.Version_String): Return the empty string when
25571         Lib_Version is empty or when the symbol policy is not Autonomous.
25572
25573         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
25574         a symbol is not in the reference symbol file, increase the Major ID
25575         and set the Minor ID to 0.
25576         Use gsmatch=lequal instead of gsmatch=equal
25577
25578 2005-03-29  Doug Rupp  <rupp@adacore.com>
25579
25580         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
25581         name and translate.
25582
25583 2005-03-29  Javier Miranda  <miranda@adacore.com>
25584
25585         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
25586         (Inherit_DT): The first formal has been redefined as a Tag.
25587         This allows us the removal of the subprogram Get_TSD.
25588         (TSD): Replace the call to Get_TSD by the actual code.
25589
25590         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
25591         (Make_DT): Upgrade the call to Inherit_TSD according to the
25592         new interface: the first formal is now a Tag.
25593
25594         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
25595         redefined as a Tag.
25596         This change allows us to remove the subprogram Get_TSD.
25597         (CPP_Get_TSD): Subprogram removed.
25598         (TSD): Replace the call to CPP_Get_TSD by the actual code.
25599
25600         * rtsfind.ads: Remove support to call the run-time
25601         subprogram Get_TSD
25602
25603 2005-03-29  Robert Dewar  <dewar@adacore.com>
25604
25605         * errutil.adb, errout.adb:
25606         Minor comment updates on Line_Terminator references
25607
25608         * par-ch10.adb: Add ??? comment about line terminator
25609
25610         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
25611         (check dos line terminator).
25612         (Check_Line_Max_Length): New procedure, split off from the existing
25613         Check_Line_Terminator routine. Separating this out allows -gnatyf to
25614         be properly recognized.
25615
25616         * styleg.adb: Add ??? comment for line terminator reference
25617
25618         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
25619         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
25620
25621         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
25622         (check dos line terminator).
25623         (Check_Line_Max_Length): New procedure, split off from the existing
25624         Check_Line_Terminator routine. Separating this out allows -gnatyf to
25625         be properly recognized.
25626
25627         * stylesw.ads, stylesw.adb:
25628         Add handling for new -gnatyd switch (check dos line terminator)
25629
25630         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
25631         Recognize -gnatwb/-gnatwB switches
25632         Include Warn_On_Bad_Fixed_Value for -gnatg
25633
25634         * usage.adb:
25635         Add line for new -gnatyd switch (check dos line terminator)
25636
25637         * usage.adb: Add lines for -gnatwb/-gnatwB
25638
25639         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
25640
25641         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
25642
25643         * gnat_ugn.texi: Fix overlong lines
25644         Document new -gnatyd switch
25645         Document new -gnatwb/-gnatwB switches
25646
25647 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25648
25649         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
25650         order to retrieve the component list of the type, before examining
25651         individual components.
25652
25653         * sem_type.adb (Covers): Types are compatible if one is the base type
25654         of the other, even though their base types might differ when private
25655         views are involved.
25656
25657 2005-03-29  Thomas Quinot  <quinot@adacore.com>
25658
25659         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
25660         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
25661         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
25662         analyzed if expansion is disabled (which could otherwise cause spurious
25663         error messages if expansion has been disabled due to previous
25664         (unrelated) errors).
25665
25666         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
25667         is disabled, the entity denoted by the argument is the access type
25668         itself, not an underlying record type, so there is no need to go back
25669         to the Corresponding_Remote_Type.
25670
25671 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
25672             Robert Dewar  <dewar@adacore.com>
25673
25674         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
25675         expand a call to an instance of
25676         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
25677         Constructor actual of the instance. A class-wide membership
25678         check is also generated, to ensure that the tag passed to the instance
25679         denotes a type in the class.
25680         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
25681         of Name_Generic_Dispatching_Constructor.
25682
25683         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
25684         05 unit for AI-260-02).
25685
25686         * a-tgdico.ads: New file.
25687
25688         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
25689         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
25690
25691         * snames.ads, snames.adb (Preset_Names): Add entry for
25692         Generic_Dispatching_Constructor.
25693
25694         PR ada/20300
25695         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
25696         character type cases.
25697         (Analyze_Subprogram_Renaming): Add special handling for
25698         the case of renaming of stream attributes when the renaming denotes a
25699         generic formal subprogram association for an abstract formal subprogram.
25700         Check that the attribute is a primitive stream attribute (and not
25701         a class-wide stream attribute) and then rewrite the attribute name
25702         as the name of the appropriate compiler-generated stream primitive.
25703
25704 2005-03-29  Robert Dewar  <dewar@adacore.com>
25705
25706         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
25707         recursive calls.
25708         (Is_Possibly_Unaligned_Object): Correct typo that
25709         resulted in inaccurate result for unaligned scalars within records.
25710
25711 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25712
25713         * freeze.adb (Freeze_Record_Type): If the type of the component is an
25714         itype whose parent is controlled and not yet frozen, do not create a
25715         freeze node for the itype if expansion is disabled.
25716
25717 2005-03-29  Vincent Celier  <celier@adacore.com>
25718
25719         * make.adb (Gnatmake): Don't fail if the main project file is declared
25720         as having no Ada sources. Do not display message "no sources to
25721         compile" in quiet output.
25722
25723 2005-03-29  Doug Rupp  <rupp@adacore.com>
25724
25725         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
25726         extra tools.
25727
25728 2005-03-29  Robert Dewar  <dewar@adacore.com>
25729
25730         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
25731         child.
25732
25733 2005-03-29  Robert Dewar  <dewar@adacore.com>
25734
25735         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
25736         missing TYPE Improve the error message generated when compiling a
25737         limited interface in Ada83 or Ada95 mode.
25738
25739 2005-03-29  Robert Dewar  <dewar@adacore.com>
25740
25741         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
25742         rather than proceed ahead using a junk attribute name.
25743
25744 2005-03-29  Vincent Celier  <celier@adacore.com>
25745
25746         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
25747
25748         * prj-part.adb (Parse_Single_Project): Set the location of a project
25749         on its defining identifier, rather than on the reserved word "project".
25750
25751         * prj-proc.adb (Expression): Adapt to the fact that default of external
25752         references may be string expressions, not always literal strings.
25753         (Recursive_Process): Set Display_Name equal to Name
25754         when Location is No_Location, that is when there is no actual file.
25755         Get the Display_Name of the project from the source, when it is not a
25756         virtual project.
25757         (Process): Use the Display_Name in error messages
25758
25759         * prj-strt.adb (External_Reference): Allow default to be string
25760         expressions, not only literal strings.
25761
25762 2005-03-29  Vincent Celier  <celier@adacore.com>
25763
25764         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
25765         file and the reference symbol file to be the same file.
25766
25767 2005-03-29  Thomas Quinot  <quinot@adacore.com>
25768
25769         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
25770         forbid conversion of a local access-to-subprogram type to a remote one.
25771
25772         * sem_util.adb (Wrong_Type): For a record type that is the expanded
25773         equivalent type for a remote access-to-subprogram type, go back to the
25774         original RAS entity when displaying an error message, so the casing is
25775         the original source casing.
25776
25777 2005-03-29  Robert Dewar  <dewar@adacore.com>
25778
25779         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
25780         on param update.
25781
25782 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25783
25784         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
25785         subtype if code is being pre-analyzed, to prevent un-expanded
25786         references to protected formals, among others.
25787         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
25788         interpretation that can be a call, include the result of the call as a
25789         possible interpretation of the dereference.
25790
25791         * sem_ch5.adb (Process_Bounds): Determine type of range by
25792         pre-analyzing a copy of the original range, and then analyze the range
25793         with the expected type.
25794
25795         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
25796         with an overloaded prefix where not all interpretations yield an
25797         access to subprogram, do not rewrite node as a call.
25798         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
25799         the node as a call once the context identifies the interpretation of
25800         the prefix whose call yields the context type.
25801         (Valid_Conversion): For the case of a conversion between
25802         local access-to-subprogram types, check subtype conformance using
25803         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
25804         detailed error message.
25805
25806 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25807
25808         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
25809         indicator, indicate that the formal can never be null.
25810         (Process_Formals): If a formal has a non_null indicator, insert the
25811         resulting subtype immediately before the enclosing subprogram decl,
25812         and not at the beginning of the corresponding declarative part, to
25813         prevent access before elaboration (Ada2005).
25814
25815 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25816
25817         PR ada/19956
25818         * utils.c (finish_record_type): Use variable_size when setting sizes.
25819
25820 2005-03-29  Robert Dewar  <dewar@adacore.com>
25821
25822         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
25823         guarantee Unix style line terminators for the output files, even when
25824         running on windows.
25825
25826 2005-03-29  Robert Dewar  <dewar@adacore.com>
25827
25828         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
25829         buffer if an exception is raised.
25830
25831 2005-03-29  Ed Falis  <falis@adacore.com>
25832
25833         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
25834         VxWorks 653 1.4
25835
25836 2005-03-29  Robert Dewar  <dewar@adacore.com>
25837
25838         * sem_util.ads: Minor reformatting
25839         * gnat_rm.texi: Minor editing.
25840
25841 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
25842
25843         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
25844         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
25845
25846 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25847
25848         * adaint.c (__gnat_portable_spawn): Adjust cast.
25849
25850 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
25851
25852         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
25853
25854 2005-03-17  Pascal Obry  <obry@adacore.com>
25855
25856         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
25857         used.
25858
25859         * expect.c (__gnat_waitpid): Moved here from adaint.c.
25860         Reimplement under Win32 using Win32 API.
25861
25862         (__gnat_kill) [Win32]: Properly close the process handle before leaving
25863         this routine.
25864
25865 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
25866
25867         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
25868         (DECL_RENAMED_OBJECT): New accessor macro.
25869         (SET_DECL_RENAMED_OBJECT): New setter macro.
25870
25871         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
25872         object in all cases.  Attach the renamed object to the VAR_DECL.
25873         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
25874         field is not prescribed.
25875
25876         * misc.c (gnat_handle_option): Handle -gnatO separately.
25877         (gnat_print_decl) <VAR_DECL>: New case.
25878         Print the DECL_RENAMED_OBJECT node.
25879
25880         * lang.opt:  Declare separate -gnatO option.
25881
25882         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
25883         pointer, replace it with the renamed object.
25884         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
25885         pointer type if the source is not a fat pointer type whose underlying
25886         array has the same non-zero alias set as that of the destination array.
25887
25888 2005-03-17  Javier Miranda  <miranda@adacore.com>
25889
25890         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
25891         (Get_Inheritance_Depth): Removed.
25892         (Set_Inheritance_Depth): Removed.
25893
25894         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
25895         subprogram Get_Expanded_Name because it is not referenced by the
25896         frontend.
25897
25898         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
25899         (CPP_Get_Inheritance_Depth): Removed.
25900         (CPP_Set_Inheritance_Depth): Removed.
25901
25902         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
25903
25904 2005-03-17  Robert Dewar  <dewar@adacore.com>
25905
25906         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
25907         3, since we now expect GCC 3 to do all the work.
25908
25909 2005-03-17  Javier Miranda  <miranda@adacore.com>
25910
25911         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
25912         of one barrier to avoid wrong usage of this attribute.
25913
25914         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
25915         First_Private_Entity.
25916
25917         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
25918         the subprogram against wrong usage.
25919         Adapt the code to traverse the entities in the
25920         scope of a record_type because in addition to its usage regarding
25921         packages, this subprogram is also called by Expand_N_Freeze_Entity
25922         to install the visible declarations of the enclosing scope of a
25923         record_type_with_private to establish the proper visibility before
25924         freezing the entity and related subprograms.
25925
25926 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
25927
25928         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
25929         entry formals.
25930
25931 2005-03-17  Thomas Quinot  <quinot@adacore.com>
25932
25933         * exp_ch3.adb (Check_Attr): New subprogram.
25934         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
25935         into a new Check_Attr subprogram, in order to provide a more
25936         explanatory error message (including the name of the missing attribute).
25937         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
25938         subprogram determines whether a default implementation exists for a
25939         given stream attribute.
25940         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
25941         Determine whether to generate a default implementation for each stream
25942         attribute separately, as this depends on the specific attribute.
25943
25944         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
25945         limited extension where a stream attribute is missing for a limited
25946         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
25947         generate a bogus reference to the missing attribute to prevent
25948         cascaded errors. Instead, generate a null statement.
25949
25950         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
25951         available for a limited type if it has been specified for an ancestor
25952         of the type.
25953
25954 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
25955
25956         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
25957         entity is an operator.
25958
25959 2005-03-17  Thomas Quinot  <quinot@adacore.com>
25960
25961         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25962         spec, to make this predicate available to other units.
25963
25964         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
25965         reimplementing it.
25966
25967         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
25968         when no distribution runtime library is available.
25969
25970         * sem_res.adb, sem_dist.adb: Disable expansion of remote
25971         access-to-subprogram types when no distribution runtime library is
25972         available.
25973         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
25974         predicate available to other units.
25975
25976         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25977         spec, to make this predicate available to other units.
25978
25979 2005-03-17  Vincent Celier  <celier@adacore.com>
25980
25981         * make.adb (Insert_Project_Sources): Make sure the Q is always
25982         initialized.
25983
25984         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
25985         the default for the tree, not the global default naming.
25986
25987         * prj-proc.adb (Recursive_Process): No need to put the default naming
25988         in the project data, it's already there.
25989
25990 2005-03-17  Doug Rupp  <rupp@adacore.com>
25991
25992         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
25993
25994         * 5xcrtl.ads: Renamed to...
25995         * s-crtl-vms64.ads: ...this new file
25996
25997 2005-03-17  Robert Dewar  <dewar@adacore.com>
25998
25999         PR ada/19519
26000         * namet.adb (Copy_One_Character): Set proper wide character encoding
26001         for upper half character if we have upper half encoding.
26002
26003 2005-03-17  Robert Dewar  <dewar@adacore.com>
26004
26005         * par.adb (Par): Improved msg for attempt to recompile predefined unit
26006
26007 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26008
26009         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26010         tagged limited type, the TSS is a newly built renaming declaration:
26011         insert it using Set_TSS, not Copy_TSS.
26012
26013 2005-03-17  Javier Miranda  <miranda@adacore.com>
26014
26015         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26016         Try_Object_Operation): Analyze the object that is accessible
26017         through the prefix of the subprogram call before we apply
26018         the transformation of the object-operation notation.
26019
26020 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
26021
26022         * s-taprob.adb (Initialize_Protection): Initialize the protected
26023         object's owner to Null_Task.
26024         (Lock): If pragma Detect_Blocking is in effect and the caller of this
26025         procedure is already the protected object's owner then Program_Error
26026         is raised. In addition the protected object's owner is updated.
26027         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26028         of this procedure is already the protected object's owner then
26029         Program_Error is raised.
26030         In addition the protected object's owner is updated.
26031         (Unlock): Remove the ownership of the protected object.
26032
26033         * s-taprob.ads (Protection): Add the field Owner, used to store the
26034         protected object's owner.
26035         This component is needed for detecting one type of potentially blocking
26036         operations (external calls on a protected subprogram with the same
26037         target object as that of the protected action). Document the rest of
26038         the components.
26039
26040         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26041         Initialize the protected object's owner to Null_Task.
26042         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26043         caller of this procedure is already the protected object's owner then
26044         Program_Error is raised.
26045         Do not raise Program_Error when this procedure is called from a
26046         protected action.
26047         (Unlock_Entries): Remove the ownership of the protected object.
26048         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26049         of this procedure is already the protected object's owner then
26050         Program_Error is raised.
26051         Do not raise Program_Error when this procedure is called from
26052         a protected action.
26053
26054         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26055         used to store the protected object's owner.
26056
26057         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26058         effect and this procedure (a potentially blocking operation) is called
26059         from whithin a protected action, Program_Error is raised.
26060         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26061         and this procedure (a potentially blocking operation) is called from
26062         whithin a protected action, Program_Error is raised.
26063
26064 2005-03-17  Vincent Celier  <celier@adacore.com>
26065             Nicolas Setton  <setton@adacore.com>
26066
26067         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26068         switch, not supported by the linker on Darwin. Add '_' before
26069         <library>init, as this character is added unconditionally by the
26070         compiler.
26071         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26072         correct one ".dylib". This fixes detection of the archive files when
26073         building library projects.
26074
26075 2005-03-17  Vincent Celier  <celier@adacore.com>
26076
26077         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26078         -gnat83, -gnat95 and -gnat05.
26079
26080 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
26081
26082         * gnat_ugn.texi: Document gnatmem restriction
26083
26084 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26085
26086         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26087         cleanup
26088
26089 2005-03-17  Robert Dewar  <dewar@adacore.com>
26090
26091         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
26092         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
26093         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
26094
26095         * casing.adb: Comment improvements
26096
26097 2005-03-17  Pascal Obry  <obry@adacore.com>
26098
26099         * g-expect.adb: Minor reformatting.
26100
26101 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
26102
26103         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
26104         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
26105         to dependencies.
26106
26107 2005-03-15  Vincent Celier  <celier@adacore.com>
26108
26109         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
26110         Add new parameter In_Tree to specify the project tree: needed
26111         by the project manager. Adapt to changes in project manager
26112         using new parameter In_Tree.
26113
26114 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
26115
26116         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
26117         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
26118         ada/bldtools to avoid make -jN failures.
26119
26120 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26121
26122         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
26123         to NULL_TREE on entry.
26124
26125 2005-03-15  Robert Dewar  <dewar@adacore.com>
26126
26127         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26128         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26129         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26130         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26131         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26132         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
26133         system-interix.ads, system-solaris-sparc.ads,
26134         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26135         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
26136         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26137         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
26138         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
26139         Compiler_System_Version to be False.
26140
26141         * opt.ads: Add new flag Opt.Address_Is_Private
26142
26143         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
26144         Add new parameter Compiler_System_Version to avoid checking for
26145         completeness of parameters when compiler is compiling itself.
26146         Allows old versions of GNAT to be compiled with new compiler.
26147
26148 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26149
26150         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
26151         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
26152         calling thread.
26153         (Stack_Base_Available): New flag.
26154         (Get_Page_Size): New overloaded functions imported from C.
26155         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
26156         PROT_ON, PROT_OFF): New constants.
26157         (mprotect): New function imported from C.
26158         (pthread_teb_t): New record type.
26159
26160         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
26161         (Create_Task): Account for the Yellow Zone and the guard page.
26162
26163 2005-03-15  Vincent Celier  <celier@adacore.com>
26164
26165         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26166         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
26167         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
26168         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
26169         Library_File_Name_For): Add new parameter In_Tree
26170         to specify the project tree: needed by the project manager.
26171         Adapt to changes in project manager using new parameter In_Tree.
26172         Remove local imports, use functions in System.CRTL.
26173
26174         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
26175         to use the project manager.
26176
26177         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
26178         In_Tree to designate the project tree. Adapt to changes in the project
26179         manager, using In_Tree.
26180
26181         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
26182         Copy_Interface_Sources): Add new parameter In_Tree to specify the
26183         project tree: needed by the project manager.
26184         (Build_Library): Check that Arg'Length >= 6 before checking if it
26185         contains "--RTS=...".
26186
26187         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
26188         Library_File_Name_For): Add new parameter In_Tree to specify the
26189         project tree: needed by the project manager.
26190
26191         * prj.ads, prj.adb: Major modifications to allow several project trees
26192         in memory at the same time.
26193         Change tables to dynamic tables and hash tables to dynamic hash
26194         tables. Move tables and hash tables from Prj.Com (in the visible part)
26195         and Prj.Env (in the private part). Move some constants from the visible
26196         part to the private part. Make other constants deferred.
26197         (Project_Empty): Make it a variable, not a function
26198         (Empty_Project): Add parameter Tree. Returns the data with the default
26199         naming data of the project tree Tree.
26200         (Initialize): After updating Std_Naming_Data, copy its value to the
26201         component Naming of Project Empty.
26202         (Register_Default_Naming_Scheme): Use and update the default naming
26203         component of the project tree, instead of the global variable
26204         Std_Naming_Data.
26205         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
26206         Tree is not defaulted, return the default naming data of the Tree.
26207         (Initial_Buffer_Size): Constant moved from private part
26208         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
26209         variables initialized in procedure Initialize.
26210         (Add_To_Buffer): Add two in out parameters to replace global variables
26211         Buffer and Buffer_Last.
26212         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
26213         functions.
26214         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
26215         hash tables.
26216         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26217         for the project tree.
26218         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
26219         constant at the beginning of the package spec, so that they cane be used
26220         in subprograms before their full declarations.
26221         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
26222         (Empty_Project): Add parameter of type Project_Node_Ref
26223         (Private_Project_Tree_Data): Add component Default_Naming of type
26224         Naming_Data.
26225         (Buffer, Buffer_Last): remove global variables
26226         (Add_To_Buffer): Add two in out parameters to replace global variables
26227         Buffer and Buffer_Last.
26228         (Current_Packages_To_Check): Remove global variable
26229         (Empty_Name): Move to private part
26230         (No-Symbols): Make it a constant
26231         (Private_Project_Tree_Data): New type for the private part of the
26232         project tree data.
26233         (Project_Tree_Data): New type for the data of a project tree
26234         (Project_Tree_Ref): New type to designate a project tree
26235         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26236         for the project tree.
26237
26238         * prj-attr.ads: Add with Table; needed, as package Prj no longer
26239         imports package Table.
26240
26241         * prj-com.adb: Remove empty, no longer needed body
26242
26243         * prj-com.ads: Move most of the content of this package to package Prj.
26244
26245         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
26246         designate the project node tree and Packages_To_Check to replace
26247         global variable Current_Packages_To_Check.
26248         Add new parameters In_Tree and Packages_To_Check to local subprograms,
26249         when needed. Adapt to changes in project manager with project node tree
26250         In_Tree.
26251
26252         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
26253         project tree to most subprograms. Move tables and hash tables to
26254         private part of package Prj.
26255         Adapt to changes in project manager using project tree In_Tree.
26256
26257         * prj-makr.adb (Tree): New constant to designate the project node tree
26258         Adapt to change in project manager using project node tree Tree
26259
26260         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
26261         display the Library_Src_Dir and the Library_Dir.
26262         Add new parameter In_Tree to designate the project node tree to most
26263         subprograms. Adapt to changes in the project manager, using project tree
26264         In_Tree.
26265         (Check_Naming_Scheme): Do not alter the casing on platforms where
26266         the casing of file names is not significant.
26267         (Check): Add new parameter In_Tree to designate the
26268
26269         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
26270         designate the project tree.
26271         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
26272
26273         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
26274         to replace those that were in the private part of package Prj.
26275         Add new parameter In__Tree to designate the project node tree to most
26276         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
26277         (Post_Parse_Context_Clause): When specifying the project node of a with
26278         clause, indicate that it is a limited with only if there is "limited"
26279         in the with clause, not necessarily when In_Limited is True.
26280         (Parse): Add new parameter In_Tree to designate the project node tree
26281
26282         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
26283         designate the project node tree. Adapt to change in Prj.Tree with
26284         project node tree In_Tree.
26285
26286         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
26287         tree In_Tree in the call to function Empty_Process to give its initial
26288         value to the project data Processed_Data.
26289         Add new parameters In_Tree to designate the project tree and
26290         From_Project_Node_Tree to designate the project node tree to several
26291         subprograms. Adapt to change in project manager with project tree
26292         In_Tree and project node tree From_Project_Node_Tree.
26293
26294         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
26295         to replace those that were in the private part of package Prj.
26296         Add new parameter In_Tree to designate the project node tree to most
26297         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
26298
26299         * prj-tree.ads, prj-tree.adb: Add new parameter of type
26300         Project_Node_Tree_Ref to most subprograms.
26301         Use this new parameter to store project nodes in the designated project
26302         node tree.
26303         (Project_Node_Tree_Ref): New type to designate a project node tree
26304         (Tree_Private_Part): Change table to dynamic table and hash tables to
26305         dynamic hash tables.
26306
26307         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
26308         the project tree to most subprograms. Adapt to changes in project
26309         manager using project tree In_Tree.
26310
26311         * makegpr.adb (Project_Tree): New constant needed to use project
26312         manager.
26313
26314 2005-03-15  Olivier Hainque  <hainque@adacore.com>
26315
26316         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
26317         for sigactions with SA_SIGINFO set. Call
26318         __gnat_adjust_context_for_raise before raising, to perform the
26319         potentially required adjustments to the machine context for the GCC
26320         unwinder.
26321
26322         * raise.h (__gnat_adjust_context_for_raise): New prototype.
26323
26324         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
26325         Adjust PC by one in the provided machine context.
26326         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
26327         so that the handler is passed the context structure to adjust prior to
26328         the raise.
26329         (__gnat_error_handler) HPUX: Adjust the signature to match what an
26330         SA_SIGINFO sigaction should look like. Call
26331         __gnat_adjust_context_for_raise before actually raising.
26332         (__gnat_adjust_context_for_raise): Default noop to help PC
26333         adjustments before raise from signal handlers.
26334         (__gnat_error_handler): Indirectly call a predicate function to
26335         determine if a condition should be resignaled or not.
26336         (__gnat_set_resignal_predicate): User interface to modify the predicate.
26337         (__gnat_default_resignal_p): Default GNAT predicate.
26338
26339 2005-03-15  Doug Rupp  <rupp@adacore.com>
26340
26341         * adaint.c: Prefix #include of VMS system header files with vms/
26342         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
26343         Do not define a dummy function "convert_addresses" under Darwin,
26344         not needed.
26345
26346         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
26347         with vms/
26348
26349 2005-03-15  Nicolas Setton  <setton@adacore.com>
26350
26351         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
26352         PPC/AIX.
26353
26354 2005-03-15  Robert Dewar  <dewar@adacore.com>
26355
26356         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
26357         AI-386.
26358
26359         * a-retide.ads: Minor comment changes
26360
26361 2005-03-15  Robert Dewar  <dewar@adacore.com>
26362
26363         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
26364         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
26365         Realloc_For_Chunk to private part of package.
26366         New subprograms for AI-301
26367
26368         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
26369         Get_Line procedure.
26370         Avoid unnecessary use of Get/Set_Wide_String
26371
26372 2005-03-15  Robert Dewar  <dewar@adacore.com>
26373
26374         PR ada/13470
26375         * a-stunau.ads, a-stunau.adb:
26376         Change interface to allow efficient (and correct) implementation
26377         The previous changes to allow extra space in unbounded strings had
26378         left this interface a bit broken.
26379
26380         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
26381
26382         * g-spipat.ads, g-spipat.adb: New interface for Get_String
26383         Minor reformatting (function specs)
26384
26385         * g-spitbo.adb: New interface for Get_String
26386
26387         * g-spitbo.ads: Minor reformatting
26388
26389         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
26390
26391         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
26392
26393 2005-03-15  Javier Miranda  <miranda@adacore.com>
26394             Robert Dewar  <dewar@adacore.com>
26395             Thomas Quinot  <quinot@adacore.com>
26396             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26397
26398         * atree.ads, atree.adb: Add support for Elist24 field
26399
26400         * atree.h: Fix wrong definition of Field27
26401         Add support for Elist16 field
26402         Add support for Elist24 field
26403
26404         * einfo.ads, einfo.adb (Abstract_Interfaces,
26405         Set_Abstract_Interfaces): New subprograms.
26406         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
26407         subprograms.
26408         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
26409         entities rather than a single node.
26410         (Is_Interface, Set_Is_Interface): New subprogram
26411         (First_Tag_Component): New syntesized attribute
26412         (Next_Tag_Component): New synthesized attribute
26413         (Write_Entity_Flags): Upgraded to write Is_Interface
26414         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
26415         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
26416         (Task_Body_Procedure): New subprogram to read this attribute.
26417         (Set_Task_Body_Procedure): New subprogram to set this attribute.
26418         (Has_Controlled_Component): Now applies to all entities.
26419         This is only a documentation change, since it always worked to apply
26420         this to other than composite types (yielding false), but now this is
26421         official.
26422         Update documentation on Must_Be_Byte_Aligned for new spec
26423
26424         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
26425         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
26426         uses of the Access_Disp_Table attribute to reference the first dispatch
26427         table associated with a tagged type. As
26428         part of the implementation of abstract interface types,
26429         Access_Disp_Table has been redefined to contain a list of dispatch
26430         tables (rather than a single dispatch table).
26431         Similarly, upgrade all the references to Tag_Component by the
26432         new attribute First_Tag_Component.
26433         (Find_Inherited_TSS): Moved to exp_tss.
26434         Clean up test in Expand_N_Object_Declaration for cases
26435         where we need to do a separate assignment of the initial value.
26436         (Expand_N_Object_Declaration): If the expression in the
26437         declaration of a tagged type is an aggregate, no need to generate an
26438         additional tag assignment.
26439         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
26440         is to be deleted.
26441         Bit packed array ops are only called if operands are known to be
26442         aligned.
26443         (Component_Equality): When returning an N_Raise_Program_Error statement,
26444         ensure that its Etype is set to Empty to avoid confusing GIGI (which
26445         expects that only expressions have a bona fide type).
26446         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
26447         determine the amount of data to be copied.
26448
26449         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
26450         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
26451             INTERFACE_TYPE_DEFINITION ::=
26452               [limited | task | protected | synchronized] interface
26453                 [AND interface_list]
26454
26455         * par-ch3.adb (P_Type_Declaration): Modified to give support to
26456         interfaces.
26457         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
26458         interfaces.
26459         (P_Interface_Type_Definition): New subprogram that parses the new
26460         syntax rule of Ada 2005 interfaces
26461         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
26462         messages by the correct RENAMES (quotes removed).
26463
26464         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
26465         attribute First_Tag_Component.
26466
26467         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
26468         (Interface_List, Set_Interface_List): New subprograms.
26469         (Interface_Present, Set_Interface_Present): New subprograms.
26470         (Limited_Present, Set_Limited_Present): Available also in derived
26471         type definition nodes.
26472         (Protected_Present, Set_Protected_Present): Available also in
26473         record type definition and
26474         derived type definition nodes.
26475         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
26476         (Task_Present, Set_Task_Present): New subprogram.
26477         (Task_Body_Procedure): Removed.
26478         (Set_Task_Body_Procedure): Removed.
26479         These subprogram have been removed because the attribute
26480         Task_Body_Procedure has been moved to the corresponding task type
26481         or task subtype entity to leave a field free to store the list
26482         of interfaces implemented by a task (for AI-345)
26483         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
26484         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
26485         expression flag Do_Range_Check
26486         (Exception_Junk): Change to Flag7 to accomodate above change
26487         (Box_Present, Default_Name, Specification, Set_Box_Present,
26488         Set_Default_Name, Set_Specification): Expand the expression
26489         "X in N_Formal_Subprogram_Declaration" into the corresponding
26490         two comparisons. Required to use the csinfo tool.
26491
26492         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
26493         "with string" given.
26494
26495         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
26496         expression given.
26497
26498         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
26499         in 2005 mode
26500
26501         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
26502         attribute Task_Body_Procedure rather than the old semantic field that
26503         was available in the task_type_declaration node.
26504
26505         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
26506         interface type definitions.
26507         (P_Formal_Derived_Type_Definition): Modified to handle the list of
26508         interfaces.
26509
26510         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
26511         task type declaration.
26512         (P_Protected): Modified to handle the list of interfaces in a
26513         protected type declaration.
26514
26515 2005-03-15  Doug Rupp  <rupp@adacore.com>
26516             Vincent Celier  <celier@adacore.com>
26517
26518         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
26519         (Gen_Output_File_C): Likewise.
26520         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
26521
26522 2005-03-15  Thomas Quinot  <quinot@adacore.com>
26523
26524         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
26525         is an N_Raise_Constraint_Error node, create a new copy of it without
26526         going through a call to Duplicate_Subexpr.
26527
26528 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26529             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26530             Nicolas Setton  <setton@adacore.com>
26531             Ed Schonberg  <schonberg@adacore.com>
26532
26533         PR ada/19900
26534         PR ada/19408
26535         PR ada/19140
26536         PR ada/20255
26537         * decl.c (gnat_to_gnu_field): Reject aliased components with a
26538         representation clause that prescribes a size not equal to the rounded
26539         size of their types.
26540         (gnat_to_gnu_entity, case E_Component): Always look at
26541         Original_Record_Component if Present and not the entity.
26542         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
26543         of tagged extension types by not making field for components that are
26544         inside the parent.
26545         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
26546         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
26547         expression to the type of the object when the object is constant.
26548         Reverse defer_debug_incomplete_list before traversing it, so that trees
26549         are processed in the order at which they were added to the list. This
26550         order is important when using the stabs debug format.
26551         If we are deferring the output of debug information, also defer this
26552         output for a function return type.
26553         When adding fields to a record, prevent emitting debug information
26554         for incomplete records, emit the information only when the record is
26555         complete.
26556         (components_to_record): New parameter defer_debug.
26557         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
26558         (gnat_to_gnu_field_decl): New function.
26559         (substitution_list, annotate_rep): Call it.
26560         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
26561         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
26562         No longer update discriminants to not be a COMPONENT_REF.
26563         (copy_alias_set): Strip padding from input type; also handle
26564         unconstrained arrays properly.
26565
26566         * gigi.h (write_record_type_debug_info): New function.
26567         Convert to use ANSI-style prototypes. Remove unused
26568         declarations for emit_stack_check, elab_all_gnat and
26569         set_second_error_entity.
26570         (gnat_to_gnu_field_decl): New decl.
26571
26572         * utils.c (write_record_type_debug_info): New function.
26573         (finish_record_type): Delegate generation of debug information to
26574         write_record_type_debug_info.
26575         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
26576         (update_pointer_to): Fix pasto.
26577         (convert) <UNION_TYPE>: Accept slight type variations when
26578         converting to an unchecked union type.
26579
26580         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
26581         replace the N_Freeze_Entity with a null statement.
26582
26583         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
26584         within a constrained subcomponent of an enclosing record, place the
26585         freeze nodes in the scope stack entry for the enclosing record.
26586         (Undelay_Type): New Subprogram.
26587         (Set_Small_Size): Pass T, the type to modify; all callers changed.
26588         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
26589         within records; allow them to have freeze nodes if their base types
26590         aren't frozen yet.
26591
26592         * exp_util.adb (Remove_Side_Effects): Properly test for
26593         Expansion_Delayed and handle case when it's inside an
26594         N_Qualified_Expression.
26595
26596         * sem_ch3.adb (Derived_Type_Declaration): New predicate
26597         Comes_From_Generic, to recognize accurately that the parent type in a
26598         derived type declaration can be traced back to a formal type, because
26599         it is one or is derived from one, or because its completion is derived
26600         from one.
26601         (Constrain_Component_Type): If component comes from source and has no
26602         explicit constraint, no need to constrain in in a subtype of the
26603         enclosing record.
26604         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
26605         Minor change to propagate Is_Ada_2005 flag
26606
26607         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
26608         Expansion_Delayed is False.
26609         (assoc_to_constructor): Ignore fields that have a
26610         Corresponding_Discriminant.
26611         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
26612         function returns "by target", dereference the target pointer using the
26613         type of the actual return value.
26614         <all>: Be prepared for a null gnu_result.
26615         (processed_inline_subprograms): Check flag_really_no_inline
26616         instead of flag_no_inline.
26617         (set_second_error_entity): Remove unused function.
26618         (gnat_to_gnu, case N_Selected_Component): Call
26619         gnat_to_gnu_field_decl.
26620         (assoc_to_constructor): Likewise.
26621
26622 2005-03-15  Robert Dewar  <dewar@adacore.com>
26623             Ed Schonberg  <schonberg@adacore.com>
26624             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26625
26626         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
26627         Must_Be_Byte_Aligned for cases where we do not need to use a
26628         System.Pack_nn unit.
26629
26630         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
26631         as procedures.
26632         Needed now that we do some processing for IN parameters as well. This
26633         may well fix some unrelated errors.
26634         (Expand_Call): Handle case of unaligned objects (in particular those
26635         that come from packed arrays).
26636         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
26637         renamed entity is an inherited operation, re-expand the call using the
26638         original operation, which is the one to call.
26639         Detect attempt to inline parameterless recursive subprogram.
26640         (Represented_As_Scalar): Fix to work properly with private types
26641         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
26642         accurate estimate. Yields True in far fewer cases than before,
26643         improving the quality of code that depends on this test.
26644
26645         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
26646         over both visible and private declarations to remove them from tree,
26647         and mark subprograms declared in package as eliminated, to prevent
26648         spurious use in subsequent compilation of generic units in the context.
26649
26650         * exp_util.ads: Minor cleanup in variable names
26651
26652         * sem_eval.ads, sem_eval.adb: Minor reformatting
26653         (Compile_Time_Known_Bounds): New function
26654
26655 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26656
26657         * exp_ch7.adb (Convert_View): Use base types of underlying types when
26658         determining whether an unchecked conversion is needed for the argument
26659         of an initialization call.
26660
26661 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26662
26663         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
26664         that appears in the instantiation rather than the internal subtype
26665         generated in the wrapper package, to avoid anomalies in gigi when the
26666         target is derived from a private type whose full view is an access type.
26667
26668 2005-03-15  Robert Dewar  <dewar@adacore.com>
26669
26670         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
26671         not needed.
26672         Add documentation to replace the use of this flag
26673         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
26674         the x86_64.
26675
26676 2005-03-15  Thomas Quinot  <quinot@adacore.com>
26677
26678         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
26679         here from exp_attr so it can be shared between exp_attr and exp_dist.
26680         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
26681         all TSS names, not a subset thereof, and the previous name introduced
26682         an unnecessarily confusion that a distinction might exist between
26683         "OK" TSS names and some "not OK" TSS names.
26684
26685 2005-03-15  Doug Rupp  <rupp@adacore.com>
26686
26687         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
26688         Command_Name.
26689
26690 2005-03-15  Pascal Obry  <obry@adacore.com>
26691             Eric Botcazou  <ebotcazou@adacore.com>
26692
26693         PR ada/20226
26694         PR ada/20344
26695         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
26696         when IN_RTS. This is to work around a bootstrap path problem.
26697
26698         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
26699         table and pass it to __gnat_install_SEH_handler().
26700         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
26701
26702         * lang.opt: Fix specification of -fRTS=.
26703
26704 2005-03-15  Doug Rupp  <rupp@adacore.com>
26705             Bernard Banner  <banner@adacore.com>
26706             Vincent Celier  <celier@adacore.com>
26707             Arnaud Charlet  <charlet@adacore.com>
26708
26709         PR ada/6852
26710         This change works fine when gnatlib is built from the gcc directory,
26711         but does not work when using the libada Makefile, since GCC_FOR_TARGET
26712         is not passed to ada/Makefile.in, so more work is needed by a
26713         Makefile/configure expert.
26714
26715         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
26716         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
26717         Setup gnatlink switch -M for x86_64 linux, as it is already setup
26718         for Linux x86.
26719         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
26720         Run ranlib on libgccprefix.a
26721         Define PREFIX_OBJS for Darwin, to build libgccprefix.
26722         (ADA_INCLUDE_SRCS): Split Ada packages.
26723
26724 2005-03-15  Robert Dewar  <dewar@adacore.com>
26725
26726         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
26727
26728         * impunit.adb: Add GNAT.UTF_32
26729
26730         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
26731
26732         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
26733         now uses GNAT.UTF_32).
26734
26735         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
26736         capabilities for categorizing characters using Unicode categories
26737
26738 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26739
26740         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
26741         instantiation that has been rewritten as a package body, retrieve spec
26742         to generate proper name for implicit_with_clause.
26743         (Install_Parents): Recognize a parent that is an instantiation but has
26744         been rewritten as a package declaration during analysis.
26745
26746 2005-03-15  Javier Miranda  <miranda@adacore.com>
26747             Ed Schonberg  <schonberg@adacore.com>
26748
26749         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
26750         parameter reported some error we immediately return. This improves the
26751         behaviour of the frontend in case of errors.
26752         (Install_Parent, Remove_Parent): Introduce new flag
26753         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
26754         ancestor of a generic child unit, when the child is being instantiated.
26755         (Inline_Instance_Body): If we are compiling the private
26756         part or the body of a child unit, restore the proper visibility of the
26757         parents after compiling the instance body.
26758
26759 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26760             Javier Miranda  <miranda@adacore.com>
26761
26762         PR ada/15608
26763         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
26764         of a private type, in which case it is underlying_type that denotes
26765         the proper task. Also modified to use the new entity attribute
26766         that is directly available in the task type and task subtype entities
26767         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
26768         arrays when other dimensions than the first are constrained by
26769         discriminants of an enclosing record.
26770         (Insert_Explicit_Dereference): If the prefix is an indexed component or
26771         a combination of indexed and selected components, find ultimate entity
26772         and generate the appropriate reference for it, to suppress spurious
26773         warnings.
26774         (Note_Possible_Modification): If an entity name has no entity, return.
26775         (Is_Variable): A function call never denotes a variable.
26776         (Requires_Transient_Scope): For record types, recurse only on
26777         components, not on internal subtypes that may have been generated for
26778         constrained components.
26779
26780 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26781
26782         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
26783         Eliminated as candidates for resolution. Both efficient, and avoids
26784         anomalies with operators declared in deleted code.
26785         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
26786         expansion is disabled (as when compiling a generic) to prevent spurious
26787         warnings on prefixes of selected components.
26788
26789 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26790
26791         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
26792         attached to a list before checking whether it appears in the private
26793         declarations of the current package.
26794         (Make_Inequality_Operator): Insert declaration in proper declarative
26795         list rather than just setting the Parent field, so that
26796         Is_Private_Declaration can handle it properly.
26797
26798 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26799
26800         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
26801         a renaming a body, check that the renamed subprogram in not intrinsic.
26802         (Find_Direct_Name): If several use_visible entities hide
26803         each other, and the context is a predefined file compiled through
26804         rtsfind, keep only the entity that comes from a predefined file.
26805
26806 2005-03-15  Geert Bosch  <bosch@adacore.com>
26807
26808         * s-fatgen.adb (Valid): Extend special exceptions to account for long
26809         long float padding to also cover AMD64 and IA64.
26810
26811 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
26812
26813         * s-imgwch.adb: Add with and use of Interfaces.
26814         (Img_Wide_Character): Change type of Val to Unsigned_16.
26815         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
26816
26817 2005-03-15  Matthew Gingell  <gingell@adacore.com>
26818
26819         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
26820
26821 2005-03-15  Robert Dewar  <dewar@adacore.com>
26822
26823         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
26824
26825         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
26826
26827         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
26828
26829 2005-03-15  Robert Dewar  <dewar@adacore.com>
26830
26831         * s-bitops.adb, s-bitops.ads,
26832         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
26833         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
26834         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
26835         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
26836         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
26837         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
26838         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
26839         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
26840         reformatting.
26841
26842 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26843
26844         * utils2.c (build_binary_op): Fix typo.
26845
26846 2005-03-15  Doug Rupp  <rupp@adacore.com>
26847
26848         * s-crtl.ads (popen,pclose): New imports.
26849
26850 2005-03-15  Cyrille Comar  <comar@adacore.com>
26851
26852         * comperr.adb (Compiler_Abort): remove references to obsolete
26853         procedures in the bug boxes for various GNAT builds.
26854
26855 2005-03-15  Vincent Celier  <celier@adacore.com>
26856
26857         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
26858
26859 2005-03-15  Geert Bosch  <bosch@adacore.com>
26860             Arnaud Charlet  <charlet@adacore.com>
26861             Robert Dewar  <dewar@adacore.com>
26862             Cyrille Comar  <comar@adacore.com>
26863             Sergey Rybin  <rybin@adacore.com>
26864
26865         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
26866         too specific and long-winded to be appropriate for the GNAT User's
26867         Guide.
26868         Warn about use of GCC switches not documented in the GNAT User's Guide,
26869         as these may cause generated code to not conform to Ada semantics.
26870         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
26871         Add documentation for -gnat95 and -gnat05 switches
26872         Remove paragraph documenting obsolete way to refer to third party
26873         libraries.
26874         Add a few references to Ada_05 that were missing.
26875         Update documentation on -gnatZ/-gnatL.
26876         Document limitation when using -m64 under Solaris.
26877         Change the "Name Casing" subsection of the pretty-printer section
26878         according to the changes in the dictionary processing.
26879
26880         * gnat_rm.texi: Document the Ada_05 pragma.
26881         Section on record representation clauses describes the new more
26882         relaxed rules about placement of large packed bit array components.
26883         Add documentation of GNAT.UTF_32
26884
26885 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
26886
26887         * misc.c (gnat_post_options): Turn off structural
26888         aliasing for now.
26889
26890 2005-03-08  Laurent Guerby  <laurent@guerby.net>
26891
26892         * system-linux-sparc.ads: Fix typo in previous commit.
26893
26894 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
26895             Laurent Guerby  <laurent@guerby.net>
26896
26897         PR ada/20035
26898         * system-linux-sparc.ads: New.
26899         * Makefile.in: Add sparc linux entry.
26900
26901 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
26902
26903         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
26904         parameters as unused.
26905
26906 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
26907         Partial merge from libada-gnattools-branch:
26908
26909         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
26910         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
26911         into code in gnattools/Makefile.in.  Remove direct dependencies on
26912         stamp-tools by tools clauses.
26913         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
26914         * config-lang.in: Add gnattools to $lang_dirs.
26915
26916 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
26917
26918         PR ada/19942
26919         * utils.c (gnat_type_for_mode): Return null instead of ICE because
26920         we asked for an unknown mode.
26921
26922 2005-02-12  Richard Henderson  <rth@redhat.com>
26923
26924         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
26925         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
26926
26927 2005-02-10  Andreas Jaeger  <aj@suse.de>
26928
26929         * init.c (__gnat_initialize): Mark parameter as unused.
26930
26931 2005-02-09  Doug Rupp  <rupp@adacore.com>
26932
26933         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
26934         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
26935
26936 2005-02-09  Doug Rupp  <rupp@adacore.com>
26937
26938         * gnatchop.adb (dup, dup2),
26939         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
26940
26941         * gnatlbr.adb (mkdir),
26942         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
26943
26944         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
26945
26946 2005-02-09  Doug Rupp  <rupp@adacore.com>
26947
26948         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
26949
26950 2005-02-09  Robert Dewar  <dewar@adacore.com>
26951             Thomas Quinot  <quinot@adacore.com>
26952             Javier Miranda  <miranda@adacore.com>
26953             Pascal Obry  <obry@adacore.com>
26954             Ed Schonberg  <schonberg@adacore.com>
26955             Doug Rupp  <rupp@adacore.com>
26956             Gary Dismukes  <dismukes@adacore.com>
26957             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26958
26959         * g-zstspl.ads: New file.
26960
26961         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
26962
26963         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
26964         Ada 95 mode
26965         Add definition of Wide_Wide_Space for AI-285
26966
26967         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
26968         interface (to support Ada 95 and Ada 2005 units).
26969         Add Unbounded_IO files
26970         Add entries for Wide_Wide packages for AI-285
26971         Add list of containers packages to Ada 2005 unit list
26972
26973         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
26974         support new Unbounded_IO package cleanly.
26975
26976         * g-utf_32.ads, g-utf_32.adb: New files.
26977
26978         * Makefile.rtl: Add entry for g-utf_32
26979         Add new files for Unbounded_IO
26980         Adjust make file for new AI-285 wide wide packages
26981         Add AI-302 containers to the run time.
26982
26983         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
26984         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
26985         subprograms for AI-301.
26986
26987         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
26988
26989         * a-stunau.ads: Minor comment correction
26990
26991         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
26992         etc.
26993         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
26994         (Check_RPC): Update to match changes in expanded code.
26995         Clean up unused entity.
26996
26997         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
26998         was not taken into account.
26999         This includes proper initialization with Normalize_Scalars.
27000         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27001         normalize scalars cases (particularly the latter) to do a better job
27002         of finding invalid representations.
27003
27004         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27005
27006         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27007         used
27008
27009         * exp_dist.adb: Add support for wide wide character type
27010         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27011         private part, generate stub bodies at the end of the private part,
27012         not the visible part.
27013         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27014         PolyORB support.
27015         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27016         generic wrapper to execute final processing after completing the
27017         expansion of the RPC receiver for an RACW.
27018
27019         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27020         packages and attributes.
27021         (Preset_Names): Addition of the new reserved words of Ada 2005,
27022         that is interface, overriding and synchronized.
27023         (Get_Pragma_Id): Give support to the use of the new reserved word
27024         "interface" as a pragma name.
27025         (Is_Pragma_Name): Give support to the use of the new reserved word
27026         "interface" as a pragma name.
27027         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27028         attribute implementation.
27029
27030         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27031         checks to entities that are output parameters of Asm operations.
27032         Handle the Stream_Size attribute.
27033         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27034
27035         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27036
27037         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27038         for second parameter being 0.0.
27039         Add support for wide wide character type.
27040         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27041
27042         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27043         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27044         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27045         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27046         for wide wide character cases.
27047
27048         * cstand.adb: Create entities for Wide_Wide_Character and
27049         Wide_Wide_String.
27050
27051         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27052         accordance with AI-258.
27053         Add new declarations for 16/32 bit C character types (Part of AI285)
27054
27055         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27056         (Obsolescent_Warning): New field
27057         (Rep_Clause): New local subprogram used to share code. Returns the rep
27058         clause for which the name is given in parameter.
27059         (Has_Stream_Size_Clause): New routine.
27060         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27061         (Address_Clause): Implementation is now using Rep_Clause.
27062         (Alignment_Clause): Idem.
27063         (Size_Clause): Idem.
27064
27065         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27066         entity in non-Ada 2005 mode and generate warning.
27067
27068         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27069         (Prag): Code cleanup. Remove old gnat pragma "overriding"
27070
27071         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27072         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27073         on the named unit if the pragma is not in the current compilation unit,
27074         so that elaboration calls in the current unit can set up an elaboration
27075         dependency on the named unit, as needed.
27076         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27077         subprogram as well as for subprograms declared within a package.
27078         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27079         pragma overriding.
27080
27081         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27082         to z) to avoid some instances of duplication for Wide_Wide packages.
27083
27084         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27085         characters.
27086
27087         * scn.adb: Char_Literal_Value field is now a Uint
27088
27089         * scng.adb: Significant rewrite to handle new Ada 2005 features
27090         allowing wide and wide wide characters in program text, e.g. for
27091         identifiers, as described in AI-285.
27092         (Set_Reserved): New procedure, makes setting up keywords cleaner.
27093         (Initialize_Scanner): Register the new reserved words of Ada 2005.
27094         (Scan): Give support to the new reserved words.
27095
27096         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
27097         warning notifying that interface, overriding, and synchronized are
27098         new reserved words.
27099         (P_Pragma): Allow the use of the new reserved word "interface" as
27100         a pragma name.
27101
27102         * gnatls.adb, gnatbind.adb,
27103         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
27104         identifiers named "interface" to "SAL_Interface".
27105
27106         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
27107         (Structured Exception handling).
27108         (Gen_Main_C): Idem.
27109
27110         * bindgen.adb:
27111         (Gen_Main_Ada): Set the default exit code if specified.
27112         (Gen_Main_C): Likewise.
27113         Part of *DC20-006.
27114         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
27115         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
27116
27117         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
27118         new -Xnnn switch.
27119
27120         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
27121         has a collision with the new Ada 2005 "interface" reserved word.
27122
27123         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
27124         generate a warning notifying that interface, overriding, and
27125         synchronized are new reserved words.
27126
27127         * scans.ads (Token_Type): Addition of the tokens corresponding to the
27128         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
27129         and Tok_Synchronized.
27130
27131         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
27132         "dispatching" rather than "primitive" operations, since dispatching
27133         calls are now allowed to abstract formal subprograms (which are not
27134         primitive).
27135         Char_Literal_Value field is now a Uint
27136         (Resolve_Slice): If the prefix is an access to an unconstrained array,
27137         compute the actual subtype of the designated object to impose the proper
27138         index constraints.
27139         (Resolve_Selected_Component): Do not insert an access check if the
27140         prefix is an access type: such a node is expanded into an explicit
27141         dereference, on which the access check is performed anyway. Removes
27142         expensive duplicate checks.
27143         (Resolve_Call): Use new flag Is_Obsolescent and field
27144         Obsolescent_Warning so that pragma Obsolescent works on library
27145         subprograms.
27146         Add support for wide wide character type
27147         (Resolve_Allocator): Replace the error message on wrong null-exclusion
27148         value by a warning message.
27149         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
27150         as fixed-point, and one of the operands is non-static and universal, it
27151         can only be an illegal exponentiation operation, in which case there is
27152         no real value to retrieve.
27153
27154         * exp_strm.adb: Add support for wide wide character type
27155         (Build_Elementary_Input_Call): Compute the size of the stream element by
27156         querying the rep chain to find the Stream_Attribute attribute value.
27157         (Build_Elementary_Write_Call): Ditto.
27158
27159         * sem_aggr.adb: Char_Literal_Value field is now a Uint
27160         Add support for wide wide character type
27161         Replace the error messages on wrong null-exclusion value by warnings
27162         as described in Ada 2005.
27163         (Resolve_Extension_Aggregate): Document the fact that the error
27164         message on class-wide expressions in extensions aggregates.
27165
27166         * sem_case.adb: Add support for wide wide character type
27167
27168         * sem_ch13.adb: Add support for wide wide character type
27169         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
27170
27171         * sem_ch3.adb: Add support for wide wide character type
27172         (Process_Subtype): If constraint is illegal for the type, set Ekind of
27173         now-useless Itype, to prevent cascaded errors on a compiler built
27174         without -gnatp.
27175
27176         * sem_ch8.adb: Add with and use of Sem_Disp.
27177         (Analyze_Subprogram_Renaming): Replace unclean uses of
27178         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
27179         of Corresponding_Spec to Empty).
27180         (Attribute_Renaming): Replace use of Corresponding_Spec with
27181         Corresponding_ Formal_Spec and simplify condition.
27182         (Use_One_Package): Check that scope of homonym of identifier is defined,
27183         before checking whether it is a wrapper package.
27184         Add support for wide wide character type
27185
27186         * sem_eval.adb: Add support for wide wide character type.
27187         (Eval_Arithmetic_Op): Check for compile time known signed integer
27188         overflow in the non-static case.
27189         (Subtypes_Statically_Match): A formal scalar type and its base type do
27190         not statically match.
27191
27192         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
27193         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
27194         subtype).
27195         (Unit_Declaration_Node): Ditto.
27196         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
27197         has a packed array type, the prefix has been rewritten into a type
27198         conversion. Determine variable-ness from the converted expression.
27199         Handle wide wide character cases.
27200
27201         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
27202
27203         * stringt.ads, stringt.adb: Handle full UTF-32 range.
27204         Remove ["0A"] from comment, since it can look like a line terminator.
27205         Currently we don't permit this, but this is under discussion by the
27206         ARG, and it is easy enough to use a different example.
27207
27208         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
27209         handling UTF-32 encoding for wide wide character.
27210         Implement new brackets coding ["hhhhhhhh"]
27211         Add UTF-8 encodings for full UTF-32 range
27212
27213         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
27214
27215         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
27216         bit range Add full UTF-32 support.
27217         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
27218         notify that constraint error will be raised at run-time
27219         because a null value is assigned to a null-excluding object.
27220         Remove some obsolete declarations and make Char_Code
27221         unsigned.
27222
27223         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
27224         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
27225         Rcheck subprograms.
27226
27227         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
27228         wrong null-exclusion value by a warning message.
27229         (Enable_Range_Check): Do range check if the prefix is an
27230         explicit dereference whose designated object is an unconstrained array.
27231         Current algorithm for removing duplicate checks is over-eager in this
27232         case.
27233
27234         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
27235         null-exclusion value by a warning message
27236
27237         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
27238         completely. Add support for Uint2 field
27239
27240         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
27241         exp_prag.adb: Char_Literal_Value field is now a Uint.
27242
27243         * exp_util.adb (Insert_Actions): Replace
27244         N_Formal_Subprogram_Declaration by
27245         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
27246         Char_Literal_Value field is now a Uint.
27247
27248         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
27249         defined for subprogram renaming declarations. When set, the field
27250         indicates the defining entity of a corresponding formal subprogram
27251         when the renaming corresponds to a formal subprogram association in an
27252         instantiation.
27253         (Set_Corresponding_Formal_Spec): New procedure to return
27254         Corresponding_Formal_Spec field.
27255         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
27256         (which is now a subtype).
27257         Char_Literal_Value field is now a Uint
27258
27259         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
27260         pointer to the base of the dispatch table.
27261         Minor changes to comments.
27262         (Controlling_Type): New function for determining the tagged type
27263         associated with a tagged primitive subprogram.
27264         (Expand_Dispatching_Call): Add support for a controlling actual that is
27265         directly a value of type Ada.Tag rather than a tagged object.
27266
27267         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
27268         describing the new layout.
27269         (Dispatch_Table): The expander computes the actual array size, allocates
27270         the Dispatch_Table record accordingly, and generates code that displaces
27271         the base of the record after the Typeinfo_Ptr component. The access to
27272         these components is done by means of local functions.
27273         (Offset_To_Top): New function.
27274         (Typeinfo_Ptr): New function.
27275         (Get_TSD): Modified to access the new position of the TSD.
27276         (Set_TSD): Modified to save the TSD in its new position.
27277
27278         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
27279         case of formal abstract subprograms. Add check and message for -gnat05.
27280         Update comments.
27281
27282         * sem_ch12.adb: Add with and use for Sem_Disp.
27283         (Analyze_Associations): Minor change from "=" to "in" for use of
27284         N_Formal_Subtype_Declaration (which is now a subtype).
27285         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
27286         N_Formal_Subtype_Declaration (which is now a subtype).
27287         (Analyze_Formal_Subprogram): Add handling for
27288         N_Formal_Abstract_Subprogram, marking the formal as abstract and
27289         dispatching, setting the controlling status of the formal parameters
27290         and result, and issuing an error if there is no controlling type for
27291         the formal subprogram.
27292         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
27293         which is an unclean use of that field, we set the new field
27294         Corresponding_Formal_Spec to make the formal subprogram available to
27295         processing in Analyze_Subprogram_Declaration.
27296         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
27297         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
27298         Constrained, so that it is is does not statically match its anonymous
27299         base type.
27300
27301         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
27302         abstract formal subprograms in error check for functions returning
27303         abstract types. Set scope of new designator for
27304         a parameterless subprogram, so that it is available when checking the
27305         body for nested subprograms, before full analysis of said body.
27306         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
27307         subprogram only if inner one comes from source.
27308         (Analyze_Function_Call): If the call is given in object notation, the
27309         analysis of the name rewrites the node and analyzes it with the proper
27310         argument list. After analyzing the name, if the call has been rewritten
27311         and the result type is set, no further analysis is needed.
27312         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
27313         mark in function specification, in a context where the formals are
27314         visible and hide outer homographs.
27315
27316         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
27317         as the tagged type for the cases of abstract formal subprograms and
27318         renamings of those.  Clean up spec comments.
27319         (Check_Dispatching_Context): Add error message to indicate "abstract
27320         procedure", covering the case of a call to a formal abstract procedure
27321         that has statically tagged operands.
27322         (Check_Dispatching_Call): Check for the case of an actual given by
27323         a tag-indeterminate function call whose type is an ancestor of the
27324         containing call's associated tagged type. This situation can occur
27325         for inherited primitives with function defaults. In this case we
27326         use the tagged type's tag directly as the controlling argument for
27327         the calls.
27328         (Expand_Call): Name change on call to Expand_Dispatch_Call.
27329
27330         * sprint.adb (Sprint_Node_Actual): Split
27331         N_Formal_Subprogram_Declaration into two alternatives for the new
27332         cases N_Formal_Abstract_Subprogram_Declaration and
27333         N_Formal_Concrete_Subprogram_Declaration.
27334         Char_Literal_Value field is now a Uint.
27335
27336         * trans.c: Get rid of junk Uint2 reference.
27337         Char_Literal_Value field is now a Uint.
27338         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
27339         (gigi): Correct third arg to gimplify_body.
27340
27341         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
27342         (TYPE_LANG_FLAG_0): Check for record or union.
27343
27344         * treepr.adb: Char_Literal_Value field is now a Uint
27345
27346         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
27347         UI_From_CC.
27348
27349         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
27350         Add full UTF-32 support
27351         Char_Code is now 32 bits
27352
27353         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
27354         wide character UTF_32 line terminators.
27355         Initialize Main_Source_File to avoid error when no main
27356         source is loaded.
27357
27358         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
27359         (Main_Source_File) when no main source has been loaded, to avoid
27360         potential crash.
27361
27362 2005-02-09  Robert Dewar  <dewar@adacore.com>
27363
27364         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
27365         Fix name of Set routine
27366
27367         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
27368         fixed packages.
27369
27370         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
27371         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
27372         fixed packages
27373
27374         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
27375         forms of Get_Line subprograms for AI-301.
27376
27377         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
27378         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
27379         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
27380         a-stwima.ads: Minor reformatting.
27381
27382 2005-02-09  Doug Rupp  <rupp@adacore.com>
27383             Thomas Quinot  <quinot@adacore.com>
27384
27385         * adaint.c, adaint.h
27386         [VMS] (to_ptr32): New function.
27387         (MAYBE_TO_PTR32): New macro.
27388         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
27389         for pointer size.
27390         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
27391         [VMS] (#define fork()): Remove since unneccessary.
27392         (__gnat_set_close_on_exec): New routine to support
27393         GNAT.OS_Lib.Set_Close_On_Exec.
27394
27395         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
27396         the parent side as close-on-exec so that they are not inherited by the
27397         child.
27398
27399         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
27400         set or clear the FD_CLOEXEC flag on a file descriptor.
27401
27402 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
27403             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27404
27405         PR ada/19386
27406         * decl.c:
27407         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
27408         on the field if Pragma Component_Alignment (Storage_Unit).
27409         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
27410         side-effects as if it were a constant; also make SAVE_EXPR to protect
27411         side-effects.
27412         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
27413         UNION_TYPE.
27414         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
27415         (components_to_record): Test it.
27416         Fix improper usage of REFERENCE_CLASS_P.
27417
27418         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
27419         RECORD_TYPE.
27420
27421         * utils2.c: Minor reformatting.
27422
27423         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
27424         handle other cases like RECORD_TYPE.
27425
27426         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
27427
27428 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27429
27430         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
27431         component of an array of arrays in an assignment context, and the
27432         aggregate has component associations that require sliding on
27433         assignment, force reanalysis of the aggregate to generate a temporary
27434         before the assignment.
27435         (Must_Slide): Make global to the package, for use in Gen_Assign.
27436
27437 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27438
27439         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
27440         unchecked union with no inferable discriminants, return a
27441         Raise_Program_Error node, rather than inserting it at the point the
27442         type is frozen.
27443         (Expand_Record_Equality, Component_Equality): Handle properly the case
27444         where some subcomponent is an unchecked union whose generated equality
27445         code raises program error.
27446
27447 2005-02-09  Doug Rupp  <rupp@adacore.com>
27448
27449         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
27450         [VMS] (#define exit hack): Remove.
27451
27452 2005-02-09  Pascal Obry  <obry@adacore.com>
27453             Arnaud Charlet  <charlet@adacore.com>
27454
27455         * init.c (__gnat_initialize): Add a new parameter eh which contains the
27456         address of the exception registration. The Win32 version of this
27457         routine calls __gnat_install_SEH_handler() to initialize the SEH
27458         (Structured Exception Handling) handler.
27459         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
27460         SEH (Structured Exception Handling) now.
27461         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
27462         (__gnat_initialize for ppc-vxworks): Adjust comments and the
27463         preprocessor condition protecting the call to the extra eh setup
27464         subprogram, which is only available for the ppc target.
27465         (__gnat_clear_exception_count): replaced reference to
27466         variable taskIdCurrent by call to taskIdSelf(), cleaner.
27467
27468         * seh_init.c: New file.
27469
27470         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
27471         (GNATBIND_OBJS): Idem.
27472
27473         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
27474         routine takes a new parameter (a pointer to the exception registration
27475         for the SEH (Structured Exception Handling) support.
27476
27477         * raise.h: (__gnat_install_SEH_handler): New prototype.
27478         Update copyright notice.
27479
27480         * s-tassta.adb (Task_Wrapper): Declare the exception registration
27481         record and initialize it by calling __gnat_install_SEH_handler.
27482
27483 2005-02-09  Vincent Celier  <celier@adacore.com>
27484
27485         * make.adb (Gnatmake): Do not fail when the main project has no object
27486         directory.
27487
27488 2005-02-09  Doug Rupp  <rupp@adacore.com>
27489
27490         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
27491         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
27492         [VMS]: Add translations for g-enblsp.adb.
27493
27494         * s-asthan-vms.adb: Removed.
27495         * s-asthan-vms-alpha.adb: Added.
27496
27497 2005-02-09  Pascal Obry  <obry@adacore.com>
27498
27499         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
27500         (LIBGNAT_OBJS): Add seh_init.o.
27501
27502 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27503
27504         PR ada/16592
27505         * Makefile.in: Link all gnat tools with -static-libgcc, since
27506         -shared-libgcc is now used by default on some systems (e.g. linux with
27507         recent binutils).
27508         Remove references to Makefile.prolog/generic, no longer used.
27509
27510 2005-02-09  Vincent Celier  <celier@adacore.com>
27511
27512         * prj-makr.adb (Process_Directory): Put file name in canonical case
27513         before matching against the patterns.
27514         If gnatname has been invoked as <prefix>-gnatname
27515         then invoke the compiler as <prefix>-gcc, not just "gcc".
27516
27517 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27518
27519         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
27520         with expansion disabled. The actual subtype is needed among other
27521         places when the selected component appears in the context of a loop
27522         bound, and denotes a packed array.
27523         (Operator_Check): Always use the first subtype in the
27524         error message, to avoid the appearance of internal base types.
27525         (Transform_Object_Operation): Copy each actual in full
27526         to the parameter associations of the constructed call, rather than
27527         using the shallow copy mechanism of New_Copy_List. This ensures that
27528         the chaining of named associations is done properly.
27529         (Complete_Object_Operation): Rewrite node, rather than
27530         replacing it, so that we can trace back to the original selected
27531         component.
27532
27533         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
27534         and calls that use object notation, if the called function is not
27535         declared  in a withed unit, place the elaboration constraint on the
27536         unit in the context that makes the function accessible.
27537         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
27538         imposes an elaboration constraint between two packages.
27539
27540 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27541
27542         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
27543         views of a private type after handling its private dependents, to
27544         maintain proper stack discipline between entry and exit from the
27545         package.
27546
27547 2005-02-09  Cyrille Comar  <comar@adacore.com>
27548
27549         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
27550         Minor reformatting.
27551
27552 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27553
27554         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
27555         fields for foreign threads.
27556
27557 2005-02-09  Doug Rupp  <rupp@adacore.com>
27558
27559         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
27560         recursion warnings when compiled with -gnatdm.
27561
27562 2005-02-09  Robert Dewar  <dewar@adacore.com>
27563
27564         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
27565         Slight fix to documentation of -gnaty with no parameters
27566
27567         * xr_tabls.ads: Add ??? comment for missing overall comment
27568
27569         * xsinfo.adb: Make default file name be sinfo.h, since this is what
27570         we now use by default.
27571
27572         * xsnames.adb: Adjust end of file test to look for five space followed
27573         by '#' instead of six spaces. The format of xsnames.adb was modified
27574         in the last update.
27575
27576         * a-numeri.ads: Add reference to AI-388 for greek letter pi
27577         identifier.
27578
27579         * clean.adb: Minor reformatting.
27580
27581         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
27582         gnatname.adb: Minor reformatting
27583         Add 2005 to copyright output when utility is run
27584
27585         * csets.adb: Eliminate obsolete comment
27586
27587         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
27588         Update comments.
27589
27590         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
27591
27592 2005-02-09  Sergey Rybin  <rybin@adacore.com>
27593
27594         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
27595         the difference between compact and incompact layout and add the record
27596         representation clause to the example illustrating different layouts.
27597         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
27598         component clauses").
27599
27600 2005-02-09  Florian Villoing  <villoing@adacore.com>
27601
27602         * gnat_ugn.texi: Fix typos.
27603         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
27604         @file.
27605         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
27606         in the generated documentation.
27607
27608 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27609
27610         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
27611         longer supported.
27612         Update linker wrapper when linking with non GNU C++.
27613
27614 2005-02-09  Pascal Obry  <obry@adacore.com>
27615
27616         * gnat_ugn.texi:
27617         Document the procedure to debug the DllMain routine on Windows.
27618         Add note about -funwind-tables and mixed Ada and C/C++ programming in
27619         ZCX mode.
27620         Document new BIND qualifer /RETURN_CODES=VMS.
27621
27622 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
27623
27624         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
27625         Edited gnatmetric chapter
27626
27627 2005-02-09  Robert Dewar  <dewar@adacore.com>
27628
27629         * gnat_rm.texi:
27630         Changes to document new wide wide character support
27631         For AI-285
27632         Update documentation on Normalize_Scalars and Initialize_Scalars
27633
27634 2005-02-09  Pascal Obry  <obry@adacore.com>
27635
27636         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
27637
27638 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
27639
27640         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
27641         from the VxWorks kernel) that is needed for getting the active
27642         priority of the different tasks.
27643
27644         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
27645         Use a pragma Elaborate_Body in the spec file instead.
27646         Noticed by code reading.
27647
27648 2005-02-09  Thomas Quinot  <quinot@adacore.com>
27649
27650         * exp_util.ads: Minor correction in comment.
27651
27652 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27653
27654         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
27655         since this procedure is now too complex to be worth inlining.
27656
27657 2005-02-09  Richard Henderson  <rth@redhat.com>
27658
27659         * utils.c (gnat_define_builtin): Remove.
27660         (gnat_install_builtins): Use build_common_builtin_nodes.
27661
27662 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27663
27664         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
27665         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
27666         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
27667         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
27668         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
27669         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
27670         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
27671         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
27672         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
27673         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
27674         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
27675         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
27676         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
27677         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
27678         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
27679         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
27680         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
27681         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
27682         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
27683         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
27684         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
27685         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
27686         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
27687         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
27688         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
27689         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
27690         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
27691         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
27692         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
27693         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
27694         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
27695         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
27696         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
27697         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
27698         library.
27699
27700 2005-01-27  Laurent Guerby  <laurent@guerby.net>
27701
27702         * Makefile.in: Fix a-intnam.ads from previous commit,
27703         add 2005 to copyright.
27704         * a-intman-rtems.ads: Renamed to...
27705         * a-intnam-rtems.ads:
27706
27707 2005-01-27  Laurent Guerby  <laurent@guerby.net>
27708
27709         * Makefile.in: Rename GNAT RTEMS specific files.
27710         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
27711         5rosinte.ads, 5rparame.adb: Replaced by files below.
27712         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
27713         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
27714
27715 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
27716             Laurent Guerby  <laurent@guerby.net>
27717
27718         PR ada/19488
27719         * 5rosinte.ads: Add No_Key constant.
27720         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
27721         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
27722
27723 2005-01-26  Laurent Guerby  <laurent@guerby.net>
27724
27725         PR ada/19414
27726         * i-cobol.adb (Valid_Numeric): Handle zero length case.
27727
27728 2005-01-20  Richard Henderson  <rth@redhat.com>
27729
27730         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
27731         a-intnam-linux.ads and system-linux-alpha.ads.
27732         * a-intnam-linux-alpha.ads: Remove file.
27733         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
27734         * system-linux-alpha.ads: New file.
27735
27736 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
27737
27738         PR ada/13470
27739         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
27740         set to the new string.
27741
27742 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
27743
27744         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
27745         to True.
27746
27747 2005-01-18  Richard Henderson  <rth@redhat.com>
27748
27749         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
27750         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
27751         for alpha-linux.
27752         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
27753
27754 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
27755
27756         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
27757         (GCC_ZCX_Support): Likewise.
27758
27759 2005-01-11  Bastian Blank  <waldi@debian.org>
27760
27761         * system-linux-s390.ads: Define Preallocated_Stacks.
27762         * system-linux-s390x.ads: Likewise.
27763
27764 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
27765
27766         * gnat_ugn.texi: Fix texi errors with null variables.
27767
27768 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27769
27770         * gen-soccon.c: New utility program to generate g-soccon.ads
27771         automatically.
27772
27773         * socket.c, gsocket.h: Split inclusion of system header files into a
27774         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
27775
27776         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
27777         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27778         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
27779         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27780         should not be edited by hand anymore, but should be regenerated using
27781         gen-soccon.
27782
27783 2005-01-03  Robert Dewar  <dewar@adacore.com>
27784             Ed Schonberg  <schonberg@adacore.com>
27785             Vincent Celier  <celier@adacore.com>
27786
27787         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
27788         on/off, since this is an obsolescent feature, for which we now generate
27789         a warning.
27790
27791         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
27792         warning mode is set and obsolescent usage of this attribute occurs.
27793         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
27794         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
27795         predates, and partly motivates, the adoption of the AI.
27796         Implement new Ada 2005 attribute Mod
27797
27798         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
27799         attribute Mod.
27800
27801         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
27802
27803         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
27804         pragma restrictions.
27805         New entry for Ada 2005 attribute Mod.
27806
27807         * par-prag.adb:
27808         Add recognition of new pragma Restrictions No_Dependence
27809         Recognize restriction No_Obsolescent_Features at parse time
27810
27811         * bcheck.adb: Add circuitry for checking for consistency of
27812         No_Dependence restrictions.
27813
27814         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
27815         restrictions.
27816
27817         * restrict.ads, restrict.adb: Add subprograms to deal with
27818         No_Dependence restrictions.
27819
27820         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
27821         restrictions.
27822
27823         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
27824         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
27825
27826         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
27827         dummy parameter to scng instantiation.
27828         Needed for new restriction No_Obsolescent_Features
27829
27830         * scn.adb: (Obsolescent_Check): New procedure
27831         Needed for new restriction No_Obsolescent_Features
27832
27833         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
27834         specified by AI-285, needed for implementation of AI-388 (adding greek
27835         pi to Ada.Numerics).
27836         Add new generic formal to scng, needed for new restriction
27837         No_Obsolescent_Features.
27838
27839         * s-rident.ads: Add new restriction No_Obsolescent_Features.
27840
27841         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
27842         restrictions lines.
27843         (Scan_ALI): When finding an unexpected character on an R line, raise
27844         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
27845         Ignore_Errors is True, default restrictions are set and scanning of the
27846         ALI file continues with the next line. Also, when Bad_R_Line is raised
27847         and Ignore_Errors is True, skip to the end of le line.
27848
27849         * sem_ch10.adb: Check that explicit with's do not violate
27850         No_Dependence restrictions.
27851         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
27852         illegal context clauses containing child units of instance.
27853
27854         * sem_prag.adb: Processing and checking for new No_Dependence
27855         restrictions.
27856         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
27857         analyze and check the External argument.
27858
27859         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
27860
27861 2005-01-03  Robert Dewar  <dewar@adacore.com>
27862
27863         * atree.adb: Add a fifth component to entities
27864         This allows us to add 32 flags and four new fields
27865
27866         * atree.ads: Add a fifth component to entities
27867         This allows us to add 32 flags and four new fields
27868
27869         * einfo.ads, einfo.adb: Document new fields and new flags now available
27870         Add routines for printing new fields
27871
27872         * treepr.adb: Call routines to print out additional fields if present
27873
27874 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27875
27876         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
27877         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
27878
27879         * Makefile.in: Add support to build shared Ada libraries on solaris x86
27880         Remove gpr2make, replaced by gprmake.
27881         Remove references to gnatmem and libaddr2line.
27882         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
27883         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
27884         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
27885         a-numaux-darwin.ads and a-numaux-darwin.adb
27886         Enable mlib-tgt-lynxos.adb on lynxos.
27887
27888         * Make-lang.in: Remove rules for gpr2make.
27889         When generating sdefault.adb, do not call Relocate_Path
27890         on S3 for function Target_Name, as it is not a path.
27891         Remove references to gnatmem and libaddr2line.
27892
27893         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
27894         files.
27895
27896 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
27897
27898         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
27899         address is incompatible with its base type alignment constraints when
27900         this can be decided statically.
27901
27902 2005-01-03  Olivier Hainque  <hainque@adacore.com>
27903
27904         * decl.c (compatible_signatures_p): New function. The intended purpose
27905         is to check if two function signatures for a call-site and a callee are
27906         compatible enough for the call to be valid. The underlying purpose is
27907         to check if a call to a mapped builtin is using the right interface.
27908         The current code actually does not check antyhing - this a placeholder
27909         for future refinements.
27910         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
27911         builtin calls for convention Intrinsic.
27912
27913         * gigi.h (builtin_decl_for): Declare (new function).
27914
27915         * utils.c (gnat_install_builtins): Install the target specific builtins.
27916         (builtin_decl_for): New function, provide a dummy body for now.
27917
27918 2005-01-03  Geert Bosch  <bosch@adacore.com>
27919
27920         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
27921         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27922         (Pred): Implement in terms of Succ.
27923
27924         * trans.c (convert_with_check): Reimplement conversion of float to
27925         integer.
27926
27927 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27928             Vincent Celier  <celier@adacore.com>
27929
27930         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
27931         bounds can be negative, and must be declared Int, not Nat.
27932
27933         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
27934         array is checked after using the index in the array.
27935
27936         * makegpr.adb (Add_Switches): Check if there is a package for the
27937         processor. If there is no package, do not look for switches.
27938
27939 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27940
27941         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
27942         generation of predefined stream operations (specs and bodies) should
27943         proceed. Under various restrictions these subprograms must not be
27944         generated.
27945
27946 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27947
27948         * exp_dist.adb:
27949         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
27950         amount of PCS-specific code in RACW stubs generation.
27951         (Copy_Specification): Set Etype on copied formal parameter entities, as
27952         this information is needed for PolyORB stubs generation.
27953         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
27954         variable Dynamic_Async.
27955         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
27956         (Build_RPC_Receiver_Specification): Make generic again, as recent
27957         changes have allowed RPC receivers to have the same profile for both
27958         variants of the PCS.
27959         Reorganise RPC receiver generation to reduce differences between the
27960         structure of GARLIC and PolyORB RPC receivers.
27961         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
27962         PCS-specific.
27963         Simplify elaboration code for RCI packages.
27964
27965         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
27966         generation to reduce differences between the structure of GARLIC and
27967         PolyORB RPC receivers.
27968
27969         * s-stratt.adb: Fix typo in comment.
27970
27971 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27972
27973         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
27974         copied from Make_Init_Call).
27975
27976         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
27977         reads and assignments on a temporary variable declared with appropriate
27978         discriminants.
27979
27980 2005-01-03  Robert Dewar  <dewar@adacore.com>
27981
27982         * i-c.adb (To_C): Raise CE if string is null and Append_Null
27983
27984 2005-01-03  Robert Dewar  <dewar@adacore.com>
27985
27986         * i-cstrin.adb (Update): Do not append a null in form called with a
27987         String. This avoids unintended behavior.
27988
27989 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27990
27991         PR ada/17527
27992         * init.c: Fix warnings on Free BSD section.
27993
27994 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27995
27996         PR ada/16949
27997         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
27998         xsinfo.adb).
27999
28000 2005-01-03  Vincent Celier  <celier@adacore.com>
28001
28002         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28003         libraries when Unique_Compile is True (-u switch).
28004         (Gnatmake): ditto.
28005
28006 2005-01-03  Robert Dewar  <dewar@adacore.com>
28007
28008         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28009         upper case letter or underscore after W, as allowed by spec.
28010
28011 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28012
28013         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28014         darwin port by using proper type definitions from header files.
28015         Use SIGTERM instead of SIGABRT for SIGADAABORT.
28016
28017 2005-01-03  Robert Dewar  <dewar@adacore.com>
28018
28019         * par.adb: Enhance error message handling for configuration file
28020         pragmas.
28021
28022 2005-01-03  Robert Dewar  <dewar@adacore.com>
28023
28024         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28025         removed during the previous update (test properly for case of dividing
28026         largest negative number by -1, which generates overflow).
28027
28028 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28029             Sergey Rybin  <rybin@adacore.com>
28030
28031         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28032         to use as the defining identifier for a formal package.
28033         (Remove_Parent): If the instance takes place within (an instance of)
28034         a sibling, preserve private declarations of common parent.
28035
28036 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28037
28038         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28039         to determine whether one of the operands is a fixed-point type for
28040         which a user-defined multiplication or division operation might be
28041         defined.
28042
28043         * sem_res.adb (Valid_Conversion): The legality rules for conversions
28044         of access types are symmetric in Ada 2005: either designated type can
28045         be unconstrained.
28046
28047 2005-01-03  Vincent Celier  <celier@adacore.com>
28048
28049         * s-fileio.adb (Temp_File_Record): Change length of string component
28050         Name from L_tmpnam + 1 to max_path_len + 1.
28051
28052 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28053
28054         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28055         Self_Id.Deferral_Level = 0.
28056         (Do_Pending_Action): Move this function to the spec.
28057
28058         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28059         Do_Pending_Action explicitely when needed, in case we're using
28060         No_Abort restrictions.
28061
28062         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28063         deferral level since it will not get changed by the generated code.
28064         Keeping a default value of 1 would prevent some operations (e.g.
28065         select or delay) to proceed successfully.
28066
28067 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
28068             Robert Dewar  <dewar@adacore.com>
28069             Cyrille Comar  <comar@adacore.com>
28070
28071         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28072         porting guide chapter (vms version).
28073         Revised doc title (removed "for native platforms") and subtitle.
28074         Add discussion on warning flag for obsolescent features. First we
28075         note that it applies to obsolete GNAT features, which was previously
28076         omitted. Second we contrast the behavior with that of the new
28077         Ada 2005 AI-368 restriction No_Obsolescent_Features.
28078         Preliminary rewriting of GNAT & libraries chapter in order to take
28079         into account default project locations & new project manager
28080         capabilities.
28081
28082 2005-01-03  Robert Dewar  <dewar@adacore.com>
28083
28084         * cstand.adb (Create_Operators): Clean up format and documentation of
28085         unary and binary operator result tables. No change in code, just
28086         reformatting and addition of comments.
28087
28088         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28089         sem_ch2.adb: Minor reformatting
28090
28091         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
28092         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
28093         comments for Tree_Read and Tree_Write.
28094
28095 2005-01-03  Pascal Obry  <obry@adacore.com>
28096
28097         * exp_attr.ads: Minor reformatting.
28098
28099 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
28100
28101         * comperr.adb (Compiler_Abort): Add specialized message for GAP
28102         versions.
28103
28104 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28105
28106         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
28107         whether the ancestor type is private, as may be the case with nested
28108         instantiations.
28109
28110 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
28111
28112         PR ada/19128
28113         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
28114
28115 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
28116
28117         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
28118         * utils2.c (build_unary_op): Likewise.
28119
28120 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28121
28122         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
28123
28124 2004-12-19  Richard Henderson  <rth@redhat.com>
28125
28126         * trans.c (gigi): Update gimplify_body call.
28127
28128 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
28129
28130         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
28131
28132 2004-12-07  Ed Falis  <falis@adacore.com>
28133
28134         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
28135         current task being suspended.
28136
28137         * init.c (__gnat_clear_exception): added to reset VxWorks exception
28138         count.
28139         (__gnat_map_signal): removed test for current task being suspended.
28140
28141 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28142
28143         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
28144         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
28145         targets (such as AAMP).
28146
28147 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28148
28149         * atree.adb (Visit_Itype): Create a new name for the generated itype,
28150         because the back-end may otherwise treat it as a redefinition of the
28151         old symbol.
28152
28153 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
28154
28155         * back_end.adb (Scan_Back_End_Switches): Accept --param.
28156
28157         * lang-specs.h: Accept --param.
28158
28159 2004-12-07  Vincent Celier  <celier@adacore.com>
28160
28161         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
28162         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
28163         Current_Body_Suffix => Ada_Body_Suffix).
28164         Take into account Externally_Built attribute.
28165
28166         * clean.adb (In_Extension_Chain): Always return False when one of the
28167         parameter is No_Project.
28168         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
28169         Ada_Language_Index).
28170         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
28171         Process_Languages for procedure Parse).
28172
28173         * gnatcmd.adb (Carg_Switches): New table.
28174         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
28175         Adapt to name changes in package Prj (Current_Spec_Suffix =>
28176         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
28177
28178         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
28179         Header_Num and function Hash are now declared in package Prj,
28180         not Prj.Com.
28181
28182         * prj.adb (Suffix_Of): New function.
28183         (Set (Suffix)): New procedure.
28184         (Hash): One function moved from Prj.Com
28185         (Is_Present, Language_Processing_Data_Of): New functions
28186         (Set): Two new procedures
28187         (Add_Language_Name, Display_Language_Name): New procedures
28188
28189         * prj.ads: (Suffix_Of): New function
28190         (Set (Suffix)): New procedure
28191         Add several types and tables for multi-language support.
28192         (Header_Num): Type moved from Prj.Com
28193         (Hash): Two functions moved from Prj.Com
28194         (Is_Present, Language_Processing_Data_Of): New functions
28195         (Set): Two new procedures
28196         (Add_Language_Name, Display_Language_Name): New procedures
28197         (Naming): Component name changes:
28198         Current_Spec_Suffix => Ada_Spec_Suffix,
28199         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
28200         Impl_Suffixes, Supp_Suffixes.
28201         (Project_Data): New components: Externally_Built, Supp_Languages,
28202         First_Language_Processing, Supp_Language_Processing, Default_Linker,
28203         Default_Linker_Path.
28204
28205         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
28206         new package Language_Processing with its attributes (Compiler_Driver,
28207         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
28208         Binder_Driver, Default_Linker).
28209
28210         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
28211         (Header_Num): Type moved to package Prj
28212
28213         * prj-env.adb: Adapt to name changes in package Prj
28214         (Current_Spec_Suffix => Ada_Spec_Suffix,
28215         Current_Body_Suffix => Ada_Body_Suffix).
28216
28217         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
28218         default to the project path, except the "-" is one of the directories
28219         in env var ADA_PROJECT_PATH.
28220         (Current_Project_Path): Global variable, replacing Project_Path
28221         that was in the body of Prj.Part.
28222         (Project_Path): New function
28223         (Set_Project_Path): New procedure
28224         Initialize Current_Project_Path during elaboration of the package
28225         Remove dependency on Prj.Com, no longer needed
28226
28227         * prj-ext.ads (Project_Path): New function
28228         (Set_Project_Path): New procedure
28229
28230         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
28231         suffix is defined for language <lang>.
28232         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
28233         accessing directly the components of Naming.
28234         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
28235         Reorganise of this package.
28236         Break procedure Check in several procedures.
28237
28238         * prj-nmsc.ads: Replace all procedures (Ada_Check,
28239         Other_Languages_Check and Language_Independent_Check) with a single
28240         procedure Check.
28241
28242         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
28243         Process_Languages, no longer needed.
28244
28245         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
28246         Current_Project_Path.
28247         Remove elaboration code, moved to the body of Prj.Ext
28248         Use new function Prj.Ext.Project_Path instead of old variable
28249         Project_Path.
28250         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
28251         When comparing with project paths on the stack, first put the resolved
28252         path in canonical case.
28253         (Parse_Single_Project): Set the path name of the project file in the
28254         tree to the normalized path.
28255
28256         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
28257         parameter Process_Languages, no longer needed.
28258         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
28259         Other_Languages_Check.
28260
28261         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
28262         to store the resolved canonical path of the project file.
28263         Remove dependency to Prj.Com, no longer needed
28264
28265         * prj-util.adb: Adapt to name changes in package Prj
28266         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
28267         Ada_Body_Suffix).
28268
28269         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
28270         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
28271         Externally_Built, Include_Option, Language_Processing.
28272
28273         * makegpr.adb: Numerous changes due to changes in packages
28274         Prj and Prj.Nmsc.
28275
28276         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
28277         default to the project path, except whe "-" is one of the directories
28278         in env var ADA_PROJECT_PATH.
28279         (Gnatls): In verbose mode, add the new section "Project Search Path:"
28280
28281 2004-12-07  Robert Dewar  <dewar@adacore.com>
28282
28283         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
28284
28285         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
28286         set -gnatR3m mode.
28287
28288         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
28289         flag. No longer needed now that we handle this in gnat1drv.adb.
28290
28291         * repinfo.ads: Minor reformatting
28292
28293 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28294             Olivier Hainque  <hainque@adacore.com>
28295             Eric Botcazou  <ebotcazou@adacore.com>
28296
28297         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
28298         TYPE_SIZE_UNIT of result type if SIZE is not specified.
28299         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
28300         of a bitfield, which we know is useless and causes trouble because of
28301         alignment implications.
28302
28303         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
28304         BSS sections.
28305         (process_attributes): Clear DECL_COMMON again when a section attribute
28306         is present.
28307         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
28308         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
28309         (create_field_decl): Special case ADDRESSABLE negative to mean
28310         "no bitfield creation", to be used by make_aligning_type. Don't
28311         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
28312         fields claimed addressable still have to be bitfields. Use
28313         value_factor_p instead of a raw binop construction to check for the
28314         position's alignment.
28315
28316 2004-12-07  Geert Bosch  <bosch@adacore.com>
28317
28318         * eval_fat.adb: Revert previous change.
28319
28320 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28321             Ed Schonberg  <schonberg@adacore.com>
28322
28323         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
28324         with an implicit dereference as its prefix, use
28325         Insert_Explicit_Dereference instead of merely rewriting the prefix into
28326         an explicit dereference. This ensures that a reference to the original
28327         prefix is generated, if appropriate.
28328
28329         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
28330         dereference is rewritten to an explicit one, generate a reference to
28331         the entity denoted by its prefix using the original prefix node, so
28332         the dereference can be properly recorded as a read of the denoted
28333         access value, if appropriate.
28334
28335         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
28336         emitting 'assigned but never read' warning on a variable on the basis
28337         that it has an access type.
28338         (Check_References): Emit unreferenced warning when the scope is a
28339         subprogram body.
28340
28341 2004-12-07  Robert Dewar  <dewar@adacore.com>
28342             Ed Schonberg  <schonberg@adacore.com>
28343
28344         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
28345         intrinsic
28346
28347         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
28348         leaving call unchanged.
28349         This deals with the case where the pragma Import specified
28350         an external name, to be handled by the back end.
28351
28352         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
28353         subprogram which is Imported with convention Intrinsic if an
28354         External_Name argument is specified.
28355         (Process_Import_Or_Interface): Properly diagnose link name argument.
28356         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
28357         with Sem_Ch6.Cannot_Inline.
28358         (Process_Inline): Provide separate warning for inapplicable inline
28359         pragma.
28360         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
28361         treatment is uniform on different targets.
28362
28363 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28364
28365         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
28366         construct is rewritten, preserve end label to permit source navigation.
28367
28368 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28369
28370         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
28371         Specific_Build_Stub_Target): New subprograms.
28372         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
28373         the PCS implementation used, using the above PCS-customized subprograms.
28374         Minor reformatting.
28375         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
28376         for generation of DSA code targeted to the PolyORB PCS.
28377         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
28378         implementation of the partition communication subsystem in ancillary
28379         subprograms.
28380         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
28381         PolyORB_Support.Build_Stub_Type): New subrograms containing the
28382         PCS-specific part of Add_Stub_Type.
28383         (Insert_Partition_Check): Use runtime library function to perform
28384         E.4(19) check.
28385
28386         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
28387         (RE_Same_Partition): New entity, from s-parint.
28388
28389         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
28390
28391 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28392
28393         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
28394         Output the copyright message on a separate line from the version
28395         message.
28396
28397 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
28398
28399         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
28400         compile-time warning.
28401
28402 2004-12-07  Robert Dewar  <dewar@adacore.com>
28403
28404         * g-regpat.adb: (Match): Change a misuse of or to or else
28405
28406 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28407
28408         * lib-xref.adb:
28409         (Generate_Reference): Handle properly a reference to an entry formal,
28410          when an accept statement has a pragma Unreferenced for it.
28411
28412         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
28413         and the Has_Pragma_Unreferenced flag for each formal before analyzing
28414         the body, to ensure that warnings are properly emitted for each accept
28415         statement of a given task entry.
28416
28417 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
28418
28419         * Makefile.in: Add support for foreign threads on VMS.
28420
28421 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28422
28423         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
28424         Remove.
28425         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
28426
28427         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
28428
28429         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
28430         exception.
28431         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
28432
28433 2004-12-07  Robert Dewar  <dewar@adacore.com>
28434
28435         * nlists.adb (Prepend_Debug): Remove parameters and nest within
28436         Prepend.
28437         (Remove_Next_Debug): Same fix
28438
28439         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
28440         maintain back pointers now, though we did not used to, and comments
28441         were out of date).
28442         (Prepend): Remove pragma Inline.
28443         (Remove_Next): Same cleanup
28444
28445 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28446
28447         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
28448         used to record an implicit dereference as a read operation on its
28449         prefix when operating under -gnatc. Necessary to avoid spurious
28450         'variable assigned but never read' warnings in that mode.
28451         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
28452         is a non-overloaded implicit dereference, call the above subprogram to
28453         ensure proper recording of references.
28454
28455 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28456
28457         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
28458         to be resolved later as part of Analyze_Iteration_Scheme's call to
28459         Make_Index.
28460
28461 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28462
28463         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
28464         prefix is not a scalar type, place error message on prefix, not on
28465         type entity.
28466
28467 2004-12-07  Bernard Banner  <banner@adacore.com>
28468
28469         * vxaddr2line.adb: Add support for x86 vxworks
28470
28471 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28472
28473         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
28474         documentation of the behaviour of these functions when passed an IP
28475         address that has no record in the system hosts database and no reverse
28476         record in the DNS.
28477
28478         * cstand.adb, a-tags.ads: Fix typos in comment.
28479
28480 2004-12-07  Robert Dewar  <dewar@adacore.com>
28481
28482         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
28483         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
28484         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
28485         s-poosiz.ads: Minor reformatting
28486
28487         * make.adb: Minor reformatting
28488         Add some ??? comments asking for more comments
28489
28490         * s-poosiz.adb: Minor reformatting
28491         Add comments on alignment requirement
28492
28493         * sinfo.ads: Remove obsolete comment and fix typo.
28494
28495 2004-12-07  Vincent Celier  <celier@adacore.com>
28496             Sergey Rybin  <rybin@adacore.com>
28497
28498         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
28499         Files" with the new tool and package names.
28500         Reformatting to suppress most of the warnings for line too long
28501         Document the new section "Project Search Path:" in the output of
28502         gnatls -v.
28503         Add gnatmetric section
28504
28505 2004-12-07  Vincent Celier  <celier@adacore.com>
28506
28507         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
28508         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
28509         and -eit to -ept. Added qualifier
28510         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
28511
28512 2004-11-27  Andreas Schwab  <schwab@suse.de>
28513
28514         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
28515
28516 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
28517
28518         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
28519         internal implementation unit GNAT.Sockets.Thin,
28520         as their usage for sockets is non-portable (using the read and write
28521         functions from the system runtime library is fine on UNIX but won't
28522         work under Windows).
28523
28524         * mingw32.h: Update copyright notice.
28525
28526 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
28527
28528         * ada-tree.h: Minor reformatting of previous change to avoid lines
28529         longer than 79 characters.
28530
28531 2004-11-25  Olivier Hainque  <hainque@adacore.com>
28532
28533         * tb-gcc.c: GCC infrastructure based implementation of
28534         __gnat_backtrace.
28535
28536 2004-11-24  Steven Bosscher  <stevenb@suse.de>
28537
28538         * misc.c (gnat_post_options): Don't clear
28539         flag_inline_functions.
28540
28541 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
28542
28543         PR ada/17986
28544         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
28545         tree.
28546
28547 2004-11-21  Andreas Jaeger  <aj@suse.de>
28548
28549         * stylesw.adb: Change Style_Check_Subprogram_Order to
28550         Style_Check_Order_Subprograms.
28551
28552 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
28553
28554         * adaint.h, adaint.c
28555         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
28556         to avoid warnings.
28557         Add also a cast to kill another warning.
28558         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
28559         parameter with the priority class of the parent process instead of
28560         always using the NORMAL_PRIORITY_CLASS.
28561         (__gnat_dup): New function.
28562         (__gnat_dup2): New function.
28563         (__gnat_is_symbolic_link): Enable the effective body of this
28564         function when __APPLE__ is defined.
28565
28566         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
28567         Update comments.
28568
28569 2004-11-18  Olivier Hainque  <hainque@adacore.com>
28570
28571         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
28572         address of which may be used to represent "others" and "all others"
28573         choices in exception tables, instead of the current harcoded
28574         (void *)0 and (void *)1.
28575         (Setup_Exception): Do nothing in the GNAT SJLJ case.
28576
28577         * gigi.h (others_decl, all_others_decl): New decls representing the
28578         new Others_Value and All_Others_Value objects.
28579         (struct attrib): Rename "arg" component as "args", since GCC expects a
28580         list of arguments in there.
28581
28582         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
28583         corresponding objects exported by a-exexpr, instead of hardcoded dummy
28584         addresses.
28585
28586         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
28587         others_decl and all_others_decl instead of hardcoded dummy addresses
28588         to represent "others" and "all others" choices, which is cleaner and
28589         more flexible with respect to the possible eh pointer encoding policies.
28590
28591         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
28592         (process_attributes): Account for the naming change of the "args"
28593         attribute list entry component.
28594
28595         * decl.c (build_attr_list): Rename into prepend_attributes to allow
28596         cumulating attributes for different entities into a single list.
28597         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
28598         attributes for the current entity and propagate first subtype
28599         attributes to other subtypes.
28600         <E_Procedure>: Attribute arguments are attr->args and not
28601         attr->arg any more.
28602         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
28603         argument provided, as this is what GCC expects. Use NULL_TREE instead
28604         of 0 for trees.
28605
28606 2004-11-18  Robert Dewar  <dewar@adacore.com>
28607
28608         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
28609         Minor reformatting througout (including new function specs)
28610         Add ??? comments asking for clarification.
28611
28612 2004-11-18  Thomas Quinot  <quinot@adacore.com>
28613
28614         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
28615         incomplete duplicate implementation of this subprogram from butil.
28616
28617 2004-11-18  Thomas Quinot  <quinot@adacore.com>
28618
28619         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
28620         procedures factors the common processing for building an RPC receiver
28621         for an RCI package or an RACW type.
28622         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
28623         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
28624         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
28625         in use.
28626         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
28627         Add_RACW_Features.
28628         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
28629         Add_RAST_Features.
28630         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
28631         distribution subprogram identifiers that are either subprogram numbers
28632         or strings.
28633         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
28634         string distribution identifiers assigned to a given subprogram.
28635         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
28636         (Add_RAS_Dereference_TSS): Add comments.
28637         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
28638         is not referenced yet because it will be used by the PolyORB DSA
28639         implementation.
28640         (Insert_Partition_Check): Remove fossile code.
28641         (First_RCI_Subprogram_Id): Document this constant.
28642         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
28643         RAS_Access TSS.
28644         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
28645         replaced with calls to Get_Library_Unit_Name_String. Previously there
28646         were several instances of the same code in different locations in the
28647         compiler; this checkin completes the replacement of all of these
28648         instances with calls to a common subprogram.
28649         Minor reformatting.
28650
28651         * sem_dist.adb: Remove comment noting that RPC receiver generation
28652         should be disabled for RACWs that implement RASs.
28653         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
28654
28655         * sem_util.ads, sem_util.adb (Has_Stream): New function
28656         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
28657         qualified name of a library unit into the name buffer.
28658         (Note_Possible_Modification): Generate a reference only
28659         if the context comes from source.
28660
28661         * snames.ads (PCS_Names): New subtype corresponding to names of
28662         supported implementations of the Partition Communication Subsystem
28663         (PCS) (i.e. the runtime library support modules for the distributed
28664         systems annex).
28665
28666 2004-11-18  Robert Dewar  <dewar@adacore.com>
28667             Ed Schonberg  <schonberg@adacore.com>
28668
28669         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
28670         (Has_Rep_Pragma): New function
28671         (Has_Attribute_Definition_Clause): New function
28672         (Record_Rep_Pragma): Moved here from sem_ch13.adb
28673         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
28674
28675         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
28676
28677         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
28678         (Expand_Pragma_Psect_Object): New procedure
28679         These procedures contain the revised and cleaned up processing for
28680         these two pragmas. This processing was formerly in Sem_Prag, but
28681         is more appropriately moved here. The cleanup involves making sure
28682         that the pragmas are properly attached to the tree, and that no
28683         nodes are improperly shared.
28684
28685         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
28686         pragmas to Exp_Prag, which is more appropriate.
28687         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
28688         check for duplicates Remove use of Is_Psected flag, no longer needed.
28689         Use new Make_String_Literal function with string.
28690
28691         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
28692         that are functions return universal values, that have to be converted
28693         to the context type.
28694         Use new Make_String_Literal function with string.
28695         (Get_Stream_Convert_Pragma): New function, replaces the use of
28696         Get_Rep_Pragma, which had to be kludged to work in this case.
28697
28698         * freeze.adb: Use new Has_Rep_Pragma function
28699
28700         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
28701         function with string.
28702         Use new Has_Rep_Pragma function.
28703
28704         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
28705         string argument.
28706
28707 2004-11-18  Robert Dewar  <dewar@adacore.com>
28708
28709         * errout.ads, errout.adb: (First_Sloc): New function
28710
28711         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
28712         check (-gnatyx) instead of being included as a redundant construct
28713         warning.
28714
28715         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
28716         Style_Check_Order_Subprograms.
28717
28718         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
28719         stylesw.adb: Add Style_Check_Xtra_Parens
28720
28721         * usage.adb: Add line for -gnatyx (check extra parens)
28722
28723         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
28724
28725 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28726             Robert Dewar  <dewar@adacore.com>
28727
28728         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
28729         discriminant of a constrained subtype, analyze the copy of the
28730         corresponding constraint, because in some cases it may be only
28731         partially analyzed.
28732         Removes long-lived ??? comments.
28733
28734         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
28735         handled controlled or secondary-stack expressions within the
28736         iteration_scheme of a loop.
28737
28738         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
28739         bounds that may contain functions calls, to prevent memory leaks when
28740         the bound contains a call to a function that uses the secondary stack.
28741         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
28742         generate temporaries for loop bounds that might contain function calls
28743         that require secondary stack and/or finalization actions.
28744
28745         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
28746         selected component and the selector is overloadable (not just a
28747         function) treat as function call, Analyze_Call will disambiguate if
28748         necessary.
28749         (Analyze_Selected_Component): Do not generate an actual subtype for the
28750         selected component if expansion is disabled. The actual subtype is only
28751         needed for constraint checks.
28752         (Analyze_Allocator): If restriction No_Streams is set, then do
28753         not permit objects to be declared of a stream type, or of a
28754         composite type containing a stream.
28755
28756         * restrict.ads: Remove the a-stream entry from Unit_Array, since
28757         No_Streams no longer prohibits with'ing this package.
28758
28759         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
28760         discriminants, but the parent base has unknown discriminants, there is
28761         no discriminant constraint to inherit. Such a discrepancy can arise
28762         when the actual for a formal type with unknown discriminants is a
28763         similar private type whose full view has discriminants.
28764         (Analyze_Object_Declaration): If restriction No_Streams is set, then
28765         do not permit objects to be declared of a stream type, or of a
28766         composite type containing a stream.
28767
28768 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28769
28770         * exp_dbug.ads: Update documentation to reflect simpler encoding for
28771         protected operations.
28772
28773         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
28774         generated name, it complicates decoding in gdb and hinders debugging
28775         of protected operations.
28776         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
28777         flag for the protected entry barrier function.
28778         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
28779         flag for the protected entry function.
28780
28781 2004-11-18  Nicolas Setton  <setton@adacore.com>
28782
28783         * expect.c: Define __unix__ when __APPLE__ is defined.
28784
28785         * Makefile.in: Inform the value of the variable GMEM_LIB in the
28786         Darwin-specific section.
28787
28788         * lang-specs.h: Change the placement of the %1 marker.
28789         Works around the fact that gcc adds -fPIC by default under Darwin.
28790
28791 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28792
28793         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
28794         type of the object with the packed array type, set the Analyzed flag
28795         on the object if it is an entity or simple indexed component, to avoid
28796         spurious type errors.
28797
28798 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
28799
28800         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
28801         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
28802         separate line from the version message.
28803
28804 2004-11-18  Ed Falis  <falis@adacore.com>
28805
28806         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
28807         vthreads.
28808         (init_float): Eliminate initialization of floating point status for
28809         AE653. The instructions have no effect for vThreads.
28810
28811 2004-11-18  Vincent Celier  <celier@adacore.com>
28812
28813         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
28814         gnatbind is invoked with -shared.
28815
28816 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
28817
28818         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
28819         for Detect_Blocking which is redundant with the check done within the
28820         procedure Protected_Single_Entry_Call.
28821         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
28822         Detect_Blocking which is redundant with the check done within the
28823         procedure Protected_Single_Entry_Call.
28824
28825 2004-11-18  Vincent Celier  <celier@adacore.com>
28826
28827         * makegpr.adb (Compile): Put the compiling switches (in package
28828         Compiler and on the command line) immediately after "-c", instead of
28829         at the end of the command line invocation of the compiler, when
28830         compiling a non-Ada file.
28831         (Build_Global_Archive): When there is no need to rebuild the archive,
28832         set Global_Archive_Exists, so that the archive is passed to the linker
28833         if one is needed.
28834
28835 2004-11-18  Robert Dewar  <dewar@adacore.com>
28836             Sergey Rybin  <rybin@adacore.com>
28837
28838         * gnat_ugn.texi:
28839         Remove extra paren check from list of checks for redundant constructs
28840         Add documentation of new -gnatyx style check (check extra parens)
28841         Remove paragraph about gnatelim debug options.
28842
28843         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
28844         objects rather than forbidding dependencies on the package Ada.Streams.
28845
28846         * sinfo.ads: Add ??? note that we should document pragmas passed to
28847         back end.
28848
28849         * g-expect.ads: Fix a few typos in the comments.
28850
28851 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
28852
28853         * misc.c (gnat_handle_option): Use %< and %> for quoting in
28854         warning message.
28855
28856 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28857
28858         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
28859
28860 2004-11-07  Andreas Schwab  <schwab@suse.de>
28861
28862         * Makefile.in (install-gnatlib): Remove spurious hyphen.
28863
28864 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
28865
28866         PR ada/18228
28867         * Makefile.in (darwin): Set soext to .dylib.
28868
28869 2004-10-26  Vincent Celier  <celier@gnat.com>
28870             Thomas Quinot   <quinot@act-europe.fr>
28871
28872         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
28873         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
28874         there is no use of GNAT.Sockets.Constants.
28875         Remove remaining pragma Import for C_Write
28876         Remove C_Read and C_Write from internal implementation unit
28877         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
28878         the read and write functions from the system runtime library is fine
28879         on UNIX but won't work under Windows).
28880
28881         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
28882         (Check_Selector): Use C_Recv instead of C_Read.
28883         Selectors are the GNAT.Sockets abstraction to perform a select()
28884         call on a set of descriptors. To allow abortion of an ongoing
28885         select operation, some data is written to a dedicated socket that
28886         is always monitored.
28887         Under Windows, the write and read library functions cannot operate
28888         on sockets, so we need to use send and recv instead, which is portable
28889         across all supported platforms.
28890
28891         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
28892         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
28893         (using the read and write functions from the system runtime library is
28894         fine on UNIX but won't work under Windows).
28895
28896 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
28897
28898         * mlib-tgt-darwin.adb: New file.
28899
28900         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28901         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28902         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
28903         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
28904         subprogram body.
28905
28906         * Makefile.in: Add support for building shared libraries under Darwin.
28907         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
28908         the low level EH init subprogram to be called from __gnat_initialize.
28909
28910         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
28911         indicates which options to pass to the archive indexer.
28912
28913         * mlib-utl.adb: Add support for calling ranlib with additional
28914         options. This is needed for instance under Mac OS X.
28915         (Ranlib_Options): New global variable, used to store the potential
28916         options to pass to ranlib.
28917         (Ar): Use Ranlib_Options when spawning ranlib.
28918         (Initialize): Set the value of ranlib option.
28919
28920 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
28921
28922         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
28923         instead of 8K, to reflect the real potential needs for stack-checking
28924         in the ZCX case.
28925
28926 2004-10-26  Pascal Obry  <obry@gnat.com>
28927
28928         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
28929
28930         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
28931         Windows only the initial thread stack size can be set so it is good to
28932         start we a low stack size.
28933         The OS will adjust the size as needed.
28934
28935 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
28936             Nicolas Setton  <setton@act-europe.fr>
28937
28938         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
28939         "__unix__" instead of "unix".
28940         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
28941         sections were just mistakenly ignored. The former is
28942         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
28943         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
28944         of hpux. This prevents an unwanted definition of the symbol
28945         convert_addresses in adaint.o.
28946
28947 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
28948
28949         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
28950         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
28951
28952 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
28953
28954         * a-filico.ads, a-filico.adb: fix incorrect header.
28955
28956 2004-10-26  Javier Miranda  <miranda@gnat.com>
28957
28958         * a-ststio.ads: Fix typo in identifier
28959
28960 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
28961
28962         * sem_ch4.adb: Minor reformatting.
28963
28964 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28965
28966         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
28967         enabled, check the result of unary and binary operations when the
28968         expression is the right-hand side of an assignment.
28969
28970 2004-10-26  Vincent Celier  <celier@gnat.com>
28971
28972         * clean.adb (Delete): Do not output warnings when in quiet output and
28973         not in verbose mode.
28974         (Force_Deletions): New Boolean flag, defaulted to False
28975         (Delete): Only delete a file if it is writable, and when
28976         Force_Deletions is True.
28977         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
28978         (Usage): Line for new switch -f
28979         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
28980         own.
28981
28982 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
28983
28984         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
28985         JM type only if its size matches that of the wrapper.  When a size is
28986         prescribed and the field is not aliased, remove the wrapper of a JM
28987         type only if the size is not greater than that of the packed array.
28988         (gnat_to_gnu_entity): Change the extension of packed array wrappers
28989         from LJM to JM.
28990
28991 2004-10-26  Geert Bosch  <bosch@gnat.com>
28992
28993         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
28994         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28995         (Pred): Implement in terms of Succ.
28996
28997 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28998
28999         * exp_aggr.adb (Safe_Component): An aggregate component that is an
29000         unchecked conversion is safe for in-place use if the expression of the
29001         conversion is safe.
29002         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29003         be expandable in place even if the aggregate does not come from source.
29004         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29005         designated object of an allocator in place, rather than building it
29006         first on the stack. The previous scheme forces a full copy of the array,
29007         and may be altogether unsusable if the size of the array is too large
29008         for stack allocation.
29009
29010 2004-10-26  Robert Dewar  <dewar@gnat.com>
29011
29012         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29013         compares if the component is atomic.
29014
29015         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29016         array assignment if the component type is atomic.
29017
29018 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29019             Eric Botcazou  <ebotcazou@act-europe.fr>
29020
29021         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29022         is aliased and is a by_reference type, do not pass by copy.
29023         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29024         detect whether the call is in the right side of an assignment or
29025         the expression of an object declaration.  Recurse on component
29026         association within aggregates.
29027         Call it in the condition that determines whether the temporary is
29028         necessary for correct stack-checking.
29029
29030 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29031
29032         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29033         RACW_Type, used in the PolyORB version.
29034         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29035         version and the GARLIC version.
29036
29037         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29038         Rename RCI_Info to RCI_Locator for better consistency between the
29039         GARLIC and PolyORB versions of the distributed systems annex.
29040         (DSA_Implementation_Name): This enumeration lists the possible
29041         implementations of the Partition Communication Subsystem for the
29042         Distributed Systems Annex (DSA). The three available implementations
29043         are the dummy stub implementation (No_DSA), and two versions based on
29044         two different distribution runtime libraries: GARLIC and PolyORB. Both
29045         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29046         technology.
29047         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29048         that organization.
29049
29050         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29051         between the GARLIC and PolyORB versions of the distributed systems
29052         annex.
29053         Remove RE_Unbounded_Reclaim_Pool since it is unused.
29054
29055 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29056
29057         * gnat1drv.adb: Suppress calling the back end when
29058         Frontend_Layout_On_Target is true.
29059
29060 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29061
29062         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29063         Set_Read_Only): New subprograms.
29064         These new routines allow the user to set or unset the Owner execute
29065         and Owner write permission flags on a file.
29066
29067         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29068         GNAT.OS_Lib.Set_Executable instead of rolling our own.
29069
29070 2004-10-26  Matthew Gingell  <gingell@gnat.com>
29071
29072         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29073
29074 2004-10-26  Pascal Obry  <obry@gnat.com>
29075
29076         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29077         memory before the faulting page we properly test the process read
29078         access for this address using appropriate Win32 routine.
29079         (HPUX sections): guard with "__hpux__" instead of "hpux".
29080
29081 2004-10-26  Robert Dewar  <dewar@gnat.com>
29082
29083         * lib-xref.adb (Generate_Reference): Don't complain about reference to
29084         entry parameter if pragma Unreferenced set, since we do not properly
29085         handle the case of multiple parameters.
29086
29087 2004-10-26  Vincent Celier  <celier@gnat.com>
29088
29089         * prj-env.adb: (Contains_ALI_Files): New Boolean function
29090         (Ada_Objects_Path.Add): For a library project, add to the object path
29091         the library directory only if there is no object directory or if the
29092         library directory contains ALI files.
29093         (Set_Ada_Paths.Add.Recursive_Add): Ditto
29094
29095 2004-10-26  Vincent Celier  <celier@gnat.com>
29096
29097         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
29098         extension of library projects.
29099
29100         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
29101         path defaults to ".:<prefix>/lib/gnat".
29102         (Parse): For an extending all project, allow direct import of a project
29103         that is virtually extended.
29104
29105         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
29106         the specified name is directly imported, return its ID. Otherwise, if
29107         an extension of this project is imported, return the ID of the
29108         extension.
29109
29110 2004-10-26  Robert Dewar  <dewar@gnat.com>
29111
29112         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
29113         (Sub3): New procedure, used by Scaled_Divide
29114         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
29115         correct more than one instance of failure to propagate carries
29116         correctly.
29117         (Double_Divide): Handle overflow case of largest negative number
29118         divided by minus one.
29119
29120         * s-arit64.ads (Double_Divide): Document that overflow can occur in
29121         the case of a quotient value out of range.
29122         Fix comments.
29123
29124 2004-10-26  Robert Dewar  <dewar@gnat.com>
29125
29126         * s-bitops.adb (Bit_Eq): Remove redundant check.
29127
29128         * s-bitops.ads: Minor comment updates
29129         Change some occurrences of Address to System.Address
29130
29131         * s-carsi8.ads: Fix minor cut-and-paste error in comments
29132
29133 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29134
29135         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
29136         accessibility check to prefix that is a protected operation.
29137
29138 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29139
29140         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
29141         empty, post message on stub.
29142
29143 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29144             Javier Miranda  <miranda@gnat.com>
29145
29146         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
29147         current instance appears within a unit that is directly in the context
29148         of the main unit.
29149         Used to determine whether the body of the instance should be analyzed
29150         immediately after its spec, to make its subprogram bodies available
29151         for front-end inlining.
29152         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
29153         constraint is not allowed on the component type (AARM 12.5.3(3))
29154
29155 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29156
29157         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
29158         'Storage_Pool): enhance, document & limit detection of non-sharable
29159         internal pools.
29160
29161         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
29162
29163         * s-pooglo.ads: Add more documentation now that this pool is properly
29164         documented.
29165
29166 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29167
29168         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
29169         or protected type with discriminants, do not constrain the
29170         corresponding record type if the subtype declaration has no
29171         discriminant constraints. This can be the case in source code, or in
29172         the subtype declaration created to rename an actual type within an
29173         instantiation.
29174
29175 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29176
29177         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
29178         different kind of stub (possibly wrong name for file), do not check
29179         for conformance.
29180         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
29181         includes call to some function that returns an unconstrained type, do
29182         not inline.
29183
29184 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29185
29186         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
29187         appear in the code for the main unit. Dependencies among units in the
29188         context of the main unit are established when those other units are
29189         compiled. Otherwise spurious elaboration constraints can generate
29190         incorrect elaboration circularities.
29191
29192 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29193             Ed Schonberg   <schonberg@gnat.com>
29194
29195         * sem_util.adb (Is_Aliased_View): Defend against the case where this
29196         subprogram is called with a parameter that is not an object name. This
29197         situation arises for some cases of illegal code, which is diagnosed
29198         later, and in this case it is wrong to call Is_Aliased, as that might
29199         cause a compiler crash.
29200         (Explain_Limited_Type): Refine previous fix to include
29201         inherited components of derived types, to provide complete information.
29202
29203         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
29204         is the prival for a protected object.
29205         It is necessary to mark this entity as a variable, in addition to
29206         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
29207         modified to avoid checking the Aliased flag on entities that are not
29208         objects. (Checking that flag for non-objects is erroneous and could
29209         lead to a compiler crash).
29210
29211 2004-10-26  Robert Dewar  <dewar@gnat.com>
29212
29213         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
29214         X_Frac = 0.5, then we know that the number X must be positive.
29215         (Succ): Remove the same redundant test, and also fix the primary test
29216         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
29217         Minor reformatting
29218         (Decompose): Add fuller comments to spec
29219
29220 2004-10-26  Pascal Obry  <obry@gnat.com>
29221
29222         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
29223         validity (process must have read access). Set to 0 in all other cases.
29224         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
29225         violation on Win32.
29226         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
29227         segmentation violation.
29228
29229 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
29230
29231         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
29232         whose type is a constructed subtype of an aliased object with an
29233         unconstrained nominal subtype, convert the actual to the constructed
29234         subtype before taking its address.
29235
29236 2004-10-26  Vincent Celier  <celier@gnat.com>
29237
29238         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
29239         (Is_Path_Name_Case_Sensitive): New function
29240
29241         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
29242         (Base_Name, Simple_Name, Current_Directory, Compose,
29243         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
29244         the result.
29245
29246 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
29247             Vasiliy Fofanov  <fofanov@act-europe.fr>
29248             Vincent Celier   <celier@gnat.com>
29249
29250         * gnat_ugn.texi: Generalize "finding memory problems" section into a
29251         "memory management issues" section and document some of the useful
29252         memory pools provided as part of the GNAT library.
29253         Remove "virtual" from declaration of A::method2 in
29254         the simple example of Ada/C++ mixed system.
29255         Library Projects may be virtually extended: their virtual extensions
29256         are not Library Projects.
29257         Added section on extending project hierarchies.
29258
29259 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
29260
29261         * adaint.c (__gnat_get_libraries_from_registry): Cast value
29262         to LPBYTE.
29263         (__gnat_portable_spawn): Remove const.
29264
29265         * mingw32.h (MAXPATHLEN): Check for previous definition.
29266
29267 2004-10-17  Matthias Klose  <doko@debian.org>
29268
29269         * gnatvsn.ads: Set gnat library version to 4.0.
29270
29271 2004-10-05  Vincent Celier  <celier@gnat.com>
29272
29273         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
29274
29275 2004-10-04  Laurent Guerby  <laurent@guerby.net>
29276
29277         PR ada/15156
29278         * Makefile.in: Define and use RANLIB_FLAGS.
29279
29280 2004-10-04  Pascal Obry  <obry@gnat.com>
29281
29282         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
29283         other x86 platforms).
29284
29285 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
29286
29287         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
29288         in general and triggers stack alignment adjustment for thread entry
29289         points on targets where this is necessary.
29290
29291 2004-10-04  Bernard Banner  <banner@gnat.com>
29292
29293         PR ada/13897
29294         * Makefile.in: Add section for powerpc linux
29295         Add variant i-vxwork-x86.ads
29296
29297         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
29298
29299 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
29300
29301         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
29302         table registration calls when need be. Ensures no reference to the crt
29303         ctors symbol are issued in the SJLJ case, which avoids possible
29304         undefined symbol errors in the case of modules to be statically linked
29305         with the kernel.
29306
29307 2004-10-04  Javier Miranda  <miranda@gnat.com>
29308
29309         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
29310         in-line the code corresponding to subprogram Analyze_Actuals. In
29311         addition, analyze the actuals only in case of subprogram call.
29312
29313 2004-10-04  Ed Falis  <falis@gnat.com>
29314
29315         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
29316
29317 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
29318
29319         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
29320         in the documentation.
29321
29322 2004-10-04  Robert Dewar  <dewar@gnat.com>
29323
29324         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
29325         IF and CASE.
29326         (Analyze_Block_Statement): Add circuitry to detect following dead code
29327         (Check_Unreachable_Code): Handle case of block exit
29328
29329 2004-10-04  Robert Dewar  <dewar@gnat.com>
29330
29331         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
29332         (XMatchD): Avoid warning for Logic_Error call
29333
29334 2004-10-04  Robert Dewar  <dewar@gnat.com>
29335
29336         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
29337         consider expressions buried within a procedure actual to be an actual.
29338         This caused some blowups with uses of packed slices within a procedure
29339         actual.
29340
29341 2004-10-04  Robert Dewar  <dewar@gnat.com>
29342
29343         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
29344         longer need to be initialized to zero.
29345         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
29346         initialized to zero.
29347
29348         * checks.adb (Expr_Known_Valid): Packed arrays are now always
29349         considered valid, even if the representation is modular. That's correct
29350         now that we no longer initialize packed modular arrays to zero.
29351
29352         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
29353         suffixes. These are now documented as the only cases in which the
29354         debugger ignores outer records.
29355         Previously, the spec allowed arbitrary suffixes for this purpose.
29356         Change name of LJM to JM for packed array pad records
29357         Create separate section on packed array handling, and add a whole new
29358         set of comments to this section describing the situation with packed
29359         modular types and justification requirements depending on endianness.
29360
29361 2004-10-04  Robert Dewar  <dewar@gnat.com>
29362
29363         * a-except.adb: Add a comment for last change
29364
29365         * einfo.ads: Minor spelling correction in comment
29366
29367         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
29368
29369         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
29370         messages.
29371
29372         * sem_util.ads: Minor comment update
29373
29374 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29375
29376         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
29377         Inline_Always when in Configurable_Run_Time mode.
29378
29379         * sem_prag.adb (Process_Convention): If entity is an inherited
29380         subprogram, apply convention to parent subprogram if in same scope.
29381         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
29382         when in Configurable_Run_Time mode.
29383
29384 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29385
29386         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
29387         class_wide type after component list has been inherited.
29388
29389 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29390
29391         * sem_ch12.adb (Check_Generic_Actuals): New predicate
29392         Denotes_Previous_Actual, to handle properly the case of a private
29393         actual that is also the component type of a subsequent array actual.
29394         The visibility status of the first actual is not affected when the
29395         second is installed.
29396         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
29397         make fully recursive the treatment of formals of packages declared
29398         with a box.
29399         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
29400         the above on exit from an instantiation.
29401         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
29402         current instantiation which is now complete.
29403         (Analyze_Package_Instantiation): No instantiated body is needed if the
29404         main unit is generic. Efficient, and avoid anomalies when a instance
29405         appears in a package accessed through rtsfind.
29406
29407 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29408
29409         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
29410         do not generate a declaration for a temporary if the call is part of a
29411         library-level instantiation.
29412
29413 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29414
29415         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
29416         searching for a limited component to flag.
29417
29418         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
29419         expansion of Input, to account for the fact that the implicit call
29420         generated by the attribute reference must freeze the user-defined
29421         stream subprogram. This is only relevant to 'Input, because it can
29422         appear in an object declaration, prior to the body of the subprogram.
29423
29424         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
29425         expansion can proceed and further errors uncovered.
29426         (Minor clean up): Fix cases of using | instead of \ for continuation
29427         messages.
29428
29429 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29430
29431         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
29432
29433         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
29434         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
29435         Use gcc_assert and gcc_unreachable.
29436
29437         * decl.c (gnat_to_gnu_entity, case object): Check and process a
29438         specified alignment before validating size.
29439         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
29440         stripped-down declaration for the type of the inner field when making
29441         a JM type.
29442
29443         * utils.c (finish_record_type): Do not compute the size in units
29444         incrementally. Instead compute it once for the rep clause case.
29445         Use gcc_assert and gcc_unreachable.
29446
29447 2004-10-04  Vincent Celier  <celier@gnat.com>
29448
29449         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
29450         in file name.
29451         (Is_Valid_Path_Name): Take '/' as a directory separator.
29452
29453 2004-10-04  Vincent Celier  <celier@gnat.com>
29454
29455         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
29456         (Extended_Project) only if Extended_Project is defined, to avoid
29457         assertion error.
29458         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
29459         resolved path.
29460         (Parse_Single_Project): Ditto.
29461
29462         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
29463         Add_To_Project_Path for virtual projects.
29464
29465 2004-10-04  Vincent Celier  <celier@gnat.com>
29466
29467         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29468         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29469         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
29470         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
29471         parameter Options_2.
29472
29473         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
29474         Build_Dynamic_Library with an empty Options_2.
29475
29476         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
29477         default anymore.
29478
29479         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
29480         directory separator, if any.
29481         (Gprmake): Do not allow mains on the command line for library projects.
29482         Do not attempt to link when the project is a library project.
29483         (Library_Opts): New table to store Library_Options.
29484         (Build_Library): If Library_Options is specified, pass these options
29485         when building a shared library.
29486
29487 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
29488
29489         * s-tposen.adb (Service_Entry): The object must be always unlocked at
29490         the end of this procedure now that the unlock operation was inserted
29491         by the expander.
29492
29493 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
29494
29495         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
29496         corresponding to the Preallocated_Stacks flags in System.
29497         (Get_Target_Parameters): Including the processing for
29498         Preallocated_Stacks.
29499
29500         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
29501         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
29502         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29503         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
29504         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
29505         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
29506         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
29507         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
29508         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
29509         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
29510         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
29511         used to signal whether the compiler creates the required stacks and
29512         descriptors for the different tasks (when True) or it is done by the
29513         underlying operating system at run time (when False).
29514         It is initially set to False in all targets.
29515
29516         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
29517         if it is supported by the target.
29518         (Make_Task_Create_Call): Pass the stack address if it has been
29519         previously created. Otherwise pass a Null_Address.
29520
29521         * snames.adb: Add _stack.
29522
29523         * snames.ads: Add Name_uStack. Required to allow the expander to
29524         statically allocated task stacks.
29525
29526         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
29527         Stack_Address argument.
29528         Check that its value is equal to Null_Address because this target does
29529         not support the static stack allocation.
29530
29531 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29532
29533         * usage.adb: Change "pragma inline" to "pragma Inline" in information
29534         and error messages
29535
29536 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29537
29538         * exp_dist.adb: Split declaration of asynchronous flag out of
29539         Add_RACW_Read_Attribute.
29540         Minor reformatting for better alignment with PolyORB version.
29541         Store the entity for the asynchronous flag of an RACW, rather than the
29542         expression, in the asynchronous flags table. This will allow this flag
29543         to be used in other subprograms beside Add_RACW_Read_Attribute.
29544
29545 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29546
29547         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
29548         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
29549         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
29550         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
29551         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
29552         sockets constant MSG_NOSIGNAL (Linux-specific).
29553         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
29554         all Send operations.
29555         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
29556         from trigerring SIGPIPE.
29557         Rename components to avoid clash with Ada 2005 possible reserved
29558         word 'interface'.
29559         (Check_Selector): When the select system call returns with an error
29560         condition, propagate Socket_Error to the caller.
29561
29562 2004-10-01  Jan Hubicka  <jh@suse.cz>
29563
29564         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
29565
29566 2004-09-23  Robert Dewar  <dewar@gnat.com>
29567
29568         PR ada/17540
29569         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
29570         instead do this at freeze time (we won't do it if there is an address
29571         clause).
29572         Change "pragma inline" to "pragma Inline" in information and error
29573         messages.
29574         Minor reformatting.
29575
29576         * freeze.adb (Check_Address_Clause): Remove previous change, not the
29577         right way of doing things after all.
29578         (Freeze_Entity): For object, set Is_Public for imported entities
29579         unless there is an address clause present.
29580
29581 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
29582
29583         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
29584         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
29585         ensures proper handling of types with rep clauses, which might have
29586         their TYPE_SIZE set already.
29587
29588 2004-09-21  Robert Dewar  <dewar@gnat.com>
29589
29590         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
29591         packed array types in both little- and big-endian cases. This change
29592         ensures that we no longer count on the unused bits being initialized
29593         for such types (and in particular ensures that equality testing will
29594         only read the relevant bits).
29595         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29596         These changes mean that we no longer need to initialize small packed
29597         arrays.
29598         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
29599         optimization to an LJM field as to its parent field.
29600
29601         * ada-tree.h, trans.c, utils.c, utils2.c:
29602         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29603
29604 2004-09-20  Jan Hubicka  <jh@suse.cz>
29605
29606         * utils.c (gnat_finalize): Remove.
29607         (end_subprog_body): Directly call cgraph_finalize_function;
29608         do not lower the nested functions.
29609
29610 2004-09-20  Robert Dewar  <dewar@gnat.com>
29611
29612         PR ada/17540
29613         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
29614         if an address clause is present, since that means that the Import
29615         should be ignored.
29616
29617 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
29618
29619         * 5tsystem.ads: Removed, no longer used.
29620
29621 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
29622             Zack Weinberg  <zack@codesourcery.com>
29623
29624         * ada-tree.def: Use tree_code_class enumeration constants
29625         instead of code letters.
29626         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
29627         Update for new tree-class enumeration constants.
29628
29629 2004-09-17  Vincent Celier  <celier@gnat.com>
29630
29631         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
29632         capabilities of the general project manager.
29633
29634 2004-09-09  Vincent Celier  <celier@gnat.com>
29635
29636         * a-direct.ads: Add pragma Ada_05
29637         (Directory_Entry_Type): Give default value to component Kind to avoid
29638         not initialized warnings.
29639
29640         * a-direct.adb (Current_Directory): Remove directory separator at the
29641         end.
29642         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
29643         an existing directory.
29644         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
29645         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
29646         Convert the result to File_Size.
29647
29648         * prj.ads: (Project_Error): New exception
29649
29650         * prj-attr.adb: Except in procedure Initialize, Fail comes from
29651         Prj.Com, not from Osint.
29652         (Attrs, Package_Attributes): Tables moved to private part of spec
29653         (Add_Attribute, Add_Unknown_Package): Moved to new child package
29654         Prj.Attr.PM.
29655         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
29656         Prj.Project_Error after call to Fail.
29657         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
29658         Fail. Check that package name is not already in use.
29659
29660         * prj-attr.ads: Comment updates to indicate that all subprograms may be
29661         used by tools, not only by the project manager, and to indicate that
29662         exception Prj.Prj_Error may be raised in case of problem.
29663         (Add_Unknown_Package, Add_Attribute): Moved to new child package
29664         Prj.Attr.PM.
29665         (Attrs, Package_Attributes): Table instantiations moved from the body to
29666         the private part to be accessible from Prj.Attr.PM body.
29667
29668         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
29669         from new package Prj.Attr.PM.
29670         (Parse_Attribute_Declaration): Call Add_Attribute from new package
29671         Prj.Attr.PM.
29672
29673         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
29674
29675         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
29676         instead of Elaboration_Checks).
29677
29678         * a-calend.adb: Minor reformatting
29679
29680 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29681
29682         * gigi.h (maybe_pad_type): New declaration.
29683         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
29684
29685         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
29686
29687         * cuintp.c: Convert to use buildN.
29688
29689         * decl.c (maybe_pad_type): No longer static.
29690         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
29691         target pointer.
29692         Convert to use buildN.
29693
29694         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
29695         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
29696         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
29697         RHS.
29698         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
29699         (gnat_gimplify_expr, case ADDR_EXPR): New case.
29700         Convert to use buildN.
29701
29702         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
29703         TREE_READONLY for const.
29704         Convert to use buildN.
29705
29706         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
29707         (create_var_decl): Refine when TREE_STATIC is set.
29708         Convert to use buildN.
29709
29710 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
29711
29712         * gnat_ugn.texi: Delete text relating to checking of ali and object
29713         consistency.
29714
29715         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
29716         routines.
29717
29718 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
29719
29720         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
29721         pragmas recognized by GNAT.
29722
29723         * gnat_rm.texi: Document pragma Detect_Blocking.
29724
29725         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
29726         raise Program_Error if called from a protected operation.
29727
29728         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
29729         the protected action nesting level.
29730         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
29731         protected action nesting level.
29732         (Unlock): When pragma Detect_Blocking is active decrease the protected
29733         action nesting level.
29734
29735         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
29736         Protected_Action_Nesting.
29737
29738         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
29739         Common_ATCB record. It contains the dynamic level of protected action
29740         nesting for each task. It is needed for checking whether potentially
29741         blocking operations are called from protected operations.
29742         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
29743         Detect_Blocking is active or not in the partition.
29744
29745         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
29746         raise Program_Error if called from a protected operation.
29747         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
29748         Program_Error if called from a protected operation.
29749         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
29750         Program_Error if called from a protected operation.
29751
29752         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
29753         raise Program_Error if called from a protected operation.
29754
29755         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
29756         raise Program_Error if called from a protected operation, and increase
29757         the protected action nesting level.
29758         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
29759         Program_Error if called from a protected operation, and increase the
29760         protected action nesting level.
29761         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
29762         protected action nesting level.
29763
29764         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
29765         raise Program_Error if called from a protected operation, and increase
29766         the protected action nesting level.
29767         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
29768         Program_Error if called from a protected operation, and increase the
29769         protected action nesting level.
29770         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
29771         raise Program_Error if called from a protected operation.
29772         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
29773         active, raise Program_Error if called from a protected operation.
29774         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
29775         protected action nesting level.
29776
29777         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
29778         insertion of the statement raising Program_Error. The run time
29779         contains the required machinery for handling that.
29780
29781         * sem_util.ads: Change comment associated to procedure
29782         Check_Potentially_Blocking_Operation.
29783         This procedure does not insert a call for raising the exception because
29784         that is currently done by the run time.
29785
29786         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
29787
29788         * init.c: Add the global variable __gl_detect_blocking that indicates
29789         whether pragma Detect_Blocking is active (1) or not (0). Needed for
29790         making the pragma available at run time.
29791         (__gnat_set_globals): Pass and update the detect_blocking parameter.
29792
29793         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
29794         pragma Detect_Blocking is active.
29795
29796         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
29797
29798         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
29799         DB is found in the ali file. Any unit compiled with pragma
29800         Detect_Blocking active forces its effect in the whole partition.
29801
29802         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
29803         Detect_Blocking is active and delay is called from a protected
29804         operation.
29805
29806         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
29807         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
29808         Detect_Blocking is active (0 otherwise).
29809         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
29810         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
29811         otherwise).
29812
29813 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
29814
29815         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
29816         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
29817         package.
29818
29819         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
29820         (Register_Receiving_Stub): Add Subp_Info formal parameter.
29821         Update API in placeholder implemetation of s-parint to reflect changes
29822         in distribution runtime library.
29823
29824         * sem_ch3.adb (Expand_Derived_Record): Rename to
29825         Expand_Record_Extension.
29826
29827         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
29828         primitive operations of potentially distributed object types that have
29829         non-controlling anonymous access formals.
29830
29831         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
29832         subprogram.
29833         New implementation of expansion for remote access-to-subprogram types,
29834         based on the RACW infrastructure.
29835         This version of sem_dist is compatible with PolyORB/DSA as well as
29836         GLADE.
29837
29838         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
29839         Asynchrronous that applies to a remote access-to-subprogram type, mark
29840         the underlying RACW type as asynchronous.
29841
29842         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
29843          __gnat_using_gnu_linker to 1.
29844
29845         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
29846         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
29847         GNAT.Perfect_Hash_Generators, and remove the empty
29848         GNAT.Perfect_Hash package.
29849
29850         * atree.adb: Minor reformatting
29851
29852         * exp_ch3.adb (Expand_Derived_Record): Rename to
29853         Expand_Record_Extension.
29854         (Build_Record_Init_Proc.Build_Assignment): The default expression in
29855         a component declaration must remain attached at that point in the
29856         tree so New_Copy_Tree copies it if the enclosing record type is derived.
29857         It is therefore necessary to take a copy of the expression when building
29858         the corresponding assignment statement in the init proc.
29859         As a side effect, in the case of a derived record type, we now see the
29860         original expression, without any rewriting that could have occurred
29861         during expansion of the ancestor type's init proc, and we do not need
29862         to go back to Original_Node.
29863
29864         * exp_ch3.ads (Expand_Derived_Record): Rename to
29865         Expand_Record_Extension.
29866
29867         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
29868         Returns the RACW type used to implement a remote access-to-subprogram
29869         type.
29870         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
29871         New subprograms. Used to create a proxy tagged object for a remote
29872         subprogram. The proxy object is used as the designated object
29873         for RAS values on the same partition (unless All_Calls_Remote applies).
29874         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
29875         System.Partition_Interface.Get_Unique_Remote_Pointer.
29876         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
29877         Renamed from Add_RAS_*_Attribute.
29878         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
29879         subprograms.
29880         New implementation of expansion for remote access-to-subprogram types,
29881         based on the RACW infrastructure.
29882
29883         * exp_dist.ads (Copy_Specification): Update comment to note that this
29884         function can copy the specification from either a subprogram
29885         specification or an access-to-subprogram type definition.
29886
29887 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
29888
29889         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
29890         in an instance, between an explicit subprogram an one inherited from a
29891         type derived from an actual.
29892
29893         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
29894         add a polling call if the subprogram is to be inlined by the back-end,
29895         to avoid repeated calls with multiple inlinings.
29896
29897         * checks.adb (Apply_Alignment_Check): If the expression in the address
29898         clause is a call whose name is not a static entity (e.g. a dispatching
29899         call), treat as dynamic.
29900
29901 2004-09-09  Robert Dewar  <dewar@gnat.com>
29902
29903         * g-trasym.ads: Minor reformatting
29904
29905         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
29906         packed arrays, since unused bits are expected to be zero for a
29907         comparison.
29908
29909 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
29910
29911         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
29912         comment.
29913
29914 2004-09-09  Pascal Obry  <obry@gnat.com>
29915
29916         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
29917         enable map file generation. Add the right option to generate the map
29918         file if Map_File is set to True.
29919
29920         * gnatdll.adb (Gen_Map_File): New variable.
29921         (Syntax): Add info about new -m (Map_File) option.
29922         (Parse_Command_Line): Add support for -m option.
29923         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
29924         Minor reformatting.
29925
29926 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
29927
29928         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
29929         new gnatdist implementation.
29930         Define a subpackage isolating the output routines specific to this
29931         verbose mode.
29932
29933 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
29934
29935         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
29936
29937         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
29938
29939 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
29940
29941         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
29942         internal unit.
29943
29944         * opt.ads: Add Ada_Version_Runtime constant used to decide which
29945         version of the language is used to compile the run time.
29946
29947 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
29948
29949         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
29950         of variable length temporaries for function return now that the
29951         back-end and gigi support it.
29952
29953 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29954
29955         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
29956
29957         * trans.c (struct stmt_group): Delete field GLOBAL.
29958         (gnat_init_stmt_group): Do not initialize it.
29959         (call_to_gnu): Use save_expr, not protect_multiple_eval.
29960         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
29961         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
29962         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
29963         (start_stmt_group): Likewise.
29964         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
29965
29966         * utils2.c (ggc.h): Include.
29967         (build_call_raise): Call build_int_cst, not build_int_2.
29968
29969         * utils.c (gnat_init_decl_processing): Fix arg to
29970         build_common_tree_nodes.
29971         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
29972         (gnat_define_builtin): Set built_in_decls.
29973         (init_gigi_decls): Call build_int_cst, not build_int_2.
29974
29975         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
29976         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
29977         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
29978         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
29979         SET_TYPE_MODULE): Use them.
29980         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
29981         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
29982         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
29983         SET_TYPE_ADA_SIZE): Likewise.
29984         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
29985         (DECL_CONST_CORRESPONDING_VAR,
29986         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
29987         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
29988         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
29989         (TYPE_RM_SIZE_NUM): New macro.
29990         (TYPE_RM_SIZE): Modified to use above.
29991
29992         * cuintp.c: (build_cst_from_int): New function.
29993         (UI_To_gnu): Use it.
29994
29995         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
29996         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
29997         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
29998         MIN_EXPR for the size, copy it into new.
29999
30000 2004-09-01  Robert Dewar  <dewar@gnat.com>
30001
30002         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30003         packed indexed component where array is an IN OUT formal. This
30004         generated garbage code previously.
30005
30006         * gnat_ugn.texi: Document -fverbose-asm
30007
30008         * gnat-style.texi: Minor updates (note that boolean constants and
30009         variables are joined with AND/OR rather than short circuit forms).
30010
30011 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
30012
30013         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30014         it is an upward conversion of an untagged type with no representation
30015         change.
30016
30017 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
30018
30019         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30020         System.Partition_Interface.
30021
30022         * checks.adb (Apply_Access_Checks): Do not generate checks when
30023         expander is not active (but check for unset reference to prefix of
30024         dereference).
30025
30026         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30027         pragma Debug as an if statement with a constant condition, for
30028         consistent treatment of entity references contained within the
30029         enclosed procedure call.
30030
30031 2004-09-01  Vincent Celier  <celier@gnat.com>
30032
30033         * bindgen.adb: (Set_EA_Last): New procedure
30034         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30035         Set_EA_Last.
30036         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30037         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30038         linked without errors.
30039         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30040         ST and EA.
30041         (Gen_Exception_Table_C): Correct same bugs
30042
30043         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30044
30045         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30046         on Windows, make sure that the drive letter is in upper case.
30047
30048         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30049         Windows, when the drive letter is added and Case_Sensitive is True, the
30050         drive letter is forced to upper case.
30051
30052         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30053         to Options_2 for the call to MLib.Utl.Gcc.
30054
30055         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30056         directory separator when defining BASE_DIR.
30057
30058 2004-09-01  Pascal Obry  <obry@gnat.com>
30059
30060         * gprcmd.adb (Extend): Do not output trailing directory separator. This
30061         is not needed and it confuses Windows GNU/make which does not report
30062         directory terminated by a slash as a directory.
30063         (gprcmd): Idem for "pwd" internal command.
30064
30065         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30066         target names rewrite to fix regressions with recent version of
30067         GNU/make. Starting with GNU/make 3.80 the pipe character was not
30068         handled properly anymore.
30069
30070 2004-09-01  Andreas Schwab  <schwab@suse.de>
30071
30072         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30073         * raise.c [!IN_RTS]: Undef abort.
30074
30075 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
30076
30077         * utils2.c (build_allocator): Use ssize_int.
30078
30079         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30080
30081 2004-08-27  Andreas Schwab  <schwab@suse.de>
30082
30083         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30084
30085 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30086             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30087
30088         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30089
30090 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30091
30092         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
30093         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30094         * utils.c (init_gigi_decls): Likewise.
30095         * utils2.c (build_call_raise, build_allocator): Likewise.
30096
30097 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
30098
30099         * utils.c (gnat_init_decl_processing): Adjust
30100         build_common_tree_nodes call.
30101
30102 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
30103
30104         * utils2.c (build_allocator): Use build_int_cst for negative
30105         size types.
30106
30107 2004-08-18  Richard Henderson  <rth@redhat.com>
30108
30109         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
30110
30111 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
30112
30113         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
30114         call.s
30115         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
30116         (gnat_to_gnu): Likewise.
30117
30118 2004-08-16  Pascal Obry  <obry@gnat.com>
30119
30120         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
30121         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
30122         option and not mdll anymore. Update comment.
30123
30124 2004-08-16  Pascal Obry  <obry@gnat.com>
30125
30126         * bld.adb (Put_Include_Project): Properly handle directory separators
30127         on Windows.
30128
30129 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
30130
30131         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
30132         decreasing the number of allocated junk nodes while searching for the
30133         appropriate subprogram.
30134
30135 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
30136
30137         * cuintp.c (UI_To_gnu): Use build_int_cst..
30138         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30139         * utils.c (init_gigi_decls): Likewise.
30140         * utils2.c (build_call_raise): Likewise.
30141
30142 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
30143
30144         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
30145         for a global aliased object with a variable size and an unconstrained
30146         nominal subtype, pretend there is no initializer if the one we have is
30147         incomplete, and avoid referencing an inexistant component in there. The
30148         part we have will be rebuilt anyway and the reference may confuse
30149         further operations.
30150
30151 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
30152
30153         * einfo.ads: Minor reformatting
30154
30155         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
30156         restrictions in the ALI if we only want to warn about violations.
30157
30158 2004-08-13  Vincent Celier  <celier@gnat.com>
30159
30160         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
30161         when creating a new Unit_Record in table Units.
30162
30163         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
30164         that are violated, if any.
30165
30166         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
30167         add directory separator if path already ends with a directory separator.
30168
30169 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30170
30171         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
30172         unit, this is an attempt to inline a construct that is not available in
30173         the current restricted mode, so abort rather than trying to continue.
30174
30175         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
30176         discriminants that rename those of the parent, recover names of
30177         original discriminants for the constraint on the full view of the
30178         parent.
30179         (Complete_Private_Subtype): Do not create a subtype declaration if the
30180         subtype is an itype.
30181
30182         * gnat_rm.texi: Added section on implementation of discriminated
30183         records with default values for discriminants.
30184
30185 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30186
30187         PR ada/15601
30188         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
30189         the second operand is overloaded.
30190
30191 2004-08-10  Richard Henderson  <rth@redhat.com>
30192
30193         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
30194         add __builtin_alloca.
30195
30196 2004-08-10  Richard Henderson  <rth@redhat.com>
30197
30198         * config-lang.in (boot_language): Yes.
30199
30200 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
30201
30202         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
30203         from complaining on potential uninitialized reference.
30204         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
30205         new specification and test explicitly for non-zero return value.
30206
30207         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
30208         returning C.int, to avoid using a derived boolean type.
30209
30210         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
30211         Duplicate_Subexpr_No_Checks in preference to direct use of
30212         Remove_Side_Effects and New_Copy_Tree.
30213         Clear Comes_From_Source on prefix of 'Size attribute reference.
30214
30215         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
30216         g-socthi-vxworks.adb: Change calls to
30217         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
30218         and test explicitly for non-zero return value.
30219
30220         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
30221         (Is_Socket_In_Set): Declare imported function as returning C.int, to
30222         avoid using a derived boolean type.
30223
30224 2004-08-09  Albert Lee  <lee@gnat.com>
30225
30226         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
30227
30228 2004-08-09  Pascal Obry  <obry@gnat.com>
30229
30230         * gnat_ugn.texi: Document new way to build DLLs on Windows using
30231         GCC's -shared option.
30232
30233         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
30234         Options_2 parameter (options put after object files).
30235
30236 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
30237
30238         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
30239         ignore overflows on low and high bounds of an index to also account for
30240         differences in signedness between sizetype and gnu_index_subtype.
30241         These are as legitimate as the ones caused by a lower TYPE_PRECISION
30242         on sizetype.
30243
30244 2004-08-09  Robert Dewar  <dewar@gnat.com>
30245
30246         * s-solita.ads, s-solita.adb: Minor reformatting
30247
30248         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
30249         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
30250         obsolescent section
30251         Add note that No_Implicit_Conditionals does not suppress
30252         run time constraint checks.
30253
30254         * vms_conv.ads: Minor reformatting
30255
30256         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
30257         and necessary for following change).
30258         (Mark): Return new format Mark_Id containing sec stack address
30259         (Release): Use sec stack address from Mark_Id avoiding Self call
30260
30261         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
30262         pointer (cleanup and necessary for following change).
30263         Define Mark_Id as record containing address of secondary stack, that way
30264         Release does not need to find the stack again, decreasing the number of
30265         calls to Self and improving efficiency.
30266
30267         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
30268
30269         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
30270         case variable into the individual case branches when possible.
30271
30272         * sem_ch11.adb: Minor reformatting
30273
30274         * prj.ads: Correct spelling of suffixs
30275
30276         * prj-nmsc.adb: Minor reformatting
30277         Correct spelling suffixs throughout (also in identifiers)
30278
30279         * freeze.adb: Minor spelling correction
30280
30281         * exp_ch2.adb: Cleanups to handling of Current_Value
30282         (no functional effect).
30283
30284         * bld.adb: Correct spelling of suffixs
30285
30286         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
30287
30288 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
30289
30290         PR ada/15408
30291         * sem_ch7.adb (Install_Private_Declarations): In the body of the
30292         package or of a child, private entities are both immediately_visible
30293         and not hidden.
30294
30295 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
30296
30297         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
30298         there are no range checks on the value of the literal.
30299
30300         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
30301         wrapped is the triggering alternative of an asynchronous select, action
30302         statements mustbe inserted before the select itself.
30303
30304         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
30305         case where the prefix is a protected function call.
30306         (Resolve_Attribute, case 'Access): The attribute reference on a
30307         subprogram is legal in a generic body if the subprogram is declared
30308         elsewhere.
30309
30310 2004-08-09  Vincent Celier  <celier@gnat.com>
30311
30312         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
30313         languages, otherwise building the library may fail with unresolved
30314         symbols.
30315         (Compile_Sources): Do not build libraries if -c switch is used
30316
30317         * gnatlink.adb (Process_Args): New switches -M and -Mmap
30318         (Write_Usage): If map file creation is supported, output new switches
30319         -M and -Mmap.
30320         (Gnatlink): When -M is specified, add the necessary switch(es) to the
30321         gcc call, when supported.
30322
30323         * Makefile.in: Added indepsw.o to the object list for gnatlink
30324         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
30325
30326         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
30327         indepsw.adb, indepsw.ads: New files.
30328
30329 2004-08-09  Bernard Banner  <banner@gnat.com>
30330
30331         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
30332
30333         * Makefile.in: add section for vxworks x86
30334
30335 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
30336
30337         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
30338         per-object constrained components where the discriminant is of an
30339         Access type.
30340         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
30341         the parent initialization procedure for derived Unchecked_Unions.
30342         Instead, derived Unchecked_Unions build their own initialization
30343         procedure.
30344         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
30345         Check the body of the subprogram for details.
30346         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
30347         functions for derived Unchecked_Union types by introducing a condition.
30348         Allow the creation of TSS equality functions for Unchecked_Unions.
30349         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
30350         Add formal parameter Discr to function signature. Discr is used to
30351         control the generated case statement for Unchecked_Union types.
30352         (Make_Eq_If): Rename formal parameter Node to E in function signature.
30353
30354         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
30355         Unchecked_Unions.
30356         Check the body of the subprogram for details.
30357         (Expand_Composite_Equality): Augment composite type equality to include
30358         correct handling of Unchecked_Union components.
30359         (Expand_N_In): Add condition to detect illegal membership tests when the
30360         subtype mark is a constrained Unchecked_Union and the expression lacks
30361         inferable discriminants, and build a Raise_Program_Error node.
30362         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
30363         to detect types that contain components of unconstrained Unchecked_Union
30364         subtype. Add condition to detect equality between types that have an
30365         unconstrained Unchecked_Union component, and build a Raise_Program_Error
30366         node. Add condition to detect equality between Unchecked_Union types
30367         that lack inferable discriminants, and build a Raise_Program_Error node.
30368         Otherwise build a TSS equality function call.
30369         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
30370         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
30371         with the operand lacking inferable discriminants, and build a Raise_
30372         Program_Error node.
30373         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
30374         composite equality.
30375         (Has_Inferable_Discriminants): Implement new predicate for objects and
30376         expressions of Unchecked_Union type. Check the body of subprogram for
30377         details.
30378         (Has_Unconstrained_UU_Components): Add function
30379         Component_Is_Unconstrained_UU. It is used to detect whether a single
30380         component is of an unconstrained Unchecked_Union subtype. Add function
30381         Variant_Is_Unconstrained_UU. It is used to detect whether a single
30382         component inside a variant is of an unconstrained Unchecked_Union type.
30383
30384         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
30385         inferred discriminant values. Add condition to generate a case
30386         statement with an inferred discriminant as the switch.
30387         (Make_Component_List_Assign): Introduce a Boolean flag that determines
30388         the behaviour of the subprogram in the presence of an Unchecked_Union.
30389         Add condition to trigger the usage of the inferred discriminant value
30390         as the generated case statement switch.
30391         (Make_Field_Assign): Introduce a Boolean flag that determines the
30392         behaviour of the subprogram in the presence of an Unchecked_Union. Add
30393         condition to trigger the usage of the inferred discriminant value as
30394         the right-hand side of the generated assignment.
30395
30396         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
30397         parameter generation when dealing with Unchecked_Unions.
30398
30399         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
30400         checks for Unchecked_Unions.
30401
30402         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
30403
30404         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
30405         Raise_Program_Error nodes for the execution of Read and Write
30406         attributes of Unchecked_Union types and the execution of Input and
30407         Output attributes of Unchecked_Union types that lack default
30408         discriminant values.
30409
30410         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
30411         Unchecked_Union. Add procedure Check_Component. It is used to inspect
30412         per-object constrained components of Unchecked_Unions for being
30413         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
30414         check individual components withing a variant.
30415
30416         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
30417         comparison of Unchecked_Unions.
30418         (Resolve_Equality_OP): Remove guard that prevents equality between
30419         Unchecked_Unions.
30420
30421         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
30422         of component subtypes for Unchecked_Union components.
30423         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
30424         since it is the actual subtype.
30425
30426         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
30427         pass of Unchecked_Union subtypes as generic actuals to formal types
30428         that lack known_discriminant_parts or that are derived Unchecked_Union
30429         types, and do nothing. In any other case, produce an error message.
30430
30431         * sem_ch3.adb (Analyze_Component_Declaration): Add function
30432         Contains_POC. It determines whether a constraint uses the discriminant
30433         of an enclosing record type.
30434         Add condition to detect per-object constrained component and set the
30435         appropriate flag.
30436         (Derived_Type_Declaration): Remove guard that prevents derivation from
30437         Unchecked_Union types.
30438         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
30439         Union subtypes.
30440
30441         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
30442         references to Unchecked_Union discriminants.
30443
30444         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
30445         formal generation when dealing with Unchecked_Unions.
30446         (Set_Actual_Subtypes): Add condition to prevent generation of actual
30447         subtypes for Unchecked_Unions.
30448
30449         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
30450         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
30451         completions of discriminated partial views by Unchecked_Unions and
30452         produce an error message.
30453
30454 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30455
30456         * trans.c (struct stmt_group): New field, GLOBAL.
30457         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
30458         (struct elab_info): New struct.
30459         (elab_info_list, gnu_elab_proc_stack): New variables.
30460         (Compilation_Unit_to_gnu): New procedure.
30461         (gigi): Call it and also handle elaboration procs we've saved.
30462         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
30463         global field from parent.
30464         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
30465         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
30466         (start_stmt_group): Initialize global field from parent.
30467         (add_decl_expr): Set to global for current statement group.
30468         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
30469         post.
30470
30471         * utils.c (global_bindings_p): True when no current_function_decl; no
30472         longer check current_binding_level.
30473
30474 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
30475
30476         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
30477         choice.
30478
30479         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
30480
30481 2004-08-06  Andreas Schwab  <schwab@suse.de>
30482
30483         * utils.c (gnat_define_builtin): Remove second parameter of
30484         make_decl_rtl.
30485         (begin_subprog_body): Likewise.
30486
30487 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
30488
30489         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
30490         optimization, not supported by the tree-ssa back-end.
30491
30492 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
30493
30494         * s-mastop-irix.adb: Update comments.
30495
30496         * a-except.adb (Exception_Information): Raise Constraint_Error if
30497         exception Id is Null_Id.
30498         This is required behavior, which is more reliably and clearly checked
30499         at the top level interface level.
30500
30501 2004-07-26  Javier Miranda  <miranda@gnat.com>
30502
30503         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
30504         call if a component has no default_expression and the box is used.
30505
30506         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
30507         default_expression and you use box, it behaves as if you had declared a
30508         stand-alone object.
30509         (Resolve_Record_Aggregate): If a component has no default_expression and
30510         you use box, it behaves as if you had declared a stand-alone object.
30511
30512         * sem_ch10.adb (Install_Siblings): Do not make visible the private
30513         entities of private-with siblings.
30514
30515 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30516
30517         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
30518         for a component of an itype, set the parent pointer for analysis,
30519         there is no list in which to insert it.
30520
30521         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
30522         bona-fide renamings, not for inherited operations.
30523
30524         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
30525         actual for a formal that is an access parameter, create local
30526         finalization list even if the expression is not an aggregate.
30527
30528 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30529
30530         PR ada/16213
30531         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
30532         Diagnose properly illegal subprogram renamings that are library units.
30533
30534 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30535
30536         PR ada/15588
30537         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
30538         conversion rewritten as an unchecked conversion, check that original
30539         expression is a variable.
30540
30541         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
30542         unchecked_conversion, create new node rather than rewriting in place,
30543         to preserve original construct.
30544
30545 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30546
30547         * gigi.h (gnat_expand_body): Deleted.
30548
30549         * Make-lang.in: (trans.o): Depends on function.h.
30550
30551         * misc.c: (gnat_expand_body): Moved to here.
30552
30553         * trans.c (gnat_expand_body_1): Deleted.
30554         (gnat_expand_body): Moved from here.
30555         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
30556         (add_stmt): Check for marked visited with global_bindings_p.
30557         (gnat_gimplify_expr, case COMPONENT_REF): New case.
30558         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
30559
30560         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
30561         VIEW_CONVERT_EXPR if not operation type.
30562
30563         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
30564         fat pointer.
30565
30566         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
30567         changes: reformatting of negation operators, removing unneeded
30568         inequality comparison with zero, converting equality comparisons with
30569         zero to negations, changing int/0/1 to bool/false/true, replace calls
30570         to gigi_abort with abort, and various other similar changes.
30571
30572 2004-07-26  Vincent Celier  <celier@gnat.com>
30573
30574         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
30575         "setup".
30576
30577         * make.adb (Gnatmake): Fail when a library is not present and there is
30578         no object directory.
30579
30580         * mlib-prj.adb (Check_Library): No need to check if the library needs
30581         to be rebuilt if there is no object directory, hence no object files
30582         to build the library.
30583
30584         * opt.ads (Setup_Projects): New Boolean flag.
30585
30586         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
30587         Location.
30588         Create directory when Kind /= "" and in "gnat setup". Report error if
30589         directory cannot be created.
30590         (Ada_Check): Create library interface copy dir if it does not exist
30591         and we are in "gnat setup".
30592         (Find_Sources): No error if in "gnat setup" and no Ada sources were
30593         found.
30594         (Language_Independent_Check): Create object directory, exec directory
30595         and/or library directory if they do not exist and we are in
30596         "gnat setup".
30597
30598         * vms_conv.ads: (Command_Type): New command Setup.
30599
30600         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
30601
30602         * vms_data.ads: Add qualifiers/switches for new built-in command
30603         "setup".
30604
30605 2004-07-25  Richard Henderson  <rth@redhat.com>
30606
30607         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
30608         DECL_IGNORED_P on RESULT_DECL.
30609
30610 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
30611
30612         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
30613         allocation and potentially overflowing update with
30614         Tailored_Exception_Information. Use the sec-stack free procedural
30615         interface to output Exception_Information instead.
30616
30617         * a-except.adb (To_Stderr): New subprogram for character, and string
30618         version moved from a-exextr to be visible from other separate units.
30619         (Tailored_Exception_Information): Remove the procedural version,
30620         previously used by the default Last_Chance_Handler and not any more.
30621         Adjust various comments.
30622
30623         * a-exexda.adb: Generalize the exception information procedural
30624         interface, to minimize the use of secondary stack and the need for
30625         local buffers when the info is to be output to stderr:
30626         (Address_Image): Removed.
30627         (Append_Info_Character): New subprogram, checking for overflows and
30628         outputing to stderr if buffer to fill is of length 0.
30629         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
30630         (Append_Info_Address, Append_Info_Exception_Name,
30631         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
30632         Append_Info_Basic_Exception_Traceback,
30633         Append_Info_Exception_Information): New subprograms.
30634         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
30635         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
30636         Exception_Info_Maxlength, Exception_Name_Length,
30637         Exception_Message_Length): New subprograms.
30638         (Exception_Information): Use Append_Info_Exception_Information.
30639         (Tailored_Exception_Information): Use
30640         Append_Info_Basic_Exception_Information.
30641         Export services for the default Last_Chance_Handler.
30642
30643         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
30644         other separate units.
30645
30646 2004-07-20  Vincent Celier  <celier@gnat.com>
30647
30648         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
30649
30650 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30651
30652         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
30653         emit itype references for the designated types of component types that
30654         are declared outside of the full record declaration, and that may
30655         denote a partial view of that record type.
30656
30657 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30658
30659         PR ada/15607
30660         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
30661         which is the designated type in an access component declaration, to the
30662         list of incomplete dependents of the parent type, to avoid elaboration
30663         issues with out-of-scope subtypes.
30664         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
30665         full view of the parent.
30666
30667 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30668
30669         PR ada/15610
30670         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
30671         entities that are hidden, such as references to generic actuals
30672         outside an instance.
30673
30674 2004-07-20  Javier Miranda  <miranda@gnat.com>
30675
30676         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
30677         support to the new notation.
30678         (Analyze_Selected_Component): Add call to Try_Object_Operation.
30679
30680 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
30681
30682         * s-taprob.adb: Adding the elaboration code required for initializing
30683         the tasking soft links that are common to the full and the restricted
30684         run times.
30685
30686         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
30687         restricted run time has been moved to the package
30688         System.Soft_Links.Tasking.
30689
30690         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
30691         restricted run time has been moved to the package
30692         System.Soft_Links.Tasking.
30693
30694         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
30695
30696         * s-solita.ads, s-solita.adb: New files.
30697
30698 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30699
30700         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
30701         Case_Statement_to_gnu): Split off from gnat_to_gnu.
30702         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
30703         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
30704         Exception_Handler_to_gnu_zcx): Likewise.
30705
30706 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
30707
30708         * gigi.h (builtin_function): Declare.
30709
30710 2004-07-15  Robert Dewar  <dewar@gnat.com>
30711
30712         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
30713         reformatting
30714
30715         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
30716         access values as an example of a warning.
30717
30718         * gnat_rm.texi: Document new attribute Has_Access_Values
30719
30720         * gnat-style.texi: Document that box comments belong on nested
30721         subprograms
30722
30723         * sem_util.ads (Has_Access_Values): Improved documentation
30724
30725         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
30726
30727         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
30728         (Process_Interface_Name): Call to this new procedure
30729         (Set_Extended_Import_Export_External_Name): Call to this new procedure
30730
30731         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
30732
30733         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
30734
30735         * einfo.ads: Minor comment typo fixed
30736
30737 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
30738
30739         * snames.adb: Add _atcb.
30740
30741         * snames.ads: Add Name_uATCB.
30742
30743         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
30744         (in the expanded code) when using the restricted run time.
30745
30746         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
30747         a in parameter in order to allow ATCBs to be preallocated (in the
30748         expanded code).
30749
30750         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
30751         order to allow ATCBs to be preallocated. In case of error, the ATCB is
30752         deallocated in System.Tasking.Stages.
30753
30754         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
30755         order to allow ATCBs to be preallocated.
30756
30757         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
30758         here. It was previously done in Initialize_ATCB.
30759
30760         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
30761
30762         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
30763         Restricted run time.
30764
30765         * exp_ch3.adb: When using the Restricted run time, pass the
30766         preallocated Ada_Task_Control_Block when creating a task.
30767
30768 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
30769
30770         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
30771         function call that is itself an actual in an enclosing call, diagnose
30772         problem here rather than assuming that resolution will catch it.
30773
30774         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
30775         the local copy of a generic unit for a formal package, and the generic
30776         is a child unit, install private part of ancestors before compiling
30777         private part of spec.
30778
30779         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
30780         use scope entities rather than tree structures, to handle properly
30781         parent units that are instances rewritten as bodies for inlining
30782         purposes.
30783
30784         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
30785         Remove_Parents): Handle properly a parent unit that is an
30786         instantiation, when the unit has been rewritten as a body for inlining
30787         purposes.
30788
30789         * par.adb (Goto_List): Global variable to collect goto statements in a
30790         given unit, for use in detecting natural loops.
30791
30792         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
30793         use in detecting natural loops.
30794
30795         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
30796         backwards goto's, and rewrite as a infinite loop, to improve locality
30797         of temporaries.
30798
30799         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
30800         subcomponent that includes an indexed reference, to prevent the
30801         generation of copies that would miscompile the desired assignment
30802         statement.
30803         (Build_Task_Image_Decls): Add a numeric suffix to
30804         generated name for string variable, to avoid spurious conflicts with
30805         the name of the type of a single protected object.
30806
30807         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
30808         loop with an explicit exit statement, to avoid generating an
30809         out-of-range value with 'Succ leading to spurious constraint_errors
30810         when compiling with -gnatVo.
30811
30812 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
30813
30814         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
30815         might not be analyzed yet, even if its Etype is already set (case of an
30816         unchecked conversion built using Unchecked_Convert_To, for example).
30817         If the prefix has already been analyzed, this will be a nop anyway.
30818
30819         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
30820         controller type, or an assignment of a record type with controlled
30821         components, copy only user data, and leave the finalization chain
30822         pointers untouched.
30823
30824 2004-07-15  Vincent Celier  <celier@gnat.com>
30825
30826         * make.adb (Collect_Arguments): Improve error message when attempting
30827         to compile a source not part of any project, when -x is not used.
30828
30829         * prj.ads: (Defined_Variable_Kind): New subtype
30830
30831         * prj-attr.adb (Register_New_Package): Two new procedures to register
30832         a package with or without its attributes.
30833         (Register_New_Attribute): Mew procedure to register a new attribute in a
30834         package.
30835         New attribute oriented subprograms: Attribute_Node_Id_Of,
30836         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30837         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30838         Next_Attribute.
30839         New package oriented subprograms: Package_Node_Id_Of,
30840         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30841
30842         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
30843         type.
30844         (Package_Node_Id): Now a private, self initialized type
30845         (Register_New_Package): New procedure to register a package with its
30846         attributes.
30847         New attribute oriented subprograms: Attribute_Node_Id_Of,
30848         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30849         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30850         Next_Attribute.
30851         New package oriented subprograms: Package_Node_Id_Of,
30852         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30853
30854         * prj-dect.adb (Parse_Attribute_Declaration,
30855         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
30856
30857         * prj-makr.adb (Make): Parse existing project file before creating
30858         other files. Fail if there was an error during parsing.
30859
30860         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
30861         new spec of Prj.Attr.
30862
30863         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
30864         to new spec of Prj.Attr.
30865
30866 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30867
30868         * utils2.c: Fix typo in comment.
30869
30870 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30871
30872         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
30873         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
30874
30875 2004-07-14  Andreas Schwab  <schwab@suse.de>
30876
30877         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
30878
30879 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30880
30881         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
30882         object type.
30883         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
30884         TYPE_STUB_DECL.
30885
30886         * misc.c (gnat_types_compatible_p): New function.
30887         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
30888         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
30889
30890         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
30891         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
30892         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
30893         (mark_visited): Don't mark dummy type.
30894         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
30895         parameter, we must remove any LJM building from GNU_NAME.
30896         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
30897         (pos_to_constructor): Use int_const_binop.
30898         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
30899         PARM_DECL.
30900
30901         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
30902         (gnat_pushlevel): Set TREE_USE on BLOCK node.
30903         (gnat_install_builtins): Add __builtin_memset.
30904
30905 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
30906
30907         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
30908         for a renaming, stabilize the initialization expression if we are at a
30909         local level.  At the local level, uses of the renaming may be performed
30910         by a direct dereference of the initializing expression, and we don't
30911         want possible variables there to be evaluated for every use.
30912
30913         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
30914         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
30915         them on the way.  Account for the fact that we may introduce side
30916         effects in the process.
30917
30918 2004-07-13  Richard Henderson  <rth@redhat.com>
30919
30920         * misc.c (default_pass_by_ref): Use pass_by_reference.
30921
30922 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
30923
30924         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
30925         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
30926
30927 2004-07-08  Richard Henderson  <rth@redhat.com>
30928
30929         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
30930         commentary.
30931
30932 2004-07-06  Vincent Celier  <celier@gnat.com>
30933
30934         * vms_conv.ads: Minor reformatting.
30935         Alphabetical order for enumerated values of type Command_Type, to have
30936         the command in alphabetical order for the usage.
30937
30938         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
30939         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
30940
30941         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
30942
30943         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
30944         (Add_Archive_Path): Only add the global archive if there is one.
30945         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
30946         or not any object file to put in the global archive, and don't build
30947         a global archive if there is none.
30948         (X_Switches): New table
30949         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
30950         in the X_Switches table, if any.
30951         (Initialize): Make sure the X_Switches table is empty
30952         (Scan_Arg): Record -X switches in table X_Switches
30953
30954         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
30955
30956         * make.adb: Minor comment fix
30957
30958         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
30959         invoked with directory information, add the directory in front of the
30960         path.
30961
30962         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
30963         invoked with directory information, add the directory in front of the
30964         path.
30965
30966         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
30967         when Keep_Temporary_Files is False.
30968         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
30969         directory information, add the directory in front of the path.
30970         When not on VMS, handle new switch -dn before the command to set
30971         Keep_Temporary_Files to True.
30972         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
30973         everywhere.
30974
30975         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
30976         invoked with directory information, add the directory in front of the
30977         path.
30978
30979 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
30980
30981         * snames.ads, snames.adb (Name_Stub): New name for the distributed
30982         systems annex.
30983
30984         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
30985         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
30986
30987         * g-socket.adb (To_Timeval): Fix incorrect conversion of
30988         Selector_Duration to Timeval for the case of 0.0.
30989
30990         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
30991         documentation from Evolve_And_Then.
30992
30993 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
30994
30995         * s-taprop-tru64.adb, s-taprop-os2.adb,
30996         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
30997
30998 2004-07-06  Robert Dewar  <dewar@gnat.com>
30999
31000         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31001         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31002         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31003         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31004         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31005         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31006         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31007         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31008         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31009         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31010         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31011         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31012         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31013         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31014         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31015         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31016         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31017         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31018         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31019         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31020         vms_data.ads: Minor reformatting,
31021         Fix bad box comment format.
31022
31023         * gnat_rm.texi: Fix minor grammatical error
31024
31025         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31026
31027         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31028         more cases of discriminated records to be recognized as not needing a
31029         secondary stack.
31030         (Has_Access_Values): New function.
31031
31032         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31033
31034         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31035         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31036         with LRM terminology).
31037         Change terminology in comments primitive type => elementary type.
31038
31039 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31040
31041         PR ada/15602
31042         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31043         parameters do not impose any requirements on the presence of a body.
31044
31045 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31046
31047         PR ada/15593
31048         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31049         compilation unit and is in an open scope at the point of instantiation,
31050         assume that a body may be present later.
31051
31052 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31053
31054         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31055         Improve error message when specified size is not supported.
31056
31057         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31058         is never a primitive operation.
31059
31060 2004-07-05  Andreas Schwab  <schwab@suse.de>
31061
31062         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31063         RECORD_OR_UNION_CHECK.
31064         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31065
31066 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
31067
31068         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31069         dependency on xgnatugn, instead build it via a submake.
31070         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31071
31072 2004-07-04  Richard Henderson  <rth@redhat.com>
31073
31074         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31075
31076 2004-07-01  Richard Henderson  <rth@redhat.com>
31077
31078         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31079         * utils.c (max_size): Likewise.
31080
31081 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31082
31083         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31084         and rest_of_type_compilation; add arg to create_*_decl.
31085         (annotate_decl_with_node): Deleted.
31086         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31087         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31088         (get_current_block_context, gnat_pushdecl): New declarations.
31089         (gnat_init_stmt_group): Likewise.
31090         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
31091         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
31092         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
31093         (gnat_init): Call gnat_init_stmt_group.
31094         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
31095         (gnu_pending_elaboration_list): Deleted.
31096         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
31097         (gigi): Rearrange initialization calls and move some to last above.
31098         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
31099         Delete calls to add_decl_expr; add arg to create_*_decl.
31100         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
31101         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
31102         begin_subprog_body and call it.
31103         Don't push and pop ggc context.
31104         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
31105         (add_stmt): Remove handling of DECL_EXPR from here.
31106         If not in function, mark visited.
31107         (add_decl_expr): Put global at top level.
31108         Check for cases of DECL_INITIAL we have to handle here.
31109         (process_type): Add extra arg to create_type_decl.
31110         (build_unit_elab): Rework to just gimplify.
31111         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
31112         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
31113         (get_pending_elaborations, pending_elaborations_p): Likewise.
31114         (push_pending_elaborations, pop_pending_elaborations): Likewise.
31115         (get_elaboration_location, insert_elaboration_list): Likewise.
31116         (gnat_binding_level): Renamed from ada_binding_level.
31117         (init_gnat_to_gnu): Don't clear pending_elaborations.
31118         (global_bindings_p): Treat as global if no current_binding_level.
31119         (set_current_block_context): New function.
31120         (gnat_pushdecl): Renamed from pushdecl; major rework.
31121         All callers changed.
31122         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
31123         (finish_record_type): Call call pushdecl for stub decl.
31124         (function_nesting_depth): Deleted.
31125         (begin_subprog_body): Delete obsolete code.
31126         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
31127
31128 2004-06-28  Robert Dewar  <dewar@gnat.com>
31129
31130         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31131         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
31132         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
31133         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
31134         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
31135
31136         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
31137         deal with problem of inefficient slices on machines with strict
31138         alignment, when the slice is a component of a composite.
31139
31140         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
31141         machines, we need the check there as well.
31142
31143 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31144
31145         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
31146         determine safe copying direction for overlapping slice assignments
31147         when component is controlled.
31148
31149         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
31150         formal derived type in the actual for a formal package are visible in
31151         the enclosing instance.
31152
31153 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31154
31155         PR ada/15600
31156         * sem_util.adb (Trace_Components): Diagnose properly an illegal
31157         circularity involving a private type whose completion includes a
31158         self-referential component.
31159         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
31160         renaming or an instantiation from an implicit derived operation.
31161
31162 2004-06-28  Pascal Obry  <obry@gnat.com>
31163
31164         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
31165         DLL.
31166         (Library_File_Name_For): Idem.
31167
31168 2004-06-28  Matthew Gingell  <gingell@gnat.com>
31169
31170         * g-traceb.ads: Add explanatory note on the format of addresses
31171         expected by addr2line.
31172
31173 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
31174
31175         * Makefile.in: Force debugging information on s-tasdeb.adb,
31176         a-except.adb and s-assert.adb needed by the debugger.
31177
31178 2004-06-28  Vincent Celier  <celier@gnat.com>
31179
31180         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
31181         Need_To_Build_Lib.
31182         (Gnatmake): Ditto.
31183
31184         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
31185
31186         * prj.adb: Minor reformatting
31187         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
31188
31189         * prj.ads: Comment updates
31190         Minor reformatting
31191         (Project_Data): Change Flag1 to Need_To_Build_Lib.
31192         Remove Flag2: not used.
31193
31194         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
31195         declaration.
31196
31197         * gnat_ugn.texi: Put a "null;" declaration in one project file example
31198
31199         * gnat_rm.texi: Document Empty declarations "null;".
31200
31201         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
31202         front of the linker options.
31203         (Link_Foreign): Put the global archives and the libraries in front of
31204         the linker options.
31205
31206 2004-06-28  Javier Miranda  <miranda@gnat.com>
31207
31208         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
31209         (RTU_Loaded): Code cleanup
31210         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
31211         withed predefined units.
31212
31213         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
31214         explicitly withed predefined units.
31215         Fix typo in comment
31216
31217         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
31218         explicitly withed predefined units.
31219
31220 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31221
31222         * ada-tree.def (DECL_STMT): Deleted.
31223         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
31224         (DECL_STMT_VAR): Deleted.
31225         * decl.c: add_decl_stmt now add_decl_expr.
31226         * gigi.h: Likewise.
31227         * trans.c: Likewise.
31228         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31229         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
31230         (add_stmt): Only handle padded type here.
31231         (add_stmt_with_node): Allow gnat_node to not be present.
31232         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
31233         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
31234         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
31235         make a SAVE_EXPR for the entire fat pointer.
31236         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
31237         (create_index_type): Make a DECL_EXPR.
31238         (end_subprog_body): Don't call allocate_struct_function here but
31239         do clear cfun.
31240
31241 2004-06-25  Pascal Obry  <obry@gnat.com>
31242
31243         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
31244         Relocatable from Build_Dynamic_Library call.
31245
31246         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
31247         Relocatable are now synonym.
31248
31249         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
31250
31251         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
31252         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
31253         call.
31254
31255         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
31256         Lib_Address and Relocatable.
31257         (Default_DLL_Address): Removed.
31258
31259         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31260         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31261         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
31262         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
31263         (Default_DLL_Address): Removed.
31264
31265         * mlib-tgt-mingw.adb: Ditto.
31266         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
31267
31268         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
31269         the initial thread stack size.
31270
31271         * a-strmap.ads: Move package L to private part as it is not used in
31272         the spec. Found while reading code.
31273
31274 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
31275
31276         * tracebak.c: Introduce support for a GCC infrastructure based
31277         implementation of __gnat_backtrace.
31278
31279         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
31280         any more. Use accessors instead. This eases maintenance and relaxes
31281         some alignment constraints.
31282         (_GNAT_Exception structure): Remove the Ada specific fields
31283         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
31284         a-exexpr.adb.
31285         (is_handled_by, __gnat_eh_personality): Replace component references to
31286         exception structure by use of the new accessors.
31287
31288         * init.c (__gnat_initialize): Adjust comments to match the just
31289         reverted meaning of the -static link-time option.
31290
31291         * adaint.c (convert_addresses): Arrange not to define a stub for
31292         mips-irix any more, as we now want to rely on a real version from a
31293         recent libaddr2line.
31294
31295         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
31296         the personality routine can use them and not have to rely on a C
31297         counterpart of the record anymore. This simplifies maintenance and
31298         relaxes the constraint of having Standard'Maximum_Alignment match
31299         BIGGEST_ALIGNMENT.
31300         Update comments, and add a section on the common header alignment issue.
31301
31302 2004-06-25  Geert Bosch  <bosch@gnat.com>
31303
31304         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
31305         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
31306
31307 2004-06-25  Robert Dewar  <dewar@gnat.com>
31308
31309         * gnat_rm.texi: Fix section on component clauses to indicate that the
31310         restriction on byte boundary placement still applies for bit packed
31311         arrays.
31312         Add comment on stack usage from Initialize_Scalars
31313
31314         * gnat_ugn.texi: Add documentation for -gnatyLnnn
31315
31316         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
31317         limiting nesting level.
31318
31319         * usage.adb: Add line for -gnatyLnnn switch
31320
31321         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
31322         sem_ch13.adb, exp_aggr.adb: Minor reformatting
31323
31324         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
31325         type as well as on the subtype. This corrects a problem in freeze in
31326         setting alignments of atomic types.
31327
31328         * sem_eval.ads: Minor comment typo fixed
31329
31330         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
31331         level.  Minor reformatting.
31332
31333         * fname.adb (Is_Predefined_File_Name): Require a letter after the
31334         minus sign. This means that file names like a--b.adb will not be
31335         considered predefined.
31336
31337         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
31338         record Test new flag and give diagnostic for bad component clause.
31339         (Freeze_Entity): Set alignment of array from component alignment in
31340         cases where this is safe to do.
31341
31342         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
31343         arrays.
31344
31345         * cstand.adb: (Create_Standard): Set alignment of String to 1
31346
31347         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
31348
31349         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
31350         code in the common constrained array cases.
31351
31352         * a-storio.adb: Change implementation to avoid possible alignment
31353         problems on machines requiring strict alignment (data should be moved
31354         as type Buffer, not type Elmt).
31355
31356         * checks.adb (Apply_Array_Size_Check): Improve these checks by
31357         killing the overflow checks which we really do not need (64-bits is
31358         enough).
31359
31360 2004-06-25  Vincent Celier  <celier@gnat.com>
31361
31362         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
31363         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
31364         inconditionally for the main project.
31365         (Recursive_Add_Archives.Add_Archive_Path): New procedure
31366         (Link_Executables.Check_Time_Stamps): New procedure
31367         (Link_Executables.Link_Foreign): New procedure
31368         Changes made to reduce nesting level of this package
31369         (Check): New procedure
31370         (Add_Switches): When not in quiet output, check that a switch is not
31371         the concatenation of several valid switches. If it is, issue a warning.
31372         (Build_Global_Archive): If the global archive is rebuilt, linking need
31373         to be done.
31374         (Compile_Sources): Rebuilding a library archive does not imply
31375         rebuilding the global archive.
31376         (Build_Global_Archive): New procedure
31377         (Build_Library): New name for Build_Archive, now only for library
31378         project
31379         (Check_Archive_Builder): New procedure
31380         (Create_Global_Archive_Dependency_File): New procedure
31381         (Gprmake): Call Build_Global_Archive before linking
31382         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
31383         throughout.
31384         (Scan_Arg): Display the Copyright notice when -v is used
31385
31386         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
31387         for gnatls.
31388
31389         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
31390         COMPILE.
31391         Add new GNAT LIST qualifier /FILES=
31392         Added qualifier /DIRECTORY= to GNAT METRIC
31393         Added qualifier /FILES= to GNAT METRIC
31394         Added qualifier /FILES to GNAT PRETTY
31395
31396         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
31397         to take into account both versions of the switch.
31398
31399         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
31400         always be the last switch to the gcc driver. Disable switch storing so
31401         that switches automatically added by the gcc driver are not put in the
31402         ALI file.
31403
31404         * prj.adb (Project_Empty): Take into account changes in components of
31405         Project_Data.
31406
31407         * prj.ads (Languages_Processed): New enumaration value All_Languages.
31408
31409         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
31410         used. Split Boolean component Ada_Sources_Present in two Boolean
31411         components Ada_Sources_Present and Other_Sources_Present.
31412         Minor reformatting
31413
31414         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
31415         instead of Sources_Present.
31416         (Set_Ada_Paths.Add.Recursive_Add): Ditto
31417
31418         * prj-nmsc.adb: Minor reformatting
31419         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
31420         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
31421         Check_Ada_Naming_Scheme.
31422         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
31423         throughout.
31424
31425         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
31426         In_Limited.
31427         Make sure that all cycles where there is at least one "limited with"
31428         are detected.
31429         (Parse_Single_Project): New Boolean parameter In_Limited
31430
31431         * prj-proc.adb (Recursive_Check): When Process_Languages is
31432         All_Languages, call first Prj.Nmsc.Ada_Check, then
31433         Prj.Nmsc.Other_Languages_Check.
31434
31435         * prj-proc.adb (Process): Use Ada_Sources_Present or
31436         Other_Sources_Present (instead of Sources_Present) depending on
31437         Process_Languages.
31438
31439         * lang-specs.h: Keep -g and -m switches in the same order, and as the
31440         last switches.
31441
31442         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
31443         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
31444         False.
31445         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
31446         False.
31447
31448         * lib.ads (Disable_Switch_Storing): New procedure.
31449
31450         * make.adb: Modifications to reduce nesting level of this package.
31451         (Check_Standard_Library): New procedure
31452         (Gnatmake.Check_Mains): New procedure
31453         (Gnatmake.Create_Binder_Mapping_File): New procedure
31454         (Compile_Sources.Compile): Add switch -gnatez as the last option
31455         (Display): Never display -gnatez
31456
31457         * Makefile.generic:
31458         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
31459
31460         * gnatcmd.adb (Check_Project): New function
31461         (Process_Link): New procedure to reduce nesting depth
31462         (Check_Files): New procedure to reduce the nesting depth.
31463         For GNAT METRIC, include the inherited sources in extending projects.
31464         (GNATCmd): When GNAT LS is invoked with a project file and no files,
31465         add the list of files from the sources of the project file. If this list
31466         is too long, put it in a temp text files and use switch -files=
31467         (Delete_Temp_Config_Files): Delete the temp text file that contains
31468         a list of source for gnatpp or gnatmetric, if one has been created.
31469         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
31470         in the project file is too large, create a temporary text file that
31471         list them and pass it to the tool with "-files=<temp text file>".
31472         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
31473
31474         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
31475         generated file is in not in Ada.
31476
31477         * gnatls.adb: Remove all parameters And_Save that are no longer used.
31478         (Scan_Ls_Arg): Add processing for -files=
31479         (Usage): Add line for -files=
31480
31481         * g-os_lib.adb (On_Windows): New global constant Boolean flag
31482         (Normalize_Pathname): When on Windows and the path starts with a
31483         directory separator, make sure that the resulting path will start with
31484         a drive letter.
31485
31486         * clean.adb (Clean_Archive): New procedure
31487         (Clean_Project): When there is non-Ada code, delete the global archive,
31488         the archive dependency files, the object files and their dependency
31489         files, if they exist.
31490         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
31491
31492 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
31493
31494         * sinfo.ads: Fix typo in comment.
31495
31496         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
31497         the TSS for remote access-to-subprogram types, since these TSS are
31498         always present once the type has been analyzed.
31499         (RAS_E_Dereference): Same.
31500
31501         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
31502         reference raises Bad_Attribute, mark the reference as analyzed so the
31503         node (and any children resulting from rewrites that could have occurred
31504         during the analysis that ultimately failed) is not analyzed again.
31505
31506         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
31507
31508         * exp_dist.adb: Minor comment fix.
31509
31510         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
31511         type is an anonymous access type, no unchecked deallocation of the
31512         allocated object can occur. If the object is controlled, attach it with
31513         a count of 1. This allows attachment to the Global_Final_List, if
31514         no other relevant list is available.
31515         (Get_Allocator_Final_List): For an anonymous access type that is
31516         the type of a discriminant or record component, the corresponding
31517         finalisation list is the one of the scope of the type.
31518
31519 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
31520
31521         * sem_ch3.adb (Replace_Type): When computing the signature of an
31522         inherited subprogram, use the first subtype if the derived type
31523         declaration has no constraint.
31524
31525         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
31526         before applying previous optimization. Minor code cleanup.
31527
31528         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
31529         placed at the beginning of an unpacked record without explicit
31530         alignment, a slice of it will be aligned and does not need a copy when
31531         used as an actual.
31532
31533 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
31534
31535         PR ada/15591
31536         PR ada/15592
31537         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
31538         reference is written with expressions mimicking parameters.
31539
31540 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
31541
31542         PR ada/15589
31543         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
31544         STEP 2a. The constraints of a full type declaration of a derived record
31545         type are checked for conformance with those declared in the
31546         corresponding private extension declaration. The message
31547         "not conformant with previous declaration" is emitted if an error is
31548         detected.
31549
31550 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
31551
31552         * g-traceb.ads: Document the need for -E binder switch in the spec.
31553
31554         * g-trasym.ads: Document the need for -E binder switch in the spec.
31555
31556 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
31557
31558         * sem_prag.adb: Add handling of pragma Detect_Blocking.
31559
31560         * snames.h, snames.ads, snames.adb: Add entry for pragma
31561         Detect_Blocking.
31562
31563         * s-rident.ads: Change reference to pragma Detect_Blocking.
31564
31565         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
31566         system.ads.
31567
31568         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
31569         to indicate whether pragma Detect_Blocking is active.
31570
31571         * par-prag.adb: Add entry for pragma Detect_Blocking.
31572
31573         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
31574         of not handling WITH.
31575         Note that this replaces the previous update which was incorrect.
31576
31577 2004-06-25  Javier Miranda  <miranda@gnat.com>
31578
31579         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
31580         use-clauses to have a clean environment.
31581
31582         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
31583         the installation of the use-clauses to stablish a clean environment in
31584         case of compilation of a separate unit; otherwise the call to
31585         use_one_package is protected by the barrier Applicable_Use.
31586
31587         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
31588         the installation of the use-clauses to stablish a clean environment in
31589         case of compilation of a separate unit.
31590         (End_Use_Clauses): Minor comment cleanup.
31591
31592 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
31593
31594         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
31595
31596 2004-06-23  Richard Henderson  <rth@redhat.com>
31597
31598         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
31599
31600 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31601
31602         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
31603         now bool instead of int.
31604         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
31605         * trans.c (gnu_switch_label_stack): New function.
31606         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
31607         elaboration of renamed entity returns.
31608         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
31609         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
31610         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
31611         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
31612         DECL_SIZE_UNIT and simplify variable-sized case.
31613         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31614         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
31615         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
31616         (build_unit_elab): Disable for now.
31617         * utils.c (mark_visited): New function.
31618         (pushdecl): Walk tree to call it for global decl.
31619         (update_pointer_to): Update all variants of pointer and ref types.
31620         Add arg to COMPONENT_REF.
31621         (convert): Likewise.
31622         Move check for converting between variants lower down.
31623         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
31624         (build_allocator): Don't force type of MODIFY_EXPR.
31625         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
31626         put_var_into_stack.
31627
31628 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31629
31630         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
31631         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
31632         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
31633         subprograms.
31634         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
31635         all callers changed.
31636         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
31637         the way that EXIT_STMT finds the loop label.
31638         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
31639         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
31640         (add_stmt): Use annotate_with_locus insted of setting directly.
31641         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
31642         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
31643         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
31644         (build_vms_descriptor): Add extra args to ARRAY_REF.
31645         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
31646         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
31647         New cases.
31648         (build_binary_op): Don't make explicit CONVERT_EXPR.
31649         Add extra rgs to ARRAY_REF.
31650
31651 2004-06-14  Pascal Obry  <obry@gnat.com>
31652
31653         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
31654         Windows.  Fix minor typo.
31655
31656         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
31657         which is now supported on Windows. With this implementation using the
31658         Library Project feature is no different on Windows than on UNIX.
31659
31660 2004-06-14  Vincent Celier  <celier@gnat.com>
31661
31662         * makegpr.adb (Compile_Sources): Nothing to do when there are no
31663         non-Ada sources.
31664
31665         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
31666
31667         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
31668         found, show the project name and the path of the previously parsed
31669         project file.
31670
31671 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
31672
31673         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
31674         array, avoid copying the actual before the call.
31675
31676 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
31677
31678         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
31679         Instead, allocate memory on worst-case alignment assumptions, and then
31680         return an aligned address within the allocated zone.
31681
31682 2004-06-14  Robert Dewar  <dewar@gnat.com>
31683
31684         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
31685         elab entities in predefined units in No_Run_Time_Mode.
31686         (Gen_Adainit_C): Same fix
31687         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
31688         units in No_Run_Time_Mode
31689         (Gen_Elab_Calls_C): Same fix
31690
31691         * symbols-vms-alpha.adb: Minor reformatting
31692
31693         * g-debpoo.ads: Minor reformatting
31694
31695         * lib.adb (In_Same_Extended_Unit): Version working on node id's
31696
31697         * lib.ads (In_Same_Extended_Unit): Version working on node id's
31698
31699         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
31700         working on nodes.
31701
31702         * make.adb: Minor reformatting
31703
31704         * par-ch12.adb: Minor reformatting
31705
31706         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
31707
31708         * prj-strt.adb: Minor reformatting
31709
31710         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
31711         be more general.
31712
31713         * sem_attr.adb: Minor reformatting
31714
31715         * sem_ch7.adb: Minor reformatting
31716
31717         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
31718         for type in the same unit as the object declaration.
31719
31720         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
31721         static string expressions and not just string literals.
31722         Minor reformatting
31723         (Set_Warning): Reset restriction warning flag for restriction pragma
31724         Implement pragma Profile_Warnings
31725         Implement pragma Profile (Restricted)
31726         Give obolescent messages for old restrictions and pragmas
31727
31728         * snames.h, snames.ads, snames.adb: Add new entry for pragma
31729         Profile_Warnings.
31730
31731         * s-rident.ads: Add declarations for restrictions required by profile
31732         Restricted and profile Ravenscar.
31733
31734         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
31735
31736         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
31737         configuration pragmas.
31738
31739 2004-06-11  Vincent Celier  <celier@gnat.com>
31740
31741         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
31742         gnatsym, when symbol policy is Restricted.
31743
31744         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
31745         gnatsym, when symbol policy is Restricted.
31746
31747         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
31748         read the symbol file.
31749         (Finalize): Fail in symbol policy Restricted if a symbol in the original
31750         symbol file is not in the object files. Do not create a new symbol file
31751         when symbol policy is Restricted.
31752
31753         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
31754         in Scng.
31755
31756         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
31757         Restricted.
31758         (Usage): Line for new switch -R
31759
31760         * make.adb (Initialize): When the platform is not VMS, add the
31761         directory where gnatmake is invoked in the front of the path, if
31762         gnatmake is invoked with directory information.  Change the Scan_Args
31763         while loop to a for loop.
31764         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
31765         if Depth is equal or greater than the proposed depth, there is nothing
31766         to do.
31767         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
31768         instead of 0.
31769
31770         * prj.ads: Add new symbol policy Restricted.
31771
31772         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
31773         with the new parameters Check_All_Labels and Case_Location.
31774
31775         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
31776         (Library_Symbol_File needs to be defined).
31777
31778         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
31779         and Case_Location If Check_All_Labels is True, check that all values of
31780         the string type are used, and output warning(s) if they are not.
31781
31782         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
31783         and Case_Location.
31784
31785         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
31786
31787         * gnat_ugn.texi: Update documentation about the library directory in
31788         Library Projects.
31789
31790         * makegpr.adb (Display_Command): In verbose mode, also display the
31791         value of the CPATH env var, when the compiler is gcc.
31792         (Initialize): Change the Scan_Args while loop to a for loop
31793         (Compile_Individual_Sources): Change directory to object directory
31794         before compilations.
31795
31796         * symbols.ads: New symbol policy Restricted.
31797
31798 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
31799
31800         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
31801         is now taken care of internally in the Exception_Propagation package
31802         and does not require clients assistance any more.
31803
31804         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
31805         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
31806         functions. Helpers to maintain a predicate required in the handling of
31807         occurrence transfer between tasks.
31808         This is now handled internally and does not require clients assistance
31809         for the setup/propagate separation anymore.
31810         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
31811         allocation strategy, handle the Setup_And_Not_Propagated predicate and
31812         document.
31813
31814         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
31815         raise_after_setup, now that everything is handled internally within the
31816         setup/propagation engine.
31817
31818 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
31819
31820         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
31821         Add additional conditions for the case of an actual being a simple
31822         name or literal. Improve inlining by preventing the generation
31823         of temporaries with a short lifetime (one use).
31824
31825 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
31826
31827         PR ada/15587
31828         * einfo.ads: Minor comment updates for Has_Completion and
31829         E_Constant list of flags.
31830
31831         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
31832         and constant redeclarations now set the Has_Completion flag of their
31833         defining identifiers.
31834
31835         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
31836         Inspect_Deferred_Constant_Completion.
31837         Used to detect private deferred constants that have not been completed
31838         either by a constant redeclaration or pragma Import. Emits error message
31839         "constant declaration requires initialization expression".
31840
31841         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
31842         completes a deferred constant.
31843
31844 2004-06-11  Geert Bosch  <bosch@gnat.com>
31845
31846         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
31847
31848         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
31849         calculating exponent for scaling denormal numbers.
31850         (Leading_Part): Properly raise Constraint_Error for zero or negative
31851         Adjustment.
31852         (Remainder): Properly raise Constraint_Error for zero divisor.
31853
31854 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
31855
31856         * sem_util.adb: Minor reformatting.
31857
31858         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
31859         dereference when accessing the entry parameter record.
31860         (Check_Array_Type): Always check for possible implicit dereference.
31861         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31862         Abort if a pointer is still present (denoting that an implicit
31863         dereference was left in the tree by the front-end).
31864
31865         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
31866         dereference when accessing the entry parameter record.
31867         (Check_Array_Type): Always check for possible implicit dereference.
31868         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31869         Abort if a pointer is still present (denoting that an implicit
31870         dereference was left in the tree by the front-end).
31871
31872 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
31873
31874         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
31875         message, like the compiler itself does. Easier to parse the output.
31876
31877         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
31878
31879         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
31880         be base names, and not includes directories.
31881
31882 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
31883
31884         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
31885         so that dependencies are properly taken into account by make.
31886
31887 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
31888
31889         PR ada/15622
31890         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
31891         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
31892
31893 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
31894
31895         * Makefile.in (install-gnatlib): install target-specific run-time files.
31896
31897         * Make-lang.in: Remove obsolete targets.
31898
31899 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
31900
31901         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
31902         specification, to catch misuses of program unit names.
31903
31904         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
31905         superfluous conversions in an instance.
31906
31907 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
31908
31909         PR ada/15403
31910         * sem_ch12.adb (Save_References): If operator node has been folded to
31911         enumeration literal, associated_node must be discarded.
31912
31913 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
31914
31915         * s-stchop-vxworks.adb: Add required pragma Convention to
31916         Task_Descriptor because it is updated by a C function.
31917
31918 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
31919
31920         PR ada/15568
31921         * Makefile.in: Remove target specific SO_OPT on IRIX
31922
31923 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31924
31925         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
31926         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
31927         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
31928         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
31929         (STMT_STMT, USE_STMT): New statement codes.
31930         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
31931         * ada-tree.h: Reflect above changes.
31932         (struct tree_loop_id): Deleted.
31933         (union lang_tree_node, struct lang_decl, struct lang_type):
31934         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
31935         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
31936         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
31937         (IS_ADA_STMT): New macro.
31938         * decl.c (annotate_decl_with_node): New function.
31939         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
31940         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
31941         Call add_stmt_with_node to do needed assignments.
31942         Add call to update setjmp buffer directly, not via EXPR_STMT.
31943         (maybe_variable): Argment GNAT_NODE deleted.
31944         * gigi.h (maybe_variable): Likewise.
31945         (make_transform, add_stmt_with_node, set_block_for_group): New.
31946         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
31947         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
31948         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
31949         (set_lineno, set_lineno_from_sloc): Likewise.
31950         (record_code_position, insert_code_for): Likewise.
31951         (gnat_poplevel): Now returns void.
31952         (end_subprog_body): Now takes argument.
31953         * misc.c (cgraph.h, tree-inline.h): New includes.
31954         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
31955         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
31956         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
31957         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
31958         (gnat_parse_file): Don't set immediate_size_expand.
31959         Call cgraph functions.
31960         (gnat_expand_expr): Remove most cases.
31961         (record_code_position, insert_code_for): Remove from here.
31962         * trans.c (toplev.h, tree-gimple.h): Now included.
31963         (discard_file_names): Deleted.
31964         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
31965         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
31966         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
31967         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
31968         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
31969         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
31970         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
31971         (set_block_for_group, add_stmt_list): Likewise.
31972         (start_stmt_group): Renamed from start_block_stmt.
31973         (end_stmt_group): Likewise, from end_block_stmt.
31974         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
31975         (gigi): Don't set discard_file_names or call set_lineno.
31976         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
31977         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
31978         Numerous changes throughout to reflect new names and complete
31979         function-at-a-time implementation.
31980         (gnat_expand_stmt): Delete or comment out all cases.
31981         (process_inlined_subprograms): Use add_stmt.
31982         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
31983         call set_lineno; also remove unneeded block handling.
31984         (process_type): Remove unneeded block handling.
31985         (build_unit_elab): Remove calls to deleted functions.
31986         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
31987         (tree-dump.h): Likewise.
31988         (struct ada_binding_level): Add field jmpbuf_decl.
31989         (gnat_define_builtin, gnat_install_builtins): New.
31990         (gnat_gimplify_function, gnat_finalize): Likewise.
31991         (gnat_poplevel): No longer return BLOCK, set it instead.
31992         Remove code dealing with nested functions.
31993         (gnat_init_decl_processing): Also set size_type_node.
31994         Call gnat_install_builtins.
31995         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
31996         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
31997         Remove special-case for "main".
31998         (end_subprog_body): Add arg and rework for tree-ssa.
31999         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32000         Add case for BOOLEAN_TYPE.
32001         * utils2.c (rtl.h): Now include.
32002         (build_call_raise): Test Debug_Flag_NN directly.
32003         (build_call_alloc_dealloc): Don't use local stack allocation for now.
32004         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32005         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32006
32007 2004-06-07  Robert Dewar  <dewar@gnat.com>
32008
32009         * a-direct.ads, einfo.ads: Minor comment updates
32010
32011         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32012         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32013         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32014         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32015         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32016
32017         * s-interr-sigaction.adb: Remove unreferenced variable
32018         (Attached_Interrupts).  Minor reformatting.
32019         Avoid use of variable I (replace by J).
32020
32021         * par-ch10.adb: Fix text of one error message
32022
32023         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32024         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32025         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32026         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32027         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32028         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32029         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32030         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32031         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32032         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32033         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32034         2005 support.
32035
32036 2004-06-07  Doug Rupp  <rupp@gnat.com>
32037
32038         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32039
32040         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32041
32042         * mlib-tgt-vms-ia64.adb: New file.
32043
32044         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32045         Add mlib-tgt-vms-ia64.adb
32046         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32047         Move to alpha specific ifeq section.
32048         Add VMS specific versions of symbols.adb
32049         Renaming of 5q vms files.
32050
32051         * 5qsystem.ads renamed to system-vms_64.ads.
32052
32053 2004-06-07  Vincent Celier  <celier@gnat.com>
32054
32055         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32056         explain that when a time of day corresponding to the non existing hour
32057         on the day switching to DST is specified, Split may return a different
32058         value for Seconds.
32059
32060         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32061         to GNAT PRETTY.
32062
32063         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32064         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32065
32066         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32067         to False.
32068         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32069         the linking options.
32070         (Build_Library.Check_Libs): On VMS, if there is a dependency on
32071         g-trasym.ads, set Gtrasymobj_Needed to True.
32072
32073         * prj-attr.adb: Add new package Metrics for gnatmetric
32074
32075         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32076         canonical case to take into account files with upper case characters on
32077         Windows.
32078         (Ada_Check): Load the reference symbol file name in the name buffer to
32079         check it, not the symbol file name.
32080
32081         * snames.ads, snames.adb: Add standard name Metrics (name of project
32082         file package for gnatmetric).
32083
32084         * vms_conv.ads: Add Metric to Comment_Type
32085
32086         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32087
32088         * vms_data.ads: Add qualifiers for GNAT METRIC
32089
32090         * makegpr.adb (Link_Executables): Take into account the switches
32091         specified in package Linker of the main project.
32092
32093 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
32094
32095         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
32096         the index of the last element is Units.Last, not Units.Table'Last
32097         (which is usually not a valid index within the actually allocated
32098         storage for the table).
32099
32100         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
32101         determines whether to generate a call to a checked storage pool
32102         Dereference action.
32103         Generate such a call only for a dereference that either comes from
32104         source, or is the result of rewriting a dereference that comes from
32105         source.
32106
32107 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
32108
32109         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
32110
32111 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
32112
32113         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
32114         file level, elaborate the stride for inner dimensions in alignment
32115         units, not bytes.
32116
32117         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
32118         in a comment.
32119
32120 2004-06-07  Javier Miranda  <miranda@gnat.com>
32121
32122         * exp_ch6.adb: Correct wrong modification in previous patch
32123
32124 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
32125
32126         * g-trasym.ads: Corrected comment to properly reflect level of support
32127         on VMS.
32128
32129 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
32130
32131         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
32132         includes case of a variable referenced on the left hand side of an
32133         assignment, therefore remove redundant code. Variables and prefixes of
32134         indexed or selected components are now marked as referenced on left
32135         hand side. Warnings are now properly emitted when variables or prefixes
32136         are assigned but not read.
32137
32138         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
32139         left hand side referenced variables. Private access types do not
32140         produce the warning "variable ... is assigned but never read".
32141         Add also additional checks to left hand side referenced variables.
32142         Aliased, renamed objects and access types do not produce the warning
32143         "variable ... is assigned but never read" since other entities may read
32144         the memory location.
32145
32146 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
32147
32148         * Makefile.in: In the powerpc/vxworks-specific section, restore
32149         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
32150         by mistake).
32151
32152 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
32153
32154         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
32155         predefined operators.
32156         Removes spurious type errors from g-trasym-vms.adb.
32157
32158         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
32159         distinct from the operator appearing in the source, call appropriate
32160         routine to insert conversions when needed, and complete resolution of
32161         node.
32162         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
32163         interpretations for rewritten right operand.
32164         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
32165         the other operand is overloaded and the context is a type conversion.
32166
32167 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32168
32169         * ada-tree.def (BLOCK_STMT): Now has two operands.
32170         (BREAK_STMT): New.
32171
32172         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
32173
32174         * gigi.h: (gnat_poplevel): Now returns a tree.
32175
32176         * trans.c (end_block_stmt): Add arg; all callers changed.
32177         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
32178         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
32179         (add_stmt): Set TREE_TYPE.
32180         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
32181         (gnat_expand_stmt, case BREAK_STMT): New case.
32182
32183         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
32184
32185 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
32186
32187         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
32188         procedure Set_Stack_Size that is not needed.
32189
32190 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
32191
32192         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
32193         used for gnatpp input file and for the files upon which it depends
32194
32195 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
32196
32197         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
32198
32199 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
32200
32201         * gnatvsn.ads: Bump version numbers appropriately.
32202         Add new build type.
32203
32204 2004-06-07  Pascal Obry  <obry@gnat.com>
32205
32206         * gnat_ugn.texi: Improve comments about imported names and link names
32207         on Windows. Add a note about the requirement to use -k gnatdll's option
32208         when working with a DLL which has stripped stdcall symbols (no @nn
32209         suffix).
32210
32211 2004-05-27  Vincent Celier  <celier@gnat.com>
32212
32213         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
32214         COMMENTS_LAYOUT=UNTOUCHED
32215
32216         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
32217         symbols-vms-alpha.adb
32218
32219 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
32220
32221         * sem.ads: Clarify documentation on checks suppression.
32222
32223         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
32224
32225 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
32226
32227         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
32228         the case of multiple derivations.
32229         (Is_Object_Reference): For a selected component, verify that the prefix
32230         is itself an object and not a value.
32231
32232         * sem_ch12.adb (Same_Instantiated_Constant): New name for
32233         Same_Instantiated_Entity.
32234         (Same_Instantiated_Variable): Subsidiary to
32235         Check_Formal_Package_Instance, to recognize actuals for in-out generic
32236         formals that are obtained from a previous formal package.
32237         (Instantiate_Subprogram_Body): Emit proper error when
32238         generating code and the proper body of a stub is missing.
32239
32240         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
32241         has a universal interpretation, do the disambiguation here.
32242
32243         * exp_ch4.adb (Expand_N_Type_Conversion,
32244         Expand_N_Unchecked_Type_Conversion): Special handling when target type
32245         is Address, to avoid typing anomalies when Address is a visible integer
32246         type.
32247
32248         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
32249         to determine whether a subprogram should not be marked Pure, even when
32250         declared in a pure package.
32251
32252 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
32253
32254         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
32255
32256         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
32257         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
32258         Update the documentation about the Ravenscar profile, following the
32259         definition found in AI-249.
32260
32261         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
32262         setting the Profile (Ravenscar). This must be done in addition to
32263         setting the required restrictions.
32264
32265         * rtsfind.ads: Add the set of operations defined in package
32266         Ada.Interrupts.
32267
32268         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
32269         restriction.
32270
32271 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
32272
32273         lang-specs.h: Always require -c or -S and always redirect to /dev/null
32274         if -gnatc or -gnats is passed.
32275
32276 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
32277
32278         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
32279         a significant reference. Warnings are now properly emitted when a
32280         discriminated type is not referenced.
32281
32282         * lib-xref.adb (Generate_Reference): A deferred constant completion,
32283         record representation clause or record type discriminant does not
32284         produce a reference to its corresponding entity. Warnings are now
32285         properly emitted when deferred constants and record types are not
32286         referenced.
32287
32288 2004-05-27  Geert Bosch  <bosch@gnat.com>
32289
32290         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
32291         Fixes ACATS Annex G tests.
32292
32293 2004-05-27  Robert Dewar  <dewar@gnat.com>
32294
32295         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
32296         handling WITH
32297
32298 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
32299
32300         * s-interr.adb (Server_Task): Take into account case of early return
32301         from sigwait under e.g. linux.
32302
32303 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
32304
32305         * gnat_ugn.texi: Add description for the new gnatpp options:
32306          -rnb - replace the original source without creating its backup copy
32307          -c0 - do not format comments
32308
32309 2004-05-24  Geert Bosch  <bosch@gnat.com>
32310
32311         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
32312         with 192 bits of precision, sufficient to reduce a double-extended
32313         arguments X with a maximum relative error of T'Machine_Epsilon, for X
32314         in -2.0**32 .. 2.0**32.
32315         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
32316         reduction by the processor, which only uses a 68-bit approximation of
32317         Pi.
32318         (Tan): Always reduce arguments and compute function either using
32319         the processor's fptan instruction, or by dividing sin and cos as needed.
32320
32321 2004-05-24  Doug Rupp  <rupp@gnat.com>
32322
32323         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
32324         gcc error on 32/64 bit VMS.
32325
32326 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
32327
32328         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
32329         since this is what we get for stack overflows although not documented
32330         as such.
32331         Document the issues which may require adjustments to our signal
32332         handlers.
32333
32334 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
32335
32336         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
32337         enclosing dynamic scope if the instantiation is within a generic unit.
32338
32339 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
32340
32341         * exp_dbug.ads: Fix typo.
32342
32343         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
32344         Rename it to its proper name: system-linux-ia64.ads
32345         (stamp-gnatlib1): Remove extra target specific run time files when
32346         setting up the rts directory.
32347
32348 2004-05-24  Javier Miranda  <miranda@gnat.com>
32349
32350         * einfo.ads, einfo.adb (Limited_Views): Removed.
32351         (Limited_View): New attribute that replaces the previous one. It is
32352         now a bona fide package with the limited-view list through the
32353         first_entity and first_private attributes.
32354
32355         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
32356         limited-private-with clause.
32357         (Install_Limited_Withed_Unit): Install the private declarations of a
32358         limited-private-withed package. Update the installation of the shadow
32359         entities according to the new structure (see Build_Limited_Views)
32360         (Build_Limited_Views): Replace the previous implementation of the
32361         limited view by a package entity that references the first shadow
32362         entity plus the first shadow private entity (required for limited-
32363         private-with clause)
32364         (New_Internal_Shadow_Entity): Code cleanup.
32365         (Remove_Limited_With_Clause): Update the implementation to undo the
32366         new work carried out by Build_Limited_Views.
32367         (Build_Chain): Complete documentation.
32368         Replace Ada0Y by Ada 0Y in comments
32369         Minor reformating
32370
32371         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
32372         types the level of accessibility depends on the enclosing type
32373         declaration.
32374
32375         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
32376         entities. Complete documentation of previous change.
32377
32378 2004-05-24  Robert Dewar  <dewar@gnat.com>
32379
32380         * namet.adb: Minor reformatting
32381         Avoid use of name I (replace by J)
32382         Minor code restructuring
32383
32384         * sem_ch6.adb: Minor reformatting
32385
32386         * lib-writ.adb: Do not set restriction as active if this is a
32387         Restriction_Warning case.
32388
32389         * sem_prag.adb: Reset restriction warning flag if real pragma
32390         restriction encountered.
32391
32392         * s-htable.adb: Minor reformatting
32393         Change rotate count to 3 in Hash (improves hash for small strings)
32394
32395         * 5qsystem.ads: Add comments for type Address (no literals allowed).
32396
32397         * gnat_ugn.texi: Add new section of documentation "Code Generation
32398         Control", which describes the use of -m switches.
32399
32400 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
32401
32402         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
32403         through the DECL_INITIAL for renamed variables.
32404
32405 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
32406
32407         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
32408
32409 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
32410
32411         * exp_dbug.ads: Correct comments concerning handling of overloading,
32412         since we no longer use $ anymore.
32413
32414 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
32415
32416         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
32417         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
32418         with illegal subunits.
32419
32420 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
32421
32422         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
32423         body with front-end inlining enabled, check whether an inline pragma
32424         appears immediately after the body and applies to it.
32425
32426         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
32427         enabled and the pragma appears after the body of the subprogram.
32428
32429 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32430
32431         Part of function-at-a-time conversion
32432
32433         * misc.c (adjust_decl_rtl): Deleted.
32434         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
32435         Define.
32436
32437         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
32438         (add_decl_stmt, add_stmt, block_has_vars): New functions.
32439         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
32440
32441         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
32442         when making a decl.
32443         (gnat_to_gnu_entity): Likewise.
32444         Use add_stmt to update setjmp buffer.
32445         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
32446         flush_addressof.
32447         No longer call adjust_decl_rtl.
32448         (DECL_INIT_BY_ASSIGN_P): New macro.
32449         (DECL_STMT_VAR): Likewise.
32450
32451         * trans.c (gigi): Call start_block_stmt to make the outermost
32452         BLOCK_STMT.
32453         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
32454         Call start_block_stmt and end_block_stmt temporarily.
32455         Use gnat_expand_stmt instead of expand_expr_stmt.
32456         (add_decl_stmt): New function.
32457         (tree_transform): Call it.
32458         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
32459         (end_block_stmt): Set type and NULL_STMT.
32460         (gnat_expand_stmt): Make recursize call instead of calling
32461         expand_expr_stmt.
32462         (gnat_expand_stmt, case DECL_STMT): New case.
32463         (set_lineno_from_sloc): Do nothing if global.
32464         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
32465         (start_block_stmt, add_stmt, end_block_stmt): New functions.
32466         (build_block_stmt): Call them.
32467         (gnat_to_code): Don't expand NULL_STMT.
32468         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
32469         args.
32470         (tree_transform): Likewise.
32471         (tree_transform, case N_Null_Statement): Return NULL_STMT.
32472         (gnat_expand_stmt, case NULL_STMT): New case.
32473         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
32474         IF_STMT_TRUE.
32475
32476         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
32477         TREE_ADDRESSABLE.
32478
32479         * utils.c (create_var_decl): Do not call expand_decl or
32480         expand_decl_init.
32481         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
32482         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
32483         here.
32484         (struct e_stack): Add chain_next to GTY.
32485         (struct binding_level): Deleted.
32486         (struct ada_binding_level): New struct.
32487         (free_block_chain): New.
32488         (global_binding_level, clear_binding_level): Deleted.
32489         (global_bindings_p): Rework to see if no chain.
32490         (kept_level_p, set_block): Deleted.
32491         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
32492         new data structure and work directly on BLOCK node.
32493         (gnat_poplevel): Similarly.
32494         (get_decls): Look at BLOCK_VARS.
32495         (insert_block): Work directly on BLOCK node.
32496         (block_has_var): New function.
32497         (pushdecl): Rework for new binding structures.
32498         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
32499         poplevel.
32500         (build_subprog_body): Likewise.
32501         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
32502
32503         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
32504
32505         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
32506         (DECL_STMT_VAR): Likewise.
32507
32508 2004-05-17  Robert Dewar  <dewar@gnat.com>
32509
32510         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
32511         procedure
32512
32513         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
32514         of restriction synonyums by using
32515         Restrict.Process_Restriction_Synonyms.
32516
32517         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
32518
32519         * s-restri.ads (Tasking_Allowed): Correct missing comment
32520
32521         * s-rident.ads: Add entries for restriction synonyms
32522
32523         * ali.adb: Fix some problems with badly formatted ALI files that can
32524         result in infinite loops.
32525
32526         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
32527         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
32528         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32529         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
32530         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
32531         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
32532         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
32533         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
32534         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
32535         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
32536         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
32537         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
32538         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
32539         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32540         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32541         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32542         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32543         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32544         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
32545         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
32546         to Task_Id (minor cleanup).
32547
32548 2004-05-17  Vincent Celier  <celier@gnat.com>
32549
32550         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
32551         directory separator.
32552
32553         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
32554         project being extended, if Languages is not declared in extending
32555         project.
32556
32557 2004-05-17  Javier Miranda  <miranda@gnat.com>
32558
32559         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
32560         limited view of a visible sibling.
32561
32562 2004-05-14  Robert Dewar  <dewar@gnat.com>
32563
32564         * gnat_ugn.texi: Minor change to -gnatS documentation
32565
32566         * sprint.adb: Remove some instances of Assert (False) and for this
32567         purpose replace them by output of a ??? string.
32568
32569         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
32570         Assert (False).
32571
32572         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
32573         flag processing. This was suppressing required dependencies in
32574         No_Run_Time mode and is not needed since the binder does not generate
32575         references for things in libgnat anyway.
32576
32577         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
32578         warning.
32579
32580 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
32581
32582         * gnat_ugn.texi: Document AIX-specific issue with initialization of
32583         resolver library.
32584
32585         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
32586         action for the case of an actual parameter in an init proc call.
32587
32588 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
32589
32590         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
32591         subtype, check visible entities in base type.
32592
32593         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
32594         actions if the object is a renaming.
32595
32596         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
32597         Check_Formal_Package_Instance, to determine more precisely when the
32598         formal and the actual denote the same entity.
32599
32600 2004-05-14  Javier Miranda  <miranda@gnat.com>
32601
32602         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
32603
32604         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
32605         corresponding to a private_with must be removed from visibility; it
32606         will be made visible later, just before we analyze the private part of
32607         the package.
32608         (Check_Private_Child_Unit): Allow private_with clauses in public
32609         siblings.
32610         (Install_Siblings): Make visible the private entities of private-withed
32611         siblings.
32612         (Install_Withed_Unit): Do not install the private withed unit if we
32613         are compiling a package declaration and the Private_With_OK flag was
32614         not set by the caller. These declarations will be installed later,
32615         just before we analyze the private part of the package.
32616
32617         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
32618         during the evaluation of the expression that initializes the object,
32619         decorate it with the expected type to avoid cascade errors.
32620         Code cleanup.
32621
32622         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
32623         subprogram we have to install the private_with clauses after its
32624         specification has been analyzed (as documented in AI-262.TXT).
32625
32626         * sem_ch8.adb (Has_Private_With): New function. Determines if the
32627         current compilation unit has a private with on a given entity.
32628         (Find_Direct_Name): Detect the Beaujolais problem described in
32629         AI-262.TXT
32630
32631         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
32632         provides the functionality of the function Is_Ancestor that was
32633         previously available in sem_ch10. It has been renamed to avoid
32634         overloading.
32635
32636         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
32637
32638 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32639
32640         * utils.c (build_vms_descriptor): Use SImode pointers.
32641
32642 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
32643
32644         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
32645
32646 2004-05-14  GNAT Script  <nobody@gnat.com>
32647
32648         * Make-lang.in: Makefile automatically updated
32649
32650 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
32651
32652         Renaming of target specific files for clarity
32653
32654         * Makefile.in: Rename GNAT target specific files.
32655
32656         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
32657         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
32658         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
32659         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
32660         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
32661         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
32662         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
32663         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
32664         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
32665         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
32666         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
32667         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
32668         51osinte.adb, 51osinte.ads, 51system.ads,
32669         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
32670         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
32671         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
32672         56tpopsp.adb, 57system.ads, 58system.ads,
32673         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
32674         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32675         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
32676         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
32677         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
32678         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32679         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
32680         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32681         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32682         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
32683         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
32684         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
32685         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
32686         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
32687         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
32688         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32689         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32690         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32691         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
32692         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
32693         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
32694         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
32695         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
32696         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32697         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
32698         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
32699         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32700         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
32701         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32702         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
32703         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
32704         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
32705         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
32706         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
32707         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
32708         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
32709         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
32710         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
32711         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
32712         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
32713
32714         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
32715         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
32716         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
32717         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
32718         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
32719         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
32720         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
32721         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
32722         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
32723         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
32724         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
32725         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
32726         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
32727         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
32728         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
32729         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
32730         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
32731         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
32732         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
32733         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
32734         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
32735         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
32736         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
32737         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
32738         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
32739         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
32740         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
32741         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
32742         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
32743         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
32744         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
32745         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
32746         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
32747         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
32748         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
32749         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
32750         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
32751         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
32752         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
32753         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
32754         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
32755         s-osinte-vms.ads, s-osinte-vxworks.adb,
32756         s-osinte-vxworks.ads, s-osprim-mingw.adb,
32757         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
32758         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
32759         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
32760         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
32761         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
32762         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
32763         s-stchop-vxworks.adb, s-taprop-dummy.adb,
32764         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
32765         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
32766         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
32767         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32768         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
32769         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
32770         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
32771         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
32772         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
32773         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
32774         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
32775         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
32776         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
32777         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
32778         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
32779         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
32780         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
32781         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
32782         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
32783         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
32784         system-irix-o32.ads, system-linux-x86_64.ads,
32785         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32786         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
32787         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
32788         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
32789         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
32790         system-vxworks-mips.ads, system-vxworks-ppc.ads,
32791         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
32792         above.
32793
32794 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
32795
32796         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
32797
32798 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
32799
32800         Merge from tree-ssa-20020619-branch.
32801
32802         * config-lang.in (boot_language, build_by_default): Set
32803         to no.
32804         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
32805         (max_size): Add static chain op for call_expr.
32806
32807 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
32808
32809         PR target/15331
32810         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
32811
32812 2004-05-11  Roger Sayle  <roger@eyesopen.com>
32813
32814         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
32815         COND_EXPR.
32816
32817 2004-05-10  Doug Rupp  <rupp@gnat.com>
32818
32819         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
32820         system.aux_dec.
32821
32822         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
32823
32824         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
32825
32826         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
32827         Fixes undefined symbols in IA64 gnatlib.
32828
32829         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
32830
32831         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
32832         Short_Address). This will be moved to system.auxdec.
32833
32834 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
32835
32836         * sem_util.adb: Replace test for presence of a node that is always
32837         present with a call to Discard_Node.
32838
32839         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
32840         Analyze on the library unit node after generation of distribution stub
32841         constructs.  The call was a no-op because Unit_Node has already been
32842         Analyzed, and the tree fragments for the distribution stubs are
32843         analyzed as they are inserted in Exp_Dist.
32844         Update comment regarding to distribution stubs to reflect that we
32845         do not generate stub in separate files anymore.
32846
32847         * einfo.ads: Clarify the fact that a tagged private type has the
32848         E_Record_Type_With_Private Ekind.
32849
32850         * erroutc.adb: Minor reformatting
32851
32852         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
32853         values if line length is increased using -gnatyM (noticed during code
32854         reading).
32855
32856         * eval_fat.adb: Minor reformatting
32857         Put spaces around exponentiation operator
32858
32859 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
32860
32861         PR ada/15005
32862         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
32863         has been rewritten as an explicit dereference, retrieve type of
32864         original node to check for possibly unconstrained record type.
32865
32866 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
32867
32868         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
32869         overriding, use the operation of the parent unconditionally.
32870
32871         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
32872         operation when either operand is a literal, to avoid further
32873         ambiguities.
32874
32875         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
32876         overridden by a previous explicit declaration, mark the previous entity
32877         as overriding.
32878
32879         * sem_disp.adb (Check_Dispatching_Operation): New predicate
32880         Is_Visibly_Controlled, to determine whether a declaration of a
32881         primitive control operation for a derived type overrides an inherited
32882         one. Add warning if the explicit declaration does not override.
32883
32884 2004-05-10  Vincent Celier  <celier@gnat.com>
32885
32886         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
32887         some cases when the sources are no longer present.
32888
32889         * make.adb (Collect_Arguments): Fail if an external source, not part
32890         of any project need to be compiled, when switch -x has not been
32891         specified.
32892
32893         * makeusg.adb: Document new switch -x
32894
32895         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
32896         defaulted to False.
32897
32898         * switch-m.adb (Scan_Make_Switches): New switch -x
32899
32900         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
32901         gnatmake switch -x.
32902
32903         * gnat_ugn.texi: Document new gnatmake switch -x
32904
32905 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
32906
32907         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
32908
32909         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
32910         (process_attributes): Likewise.
32911
32912 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
32913
32914         * s-inmaop.ads: Fix spelling mistake in one of the comments.
32915
32916 2004-05-10  Robert Dewar  <dewar@gnat.com>
32917
32918         * gnat_ugn.texi: Document that for config pragma files, the maximum
32919         line length is always 32767.
32920
32921         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
32922         literals is now allowed.
32923
32924         * gnat-style.texi: Remove statement about splitting long lines before
32925         an operator rather than after, since we do not follow this rule at all.
32926         Clarify rule (really lack of rule) for spaces around exponentiation
32927
32928         * sem_elim.adb: Allow concatenation of string literals as well as a
32929         single string literal for pragma arguments.
32930
32931         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
32932
32933         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
32934         written for append case.
32935
32936         * frontend.adb: Changes to avoid checking max line length in config
32937         pragma files.
32938
32939         * g-os_lib.ads: Minor reformatting
32940
32941         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
32942         wrong in any case. Instead use standard value. Noticed during code
32943         reading.
32944
32945         * opt.ads (Max_Line_Length): New field, used to implement removal of
32946         limitation on length of lines when scanning config pragma files.
32947
32948         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
32949         makeutl.ads, makeutl.adb: Minor reformatting
32950
32951         * scn.adb: Do not check line length while scanning config pragma files
32952         Do not check line length while scanning out license information
32953
32954         * scng.adb: Changes to avoid line length checks while parsing config
32955         pragma files.
32956
32957 2004-05-10  GNAT Script  <nobody@gnat.com>
32958
32959         * Make-lang.in: Makefile automatically updated
32960
32961 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
32962
32963         * osint.adb (Find_Program_Name): Fix handling of VMS version
32964         number.
32965
32966 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
32967
32968         * g-os_lib.ads (Invalid_Time): New constant
32969
32970         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
32971         return OS_Time instead of time_t to match what is imported by Ada.
32972         Now return -1 if the file doesn't exist, instead of a random value
32973
32974 2004-05-05  Robert Dewar  <dewar@gnat.com>
32975
32976         * usage.adb: Add line for -gnatR?s switch
32977
32978         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
32979
32980         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
32981         and for Match (Data_First, Data_last)
32982
32983         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
32984         written when we are dealing with multi-unit files.
32985
32986 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
32987
32988         * Makefile.in: Remove unused targets and variables.
32989
32990 2004-05-05  Vincent Celier  <celier@gnat.com>
32991
32992         * switch-m.adb: New gnatmake switch -eI
32993
32994         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
32995         of new gnatmake switch -eInnn.
32996
32997         * makegpr.adb: Take into account new parameters Index and Src_Index in
32998         Prj.Util.
32999
33000         * clean.adb: Implement support for multi-unit sources, including new
33001         switch -i.
33002
33003         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33004         Src_Index.
33005
33006         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33007         (Extract_From_Q): New out parameter Index
33008         (Mark, Is_Marked): Subprograms moved to Makeutl
33009         (Switches_Of): New parameter Source_Index
33010         (Add_Switch): New parameter Index
33011         (Check): New parameter Source_Index
33012         (Collect_Arguments): New parameter Source_Index
33013         (Collect_Arguments_And_Compile): New parameter Source_Index
33014         (Compile): New parameter Source_Index
33015         Put subprograms in alphabetical order
33016         Add support for multi-source sources, including in project files.
33017
33018         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33019         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33020         Make.
33021
33022         * makeusg.adb: New gnatmake switch -eInnn
33023
33024         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33025         Prj.Util.Value_Of.
33026
33027         * opt.ads (Main_Index): New variable, defaulted to 0.
33028
33029         * osint.ads, osinte.adb (Add_File): New parameter Index
33030         (Current_Source_Index): New function
33031
33032         * prj.adb: Take into account new components Index and Src_Index
33033
33034         * prj.ads (String_Element): New component Index
33035         (Variable_Value): New component Index
33036         (Array_Element): New component Src_Index
33037
33038         * prj-attr.adb: Indicate that optional index may be specified for
33039         attributes Main, Executable, Spec, Body and some of Switches.
33040
33041         * prj-attr.ads (Attribute_Kind): New values for optional indexes
33042         (Attribute_Record): New component Optional_Index
33043
33044         * prj-com.ads (File_Name_Data): New component Index
33045
33046         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33047
33048         * prj-env.adb (Put): Output optional index
33049
33050         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33051         attributes Spec and Body.
33052
33053         * prj-nmsc.adb: Process optional indexes
33054
33055         * prj-pp.adb: Ouput "at" for optional indexes
33056
33057         * prj-proc.adb: Take into account optional indexes
33058
33059         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33060         Optional_Index. For string literal,
33061         process optional index when Optional_Index is True.
33062         (Parse_Expresion): New Boolean parameter Optional_Index
33063
33064         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33065         (Set_Source_Index_Of): New procedure
33066
33067         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33068         index.
33069
33070         * prj-util.ads (Executable_Of): New parameter Index
33071         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33072         New parameter Src_Index, defaulted to 0.
33073
33074 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33075
33076         PR ada/15257
33077         * sem_ch3.adb (Access_Definition): If this is an access parameter
33078         whose designated type is imported through a limited_with clause, do
33079         not add the enclosing subprogram to the list of private dependents of
33080         the type.
33081
33082 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33083
33084         PR ada/15258
33085         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33086         a limited_with clause, and the other is its non-limited view.
33087
33088 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
33089
33090         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
33091
33092         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
33093         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
33094         Stand.Boolean_Literals to produce references to entities
33095         Standard_False and Standard_True from compile-time computed boolean
33096         values.
33097
33098         * stand.ads (Boolean_Literals): New variable, provides the entity
33099         values for False and True, for use by the expander.
33100
33101 2004-05-05  Doug Rupp  <rupp@gnat.com>
33102
33103         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
33104         5vinmaop.adb: Unchecked convert Short_Address vice Address
33105
33106         * adaint.c, raise.c: Caste CRTL function return value
33107         to avoid gcc error on 32/64 bit IVMS.
33108
33109         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
33110         target = IA64/VMS.
33111
33112         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
33113
33114         * 5qsystem.ads (Address): Declare as Long_Integer
33115         (Short_Address): Declare as 32 bit subtype of Address
33116         Declare  abstract address operations to avoid gratuitous ambiguities.
33117
33118 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
33119
33120         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
33121         instead of the old Boolean_Entry_Barriers.
33122         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
33123
33124 2004-05-05  GNAT Script  <nobody@gnat.com>
33125
33126         * Make-lang.in: Makefile automatically updated
33127
33128 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33129
33130         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
33131
33132 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
33133
33134         PR ada/15152
33135         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
33136         alone. Replacing object references by literals is inappropriate in a
33137         so low level context.
33138
33139 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33140
33141         * a-exexpr.adb: Add comments
33142
33143 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
33144
33145         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
33146         declare the Ancestor_Tags array in Type_Specific_Data with a small size
33147         without risking a bounds check error when accessing one of its
33148         components.
33149         (Type_Specific_Data): Define Ancestor_Tags as a small array.
33150         This prevents us from hitting a limitation during the debug info
33151         generation when using stabs.
33152
33153         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
33154         small array.
33155         This prevents us from hitting a limitation during the debug info
33156         generation when using stabs.
33157
33158 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
33159
33160         lang-specs.h: Remove -gnatz* from specs.
33161
33162 2004-05-03  Vincent Celier  <celier@gnat.com>
33163
33164         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
33165
33166         * Make-lang.in, Makefile.in: Add gprmake
33167
33168 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
33169
33170         * sem_aggr.adb: Fix typo in comment.
33171
33172 2004-05-03  Robert Dewar  <dewar@gnat.com>
33173
33174         * make.adb: Minor reformatting
33175
33176         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
33177
33178         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
33179         so that it works when address is not a private type.
33180
33181         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
33182         properly with rewritten unchecked conversions. This prevents
33183         order-of-elaboration issues that can otherwise arise.
33184         (Minimum_Size): Don't check size of access types under VMS
33185
33186         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
33187         interpretations of integer literals as type System.Address.
33188
33189         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
33190         (Is_Descendent_Of): New function
33191
33192 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
33193
33194         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33195         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
33196         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
33197
33198         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
33199         of the old Max_Entry_Queue_Depth.
33200
33201         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33202         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
33203         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
33204
33205         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
33206         New entry for proper handling of Max_Entry_Queue_Depth.
33207         New entry for proper handling of No_Dynamic_Interrupts.
33208
33209         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
33210         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33211         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
33212         the GNAT specific restriction Max_Entry_Queue_Depth.
33213         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
33214         the GNAT specific restriction No_Dynamic_Interrupts.
33215
33216         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
33217         instead of the old Boolean_Entry_Barriers.
33218         Use the new restriction No_Dynamic_Attachment instead of the old
33219         No_Dynamic_Interrupts.
33220
33221         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
33222         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33223
33224         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
33225         of the old Max_Entry_Queue_Depth.
33226
33227 2004-05-03  GNAT Script  <nobody@gnat.com>
33228
33229         * Make-lang.in: Makefile automatically updated
33230
33231 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
33232
33233         * checks.adb (Enable_Range_Check): If the prefix of an index component
33234         is an access to an unconstrained array, perform check unconditionally.
33235
33236 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33237
33238         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
33239         Component_Clause.
33240
33241 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
33242
33243         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
33244         alternate stack setting. There was no support for the tasking cases
33245         and the changes eventually caused a number of side-effect failures in
33246         the non-tasking case too.
33247
33248 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
33249
33250         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
33251         -gnats is passed.
33252
33253 2004-04-29  Vincent Celier  <celier@gnat.com>
33254
33255         * make.adb (Gnatmake): Increase max size of argument array for
33256         gnatbind for the potential addition of -F.
33257         If there are Stand-Alone Library projects, invoke gnatbind with -F to
33258         be sure that elaboration flags will be checked.
33259
33260         * switch-c.adb: Correct call to Scan_Pos for -gnateI
33261
33262 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
33263
33264         * sem_warn.adb (Check_References): Move '<access-variable> may be
33265         null' warning out of under Warn_On_No_Value_Assigned.
33266
33267 2004-04-29  Ed Falis  <falis@gnat.com>
33268
33269         * gnat_ugn.texi: Fixed texi error
33270
33271 2004-04-29  Robert Dewar  <dewar@gnat.com>
33272
33273         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
33274         abstract operations if they come from predefined files.
33275
33276         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
33277         Dynamic, not RM).
33278
33279         * s-addope.adb: Correct obvious error in mod function
33280
33281 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
33282
33283         * Makefile.in: Add target pairs for powerpc darwin*
33284         tasking support.
33285
33286         * a-intnam-darwin.ads, s-osinte-darwin.adb,
33287         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
33288
33289 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
33290
33291         * Makefile.in: Add target macro definitions for s390*-linux*.
33292         * system-linux-s390.ads: New file.
33293         * system-linux-s390x.ads: New file.
33294
33295 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
33296
33297         * gnat_ugn.texi: Correct argument to @setfilename.
33298
33299 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
33300
33301         * a-exexpr.adb (Unwind_Word): New data type.
33302         (Unwind_Exception): Use it as type of Private1 and Private2.
33303
33304         * raise.c (db_action_for): Fix debug printf.
33305
33306 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
33307
33308         * a-wtmoio.ads: Formal type must be a modular type, not a signed
33309         integer type.
33310
33311 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33312
33313         * decl.c (gnat_to_gnu_entity, case object): Call
33314         __builtin_update_setjmp_buf.
33315
33316         * gigi.h (update_setjmp_buf): Deleted.
33317         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
33318
33319         * misc.c: (update_setjmp_buf): Deleted.
33320
33321         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
33322         around block of RTL.
33323
33324         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
33325
33326 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
33327
33328         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
33329         subprogram for which no pragma All_Calls_Remote applies, store the
33330         address of the real subprogram in the underlying record type, so local
33331         dereferences do not go through the PCS.
33332
33333 2004-04-26  Robert Dewar  <dewar@gnat.com>
33334
33335         * i-c.ads: Add some type qualifications to avoid ambiguities when
33336         compiling with s-auxdec.ads and a non-private address type.
33337
33338 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
33339
33340         * Makefile.rtl: Fix error in previous check-in:
33341         Add s-addope.o to non tasking object list (rather than tasking object
33342         list).
33343
33344 2004-04-26  Javier Miranda  <miranda@gnat.com>
33345
33346         * sem_aggr.adb: Fix typo in comments
33347         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
33348         Required to check the null-exclusion attribute.
33349
33350         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
33351         case of anonymous access types in record and array components. For a
33352         component definition the level is the same of the enclosing composite
33353         type.
33354
33355         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
33356         that are anonymous access types the level of accessibility depends on
33357         the enclosing type declaration. In order to have this information, set
33358         the scope of the anonymous access type to the enclosing record type
33359         declaration.
33360         (Array_Type_Declaration): In case of components that are anonymous
33361         access types the level of accessibility depends on the enclosing type
33362         declaration. In order to have this information, set the scope of the
33363         anonymous access type to the enclosing array type declaration.
33364
33365         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
33366         access type.
33367
33368         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
33369         renaming of anonymous access-to-constant types allowed if and only if
33370         the renamed object is access-to-constant.
33371
33372         * sem_util.adb (Type_Access_Level): In case of anonymous access types
33373         that are component_definition or discriminants of a nonlimited type,
33374         the level is the same as that of the enclosing component type.
33375
33376 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
33377
33378         * sem_elim.adb: Some minor code reorganization from code reading. Fix
33379         misprint in the function name (File_Name_Match).
33380
33381 2004-04-23  Laurent Guerby  <laurent@guerby.net>
33382
33383         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
33384         install.
33385
33386 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33387
33388         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
33389
33390 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
33391
33392         * adaint.c (__gnat_try_lock): No longer requires that the parent
33393         directory be writable, the directory itself is enough.
33394         (gnat_is_absolute_path): Change profile, so that the call from
33395         GNAT.OS_Lib can be made more efficient.
33396
33397         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
33398         from GNAT.OS_Lib can be made more efficient.
33399
33400         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
33401         one copy of the file name. Found by code reading.
33402
33403 2004-04-23  Vincent Celier  <celier@gnat.com>
33404
33405         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
33406         Correct documentation on gnatmake switches transmitted to the compiler
33407
33408         * ali.ads: Minor comment fix
33409
33410 2004-04-23  Javier Miranda  <miranda@gnat.com>
33411
33412         * sem_ch6.adb: (Confirming Types): Code cleanup
33413
33414         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
33415         subprogram types: E_Anonymous_Access_Subprogram_Type and
33416         E_Anonymous_Access_Protected_Subprogram_Type.
33417
33418 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
33419
33420         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33421         whether a pragma All_Calls_Remote applies to the subprogram on which
33422         'Access is taken.
33423         No functional change is introduced by this revision; the new parameter
33424         will be used to allow calls to local RCI subprograms to be optimized
33425         to not use the PCS in the case where no pragma All_Calls_Remote applies,
33426         as is already done in the PolyORB implementation of the DSA.
33427
33428         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33429         whether a pragma All_Calls_Remote applies to the subprogram on which
33430         'Access is taken.
33431         No functional change is introduced by this revision; the new parameter
33432         will be used to allow calls to local RCI subprograms to be optimized
33433         to not use the PCS in the case where no pragma All_Calls_Remote applies,
33434         as is already done in the PolyORB implementation of the DSA.
33435
33436 2004-04-23  Robert Dewar  <dewar@gnat.com>
33437
33438         * Makefile.rtl: Add entry for s-addope.o in run time library list
33439         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
33440         * s-addope.ads, s-addope.adb: New files.
33441
33442         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
33443         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
33444         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
33445         System.Address to be non-private and signed.
33446
33447         * sem_elim.adb: Minor reformatting (fairly extensive)
33448         Some minor code reorganization from code reading
33449         Add a couple of ??? comments
33450
33451 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33452
33453         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
33454         (tree_transform, case N_If_Statement): Remove non-determinism.
33455
33456         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
33457
33458 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
33459
33460         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
33461         Eliminate' section.
33462
33463         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
33464         no longer used as a parameter name for Eliminate pragma).
33465
33466 2004-04-22  Laurent Guerby  <laurent@guerby.net>
33467
33468         PR optimization/14984
33469         PR optimization/14985
33470         * trans.c (gigi): Fix non determinism leading to bootstrap
33471         comparison failures.
33472
33473 2004-04-21  Pascal Obry  <obry@gnat.com>
33474
33475         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
33476         passed to spawnvp() to properly handle program pathname with spaces on
33477         Win32.
33478
33479 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
33480
33481         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
33482         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
33483         unlocked in case of exceptions.
33484
33485 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
33486
33487         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
33488         This function does not exist anymore.
33489
33490 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
33491
33492         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
33493
33494         * link.c: Move variables to the __gnat name space.
33495
33496         * Makefile.in: list link.o explicitly when needed.
33497
33498         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
33499
33500 2004-04-21  Javier Miranda  <miranda@gnat.com>
33501
33502         * einfo.adb (Original_Access_Type): New subprogram
33503         (Set_Original_Access_Type): New subprogram
33504         (Write_Field21_Name): Write the name of the new field
33505
33506         * einfo.ads (Original_Access_Type): New field present in access to
33507         subprogram types.
33508         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
33509         E_Anonymous_Access_Protected_Subprogram_Type.
33510
33511         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
33512         subprogram types.
33513
33514         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
33515         to anonymous access to subprogram types.
33516
33517         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
33518         to subprogram types.
33519
33520         * sem_ch3.adb (Access_Definition): Complete decoration of entities
33521         corresponding to anonymous access to subprogram types.
33522         (Analyze_Component_Declaration): Add new actual to the call to
33523         subprogram replace_anonymous_access_to_protected_subprogram.
33524         (Array_Type_Declaration): Add new actual to the call to subprogram
33525         replace_anonymous_access_to_protected_subprogram.
33526         (Process_Discriminants): Add new actual to the call to subprogram
33527         replace_anonymous_access_to_protected_subprogram.
33528         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
33529
33530         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33531         formal.
33532
33533         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
33534         access to subprogram types.
33535
33536         * sem_util.adb (Has_Declarations): Addition of package_specification
33537         nodes.
33538
33539 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
33540
33541         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
33542         inlined flags to renamed entity only if in current unit.
33543
33544 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
33545
33546         * s-parint.ads: Add DSA implementation marker.
33547
33548         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
33549         value of System.Partition_Interface.DSA_Implementation to determine
33550         what version of the distributed systems annex is available (no
33551         implementation, GLADE, or PolyORB).
33552
33553 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
33554
33555         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
33556
33557 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33558
33559         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
33560         with new type if alias sets differ.
33561         Fixes ACATS c41103b.
33562
33563 2004-04-21  Vincent Celier  <celier@gnat.com>
33564
33565         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
33566         Add array Lang_Args for the language specific compiling argument
33567         switches.
33568
33569         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
33570
33571 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
33572
33573         * gnat_rm.texi: Update the descripton of the Eliminate pragma
33574         according to the recent changes in the format of the parameters of the
33575         pragma (replacing Homonym_Number with Source_Location).
33576
33577 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
33578
33579         * 5isystem.ads: Removed, unused.
33580
33581         * gnat_rm.texi: Redo 1.13 change.
33582
33583 2004-04-19  Robert Dewar  <dewar@gnat.com>
33584
33585         * s-stoele.ads: Clean up definition of Storage_Offset (the new
33586         definition is cleaner, avoids the kludge of explicit Standard operator
33587         references, and also is consistent with a visible System.Address with
33588         no visible operations.
33589
33590         * s-geveop.adb: Add declarations to avoid assumption of visible
33591         operations on type System.Address (since these might not be available
33592         if Address is a non-private type for which the operations
33593         are made abstract).
33594
33595         * sem_eval.adb: Minor reformatting
33596
33597         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
33598         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
33599         reformatting (new function spec format).
33600
33601         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
33602         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
33603         s-caun64.adb: Add declarations to avoid assumption of visible
33604         operations on type System.Address (since these might not be available
33605         if Address is a non-private type for which the operations are made
33606         abstract).
33607
33608         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
33609
33610         * exp_intr.adb: Minor comment update
33611
33612         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
33613
33614         * 5omastop.adb: Add declarations to avoid assumption of visible
33615         operations on type System.Address (since these might not be available
33616         if Address is a non-private type for which the operations
33617         are made abstract).
33618
33619 2004-04-19  Vincent Celier  <celier@gnat.com>
33620
33621         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
33622
33623         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
33624         defaulted to Ada.
33625
33626         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
33627         defaulted to Ada.
33628         Call Check with Process_Languages.
33629         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
33630         with Process_Languages.
33631         (Recursive_Check): New Boolean parameter Process_Languages. Call
33632         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
33633         Process_Languages.
33634
33635         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
33636
33637         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
33638         parameter Ada_Main, defaulted to True.
33639         Check for Ada specific characteristics only when Ada_Main is True.
33640
33641         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
33642
33643         * prj.adb: (Project_Empty): Add new Project_Data components.
33644
33645         * prj.ads: New types and tables for non Ada languages.
33646         (Project_Data): New components Languages, Impl_Suffixes,
33647         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
33648         Include_Path, Include_Data_Set.
33649
33650         * prj-env.ads, prj-env.adb: Minor reformatting
33651
33652         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
33653         Put subprograms in alphabetical order
33654
33655         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
33656         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
33657         Opt.Follow_Links.
33658
33659         * mlib-prj.adb: Back out modification in last version, as they are
33660         incorrect.
33661         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
33662
33663         * make.adb: (Mains): Moved to package Makeutl
33664         (Linker_Opts): Moved to package Makeutl
33665         (Is_External_Assignment): Moved to package Makeutl
33666         (Test_If_Relative_Path): Moved to package Makeutl
33667         (Gnatmake): Move sorting of linker options to function
33668         Makeutl.Linker_Options_Switches.
33669
33670         * makeutl.ads, makeutl.adb: New files.
33671
33672         * Makefile.in: Add makeutl.o to the object files for gnatmake
33673
33674         * makeusg.adb: Add line for new switch -eL.
33675
33676         * gnatls.adb (Image): New function.
33677         (Output_Unit): If in verbose mode, output the list of restrictions
33678         specified by pragmas Restrictions.
33679
33680         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
33681         Text_IO.
33682
33683         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
33684         needed, to put it in the range 1970 (included) - 2026 (excluded).
33685         (Time_Of): Do not shift Unix_Min_Year (1970).
33686         Shift the date by multiple of 56 years, if needed, to put it in the
33687         range 1970 (included) - 2026 (excluded).
33688
33689         * adaint.h, adaint.c (__gnat_set_executable): New function.
33690
33691 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33692
33693         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
33694         and pop GC context.
33695         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
33696         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
33697         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
33698         (tree_transform, case N_Code_Statement): Likewise.
33699         (gnat_expand_stmt, case LABEL_STMT): Don't look at
33700         LABEL_STMT_FIRST_IN_EH.
33701         (gnat_expand_stmt, case ASM_STMT): New case.
33702
33703         * utils2.c (build_unary_op): Properly set TREE_READONLY of
33704         UNCONSTRAINED_ARRAY_REF.
33705
33706         * utils.c (poplevel): Temporarily push/pop GC context around inline
33707         function expansion.
33708
33709         * decl.c (maybe_variable): Properly set TREE_READONLY of
33710         UNCONSTRAINED_ARRAY_REF.
33711         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
33712
33713         * ada-tree.def: (ASM_STMT): New.
33714
33715         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
33716         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
33717         ASM_STMT_INPUT): New.
33718         (ASM_STMT_CLOBBER): Likewise.
33719
33720 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
33721
33722         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
33723         general rcheck mechanism to raise Program_Error for E.4(18), instead
33724         of a custom raiser in System.Partition_Interface.
33725         Part of general cleanup work before PolyORB integration.
33726
33727         * snames.ads, snames.adb: Add new runtime library entities and names
33728         for PolyORB DSA.
33729
33730         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33731         exp_dist.
33732         (Build_Subprogram_Id): New subprogram provided by exp_dist
33733         Code reorganisation in preparation for PolyORB integration.
33734
33735         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33736         exp_dist.
33737         (Build_Subprogram_Id): New subprogram provided by exp_dist
33738
33739         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
33740         actual parameter types for call to dereference of an
33741         access-to-subprogram type.
33742
33743         * rtsfind.ads: Add new runtime library entities and names for PolyORB
33744         DSA.
33745
33746         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
33747         instead, which has the same behaviour here since we never pass it a
33748         NULL pointer.
33749
33750         * link.c (run_path_option, Solaris case): Use -Wl, as for other
33751         platforms.
33752
33753         * Makefile.in: adjust object file lists for gnatlink and gnatmake
33754         to account for new dependency upon Interfaces.C.Strings + link.o
33755         For x86 FreeBSD, use 86numaux.
33756
33757         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
33758         from Mlib.Tgt to Mlib.
33759
33760         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
33761         target-independent.
33762
33763         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
33764         target-specific versions of this subprogram, now implemented as a
33765         target-independent function in Mlib.
33766
33767         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
33768         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
33769         (Linker_Library_Path_Option): Remove target-specific versions of this
33770         subprogram, now implemented as a target-independent function in Mlib.
33771
33772         * atree.adb: (Allocate_Initialize_Node): New subprogram.
33773         Factors out node table slots allocation.
33774         (Fix_Parents): New subprogram.
33775         Encapsulate the pattern of fixing up parent pointers for syntactic
33776         children of a rewritten node.
33777         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
33778         (Rewrite): Use New_Copy when creating saved copy of original node.
33779         (Replace): Use Copy_Node to copy nodes.
33780
33781 2004-04-19  Javier Miranda  <miranda@gnat.com>
33782
33783         * sprint.adb (Sprint_Node_Actual): Give support to the new
33784         Access_To_Subprogram node available in Access_Definition nodes. In
33785         addition, give support to the AI-231 node fields: null-exclusion,
33786         all-present, constant-present.
33787
33788         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
33789
33790         * sinfo.ads, sinfo.adb:
33791         New field Access_To_Subprogram_Definition in Access_Definition nodes
33792
33793         * sem_ch6.adb (Process_Formals): Move here the code that creates and
33794         decorates internal subtype declaration corresponding to the
33795         null-excluding formal. This code was previously in Set_Actual_Subtypes.
33796         In addition, carry out some code cleanup on this code. In case of
33797         access to protected subprogram call
33798         Replace_Anonymous_Access_To_Protected_Subprogram.
33799         (Set_Actual_Subtypes): Code cleanup.
33800
33801         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
33802         Find_Type in case of anonymous access renamings. Add warning in case of
33803         null-excluding attribute used in anonymous access renaming.
33804
33805         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33806         subprogram
33807
33808         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
33809         subprogram.
33810         (Access_Definition): In case of anonymous access to subprograms call
33811         the corresponding semantic routine to decorate the node.
33812         (Access_Subprogram_Declaration): Addition of some comments indicating
33813         some code that probably should be added here. Detected by comparison
33814         with the access_definition subprogram.
33815         (Analyze_Component_Declaration): In case of access to protected
33816         subprogram call Replace_Anonymous_Access_To_Protected.
33817         (Array_Type_Declaration): In case of access to protected subprogram call
33818         Replace_Anonymous_Access_To_Protected_Subprogram.
33819         (Process_Discriminants): In case of access to protected subprogram call
33820         Replace_Anonymous_Access_To_Protected_Subprogram.
33821
33822         * par.adb (P_Access_Definition): New formal that indicates if the
33823         null-exclusion part was present.
33824         (P_Access_Type_Definition): New formal that indicates if the caller has
33825         already parsed the null-excluding part.
33826
33827         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
33828         (P_Identifier_Declarations): Code cleanup and give support to renamings
33829         of anonymous access to subprogram types.
33830         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
33831         (P_Array_Type_Definition): Give support to AI-254.
33832         (P_Component_Items): Give support to AI-254.
33833         (P_Access_Definition): New formal that indicates if the header was
33834         already parsed by the caller.
33835         (P_Access_Type_Definition): New formal that indicates if the caller has
33836         already parsed the null-excluding part.
33837
33838         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
33839         call to P_Access_Definition.
33840
33841 2004-04-19  Geert Bosch  <bosch@gnat.com>
33842
33843         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
33844         the delicate semantics of floating-point to integer conversion.
33845         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
33846
33847         * eval_fat.adb (Machine_Mantissa): Moved to spec.
33848         (Machine_Radix): New function.
33849
33850         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
33851         conversion checks.
33852         (Machine_Radix): New function also for use in conversion checks.
33853
33854 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
33855
33856         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
33857
33858         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
33859         to decorate the access-to-protected subprogram and the equivalent type.
33860
33861         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
33862         to anonymous access to subprogram types.
33863
33864         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
33865         constant-folding, for legality checks in contexts that require an RM
33866         static expression.
33867
33868         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
33869         temporary but stack checking is not enabled, increment serial number
33870         to so that symbol generation is consistent with and without stack
33871         checking.
33872
33873         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
33874         independent on whether stack checking is enabled, caller must check
33875         the corresponding flag.
33876
33877         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
33878         range checks.
33879         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
33880         parent if it has discriminants.
33881         (Build_Derived_Private_Type): Constructed full view does
33882         not come from source.
33883         (Process_Discriminants): Default discriminants on a tagged type are
33884         legal if this is the internal completion of a private untagged
33885         derivation.
33886
33887         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
33888         no constraint checks, because it corresponds to an existing object.
33889
33890         * sem_prag.adb (Process_Convention): Pragma applies
33891         only to subprograms in the same declarative part, i.e. the same unit,
33892         not the same scope.
33893
33894         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
33895         ignore type mismatch on a numeric conversion if expression comes from
33896         expansion.
33897
33898 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
33899
33900         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
33901         Homonym_Number parameter, add processing for Source_Location parameter
33902         corresponding.
33903         (Check_Eliminated): Remove the check for homonym numbers, add the check
33904         for source location traces.
33905
33906         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
33907         with Arg_Source_Location corresponding to the changes in the format of
33908         the pragma.
33909
33910         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
33911         Eliminate pragma corresponding to the changes in the format of the
33912         pragma: Homonym_Number is replaced with Source_Location, two ways of
33913         distinguishing homonyms are mutially-exclusive.
33914
33915 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
33916
33917         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
33918
33919         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
33920         No_Dollar_In_Label, no longer necessary, as it is always True.
33921         (Strip_Suffixes): Likewise.
33922
33923 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
33924
33925         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
33926         modulus for compatibility with size clause on targets with 16-bit
33927         Integer.
33928
33929         * layout.adb (Discrimify): In the case of private types, set Vtyp to
33930         full type to fix type mismatches on calls to size functions for
33931         discriminant-dependent array components.
33932
33933 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
33934
33935         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
33936         lib.
33937
33938 2004-04-19  Pascal Obry  <obry@gnat.com>
33939
33940         * mdll-utl.adb (Locate): New version is idempotent.
33941
33942 2004-04-17  Laurent Guerby  <laurent@guerby.net>
33943
33944         PR ada/14988 (partial)
33945         * impunit.adb: Fix typo.
33946
33947 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
33948
33949         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
33950         and install-rts-cert targets.  Remove all gnatlib and gnattools
33951         targets and all other rts-* targets (moved to libada).  Remove (now)
33952         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
33953         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
33954
33955 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33956
33957         * trans.c (tree_transform): Shortcut returning error_mark_node for
33958         statements in annotate_only_mode.
33959         (tree_transform, case N_Label, case N_Return_Statement,
33960         N_Goto_Statement): Make statement tree instead of generating code.
33961         (tree_transform, case N_Assignment_Statement): No longer check
33962         type_annotate_only.
33963         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
33964         RETURN_STMT): New.
33965         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
33966         New fcns.
33967         (gnat_to_gnu): Collect any RTL generated and deal with it.
33968         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
33969         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
33970         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
33971
33972         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
33973
33974         * ada-tree.def (EXPR_STMT): Fix typo in name.
33975         (BLOCK_STMT, IF_STMT): New nodes.
33976
33977         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
33978         LABEL_STMT_FIRST_IN_EH): New macros.
33979         (RETURN_STMT_EXPR): Likewise.
33980
33981         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
33982         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
33983
33984 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
33985
33986         * atree.ads: Correct documentation on extended nodes.
33987
33988         * link.c: Set run_path_option for FreeBSD.
33989
33990 2004-04-08  Vincent Celier  <celier@gnat.com>
33991
33992         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
33993         one of the ALI file, do not link with DEC lib.
33994
33995         * par.adb Remove the last two characters ("%s" or "%b") when checking
33996         if a language defined unit may be recompiled.
33997
33998 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
33999
34000         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34001         removal of abstract operation leaves no possible interpretation for
34002         expression.
34003
34004         * sem_eval.adb (Eval_Qualified_Expression): Use
34005         Set_Raises_Constraint_Error on node when needed, so that it does not
34006         get optimized away by subsequent optimizations.
34007
34008         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34009         operands even when they are not wrapped in a type conversion.
34010
34011 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
34012
34013         * sem_prag.adb (Set_Exported): Warn about making static as result of
34014         export only when the export is coming from source. This may be not
34015         be true e.g. on VMS where we expand export pragmas for exception codes
34016         together with imported or exported exceptions, and we don't want the
34017         user to be warned about something he didn't write.
34018
34019 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
34020
34021         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34022         duplication between normal entities and those declared as renamings.
34023         No functional change.
34024
34025         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34026         inline functions returning an unconstrained result.
34027
34028 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
34029
34030         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34031         conform to what other front-ends do.
34032
34033 2004-04-08  Doug Rupp  <rupp@gnat.com>
34034
34035         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34036         libraries.
34037
34038 2004-04-06  Pascal Obry  <obry@gnat.com>
34039
34040         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34041
34042         * osint.adb (Program_Name): Do not look past a directory separator.
34043
34044 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
34045
34046         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34047
34048         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34049         requirement for preserving a copy of the original assignment node.
34050
34051         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34052
34053 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
34054
34055         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34056         when supported.
34057
34058 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
34059
34060         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34061         operator calls in functional notation, and apply
34062         Universal_Interpretation to operands, not to their type.
34063
34064 2004-04-06  Robert Dewar  <dewar@gnat.com>
34065
34066         * 5wdirval.adb: Minor reformatting
34067
34068 2004-04-06  Ed Falis  <falis@gnat.com>
34069
34070         * gnat_rm.texi: Improve a reference to the GCC manual
34071
34072 2004-04-05  Vincent Celier  <celier@gnat.com>
34073
34074         * adaint.h, adaint.c: Add function __gnat_named_file_length
34075
34076         * impunit.adb: Add Ada.Directories to the list
34077
34078         * Makefile.in: Add VMS and Windows versions of
34079         Ada.Directories.Validity package body.
34080
34081         * Makefile.rtl: Add a-direct and a-dirval
34082
34083         * mlib-tgt.ads: Minor comment update.
34084
34085         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34086         a-direct.ads, a-direct.adb: New files.
34087
34088 2004-04-05  Vincent Celier  <celier@gnat.com>
34089
34090         PR ada/13620
34091         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
34092         just to the compiler.
34093
34094 2004-04-05  Robert Dewar  <dewar@gnat.com>
34095
34096         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
34097         returned string is 1.
34098
34099         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
34100
34101         * eval_fat.ads: Minor reformatting
34102
34103         * g-curexc.ads: Document that lower bound of returned string values
34104         is always one.
34105
34106         * gnatlink.adb: Add ??? comment for previous change
34107         (need to document why this is VMS specific)
34108
34109         * s-stoele.ads: Minor reformatting
34110
34111         * tbuild.ads: Minor reformatting throughout (new function specs)
34112
34113         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
34114         after WITH.
34115
34116         * scng.adb: Minor reformatting
34117
34118 2004-04-05  Geert Bosch  <bosch@gnat.com>
34119
34120         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
34121         (Leading_Part): Still perform truncation to machine number if the
34122         specified radix_digits is greater or equal to machine_mantissa.
34123
34124 2004-04-05  Javier Miranda  <miranda@gnat.com>
34125
34126         * par-ch3.adb: Complete documentation of previous change
34127         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
34128         (aliased must appear before constant).
34129
34130         * par-ch4.adb: Complete documentation of previous change.
34131
34132         * par-ch6.adb: Complete documentation of previous change.
34133
34134         * sinfo.ads: Fix typo in commment.
34135
34136 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
34137
34138         * sem_ch3.adb (Inherit_Components): If derived type is private and has
34139         stored discriminants, use its discriminants to constrain parent type,
34140         as is done for non-private derived record types.
34141
34142         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
34143         Ada 2005 AI-310: an abstract non-dispatching operation is not a
34144         candidate interpretation in an overloaded call.
34145
34146         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
34147         expression is Null and target type is not an access type (e.g. a
34148         non-private address type).
34149
34150 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
34151
34152         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
34153         statement whose right-hand side is an inlined call, save a copy of the
34154         original assignment subtree to preserve enough consistency for
34155         Analyze_Assignment to proceed.
34156
34157         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
34158         complete assignment subtree which is now unnecessary, as the expansion
34159         of inlined call has been improved to preserve a consistent assignment
34160         tree.  Note_Possible_Modification must be called only
34161         after checks have been applied, or else unnecessary checks will
34162         be generated.
34163
34164         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
34165         of explicit dereferences that do not Come_From_Source:
34166          - be selective on cases where we must go back to the dereferenced
34167            pointer (an assignment to an implicit dereference must not be
34168            recorded as modifying the pointer);
34169          - do not rely on Original_Node being present (Analyze_Assignment
34170            calls Note_Possible_Modification on a copied tree).
34171
34172         * sem_warn.adb (Check_References): When an unset reference to a pointer
34173         that is never assigned is encountered, prefer '<pointer> may be null'
34174         warning over '<pointer> is never assigned a value'.
34175
34176 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
34177
34178         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
34179         the ABI.
34180
34181 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
34182
34183         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
34184         libexc. We currently don't reference anything in this library and
34185         linking it in triggers linker warnings we don't want to see.
34186
34187         * init.c: Update comments.
34188
34189 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34190
34191         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
34192         * utils.c (create_field_decl): Likewise.
34193         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
34194
34195 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
34196
34197         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
34198         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
34199         Add info directory entry and category.
34200
34201 2004-04-02  Jan Hubicka  <jh@suse.cz>
34202
34203         * utils.c: Include function.h
34204         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
34205
34206 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
34207
34208         PR ada/14150
34209         * Make-lang.in: Clean up generation of documentation
34210
34211         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
34212
34213         * xgnatug.adb: Removed, replaced by xgnatugn.adb
34214
34215         * xgnatugn.adb: Replaces xgnatug.adb
34216
34217         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
34218
34219         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
34220
34221         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34222         gnat_ug_wnt.texi: Removed.
34223
34224 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
34225
34226         * utils2.c: Update copyright notice.
34227
34228 2004-04-01  Robert Dewar  <dewar@gnat.com>
34229
34230         * checks.adb: Minor reformatting throughout
34231         Note that prev checkin added RM reference to alignment warning
34232
34233 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
34234
34235         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
34236         non-static when building aggregate for bit-packed array.
34237
34238         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
34239         function call that is itself the actual in a procedure call, build
34240         temporary for it.
34241
34242         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
34243         a string literal, create a temporary for it, constant folding only
34244         handles scalars here.
34245
34246 2004-04-01  Vincent Celier  <celier@gnat.com>
34247
34248         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
34249         Error_Msg_SP): New empty procedures to instantiate the Scanner.
34250         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
34251         tokens.
34252         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
34253         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
34254         and get the checksum.
34255
34256         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
34257         already in the Q.
34258         Increase the Marking_Label at the end of the Multiple_Main_Loop,
34259         instead of at the beginning.
34260
34261         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
34262         directly.
34263         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
34264         on VMS.
34265
34266         * osint.ads (Multi_Unit_Index_Character): New Character global variable
34267
34268         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
34269         not '~' directly.
34270
34271         * par.adb: Remove test on file name to detect language defined units.
34272         Add test on unit name, after parsing, to detect language defined units
34273         that are not compiled with -gnatg (except System.RPC and its children)
34274
34275         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
34276         following units without style checking.
34277
34278         * switch-c.adb: Change -gnatC to -gnateI
34279
34280         * usage.adb: Document new switch -gnateInnn
34281
34282         * scng.adb (Accumulate_Token_Checksum): New procedure
34283         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
34284         word or literal number.
34285         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
34286         numbers.
34287
34288 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
34289
34290         * a-tasatt.adb,
34291         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
34292         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
34293         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
34294         5vtpopde.adb: Add missing 'constant' keywords.
34295
34296 2004-04-01  Javier Miranda  <miranda@gnat.com>
34297
34298         * par-ch4.adb: (P_Allocator): Code cleanup
34299
34300         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
34301         attribute.
34302
34303         * sinfo.ads: Complete documentation of previous change
34304
34305 2004-04-01  Pascal Obry  <obry@gnat.com>
34306
34307         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
34308         only on VMS.  This special handling was done because an old GNU/ld bug
34309         on Windows which has been fixed.
34310
34311 2004-04-01  GNAT Script  <nobody@gnat.com>
34312
34313         * Make-lang.in: Makefile automatically updated
34314
34315 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34316
34317         * decl.c (gnat_to_gnu_entity, make_type_from_size):
34318         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
34319         * trans.c (tree_transform, convert_with_check): Likewise.
34320         * utils.c (gnat_signed_or_unsigned_type): Likewise.
34321         (build_vms_descriptor, unchecked_convert): Likewise.
34322         * utils2.c (nonbinary_modular_operation): Likewise.
34323
34324 2004-03-29  Javier Miranda  <miranda@gnat.com>
34325
34326         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
34327         (Install_Null_Excluding_Check): Local subprogram that determines whether
34328         an access node requires a runtime access check and if so inserts the
34329         appropriate run-time check.
34330         (Apply_Access_Check): Call Install_Null_Excluding check if required
34331         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
34332
34333         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
34334
34335         * einfo.ads: Fix typo in comment
34336
34337         * exp_ch3.adb (Build_Assignment): Generate conversion to the
34338         null-excluding type to force the corresponding run-time check.
34339         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
34340         type to force the corresponding run-time check.
34341
34342         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
34343         the null-excluding type to force the corresponding run-time check.
34344
34345         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
34346         case of access types unless they have the null-excluding attribute.
34347
34348         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
34349         part.
34350
34351         * exp_util.ads: Fix typo in comment
34352
34353         * par.adb (P_Null_Exclusion): New subprogram
34354         (P_Subtype_Indication): New formal that indicates if the null-excluding
34355         part has been scanned-out and it was present
34356
34357         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
34358
34359         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
34360         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
34361         type to force the corresponding run-time check
34362         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
34363         components
34364         (Resolve_Array_Aggregate): Carry out some static checks
34365         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
34366
34367         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
34368         attribute must be set only if specified by means of the null-excluding
34369         part. In addition, we must also propagate the access-constant attribute
34370         if present.
34371         (Access_Subprogram_Declaration, Access_Type_Declaration,
34372         Analyze_Component_Declaration, Analyze_Object_Declaration,
34373         Array_Type_Declaration, Process_Discriminants,
34374         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
34375         and carry out some static checks.
34376         (Build_Derived_Access_Type): Set the null-excluding attribute
34377         (Derived_Type_Declaration, Process_Subtype): Carry out some static
34378         checks.
34379
34380         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
34381
34382         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
34383
34384         * sem_ch6.adb (Process_Formals): Carry out some static checks.
34385         (Set_Actual_Subtypes): Generate null-excluding subtype if the
34386         null-excluding part was present; it is not required to be done here in
34387         case of anonymous access types.
34388         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
34389         value.
34390
34391         * sem_res.adb (Resolve_Actuals): Carry out some static check
34392         (Resolve_Null): Allow null in anonymous access
34393
34394         * sinfo.adb: New subprogram Null_Exclusion_Present
34395         All_Present and Constant_Present available on access_definition nodes
34396
34397         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
34398         object_declaration, derived_type_definition, component_definition,
34399         discriminant_specification, access_to_object_definition,
34400         access_function_definition, allocator, access_procedure_definition,
34401         access_definition, parameter_specification, All_Present and
34402         Constant_Present flags available on access_definition nodes.
34403
34404 2004-03-29  Robert Dewar  <dewar@gnat.com>
34405
34406         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
34407         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
34408         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
34409         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
34410         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
34411         sem_prag.adb: Updates to handle multiple units/file
34412
34413         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
34414
34415         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
34416         sem_util.adb: Minor reformatting
34417
34418         * sem_ch12.adb: Add comment for previous change
34419
34420 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
34421
34422         * osint.adb (Executable_Prefix): Set Exec_Name to the current
34423         executable name when not initialized. Otherwise, use its current value.
34424
34425         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
34426         initialize it to another executable name than the current one. This
34427         allows to configure paths for an executable name (gnatmake) different
34428         from the current one (gnatdist).
34429
34430 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
34431
34432         * exp_ch6.adb (Expand_Call): A call to a function declared in the
34433         current unit cannot be inlined if it appears in the body of a withed
34434         unit, to avoid order of elaboration problems in gigi.
34435
34436         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
34437         information for protected (wrapper) operation as well, to simplify gdb
34438         use.
34439
34440         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
34441         protected body, indicate that the entity for the generated spec comes
34442         from source, to ensure that references are properly generated for it.
34443         (Build_Body_To_Inline): Do not inline a function that returns a
34444         controlled type.
34445
34446         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
34447         apply convention to homonyms that are declared explicitly.
34448
34449         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
34450         that renames an equality operator and the operands are overloaded,
34451         resolve them with the declared formal types, before rewriting as an
34452         operator.
34453
34454 2004-03-29  GNAT Script  <nobody@gnat.com>
34455
34456         * Make-lang.in: Makefile automatically updated
34457
34458 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
34459
34460         * memtrack.adb: Log realloc calls, which are treated as free followed
34461         by alloc.
34462
34463 2004-03-25  Vincent Celier  <celier@gnat.com>
34464
34465         * prj-makr.adb (Process_Directories): Detect when a file contains
34466         several units. Do not include such files in the config pragmas or
34467         in the naming scheme.
34468
34469         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
34470         Resolve links only when not in Trusted_Mode.
34471         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
34472         Do not resolve links for the display names.
34473
34474         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
34475         resolve links when computing the display names.
34476
34477 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
34478
34479         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
34480         attribute reference does not denote a subtype, it can be any
34481         expression that has a classwide type, potentially after an implicit
34482         dereference.  In particular, the prefix can be a view conversion for
34483         a classwide type (for which Is_Object_Reference holds), but it can
34484         also be a value conversion for an access-to-classwide type. In the
34485         latter case, there is an implicit dereference, and the original node
34486         for the prefix does not verify Is_Object_Reference.
34487
34488         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
34489         conversion of a discriminant-dependent component of a mutable object
34490         is one itself.
34491
34492 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
34493
34494         * freeze.adb (Freeze_Entity): When an inherited subprogram is
34495         inherited, has convention C, and has unconstrained array parameters,
34496         place the corresponding warning on the derived type declaration rather
34497         than the original subprogram.
34498
34499         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
34500         indication on renaming declaration, if formal has a box and actual
34501         is absent.
34502
34503         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
34504         determine whether to generate an implicit or explicit reference to
34505         the renamed entity.
34506
34507         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
34508         subprogram renaming comes from a defaulted formal subprogram in an
34509         instance.
34510
34511 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
34512
34513         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
34514         value expressions to ensure that calls within a component definition
34515         will be checked (since those are evaluated during the record type's
34516         elaboration).
34517
34518 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
34519
34520         * s-tpobop.adb: Code clean up:
34521         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
34522         code.
34523         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
34524
34525 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
34526
34527         * Makefile.in: Clean up in the ravenscar run time.
34528
34529 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34530
34531         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
34532         of No_Strict_Aliasing to build_pointer_type_for_mode.
34533         * utils.c (update_pointer_to): Walk pointer and ref chains.
34534
34535 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
34536
34537         * ali.ads: Fix Comment about Dynamic_Elab.
34538
34539         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
34540         Has_RACW, Is_Generic, etc.)
34541         (Output_Object, Gnatls): Take into account ALI files not attached to
34542         an object.
34543
34544 2004-03-22  Vincent Celier  <celier@gnat.com>
34545
34546         * gprep.adb: Change all String_Access to Name_Id
34547         (Is_ASCII_Letter): new function
34548         (Double_File_Name_Buffer): New procedure
34549         (Preprocess_Infile_Name): New procedure
34550         (Process_Files): New procedure
34551         (Gnatprep): Check if output and input are existing directories.
34552         Call Process_Files to do the real job.
34553
34554 2004-03-22  Robert Dewar  <dewar@gnat.com>
34555
34556         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
34557         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
34558
34559 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
34560
34561         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
34562         case when the source contains only comments.
34563
34564 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
34565
34566         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
34567         declaration for a child subprogram body that acts as a spec, indicate
34568         that the entity in the declaration needs debugging information.
34569
34570         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
34571         full view if the subtype is created for a constrained record component;
34572         gigi has enough information to construct the record, and there is no
34573         place in the tree for the declaration.
34574
34575         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
34576         serial number for the dummy body that is built for analysis, to avoid
34577         inconsistencies in the generation of internal names when compiling
34578         with -gnatN.
34579
34580 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
34581
34582         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
34583         object.
34584
34585 2004-03-22  GNAT Script  <nobody@gnat.com>
34586
34587         * Make-lang.in: Makefile automatically updated
34588
34589 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34590
34591         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34592         * trans.c (tree_transform, emit_index_check): Likewise.
34593         * utils.c (build_template): Likewise.
34594         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
34595         (maybe_unconstrained_array, unchecked_convert): Likewise.
34596         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
34597         (build_unary_op): Likewise.
34598         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34599         (fill_vms_descriptor): Likewise.
34600         (build_call_alloc_dealloc): Likewise.
34601         ALIGN is unsigned.
34602         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
34603
34604 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
34605
34606         PR other/14630
34607         * gnat_ug.texi: Add info directory category and entry.
34608         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34609         gnat_ug_wnt.texi: Regenerate.
34610
34611 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
34612
34613         * ada-tree.h: Update copyright notice.
34614         Minor reformatting.
34615
34616 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
34617
34618         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
34619         as regular exception objects and not as mere integers representing the
34620         condition code.  The latter approach required some dynamics to mask off
34621         severity bits, which did not fit well into the GCC table based model.
34622         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
34623         exception data objects. We don't it and it would conflict with the other
34624         external symbol we have to generate for such exceptions.
34625
34626         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
34627         the special code for VMS exceptions, since these are now represented
34628         as regular exceptions objects.
34629
34630 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34631
34632         * decl.c (debug_no_type_hash): Remove.
34633         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
34634         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
34635
34636 2004-03-19  Laurent Guerby  <laurent@guerby.net>
34637
34638         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
34639         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
34640
34641 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34642
34643         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
34644         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
34645         (TYPE_RM_SIZE_INT): Directly use type.values.
34646         (TREE_LOOP_ID): Clean up check.
34647         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
34648         TYPE_VALUES, not TYPE_FIELDS.
34649         * trans.c (convert_with_check): Delay access of bounds of basetype
34650         until sure is numeric.
34651
34652 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
34653
34654         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
34655
34656         Code clean up:
34657         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
34658         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
34659         Specific.Set instead of direct call to e.g pthread_setspecific.
34660
34661 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
34662
34663         * adaint.c: Update comments.
34664
34665         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
34666         GNATLIB_SHARED for FreeBSD.
34667
34668 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
34669
34670         * init.c [VxWorks]: Do not fix the stack size for the environment task.
34671         When needed (stack checking) the stack size is retrieved
34672         from the VxWorks kernel.
34673
34674         * Makefile.in: Flag -nostdinc is required when building the run time
34675         for avoiding looking for files in the base compiler.
34676         Add the VxWorks specific version of the package body for
34677         System.Stack_checking.Operations (5zstchop.adb).
34678
34679         * Make-lang.in: Add the object file for
34680         System.Stack_Checking.Operations.
34681
34682         * Makefile.rtl: Add object file for the package
34683         System.Stack_Checking.Operations.
34684
34685         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
34686
34687         * s-stache.ads, s-stache.adb: Move the operations related to stack
34688         checking from this package to package System.Stack_Checking.Operations.
34689         This way, stack checking operations are only linked in the final
34690         executable when using the -fstack-check flag.
34691
34692 2004-03-18  Doug Rupp  <rupp@gnat.com>
34693
34694         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
34695         Reorganize ifeq's.
34696
34697         * 5qsystem.ads, 5xcrtl.ads: New files.
34698
34699 2004-03-18  Vincent Celier  <celier@gnat.com>
34700
34701         * prj.adb (Reset): Reset hash table Files_Htable
34702
34703         * prj-env.adb (Source_Paths, Object_Paths): New tables.
34704         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
34705         the procedures Add_To_Path_File.
34706         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
34707         making sure that each directory is present only once and, for object
34708         dirs, when a directory already present is added, the duplicate is
34709         removed and the directory is always put as the last in the table.
34710         Write the path files at the end of these accumulations.
34711
34712         * prj-nmsc.adb (Record_Source): Add source file name in hash table
34713         Files_Htable for all sources.
34714
34715         * prj-proc.adb (Process): Remove restrictions between not directly
34716         related extending projects.
34717
34718 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
34719
34720         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
34721         (Find_Sources): Minor speed optimization.
34722
34723         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
34724         parameter Trusted_Mode.
34725
34726 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
34727
34728         * scn.adb (Determine_License): Take into account a degenerated case
34729         when the source contains only comments.
34730
34731 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
34732
34733         * sem_warn.adb (Check_References): For a warning on a selected
34734         component that does not come from source, locate an uninitialized
34735         component of the record type to produce a more precise error message.
34736
34737 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
34738
34739         * 3zsoccon.ads: Fix multicast options.
34740
34741         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
34742         in the spec.
34743
34744 2004-03-15  Robert Dewar  <dewar@gnat.com>
34745
34746         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
34747         pragma used for a private type.
34748
34749         * lib-xref.adb (Generate_Reference): Do not generate warning if
34750         reference is in a different unit from the pragma Unreferenced.
34751
34752         * 5vtpopde.adb: Minor reformatting
34753         Fix casing of To_Task_ID
34754
34755         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
34756         flag if we have an unchecked conversion to an access type in the same
34757         unit.
34758
34759 2004-03-15  Geert Bosch  <bosch@gnat.com>
34760
34761         * a-ngcoty.adb (Modulus): In alternate formula for large real or
34762         imaginary parts, use Double precision throughout.
34763
34764         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
34765         we want to be able to compile run-time with -gnata for testing, but
34766         this may also be instantiated in user code that is compiled with -gnata.
34767
34768 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
34769
34770         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
34771         codes. Having a separate type for this is useful to enforce consistency
34772         throughout the various run-time units.
34773         (Exception_Data): Use Exception_Code for Import_Code.
34774
34775         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
34776         Natural and Integer in various places.
34777         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
34778         with the severity bits masked off.
34779         (Register_VMS_Exception): Handle the additional exception data pointer
34780         argument.
34781
34782         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
34783         component, now reflected by an exported accessor.
34784         (is_handled_by): New routine to compute whether the propagated
34785         occurrence matches some handler choice specification. Extracted out of
34786         get_action_description_for, and expanded to take care of the VMS
34787         specifities.
34788         (get_action_description_for): Use is_handled_by instead of an explicit
34789         complex condition to decide if the current choice at hand catches the
34790         propagated occurrence.
34791
34792         * raise.h (Exception_Code): New type for C.
34793
34794         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
34795         System.Standard_Library.Exception_Code, to allow references from the
34796         pragma import/export expander.
34797
34798         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
34799         New accessors to allow easy access to GNAT exception data
34800         characteristics.
34801         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
34802         redundant Handled_By_Others component, helper for the personality
34803         routine which will now be able to call the appropriate exception data
34804         accessor instead.
34805
34806         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
34807         component of Standard_Exception_Type to be the closest possible to
34808         Exception_Code in System.Standard_Library, that we cannot get at this
34809         point. Expand a ??? comment to notify that this type node should
34810         probably be rewritten later on.
34811
34812         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
34813         registration call to include a pointer to the exception object in the
34814         arguments.
34815
34816         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
34817         instead of int and explicit bitmasks.
34818
34819 2004-03-15  Vincent Celier  <celier@gnat.com>
34820
34821         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
34822         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
34823
34824         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
34825         longer needed now that it is in the spec of
34826         System.Tasking.Task_Attributes.
34827
34828         * adaint.h, adaint.c: (__gnat_create_output_file): New function
34829
34830         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
34831
34832         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
34833
34834         * make.adb (Gnatmake): Do not check the executable suffix; it is being
34835         taken care of in Scan_Make_Arg.
34836         (Scan_Make_Arg): Add the executable suffix only if the argument
34837         following -o, in canonical case, does not end with the executable
34838         suffix.  When in verbose mode and executable file name does not end
34839         with executable suffix, output the executable name, in canonical case.
34840
34841         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
34842         to avoid warnings when instantiating Ada.Task_Attributes.
34843         Minor reformating.
34844
34845         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
34846         in the correct order.
34847
34848         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
34849         redirect standard output and error to a file for the invocation of the
34850         compiler, then read the file.
34851
34852         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
34853         directory, instead of the Value.
34854         (Find_Source_Dirs): Remove useless code & comments.
34855
34856 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
34857
34858         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
34859         tagged type is inherited, and the parent operation is not frozen yet,
34860         force generation of a freeze node for the inherited operation, so the
34861         corresponding dispatch entry is properly initialized.
34862         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
34863         when looking for user-defined equality operation.
34864
34865         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
34866         boolean when locating primitive equality of tagged component.
34867
34868         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
34869         bit-aligned field and the right-hand side a string literal, introduce
34870         a temporary before expanding assignment into a loop.
34871
34872         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
34873         priority in full, to ensure that any expanded subepxressions of it are
34874         elaborated in the scope of the init_proc.
34875
34876         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
34877         after object declaration, skipping over code that may have been
34878         generated for validity checks.
34879
34880         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
34881         discriminants, ignore the known discriminants of its full view, if
34882         any, to check legality.
34883
34884         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
34885         component if type has unknown discriminants.
34886         (Analyze_Private_Extension_Declaration): Discriminant constraint is
34887         null if type has unknown discriminants.
34888
34889         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
34890         for end label when present.
34891
34892         * s-fileio.adb (Open): When called with a C_Stream, use given name for
34893         temporary file, rather than an empty string.
34894
34895 2004-03-15  Ed Falis  <falis@gnat.com>
34896
34897         * s-thread.adb: Removed, no longer used.
34898
34899 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34900
34901         * decl.c (target.h): Now include.
34902         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
34903         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
34904         (validate_size): For POINTER_TYPE, get smallest size permitted on
34905         machine.
34906
34907         * fe.h: Sort Einfo decls and add Set_Mechanism.
34908
34909         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
34910         (ada/decl.o): Depends on target.h.
34911
34912         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
34913         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
34914
34915 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
34916
34917         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
34918
34919         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
34920         Insert_Dereference_Action when rewriting an implicit dereference into
34921         an explicit one, this will be taken care of during expansion of the
34922         explicit dereference.
34923         (Expand_N_Slice): Same. Always do the rewriting, even for the case
34924         of non-packed slices, since the dereference action generated by
34925         expansion of the explicit dereference is needed in any case.
34926         (Expand_N_Selected_Component): When rewriting an implicit dereference,
34927         analyze and resolve the rewritten explicit dereference so it is seen
34928         by the expander.
34929         (Insert_Dereference_Action): This procedure is now called only for the
34930         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
34931         dereferences that do not come from source (including explicit
34932         dereferences resulting from rewriting implicit ones), but do not
34933         recursively insert a check for the dereference nodes contained within
34934         the check.
34935         (Insert_Dereference_Action): Clarify and correct comment.
34936
34937 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
34938
34939         PR ada/14131
34940         Move language detection to the top level.
34941         * config-lang.in: Build by default.
34942
34943 2004-03-05  Robert Dewar  <dewar@gnat.com>
34944
34945         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
34946
34947         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
34948         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
34949         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
34950         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
34951         unchecked conversion to spec to avoid warnings.
34952
34953         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
34954         to Task_ID
34955
34956         * 7stpopsp.adb: Correct casing in To_Task_ID call
34957
34958         * a-strsea.ads, a-strsea.adb: Minor reformatting
34959
34960         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
34961
34962         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
34963         Adjust Max_Msg_Length to be clearly large enough.
34964
34965         * fe.h: Define In_Same_Source_Unit
34966
34967         * osint.adb: Add pragma Warnings Off to suppress warnings
34968         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
34969         aliasing warnings.
34970
34971         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
34972
34973         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
34974
34975         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
34976
34977         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
34978
34979         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
34980
34981         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
34982         node. We now do generate them for gcc back end.
34983
34984         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
34985         warning.
34986
34987         * sinput-c.adb: Fix bad name in header.
34988         Add pragma Warnings Off to suppress aliasing warning.
34989
34990         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
34991
34992         * snames.h, snames.ads, snames.adb: Add entry for pragma
34993         No_Strict_Aliasing.
34994
34995 2004-03-05  Vincent Celier  <celier@gnat.com>
34996
34997         * prj-com.ads: Add hash table Files_Htable to check when a file name
34998         is already a source of another project.
34999
35000         * prj-nmsc.adb (Record_Source): Before recording a new source, check
35001         if its file name is not already a source of another project. Report an
35002         error if it is.
35003
35004         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35005         source file name, call gnatpp with all the sources of the main project.
35006
35007         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35008         of file names.
35009
35010         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35011         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35012         /RUNTIME_SYSTEM=, converted to --RTS=
35013         /NOTABS, converted to -notabs
35014
35015 2004-03-05  Pascal Obry  <obry@gnat.com>
35016
35017         * make.adb: Minor reformatting.
35018
35019 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
35020
35021         Part of implemention of AI-262.
35022         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35023
35024         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35025         procedure.
35026
35027         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35028         when component type is a partially constrained class-wide subtype.
35029         (Constrain_Discriminated_Type): If parent type has unknown
35030         discriminants, a constraint is illegal, even if full view has
35031         discriminants.
35032         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35033         with unknown discriminants whose full view is a discriminated record.
35034
35035         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35036         flag, to handle properly derivations of tagged types with unknown
35037         discriminants.
35038         (Analyze_Package_Spec, Analyze_Package_Body): Install
35039         Private_With_Clauses before analyzing private part or body.
35040
35041         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35042         Has_Discriminants can be true for a given type (documentation).
35043
35044 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
35045
35046         * s-restri.ads: Fix license (GPL->GMGPL).
35047
35048         * s-tassta.adb: Minor reformatting.
35049
35050         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35051         by calls to Exit_One_ATC_Level, since additional clean up is performed
35052         by this function.
35053
35054         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35055         by calls to Exit_One_ATC_Level, since additional clean up is performed
35056         by this function.
35057
35058 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35059
35060         * trans.c: Reflect GCC changes to fix bootstrap problem.
35061         Add warning for suspicious aliasing unchecked conversion.
35062
35063 2004-03-05  GNAT Script  <nobody@gnat.com>
35064
35065         * Make-lang.in: Makefile automatically updated
35066
35067 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
35068
35069         * ali.adb (Read_Instantiation_Instance): Do not modify the
35070         current_file_num when reading information about instantiations, since
35071         this corrupts files in later references.
35072
35073 2004-03-02  Vincent Celier  <celier@gnat.com>
35074
35075         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35076         before checking if it is read-only.
35077
35078         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35079         of SRC_DIRS and eliminate duplicates.
35080
35081         * gprcmd.adb: Replace command "path" with command "path_sep" to return
35082         the path separator.
35083         (Usage): Document path_sep
35084
35085         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35086         C++ compiler. No need for a script.
35087         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35088         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35089         subst.
35090
35091         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
35092         where there are Ada sources.
35093         (Set_Ada_Paths): Only add to the include path the source dirs of project
35094         with Ada sources.
35095         (Add_To_Path): Add the Display_Values of the directories, not their
35096         Values.
35097
35098         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
35099         data.
35100
35101         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
35102         is not No_Name.
35103         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
35104         Value is canonicalized.
35105         (Language_Independent_Check): Do not copy Value to Display_Value when
35106         canonicalizing Value.
35107
35108         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
35109         path to find limited with cycles.
35110         (Parse_Single_Project): Use canonical cased path to find the end of a
35111         with cycle.
35112
35113 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
35114
35115         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
35116         and not a child unit.
35117
35118         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
35119         appear in a with_clause.
35120
35121         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
35122         only happen in type_annotate mode, do not try to elaborate it.
35123
35124         * exp_util.adb (Force_Evaluation): If expression is a selected
35125         component on the left of an assignment, use a renaming rather than a
35126         temporary to remove side effects.
35127
35128         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
35129         inlined instance body, which is analyzed before the end of the
35130         enclosing scope.
35131
35132 2004-03-02  Robert Dewar  <dewar@gnat.com>
35133
35134         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
35135         sem_ch4.adb: Use new feature for substitution of keywords in VMS
35136
35137         * errout.ads, errout.adb: Implement new circuit for substitution of
35138         keywords in VMS.
35139
35140         * sem_case.adb (Analyze_Choices): Place message properly when case is
35141         a subtype reference rather than an explicit range.
35142
35143         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
35144
35145 2004-03-02  Doug Rupp  <rupp@gnat.com>
35146
35147         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
35148
35149 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
35150
35151         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
35152
35153 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35154
35155         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
35156         BLKmode bitfield.
35157
35158 2004-02-25  Robert Dewar  <dewar@gnat.com>
35159
35160         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
35161         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
35162         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
35163         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
35164         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
35165         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
35166         the defining instance of the type to avoid aliasing problems.
35167         Fix copyright header.  Fix bad comments in package header.
35168
35169         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
35170
35171 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
35172
35173         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
35174         rewritten as references when aliased through an address clause.
35175
35176         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
35177         whether call can be interpreted as an indirect call to the result of a
35178         parameterless function call returning an access subprogram.
35179
35180 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
35181
35182         Code clean up:
35183         * exp_ch7.adb (Make_Clean): Remove generation of calls to
35184         Unlock[_Entries], since this is now done by Service_Entries directly.
35185
35186         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
35187
35188         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
35189         Requeue_Call for better code readability. Change spec and update calls:
35190         PO_Service_Entries now unlock the PO on exit.
35191         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
35192         PO_Service_Entries.
35193
35194         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
35195
35196         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
35197
35198 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
35199
35200         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
35201         protected subprogram call and analyzing the result of such expanding
35202         in case when the called protected subprogram is eliminated.
35203
35204         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
35205         names.
35206
35207 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
35208
35209         * Makefile.in: Clean ups.
35210
35211 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
35212
35213         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
35214         protected operations if original subprogram is flagged as eliminated.
35215         (Expand_N_Subprogram_Body): For a protected operation, create
35216         discriminals for next operation before checking whether the operation
35217         is eliminated.
35218
35219         * exp_ch9.adb (Expand_N_Protected_Body,
35220         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
35221         for internal protected operations if the original subprogram is
35222         eliminated.
35223
35224         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
35225         declared in a single protected object.
35226
35227 2004-02-23  Vincent Celier  <celier@gnat.com>
35228
35229         * prj-attr.adb: Make attribute Builder'Executable an associative array,
35230         case insensitive if file names are case insensitive, instead of a
35231         standard associative array.
35232
35233         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
35234         them as case insensitive on platforms where the file names are case
35235         sensitive.
35236
35237         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
35238         project file has already been parsed that canonical path are compared.
35239
35240 2004-02-23  Robert Dewar  <dewar@gnat.com>
35241
35242         * sinput-c.ads: Correct bad unit title in header
35243
35244         * freeze.adb: Minor reformatting
35245
35246 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35247
35248         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
35249         nonaddressable COMPONENT_REF that is removing padding that we are
35250         taking the address of, take the address of the padded record instead
35251         if item is variable size.
35252
35253 2004-02-20  Robert Dewar  <dewar@gnat.com>
35254
35255         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
35256
35257 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
35258
35259         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
35260         itype references for the constrained designated type of a component
35261         whose base type is already frozen.
35262
35263 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
35264
35265         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
35266         avoid GCC warnings.
35267
35268 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
35269
35270         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
35271         identifier for a phantom package that rewrites the formal package
35272         declaration with a box. The Add semantic decorations for the defining
35273         identifier from the original node (that represents the formal package).
35274
35275 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
35276
35277         * Make-lang.in (ada/stamp-sdefault): Use the top level
35278         move-if-change.
35279
35280 2004-02-19  Richard Henderson  <rth@redhat.com>
35281
35282         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
35283
35284 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
35285
35286         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
35287         Scan_ALI can be used for multiple ALI files without reinitializing
35288         between calls.
35289
35290 2004-02-18  Robert Dewar  <dewar@gnat.com>
35291
35292         * debug.adb: Minor reformatting.
35293
35294 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35295
35296         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
35297         to zero if there is an address clause.
35298
35299 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
35300
35301         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
35302
35303 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
35304
35305         * layout.adb (Layout_Component_List): Revise generation of call to
35306         discriminant-checking function to pass selections of all of the type's
35307         discriminants rather than just the variant-controlling discriminant.
35308
35309 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
35310
35311         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
35312         fail in the current setup and triggers spurious system error messages.
35313         Pretend it occurred and failed instead.
35314
35315 2004-02-18  Vincent Celier  <celier@gnat.com>
35316
35317         * bld.adb: Mark FLDFLAGS as saved
35318         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
35319         it is not the root project.  Put each directory to be
35320         extended between double quotes to prevent it to be expanded on Windows.
35321         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
35322         the project file. Set them back to their initial values if they have not
35323         been set in the project file.
35324
35325         * gprcmd.adb: (Gprdebug, Debug): New global variables
35326         (Display_Command): New procedure
35327         (Usage): Document new command "linkopts"
35328         Call Display_Command when env var GPRDEBUG has the value "TRUE"
35329         Implement new command "linkopts"
35330         Remove quotes that may be around arguments for "extend"
35331         Always call Normalize_Pathname with arguments formatted for the platform
35332
35333         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
35334         Change @echo to @$(display) in target clean to be able to clean silently
35335
35336         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
35337
35338         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
35339         canonical case.
35340
35341         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
35342         = Extending_All when current project is an extending all project.
35343
35344         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
35345         set to True only for LINK command, after Unix switch -o.
35346         (Process_Arguments): Set Output_File_Expected to True for LINK command
35347         after Unix switch -o. When Output_File_Expected is True, never add an
35348         extension to a file name.
35349
35350         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
35351         option file name, only to the --for-linker= switch.
35352         (Option_File_Name): If option file name do not end with ".opt", append
35353         "/OPTIONS".
35354
35355 2004-02-18  GNAT Script  <nobody@gnat.com>
35356
35357         * Make-lang.in: Makefile automatically updated
35358
35359 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
35360
35361         * Make-lang.in (stamp-sdefault): Do not depend on
35362         move-if-change.
35363
35364 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
35365
35366         * config-lang.in: Disable Ada by default until probe logic for
35367         a bootstrap Ada compiler can be moved to the top level configure
35368         script.
35369
35370 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
35371
35372         * decl.c (components_to_record): Don't claim that the internal fields
35373         we make to hold the variant parts are semantically addressable, because
35374         they are not.
35375
35376         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
35377         adjust the comment describing the modular type form when we can use it.
35378         (Install_PAT): Account for the Esiz renaming.
35379
35380         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
35381         sc_onstack context indication before raising the exception to which
35382         the signal is mapped. Allows better handling of later signals possibly
35383         triggered by the resumed user code if the exception is handled.
35384
35385 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
35386
35387         * 5zinit.adb: Removed, no longer used.
35388
35389 2004-02-12  Robert Dewar  <dewar@gnat.com>
35390
35391         * ali.adb: Remove separating space between parameters on R line. Makes
35392         format consistent with format used by the binder for Set_Globals call.
35393
35394         * atree.ads, atree.adb: Minor reformatting (new function header format)
35395
35396         * bindgen.adb: Add Run-Time Globals documentation section containing
35397         detailed documentation of the globals passed from the binder file to
35398         the run time.
35399
35400         * gnatls.adb: Minor reformatting
35401
35402         * init.c (__gnat_set_globals): Add note pointing to documentation in
35403         bindgen.
35404
35405         * lib-writ.ads, lib-writ.adb: Remove separating space between
35406         parameters on R line.
35407         Makes format consistent with format used by the binder for Set_Globals
35408         call.
35409
35410         * osint.ads: Add 2004 to copyright notice
35411         Minor reformatting
35412
35413         * snames.ads: Correct capitalization of FIFO_Within_Priorities
35414         Noticed during code reading, documentation issue only
35415
35416         * usage.adb: Remove junk line for obsolete C switch
35417         Noticed during code reading
35418
35419 2004-02-12  Vincent Celier  <celier@gnat.com>
35420
35421         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
35422         extend for each directory, so that multiple /** directories are
35423         extended individually.
35424         (Recursive_Process): Set the default for LANGUAGES to ada
35425
35426         * gprcmd.adb: Define new command "ignore", to do nothing.
35427         Implement new comment "path".
35428
35429         * Makefile.generic: Suppress output when SILENT is set
35430         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
35431         used, so that the correct compiler is invoked.
35432         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
35433         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
35434
35435 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
35436
35437         * Makefile.in: Clean ups and remove obsolete targets.
35438
35439 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
35440
35441         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
35442         predicate declared in exp_util.
35443
35444         * exp_util.adb: Add comments.
35445
35446         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
35447         visibility before compiling context of the subunit.
35448
35449         * sem_res.adb (Check_Parameterless_Call): If the context expects a
35450         value but the name is a procedure, do not attempt to analyze as a call,
35451         in order to obtain more telling diagnostics.
35452
35453         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
35454         'Access on parameterless function calls.
35455         (Normalize_Actuals): For a parameterless function call with missing
35456         actuals, defer diagnostic until resolution of enclosing call.
35457
35458         * sem_util.adb (Wrong_Type): If the context type is an access to
35459         subprogram and the expression is a procedure name, suggest a missing
35460         'attribute.
35461
35462 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
35463             Nathanael Nerode  <neroden@gcc.gnu.org>
35464
35465         PR ada/6637
35466         PR ada/5911
35467         Merge with libada-branch:
35468         * config-lang.in: Build libada only when ada is built.
35469
35470 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
35471
35472         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
35473         for a tagged type, verify that both formals have the same type.
35474
35475         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
35476         temporary when the formal is an in-parameter and the actual a possibly
35477         unaligned slice.
35478
35479         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
35480         when expansion is disabled, to ensure proper name capture with
35481         overloaded literals.  Condition can be of any boolean type, resolve
35482         accordingly.
35483
35484         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
35485         renaming is for a formal subprogram with a default operator name, and
35486         there is a usable operator that is visible at the point of
35487         instantiation.
35488
35489 2004-02-09  Robert Dewar  <dewar@gnat.com>
35490
35491         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
35492         rewrite to ignore errors in ali files, intended to allow tools downward
35493         compatibility with new versions of ali files.
35494
35495         * ali.ads: Add new parameter Ignore_Errors
35496
35497         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
35498         duplicating the error message giving the file with restrictions.
35499
35500         * debug.adb: Add debug flag I for gnatbind
35501
35502         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
35503         operators for the case where the operator is a defining operator.
35504
35505         * exp_ch3.adb: Minor reformatting (new function spec format).
35506
35507         * exp_ch4.adb: Add comment for previous change, and make minor
35508         adjustment to loop to always check for improper loop termination.
35509         Minor reformatting throughout (new function spec format).
35510
35511         * gnatbind.adb: Implement -di debug flag for gnatbind
35512
35513         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
35514
35515         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
35516
35517         * lib-load.adb: Fix bad assertion.
35518         Found by testing and code reading.
35519         Minor reformatting.
35520
35521         * lib-load.ads: Minor reformatting.
35522
35523         * lib-writ.adb: There is only one R line now.
35524
35525         * lib-writ.ads: Add documentation on making downward compatible changes
35526         to ali files so old tools work with new ali files.
35527         There is only one R line now.
35528         Add documentation on format incompatibilities (with special GPS note)
35529
35530         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
35531
35532         * par-load.adb: Minor reformatting
35533
35534         * sem_ch8.adb: Fix to error message from last update
35535         Minor reformatting and restructuring of code from last update
35536
35537         * par-prag.adb, snames.adb, snames.ads, snames.h,
35538         sem_prag.adb: Implement pragma Profile.
35539
35540         * stylesw.adb: Implement -gnatyN switch to turn off all style check
35541         options.
35542
35543         * usage.adb: Add line for -gnatyN switch
35544
35545         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
35546
35547 2004-02-09  Albert Lee  <lee@gnat.com>
35548
35549         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
35550
35551 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
35552
35553         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
35554         slices.
35555
35556         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
35557         is nested in an instance that is not frozen yet, to avoid
35558         order-of-elaboration problems in gigi.
35559
35560         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
35561         body the attribute is legal.
35562
35563 2004-02-09  Robert Dewar  <dewar@gnat.com>
35564
35565         * s-rident.ads: Minor comment correction
35566
35567         * targparm.adb: Remove dependence on uintp completely. There was
35568         always a bug in Make in that it called Targparm before initializing
35569         the Uint package. The old code appeared to get away with this, but
35570         the new code did not! This caused an assertion error in gnatmake.
35571
35572         * targparm.ads: Fix bad comment, restriction pragmas with parameters
35573         are indeed fully supported.
35574
35575 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
35576
35577         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
35578
35579 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
35580
35581         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
35582         with targetm.calls.promote_prototypes.
35583
35584 2004-02-04  Robert Dewar  <dewar@gnat.com>
35585
35586         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
35587         ali.ads, gprcmd.adb: Minor reformatting
35588
35589         * bindgen.adb: Output restrictions string for new style restrictions
35590         handling
35591
35592         * impunit.adb: Add s-rident.ads (System.Rident) and
35593         s-restri (System.Restrictions)
35594
35595         * lib-writ.adb: Fix bug in writing restrictions string (last few
35596         entries wrong)
35597
35598         * s-restri.ads, s-restri.adb: Change name Restrictions to
35599         Run_Time_Restrictions to avoid conflict with package name.
35600         Add circuit to read and acquire run time restrictions.
35601
35602 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
35603
35604         * restrict.ads, restrict.adb: Use the new restriction
35605         No_Task_Attributes_Package instead of the old No_Task_Attributes.
35606
35607         * sem_prag.adb: No_Task_Attributes is a synonym of
35608         No_Task_Attributes_Package.
35609
35610         * snames.ads, snames.adb: New entry for proper handling of
35611         No_Task_Attributes.
35612
35613         * s-rident.ads: Adding restriction No_Task_Attributes_Package
35614         (AI-00249) that supersedes the GNAT specific restriction
35615         No_Task_Attributes.
35616
35617 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
35618
35619         * sem_prag.adb:
35620         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
35621          body, an identifier may be wrapped in an unchecked conversion.
35622
35623 2004-02-04  Vincent Celier  <celier@gnat.com>
35624
35625         * lib-writ.ads: Comment update for the W lines
35626
35627         * bld.adb: (Expression): An empty string list is static
35628
35629         * fname-uf.adb: Minor comment update
35630
35631         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
35632
35633         * gnatbind.adb: Initialize Cumulative_Restrictions with the
35634         restrictions on the target.
35635
35636 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
35637
35638         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
35639         gen_rtx.
35640
35641 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
35642
35643         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
35644
35645 2004-02-02  Vincent Celier  <celier@gnat.com>
35646
35647         * gprcmd.adb (Check_Args): If condition is false, print the invoked
35648         comment before the usage.
35649         Gprcmd: Fail when command is not recognized.
35650         (Usage): Document command "prefix"
35651
35652         * g-md5.adb (Digest): Process last block.
35653         (Update): Do not process last block. Store remaining characters and
35654         length in Context.
35655
35656         * g-md5.ads (Update): Document that several call to update are
35657         equivalent to one call with the concatenated string.
35658         (Context): Add fields to allow new Update behaviour.
35659
35660         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
35661         defaulted to False.
35662         When May_Fail is True and no existing file can be found, return No_File.
35663
35664         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
35665         functions.
35666
35667         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
35668         spec file name instead on the W line.
35669
35670 2004-02-02  Robert Dewar  <dewar@gnat.com>
35671
35672         * ali.adb: Read and acquire info from new format restrictions lines
35673
35674         * bcheck.adb: Add circuits for checking restrictions with parameters
35675
35676         * bindgen.adb: Output dummy restrictions data
35677         To be changed later
35678
35679         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
35680         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
35681         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
35682         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
35683         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
35684
35685         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
35686         the warning message on access to possibly uninitialized variable S)
35687         Minor changes for new restrictions handling.
35688
35689         * gnatbind.adb: Minor reformatting
35690         Minor changes for new restrictions handling
35691         Move circuit for -r processing here from bcheck (cleaner)
35692
35693         * gnatcmd.adb, gnatlink.adb: Minor reformatting
35694
35695         * lib-writ.adb: Output new format restrictions lines
35696
35697         * lib-writ.ads: Document new R format lines for new restrictions
35698         handling.
35699
35700         * s-restri.ads/adb: New files
35701
35702         * Makefile.rtl: Add entry for s-restri.ads/adb
35703
35704         * par-ch3.adb: Fix bad error messages starting with upper case letter
35705         Minor reformatting
35706
35707         * restrict.adb: Major rewrite throughout for new restrictions handling
35708         Major point is to handle restrictions with parameters
35709
35710         * restrict.ads: Major changes in interface to handle restrictions with
35711         parameters. Also generally simplifies setting of restrictions.
35712
35713         * snames.ads/adb: New entry for proper handling of No_Requeue
35714
35715         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
35716         restriction counting.
35717         Other minor changes for new restrictions handling
35718
35719         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
35720         Restriction_Warnings now allows full parameter notation
35721         Major rewrite of Restrictions for new restrictions handling
35722
35723 2004-02-02  Javier Miranda  <miranda@gnat.com>
35724
35725         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
35726         syntax rule for object renaming declarations.
35727         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
35728         component definitions.
35729
35730         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
35731         components.
35732         (Array_Type_Declaration): Give support to access components. In addition
35733         it was also modified to reflect the name of the object in anonymous
35734         array types. The old code did not take into account that it is possible
35735         to have an unconstrained anonymous array with an initial value.
35736         (Check_Or_Process_Discriminants): Allow access discriminant in
35737         non-limited types.
35738         (Process_Discriminants): Allow access discriminant in non-limited types
35739         Initialize the new Access_Definition field in N_Object_Renaming_Decl
35740         node.  Change Ada0Y to Ada 0Y in comments
35741
35742         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
35743         equality operators.
35744         Change Ada0Y to Ada 0Y in comments
35745
35746         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
35747         renamings Change Ada0Y to Ada 0Y in comments
35748
35749         * sem_type.adb (Find_Unique_Type): Give support to the equality
35750         operators for universal access types
35751         Change Ada0Y to Ada 0Y in comments
35752
35753         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
35754
35755         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
35756         field.
35757         (N_Object_Renaming_Declaration): Addition of Access_Definition field
35758         Change Ada0Y to Ada 0Y in comments
35759
35760         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
35761         component definition and object renaming nodes
35762         Change Ada0Y to Ada 0Y in comments
35763
35764 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
35765
35766         * restrict.adb: Use the new restriction identifier
35767         No_Requeue_Statements instead of the old No_Requeue for defining the
35768         restricted profile.
35769
35770         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
35771         No_Requeue_Statements.
35772
35773         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
35774         that supersedes the GNAT specific restriction No_Requeue. The later is
35775         kept for backward compatibility.
35776
35777 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
35778
35779         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
35780         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
35781         pragma and fix incorrect ones.
35782
35783         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
35784         warning if the pragma is redundant.
35785
35786 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
35787
35788         * 5staprop.adb: Add missing 'constant' keywords.
35789
35790         * Makefile.in: use consistent value for SYMLIB on
35791         platforms where libaddr2line is supported.
35792
35793 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35794
35795         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
35796         annotating types.
35797
35798 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
35799
35800         * init.c (__gnat_install_handler): Setup an alternate stack for signal
35801         handlers in the environment thread. This allows proper propagation of
35802         an exception on stack overflows in this thread even when the builtin
35803         ABI stack-checking scheme is used without support for a stack reserve
35804         region.
35805
35806         * utils.c (create_field_decl): Augment the head comment about bitfield
35807         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
35808         here, because the former is not accurate enough at this point.
35809         Let finish_record_type decide instead.
35810         Don't make a bitfield if the field is to be addressable.
35811         Always set a size for the field if the record is packed, to ensure the
35812         checks for bitfield creation are triggered.
35813         (finish_record_type): During last pass over the fields, clear
35814         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
35815         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
35816         from DECL_BIT_FIELD.
35817
35818 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
35819
35820         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
35821         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
35822         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
35823
35824 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35825
35826         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
35827
35828         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
35829         (ZCX_By_Default): Likewise.
35830         (Front_End_ZCX_Support): Likewise.
35831
35832         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
35833         (Initialize_Lock): Mark Level unreferenced.
35834         (Sleep): Mark Reason unreferenced.
35835         (Timed_Sleep): Likewise.
35836         (Wakeup): Likewise.
35837         (Exit_Task): Use Result.
35838         (Check_No_Locks): Mark Self_ID unreferenced.
35839
35840         * 5gtasinf.adb (New_Sproc): Make Attr constant.
35841         (Bound_Thread_Attributes): Make Sproc constant.
35842         (New_Bound_Thread_Attributes): Likewise.
35843
35844 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
35845
35846         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
35847         one-dimensional array an slice assignments, when component type is
35848         controlled.
35849
35850         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
35851         component type is controlled, and control_actions are in effect, use
35852         TSS procedure rather than generating inline code.
35853
35854         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
35855         arrays with controlled components.
35856
35857 2004-01-26  Vincent Celier  <celier@gnat.com>
35858
35859         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
35860         command line for the non VMS case.
35861
35862         * gnatlink.adb (Process_Binder_File): When building object file, if
35863         GNU linker is used, put all object paths between quotes, to prevent ld
35864         error when there are unusual characters (such as '!') in the paths.
35865
35866         * Makefile.generic: When there are sources in Ada and the main is in
35867         C/C++, invoke gnatmake with -B, instead of -z.
35868
35869         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
35870         from VMS_Conversion.
35871         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
35872         specification of argument file on the command line.
35873
35874 2004-01-26  Bernard Banner  <banner@gnat.com>
35875
35876         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
35877
35878 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
35879
35880         * snames.adb: Update copyright notice.
35881         Add info on slice assignment for controlled arrays.
35882
35883 2004-01-23  Robert Dewar  <dewar@gnat.com>
35884
35885         * exp_aggr.adb: Minor reformatting
35886
35887         * exp_ch9.adb: Minor code clean up
35888         Minor reformatting
35889         Fix bad character in comment
35890
35891         PR ada/13471
35892         * targparm.adb (Get_Target_Parameters): Give clean abort error on
35893         unexpected end of file, along with more detailed message.
35894
35895 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35896
35897         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
35898         PAT.
35899
35900         * decl.c (copy_alias_set): New function.
35901         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
35902
35903 2004-01-23  Doug Rupp  <rupp@gnat.com>
35904
35905         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
35906         lib$${file} in case subsequent character is not a separator.
35907
35908 2004-01-23  Vincent Celier  <celier@gnat.com>
35909
35910         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
35911         when the GCC version is at least 3.
35912
35913         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
35914         Remove all "Opt.", to prepare for opt split
35915
35916         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
35917         Extends_All. Set to True when the project parsed is an extending all
35918         project. Fails for importing an extending all project only when the
35919         imported project is an extending all project.
35920         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
35921         depending on the value of Extends_All returned.
35922
35923         * prj-proc.adb (Process): Check that no project shares its object
35924         directory with a project that extends it, directly or indirectly,
35925         including a virtual project.
35926         Check that no project extended by another project shares its object
35927         directory with another also extended project.
35928
35929         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
35930         Kind = N_With_Clause
35931
35932         * prj-tree.ads: Minor reformatting
35933         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
35934
35935 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
35936
35937         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
35938         applies to a type with an incomplete view, use full view in Name of
35939         clause, for consistency with uses of Get_Attribute_Definition_Clause.
35940
35941 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
35942
35943         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
35944         SCHED_RR, since other values are not supported by this policy.
35945         (Initialize): Move initialization of mutex attribute to package
35946         elaboration, to prevent early access to this variable.
35947
35948         * Makefile.in: Remove mention of Makefile.adalib, unused.
35949
35950         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35951         1ssecsta.ads: Removed, unused.
35952
35953 2004-01-21  Javier Miranda  <miranda@gnat.com>
35954
35955         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
35956         entity if already built in the current scope.
35957
35958         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
35959         reminder in internal scopes. Required for nested limited aggregates.
35960
35961 2004-01-21  Doug Rupp  <rupp@gnat.com>
35962
35963         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
35964         VMS. Replace all occurences of libgnat- and libgnarl- with
35965         libgnat$(hyphen) and libgnarl$(hyphen).
35966         Fixed shared library build problem on VMS.
35967
35968 2004-01-21  Robert Dewar  <dewar@gnat.com>
35969
35970         * mlib-prj.adb: Minor reformatting
35971
35972 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
35973
35974         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
35975         'constant' keywords for declaration of pointers that are not modified.
35976
35977         * exp_pakd.adb: Fix English in comment.
35978
35979 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
35980
35981         PR ada/10889
35982         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
35983         copy all attributes of the parent, including the foreign language
35984         convention.
35985
35986 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
35987
35988         PR ada/10565
35989         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
35990         for 'delay until' statement.
35991
35992 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
35993
35994         * Make-lang.in: Replace $(docdir) with doc.
35995         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
35996         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
35997         to use consistent MAKEINFO rule.
35998         (ada.man, ada.srcman): Dummy entry.
35999         (ADA_INFOFILES): Define.
36000         (ada.info, ada.srcinfo): New rules.
36001
36002 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
36003
36004         * utils.c: Update copyright notice, missed in previous change.
36005
36006 2004-01-19  Vincent Celier  <celier@gnat.com>
36007
36008         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36009         args if Bind is True. Set First_ALI, if not already done.
36010         (Build_Library): For Stand Alone Libraries, extract from one ALI file
36011         an eventual --RTS switch, for gnatbind, and all backend switches +
36012         --RTS, for linking.
36013
36014 2004-01-19  Robert Dewar  <dewar@gnat.com>
36015
36016         * sem_attr.adb, memtrack.adb: Minor reformatting
36017
36018 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
36019
36020         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36021         that rename enumeration literals. This is properly done in sem_eval.
36022
36023         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36024         to functions that rename enumeration literals.
36025
36026         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36027         functions that rename enumeration literals.
36028
36029 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
36030
36031         * Make-lang.in (utils.o): Depend on target.h.
36032         * utils.c: Include target.h.
36033         (process_attributes): Use targetm.have_named_sections instead
36034         of ASM_OUTPUT_SECTION_NAME.
36035
36036 2004-01-16  Andreas Jaeger  <aj@suse.de>
36037
36038         * Makefile.in: Add $(DESTDIR).
36039
36040 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
36041
36042         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36043         also when not defining if a Size clause applies. That information is
36044         not to be ignored.
36045
36046 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
36047
36048         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36049         symbolic links for the shared gnat run time when needed.
36050
36051 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
36052
36053         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36054         for writing, and terminate with an error message if not.
36055
36056 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
36057
36058         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36059         warning on an access to subprogram in an instance, when the target
36060         type is declared in the same generic unit.
36061         (Eval_Attribute): If 'access is known to fail accessibility check,
36062         rewrite as a raise statement.
36063
36064 2004-01-15  GNAT Script  <nobody@gnat.com>
36065
36066         * Make-lang.in: Makefile automatically updated
36067
36068 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
36069
36070         * Make-lang.in (ada.srcextra): Dummy entry.
36071
36072 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
36073
36074         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36075
36076 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
36077
36078         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36079         components that are initialized with aggregates.
36080
36081 2004-01-13  Vincent Celier  <celier@gnat.com>
36082
36083         * gnatlink.adb (Process_Binder_File): To find directory of shared
36084         libgcc, if "gcc-lib" is not a subdirectory, look for the last
36085         subdirectory "lib" in the path of the shared libgnat or libgnarl.
36086
36087         * make.adb (Gnatmake): If GCC version is at least 3, link with
36088         -shared-libgcc, when there is at least one shared library project.
36089
36090         * opt.ads (GCC_Version): New integer constant.
36091
36092         * adaint.c (get_gcc_version): New function.
36093
36094 2004-01-13  Robert Dewar  <dewar@gnat.com>
36095
36096         * sem_dist.adb, sem_res.adb, sem_util.adb,
36097         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
36098         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
36099
36100 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
36101
36102         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
36103         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
36104         declarations.
36105
36106 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
36107
36108         * misc.c: Remove trailing spaces.
36109         Update copyright notice missed in previous change.
36110
36111         PR ada/13572
36112         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
36113         prefix/share/make
36114
36115         * Makefile.generic: Update copyright.
36116         Add license notice.
36117
36118         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
36119         of prefix/share/make.
36120
36121         * Makefile.prolog: Update copyright.
36122         Add license notice.
36123
36124 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
36125
36126         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
36127         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
36128         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
36129         instead of String.
36130
36131         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
36132         signature.
36133
36134 2004-01-12  Javier Miranda  <miranda@gnat.com>
36135
36136         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
36137         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
36138         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
36139         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
36140         Component_Definition node.
36141
36142 2004-01-12  Ed Falis  <falis@gnat.com>
36143
36144         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
36145
36146 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
36147
36148         * link.c: Change default libgnat kind to STATIC for FreeBSD.
36149
36150 2004-01-12  Bernard Banner  <banner@gnat.com>
36151
36152         * Makefile.in: map 86numaux to a-numaux for x86_64
36153
36154 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
36155
36156         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
36157         generated to rename a generic actual, go to the actual itself, the
36158         subtype is not a user-visible entity.
36159
36160         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
36161         part is a private subtype, reset the visibility of its full view, if
36162         any, to be consistent.
36163
36164         PR ada/13417
36165         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
36166         to use a generic package G as a formal package for another generic
36167         declared within G.
36168
36169 2004-01-12  Robert Dewar  <dewar@gnat.com>
36170
36171         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
36172
36173         * usage.adb: Remove mention of obsolete -gnatwb switch
36174         Noticed during code reading
36175
36176 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
36177
36178         * 1ssecsta.adb: Minor changes for -gnatwa warnings
36179
36180 2004-01-12  GNAT Script  <nobody@gnat.com>
36181
36182         * Make-lang.in: Makefile automatically updated
36183
36184 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
36185
36186         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
36187
36188 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36189
36190         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
36191
36192 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
36193
36194         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
36195         Update comment and copyright date.
36196         * stamp-xgnatug: Delete.
36197
36198 2004-01-05  Robert Dewar  <dewar@gnat.com>
36199
36200         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
36201         be modified by the binder generated main program if the -D switch is
36202         used.
36203
36204         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
36205         imported functions (since now we expect this to be done for imported
36206         functions)
36207
36208         * 5vtaprop.adb: Add several ??? for sections requiring more comments
36209         Minor reformatting throughout
36210
36211         * 5zinit.adb: Minor reformatting
36212         Add 2004 to copyright date
36213         Minor changes to avoid -gnatwa warnings
36214         Correct some instances of using OR instead of OR ELSE (noted while
36215         doing reformatting)
36216
36217         * sprint.adb: Minor updates to avoid -gnatwa warnings
36218
36219         * s-secsta.ads, s-secsta.adb:
36220         (SS_Get_Max): New function to obtain high water mark for ss stack
36221         Default_Secondary_Stack is not a constant since it may be modified by
36222         the binder generated main program if the -D switch is used.
36223
36224         * switch-b.adb: New -Dnnn switch for binder
36225
36226         * switch-c.adb:
36227         Make -gnatg imply all warnings currently in -gnatwa
36228
36229         * vms_conv.adb: Minor reformatting
36230         Add 2004 to copyright notice
36231         Add 2004 to printed copyright notice
36232
36233         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
36234         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
36235         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
36236         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
36237         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
36238         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
36239         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
36240         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
36241         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
36242         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
36243         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
36244         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
36245         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
36246         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
36247         checks.adb, clean.adb, cstand.adb, einfo.ads,
36248         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
36249         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
36250         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
36251         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
36252         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
36253         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
36254         Minor reformatting and code clean ups.
36255         Minor changes to prevent -gnatwa warnings
36256
36257         * ali.adb: Minor reformatting and cleanup of code
36258         Acquire new SS indication of secondary stack use from ali files
36259
36260         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
36261         (since now we expect this to be done for imported functions)
36262
36263         * bindgen.adb: Generate call to modify default secondary stack size if
36264         -Dnnn switch given
36265
36266         * bindusg.adb: Add line for new -D switch
36267
36268         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
36269         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
36270         Add circuitry for both records and arrays to avoid gigi
36271         processing if the type involved has non-bit-aligned components
36272
36273         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
36274         N_String_Literal node always references an E_String_Literal_Subtype
36275         entity. This may not be true in the future.
36276         (Possible_Bit_Aligned_Component): Move processing of
36277         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
36278
36279         * exp_ch6.adb (Expand_Thread_Body): Pick up
36280         Default_Secondary_Stack_Size as variable so that we get value modified
36281         by possible -Dnnn binder parameter.
36282
36283         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
36284         (Type_May_Have_Bit_Aligned_Components): New function.
36285
36286         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
36287         (Type_May_Have_Bit_Aligned_Components): New function.
36288
36289         * fe.h: (Set_Identifier_Casing): Fix prototype.
36290         Add declaration for Sem_Elim.Eliminate_Error_Msg.
36291         Minor reformatting.
36292
36293         * freeze.adb (Freeze_Entity): Add RM reference to error message about
36294         importing constant atomic/volatile objects.
36295         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
36296         unless explicit Pure_Function pragma given, to avoid insidious bug of
36297         call to non-pure imported function getting eliminated.
36298
36299         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
36300         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
36301         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
36302         Add 2004 to printed copyright notice
36303
36304         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
36305         stack used.
36306
36307         * Makefile.rtl: Add entry for g-sestin.o
36308         g-sestin.ads: New file.
36309
36310         * mdll.adb: Minor changes to avoid -gnatwa warnings
36311
36312         * mlib-tgt.adb: Minor reformatting
36313
36314         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
36315         New switch Sec_Stack_Used (GNAT, GNATBIND)
36316         Make Default_Secondary_Stack_Size a variable instead of a constant,
36317         so that it can be modified by the new -Dnnn bind switch.
36318
36319         * rtsfind.adb (Load_Fail): Give full error message in configurable
36320         run-time mode if all_errors mode is set. This was not done in the case
36321         of a file not found, which was an oversight.
36322         Note if secondary stack unit is used by compiler.
36323
36324         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
36325         ineffective elaborate all pragmas on non-visible packages (this
36326         happened when a renamed subprogram was called). Now the elaborate all
36327         always goes on the package containing the renaming rather than the one
36328         containing the renamed subprogram.
36329
36330         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
36331         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
36332
36333         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
36334         has an Etype that references an E_String_Literal.
36335         (Eval_String_Literal): Avoid assumption that N_String_Literal node
36336         always references an E_String_Literal_Subtype entity. This may not
36337         be true in the future.
36338
36339         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
36340         pragma location.
36341
36342         * sem_res.adb (Resolve): Specialize msg for function name used in proc
36343         call.
36344
36345 2004-01-05  Ed Falis  <falis@gnat.com>
36346
36347         * g-debuti.adb: Replaced direct boolean operator with short-circuit
36348         form.
36349
36350 2004-01-05  Vincent Celier  <celier@gnat.com>
36351
36352         * bld.adb: Minor comment updates
36353         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
36354         of Item_Name).
36355
36356         * make.adb (Gnatmake): Special process for files to compile/check when
36357         -B is specified. Fail when there are only foreign mains in attribute
36358         Main of the project file and -B is not specified. Do not skip bind/link
36359         steps when -B is specified.
36360
36361         * makeusg.adb: Document new switch -B
36362
36363         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
36364
36365         * switch-m.adb: (Scan_Make_Switches): Process -B switch
36366
36367         * vms_data.ads: Add new GNAT PRETTY qualifier
36368         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
36369
36370 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36371
36372         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
36373         case.
36374
36375         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
36376         Set_Identifier_Casing.
36377
36378         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
36379         has size that overflows.
36380
36381 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
36382
36383         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
36384         -gnatwa warning on static condition.
36385
36386 2004-01-05  Doug Rupp  <rupp@gnat.com>
36387
36388         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
36389
36390 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
36391
36392         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
36393         all attributes, including read-only attribute.
36394
36395 2004-01-05  Pascal Obry  <obry@gnat.com>
36396
36397         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
36398         library naming scheme.
36399
36400         * mlib-prj.adb (Build_Library): Generate different names for the static
36401         or dynamic version of the GNAT runtime. This is needed to support the
36402         new shared library naming scheme.
36403         (Process_Binder_File): Add detection of shared library in binder file
36404         based on the new naming scheme.
36405
36406         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
36407         scheme for the shared runtime libraries.
36408
36409         * Makefile.in:
36410         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
36411         scheme.
36412         (install-gnatlib): Do not create symlinks for shared libraries.
36413         (gnatlib-shared-default): Idem.
36414         (gnatlib-shared-dual-win32): New target. Not used for now as the
36415         auto-import feature does not support arrays/records.
36416         (gnatlib-shared-win32): Do not create copy for the shared libraries.
36417         (gnatlib-shared-vms): Fix shared runtime libraries names.
36418
36419         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
36420         dependent runtime shared library name.
36421
36422 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
36423
36424         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
36425         than the object.
36426
36427 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
36428
36429         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
36430         protected objects when allocator has a subtype indication, not a
36431         qualified expression. Note that qualified expressions may have to be
36432         checked when limited aggregates are implemented.
36433
36434         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
36435         pure, emit warning.
36436         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
36437         subprogram is imported, remove warning.
36438
36439 2004-01-05  Geert Bosch  <bosch@gnat.com>
36440
36441         * s-poosiz.adb: Update copyright notice.
36442         (Allocate): Use Task_Lock to protect against concurrent access.
36443         (Deallocate): Likewise.
36444
36445 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
36446
36447         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
36448         comment.
36449
36450 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
36451
36452         * gnat_ug.texi: Force a CVS commit by updating copyright.
36453         * gnat_ug_vxw.texi: Regenerate.
36454         * gnat_ug_wnt.texi: Regenerate.
36455         * gnat_ug_vms.texi: Regenerate.
36456         * gnat_ug_unx.texi: Regenerate.
36457
36458 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
36459
36460         * trans.c: Remove uses of "register" specifier in
36461         declarations of local variables.
36462
36463 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
36464
36465         * stamp-xgnatug: New stamp file.
36466         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
36467         (ada/doctools/xgnatug): Add $(build_exeext).
36468         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
36469         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
36470
36471 2003-12-17  Ed Falis  <falis@gnat.com>
36472
36473         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
36474         eliminate warning.
36475
36476         * a-exextr.adb: Add context clause for
36477         Ada.Exceptions.Last_Chance_Handler.
36478
36479 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
36480
36481         * cstand.adb (Create_Standard): Change the way how the declaration of
36482         the Duration type is created (making it the same way as it is for all
36483         the other standard types).
36484
36485 2003-12-17  Robert Dewar  <dewar@gnat.com>
36486
36487         * s-crtl.ads: Fix header format
36488         Change Pure to Preelaborate
36489
36490 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
36491
36492         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
36493         the expression type only if it is declared in the current unit.
36494
36495         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
36496         are universal and already analyzed, as can occur in constrained
36497         subcomponents that depend on discriminants, when one constraint is a
36498         subtype mark.
36499
36500         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
36501         type Any_Fixed is legal as the argument of a conversion, if only one
36502         fixed-point type is in context.
36503
36504 2003-12-17  GNAT Script  <nobody@gnat.com>
36505
36506         * Make-lang.in: Makefile automatically updated
36507
36508 2003-12-15  Robert Dewar  <dewar@gnat.com>
36509
36510         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
36511         sec stack size.
36512
36513 2003-12-15  Vincent Celier  <celier@gnat.com>
36514
36515         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
36516         (Gnatchop): Do not set failure status when reporting the number of
36517         warnings.
36518
36519 2003-12-15  Doug Rupp  <rupp@gnat.com>
36520
36521         * s-ctrl.ads: New file.
36522
36523         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
36524
36525         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
36526         (GNATBIND_OBJS): Add ada/s-crtl.o.
36527
36528         * Makefile.in [VMS]: Clean up ifeq rules.
36529
36530         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
36531         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
36532         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
36533         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
36534         s-tasdeb.adb: Update copyright.
36535         Import System.CRTL.
36536         Make minor modifications to use System.CRTL declared functions instead
36537         of importing locally.
36538
36539 2003-12-15  GNAT Script  <nobody@gnat.com>
36540
36541         * Make-lang.in: Makefile automatically updated
36542
36543 2003-12-11  Ed Falis  <falis@gnat.com>
36544
36545         * 5zinit.adb: Clean up.
36546
36547         * 5zintman.adb (Notify_Exception): replaced case statement with a call
36548         to __gnat_map_signal, imported from init.c to support
36549         signal -> exception mappings that depend on the vxWorks version.
36550
36551         * init.c:
36552         Created and exported __gnat_map_signal to support signal -> exception
36553         mapping that is dependent on the VxWorks version.
36554         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
36555
36556 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
36557
36558         * 5wosinte.ads: Link with -mthreads switch.
36559
36560 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
36561
36562         * init.c (__gnat_install_handler [NetBSD]): Set
36563         __gnat_handler_installed, as done on all other platforms.
36564         Remove duplicated code.
36565
36566 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
36567
36568         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
36569
36570 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
36571
36572         * sinfo.ads: Fix inconsistent example code in comment.
36573
36574 2003-12-11  Robert Dewar  <dewar@gnat.com>
36575
36576         * a-tiinau.adb: Add a couple of comments
36577
36578         * sem_ch3.adb: Minor reformatting
36579
36580         * sem_prag.adb:
36581         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
36582         Minor reformatting throughout
36583
36584 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
36585
36586         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
36587         bounds of a loop, create a separate block in order to generate proper
36588         cleanup actions to prevent memory leaks.
36589
36590         * sem_res.adb (Resolve_Call): After a call to
36591         Establish_Transient_Scope, the call may be rewritten and relocated, in
36592         which case no further processing is needed.
36593
36594         * sem_util.adb: (Wrong_Type): Refine previous fix.
36595          Fixes ACATS regressions.
36596
36597         PR ada/13353
36598         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
36599         be inlined.
36600
36601 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
36602
36603         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
36604         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
36605         obsolete files.
36606
36607         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
36608         (rts-zfp): Ditto.
36609
36610 2003-12-08  Robert Dewar  <dewar@gnat.com>
36611
36612         * 7sintman.adb: Minor reformatting
36613
36614         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
36615         standard linker options to get standard libraries linked. We now plan
36616         to provide dummy versions of these libraries to match the appropriate
36617         configurable run-time (e.g. if a library is not needed at all, provide
36618         a dummy empty library).
36619
36620         * targparm.ads: Configurable_Run_Time mode no longer affects linker
36621         options (-L parameters and standard libraries). What we plan to do is
36622         to provide dummy libraries where the libraries are not required.
36623
36624         * gnatbind.adb: Minor comment improvement
36625
36626 2003-12-08  Javier Miranda  <miranda@gnat.com>
36627
36628         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
36629         aggregate in the parent. Otherwise constants with limited aggregates
36630         are not supported. Add new formal to pass the component type (Ctype).
36631         It is required to call the corresponding IP subprogram in case of
36632         default initialized components.
36633         (Gen_Assign): In case of default-initialized component, generate a
36634         call to the IP subprogram associated with the component.
36635         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
36636         of aggregate with default initialized components.
36637         (Has_Default_Init_Comps): Improve implementation to recursively check
36638         all the present expressions.
36639
36640         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
36641         to indicate that the initialization call corresponds to a
36642         default-initialized component of an aggregate.
36643         In case of default initialized aggregate with tasks this parameter is
36644         used to generate a null string (this is just a workaround that must be
36645         improved later). In case of discriminants, this parameter is used to
36646         generate a selected component node that gives access to the discriminant
36647         value.
36648
36649         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
36650         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
36651         allocated aggregates with default-initialized components.
36652
36653         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
36654         the box notation is used in positional aggregates.
36655
36656 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
36657
36658         * lib.ads: Fix typo in comment
36659
36660 2003-12-08  Vincent Celier  <celier@gnat.com>
36661
36662         * prj.adb (Project_Empty): New component Unkept_Comments
36663         (Scan): Remove procedure; moved to Prj.Err.
36664
36665         * prj.ads (Project_Data): New Boolean component Unkept_Comments
36666         (Scan): Remove procedure; moved to Prj.Err.
36667
36668         * prj-dect.adb: Manage comments for the different declarations.
36669
36670         * prj-part.adb (With_Record): New component Node
36671         (Parse): New Boolean parameter Store_Comments, defaulted to False.
36672         Set the scanner to return ends of line and comments as tokens, if
36673         Store_Comments is True.
36674         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
36675         comments are associated with these nodes. Store the node IDs in the
36676         With_Records.
36677         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
36678         With_Records.
36679         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
36680         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
36681         current project. Call Tree.Restore afterwards. Set the various nodes
36682         for comment storage (Next_End, End_Of_Line, Previous_Line,
36683         Previous_End).
36684
36685         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
36686         defaulted to False.
36687
36688         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
36689         to False. When Truncated is True, truncate the string, never go to the
36690         next line.
36691         (Write_End_Of_Line_Comment): New procedure
36692         (Print): Process comments for nodes N_With_Clause,
36693         N_Package_Declaration, N_String_Type_Declaration,
36694         N_Attribute_Declaration, N_Typed_Variable_Declaration,
36695         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
36696         Process nodes N_Comment.
36697
36698         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
36699         without comments and there are some comments, set the flag
36700         Unkept_Comments to True.
36701         (Scan): If there are comments, set the flag Unkept_Comments to True and
36702         clear the comments.
36703         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
36704         (Next_End_Nodes: New table
36705         (Comment_Zones_Of): New function
36706         (Scan): New procedure; moved from Prj. Accumulate comments in the
36707         Comments table and set end of line comments, comments after, after end
36708         and before end.
36709         (Add_Comments): New procedure
36710         (Save, Restore, Seset_State): New procedures
36711         (There_Are_Unkept_Comments): New function
36712         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
36713         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
36714         procedures.
36715         (First_Comment_After, First_Comment_After_End): New functions
36716         (First_Comment_Before, First_Comment_Before_End): New functions
36717         (Next_Comment): New function
36718         (End_Of_Line_Comment, Follows_Empty_Line,
36719         Is_Followed_By_Empty_Line): New functions
36720         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
36721         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
36722         (Set_Next_Comment): New procedure
36723         (Default_Project_Node): Associate comment before if the node can store
36724         comments.
36725
36726         * scans.ads (Token_Type): New enumeration value Tok_Comment
36727         (Comment_Id): New global variable
36728
36729         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
36730         defaulted to False.
36731         (Scan): Store position of start of comment. If comments are tokens, set
36732         Comment_Id and set Token to Tok_Comment when scanning a comment.
36733         (Set_Comment_As_Token): New procedure
36734
36735         * sinput-p.adb: Update Copyright notice
36736         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
36737         that no longer exists.
36738
36739 2003-12-08  Javier Miranda  <miranda@gnat.com>
36740
36741         * sem_aggr.adb: Add dependence on Exp_Tss package
36742         Correct typo in comment
36743         (Resolve_Aggregate): In case of array aggregates set the estimated
36744         type of the aggregate before calling resolve. This is needed to know
36745         the name of the corresponding IP in case of limited array aggregates.
36746         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
36747         in case of default initialized array components.
36748
36749         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
36750         types. Required to give support to limited aggregates in generic
36751         formals.
36752
36753 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
36754
36755         * sem_ch3.adb (Check_Initialization): For legality purposes, an
36756         inlined body functions like an instantiation.
36757         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
36758         until bounds are analyzed, to diagnose premature use of type.
36759
36760         * sem_util.adb (Wrong_Type): Improve error message when the type of
36761         the expression is used prematurely.
36762
36763 2003-12-08  GNAT Script  <nobody@gnat.com>
36764
36765         * Make-lang.in: Makefile automatically updated
36766
36767 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
36768
36769         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
36770         they are automatically generated by Make-lang.in and cause nothing but
36771         maintenance troubles.
36772
36773 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
36774
36775         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
36776         version of this unit).
36777
36778 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
36779
36780         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
36781         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
36782         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
36783         the body of System.Interrupt_Management common to several targets.
36784         Update copyright notice when appropriate.
36785
36786         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
36787         constant.
36788
36789         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
36790         to ensure that the kernel fills in the interrupted context structure
36791         before calling a signal handler, which is necessary to be able to
36792         unwind past it. Update the copyright notice.
36793
36794 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
36795
36796         * a-elchha.ads: New file.
36797
36798         * a-elchha.adb: New default last chance handler. Contents taken from
36799         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
36800
36801         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
36802         is moved to a-elchha.adb to provide a target-independent default last
36803         chance handler.
36804
36805         * Makefile.rtl: Add a-elchha.o
36806
36807         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
36808
36809 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
36810
36811         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
36812         declared in an instance, do not inline the call if the instance is not
36813         frozen yet, to prevent order of elaboration problems.
36814
36815         * sem_prag.adb: Add comments for previous fix.
36816
36817 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
36818
36819         * g-table.adb: Use the right variable in Set_Item.
36820         Update copyright notice.
36821
36822 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
36823
36824         * Makefile.in: Remove unused rules.
36825
36826 2003-12-05  Vincent Celier  <celier@gnat.com>
36827
36828         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
36829         -nostdlib. Not needed here after all.
36830
36831 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
36832
36833         PR ada/11724
36834         * adaint.h, adaint.c, g-os_lib.ads:
36835         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
36836         on some platforms (including FreeBSD), it is a 64 bit value.
36837         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
36838
36839 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
36840
36841         * gnatvsn.ads (Library_Version): Now contain only the relevant
36842         version info.
36843         (Verbose_Library_Version): New constant.
36844
36845         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
36846         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
36847         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
36848
36849         * gnatlbr.adb: Clean up: replace Library_Version by
36850         Verbose_Library_Version.
36851
36852         * make.adb, lib-writ.adb, exp_attr.adb:
36853         Clean up: replace Library_Version by Verbose_Library_Version.
36854
36855         * 5lintman.adb: Removed.
36856
36857         * Makefile.in:
36858         Update and simplify computation of LIBRARY_VERSION.
36859         Fix computation of GSMATCH_VERSION.
36860         5lintman.adb is no longer used: replaced by 7sintman.adb.
36861
36862 2003-12-03  Robert Dewar  <dewar@gnat.com>
36863
36864         * exp_ch5.adb:
36865         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
36866         name. Modified to consider small non-bit-packed arrays as troublesome
36867         and in need of component-by-component assigment expansion.
36868
36869 2003-12-03  Vincent Celier  <celier@gnat.com>
36870
36871         * lang-specs.h: Process nostdlib as nostdinc
36872
36873         * back_end.adb: Update Copyright notice
36874         (Scan_Compiler_Arguments): Process -nostdlib directly.
36875
36876 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
36877
36878         * Makefile.in:
36879         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
36880         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
36881         included in HIE_NONE_TARGET_PAIRS.
36882
36883 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
36884
36885         * sem_attr.adb:
36886         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
36887         is legal in an instance, because legality is cheched in the template.
36888
36889         * sem_prag.adb:
36890         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
36891         appplied to an unchecked conversion of a formal parameter.
36892
36893         * sem_warn.adb:
36894         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
36895         variables.
36896
36897 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
36898
36899         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
36900         routines. The second one is new functionality to deal with backtracing
36901         through signal handlers.
36902         (unwind): Split into the two separate subroutines above.
36903         Update the documentation, and deal properly with sizeof (REG) different
36904         from sizeof (void*).
36905
36906 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
36907
36908         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
36909         so that the debugger can reliably access the value of the parameter,
36910         and therefore is able to display the exception name when an exception
36911         breakpoint is reached.
36912
36913 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
36914
36915         * fmap.adb: Fix typo in warning message.
36916
36917         * g-socket.ads, g-socket.adb: Make Free a visible instance of
36918         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
36919
36920 2003-12-01  Vincent Celier  <celier@gnat.com>
36921
36922         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
36923         ther is no Afile.
36924         (Build_Library): Get the switches only if Default_Switches is declared
36925         in package Binder.
36926
36927 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
36928
36929         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
36930         actuals that are indexed components, reanalyze actual to ensure that
36931         packed array references are properly expanded.
36932
36933         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
36934         attempted assignment to a discriminant.
36935
36936 2003-12-01  Robert Dewar  <dewar@gnat.com>
36937
36938         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
36939         reformatting.
36940
36941         * switch-c.adb: Minor reformatting of comments
36942
36943 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
36944
36945         * Makefile.in: Clean ups.
36946
36947 2003-12-01  GNAT Script  <nobody@gnat.com>
36948
36949         * Make-lang.in: Makefile automatically updated
36950
36951 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
36952
36953         * 5wsystem.ads: Disable zero cost exception, not ready yet.
36954
36955 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
36956
36957         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
36958         to force serialization.
36959
36960 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
36961
36962         * g-socket.ads, g-socket.adb:
36963         Clarify documentation of function Stream. Introduce a Free procedure
36964         to release the returned Stream once it becomes unused.
36965
36966         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
36967
36968 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
36969
36970         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
36971         since NT 4 cannot handle timeout values that are too large,
36972         e.g. DWORD'Last - 1.
36973
36974 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
36975
36976         * exp_ch4.adb:
36977         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
36978         in procedure calls and whose expansion must be deferred.
36979
36980         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
36981         is in exp_ch4.
36982
36983         * sem_ch3.adb:
36984         (Build_Derived_Array_Type): Create operator for unconstrained type
36985         if ancestor is unconstrained.
36986
36987 2003-11-26  Vincent Celier  <celier@gnat.com>
36988
36989         * make.adb (Project_Object_Directory): New global variable
36990         (Change_To_Object_Directory): New procedure
36991         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
36992         of Change_Dir directly. Do not change working directory to object
36993         directory of main project after each compilation.
36994         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
36995         directly.
36996         Change to object directory of main project before binding step.
36997         (Initialize): Initialize Project_Object_Directory to No_Project
36998
36999         * mlib-prj.adb:
37000         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37001         binding a Stand-Alone Library.
37002
37003         * output.adb: Update Copyright notice
37004         (Write_Char): Output buffer when full
37005
37006 2003-11-26  Robert Dewar  <dewar@gnat.com>
37007
37008         * sem_ch13.adb: (Check_Size): Reset size if size is too small
37009
37010         * sem_ch13.ads:
37011         (Check_Size): Fix documentation to include bit-packed array case
37012
37013         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37014
37015         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37016
37017         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37018
37019 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
37020
37021         PR ada/13142
37022         * utils.c (init_gigi_decls): Change name of built-in setjmp to
37023         __builtin_setjmp, since this is apparently needed by recent
37024         non Ada changes.
37025
37026 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37027
37028         * adadecode.c: Only include ctype.h if not IN_GCC.
37029         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37030
37031 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
37032
37033         * Makefile.in:
37034         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37035         signals and interrupts.
37036
37037         * 5zintman.ads: New File.
37038
37039         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37040         add exception signals to the set of unmasked signals.
37041
37042         * 5ztaprop.adb:
37043         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37044         between signals and interrupts.
37045         Add to Unblocked_Signal_Mask the set of signals that are in
37046         Keep_Unmasked.
37047
37048         * 7sinmaop.adb:
37049         Adding a check to see whether the Interrupt_ID we want to unmask is in
37050         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37051         reason is that the index type of the Keep_Unmasked array is not always
37052         Interrupt_ID; it may be a subtype of Interrupt_ID.
37053
37054 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
37055
37056         * exp_util.adb:
37057         (Remove_Side_Effects): Condition constantness of object created for a
37058          an unchecked type conversion on the constantness of the expression
37059          to ensure the correct value for 'Constrained when passing components
37060          of view-converted class-wide objects.
37061
37062 2003-11-24  Robert Dewar  <dewar@gnat.com>
37063
37064         * par-load.adb (Load): Improve handling of misspelled and missing units
37065         Removes several cases of compilation abandoned messages
37066
37067         * lib.adb: (Remove_Unit): New procedure
37068
37069         * lib.ads: (Remove_Unit): New procedure
37070
37071         * lib-load.adb: Minor reformatting
37072
37073 2003-11-24  Vincent Celier  <celier@gnat.com>
37074
37075         * make.adb:
37076         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37077         (Marking_Label): Label to mark processed source files. Incremented for
37078         each executable.
37079         (Gnatmake): Increase Marking_Labet for each executable
37080         (Is_Marked): Compare against marking label
37081         (Mark): Mark with marking label
37082
37083 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
37084
37085         * s-thread.ads:
37086         Move the declaration of the TSD for System.Threads to System.Soft_Links.
37087         Add some comments.
37088
37089         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
37090         (rts-cert): build a single relocatable object for the run-time lib.
37091         Fix perms.
37092
37093 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
37094
37095         * Make-lang.in:
37096         Use gnatls rather than gcc to obtain the location of GNAT RTL for
37097         crosstools build.
37098
37099 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
37100
37101         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
37102         can not use it as before (that is, as a variable) when dumping it into
37103         the tree file. Add a local variable to store the result of this
37104         function and to be used as the string to be written into the tree.
37105
37106         * scn.adb (Initialize_Scanner): Add comments explaining the recent
37107         changes.
37108
37109         * sinput.adb (Source_First, Source_Last): In case of
37110         Internal_Source_File, replace returning attributes of
37111         Internal_Source_Ptr (which is wrong) with returning attributes of
37112         Internal_Source.
37113
37114 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
37115
37116         * sem_ch3.adb:
37117         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
37118         used for implicit concatenation operators.
37119         Code cleanup.
37120
37121         * sem_elab.adb:
37122         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
37123         task bodies that are in the scope of a Suppress pragma.
37124         (Check_A Call): Use the flag to prevent spurious elaboration checks.
37125
37126         * sinfo.ads, sinfo.adb:
37127         New flag No_Elaboration_Check on function/procedure calls, to properly
37128         suppress checks on calls in task bodies that are within a local suppress
37129         pragma.
37130
37131         * exp_ch4.adb:
37132         (Expand_Concatenate_Other): Use the proper integer type for the
37133         expression for the upper bound, to avoid universal_integer computations
37134         when possible.
37135
37136 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
37137
37138         * .cvsignore: Delete.
37139
37140 2003-11-21  Andreas Schwab  <schwab@suse.de>
37141
37142         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
37143
37144 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
37145
37146         * 5wsystem.ads: Enable zero cost exception.
37147
37148 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
37149
37150         * 5ztiitho.adb: Remove an unreferenced variable.
37151
37152 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
37153
37154         * adaint.c: For FreeBSD, use mkstemp.
37155
37156 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
37157
37158         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
37159
37160 2003-11-21  Robert Dewar  <dewar@gnat.com>
37161
37162         * bld.adb: Remove useless USE of gnatvsn
37163
37164         * gnatchop.adb: Minor reformatting
37165         Clean up version handling to be more consistent
37166
37167         * gnatxref.adb: Minor reformatting
37168
37169         * gprcmd.adb: Minor reformatting
37170         Fix output of copyright to be more consistent with other tools
37171
37172 2003-11-21  Vincent Celier  <celier@gnat.com>
37173
37174         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
37175
37176 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
37177
37178         * atree.adb (Initialize): Add initializations for global variables
37179         used in New_Copy_Tree.
37180
37181         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
37182         Internal_Source_File as the actual).
37183         Put the set of statements creating Any_Character before the set of
37184         statements creating Any_Array to have Any_Character fully initialized
37185         when it is used in creating Any_Array.
37186
37187         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
37188         not call Scan in case if the actual is Internal_Source_File
37189         Add 2003 to copyright note.
37190
37191         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
37192         processing Internal_Source_File.
37193
37194         * types.ads: Add the constant Internal_Source_File representing the
37195         source buffer for artificial source-code-like strings created within
37196         the compiler (the definition of Source_File_Index is changed).
37197
37198 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
37199
37200         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
37201         56system.ads: New file, FreeBSD version.
37202
37203 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
37204
37205         * Make-lang.in (ada.extraclean): Delete.
37206
37207 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
37208
37209         * gnatmem.adb: Clean up verbose output.
37210
37211         * gprcmd.adb: Change copyright to FSF.
37212
37213 2003-11-19  Vincent Celier  <celier@gnat.com>
37214
37215         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
37216         and Version (ignored).
37217
37218         * symbols.ads: (Policy): New type
37219         (Initialize): New parameter Reference, Symbol_Policy and
37220         Library_Version.
37221         Remove parameter Force.
37222         Minor reformatting.
37223
37224         * snames.ads, snames.adbadb: New standard names
37225         Library_Reference_Symbol_File and Library_Symbol_Policy
37226
37227         * mlib-prj.adb:
37228         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
37229         project.
37230
37231         * mlib-tgt.adb:
37232         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
37233
37234         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
37235
37236         * prj.adb: (Project_Empty): New component Symbol_Data
37237
37238         * prj.ads: (Policy, Symbol_Record): New types
37239         (Project_Data): New component Symbol_Data
37240
37241         * prj-attr.adb:
37242         New attributes Library_Symbol_File, Library_Symbol_Policy and
37243         Library_Reference_Symbol_File.
37244
37245         * prj-nmsc.adb:
37246         (Ada_Check): When project is a Stand-Alone library project, process
37247         attribute Library_Symbol_File, Library_Symbol_Policy and
37248         Library_Reference_Symbol_File.
37249
37250         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37251         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
37252         5sml-tgt.adb (Build_Dynamic_Library): New parameter
37253         Symbol_Data (ignored).
37254
37255         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
37256         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
37257         functions Option_File_Name and Version_String. Set new options of
37258         gnatsym related to symbol file, symbol policy and reference symbol
37259         file.
37260
37261         * 5vsymbol.adb:
37262         Extensive modifications to take into account the reference symbol file,
37263         the symbol policy, the library version and to put in the symbol file the
37264         minor and major IDs.
37265
37266         * bld.adb (Process_Declarative_Items): Put second argument of
37267         gprcmd to_absolute between single quotes, to avoid problems with
37268         Windows.
37269
37270         * bld-io.adb: Update Copyright notice.
37271         (Flush): Remove last character of a line, if it is a back slash, to
37272         avoid make problems.
37273
37274         * gnatsym.adb:
37275         Implement new scheme with reference symbol file and symbol policy.
37276
37277         * g-os_lib.ads: (Is_Directory): Clarify comment
37278
37279 2003-11-19  Robert Dewar  <dewar@gnat.com>
37280
37281         * atree.adb: Move New_Copy_Tree global variables to head of package
37282
37283         * errout.adb: Minor reformatting
37284
37285 2003-11-19  Javier Miranda  <miranda@gnat.com>
37286
37287         * sem_ch4.adb: (Diagnose_Call): Improve error message.
37288         Add reference to Ada0Y (AI-50217)
37289
37290         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
37291         sem_util.adb: Add reference to AI-50217
37292
37293         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
37294
37295         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
37296
37297         * sem_aggr.adb: Complete documentation of AI-287 changes
37298
37299         * par-ch4.adb: Document previous changes.
37300
37301         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
37302         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
37303         Ada0Y (AI-50217)
37304
37305         * exp_aggr.adb: Add references to AI-287 in previous changes
37306
37307 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
37308
37309         * exp_ch6.adb:
37310         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
37311         in the rewriting is the result of an inlined call.
37312
37313         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
37314         parameter is a type conversion, use original node to construct the
37315         post-call assignment, because expression may have been rewritten, e.g.
37316         if it is a packed array.
37317
37318         * sem_attr.adb:
37319         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
37320         body, just as it is in an instance.
37321         Categorization routines
37322
37323         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
37324         Instantiate_Object): Set proper sloc reference for message on missing
37325         actual.
37326
37327 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
37328
37329         * Makefile.in: Add FreeBSD libgnat pairs.
37330
37331         * usage.adb: Fix typo in usage message.
37332
37333 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
37334
37335         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
37336         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
37337         pragma Thread_Body.
37338         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
37339
37340         * s-thread.adb: This file is now a dummy implementation of
37341         System.Thread.
37342
37343 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
37344
37345         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
37346
37347 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
37348
37349         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
37350         instanciation references in the parent type description.
37351
37352 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37353
37354         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
37355
37356         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
37357         TYPE_PRECISION directly from esize.
37358
37359 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
37360
37361         * cstreams.c:
37362         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
37363
37364         * init.c: Initialization routines for FreeBSD
37365
37366         * link.c: Link info for FreeBSD
37367
37368         * sysdep.c: Add the case of FreeBSD
37369
37370 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
37371
37372         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
37373         already called in System.Threads.
37374
37375         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
37376         environment task, as it has been moved to System.Threads.Initialization.
37377
37378 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
37379
37380         * adaint.c (__gnatlib_install_locks): Only reference
37381         __gnat_install_locks on VMS, since other platforms can avoid using
37382         --enable-threads=gnat
37383
37384 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37385
37386         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
37387
37388         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
37389         TYPE_PACKED_ARRAY_TYPE_P.
37390         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
37391
37392         Part of PR ada/12806
37393         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
37394         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
37395
37396 2003-11-17  Vincent Celier  <celier@gnat.com>
37397
37398         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
37399         to False.
37400         Do not set exit status to Failure when Warning is True.
37401         (Gnatchop): Make errors "no compilation units found" and
37402         "no source files written" warnings only.
37403
37404         * make.adb (Gnatmake): When using a project file, set
37405         Look_In_Primary_Dir to False.
37406         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
37407         and Local_Configuration_Pragmas in the project where they are declared
37408         not an extending project which might have inherited them.
37409
37410         * osint.adb (Locate_File): If Name is already an absolute path, do not
37411         look for a directory.
37412
37413         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
37414         -gnats (Check_Syntax) is used, issue only a warning, not an error.
37415
37416         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
37417         in objects of type Variable_Value.
37418
37419         * prj.ads: (Variable_Value): New component Project
37420
37421         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
37422         is in a project extended by Project.
37423
37424         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
37425         Project of Variable_Values to this new parameter value.
37426         (Expression): Set component Project of Variable_Values.
37427         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
37428         Set the component Project in array elements.
37429
37430 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
37431
37432         * errout.adb: (Initialize): Add initialization for error nodes.
37433
37434         * sem_ch12.adb (Initialize): Add missing initializations for
37435         Exchanged_Views and Hidden_Entities.
37436
37437 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
37438
37439         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
37440         already instantiated tree for use in subsequent inlining.
37441         (Analyze_Associations, Instantiate_Formal_Subprogram,
37442         Instantiate_Object): improve error message for mismatch in
37443         instantiations.
37444
37445         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
37446         instantiations of subprograms declared in instances.
37447
37448 2003-11-17  Javier Miranda  <miranda@gnat.com>
37449
37450         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
37451         executed only under the Extensions_Allowed flag.
37452
37453 2003-11-17  Robert Dewar  <dewar@gnat.com>
37454
37455         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
37456         zeroes suppressed.
37457         (Address_Image): Fix bug of returning 0x instead of 0x0
37458         Minor reformatting (function specs).
37459
37460         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
37461         (missed case of 33-63)
37462
37463         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
37464
37465         * s-thread.adb: Add comments for pragma Restriction
37466
37467         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
37468         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
37469
37470 2003-11-17  Ed Falis  <falis@gnat.com>
37471
37472         * s-thread.adb: Added No_Tasking restriction for this implementation.
37473
37474 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
37475
37476         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
37477         instanciation references in the parent type description.
37478
37479 2003-11-17  GNAT Script  <nobody@gnat.com>
37480
37481         * Make-lang.in: Makefile automatically updated
37482
37483 2003-11-16  Jason Merrill  <jason@redhat.com>
37484
37485         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
37486         and TAGS files that include them for each front end.
37487
37488 2003-11-14  Andreas Jaeger  <aj@suse.de>
37489
37490         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
37491         is the canonical version.
37492         * misc.c (gnat_handle_option): Likewise.
37493
37494         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
37495
37496         * 5nsystem.ads: New file for x86_64-linux-gnu.
37497
37498 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
37499
37500         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
37501
37502         * comperr.adb: Fix logic in previous change.
37503
37504 2003-11-13  Vincent Celier  <celier@gnat.com>
37505
37506         * 5bml-tgt.adb (Build_Dynamic_Library): Use
37507         Osint.Include_Dir_Default_Prefix instead of
37508         Sdefault.Include_Dir_Default_Name.
37509
37510         * gnatlbr.adb: Update Copyright notice
37511         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
37512         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
37513         instead of Sdefault.Object_Dir_Default_Name
37514
37515         * gnatlink.adb:
37516         (Process_Binder_File): Never suppress the option following -Xlinker
37517
37518         * mdll-utl.adb:
37519         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
37520         Sdefault.Object_Dir_Default_Name.
37521
37522         * osint.ads, osint.adb:
37523         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
37524         Minor reformatting.
37525
37526         * vms_conv.ads: Minor reformating
37527         Remove GNAT STANDARD and GNAT PSTA
37528
37529         * vms_conv.adb:
37530         Allow GNAT MAKE to have several files on the command line.
37531         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
37532         Sdefault.Object_Dir_Default_Name.
37533         Minor Reformating
37534         Remove data for GNAT STANDARD
37535
37536         * vms_data.ads:
37537         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
37538         Remove data for GNAT STANDARD
37539         Remove options and documentation for -gnatwb/-gnatwB: these warning
37540         options no longer exist.
37541
37542 2003-11-13  Ed Falis  <falis@gnat.com>
37543
37544         * 5zthrini.adb: (Init_RTS): Made visible
37545
37546         * 5zthrini.adb:
37547         (Register): Removed unnecessary call to taskVarGet that checked whether
37548          an ATSD was already set as a task var for the argument thread.
37549
37550         * s-thread.adb:
37551         Updated comment to reflect that this is a VxWorks version
37552         Added context clause for System.Threads.Initialization
37553         Added call to System.Threads.Initialization.Init_RTS
37554
37555 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
37556
37557         * 5zthrini.adb:
37558         (Init_RTS): New procedure, for the initialization of the run-time lib.
37559
37560         * s-thread.adb:
37561         Remove dependancy on System.Init, so that this file can be used in the
37562         AE653 sequential run-time lib.
37563
37564 2003-11-13  Robert Dewar  <dewar@gnat.com>
37565
37566         * bindgen.adb: Minor reformatting
37567
37568 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
37569
37570         * checks.adb:
37571         (Apply_Discriminant_Check): Do no apply check if target type is derived
37572         from source type with no applicable constraint.
37573
37574         * lib-writ.adb:
37575         (Ensure_System_Dependency): Do not apply the style checks that may have
37576         been specified for the main unit.
37577
37578         * sem_ch8.adb:
37579         (Find_Selected_Component): Further improvement in error message, with
37580         RM reference.
37581
37582         * sem_res.adb:
37583         (Resolve): Handle properly the case of an illegal overloaded protected
37584         procedure.
37585
37586 2003-11-13  Javier Miranda  <miranda@gnat.com>
37587
37588         * exp_aggr.adb:
37589         (Has_Default_Init_Comps): New function to check the presence of
37590         default initialization in an aggregate.
37591         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
37592         extension aggregate of a limited record. In addition, a new formal
37593         was added to do not initialize the record controller (if any) during
37594         this recursive expansion of ancestors.
37595         (Init_Controller): Add support for limited record components.
37596         (Expand_Record_Aggregate): In case of default initialized components
37597         convert the aggregate into a set of assignments.
37598
37599         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
37600         describing the new syntax.
37601         Nothing else needed to be done because this subprogram delegates part of
37602         its work to P_Precord_Or_Array_Component_Association.
37603         (P_Record_Or_Array_Component_Association): Give support to the new
37604         syntax for default initialization of components.
37605
37606         * sem_aggr.adb:
37607         (Resolve_Aggregate): Relax the strictness of the frontend in case of
37608         limited aggregates.
37609         (Resolve_Record_Aggregate): Give support to default initialized
37610         components.
37611         (Get_Value): In case of default initialized components, duplicate
37612         the corresponding default expression (from the record type
37613         declaration). In case of default initialization in the *others*
37614         choice, do not check that all components have the same type.
37615         (Resolve_Extension_Aggregate): Give support to limited extension
37616         aggregates.
37617
37618         * sem_ch3.adb:
37619         (Check_Initialization): Relax the strictness of the front-end in case
37620         of aggregate and extension aggregates. This test is now done in
37621         Get_Value in a per-component manner.
37622
37623         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
37624         expression corresponds to a limited aggregate. This test is now done
37625         in Get_Value.
37626
37627         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
37628         Box_Present flag.
37629
37630         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
37631         present in an N_Component_Association node
37632
37633 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
37634
37635         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
37636         type-conformant entry only if they are homographs.
37637
37638 2003-11-13  GNAT Script  <nobody@gnat.com>
37639
37640         * Make-lang.in: Makefile automatically updated
37641
37642 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37643
37644         * adadecode.c: Use <> form of include for ctype.h.
37645         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
37646
37647 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37648
37649         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
37650         Works around PR middle-end/6552.
37651
37652 2003-11-10  Ed Falis  <falis@gnat.com>
37653
37654         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
37655
37656         * 5zinit.adb: (Install_Handler): Moved back to spec
37657         (Install_Signal_Handlers): Deleted
37658
37659         * 5zthrini.adb: Added context clause for System.Storage_Elements
37660         (Register): Only handles creation of taskVar; initialization moved to
37661         Thread_Body_Enter.
37662         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
37663         Added declaration of environment task secondary stack and
37664         initialization.
37665
37666         * s-thread.adb: Implement bodies for thread body processing
37667
37668         * s-thread.ads:
37669         Added comment identifying supported targets for pragma Thread_Body.
37670
37671 2003-11-10  Pascal Obry  <obry@gnat.com>
37672
37673         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
37674         GNAT_MAX_PATH_LEN.
37675
37676         * s-fileio.adb:
37677         (Open): Properly check for string length before copying into the buffer.
37678         Raises Name_Error if buffer is too small. Note that this was a potential
37679         buffer overflow.
37680
37681 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
37682
37683         * bindgen.adb, comperr.adb: Code clean ups.
37684         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
37685
37686 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
37687
37688         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
37689
37690 2003-11-10  Vincent Celier  <celier@gnat.com>
37691
37692         * gprcmd.adb:
37693         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
37694         installation.
37695
37696         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
37697
37698         * prj.adb: (Project_Empty): Add new boolean component Virtual
37699
37700         * prj.ads: (Virtual_Prefix): New constant string
37701         (Project_Data): New boolean component Virtual
37702
37703         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
37704         a library project is extended by a virtual extending project.
37705
37706         * prj-part.adb:
37707         Modifications throughout to implement extending-all project, including:
37708         (Virtual_Hash, Processed_Hash): New hash tables
37709         (Create_Virtual_Extending_Project): New procedure
37710         (Look_For_Virtual_Projects_For): New procedure
37711
37712         * prj-proc.adb:
37713         (Process): After checking the projects, if main project is an
37714         extending-all project, set the object directory of all virtual extending
37715         project to the object directory of the main project.
37716         Adjust error message when a virtual extending project has the same
37717         object directory as an project being extended.
37718         (Recursive_Process): If name starts with the virtual prefix, set Virtual
37719         to True in the project data.
37720
37721         * prj-tree.adb:
37722         (Default_Project_Node): Add new boolean component Extending_All
37723         (Is_Extending_All): New function
37724         (Set_Is_Extending_All): New procedure
37725
37726         * prj-tree.ads: (Is_Extending_All): New function
37727         (Set_Is_Extending_All): New procedure
37728         (Project_Node_Record): New boolean component Extending_All
37729
37730         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
37731
37732         * vms_data.ads:
37733         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
37734
37735         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
37736         "gprcmd prefix" to define it.
37737
37738 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
37739
37740         * einfo.ads: Fix a typo and remove an extraneous word in comments.
37741
37742         * lib-load.adb:
37743         (Create_Dummy_Package_Unit): Set the scope of the entity for the
37744         created dummy package to Standard_Standard, not to itself, to
37745         defend other parts of the front-end against encoutering a cycle in
37746         the scope chain.
37747
37748         * sem_ch10.adb:
37749         (Analyze_With_Clause): When setting the entities for the successive
37750         N_Expanded_Names that constitute the name of a child unit, do not
37751         attempt to go further than Standard_Standard in the chain of scopes.
37752         This case arises from the placeholder units created by
37753         Create_Dummy_Package_Unit in the case of a with_clause for a
37754         nonexistent child unit.
37755
37756 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
37757
37758         * exp_ch6.adb:
37759         (Expand_Thread_Body): Place subprogram on scope stack, so that new
37760         declarations are given the proper scope.
37761
37762         * sem_ch13.adb:
37763         (Check_Expr_Constants): Reject an expression that contains a constant
37764         created during expansion, and that appears after the object to which
37765         the address clause applies.
37766
37767         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
37768         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
37769         that uses 'Range of a function call with controlled components, so
37770         that the function result can be finalized before starting the loop.
37771
37772         * sem_ch8.adb:
37773         (Find_Selected_Component): Improve error message when prefix is
37774         an implicit dereference of an incomplete type.
37775
37776 2003-11-10  Robert Dewar  <dewar@gnat.com>
37777
37778         * opt.ads: New Print_Standard flag for -gnatS switch
37779
37780         * sem_ch13.adb: Remove some additional checks for unaligned arrays
37781
37782         * cstand.adb (Create_Standard): Print out package standard if -gnatS
37783         switch set
37784
37785         * debug.adb: Update doc for -gnatds to discuss relationship with new
37786         -gnatS flag
37787
37788         * sinfo.adb: Add new field Entity_Or_Associated_Node
37789
37790         * sinfo.ads: Add new field Entity_Or_Associated_Node
37791         Update documentation for Associated_Node and Entity fields to clarify
37792         relationship and usage.
37793
37794         * sprint.adb:
37795         (Write_Id): Properly process Associated_Node field in generic template
37796
37797         * switch-c.adb:
37798         Recognize new -gnatS switch for printing package Standard
37799         This replaces gnatpsta
37800
37801         * usage.adb:
37802         Add line for  new -gnatS switch for printing package Standard
37803         This replaces gnatpsta
37804
37805 2003-11-10  Andreas Jaeger  <aj@suse.de>
37806
37807         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
37808         integer.
37809
37810 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37811
37812         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
37813         by gnat1.
37814
37815 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37816
37817         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
37818         no longer needed.
37819
37820         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
37821
37822         * sysdep.c: Add handling of cygwin.
37823
37824 2003-11-10  GNAT Script  <nobody@gnat.com>
37825
37826         * Make-lang.in: Makefile automatically updated
37827
37828 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37829
37830         PR 12950
37831         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
37832         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
37833         Replace GNAT_ROOT by GCC_ROOT.
37834
37835         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
37836
37837 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
37838
37839         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
37840         and update for changed meaning of GET_MODE_BITSIZE.
37841
37842 2003-11-04  Doug Rupp  <rupp@gnat.com>
37843
37844         * sysdep.c: Problem discovered during IA64 VMS port.
37845         [VMS] #include <unixio.h> to get proper prototypes.
37846
37847         * adaint.c:
37848         Issues discovered/problems fixed during IA64 VMS port.
37849         [VMS] #define _POSIX_EXIT for proper semantics.
37850         [VMS] #include <unixio.h> for proper prototypes.
37851         [VMS] (fork): #define IA64 version.
37852         (__gnat_os_exit): Remove unnecessary VMS specific code.
37853
37854 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37855
37856         Part of PR ada/12806
37857         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
37858         tree, not integer.
37859
37860         * decl.c:
37861         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
37862         not integer.
37863
37864         * targtyps.c, decl.c, misc.c,
37865         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
37866         routines to work around change in FP sizing semantics in GCC.
37867
37868         * utils.c:
37869         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
37870
37871         * gigi.h: (enumerate_modes): New function.
37872
37873         * Make-lang.in: (ada/misc.o): Add real.h.
37874
37875         * misc.c: (enumerate_modes): New function.
37876
37877 2003-11-04  Robert Dewar  <dewar@gnat.com>
37878
37879         * 3vtrasym.adb: Minor reformatting
37880         Use terminology encoded/decoded name, rather than C++ specific notion
37881         of mangling (this is the terminology used throughout GNAT).
37882
37883         * einfo.h: Regenerated
37884
37885         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
37886
37887         * exp_ch6.adb:
37888         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
37889
37890         * par-prag.adb: Add dummy entry for Thread_Body pragma
37891
37892         * rtsfind.ads:
37893         Add entries for System.Threads entities for thread body processing
37894
37895         * sem_attr.adb:
37896         (Analyze_Pragma, Access attributes): Check these are not applied to a
37897         thread body, since this is not permitted
37898
37899         * sem_prag.adb: Add processing for Thread_Body pragma.
37900         Minor comment fix.
37901
37902         * sem_res.adb:
37903         (Resolve_Call): Check for incorrect attempt to call a thread body
37904          procedure with a direct call.
37905
37906         * snames.ads, snames.adb: Add entry for Thread_Body pragma
37907         Add names associated with thread body expansion
37908
37909         * snames.h: Add entry for Thread_Body pragma
37910
37911         * s-thread.adb: Add entries for thread body processing
37912         These are dummy bodies so far
37913
37914         * s-thread.ads: Add documentation on thread body handling.
37915         Add entries for thread body processing.
37916
37917 2003-11-04  Javier Miranda  <miranda@gnat.com>
37918
37919         * sem_ch10.adb:
37920         (Build_Limited_Views): Return after posting an error in case of limited
37921         with_clause on subprograms, generics, instances or generic renamings
37922         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
37923         on subprograms, generics, instances or generic renamings
37924
37925 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
37926
37927         * raise.c (setup_to_install): Correct mistake in last revision; two
37928         arguments out of order.
37929
37930         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
37931         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
37932         notice, missed in previous change.
37933         Remove trailing blanks and other style errors introduced in previous
37934         change.
37935
37936 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
37937
37938         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
37939         rid of the wrapper for a LJM type, ensuring we don't do that if the
37940         field is addressable.  This avoids potential low level type view
37941         mismatches later on, for instance in a by-reference argument passing
37942         process.
37943
37944 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37945
37946         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
37947         aligned at byte boundary.
37948
37949 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
37950
37951         * decl.c (components_to_record): Do not delete the empty variants from
37952         the end of the union type.
37953
37954 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
37955
37956         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
37957         operation for a derived type, an explicit declaration may use a local
37958         subtype of Boolean.
37959
37960 2003-11-04  Vincent Celier  <celier@gnat.com>
37961
37962         * make.adb (Gnatmake): Allow main sources on the command line with a
37963         library project when it is only for compilation (no binding or
37964         linking).
37965
37966 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37967
37968         * Makefile.in: Remove many duplicate variables.
37969
37970 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
37971
37972         * Make-lang.in (dvi): Move targets to $(docobjdir).
37973         (gnat_ug_vms.dvi): Simplify rule and adjust target.
37974         (gnat_ug_wnt.dvi): Likewise.
37975         (gnat_ug_unx.dvi): Likewise.
37976         (gnat_ug_vxw.dvi): Likewise.
37977         (gnat_rm.dvi): Likewise.
37978         (gnat-style.dvi): Likewise.
37979
37980 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
37981
37982         * gigi.h: Missed commit from update for C90.
37983
37984 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
37985
37986         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
37987
37988 2003-10-31  Andreas Schwab  <schwab@suse.de>
37989
37990         * raise.c (get_action_description_for): Fix typo in last change.
37991
37992 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
37993
37994         PR ada/12761
37995         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
37996         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
37997
37998 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
37999
38000         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38001         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38002         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38003         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38004         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38005
38006 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
38007
38008         * 3vtrasym.adb:
38009         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38010         numbers when symbol name is too long.
38011
38012 2003-10-30  Ed Falis  <falis@gnat.com>
38013
38014         * g-signal.ads, g-signal.adb: New files
38015
38016         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38017
38018         * Makefile.rtl: Introduce GNAT.Signals
38019
38020 2003-10-30  Robert Dewar  <dewar@gnat.com>
38021
38022         * freeze.adb: Minor reformatting
38023
38024         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38025
38026         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38027         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38028         New handling of Id_Check parameter to improve recognition of keywords
38029         used as identifiers.
38030         Update copyright notice to include 2003
38031
38032 2003-10-29  Robert Dewar  <dewar@gnat.com>
38033
38034         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38035         sem_ch10.adb: Minor reformatting
38036
38037         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38038         (Expand_Assign_Record): Test right hand side for bit unaligned as well
38039
38040 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
38041
38042         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38043         Support for TBK$SYMBOLIZE-based symbolic traceback.
38044
38045 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
38046
38047         * exp_disp.adb:
38048         Revert previous change, that did not work well when pragma No_Run_Time
38049         was used in conjunction with a run-time other than ZFP.
38050
38051 2003-10-29  Vincent Celier  <celier@gnat.com>
38052
38053         * make.adb:
38054         (Gnatmake): When there are no Ada mains in attribute Main, disable the
38055          bind and link steps only is switch -z is not used.
38056
38057 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
38058
38059         * Makefile.generic: Remove duplicated setting of CC.
38060
38061         * Makefile.prolog: Set CC to gcc by default, to override make's
38062         default (cc).
38063
38064         * einfo.h: Regenerated.
38065
38066 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
38067
38068         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38069         current body, after compiling subunit.
38070
38071         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38072         when in deleted code, because gigi needs properly ordered freeze
38073         actions to annotate types.
38074
38075         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38076         prevent the premature freezing of record type that contains
38077         subcomponents with a private type that does not yet have a completion.
38078
38079 2003-10-29  Javier Miranda  <miranda@gnat.com>
38080
38081         * sem_ch12.adb:
38082         (Analyze_Package_Instantiation): Check that instances can not be used in
38083         limited with_clauses.
38084
38085         * sem_ch8.adb:
38086         (Analyze_Package_Renaming): Check that limited withed packages cannot
38087         be renamed. Improve text on error messages related to limited
38088         with_clauses.
38089
38090         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
38091
38092         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
38093         Update copyright notice.
38094
38095         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
38096         (Install_Limited_Context_Clauses): New subprogram that isolates all the
38097         checks required for limited context_clauses and installs the limited
38098         view.
38099         (Install_Limited_Withed_Unit): Complete its documentation.
38100         (Analyze_Context): Check that limited with_clauses are only allowed in
38101         package specs.
38102         (Install_Context): Call Install_Limited_Context_Clauses after the
38103         parents have been installed.
38104         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
38105         package as 'From_With_Type'; this mark indicates that the limited view
38106         is installed. Used to check bad usages of limited with_clauses.
38107         (Build_Limited_Views): Do not add shadow entities to the scope's list
38108         of entities. Do not add real entities to the Non_Limited_Views chain.
38109         Improve error notification.
38110         (Remove_Context_Clauses): Remove context clauses in two phases:
38111         limited views first and regular views later (to maintain the
38112         stack model).
38113         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
38114         its visible entities.
38115
38116 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
38117
38118         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
38119         with any type that Is_Fixed_Point_Type.
38120
38121         * sinfo.ads: Fix documentation for Associated_Node attribute.
38122
38123 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
38124
38125         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
38126         both '-gnatc' and '-gnatt' are specified.
38127
38128         * atree.adb (Initialize): Add initialization for Node_Count (set to
38129         zero).
38130
38131 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38132
38133         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
38134         do not consider as Pure.
38135
38136         Part of implementation of function-at-a-time:
38137
38138         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
38139         (tree_transform): Add new argument to build_component_ref.
38140         (tree_transform, case N_Assignment_Statement): Make and return an
38141         EXPR_STMT.
38142         (tree_transform): If result IS_STMT, set flags and return it.
38143         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38144
38145         * utils2.c (build_simple_component_ref, build_component_ref): Add new
38146         arg, NO_FOLD_P.
38147         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
38148         (build_allocator): Likewise.
38149
38150         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
38151         Add new arg to build_component_ref.
38152         (maybe_unconstrained_array, unchecked_convert): Likewise.
38153
38154         * ada-tree.def (EXPR_STMT): New code.
38155
38156         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
38157
38158         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
38159         build_component_ref calls.
38160
38161         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
38162
38163         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38164         (build_component_ref): Add new argument, NO_FOLD_P.
38165
38166 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
38167
38168         * Makefile.generic: Add missing substitution on object_deps handling.
38169
38170         PR ada/5909
38171         * Make-lang.in (check-ada): Enable ACATS test suite.
38172
38173 2003-10-27  Robert Dewar  <dewar@gnat.com>
38174
38175         * exp_ch3.adb:
38176         (Freeze_Array_Type): We do not need an initialization routine for types
38177         derived from String or Wide_String. They should be treated the same
38178         as String and Wide_String themselves. This caused problems with the
38179         use of Initialize_Scalars.
38180
38181         * exp_ch5.adb:
38182         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
38183         composites. This allows use of component clauses that are not byte
38184         aligned.
38185
38186         * sem_prag.adb:
38187         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
38188         is an attempt to pack an array of atomic objects.
38189
38190         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
38191
38192 2003-10-27  Pascal Obry  <obry@gnat.com>
38193
38194         * g-dirope.adb:
38195         (Basename): Check for drive letters in a pathname only on DOS based OS.
38196
38197 2003-10-27  Vincent Celier  <celier@gnat.com>
38198
38199         * make.adb:
38200         (Gnatmake): When unable to change dir to the object dir, display the
38201         content of the parent dir of the obj dir, to try to understand why this
38202         happens.
38203
38204 2003-10-27  GNAT Script  <nobody@gnat.com>
38205
38206         * Make-lang.in: Makefile automatically updated
38207
38208 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
38209
38210         * sem_ch12.adb:
38211         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
38212         should not be done in Save/Restore_Scope_Stack, because it is performed
38213         locally.
38214
38215         * sem_ch8.adb:
38216         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38217         whether use clauses should be removed/restored.
38218
38219         * sem_ch8.ads:
38220         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38221         whether use clauses should be removed/restored.
38222
38223 2003-10-26  Andreas Jaeger  <aj@suse.de>
38224
38225         * Makefile.in: Remove duplicated lines.
38226
38227 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38228
38229         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
38230         minimize the differences with ACT tree.
38231
38232         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
38233         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
38234         Gnatvsn.Gnat_Static_Version_String to reduce differences between
38235         ACT and FSF trees.
38236
38237 2003-10-24  Pascal Obry  <obry@gnat.com>
38238
38239         PR ada/12014
38240         * adadecode.c (ostrcpy): New function.
38241         (__gnat_decode): Use ostrcpy of strcpy.
38242         (has_prefix): Set first parameter a const.
38243         (has_suffix): Set first parameter a const.
38244         Update copyright notice. Fix source name in header.
38245         Removes a trailing space.
38246
38247 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
38248
38249         * exp_disp.adb:
38250         Remove the test against being in No_Run_Time_Mode before generating a
38251         call to Register_Tag. It is redundant with the test against the
38252         availability of the function Register_Tag.
38253
38254 2003-10-24  Vincent Celier  <celier@gnat.com>
38255
38256         * g-catiio.adb: (Month_Name): Correct spelling of February
38257
38258         * make.adb: (Mains): New package
38259         (Initialize): Call Mains.Delete
38260         (Gnatmake): Check that each main on the command line is a source of a
38261         project file and, if there are several mains, each of them is a source
38262         of the same project file.
38263         (Gnatmake): When a foreign language is specified in attribute Languages,
38264         no main is specified on the command line and attribute Mains is not
38265         empty, only build the Ada main. If there is no Ada main, just compile
38266         the Ada sources and their closure.
38267         (Gnatmake): If a main is specified on the command line with directory
38268         information, check that the source exists and, if it does, that the path
38269         is the actual path of a source of a project.
38270
38271         * prj-env.adb:
38272         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
38273         Full_Path is True, return the full path instead of the simple file name.
38274         (Project_Of): New function
38275
38276         * prj-env.ads:
38277         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
38278         defaulted to False.
38279         (Project_Of): New function
38280
38281 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38282
38283         * Makefile.generic:
38284         Ensure objects of main project are always checked and rebuilt if needed.
38285         Set CC to gcc by default.
38286         Prepare new handling of link by creating a global archive (not activated
38287         yet).
38288
38289         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
38290         stringt.h: Update copyright notice. Remove trailing blanks.
38291         Fix source name in header.
38292
38293 2003-10-24  Robert Dewar  <dewar@gnat.com>
38294
38295         * sem_ch12.adb: Minor reformatting
38296
38297         * sem_ch3.adb:
38298         Minor reformatting (including new function return style throughout)
38299
38300         * sem_ch3.ads:
38301         Minor reformatting (including new function return style throughout)
38302
38303 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38304
38305         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
38306         stringt.h: Update copyright notice. Remove trailing blanks.
38307         Fix source name in header.
38308
38309 2003-10-24  GNAT Script  <nobody@gnat.com>
38310
38311         * Make-lang.in: Makefile automatically updated
38312
38313 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
38314
38315         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
38316         stringt.h: Convert to ISO C90 declarations and definitions.
38317
38318 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
38319
38320         PR ada/11978
38321         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
38322         External_Tag attribute definition clauses.
38323
38324 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
38325
38326         PR ada/7613
38327         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
38328         child unit, generate a fully qualified name to avoid spurious errors
38329         when the context contains renamings of different child units with
38330         the same simple name.
38331
38332         * exp_dbug.ads: Add documentation on name qualification for renamings
38333         of child units.
38334
38335 2003-10-23  Robert Dewar  <dewar@gnat.com>
38336
38337         * g-regpat.ads, g-regpat.adb: Minor reformatting
38338
38339 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
38340
38341         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
38342
38343 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38344
38345         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
38346         Machine call.
38347
38348         * urealp.h: (Machine): Update to proper definition.
38349
38350 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
38351
38352         * init.c, adaint.c: Minor reformatting.
38353
38354 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
38355
38356         * adaint.c (w32_epoch_offset): Define static const at file level.
38357         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
38358         rather than t_create, t_access in call to GetFileTime. Use union
38359         to convert between FILETIME and  unsigned long long.
38360         (__gnat_file_time_name): Test for invalid file handle.
38361         (__gnat_set_filetime_name): Support win32 targets using
38362         w32api SetFileTime.
38363
38364 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
38365
38366         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
38367
38368         * ctrl_c.c (__gnat_int_handler): Remove declaration.
38369
38370         * decl.c (creat_concat_name):  Const-ify prefix.
38371
38372         * adaint.c: Include ctype.h if __MINGW32__.
38373         (__gnat_readlink): Mark arguments as possibly unused.
38374         (__gnat_symlink): Likewise.
38375         (__gnat_is_symbolic_link): Likewise.
38376         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
38377         declaration
38378         (__gnat_file_time_name): Don't declare struct stat statbuf when
38379         not needed.
38380         (__gnat_is_absolute_path): Add parenthesis around condition of
38381         'if' statement to avoid warning.
38382         (__gnat_plist_init): Specify void as parameter.
38383         (plist_enter): Likewise.
38384         (plist_leave): Likewise.
38385         (remove_handle): Make static. Initialize prev.
38386
38387 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
38388
38389         PR ada/10110
38390         * Makefile.in: Disable build of gnatpsta.
38391         * cstreams.c (__gnat_full_name): Minor improvements and clean up
38392         of previous change.
38393
38394 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38395
38396         * tracebak.c (MAX): Avoid redefinition warning.
38397
38398         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
38399         Change msg to const char *.
38400         (__gnat_install_handler): Remove ss, unused.
38401         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
38402         to const char *.
38403         * cstreams.c (__gnat_full_name): Declare p only when used.
38404         (__gnat_full_name) [sgi] Return buffer.
38405
38406 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
38407
38408         * mingw32.h: New file.
38409         * gnat_wrapper.adb: New file.
38410
38411 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
38412
38413         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
38414         string match a pre compiled regular expression (the corresponding
38415         version of the function working on a raw regular expression)
38416         Fix typos in various comments
38417         Update copyright notice in spec
38418
38419 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
38420
38421         * exp_ch3.adb:
38422         (Component_Needs_Simple_Initialization): Return False when the type is a
38423         packed bit array. Revise spec comments to document this case.
38424
38425         * exp_prag.adb:
38426         (Expand_Pragma_Import): Set any expression on the imported object to
38427         empty to avoid initializing imported objects (in particular this
38428         covers the case of zero-initialization of bit arrays).
38429         Update copyright notice.
38430
38431 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
38432
38433         * sem_ch12.adb:
38434         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
38435         a subunit is missing.
38436         (Instantiate_Subprogram_Body): If body of function is missing, set type
38437         of return expression explicitly in dummy body, to prevent cascaded
38438         errors when a subunit is missing.
38439         Fixes PR 5677.
38440
38441         * sem_ch3.adb:
38442         (Access_Subprogram_Declaration): Verify that return type is valid.
38443         Fixes PR 8693.
38444
38445         * sem_elab.adb:
38446         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
38447         generic.
38448         Fixes PR 12318.
38449
38450         * sem_util.adb:
38451         (Corresponding_Discriminant): If the scope of the discriminant is a
38452         private type without discriminant, use its full view.
38453         Fixes PR 8247.
38454
38455 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
38456
38457         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
38458         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
38459         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
38460         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
38461         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
38462         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
38463         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38464         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
38465         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
38466         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
38467         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
38468         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
38469         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
38470         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
38471         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
38472         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
38473         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
38474         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
38475         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
38476         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
38477         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
38478         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
38479         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
38480         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
38481         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
38482         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
38483         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
38484         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
38485         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
38486         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
38487         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
38488         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
38489         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
38490         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
38491         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
38492         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
38493         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
38494         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
38495         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
38496         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
38497         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
38498         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
38499         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
38500         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
38501         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
38502         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
38503         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
38504         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
38505         vms_conv.ads, vms_conv.adb, vms_data.ads,
38506         vxaddr2line.adb: Files added. Merge with ACT tree.
38507
38508         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
38509         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
38510         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
38511         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
38512         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
38513         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
38514         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38515         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
38516         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
38517         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
38518
38519         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38520         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38521         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38522         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38523         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
38524         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
38525         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38526         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
38527         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
38528         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
38529         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
38530         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
38531         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
38532         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
38533         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
38534         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
38535         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
38536         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38537         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
38538         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
38539         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
38540         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
38541         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
38542         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
38543         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
38544         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
38545         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
38546         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
38547         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
38548         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
38549         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
38550         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
38551         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38552         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
38553         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
38554         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
38555         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
38556         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
38557         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
38558         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
38559         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
38560         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
38561         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
38562         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
38563         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
38564         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
38565         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
38566         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
38567         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
38568         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
38569         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
38570         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
38571         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
38572         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
38573         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
38574         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
38575         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
38576         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
38577         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
38578         checks.adb, checks.ads, cio.c, comperr.adb,
38579         comperr.ads, csets.adb, cstand.adb, cstreams.c,
38580         debug_a.adb, debug_a.ads, debug.adb, decl.c,
38581         einfo.adb, einfo.ads, errout.adb, errout.ads,
38582         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
38583         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
38584         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
38585         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38586         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
38587         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
38588         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
38589         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
38590         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
38591         fe.h, fmap.adb, fmap.ads, fname.adb,
38592         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
38593         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
38594         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
38595         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38596         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38597         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38598         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
38599         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
38600         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
38601         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
38602         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
38603         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
38604         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
38605         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
38606         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
38607         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
38608         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
38609         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
38610         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
38611         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
38612         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
38613         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
38614         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
38615         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
38616         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
38617         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
38618         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
38619         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
38620         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
38621         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
38622         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
38623         layout.adb, lib.adb, lib.ads, lib-list.adb,
38624         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
38625         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38626         link.c, live.adb, make.adb, make.ads,
38627         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
38628         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
38629         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
38630         misc.c, mkdir.c, mlib.adb, mlib.ads,
38631         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
38632         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
38633         namet.adb, namet.ads, namet.h, nlists.ads,
38634         nlists.h, nmake.adt, opt.adb, opt.ads,
38635         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
38636         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
38637         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38638         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
38639         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
38640         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
38641         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
38642         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
38643         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
38644         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
38645         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
38646         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
38647         prj-util.adb, prj-util.ads, raise.c, raise.h,
38648         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
38649         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
38650         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
38651         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
38652         scans.ads, scn.adb, scn.ads, s-crc32.adb,
38653         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
38654         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38655         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
38656         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
38657         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
38658         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38659         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38660         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
38661         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
38662         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
38663         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
38664         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
38665         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
38666         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
38667         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38668         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
38669         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
38670         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
38671         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
38672         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
38673         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
38674         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
38675         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
38676         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
38677         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
38678         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
38679         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
38680         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
38681         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
38682         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
38683         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
38684         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
38685         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
38686         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
38687         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
38688         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
38689         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
38690         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
38691         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
38692         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
38693         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38694         stringt.adb, stringt.ads, stringt.h, style.ads,
38695         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
38696         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
38697         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
38698         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
38699         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
38700         table.adb, table.ads, targparm.adb, targparm.ads,
38701         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
38702         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
38703         ttypes.ads, types.ads, types.h, uintp.adb,
38704         uintp.ads, uintp.h, uname.adb, urealp.adb,
38705         urealp.ads, urealp.h, usage.adb, utils2.c,
38706         utils.c, validsw.adb, validsw.ads, widechar.adb,
38707         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
38708         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
38709         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
38710         gnatvsn.ads: Merge with ACT tree.
38711
38712         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
38713
38714 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
38715
38716         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
38717         (gnat_ug_vmx.info): Likewise.
38718         (gnat_ug_vxw.info): Likewise.
38719         (gnat_ug_wnt.info): Likewise.
38720         (gnat_rm.info): Likewise.
38721         (gnat-style.info): Likewise.
38722
38723         * Make-lang.in (ada.install-info): Remove target.
38724         (info): New target.
38725         (install-info): Likewise.
38726         (gnat_ug_unx.info): Simplify rule.
38727         (gnat_ug_vmx.info): Likewise.
38728         (gnat_ug_vxw.info): Likewise.
38729         (gnat_ug_wnt.info): Likewise.
38730         (gnat_rm.info): Likewise.
38731         (gnat-style.info): Likewise.
38732
38733 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
38734
38735         * Make-lang.in: Replace uses of $(target_alias) with
38736         $(target_noncanonical).
38737         * ada/Makefile.in: Remove unused mention of $(target_alias).
38738
38739 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
38740
38741         * Make-lang.in (ada.info): Replace with ...
38742         (info): ... this.
38743         (ada.dvi): Replace with ...
38744         (dvi): ... this.
38745
38746 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
38747
38748         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
38749         initialize dconstp5 and dconstmp5.
38750
38751 2003-09-28  Richard Henderson  <rth@redhat.com>
38752
38753         * trans.c (tree_transform): Update call to expand_asm_operands.
38754
38755 2003-09-21  Richard Henderson  <rth@redhat.com>
38756
38757         * trans.c, utils.c: Revert.
38758
38759 2003-09-21  Richard Henderson  <rth@redhat.com>
38760
38761         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
38762         change to const.
38763
38764 2003-09-04  Michael Matz  <matz@suse.de>
38765
38766         * misc.c: Include "target.h".
38767         * Make-lang.in (misc.o): Add dependency on target.h.
38768
38769 2003-09-03  DJ Delorie  <dj@redhat.com>
38770
38771         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
38772         hook.
38773
38774 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
38775
38776         * Makefile.in: Update substitutions to match changes to
38777         configure.  Use include directives instead of @-insertions
38778         to read in host and target fragments.  Add a rule to
38779         regenerate ada/Makefile.
38780
38781 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
38782
38783         * lang-options.h: Remove.
38784         * lang.opt: Add help text.
38785
38786 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
38787
38788         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
38789         calls.
38790
38791 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
38792
38793         * misc.c (gnat_handle_option): Don't handle filenames.
38794
38795 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
38796
38797         * Make-lang.in: Replace PWD with PWD_COMMAND.
38798         * Makefile.adalib: Likewise.
38799         * Makefile.in: Likewise.
38800
38801 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
38802
38803         * misc.c (gnat_argv): Revert last change.
38804         (gnat_handle_option, gnat_init_options): Copy arguments.
38805
38806 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
38807
38808         * misc.c (gnat_argv): Make const.
38809
38810 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
38811
38812         * misc.c (save_argc, save_argv): Keep non-static!
38813
38814 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
38815
38816         * misc.c (save_argc, save_argv): Make static.
38817         (gnat_init_options): New prototype.
38818         (gnat_init_options): Update.
38819
38820 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
38821
38822         * gnat_ug.texi: Remove unlikely characters from @vars.
38823         * gnat_ug_vms.texi: Regenerate.
38824
38825 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
38826
38827         * misc.c (record_code_position): Adjust emit_note call.
38828
38829 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
38830
38831         * misc.c (gnat_handle_option): Don't check for missing arguments.
38832
38833 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
38834
38835         * utils.c (end_subprog_body): Adjust expand_function_end call.
38836
38837 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
38838
38839         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
38840         Bind_Main_Program.
38841
38842 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
38843
38844         * lang.opt: Declare Ada.
38845         * misc.c (gnat_init_options): Update.
38846
38847 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
38848
38849         * utils.c (begin_subprog_body): Adjust init_function_start call.
38850
38851 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
38852
38853         * Make-lang.in: Update to use options.c and options.h.
38854         * misc.c: Include options.h not aoptions.h.
38855         (gnat_handle_option): Abort on unrecognized switch.
38856         (gnat_init_options): Request Ada switches.
38857
38858 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
38859
38860         * lang.opt: Add -Wall.
38861         * misc.c (gnat_handle_option): Handle it.
38862
38863 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
38864
38865         * misc.c (gnat_handle_option): Fix warnings.
38866
38867 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
38868
38869         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
38870
38871 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
38872
38873         * Make-lang.in: Update to handle command-line options.
38874         * lang.opt: New file.
38875         * misc.c: Include aoptions.h.
38876         (cl_options_count, cl_options): Remove.
38877         (gnat_handle_option): New.
38878         (gnat_decode_option): Remove.
38879         (LANG_HOOKS_DECODE_OPTION): Remove.
38880         (LANG_HOOKS_HANDLE_OPTION): Override.
38881
38882 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
38883
38884         * init.c, misc.c, trans.c, utils.c: Remove dead code.
38885
38886 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
38887
38888         * Makefile.in: Replace "host_canonical" with "host" for autoconf
38889         substitution.
38890
38891 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
38892
38893         * Make-lang.in: Update.
38894         * misc.c: Include opts.h. Define cl_options_count and cl_options.
38895
38896 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
38897
38898         * misc.c (gnat_init_options): Update.
38899
38900 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
38901
38902         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
38903         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
38904         __attribute__ ((__unused__)).
38905
38906 2003-06-05  Jan Hubicka  <jh@suse.cz>
38907
38908         * Make-lang.in:  Add support for stageprofile and stagefeedback
38909
38910 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
38911
38912         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
38913         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
38914
38915 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
38916
38917         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
38918         Remove non-VMS directive.
38919         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
38920         alternatives.
38921         (Examples of gnatls Usage): Remove VMS alternative.
38922
38923 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
38924
38925         PR ada/9953
38926         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
38927         and turn ZCX_By_Default back to False since the underlying support
38928         is not quite there yet.
38929
38930 2003-06-01  Andreas Jaeger  <aj@suse.de>
38931
38932         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
38933         and ROUND_TYPE_SIZE_UNIT.
38934
38935 2003-05-22   Geert Bosch  <bosch@gnat.com>
38936
38937         * gnat_rm.texi : Remove reference to Ada Core Technologies.
38938
38939 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
38940
38941         * trans.c (tree_transform): Use location_t and input_location
38942         directly.
38943         (build_unit_elab): Likewise.
38944         * utils.c (create_label_decl): Likewise.
38945
38946 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
38947
38948         * trans.c (tree_transform, build_unit_elab,
38949         set_lineno): Rename lineno to input_line.
38950         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
38951         end_subprog_body): Likewise.
38952         * utils2.c (build_call_raise): Likewise.
38953
38954 2003-05-01  Laurent Guerby  <guerby@acm.org>
38955
38956         PR ada/10546
38957         * 5iosinte.ads: Increase pthread_cond_t size to match recent
38958         LinuxThread and NPTL version, merge from ACT.
38959
38960 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
38961
38962         * utils.c (convert): No need to clear TREE_CST_RTL.
38963
38964 2003-04-23   Geert Bosch  <bosch@gnat.com>
38965
38966         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
38967         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38968         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38969         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38970         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38971         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
38972         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
38973         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
38974         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38975         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
38976         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
38977         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
38978         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
38979         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
38980         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
38981         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
38982         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
38983         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
38984         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
38985         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38986         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38987         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
38988         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38989         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
38990         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
38991         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
38992         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
38993         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
38994         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
38995         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
38996         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
38997         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
38998         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
38999         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39000         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39001         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39002         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39003         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39004         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39005         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39006         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39007         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39008         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39009         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39010         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39011         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39012         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39013         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39014         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39015         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39016         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39017         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39018         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39019         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39020         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39021         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39022         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39023         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39024         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39025         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39026         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39027         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39028         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39029         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39030         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39031         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39032         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39033         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39034         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39035         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39036         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39037         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39038         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39039         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39040         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39041         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39042         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39043         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39044         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39045         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39046         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39047         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39048         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39049         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39050         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39051         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39052         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39053         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39054         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39055         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39056         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39057         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39058         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39059         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39060         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39061         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39062         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39063         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39064         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39065         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39066         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39067         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39068         ali.adb, ali.ads, alloc.ads, argv.c,
39069         atree.adb, atree.ads, atree.h, aux-io.c,
39070         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39071         binde.adb, binde.ads, binderr.adb, binderr.ads,
39072         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39073         butil.adb, butil.ads, cal.c, calendar.ads,
39074         casing.adb, casing.ads, ceinfo.adb, checks.adb,
39075         checks.ads, cio.c, comperr.adb, comperr.ads,
39076         config-lang.in, csets.adb, csets.ads, csinfo.adb,
39077         cstand.adb, cstand.ads, cuintp.c, debug.adb,
39078         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39079         dec-io.ads, dec.ads, deftarg.c, directio.ads,
39080         einfo.adb, einfo.ads, elists.adb, elists.ads,
39081         elists.h, errno.c, errout.adb, errout.ads,
39082         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39083         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39084         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39085         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39086         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39087         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39088         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39089         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
39090         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
39091         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
39092         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
39093         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
39094         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
39095         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
39096         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
39097         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
39098         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
39099         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
39100         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
39101         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
39102         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39103         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39104         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39105         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
39106         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
39107         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
39108         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
39109         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
39110         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
39111         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
39112         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
39113         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
39114         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
39115         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
39116         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
39117         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
39118         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
39119         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
39120         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
39121         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
39122         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
39123         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
39124         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
39125         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
39126         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
39127         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
39128         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
39129         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
39130         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
39131         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
39132         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
39133         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
39134         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
39135         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
39136         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
39137         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
39138         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
39139         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
39140         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
39141         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39142         lib.adb, lib.ads, live.adb, live.ads,
39143         machcode.ads, make.adb, make.ads, makeusg.adb,
39144         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
39145         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
39146         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
39147         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
39148         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
39149         mlib.ads, namet.adb, namet.ads, nlists.adb,
39150         nlists.ads, opt.adb, opt.ads, osint-b.adb,
39151         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
39152         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
39153         osint.ads, output.adb, output.ads, par-ch10.adb,
39154         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
39155         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39156         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
39157         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
39158         par-tchk.adb, par-util.adb, par.adb, par.ads,
39159         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
39160         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
39161         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
39162         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
39163         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
39164         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
39165         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
39166         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
39167         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
39168         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
39169         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
39170         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
39171         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
39172         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
39173         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
39174         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
39175         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
39176         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39177         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
39178         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
39179         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
39180         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
39181         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39182         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
39183         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
39184         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
39185         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
39186         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
39187         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
39188         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
39189         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
39190         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
39191         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
39192         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
39193         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
39194         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
39195         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
39196         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
39197         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
39198         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
39199         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
39200         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
39201         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
39202         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
39203         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
39204         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
39205         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
39206         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
39207         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
39208         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
39209         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
39210         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
39211         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
39212         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
39213         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
39214         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
39215         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
39216         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
39217         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
39218         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
39219         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
39220         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
39221         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
39222         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
39223         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
39224         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
39225         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
39226         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
39227         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
39228         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
39229         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
39230         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
39231         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
39232         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
39233         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
39234         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
39235         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
39236         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
39237         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
39238         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
39239         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
39240         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
39241         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
39242         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39243         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
39244         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
39245         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
39246         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
39247         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
39248         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
39249         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
39250         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
39251         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
39252         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
39253         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
39254         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
39255         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
39256         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
39257         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
39258         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
39259         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
39260         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
39261         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
39262         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
39263         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
39264         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
39265         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
39266         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
39267         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
39268         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
39269         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39270         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39271         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
39272         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
39273         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
39274         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
39275         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
39276         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
39277         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
39278         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
39279         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
39280         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
39281         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
39282         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
39283         snames.ads, sprint.adb, sprint.ads, stand.adb,
39284         stand.ads, stringt.adb, stringt.ads, style.adb,
39285         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
39286         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
39287         switch-m.ads, switch.adb, switch.ads, system.ads,
39288         table.adb, table.ads, targparm.adb, targparm.ads,
39289         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
39290         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
39291         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
39292         ttypef.ads, ttypes.ads, types.adb, types.ads,
39293         uintp.adb, uintp.ads, uname.adb, uname.ads,
39294         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
39295         usage.adb, usage.ads, validsw.adb, validsw.ads,
39296         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
39297         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
39298         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
39299         formatting and other trivial changes from ACT.
39300
39301 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
39302
39303         * gigi.h, utils2.c (build_constructor):
39304         Rename gnat_build_constructor. Use build_constructor.
39305         * decl.c (gnat_to_gnu_entity)
39306         * trans.c (tree_transform, pos_to_constructor, extract_values)
39307         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
39308         (unchecked_convert)
39309         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
39310         (fill_vms_descriptor):
39311         Update to match.
39312
39313 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
39314
39315         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
39316         * misc.c (gnat_tree_size): New function.
39317         (LANG_HOOKS_TREE_SIZE): Override.
39318
39319 2003-04-03  Jason Merrill  <jason@redhat.com>
39320
39321         * misc.c (gnat_adjust_rli): #if 0.
39322
39323 2003-03-31   Geert Bosch  <bosch@gnat.com>
39324
39325         PR ada/10020
39326         * link.c : Fix misspelled "const" keyword
39327
39328 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
39329
39330         PR c++/7086
39331         * utils2.c: Adjust calls to put_var_into_stack.
39332
39333 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
39334
39335         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
39336
39337 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
39338
39339         * misc.c (gnat_init): Update for new prototype.
39340
39341 2003-03-05  Olivier Hainque  <hainque@gnat.com>
39342
39343         ada/9961
39344         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
39345         warning, and fix return type for the IN_RTS && !SJLJ case.
39346
39347 2003-03-04  Tom Tromey  <tromey@redhat.com>
39348
39349         * Make-lang.in (ada.tags): New target.
39350
39351 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
39352
39353         ada/9911
39354         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
39355         wrapper, which name remains constant whatever underlying GCC
39356         scheme.
39357
39358         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
39359         the stable interface needed for a-except.
39360
39361 2003-03-02  Andreas Jaeger  <aj@suse.de>
39362
39363         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39364         gnat_ug_wnt.texi: Regenerate.
39365
39366 2003-03-02  Laurent Guerby  <guerby@acm.org>
39367
39368         * Makefile.in (install-gnatlib): Match previous change there
39369         so it works.
39370
39371 2003-02-28  Andreas Schwab  <schwab@suse.de>
39372
39373         * Make-lang.in (install-gnatlib): Change to ada directory before
39374         running make instead of using ada/Makefile directly.
39375
39376 2003-02-18  Ben Elliston  <bje@redhat.com>
39377
39378         Part of PR ada/9406
39379         * gnat_ug.texi (Binder output file): Grammar fix.
39380
39381 2003-02-18  Ben Elliston  <bje@redhat.com>
39382
39383         PR other/7350
39384         * 5qtaprop.adb (Sleep): Fix typo in comment.
39385
39386 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
39387
39388         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
39389         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39390         gnat_ug_wnt.texi: Regenerate.
39391
39392 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
39393
39394         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
39395         be created if necessary.
39396         (ada.install-common): Let $(DESTDIR)$(bindir) be created
39397         if necessary.  Remove erroneous and redundant gnatchop
39398         installation commands.  Test for gnatdll before attempting
39399         to install it.
39400         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
39401         and gnatdll from all plausible locations.
39402
39403 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
39404
39405         * utils2.c (build_unary_op): Don't check flag_volatile.
39406         * gnat_ug.texi: Remove -fvolatile from example.
39407         * gnat_ug_vxw.texi: Likewise.
39408
39409 2003-01-29  Laurent Guerby  <guerby@acm.org>
39410
39411         PR ada/8344
39412         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
39413         * Makefile.in: match previous change.
39414         * Make-lang.in: match previous change.
39415
39416 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
39417
39418         * 5rosinte.ads: Add SIGXCPU.
39419         * 5rtpopsp.adb: New file.
39420         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
39421         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
39422         specific file 5rtpopsp.adb.
39423         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
39424         is likely needed for all newlib targets.
39425         * init.c: Add RTEMS specific version of __gnat_initialize().
39426
39427 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39428
39429         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
39430
39431 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39432
39433         * init.c (__gnat_error_handler): Make msg const.
39434
39435         * gmem.c (convert_addresses): Move declaration ...
39436         * adaint.h: ... here.
39437         * adaint.c (convert_addresses): Adapt addrs type to match
39438         prototype.
39439
39440         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
39441
39442 2003-01-24  Andreas Schwab  <schwab@suse.de>
39443
39444         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
39445         size_t to avoid warning.
39446
39447 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
39448
39449         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
39450
39451 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
39452
39453         * gnat_rm.texi: Remove RCS version number.
39454
39455         * ada-tree.h (union lang_tree_node): Add chain_next option.
39456
39457 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
39458
39459         * Make-lang.in (ada.install-info, ada.install-common,
39460         ada.uninstall): Prepend $(DESTDIR) to the destination
39461         directory in all (un)installation commands.
39462         * Makefile.in (install-gnatlib, install-rts): Ditto.
39463
39464 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
39465
39466         * gnat_rm.texi, gnat_ug.texi: Use @copying.
39467         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39468         gnat_ug_wnt.texi: Regenerate.
39469
39470 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
39471
39472         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
39473         only.
39474         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
39475         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
39476         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
39477         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
39478         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
39479         $(srcdir)/doc/include/gcc-common.texi.
39480
39481 2002-12-15   Geert Bosch  <bosch@gnat.com>
39482
39483         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
39484
39485 2002-12-14   Geert Bosch  <bosch@gnat.com>
39486
39487         PR ada/5690
39488         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
39489         case of a body created for a Renaming_As_Body, on which
39490         conformance checks are not performed.
39491
39492 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
39493
39494         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
39495         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
39496         not already included.
39497         * Make-lang.in: Update dependencies.
39498
39499 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
39500         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
39501         solution to buffer overflow bug on GNU/Linux.
39502
39503 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39504
39505         PR ada/5856
39506         PR ada/6919
39507         * bindgen.adb: Remove all references to Public_Version.
39508         * comperr.adb: Remove all references to Public_Version and
39509         GNATPRO_Version; correct bug reporting instructions.
39510         * comperr.ads: Change to match bug box.
39511         * gnatvsn.ads: Remove all references to Public version and
39512         GNATPRO version.
39513
39514 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
39515
39516         PR ada/6919
39517         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
39518         GNU/Linux.
39519
39520         PR ada/6558
39521         * config-lang.in: Remove diff_excludes.
39522
39523 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
39524
39525         PR ada/8358
39526         * trans.c (gnu_pending_elaboration_lists): New GC root.
39527         (build_unit_elab): Use..
39528
39529 2002-10-30   Geert Bosch  <bosch@gnat.com>
39530
39531         PR ada/6558
39532         * misc.c : Include optabs.h
39533
39534         * Make-lang.in (misc.o): Add dependency on optabs.h
39535
39536 2002-10-29   Geert Bosch  <bosch@gnat.com>
39537
39538         PR ada/6558
39539         * Make-lang.in (gnatbind): Depend on CONFIG_H
39540
39541 2002-10-29  Geert bosch  <bosch@gnat.com>
39542
39543         PR ada/6558
39544         * misc.c: Unrevert misc.c (1.13)
39545
39546 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
39547
39548         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
39549         maintainership comments.
39550
39551 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
39552
39553         PR ada/5904
39554         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
39555         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
39556         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
39557         7staprop.adb: Correct statements in comments about
39558         maintainership of GNAT.
39559
39560         PR ada/5904
39561         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
39562         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
39563         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
39564         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
39565         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
39566         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
39567         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
39568         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
39569         comments about maintainership of GNAT.
39570
39571         PR ada/6919 (forward port of patch for PR ada/5904)
39572         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
39573         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
39574         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
39575         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
39576         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
39577         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
39578         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
39579         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
39580         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
39581         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
39582         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
39583         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
39584         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
39585         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
39586         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
39587         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
39588         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
39589         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
39590         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
39591         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
39592         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
39593         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
39594         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
39595         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
39596         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
39597         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
39598         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
39599         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
39600         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
39601         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
39602         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
39603         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
39604         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
39605         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
39606         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
39607         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
39608         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
39609         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
39610         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
39611         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
39612         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
39613         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
39614         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
39615         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
39616         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
39617         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
39618         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
39619         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
39620         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
39621         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
39622         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
39623         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
39624         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
39625         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
39626         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
39627         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
39628         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
39629         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
39630         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
39631         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
39632         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
39633         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
39634         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
39635         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
39636         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
39637         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
39638         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
39639         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
39640         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
39641         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
39642         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
39643         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
39644         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
39645         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
39646         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
39647         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
39648         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
39649         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
39650         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
39651         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
39652         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
39653         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
39654         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
39655         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
39656         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
39657         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
39658         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
39659         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
39660         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
39661         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
39662         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
39663         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
39664         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
39665         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
39666         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
39667         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
39668         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
39669         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
39670         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
39671         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
39672         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
39673         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
39674         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
39675         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
39676         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
39677         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
39678         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
39679         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
39680         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
39681         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
39682         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
39683         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
39684         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
39685         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
39686         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
39687         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
39688         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
39689         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
39690         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
39691         par-endh.adb par-labl.adb par-load.adb par-prag.adb
39692         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
39693         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
39694         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
39695         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
39696         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
39697         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
39698         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
39699         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
39700         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
39701         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
39702         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
39703         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
39704         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
39705         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
39706         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
39707         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
39708         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
39709         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
39710         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
39711         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
39712         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
39713         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
39714         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
39715         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
39716         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
39717         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
39718         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
39719         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
39720         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
39721         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
39722         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
39723         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
39724         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
39725         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
39726         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
39727         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
39728         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
39729         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
39730         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
39731         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
39732         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
39733         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
39734         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
39735         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
39736         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
39737         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
39738         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
39739         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
39740         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
39741         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
39742         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
39743         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
39744         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
39745         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
39746         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
39747         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
39748         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
39749         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
39750         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
39751         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
39752         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
39753         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
39754         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
39755         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
39756         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
39757         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
39758         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
39759         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
39760         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
39761         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
39762         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
39763         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
39764         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
39765         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
39766         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
39767         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
39768         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
39769         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
39770         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
39771         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
39772         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
39773         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
39774         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
39775         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
39776         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
39777         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
39778         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
39779         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
39780         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
39781         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
39782         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
39783         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
39784         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
39785         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
39786         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
39787         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
39788         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
39789         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
39790         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
39791         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
39792         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
39793         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
39794         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
39795         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
39796         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
39797         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
39798         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
39799         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
39800         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
39801         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
39802         stringt.ads stringt.h style.adb style.ads stylesw.adb
39803         stylesw.ads switch.adb switch.ads sysdep.c system.ads
39804         table.adb table.ads targparm.adb targparm.ads targtyps.c
39805         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
39806         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
39807         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
39808         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
39809         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
39810         usage.ads utils.c utils2.c validsw.adb validsw.ads
39811         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
39812         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
39813         xtreeprs.adb: Correct statements in comments about maintainership
39814         of GNAT.
39815
39816 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
39817
39818         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
39819         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
39820         * gnatvsn.ads: Gnat_Version_String is now a function.
39821         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
39822         copy the C version_string into a String and return it.
39823         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
39824         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
39825         Remove pragma Ident (Gnat_Version_String).  If this was the
39826         sole use of package Gnatvsn, remove the with statement too.
39827         * gnat1drv.adb: Tweak -gnatv output.
39828
39829 2002-09-17  Richard Henderson  <rth@redhat.com>
39830
39831         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
39832         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
39833         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
39834         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
39835         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
39836         and real_2expN instead of a loop.
39837         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
39838         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
39839
39840 2002-08-25  Andre Leis  <a.leis@gmx.net>
39841             David Billinghurst  <David.Billinghurst@riotinto.com>
39842
39843         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
39844
39845 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39846
39847         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
39848         Remove $(CONFIG_H) dependency.
39849
39850 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
39851
39852         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
39853
39854 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39855
39856         * adadecode.c (ada_demangle): Use xstrdup in lieu of
39857         xmalloc/strcpy.
39858         * misc.c (gnat_decode_option): Likewise.
39859
39860 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
39861
39862         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
39863         function approach did not work well because of a side effect (the
39864         function call could reallocate the table which was being indexed
39865         using its result). Fixes ada/4851. [RESURRECTED]
39866
39867 2002-07-01  Roger Sayle  <roger@eyesopen.com>
39868
39869         * ada/utils.c (builtin_function): Accept an additional parameter.
39870
39871 2002-06-28  Andreas Jaeger  <aj@suse.de>
39872
39873         PR ada/7144
39874         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
39875         <adi@thur.de>.
39876
39877 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39878
39879         * Makefile.in (SHELL): Set to @SHELL@.
39880
39881 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39882
39883         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
39884         array size calculation.
39885
39886 2002-06-04  Andreas Jaeger  <aj@suse.de>
39887
39888         * Make-lang.in (gnatbind): Readd rule that has been lost in last
39889         patch.
39890
39891 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
39892
39893         Merge from pch-branch:
39894
39895         * config-lang.in (gtfiles): Add ada-tree.h.
39896         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
39897         (SET_TYPE_MODULUS): New.
39898         (SET_TYPE_INDEX): New.
39899         (SET_TYPE_DIGITS_VALUE): New.
39900         (SET_TYPE_RM_SIZE): New.
39901         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
39902         (SET_TYPE_ADA_SIZE): New.
39903         (SET_TYPE_ACTUAL_BOUNDS): New.
39904         (SET_DECL_CONST_CORRESPONDING_VAR): New.
39905         (SET_DECL_ORIGINAL_FIELD): New.
39906         (TREE_LOOP_ID): Correct typo.
39907         * decl.c: Use new macros.
39908         * utils.c: Include debug.h, use new macros.
39909         * utils2.c: Use new macros.
39910
39911         * ada-tree.h: Update all macros for new tree description.
39912         (struct tree_loop_id): New.
39913         (union lang_tree_node): New.
39914         (struct lang_decl): New.
39915         (struct lang_type): New.
39916         * misc.c (gnat_mark_tree): Delete.
39917         (LANG_HOOKS_MARK_TREE): Delete.
39918         * trans.c (tree_transform): No longer any need to cast
39919         for TREE_LOOP_ID.
39920
39921         * utils.c (struct language_function): New dummy structure.
39922
39923         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
39924         (misc.o): Likewise.
39925         (utils.o): Likewise; also gtype-ada.h.
39926         * Make-lang.in (gnat1): Add dependency on s-gtype.
39927         (gnatbind): Add dependency on $(CONFIG_H).
39928         * utils.c: Correct last #include.
39929         (stuct e_stack): Remove unnecessary 'static'.
39930         (mark_e_stack): Remove unused prototype.
39931
39932         * scn-nlit.adb: Remove whitespace after version number to
39933         keep lines under 80 chars.
39934         * snames.adb: Likewise.
39935         * treepr.ads: Likewise.
39936
39937         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
39938         (misc.o): Likewise.
39939         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
39940         * config-lang.in (gtfiles): New.
39941         * decl.c: Use gengtype for roots.
39942         * gigi.h: Use gengtype for roots.
39943         * trans.c: Use gengtype for roots.
39944         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
39945
39946 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
39947
39948         * misc.c (gnat_init): Adjust setting of internal_error_function.
39949
39950 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
39951
39952         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
39953         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39954         gnat_ug_wnt.texi: Regenerate.
39955
39956 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
39957
39958         * 5ntaprop.adb (with System.OS_Primitives): Remove.
39959
39960         * cstreams.c (max_path_len): Move from here ...
39961         * adaint.c (__gnat_max_path_len): ... to here.
39962         * adaint.c (__gnat_max_path_len): Declare.
39963         * g-dirope.adb (Max_Path): Adjust.
39964         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
39965         * i-cstrea.ads (max_path_len): Adjust.
39966         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
39967         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
39968
39969         * Makefile.in, Make-lang.in: Documentation is now built in
39970         Make-lang.in.  Store Info and generated Texinfo files in the
39971         source directory.
39972         * gnat_ug.texi: Remove CVS keywords, correct version number.
39973         Set file name correctly.
39974
39975         * gnat_ug_*.texi: Add.
39976         * .cvsignore: Ignore generated Texinfo files.
39977
39978 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
39979
39980         * ada.h: Add MI guard macro.
39981         (SUBTYPE): Define constants with an anonymous enum, not static
39982         const variables.
39983         (IN): Cast constants to appropriate type before use.
39984
39985 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
39986
39987         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
39988         (experimental)".
39989
39990 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39991
39992         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
39993         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
39994         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
39995         (ALL_ADA_CFLAGS): Likewise.
39996         (ADA_INCLUDES): Likewise.
39997         Adapt for new working dir.
39998         (GNATBIND): Use Makefile.in version.
39999         (.SUFFIXES): Copy from Makefile.in.
40000         (ada-warn): Define.
40001         (.adb.o, .ads.o): Copy from Makefile.in.
40002         Added $(OUTPUT_OPTION).
40003         (GNAT1_C_OBJS): Moved from Makefile.in.
40004         Prefix with ada subdir.
40005         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40006         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40007         Adapt for new working dir.
40008         (EXTRA_GNATBIND_OBJS): Likewise.
40009         (ADA_BACKEND): Moved from Makefile.in.
40010         Renamed to avoid conflict with global BACKEND.
40011         Use that one.
40012         (TARGET_ADA_SRCS): Moved from Makefile.in.
40013         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40014         Use ADA_BACKEND.
40015         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40016         (ada_extra_files): Moved from Makefile.in.
40017         Prefix with ada subdir.
40018         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40019         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40020         (ada/nmake.ads): Likewise.
40021         (update-sources): Moved from Makefile.in.
40022         Prefix with ada subdir.
40023         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40024         (ADA_TREE_H): Likewise.
40025         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40026         (ada/memtrack.o): Likewise.
40027         (ada/adadecode.o): Likewise.
40028         Update dependencies.
40029         (ada/adaint.o): New.
40030         (ada/argv.o): Moved from Makefile.in.
40031         Prefix with ada subdir.
40032         Update dependencies.
40033         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40034         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40035         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40036         Prefix with ada subdir.
40037         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40038         (GNAT DEPENDENCIES): Regenerate.
40039         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40040         toplevel Makefile.in.
40041         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40042         (TARGET_ADA_SRCS): Removed.
40043         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40044         (GNATBIND_OBJS): Likewise.
40045         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40046         (BACKEND): Removed.
40047         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40048         (TREE_H): Likewise.
40049         (ada_extra_files): Likewise.
40050         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40051         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40052         (update-sources): Likewise.
40053         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40054         (ADA_TREE_H): Likewise.
40055         (adadecoce.o): Likewise.
40056         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40057         (GNAT DEPENDENCIES): Likewise.
40058
40059 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40060
40061         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40062         * Makefile.in: Likewise.
40063
40064 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40065
40066         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40067         Restore $(CONFIG_H) and prefix.o dependencies.
40068         (ada.stage[1-4]): Depend on stage?-start.
40069
40070         * Makefile.in (b_gnatb.c): Depend on interfac.o.
40071
40072 2002-05-02  Jim Wilson  <wilson@redhat.com>
40073
40074         * utils.c (finish_record_type): Change record_size to record_type.
40075
40076 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
40077
40078         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40079         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40080         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40081
40082 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40083
40084         * misc.c (gnat_parse_file): Update.
40085
40086 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40087
40088         * misc.c (gnat_init): Don't set lang_attribute_common.
40089
40090 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
40091
40092         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
40093
40094 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
40095
40096         * gnat_ug.texi: New file.
40097
40098         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
40099         instead of gfdl.texi
40100
40101         * xgnatug.adb, ug_words: New files.
40102
40103         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
40104         gnat_rm and gnat-style manuals.
40105
40106 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
40107
40108         * gigi.h (incomplete_type_error): Remove.
40109         * utils.c (incomplete_type_error): Remove.
40110
40111 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
40112
40113         * trans.c (tree_transform): Add has_scope argument to
40114         expand_start_stmt_expr.
40115
40116 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40117
40118         * gigi.h (truthvalue_conversion): Rename.
40119         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
40120         * trans.c (tree_transform): Update.
40121         * utils2.c (truthvalue_conversion): Rename, update.
40122         (build_binary_op, build_unary_op): Update.
40123
40124 2002-04-04  Laurent Guerby  <guerby@acm.org>
40125
40126         * make.adb: Implement -margs, remove restriction about file name placement.
40127         * makeusg.adb: Documentation update.
40128         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
40129         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
40130
40131 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40132
40133         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
40134         (builtin_function): Similarly.
40135
40136 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40137
40138         * decl.c (gnat_to_gnu_entity): Update.
40139         * gigi.h (mark_addressable): Rename.
40140         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
40141         * trans.c (tree_transform): Update.
40142         * utils.c (create_var_decl): Update.
40143         * util2.c (build_binary_op, build_unary_op,
40144         fill_vms_descriptor): Update.
40145         (mark_addressable): Rename, update.
40146
40147 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40148
40149         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
40150         Rename.
40151         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
40152         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
40153         * trans.c (tree_transform, convert_with_check): Update.
40154         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
40155         Rename.
40156
40157 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
40158
40159         * gigi.h (finish_incomplete_decl): Rename.
40160         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
40161         * utils.c (gnat_init_decl_processing): Don't set hook.
40162         (finish_incomplete_decl): Rename.
40163
40164 2002-03-29  Andreas Schwab  <schwab@suse.de>
40165
40166         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
40167         directory.
40168
40169 2001-03-28  Robert Dewar  <dewar@gnat.com>
40170
40171         * checks.ads:
40172         (Remove_Checks): New procedure
40173
40174         * checks.adb:
40175         (Remove_Checks): New procedure
40176
40177         * exp_util.adb:
40178         Use new Duplicate_Subexpr functions
40179         (Duplicate_Subexpr_No_Checks): New procedure
40180         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40181         (Duplicate_Subexpr): Restore original form (checks duplicated)
40182         (Duplicate_Subexpr): Call Remove_Checks
40183
40184         * exp_util.ads:
40185         (Duplicate_Subexpr_No_Checks): New procedure
40186         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40187         Add 2002 to copyright notice
40188
40189         * sem_util.adb: Use new Duplicate_Subexpr functions
40190
40191         * sem_eval.adb:
40192         (Eval_Indexed_Component): This is the place to call
40193         Constant_Array_Ref and to replace the value. We simply merge
40194         the code of this function in here, since it is now no longer
40195         used elsewhere. This fixes the problem of the back end not
40196         realizing we were clever enough to see that this was
40197         constant.
40198         (Expr_Val): Remove call to Constant_Array_Ref
40199         (Expr_Rep_Val): Remove call to Constant_Array_Ref
40200         Minor reformatting
40201         (Constant_Array_Ref): Deal with string literals (patch
40202         suggested by Zack Weinberg on the gcc list)
40203
40204 2001-03-28  Ed Schonberg  <schonber@gnat.com>
40205
40206         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
40207         Duplicate_Subexpr_Move_Checks.
40208
40209         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
40210         Duplicate_Subexpr_Move_Checks.
40211
40212         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
40213         value of array exists before retrieving it (it may a private
40214         protected component in a function).
40215
40216 2002-03-28   Geert Bosch  <bosch@gnat.com>
40217
40218         * prj-pp.adb : New file.
40219
40220         * prj-pp.ads : New file.
40221
40222 2002-03-28  Andreas Jaeger  <aj@suse.de>
40223
40224         * Makefile.in (stamp-sdefault): Fix path for Makefile.
40225
40226 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
40227
40228         * misc.c (gnat_expand_expr): Move prototype.
40229
40230 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40231
40232         * misc.c (insert_default_attributes): Remove.
40233
40234 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40235
40236         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
40237         (gnat_init): Don't set hook.
40238         (gnat_expand_expr): Fix prototype.
40239
40240 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40241
40242         * misc.c (ggc_p): Remove.
40243
40244 2002-03-27  Geert Bosch  <bosch@gnat.com>
40245
40246         * prj-makr.ads, prj-makr.adb : New files.
40247
40248 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
40249
40250         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
40251         (lang_mark_tree): Make static, rename.
40252
40253 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40254
40255         * misc.c (maybe_build_cleanup): Remove.
40256
40257 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40258
40259         * gigi.h (yyparse): Remove.
40260
40261 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
40262
40263         From Ben Brosgol  <brosgol@gnat.com>
40264         * gnat_rm.texi: Sync with ACT version.
40265
40266 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
40267
40268         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
40269         (gnat_init): Remove old hook.
40270
40271 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
40272
40273         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
40274         (yyparse): Rename gnat_parse_file.
40275
40276 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
40277
40278         Delete all lines containing "$Revision:".
40279         * xeinfo.adb: Don't look for revision numbers.
40280         * xnmake.adb: Likewise.
40281         * xsinfo.adb: Likewise.
40282         * xsnames.adb: Likewise.
40283         * xtreeprs.adb: Likewise.
40284
40285 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40286
40287         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
40288         gnat_tree_code_name): Delete.
40289         (tree_code_type, tree_code_length, tree_code_name): Define.
40290         (gnat_init): Don't try to copy into the various tree_code
40291         arrays.
40292
40293 2002-03-11  Richard Henderson  <rth@redhat.com>
40294
40295         * Makefile.in (.NOTPARALLEL): Add fake tag.
40296
40297 2002-03-07  Geert Bosch  <bosch@gnat.com>
40298
40299         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
40300         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
40301         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
40302         switch-m.adb, switch-m.ads : New files.
40303
40304 2002-03-07  Geert Bosch  <bosch@gnat.com>
40305
40306         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
40307         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
40308         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
40309         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
40310         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
40311         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
40312         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
40313         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
40314         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
40315         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
40316         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
40317         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
40318         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
40319         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
40320         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
40321         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
40322         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
40323         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
40324         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
40325         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
40326         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
40327         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
40328         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
40329         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
40330         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
40331         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
40332         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
40333         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
40334         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
40335         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
40336         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
40337         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
40338         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
40339         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
40340         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
40341         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
40342         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
40343         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
40344         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
40345         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
40346         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
40347         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
40348         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
40349         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
40350         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
40351         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
40352         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
40353         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
40354         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
40355         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
40356         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
40357         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
40358         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
40359         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
40360         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
40361         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
40362         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
40363         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
40364         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
40365         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
40366         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
40367         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
40368         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
40369         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
40370         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
40371         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
40372         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
40373         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
40374         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
40375         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
40376         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
40377         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
40378         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
40379         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
40380         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
40381         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40382         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
40383         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
40384         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
40385         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
40386         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
40387         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
40388         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
40389         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
40390         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
40391         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
40392         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
40393         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
40394         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
40395         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
40396         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
40397         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
40398         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
40399         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
40400         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
40401         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
40402         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
40403
40404         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
40405         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
40406         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
40407         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
40408
40409         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
40410         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
40411
40412         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
40413         to mdll-fil.ad[bs] and mdll-util.ad[bs]
40414
40415         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
40416         from mdllfile.ad[bs] and mdlltool.ad[bs]
40417
40418 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40419
40420         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
40421         lieu of explicit sizeof/sizeof.
40422
40423 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
40424
40425         * misc.c (copy_lang_decl): Remove.
40426
40427 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
40428
40429         * misc.c: Delete traditional-mode-related code copied from the
40430         C front end but not used, or used only to permit the compiler
40431         to link.
40432
40433 2002-02-07  Richard Henderson  <rth@redhat.com>
40434
40435         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
40436         * adaint.h (__gnat_to_gm_time): Update prototype.
40437
40438 2002-01-30  Richard Henderson  <rth@redhat.com>
40439
40440         * trans.c (tree_transform) [N_Loop_Statement]: Use
40441         expand_exit_loop_top_cond.
40442
40443 2001-12-23  Richard Henderson  <rth@redhat.com>
40444
40445         * utils.c (end_subprog_body): Push GC context around
40446         rest_of_compilation for nested functions.
40447
40448 2001-12-23  Richard Henderson  <rth@redhat.com>
40449
40450         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
40451
40452 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
40453
40454         * gnat-style.texi (Declarations and Types): Remove ancient style
40455         rule which was mandated by code generation issues.
40456
40457         * gnat-style.texi (header): Add @dircategory, @direntry.
40458         (title page): Remove date.
40459         (general) Add @./@: where approriate, and two spaces after the
40460         full stop at the end of a sentence.  Use @samp markup when
40461         referring concrete lexical entities (keywords, attribute names
40462         etc.), and @syntax for ARM grammar elements. Use @r for English
40463         text in comments.  Use @emph for emphasis.  Change "if-statements"
40464         etc. to "if statements" (without @samp). Break long lines.  Make
40465         casing of section names consistent.
40466         (Identifiers): Use @samp markup for variable names.
40467         (Comments): Use @samp markup for comment characters. Line-end
40468         comments may follow any Ada code, not just statements.  Fix
40469         misspelling of "Integer" as "integer".
40470         (Loop statements): Do not use variable name "I", use "J".
40471         (Subprogram Declarations): Document alignment.
40472         (Subprogram Bodies, Block statements): Document empty line before
40473         "begin".
40474
40475 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
40476
40477         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40478         function approach did not work well because of a side effect (the
40479         function call could reallocate the table which was being indexed
40480         using its result). Fixes ada/4851.
40481
40482 2001-12-19  Robert Dewar  <dewar@gnat.com>
40483
40484         * bindgen.adb: Minor reformatting
40485
40486         * cstand.adb: Minor reformatting
40487
40488         * fmap.adb: Minor reformatting
40489         Change name from Add for Add_To_File_Map (Add is much too generic)
40490         Change Path_Name_Of to Mapped_Path_Name
40491         Change File_Name_Of to Mapped_File_Name
40492         Fix copyright dates in header
40493
40494         * fmap.ads:
40495         Change name from Add for Add_To_File_Map (Add is much too generic)
40496         Change Path_Name_Of to Mapped_Path_Name
40497         Change File_Name_Of to Mapped_File_Name
40498         Fix copyright dates in header
40499
40500         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
40501         Add use clause for Fmap.
40502
40503         * make.adb: Minor reformatting
40504
40505         * osint.adb: Minor reformatting.  Change of names in Fmap.
40506         Add use clause for Fmap.
40507
40508         * prj-env.adb: Minor reformatting
40509
40510         * prj-env.ads: Minor reformatting
40511
40512         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
40513         error found (there were odd exceptions to this general rule in
40514         -gnatec/-gnatem processing)
40515
40516 2001-12-19  Olivier Hainque  <hainque@gnat.com>
40517
40518         * raise.c (__gnat_eh_personality): Exception handling personality
40519         routine for Ada.  Still in rough state, inspired from the C++ version
40520         and still containing a bunch of debugging artifacts.
40521         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
40522         inspired from the C++ library.
40523
40524         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
40525         exception handling integration.
40526
40527 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
40528
40529         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
40530         (HIE_SOURCES): Add s-secsta.ad{s,b}.
40531         (HIE_OBJS): Add s-fat*.o
40532         (RAVEN_SOURCES): Remove files that are no longer required. Add
40533         interrupt handling files.
40534         (RAVEN_MOD): Removed, no longer needed.
40535
40536 2001-12-19  Robert Dewar  <dewar@gnat.com>
40537
40538         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
40539         Add 2001 to copyright date
40540
40541         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
40542         need to force universal inlining for these cases.
40543
40544 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
40545
40546         * s-taprob.adb: Minor clean ups so that this unit can be used in
40547         Ravenscar HI.
40548
40549         * exp_ch7.adb: Allow use of secondary stack in HI mode.
40550         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
40551
40552 2001-12-19  Vincent Celier  <celier@gnat.com>
40553
40554         * prj-tree.ads (Project_Node_Record): Add comments for components
40555         Pkg_Id and Case_Insensitive.
40556
40557 2001-12-19  Pascal Obry  <obry@gnat.com>
40558
40559         * g-socket.adb: Minor reformatting. Found while reading code.
40560
40561 2001-12-19  Robert Dewar  <dewar@gnat.com>
40562
40563         * prj-tree.ads: Minor reformatting
40564
40565 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
40566
40567         * config-lang.in (diff_excludes): Remove.
40568
40569 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40570
40571         * sem_res.adb (Resolve_Selected_Component): do not generate a
40572         discriminant check if the selected component is a component of
40573         the argument of an initialization procedure.
40574
40575         * trans.c (tree_transform, case of arithmetic operators): If result
40576         type is private, the gnu_type is the base type of the full view,
40577         given that the full view itself may be a subtype.
40578
40579 2001-12-17  Robert Dewar  <dewar@gnat.com>
40580
40581         * sem_res.adb: Minor reformatting
40582
40583         * trans.c (tree_transform, case N_Real_Literal): Add missing third
40584         parameter in call to Machine (unknown horrible effects from this
40585         omission).
40586
40587         * urealp.h: Add definition of Round_Even for call to Machine
40588         Add third parameter for Machine
40589
40590 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40591
40592         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
40593         predefined units in No_Run_Time mode.
40594
40595 2001-12-17  Richard Kenner  <kenner@gnat.com>
40596
40597         * misc.c (insn-codes.h): Now include.
40598
40599 2001-12-17  Olivier Hainque  <hainque@gnat.com>
40600
40601         * a-except.adb: Preparation work for future integration of the GCC 3
40602         exception handling mechanism
40603         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
40604         to factorize previous code sequences and make them externally callable,
40605         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
40606         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
40607         Use the new notification routines.
40608
40609 2001-12-17  Emmanuel Briot  <briot@gnat.com>
40610
40611         * prj-tree.ads (First_Choice_Of): Document the when others case
40612
40613 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40614
40615         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
40616         HI-E mode, in order to support Ravenscar profile properly.
40617
40618         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
40619         mode on 32 bits targets.
40620
40621 2001-12-17  Vincent Celier  <celier@gnat.com>
40622
40623         * fmap.adb: Initial version.
40624
40625         * fmap.ads: Initial version.
40626
40627         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
40628         If search is successfully done, add to mapping.
40629
40630         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
40631
40632         * make.adb:
40633         (Gnatmake): Add new local variable Mapping_File_Name.
40634          Create mapping file when using project file(s).
40635          Delete mapping file before exiting.
40636
40637         * opt.ads (Mapping_File_Name): New variable
40638
40639         * osint.adb (Find_File): Use path name found in mapping, if any.
40640
40641         * prj-env.adb (Create_Mapping_File): New procedure
40642
40643         * prj-env.ads (Create_Mapping_File): New procedure.
40644
40645         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
40646         (Mapping_File)
40647
40648         * usage.adb: Add entry for new switch -gnatem.
40649
40650         * Makefile.in: Add dependencies for fmap.o.
40651
40652 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40653
40654         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
40655         is a package instantiation rewritten as a package body.
40656         (Install_Withed_Unit): Undo previous change, now redundant.
40657
40658 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
40659
40660         * layout.adb:
40661         (Compute_Length): Move conversion to Unsigned to callers.
40662         (Get_Max_Size): Convert Len expression to Unsigned after calls to
40663         Compute_Length and Determine_Range.
40664         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
40665         Compute_Length and Determine_Range.
40666         Above changes fix problem with length computation for supernull arrays
40667         where Max (Len, 0) wasn't getting applied due to the Unsigned
40668         conversion used by Compute_Length.
40669
40670 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40671
40672         * rtsfind.ads:
40673         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
40674          System.Secondary_Stack.
40675         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
40676          in HI-E mode.
40677         Remove unused entity RE_Exception_Data.
40678
40679         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
40680
40681         * rident.ads (No_Secondary_Stack): New restriction.
40682
40683 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
40684
40685         * gnat_rm.texi: Fix minor typos. Found while reading the section
40686         regarding "Bit_Order Clauses" that was sent to a customer.
40687         Very interesting documentation!
40688
40689 2001-12-17  Robert Dewar  <dewar@gnat.com>
40690
40691         * sem_case.adb (Choice_Image): Avoid creating improper character
40692         literal names by using the routine Set_Character_Literal_Name. This
40693         fixes bombs in certain error message cases.
40694
40695 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40696
40697         * a-reatim.adb: Minor reformatting.
40698
40699 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40700
40701         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
40702         case where the formal is an extension of another formal in the current
40703         unit or in a parent generic unit.
40704
40705 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40706
40707         * s-tposen.adb: Update comments.  Minor reformatting.
40708         Minor code clean up.
40709
40710         * s-tarest.adb: Update comments.  Minor code reorganization.
40711
40712 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
40713
40714         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
40715         when Java_VM.
40716
40717 2001-12-17  Robert Dewa  <dewar@gnat.com>
40718
40719         * exp_attr.adb: Minor reformatting
40720
40721 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40722
40723         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
40724         derivations nested within a child unit: verify that the parent
40725         type is declared in an outer scope.
40726
40727 2001-12-17  Robert Dewar  <dewar@gnat.com>
40728
40729         * sem_ch12.adb: Minor reformatting
40730
40731 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40732
40733         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
40734         warning if current unit is a predefined one, from which bodies may
40735         have been deleted.
40736
40737 2001-12-17  Robert Dewar  <dewar@gnat.com>
40738
40739         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
40740         Fix header format. Add 2001 to copyright date.
40741
40742         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
40743         which caused CE during compilation if checks were enabled.
40744
40745 2001-12-17  Vincent Celier  <celier@gnat.com>
40746
40747         * make.adb:
40748         (Switches_Of): New function
40749         (Test_If_Relative_Path): New procedure
40750         (Add_Switches): Use new function Switches_Of
40751         (Collect_Arguments_And_Compile): Use new function Switches_Of.
40752         When using a project file, test if there are any relative
40753         search path. Fail if there are any.
40754         (Gnatmake): Only add switches for the primary directory when not using
40755         a project file. When using a project file, change directory to the
40756         object directory of the main project file. When using a project file,
40757         test if there are any relative search path. Fail if there are any.
40758         When using a project file, fail if specified executable is relative
40759         path with directory information, and prepend executable, if not
40760         specified as an absolute path, with the exec directory.  Make sure
40761         that only one -o switch is transmitted to the linker.
40762
40763         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
40764
40765         * prj-nmsc.adb:
40766         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
40767         when using a non standard naming scheme.
40768         (Check_Ada_Naming_Scheme): Make sure that error messages
40769         do not raise exceptions.
40770         (Is_Illegal_Append): Return True if there is no dot in the suffix.
40771         (Language_Independent_Check): Check the exec directory.
40772
40773         * prj.adb (Project_Empty): Add new component Exec_Directory
40774
40775         * prj.ads:
40776         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
40777         (Project_Data): Add component Exec_Directory
40778
40779         * snames.adb: Updated to match snames.ads revision 1.215
40780
40781         * snames.ads: Added Exec_Dir
40782
40783 2001-12-17  Robert Dewar  <dewar@gnat.com>
40784
40785         * make.adb: Minor reformatting
40786
40787         * prj-nmsc.adb: Minor reformatting
40788
40789         * snames.adb: Updated to match snames.ads
40790
40791         * snames.ads: Alphebetize entries for project file
40792
40793 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40794
40795         * trans.c (process_freeze_entity): Do nothing if the entity is a
40796         subprogram that was already elaborated.
40797
40798 2001-12-17  Richard Kenner  <kenner@gnat.com>
40799
40800         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
40801         and Esize if object is referenced via pointer.
40802
40803 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40804
40805         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
40806         is discrete before analyzing choices.
40807
40808 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
40809
40810         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
40811         containing the name of the Ada Main Program. This string is mainly
40812         intended for the debugger.
40813         (Gen_Output_File_C): Do the equivalent change when generating a C file.
40814
40815 2001-12-17  Robert Dewar  <dewar@gnat.com>
40816
40817         * ali.adb: Set new Dummy_Entry field in dependency entry
40818
40819         * ali.ads: Add Dummy_Entry field to source dependency table
40820
40821         * bcheck.adb (Check_Consistency): Ignore dummy D lines
40822
40823         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
40824
40825         * lib-writ.ads: Document dummy D lines for missing files.
40826
40827         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
40828
40829 2001-12-17  Robert Dewar  <dewar@gnat.com>
40830
40831         * ali.adb: Type reference does not reset current file.
40832
40833         * ali.adb: Recognize and scan renaming reference
40834
40835         * ali.ads: Add spec for storing renaming references.
40836
40837         * lib-xref.ads: Add documentation for handling of renaming references
40838
40839         * lib-xref.adb: Implement output of renaming reference.
40840
40841         * checks.adb:
40842         (Determine_Range): Document local variables
40843         (Determine_Range): Make sure Hbound is initialized. It looks as though
40844          there could be a real problem here with an uninitialized reference
40845          to Hbound, but no actual example of failure has been found.
40846
40847 2001-12-17  Laurent Pautet  <pautet@gnat.com>
40848
40849         * g-socket.ads:
40850         Fix comment of Shutdown_Socket and Close_Socket. These functions
40851         should not fail silently because if they are called twice, this
40852         probably means that there is a race condition in the user program.
40853         Anyway, this behaviour is consistent with the rest of this unit.
40854         When an error occurs, an exception is raised with the error message
40855         as exception message.
40856
40857 2001-12-17  Robert Dewar  <dewar@gnat.com>
40858
40859         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
40860         that it happens before modification of Sloc values for -gnatD.
40861
40862         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
40863         so that it happens before modification of Sloc values for -gnatD.
40864
40865         * switch.adb: Minor reformatting
40866
40867 2001-12-15  Richard Henderson  <rth@redhat.com>
40868
40869         * sem_ch7.adb: Wrap comment.
40870
40871 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
40872
40873         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
40874         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
40875         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
40876         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
40877         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
40878         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
40879         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
40880         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
40881         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
40882         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
40883         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
40884         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
40885         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
40886         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
40887         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
40888         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
40889         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
40890         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
40891         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
40892         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
40893         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
40894         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
40895         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
40896         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
40897         spelling errors.
40898
40899 2001-12-14  Vincent Celier  <celier@gnat.com>
40900
40901         * osint.adb(Create_Debug_File): When an object file is specified,
40902         put the .dg file in the same directory as the object file.
40903
40904 2001-12-14  Robert Dewar  <dewar@gnat.com>
40905
40906         * osint.adb: Minor reformatting
40907
40908         * lib-xref.adb (Output_Instantiation): New procedure to generate
40909         instantiation references.
40910
40911         * lib-xref.ads: Add documentation of handling of generic references.
40912
40913         * ali.adb (Read_Instantiation_Ref): New procedure to read
40914         instantiation references
40915
40916         * ali.ads: Add spec for storing instantiation references
40917
40918         * bindusg.adb: Minor reformatting
40919
40920         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40921
40922         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40923
40924         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40925
40926         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40927
40928         * csets.ads:
40929         Fix header format
40930         Add 2001 to copyright date
40931         Add entry for Latin-5 (Cyrillic ISO-8859-5)
40932
40933 2001-12-14  Matt Gingell  <gingell@gnat.com>
40934
40935         * adaint.c: mktemp is a macro on Lynx and can not be used as an
40936         expression.
40937
40938 2001-12-14  Richard Kenner  <kenner@gnat.com>
40939
40940         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
40941         if operand is CONSTRUCTOR.
40942
40943 2001-12-14  Ed Schonberg  <schonber@gnat.com>
40944
40945         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
40946         before emiting check on right-hand side, so that exception information
40947         is correct.
40948
40949 2001-12-14  Richard Kenner  <kenner@gnat.com>
40950
40951         * utils.c (create_var_decl): Throw away initializing expression
40952         if just annotating types and non-constant.
40953
40954 2001-12-14  Vincent Celier  <celier@gnat.com>
40955
40956         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
40957         Default_Ada_...
40958
40959         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40960         Remove functions.
40961         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
40962
40963         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40964         Remove functions.
40965         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
40966
40967 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
40968
40969         * ChangeLog: Remove piece of diff output.
40970
40971 2001-12-14  Geert Bosch  <bosch@gnat.com>
40972
40973         * config-lang.in: Update copyright notice
40974
40975         * layout.adb: Remove commented out code.
40976
40977         * mdllfile.ads: Update copyright notice. Fix header format.
40978
40979         * sem_case.ads: Likewise.
40980
40981         * sem_ch3.adb: Minor reformatting.
40982
40983 2001-12-12  Geert Bosch  <bosch@gnat.com>
40984
40985         * freeze.ads: Update copyright date.
40986
40987         * g-comlin.ads: Minor reformatting.
40988
40989         * gnat-style.texi: Fix typo.
40990
40991 2001-12-12  Geert Bosch  <bosch@gnat.com>
40992
40993         *  einfo.h: Regenerate.
40994
40995 2001-12-12  Ed Schonberg  <schonber@gnat.com>
40996
40997         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
40998         on known node types, rather than untyped fields. Further cleanups.
40999
41000 2001-12-12  Robert Dewar  <dewar@gnat.com>
41001
41002         * sem_ch12.adb:
41003         (Save_Entity_Descendant): Minor comment update.
41004         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41005          of an N_Attribute_Reference node. As per note below, this does not
41006         eliminate need for Associated_Node in attribute ref nodes.
41007         (Associated_Node): Documentation explicitly mentions attribute
41008         reference nodes, since this field is used in such nodes.
41009
41010         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41011
41012 2001-12-12  Robert Dewar  <dewar@gnat.com>
41013
41014         * s-stalib.adb: Add more comments on with statements being needed
41015
41016         * par-ch12.adb: Minor reformatting
41017
41018         * prj-dect.ads: Fix copyright header
41019
41020         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41021         inputs fit in 32 bits, but the result still overflows.
41022
41023         * s-fatgen.ads: Minor comment improvement
41024
41025 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41026
41027         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41028         formal derived type, look for an inherited component from the full
41029         view of the parent, if any.
41030
41031 2001-12-12  Robert Dewar  <dewar@gnat.com>
41032
41033         * checks.ads (Apply_Alignment_Check): New procedure.
41034
41035         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41036         ensure that the alignment of objects with address clauses is
41037         appropriate, and raise PE if not.
41038
41039         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41040         Exp_Pakd.Known_Aligned_Enough
41041
41042         * mdllfile.ads: Minor reformatting
41043
41044         * mlib-fil.ads: Minor reformatting
41045
41046 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41047
41048         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41049         fix to any component reference if enclosing record has non-standard
41050         representation.
41051
41052 2001-12-12  Vincent Celier  <celier@gnat.com>
41053
41054         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41055         Iteration
41056
41057 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41058
41059         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41060         sem_attr.
41061
41062 2001-12-12  Robert Dewar  <dewar@gnat.com>
41063
41064         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41065
41066 2001-12-12  Emmanuel Briot  <briot@gnat.com>
41067
41068         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41069         and it adds dependencies to system.io.
41070
41071 2001-12-12  Pascal Obry  <obry@gnat.com>
41072
41073         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41074         variable name.
41075
41076 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41077
41078         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41079         that is the parent of other generics, the instance body replaces the
41080         instance node.  Retrieve the instance of the spec, which is the one
41081         that is visible in clients and within the body.
41082
41083 2001-12-11  Vincent Celier  <celier@gnat.com>
41084
41085         * gnatmain.adb: Initial version.
41086
41087         * gnatmain.ads: Initial version.
41088
41089         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
41090
41091         * snames.adb: Updated to match snames.ads.
41092
41093         * snames.ads: Added Gnatstub.
41094
41095 2001-12-11  Vincent Celier  <celier@gnat.com>
41096
41097         * prj-attr.adb (Initialization_Data): Change name from
41098         Initialisation_Data.
41099
41100 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41101
41102         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
41103         + and * applied to backslashed expressions like \r.
41104
41105 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
41106
41107         * g-os_lib.ads: String_List type added, Argument_List type is now
41108         subtype of String_List.
41109
41110 2001-12-11  Robert Dewar  <dewar@gnat.com>
41111
41112         * g-os_lib.ads: Change copyright to FSF
41113         Add comments for String_List type
41114
41115 2001-12-11  Vincent Celier  <celier@gnat.com>
41116
41117         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
41118         string to the buffer).
41119
41120 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41121
41122         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
41123         sem_attr.
41124
41125         * sem_attr.adb: Simplify previous fix for Address.
41126         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
41127         to avoid anomalies where the bound of the type appears to raise
41128         constraint error.
41129
41130 2001-12-11  Robert Dewar  <dewar@gnat.com>
41131
41132         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
41133         handled.
41134
41135 2001-12-11  Ed Schonber   <schonber@gnat.com>
41136
41137         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
41138         renamed unit before checking for recursive instantiations.
41139
41140 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41141
41142         * prj.ads: Add comments for some of the fields.
41143
41144 2001-12-11  Robert Dewar  <dewar@gnat.com>
41145
41146         * lib-xref.adb (Output_Refs): Don't output type references outside
41147         the main unit if they are not otherwise referenced.
41148
41149 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41150
41151         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
41152         code and diagnose additional illegal uses
41153
41154         * sem_util.adb (Is_Object_Reference): An indexed component is an
41155         object only if the prefix is.
41156
41157 2001-12-11  Vincent Celier  <celier@gnat.com>
41158
41159         * g-diopit.adb: Initial version.
41160
41161         * g-diopit.ads: Initial version.
41162
41163         * g-dirope.adb:
41164         (Expand_Path): Avoid use of Unbounded_String
41165         (Find, Wildcard_Iterator): Moved to child package Iteration
41166
41167         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
41168
41169 2001-12-11  Robert Dewar  <dewar@gnat.com>
41170
41171         * sem_attr.adb: Minor reformatting
41172
41173 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41174
41175         * sem_ch3.adb: Clarify some ???.
41176
41177 2001-12-11  Robert Dewar  <dewar@gnat.com>
41178
41179         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
41180         Exp_Pakd.Known_Aligned_Enough
41181
41182         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
41183         version is moved to Exp_Ch13.
41184
41185 2001-12-11  Robert Dewar  <dewar@gnat.com>
41186
41187         * einfo.ads: Minor reformatting
41188
41189         * exp_ch5.adb: Add comment for previous.change
41190
41191         * ali.adb: New interface for extended typeref stuff.
41192
41193         * ali.ads: New interface for typeref stuff.
41194
41195         * checks.adb (Apply_Alignment_Check): New procedure.
41196
41197         * debug.adb: Add -gnatdM for modified ALI output
41198
41199         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
41200
41201         * lib-xref.adb: Extend generation of <..> notation to cover
41202         subtype/object types. Note that this is a complete rewrite,
41203         getting rid of the very nasty quadratic algorithm previously
41204         used for derived type output.
41205
41206         * lib-xref.ads: Extend description of <..> notation to cover
41207         subtype/object types. Uses {..} for these other cases.
41208         Also use (..) for pointer types.
41209
41210         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
41211
41212         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
41213         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
41214
41215 2001-12-11  Vincent Celier  <celier@gnat.com>
41216
41217         * gnatcmd.adb:
41218         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
41219         Changed /BIND_ONLY to /ACTIONS=BIND
41220         Changed /LINK_ONLY to /ACTIONS=LINK
41221
41222 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41223
41224         * sem_ch8.adb (Find_Selected_Component): improved search for a
41225         candidate package in case of error.
41226
41227         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
41228         chain back on scope stack before reinstalling use clauses.
41229
41230         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
41231         is enabled, do not kill the code for the condition, to preserve
41232         warning.
41233
41234 2001-12-11  Robert Dewar  <dewar@gnat.com>
41235
41236         * checks.adb (Insert_Valid_Check): Apply validity check to expression
41237         of conversion, not to result of conversion.
41238
41239 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41240
41241         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
41242         before freezing parent. If the declarations are mutually recursive,
41243         an access to the current record type may be frozen before the
41244         derivation is complete.
41245
41246 2001-12-05  Vincent Celier  <celier@gnat.com>
41247
41248         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
41249         -c /COMPILE_ONLY, -l /LINK_ONLY
41250
41251         * opt.ads:
41252         (Bind_Only): New Flag
41253         (Link_Only): New flag
41254
41255         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
41256         and -l (Link_Only)
41257
41258         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
41259
41260         * make.adb:
41261         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
41262         (Gnatmake): Set the step flags. Only perform a step if the
41263         corresponding step flag is True.
41264         (Scan_Make_Arg): Reset the bind and link step flags when -u
41265         or -gnatc has been specified.
41266
41267 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41268
41269         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
41270         get bounds from right operand.
41271
41272         * sem_eval.adb: Minor reformatting
41273
41274         * exp_util.adb (Make_Literal_Range): use bound of literal rather
41275         than Index'First, its lower bound may be different from 1.
41276
41277         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
41278         and C48009J
41279
41280 2001-12-05  Vincent Celier  <celier@gnat.com>
41281
41282         * prj-nmsc.adb Minor reformatting
41283
41284         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
41285         set and libraries are not supported.
41286
41287 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41288
41289         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
41290         private view explicitly, so the back-end can treat as a global
41291         when appropriate.
41292
41293 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41294
41295         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
41296          unit, always replace instance node with new body, for ASIS use.
41297
41298 2001-12-05  Vincent Celier  <celier@gnat.com>
41299
41300         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
41301         libraries are not supported and both attributes Library_Name and
41302         Library_Dir are specified.
41303
41304         * prj-proc.adb (Expression): Set location of Result to location of
41305         first term.
41306
41307         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
41308         (prj-nmsc is now importing MLib.Tgt)
41309
41310         * prj-proc.adb: Put the change indicated above that was forgotten.
41311
41312 2001-12-05  Robert Dewar  <dewar@gnat.com>
41313
41314         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
41315
41316 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41317
41318         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
41319         constraint, introduce explicit subtype declaration and derive from it.
41320
41321         * sem_ch3.adb: Minor reformatting
41322
41323 2001-12-05  Robert Dewar  <dewar@gnat.com>
41324
41325         * checks.adb (Determine_Range): Increase cache size for checks.
41326         Minor reformatting
41327
41328         * exp_ch6.adb: Minor reformatting
41329         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
41330         a parameter whose root type is System.Address, since treating such
41331         subprograms as pure in the code generator is almost surely a mistake
41332         that will lead to unexpected results.
41333
41334         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
41335         change handling of conversions.
41336
41337         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
41338
41339 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41340
41341         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
41342         aggregate with static wrong size, attach generated Raise node to
41343         declaration.
41344
41345 2001-12-05  Robert Dewar  <dewar@gnat.com>
41346
41347         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
41348         Fixes compilation abandoned bomb in B24009B.
41349
41350 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41351
41352         * sem_ch12.adb:
41353         Document use of Associated_Node on Selected_Components.
41354         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
41355         to clarify use of untyped descendant fields.
41356
41357 2001-12-05  Robert Dewar  <dewar@gnat.com>
41358
41359         * prj-dect.ads: Add ??? comment
41360         Add 2001 to copyright notice (was not done in after all)
41361
41362         * prj-part.adb: Minor reformatting. Reword one awkward error message.
41363
41364         * prj.ads: Minor reformatting throughout, and add some ??? comments
41365
41366         * snames.ads: Minor reformatting
41367
41368 2001-12-05  Geert Bosch  <bosch@gnat.com>
41369
41370         * snames.adb: Autoupdate
41371
41372 2001-12-05  Vincent Celier  <celier@gnat.com>
41373
41374         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
41375
41376         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
41377
41378         * prj-env.adb: Minor comment changes (modifying -> extends).
41379
41380         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
41381
41382         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
41383         Tok_Extends.
41384
41385         * prj.adb (Initialize): Change Modifying to Extends.
41386
41387         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
41388
41389         * prj.ads: Minor comment change (Modifying -> extending).
41390
41391         * snames.ads: Change modifying to extends.
41392
41393 2001-12-05  Robert Dewar  <dewar@gnat.com>
41394
41395         * sem_warn.adb: Remove stuff for conditionals, we are not going to
41396         do this after all.
41397
41398         * sem_warn.ads: Remove stuff for conditionals, we are not going to
41399         do this after all.  Add 2001 to copyright notice
41400
41401 2001-12-04  Geert Bosch  <bosch@gnat.com>
41402
41403         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
41404
41405 2001-12-04  Robert Dewar  <dewar@gnat.com>
41406
41407         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
41408         location if we already have errors. Stops some cases of cascaded
41409         errors.
41410
41411         * errout.adb: Improve comment.
41412
41413 2001-12-04  Robert Dewar  <dewar@gnat.com>
41414
41415         * sem_ch12.adb:
41416         (Analyze_Formal_Type_Definition): Defend against Error.
41417         (Analyze_Formal_Subprogram): Defend against Error.
41418
41419         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
41420         remove following semicolon if present. Removes cascaded error.
41421
41422 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
41423
41424         * bindgen.adb:
41425         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
41426          exceptions equals 0.
41427         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
41428         Fixes PIWG E tests (which have to be run with -gnatL).
41429
41430 2001-12-04  Robert Dewar  <dewar@gnat.com>
41431
41432         * einfo.ads: Minor reformatting
41433
41434 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41435
41436         * einfo.ads: Block_Node points to the identifier of the block, not to
41437         the block node itself, to preserve the link when the block is
41438         rewritten, e.g. within an if-statement with a static condition.
41439
41440         * inline.adb (Cleanup_Scopes): recover block statement from block
41441         entity using new meaning of Block_Node.
41442
41443         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
41444         identifier of block node, rather than to node itself.
41445
41446 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
41447
41448         * layout.adb:
41449         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
41450         (Discrimify): Go back to setting the Etypes of the selected component
41451         because the Vname component does not exist at this point and will
41452         fail name resolution. Also set Analyzed.
41453         Remove with and use of Sem_Res.
41454
41455 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
41456
41457         * Makefile.in: (HIE_SOURCES): add s-fat*.
41458
41459 2001-12-04  Robert Dewar  <dewar@gnat.com>
41460
41461         * sem_attr.adb:
41462         (Compile_Time_Known_Attribute): New procedure.
41463         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
41464          proper range check.
41465
41466 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41467
41468         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
41469         processing discriminants to diagnose illegal default values.
41470
41471 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41472
41473         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
41474         access discriminant within a type extension that constrains its
41475         parent discriminants.
41476
41477 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41478
41479         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
41480         is malformed, use instance of Any_Id to allow analysis to proceed.
41481
41482         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
41483         type definition is illegal.
41484         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
41485         misplaced.
41486
41487 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41488
41489         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
41490         constants.
41491
41492 2001-12-04  Robert Dewar  <dewar@gnat.com>
41493
41494         * errout.adb: Minor reformatting
41495
41496 2001-12-04  Robert Dewar  <dewar@gnat.com>
41497
41498         * exp_util.adb: Minor reformatting from last change
41499
41500         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
41501         which is a rewriting of an expression, traverse the original
41502         expression to remove warnings that may have been posted on it.
41503
41504 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41505
41506         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
41507         record that has other packed components.
41508
41509 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
41510
41511         * adaint.c: Minor cleanups.
41512
41513 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
41514
41515         * adaint.c: Do not use utime.h on vxworks.
41516
41517 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
41518
41519         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
41520         more confusion than it solves.
41521
41522 2001-12-04  Geert bosch  <bosch@gnat.com>
41523
41524         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
41525
41526 2001-12-04  Geert Bosch  <bosch@gnat.com>
41527
41528         * Makefile.in (update-sources): New target.
41529         For use by gcc_release script.
41530
41531 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41532
41533         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
41534         a configuration pragma, it is now legal wherever a pragma can appear.
41535
41536 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
41537
41538         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
41539         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
41540         is now @CROSS@ -DIN_GCC; update comment.
41541
41542 2001-12-04  Robert Dewar  <dewar@gnat.com>
41543
41544         * einfo.adb (Has_Pragma_Pure_Function): New flag.
41545         Fix problem that stopped ceinfo from working
41546
41547         * einfo.ads (Has_Pragma_Pure_Function): New flag.
41548
41549         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
41550
41551 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
41552
41553         * gnatchop.adb:
41554         (File_Time_Stamp): New procedure.
41555         (Preserve_Mode): New boolean.
41556         (Write_Unit): Pass time stamp.
41557         Implement -p switch (preserve time stamps).
41558
41559         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
41560
41561         * gnatchop.adb: Do usage info for -p switch
41562
41563         * adaint.h (__gnat_set_file_time_name): New function
41564
41565         * adaint.c (__gnat_set_file_time_name): Implement
41566
41567         * adaint.h: Fix typo
41568
41569 2001-12-03  Robert Dewar  <dewar@gnat.com>
41570
41571         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
41572         have Associated_Node.
41573
41574 2001-12-03  Robert Dewar  <dewar@gnat.com>
41575
41576         * prj-proc.adb: Minor reformatting
41577
41578         * make.adb: Minor reformatting
41579
41580 2001-12-03  Geert Bosch  <bosch@gnat.com>
41581
41582         * make.adb: Minor reformatting.
41583
41584 2001-12-03 Robert Dewar  <dewar@gnat.com>
41585
41586         * sem_ch12.adb: Minor reformatting
41587
41588 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41589
41590         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
41591         push Standard on the stack before analyzing the instance body,
41592         in order to have a clean visibility environment.
41593
41594         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
41595
41596 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41597
41598         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
41599         instantiation of a body that contains an inlined body.
41600
41601 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41602
41603         * sem_ch12.adb:
41604         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
41605         to prevent freezing within formal packages.
41606         (Freeze_Subprogram_Body): If body comes from another instance that
41607         appeared before its own body, place freeze node at end of current
41608         declarative part, to prevent a back-end crash.
41609         (Inline_Instance_Body): Handle properly a package instance within
41610         a subprogram instance that is a child unit.
41611
41612 2001-12-01  Graham Stott  <grahams@redhat.com>
41613
41614         * Makefile.in (misc.o): Add missing $(srcdir) prefix
41615         and add optabs.h dependency.
41616
41617         * misc.c: Include optabs.h
41618         (gnat_tree_code_type): Make static and const.
41619         (gnat_tree_code_length): Likewise.
41620         (gnat_tree_code_name): Likewise.
41621         (update_setjmp_buf): Obtain operands mode from insn_data.
41622
41623 2001-11-29  Richard Henderson  <rth@redhat.com>
41624
41625         * init.c: Remove obsolete dwarf2 frame.h section.
41626
41627 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
41628
41629         * Make-lang.in (ada.generated-manpages): New dummy target.
41630
41631 2001-11-29  Ed Schonberg  <schonber@gnat.com>
41632
41633         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
41634         into Command, an array conversion is illegal here. Uncovered by
41635         ACATS B460005.
41636
41637 2001-11-28  Geert Bosch  <bosch@gnat.com>
41638
41639         * init.c: Minor whitespace changes.
41640
41641 2001-11-28  Doug Rupp  <rupp@gnat.com>
41642
41643         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
41644         signal stack.
41645
41646 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
41647
41648         * misc.c (gnat_expand_constant): Move declaration above
41649         definition of lang_hooks.
41650         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
41651         (gnat_init): lang_expand_constant no longer exists.
41652
41653         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
41654         always have vprintf.
41655         (gnat_init): Always call set_internal_error_function.
41656
41657 2001-11-27  Andreas Jaeger  <aj@suse.de>
41658
41659         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
41660
41661 2001-11-27  Laurent Guerby  <guerby@acm.org>
41662
41663         * Makefile.in: Regenerate Ada dependencies.
41664
41665 2001-11-26  Richard Henderson  <rth@redhat.com>
41666
41667         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
41668         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
41669         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
41670
41671 2001-11-25  Laurent Guerby  <guerby@acm.org>
41672
41673         * sysdep.c (rts_get_*): Fix style.
41674
41675 2001-11-19  Laurent Guerby  <guerby@acm.org>
41676
41677         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
41678         since it is of no apparent use and cause warnings.
41679
41680 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
41681
41682         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
41683         static too.
41684         (gnat_init): Don't return NULL.
41685         (finish_parse): Remove.
41686
41687 2001-11-17  Laurent Guerby  <guerby@acm.org>
41688
41689         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
41690         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
41691         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
41692         * lang-spec.h: Add missing struct field to silence warnings.
41693         * sysdep.c (rts_get_*): Provide K&R prototype.
41694         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
41695         * traceback.c (Unlock_Task, Lock_Task): Likewise.
41696         * tracebak.c (__gnat_backtrace): Remove unused variable.
41697         * utils.c (end_subprog_body): Move to K&R style.
41698
41699 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41700
41701         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
41702
41703 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
41704
41705         * misc.c (gnat_init): Change prototype.  Include the
41706         functionality of the old init_parse and init_decl_processing.
41707         (gnat_init_decl_processing): New prototype.
41708         (init_parse): Remove.
41709         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
41710
41711 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
41712
41713         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
41714         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
41715         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
41716         set_yydebug): Remove.
41717
41718 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
41719
41720         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
41721         (struct lang_hooks): Constify.
41722         (language_string, lang_identify): Remove.
41723         * utils.c (init_decl_processing): Update.
41724
41725 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
41726
41727         * misc.c: Include langhooks-def.h.
41728         * Makefile.in: Update.
41729
41730 2001-10-30  Robert Dewar  <dewar@gnat.com>
41731
41732         * style.adb:
41733         (Check_Identifier): Rewrite circuit to be compatible with use of letters
41734         in the upper half of ASCII.
41735         (Check_Identifier): Minor reformatting
41736
41737 2001-10-30  Geert Bosch  <bosch@gnat.com>
41738
41739         * (Associated_Node, Set_Associated_Node): Do not check for
41740         Freeze_Entity.
41741
41742 2001-10-30  Robert Dewar  <dewar@gnat.com>
41743
41744         * a-reatim.ads: Minor reformatting
41745
41746 2001-10-30  Robert Dewar  <dewar@gnat.com>
41747
41748         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
41749         undocumented declarations.
41750
41751 2001-10-30  Pascal Obry  <obry@gnat.com>
41752
41753         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
41754         to the binder and linker.
41755         Minor style fix.
41756
41757         * mdll.ads: Fix layout.  Update copyright notice.
41758
41759         * mdll.adb: Fix layout.  Update copyright notice.
41760
41761 2001-10-30  Robert Dewar  <dewar@gnat.com>
41762
41763         * usage.adb: Minor fix to output for -gnaty.
41764
41765 2001-10-30  Ed Schonberg  <schonber@gnat.com>
41766
41767         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
41768         to accommodate all its possible values.
41769
41770         * a-reatim.adb (Split): Special-case handling of Time_Span_First
41771         and of small absolute values of T.
41772
41773 2001-10-30  Richard Kenner  <kenner@gnat.com>
41774
41775         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
41776         set_mem_attributes since not needed and wrong if RESULT if a REG;
41777         fixes ACATS failures.
41778
41779 2001-10-30  Geert Bosch  <bosch@gnat.com>
41780
41781         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
41782         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
41783
41784 2001-10-30  Robert Dewar  <dewar@gnat.com>
41785
41786         * bindusg.adb: Undocument -f switch.
41787
41788         * gnatcmd.adb: Remove /FULL_ELABORATION.
41789
41790         * opt.ads (Force_RM_Elaboration_Order): Document that this is
41791         obsolescent.
41792
41793         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
41794
41795         * gnatbind.adb: Minor update of warning msg.
41796
41797 2001-10-30  Vincent Celier  <celier@gnat.com>
41798
41799         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
41800         for project file switches (-P (/PROJECT_FILE=),
41801          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
41802         or MEDIUM or HIGH)
41803
41804 2001-10-30  Geert Bosch  <bosch@gnat.com>
41805
41806         * decl.c: Minor whitespace fixes.
41807
41808 2001-10-30  Richard Kenner  <kenner@gnat.com>
41809
41810         * utils2.c (build_allocator): Test for SIZE overflow in array case too
41811
41812 2001-10-30  Geert Bosch  <bosch@gnat.com>
41813
41814         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
41815         Found due to GCC 3.0 warning of using uninitialized value.
41816
41817         * layout.adb:
41818         (Get_Max_Size): Use variant record for tracking value/expression.
41819          Makes logic clearer and prevents warnings for uninitialized variables.
41820         (Layout_Array_Type): Use variant record for tracking value/expression.
41821          Makes logic clearer and prevents warnings for uninitialized variables.
41822
41823 2001-10-30  Robert Dewar  <dewar@gnat.com>
41824
41825         * lib.adb: Minor reformatting
41826
41827         * s-taprop.ads: Minor reformatting
41828
41829 2001-10-29  Laurent Guerby  <guerby@acm.org>
41830
41831         * init.c:
41832         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
41833         const.
41834         (_gnat_error_handler): Make MSG const.
41835
41836 2001-10-29  Richard Kenner  <kenner@gnat.com>
41837
41838         * sysdep.c: Fix localtime_r problem on LynxOS.
41839         Also remove #elif to avoid warnings.
41840
41841         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
41842         used by this.
41843
41844         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
41845
41846 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
41847
41848         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
41849         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
41850         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
41851         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
41852         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
41853         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
41854         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
41855         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
41856         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
41857         types.ads, urealp.adb: Fix spelling errors.
41858
41859 2001-10-27  Laurent Guerby  <guerby@acm.org>
41860
41861         * trans.c (gigi): Fix non determinism leading to bootstrap
41862         comparison failures for debugging information.
41863
41864 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
41865
41866         * gnat_rm.texi: Use @./@: where appropriate.
41867
41868 2001-10-26  Robert Dewar  <dewar@gnat.com>
41869
41870         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
41871
41872 2001-10-26  Richard Kenner  <kenner@gnat.com>
41873
41874         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
41875
41876 2001-10-26  Richard Kenner  <kenner@gnat.com>
41877
41878         * decl.c (validate_size): Modify message for bad size to avoid
41879         implication that compiler is modifying the size.
41880
41881 2001-10-26  Robert Dewar  <dewar@gnat.com>
41882
41883         * prj-util.adb: Minor reformatting. Fix bad header format.
41884
41885 2001-10-26  Robert Dewar  <dewar@gnat.com>
41886
41887         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
41888
41889         * sinfo.ads: Clarify use of Associated_Node (documentation only).
41890
41891         * sem_ch12.adb: Change Node4 to Associated_Node. Change
41892         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
41893         much more narrowly in places where needed. These are cleanups.
41894
41895 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
41896
41897         * 5zosinte.ads (null_pthread): new constant.
41898
41899         * 5ztaprop.adb:
41900         (Initialize_TCB): Initialize thread ID to null, to be able to verify
41901          later that this field has been set.
41902         (Finalize_TCB): ditto.
41903         (Suspend_Task): Verify that the thread ID is not null before using it.
41904         (Resume_Task): ditto.
41905
41906         * s-tasdeb.adb:
41907         (Resume_All_Tasks): Lock the tasks list before using it.
41908         (Suspend_All_Tasks): ditto.
41909
41910 2001-10-26  Richard Kenner  <kenner@gnat.com>
41911
41912         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
41913         Make constant variant of designated type for Is_Access_Constant.
41914         Call update_pointer_to with main variant.
41915
41916         * trans.c (process_freeze_entity, process_type):
41917         Call update_pointer_to on main variant.
41918
41919         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
41920         If main variant, update all other variants.
41921
41922         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
41923         TREE_STATIC.
41924
41925 2001-10-26  Robert Dewar  <dewar@gnat.com>
41926
41927         * prj-util.adb: Minor reformatting
41928
41929 2001-10-26  Robert Dewar  <dewar@gnat.com>
41930
41931         * prj-util.adb: Minor reformatting
41932
41933 2001-10-26  Robert Dewar  <dewar@gnat.com>
41934
41935         * prj-attr.adb: Minor reformatting throughout
41936
41937 2001-10-26  Robert Dewar  <dewar@gnat.com>
41938
41939         * prj-attr.ads: Minor reformatting
41940         Add ??? comment (this whole spec has almost no comments)
41941
41942 2001-10-26  Vincent Celier  <celier@gnat.com>
41943
41944         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
41945         ("//") that precede the drive letter on Interix.
41946
41947 2001-10-26  Geert Bosch  <bosch@gnat.com>
41948
41949         * gnat_rm.texi: Add GNAT Reference Manual.
41950
41951 2001-10-25  Robert Dewar  <dewar@gnat.com>
41952
41953         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
41954         is Error. Similar change for other renaming cases.
41955
41956 2001-10-25  Robert Dewar  <dewar@gnat.com>
41957
41958         * s-atacco.ads: Add pragma Inline_Always for functions.
41959         Fix header format. Add copyright 2001
41960
41961 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41962
41963         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
41964         return Error rather than Empty so that analysis can proceed.
41965
41966 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41967
41968         * sem_util.adb (Enter_Name): better handling of cascaded error
41969         messages when a unit appears in its own context.
41970
41971 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41972
41973         * sem_util.adb (Defining_Entity): in case of error, attach created
41974         entity to specification, so that semantic analysis can proceed.
41975
41976 2001-10-25  Robert Dewar  <dewar@gnat.com>
41977
41978         * sem_util.adb
41979         (Defining_Entity): Deal with Error.
41980         (Process_End_Label): Deal with bad end label for.
41981
41982 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41983
41984         * sem_elab.adb (Check_A_Call): refine message when call is in an
41985         instance but callee is not declared in the generic unit.
41986
41987 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41988
41989         * sem_elab.adb (Check_A_Call): check for renaming before finding the
41990         enclosing unit, which may already be different from the calling unit.
41991
41992 2001-10-25  Geert Bosch  <bosch@gnat.com>
41993
41994         * 4gintnam.ads: fix header format.
41995
41996 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41997
41998         * sem_res.adb (Resolve_Call): if the call is actually an indexing
41999         operation on the result of a parameterless call, perform elaboration
42000         check after the node has been properly rewritten.
42001
42002         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42003         inlined within the generic tree, the defining identifier is not a
42004         compilation_unit.
42005
42006 2001-10-25  Ed Schonberg  <schonber@gnat.com>
42007
42008         * sem_res.adb (Resolve): special-case resolution of Null in an
42009          instance or an inlined body to avoid view conflicts.
42010
42011         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42012          compatibility by retrieving the access type of the generic copy.
42013
42014 2001-10-25  Robert Dewar  <dewar@gnat.com>
42015
42016         * sem_ch3.adb:
42017         (Analyze_Number_Declaration): Handle error expression.
42018         (Signed_Integer_Type_Declaration): Handle error bound.
42019         (Analyze_Subtype_Indication): Handle error range.
42020
42021         * sem_util.adb (Get_Index_Bounds): Check for Error.
42022
42023 2001-10-25  Robert Dewar  <dewar@gnat.com>
42024
42025         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42026         in no run time mode.
42027
42028 2001-10-25  Pascal Obry  <obry@gnat.com>
42029
42030         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42031         mode case for ALLOC case.
42032
42033         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42034         all platforms. Improvement of last change.
42035
42036 2001-10-25  Robert Dewar  <dewar@gnat.com>
42037
42038         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42039
42040 2001-10-25  Geert Bosch  <bosch@gnat.com>
42041
42042         * osint.adb (Is_Relative): Remove duplicate.
42043
42044 2001-10-25  Pascal Obry  <obry@gnat.com>
42045
42046         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42047         pathnames in UNIX and DOS style with drive letter.
42048         (Is_Relative): new routine.
42049
42050         * osint.adb: Minor reformatting
42051
42052         * osint.adb (Is_Relative): implementation using
42053         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42054
42055 2001-10-25  Pascal Obry  <obry@gnat.com>
42056
42057         * g-dirope.adb (Basename): correctly compute offset between the
42058         original Path and the translated one.
42059
42060         * g-dirope.adb: (Base_Name): add some comments.
42061
42062 2001-10-25  Robert Dewar  <dewar@gnat.com>
42063
42064         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42065         in HIE mode, avoids compilation abandoned message
42066
42067         * exp_imgv.adb: Correct typo in previous change
42068
42069         * exp_imgv.adb: Correct typo in previous change (not my day!)
42070
42071 2001-10-25  Robert Dewar  <dewar@gnat.com>
42072
42073         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42074
42075 2001-10-25  Pascal Obry  <obry@gnat.com>
42076
42077         * g-awk.ads: Move all pragma inlines next to the routine
42078          declarations. This is more uniform with other GNAT spec.
42079
42080 2001-10-22  Geert Bosch  <bosch@gnat.com>
42081
42082         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42083
42084 2001-10-19  Geert Bosch  <bosch@gnat.com>
42085
42086         * Makefile.in (tools, gnattools): Remove gnatmem.
42087
42088 2001-10-17  Richard Henderson  <rth@redhat.com>
42089
42090         * Makefile.in (misc.o): Depend on langhooks.h.
42091         * misc.c: Include it.
42092         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
42093         (LANG_HOOKS_DECODE_OPTION): New.
42094         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
42095
42096 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
42097
42098         * trans.c (tree_transform): Adjust to recent change in
42099         expand_asm_operands to implement named asm operands.
42100
42101 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42102
42103         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
42104         renaming of discriminant for mutable record type.
42105
42106 2001-10-11  Robert Dewar  <dewar@gnat.com>
42107
42108         * validsw.adb: Properly save -gnatVn status.
42109
42110 2001-10-11  Robert Dewar  <dewar@gnat.com>
42111
42112         * usage.adb: Add lines for V switch.
42113
42114         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
42115         (/VALIDITY_CHECKING).
42116
42117 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42118
42119         * sem_type.adb (Add_One_Interp): an operator for a type declared in
42120         an extension of System is known to be visible.
42121
42122 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42123
42124         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
42125         properly. Fixes regression on ACATS C34005G.
42126
42127 2001-10-11  Robert Dewar  <dewar@gnat.com>
42128
42129         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
42130         loop in generic instance, since this is likely not very useful.
42131
42132 2001-10-11  Robert Dewar  <dewar@gnat.com>
42133
42134         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
42135         the error message for high integrity mode.
42136
42137         * rtsfind.adb (RTE): Give message if we try to find an entity that
42138         is not available in high integrity mode.
42139
42140         * rtsfind.ads:
42141         (OK_To_Use_In_HIE_Mode): New array.
42142         (RTE): May return Empty in high integrity mode.
42143
42144         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
42145         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
42146
42147         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
42148         unit if not inlined always and in no runtime mode. Fixes problem
42149         caused by new Rtsfind changes.
42150
42151         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
42152         body is deleted.
42153
42154         * rtsfind.adb (RTE): Make sure we do not try to load unit after
42155         giving message for entity not available in high integrity mode.
42156
42157 2001-10-11  Pascal Obry  <obry@gnat.com>
42158
42159         * impunit.adb: Add GNAT.CRC32.
42160
42161 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42162
42163         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
42164         properly the case where one universal operand in a non-static
42165         exponentiation of a real literal.
42166
42167 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42168
42169         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
42170         clause, return the gobal finalization list, for lack of anthing else.
42171
42172 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42173
42174         * exp_ch7.adb (Make_Transient_Block): if statement is within
42175         exception handler, always use new transient scope to place Clean
42176         procedure.
42177
42178 2001-10-11  Pascal Obry  <obry@gnat.com>
42179
42180         * Makefile.in:
42181         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42182         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42183         (GNATLS_RTL_OBJS): add g-crc32.o
42184         (GNATMAKE_RTL_OBJS): add g-crc32.o
42185
42186         * ali-util.adb:
42187         (CRC_Match): new function.
42188         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
42189         instead of the previous simple checksum algorithm.
42190         (Time_Stamp_Mismatch): use CRC_Match for comparison.
42191         (Set_Source_Table): idem.
42192
42193         * ali-util.ads:
42194         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
42195         instead of simple checksum.
42196         (CRC_Match): new function.
42197         (CRC_Error): new constant.
42198
42199         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
42200         a CRC now and not a simple checksum. A CRC uses lower-case hex
42201         letters, fixes ambiguity in parsing.
42202
42203         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
42204         is what this variable will store.
42205
42206         * bcheck.adb: Change reference to chechsum in comments by CRC.
42207         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
42208         rename All_Checksum_Match to All_CRC_Match. Change due to API
42209         renaming since now GNAT does not use a simple checksum but a
42210         CRC using GNAT.CRC32.
42211
42212         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
42213         now and not anymore a simple checksum.
42214
42215         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
42216         places.
42217
42218         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
42219
42220         * scans.adb:
42221         (Restore_Scan_State): rename Checksum to CRC.
42222         (Save_Scan_State): idem.
42223
42224         * scans.ads:
42225         With GNAT.CRC32.
42226         (Checksum): rename to CRC.
42227         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
42228
42229         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
42230         GNAT.CRC32).  Update copyright notice.
42231
42232         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
42233         GNAT.CRC32).  Update copyright notice.
42234
42235         * scn.adb:
42236         (Accumulate_Checksum): removed.
42237         (Update): new procedure. Add a wide-character into the CRC.
42238
42239         * sinput-l.adb:
42240         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
42241         (Load_File): fix initialization of S (change Source_Checksum to
42242         Source_CRC)
42243
42244         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
42245         Source_CRC in S initialization.
42246
42247         * sinput.adb (Source_Checksum): renamed to Source_CRC.
42248
42249         * sinput.ads (Source_Checksum): renamed to Source_CRC.
42250         Update comments for the CRC.
42251
42252         * types.adb (Hex): Use lowercase for the letter part.
42253
42254         * types.ads (Get_Hex_String): Returns the hexadecimal representation
42255         for a word. This is currently used only for CRC. In previous version,
42256         the checksum was using a representation with all letter being
42257         upper-case. With the new implementation (using CRC) we do not remove
42258         the 32th bit of the CRC, so we can have an upper-case starting letter
42259         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
42260         It is ambigous since the CRC was optional and could be followed by
42261         options like EB, EE. So now this routines uses lower-case letter for
42262         the hexadecimal representation. Strange enough only lower case letters
42263         where checked in Scan_ALI (even if this was not a possible case).
42264
42265         * gnatvsn.ads (Library_Version): changed to 3.15a.
42266
42267         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
42268         for the compiler.
42269
42270         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
42271         for the compiler.
42272
42273         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
42274         Add 2001 to copyright notice
42275         (Accumulate_Checksum): Modify to use System.CRC32.
42276
42277         * ali-util.ads: Redo changes of previous revision to continue to use
42278         the word Checksum. Add 2001 to copyright notice.
42279
42280         * ali.adb: Undo some of previous changes, not needed.
42281         Keep the change for lower case letters in the checksum.
42282
42283         * ali.ads: Undo previous change not needed.
42284
42285         * bcheck.adb: Undo most of previous change, not needed.
42286         But do use Checksums_Match for checksum comparison.
42287
42288         * gnatls.adb: Undo most of previous change, not needed.
42289         But do use Checksums_Match for comparing checksums.
42290
42291         * lib-load.adb: Undo previous change, not needed.
42292
42293         * lib-writ.adb: Undo previous change, not needed.
42294
42295         * lib-writ.ads: Document that checksums use lower case,
42296         not upper case letters.
42297
42298         * scans.adb: Undo previous change, not needed
42299
42300         * scans.ads: Undo previous change, not needed.
42301
42302         * scn-nlit.adb: Undo previous changes, not needed.
42303
42304         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
42305
42306         * scn.adb:
42307         (Accumulate_Checksum): Use System.CRC32.
42308         (Initialize_Checksum): New procedure.
42309         Remove other changes of previous revision.
42310
42311         * sinput-p.adb: Undo previous change, not needed.
42312
42313         * sinput.adb: Undo previous change, not needed.
42314
42315         * sinput-l.adb: Undo previous change, not needed.
42316
42317         * sinput.ads: Undo previous change, not needed.  Keep only comment
42318         on new checksum algorithm
42319
42320         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
42321         Also remove a-tags and a-stream from GNAT sources.
42322
42323         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
42324
42325         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
42326
42327 2001-10-11  Geert Bosch  <bosch@gnat.com>
42328
42329         * einfo.h: Regenerate.
42330
42331         * nmake.ads: Regenerate.
42332
42333         * nmake.adb: Regenerate.
42334
42335         * sinfo.h: Regenerate.
42336
42337         * treeprs.adb: Regenerate.
42338
42339 2001-10-10  Geert Bosch  <bosch@gnat.com>
42340
42341         * gnat-style.texi: New file describing coding guidelines for Ada.
42342
42343 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42344
42345         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
42346         is Flag174.
42347
42348 2001-10-10  Geert Bosch  <bosch@gnat.com>
42349
42350         * snames.ads: Add new names for project facility.
42351
42352         * snames.adb: Update to reflect snames.ads changes.
42353
42354         * snames.h: Update to reflect snames.ads changes.
42355
42356 2001-10-10  Vincent Celier  <celier@gnat.com>
42357
42358         * make.adb:
42359         (Add_Switches): reflect the changes for the switches attributes
42360         Default_Switches indexed by the programming language,
42361         Switches indexed by the file name.
42362         (Collect_Arguments_And_Compile): Idem.
42363         Reflect the attribute name changes.
42364
42365         * prj-attr.adb:
42366         (Initialisation_Data): Change the names of some packages and
42367         attributes.
42368         (Initialize): process case insensitive associative arrays.
42369
42370         * prj-attr.ads:
42371         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
42372
42373         * prj-dect.adb:
42374         (Parse_Attribute_Declaration): For case insensitive associative
42375          arrays, set the index string to lower case.
42376
42377         * prj-env.adb:
42378         Reflect the changes of the project attributes.
42379
42380         * prj-nmsc.adb:
42381         Replace Check_Naming_Scheme by Ada_Check and
42382         Language_Independent_Check.
42383
42384         * prj-nmsc.ads:
42385         Replaced Check_Naming_Scheme by 2 procedures:
42386         Ada_Check and Language_Independent_Check.
42387
42388         * prj-proc.adb:
42389         (Process_Declarative_Items): For case-insensitive associative
42390         arrays, set the index string to lower case.
42391         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
42392         Prj.Nmsc.Check_Naming_Scheme.
42393
42394         * prj-tree.adb:
42395         (Case_Insensitive): New function
42396         (Set_Case_Insensitive): New procedure
42397
42398         * prj-tree.ads:
42399         (Case_Insensitive): New function
42400         (Set_Case_Insensitive): New procedure
42401         (Project_Node_Record): New flag Case_Insensitive.
42402
42403         * prj-util.adb:
42404         (Value_Of): new function to get the string value of a single
42405         string variable or attribute.
42406
42407         * prj-util.ads:
42408         (Value_Of): new function to get the string value of a single
42409         string variable or attribute.
42410
42411         * prj.adb:
42412         (Ada_Default_Spec_Suffix): New function
42413         (Ada_Default_Impl_Suffix): New function
42414         Change definitions of several constants to reflect
42415         new components of record types.
42416
42417         * prj.ads:
42418         (Naming_Data): Change several components to reflect new
42419         elements of naming schemes.
42420         (Project_Data): New flags Sources_Present and
42421         Language_Independent_Checked.
42422         (Ada_Default_Spec_Suffix): New function.
42423         (Ada_Default_Impl_Suffix): New function.
42424
42425         * snames.ads:
42426         Modification of predefined names for project manager: added
42427         Implementation, Specification_Exceptions, Implementation_Exceptions,
42428         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
42429         Default_Switches, _Languages, Builder, Cross_Reference,
42430         Finder. Removed Body_Part, Specification_Append, Body_Append,
42431         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
42432         Gnatlink.
42433
42434         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42435         Add comments.
42436
42437         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
42438         not that it is Nil_Variable_Value.
42439
42440         * prj.ads: Add ??? for uncommented declarations
42441
42442 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42443
42444         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
42445         constant, do not indicate possible modification, so that gigi can
42446         treat it as a bona fide constant.
42447
42448 2001-10-10  Robert Dewar  <dewar@gnat.com>
42449
42450         * sem_prag.adb: Add processing for pragma External.
42451
42452         * snames.ads: Add entry for pragma External.
42453
42454         * par-prag.adb: Add pragma External.
42455
42456         * snames.adb: Updated to match snames.ads.
42457
42458 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42459
42460         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
42461         a dynamic task if the allocator appears in an indexed assignment
42462         or selected component assignment.
42463
42464         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
42465         For a dynamic task in an assignment statement, use target of
42466         assignment to generate meaningful name.
42467
42468 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42469
42470         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
42471         a generic package.
42472
42473         * einfo.ads: Body_Entity is also defined for generic package.
42474         Documentation change only
42475
42476         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
42477         others_choice for a discriminated component initialization,
42478         convert discriminant references into the corresponding discriminals.
42479
42480         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
42481         only if original type is private and expression has to be wrapped
42482         in a conversion.
42483
42484         * checks.adb:
42485         (Apply_Constraint_Check): Do not perform length check
42486         if expression is an aggregate with only an others_choice.
42487         (Length_N_Cond): two references to the same in_parameter
42488         (typically the discriminal in an init_proc) denote the same value.
42489         Two useful optimization uncovered by bugfixes above.
42490
42491 2001-10-10  Robert Dewar  <dewar@gnat.com>
42492
42493         * xeinfo.adb: Change int to char in translation of enumeration types.
42494         This fixes a problem in the C representation of component alignment.
42495         Add 2001 to copyright notice
42496
42497 2001-10-10  Richard Kenner  <kenner@gnat.com>
42498
42499         * decl.c: (validate_size): Do check size of object of integral type
42500         if it is a packed array type.
42501
42502 2001-10-10  Richard Kenner  <kenner@gnat.com>
42503
42504         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
42505         VAR_DECL for constant if not Is_Public but -O0.
42506
42507 2001-10-10  Richard Kenner  <kenner@gnat.com>
42508
42509         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
42510
42511 2001-10-10  Geert Bosch  <bosch@gnat.com>
42512
42513         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
42514         use '/' as switch character, allowing for absolute file names.
42515
42516 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
42517
42518         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
42519         FSF address.
42520
42521 2001-10-08  Geert Bosch  <bosch@gnat.com>
42522
42523         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
42524         Automatically build utilities when files need to be regenerated.
42525
42526 2001-10-08  Geert Bosch  <bosch@gnat.com>
42527
42528         * xsnames.adb: New utility for updating snames.ads and snames.adb
42529
42530 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
42531
42532         * Make-lang.in (ADAFLAGS): Add -W -Wall.
42533         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
42534         (gnat1): Also depend on attribs.o.
42535         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
42536         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
42537         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
42538         (ADAFLAGS): Add -W -Wall.
42539         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
42540         take out CFLAGS.
42541
42542         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
42543         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
42544         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
42545         Use $(ADAC), not $(CC), as compilation command.
42546
42547         (gnattools): Depend directly on tools to build, don't use
42548         recursive make.
42549         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
42550
42551         * einfo.h, sinfo.h: New files (autogenerated).
42552
42553 2001-10-08  Richard Henderson  <rth@redhat.com>
42554
42555         * comperr.adb (Abort_In_Progress): New.
42556         (Compiler_Abort): Use it to prevent recursion.
42557
42558 2001-10-08  Robert Dewar  <dewar@gnat.com>
42559
42560         * atree.adb: Set Error_Posted in Error node, helps error recovery.
42561
42562         * par-endh.adb (Output_End_Expected): We should also not test
42563         Error_Posted on the Error node, since now it is always set.
42564
42565         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
42566         to help error recovery. Part of general work on 9407-004.
42567
42568         * par.adb: Add ??? for misuse of error
42569
42570         * sem_res.adb:
42571         (Resolve): Defend against Error, fixes 9407-003.
42572         (Resolve_Discrete_Subtype_Indication): Defend against Error.
42573
42574         * sinfo.ads (N_Error): Now has Etype field (which will be set
42575         to Any_Type to help error recovery).
42576
42577 2001-10-08  Richard Kenner  <kenner@gnat.com>
42578
42579         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
42580         Consistently set MEM attributes from expression; fixes
42581         bootstrap failure on x86.
42582
42583 2001-10-08  Geert Bosch  <bosch@gnat.com>
42584
42585         * 5oosinte.adb: Add 2001 to copyright notice.
42586
42587 2001-10-08  Geert Bosch  <bosch@gnat.com>
42588
42589         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
42590
42591         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
42592
42593 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
42594
42595         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
42596
42597 2001-10-05  Geert Bosch  <bosch@gnat.com>
42598
42599         * adaint.h: Small formatting fix.
42600
42601 2001-10-04  Geert Bosch  <bosch@gnat.com>
42602
42603         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
42604         Arg is int, not FILE *, in dummy version of functions.
42605
42606         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
42607         Arg is int, not FILE *.
42608
42609 2001-10-04  Geert Bosch  <bosch@gnat.com>
42610
42611         * 3lsoccon.ads: Added file, missed with initial check ins.
42612
42613         * 4lintnam.ads: Fix header format.
42614         Change Linux to GNU/Linux.
42615
42616         * 5iosinte.adb: Change Linux to GNU/Linux.
42617
42618         * 5iosinte.ads: Change Linux to GNU/Linux.
42619
42620         * 5itaprop.adb: Change Linux to GNU/Linux.
42621
42622         * 5itaspri.ads: Change Linux to GNU/Linux.
42623         Update copyright notice.
42624
42625         * 5lintman.adb: Change Linux to GNU/Linux.
42626
42627         * 5lml-tgt.adb: Change Linux to GNU/Linux.
42628
42629         * 5losinte.ads: Change Linux to GNU/Linux.
42630
42631         * 5lsystem.ads: Change Linux to GNU/Linux.
42632
42633         * 5qosinte.adb: Change Linux to GNU/Linux.
42634
42635         * 5qosinte.ads: Change Linux to GNU/Linux.
42636
42637         * 5qparame.ads: Change Linux to GNU/Linux.
42638
42639         * 5qtaprop.adb: Change Linux to GNU/Linux.
42640
42641         * 5qtaspri.ads: Change Linux to GNU/Linux.
42642         Add 2001 to copyright notice.
42643
42644         * 5vintman.ads: Change Linux to GNU/Linux.
42645         Fix header format.  Add 2001 to copyright notice.
42646
42647         * g-soccon.ads: Change Linux to GNU/Linux.
42648
42649         * g-trasym.ads: Change Linux to GNU/Linux.
42650         Add 2001 to copyright notice.
42651
42652         * memtrack.adb: Change Linux to GNU/Linux.
42653
42654         * s-intman.ads: Change Linux to GNU/Linux.
42655         Add 2001 to copyright notice.  Fix header format.
42656
42657         * s-stache.adb: Change Linux to GNU/Linux.
42658
42659         * adaint.c: Change Linux to GNU/Linux.
42660
42661         * cio.c: Change Linux to GNU/Linux.
42662
42663         * cstreams.c: Change Linux to GNU/Linux.
42664
42665         * init.c: Change Linux to GNU/Linux.
42666
42667         * gmem.c: Change Linux to GNU/Linux.
42668
42669         * tracebak.c: Change Linux to GNU/Linux.
42670
42671
42672 2001-10-02  Geert Bosch  <bosch@gnat.com>
42673
42674         * misc.c (insert_default_attributes): Add dummy version.