OSDN Git Service

2008-08-06 Thomas Quinot <quinot@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-08-06  Thomas Quinot  <quinot@adacore.com>
2
3         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
4         Remove obsolete targets referencing gen-soccon
5         When generating s-oscons.ads, use a file name that includes the
6         THREAD_KIND, to ensure that the (potentially different) version from a
7         previous build with a different threads flavour does not get reused.
8
9 2008-08-06  Thomas Quinot  <quinot@adacore.com>
10
11         * sem_res.adb: Minor reformatting
12
13         * s-fileio.adb (Open): When file open operation fails, raise Name_Error
14         only when the operating system reports a non-existing file or directory
15         (ENOENT), otherwise raise Name_Error.
16
17         * exp_ch11.adb: Minor reformatting
18
19 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
20
21         * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
22         incomplete, add the access_to_subprogram type to the list of private
23         dependents only if the incomplete type will be completed in the current
24         scope.
25         (Build_Discriminant_Constraints): If the type of the discriminant is
26         access_to_variable, reject a constraint that is access_to_constant.
27
28 2008-08-06  Thomas Quinot  <quinot@adacore.com>
29
30         * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
31         g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
32         g-sttsne-dummy.ads: New files.
33
34         * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
35         with pragma Unimplemented_Unit for sockets packages on Nucleus.
36
37 2008-08-06  Pascal Obry  <obry@adacore.com>
38
39         * adaint.c: Another fix for ACL support on Windows.
40
41 2008-08-06  Javier Miranda  <miranda@adacore.com>
42
43         * exp_disp (Expand_Interface_Actuals): Adds missing support for
44         expansion of calls to subprograms using selected components.
45
46 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
47
48         * sem_res.adb (Resolve_Call): Use base type to determine whether a
49         dereference is needed because a subtype of an access_to_subprogram is
50         simply an access-subtype
51
52 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
53
54         * g-comlin.adb (Set_Command_Line): Now that aliases can contain
55         parameters, always specify the expected separator.
56
57 2008-08-06  Thomas Quinot  <quinot@adacore.com>
58
59         * xnmake.adb: Use new XUtil package for platform independent text
60         output.
61
62 2008-08-06  Vincent Celier  <celier@adacore.com>
63
64         * gnat_ugn.texi: Document compiler switch -gnateG
65
66 2008-08-06  Quentin Ochem  <ochem@adacore.com>
67
68         * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
69         in the case of an empty pattern size.
70         (Compute_Result): Do not do any computation in the case of an empty
71         pattern size.
72         (Report_Result): Fixed computation of the overflow guard.
73
74 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
75
76         * g-awk.adb (Finalize): Do not use directly objects of the type in the
77         finalization routine to prevent elaboration order anomalies in new
78         finalization scheme.
79
80 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
81
82         * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
83         declaration for the same type.
84
85 2008-08-06  Thomas Quinot  <quinot@adacore.com>
86
87         * sem.adb: Minor rewording (comment)
88
89 2008-08-06  Jerome Lambourg  <lambourg@adacore.com>
90
91         * g-comlin.adb (Define_Switch, Get_Switches): New.
92         (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
93         ungrouping switches.
94         (For_Each_Simple_Switch): Allow more control over parameters handling.
95         This generic method now allows ungrouping of switches with parameters
96         and switches with more than one letter after the prefix.
97         (Set_Command_Line): Take care of switches that are prefixed with a
98         switch handling parameters without delimiter (-gnatya and -gnaty3 for
99         example).
100         (Add_Switch, Remove_Switch): Handle parameters possibly present inside
101         a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
102         the operation.
103         (Start, Alias_Switches, Group_Switches): Take care of parameters
104         possibly present inside a group.
105
106         * g-comlin.ads (Define_Switch): New method used to define a list of
107         expected switches, that are necessary for correctly ungrouping switches
108         with more that one character after the prefix.
109         (Get_Switches): Method that builds a getopt string from the list of
110         switches as set previously by Define_Switch.
111         (Add_Switch, Remove_Switch): New versions of the methods, reporting the
112         status of the operation. Also allow the removal of switches with
113         parameters only.
114         (Command_Line_Configuration_Record): Maintain a list of expected
115         switches.
116
117 2008-08-06  Doug Rupp  <rupp@adacore.com>
118
119         * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
120         TARGET_MALLOC64 clear.
121
122         * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
123         if TARGET_MALLOC64 clear.
124
125         * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
126         (TARGET_MALLC64): New macro. Default to clear.
127
128 2008-08-06  Doug Rupp  <rupp@adacore.com>
129
130         * gcc-interface/utils2.c (snames.h) Include
131         (TARGET_ABI_OPEN_VMS): Initialize.
132         (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
133         for Convention C.
134
135 2008-08-06  Ed Schonberg  <schonberg@adacore.com>
136
137         * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
138         null exclusion in a discriminant declaration
139
140         * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
141         indicators when type is not an access type.
142
143         * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
144         indicators when type is not an access type.
145
146 2008-08-06  Javier Miranda  <miranda@adacore.com>
147
148         * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
149         with the target interface before expanding the code of the interface
150         conversion.
151
152 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
153
154         * freeze.adb:
155         (Freeze_Entity): A deferred constant does not violate the restriction
156         No_Default_Initialization, 
157
158         * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
159         can carry a null exclusion indicator, and on which an error may be
160         posted if the indicator is redundant.
161
162         * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
163         does not apply to a subtype mark that already excludes null.
164
165         * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
166         exclusion does not apply to a subtype mark that already excludes null.
167
168 2008-08-05  Thomas Quinot  <quinot@adacore.com>
169
170         * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
171
172 2008-08-05  Doug Rupp  <rupp@adacore.com>
173
174         * vms_data.ads: Translation for /POINTER_SIZE qualifier.
175
176 2008-08-05  Thomas Quinot  <quinot@adacore.com>
177
178         * gsocket.h: Make this file includable in a Nucleus environment, which
179         does not support sockets.
180
181         * socket.c: Remove Nucleus-specific hack.
182
183 2008-08-05  Pascal Obry  <obry@adacore.com>
184
185         * adaint.c: Remove support for readable attribute on vxworks and nucleus
186
187 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
188
189         * sem_attr.adb:
190         (Analyze_Attribute, case 'Result): handle properly the case where some
191         operand of the expression in a post-condition generates a transient
192         block.
193
194         * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
195         right-hand side when it is an anonymous access_to_subprogram, to force
196         static accessibility check when needed.
197
198 2008-08-05  Sergey Rybin  <rybin@adacore.com>
199
200         * gnat_ugn.texi: Changing the description of the gnatcheck metrics
201         rule according to the change in the rule option.
202         Add documentation for -gnatw.b/-gnatw.B
203
204 2008-08-05  Robert Dewar  <dewar@adacore.com>
205
206         * ug_words: Add entries for -gnatw.b/-gnatw.B
207
208         * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
209
210 2008-08-05  Vincent Celier  <celier@adacore.com>
211
212         * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
213         (File).
214         
215         * a-ztdeio.adb: Ditto.
216
217 2008-08-05  Pascal Obry  <obry@adacore.com>
218
219         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
220         readable attribute.
221
222 2008-08-05  Vincent Celier  <celier@adacore.com>
223
224         * s-wchwts.adb:
225         (Wide_String_To_String): Returns a String with the same 'First as its
226         parameter S.
227         (Wide_Wide_String_To_String): Ditto
228         
229         * s-wchwts.ads:
230         (Wide_String_To_String): Document that the lowest index of the returned
231         String is equal to S'First.
232
233 2008-08-05  Thomas Quinot  <quinot@adacore.com>
234
235         * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
236
237         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
238         s-oscons.ads
239
240 2008-08-05  Robert Dewar  <dewar@adacore.com>
241
242         * opt.ads (Warn_On_Biased_Representation): New flag
243         
244         * sem_ch13.adb:
245         (Analyze_Attribute_Definition_Clause): Issue warning when biased
246         representation is required.
247         (Minimum_Size): Don't allow biasing if enum rep clause case
248         
249         * sem_warn.adb:
250         (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
251         (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
252         
253         * usage.adb: Add lines for -gnatw.b/B switches
254
255 2008-08-05  Pascal Obry  <obry@adacore.com>
256
257         * a-coinve.adb: Reorder the code to avoid uninitialized warning.
258
259         * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
260
261 2008-08-05  Thomas Quinot  <quinot@adacore.com>
262
263         * socket.c: Minor reformatting.
264
265 2008-08-05  Robert Dewar  <dewar@adacore.com>
266
267         * sem_ch3.adb: Minor reformatting
268
269         * prj-nmsc.adb: Minor reformatting
270
271 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
272
273         * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
274         visibility check on the component type if the simple test fails.
275
276 2008-08-05  Jose Ruiz  <ruiz@adacore.com>
277
278         * init.c (__gnat_install_handler for linux): If we are building the
279         Xenomai run time then we need to do two additional things: avoid
280         memory swapping and transform the Linux environment task into a native
281         Xenomai task.
282
283         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
284         time): Use interface to Xenomai native skin and avoid linux-specific
285         way of setting CPU affinity.
286         (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
287
288 2008-08-05  Bob Duff  <duff@adacore.com>
289
290         * checks.ads: Minor comment fix
291
292 2008-08-05  Thomas Quinot  <quinot@adacore.com>
293
294         * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
295         g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
296         CS8.
297
298 2008-08-05  Robert Dewar  <dewar@adacore.com>
299
300         * mlib.adb: Minor code reorganization
301         Minor reformatting
302
303         * make.adb: Minor reformatting
304
305         * prj-attr.ads: Minor reformatting
306
307         * s-os_lib.adb: Minor reformatting
308
309         * s-fileio.adb: Minor code reorganization
310         Minor reformatting
311
312         * prj.ads: Minor reformatting
313
314 2008-08-05  Bob Duff  <duff@adacore.com>
315
316         * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
317         unresolved initial value of "null", because it causes implicitly
318         generated "=" operators to be ambiguous, and because this type should
319         not be passed to gigi.
320
321 2008-08-05  Vincent Celier  <celier@adacore.com>
322
323         * mlib.adb: Update comments.
324
325         * make.adb (Switches_Of): Check for Switches (others), before checking
326         for Default_Switches ("Ada").
327         (Gnatmake): Use Builder'Switches (others) in preference to
328         Builder'Default_Switches ("Ada") if there are several mains.
329
330         * prj-attr-pm.adb:
331         (Add_Attribute): Add component Others_Allowed in Attribute_Record
332         aggregate.
333
334         * prj-attr.adb:
335         Add markers to indicates that attributes Switches allow others as index
336         (Others_Allowed_For): New Boolean function, returning True for
337         attributes with the mark.
338         (Initialize): Recognize optional letter 'O' as the marker for
339         associative array attributes where others is allowed as the index.
340
341         * prj-attr.ads:
342         (Others_Allowed_For): New Boolean function
343         (Attribute_Record): New Boolean component Others_Allowed
344         
345         * prj-dect.adb:
346         (Parse_Attribute_Declaration): For associative array attribute where
347         others is allowed as the index, allow others as an index.
348
349         * prj-nmsc.adb:
350         (Process_Binder): Skip associative array attributes with index others
351         (Process_Compiler): Ditto
352
353         * prj-util.adb:
354         (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
355         index is All_Other_Names.
356
357         * prj.ads:
358         (All_Other_Names): New constant
359
360         * prj-proc.adb:
361         (Process_Declarative_Items): Skip associative array attribute when index
362         is reserved word "others".
363
364 2008-08-05  Vasiliy Fofanov  <fofanov@adacore.com>
365
366         * gen-oscons.c: Adapt for VMS where termios.h is not available.
367
368 2008-08-05  Thomas Quinot  <quinot@adacore.com>
369
370         * a-rttiev.adb: Minor reformatting (comments)
371
372         * gen-soccon.c: Rename to gen-oscons.c
373
374         * gen-oscons.c: New file. Now generate System.OS_Constants instead of
375         GNAT.Sockets.Constants.
376         Add new constants for GNAT.Serial_Communications and System.File_IO.
377
378 2008-08-05  Javier Miranda  <miranda@adacore.com>
379
380         * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
381         * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
382         implementation of this routine has been simplified.
383
384 2008-08-05  Pascal Obry  <obry@adacore.com>
385
386         * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
387         Set_Read_Only Win32 implementation.
388
389 2008-08-05  Thomas Quinot  <quinot@adacore.com>
390
391         * exp_strm.adb: Minor reformatting (comments)
392
393         * sem_ch12.adb: Minor reformatting.
394
395 2008-08-05  Robert Dewar  <dewar@adacore.com>
396
397         * sem_ch3.adb: Minor reformatting
398
399         * checks.adb: Minor reformatting
400
401 2008-08-05  Thomas Quinot  <quinot@adacore.com>
402
403         * tbuild.ads (New_External_Name): Update spec to reflect relaxed
404         restriction on Prefix.
405
406 2008-08-05  Jerome Lambourg  <lambourg@adacore.com>
407
408         * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
409         methods needed to handle switch sections when building a command line.
410         (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
411         Current_Section): New public methods or methods modified to handle
412         building command lines with sections.
413         (Set_Command_Line): Take into account sections when analysing a switch
414         string.
415         (Start): Sort the switches by sections before iterating the command line
416         elements.
417         
418         * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
419         Is_New_Section, Current_Section): New methods or methods modified to
420         handle building command lines with sections.
421
422 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
423
424         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
425         discriminants, indicate that the corresponding object declaration has
426         no initialization, to prevent spurious warnings when the access type is
427         null-excluding.
428
429 2008-08-05  Ed Schonberg  <schonberg@adacore.com>
430
431         * sem_res.adb (Resolve_Call): If this is a call to the predefined
432         Abort_Task, warn if the call appears within a protected operation.
433
434 2008-08-04  Robert Dewar  <dewar@adacore.com>
435
436         * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
437
438 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
439
440         * sem_ch3.adb:
441         (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
442         anonymous access to protected subprogram that is the return type of the
443         specification of a subprogram body.
444
445         * sem_ch6.adb:
446         (Analyze_Subprogram_Body): if the return type is an anonymous access to
447         subprogram, freeze it now to prevent access anomalies in the back-end.
448
449         * exp_ch9.adb: Minor code cleanup.
450         Make sure that new declarations are inserted into the tree before
451         analysis (from code reading).
452
453 2008-08-04  Robert Dewar  <dewar@adacore.com>
454
455         * exp_ch5.adb:
456         (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
457         at point of return.
458
459 2008-08-04  Thomas Quinot  <quinot@adacore.com>
460
461         * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
462
463 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
464
465         * g-soccon-mingw.ads: Fix value for MSG_WAITALL
466
467 2008-08-04  Javier Miranda  <miranda@adacore.com>
468
469         * sem_prag.adb (Process_Convention): Add missing support for
470          N_Private_Extension_Declaration nodes.
471
472 2008-08-04  Robert Dewar  <dewar@adacore.com>
473
474         * exp_ch4.adb: Minor reformatting
475
476 2008-08-04  Pascal Obry  <obry@adacore.com>
477
478         * adaint.h: Add missing prototype.
479
480         * adaint.c: Refine support for Windows file attributes.
481
482 2008-08-04  Robert Dewar  <dewar@adacore.com>
483
484         * sem_res.adb:
485         (Valid_Conversion): Catch case of designated types having different
486         sizes, even though they statically match.
487
488 2008-08-04  Javier Miranda  <miranda@adacore.com>
489
490         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
491         added in previous patch to handle access to subprograms.
492
493 2008-08-04  Robert Dewar  <dewar@adacore.com>
494
495         * freeze.adb:
496         (Freeze_Entity): Only check No_Default_Initialization restriction for
497         constructs that come from source
498
499 2008-08-04  Thomas Quinot  <quinot@adacore.com>
500
501         * exp_ch6.adb: Minor comment fix.
502
503         * sem_ch4.adb: Minor reformatting.
504
505 2008-08-04  Robert Dewar  <dewar@adacore.com>
506
507         * sem_res.adb: (Large_Storage_Type): Improve previous change.
508
509 2008-08-04  Pascal Obry  <obry@adacore.com>
510
511         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
512         file attributes.
513
514 2008-08-04  Javier Miranda  <miranda@adacore.com>
515
516         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
517         for N_Formal_Object_Declaration nodes. Adding kludge required by
518         First_Formal to provide its functionality with access to functions.
519         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
520         for anonymous access types returned by functions.
521
522         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
523         conversion of null-excluding access types (required only once to force
524         the generation of the required runtime check).
525
526         * sem_type.adb (Covers): minor reformating
527
528         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
529         with internally generated nodes. Avoid generating the error inside init
530         procs.
531
532         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
533         (Resolve_Null): Generate the null-excluding check in case of assignment
534         to a null-excluding object.
535         (Valid_Conversion): Add missing support for anonymous access to
536         subprograms.
537
538         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
539         anonymous access types whose designated type is an itype. This case
540         occurs with anonymous access to protected subprograms types.
541         (Analyze_Return_Type):  Add missing support for anonymous access to
542         protected subprogram.
543
544         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
545         subprograms addition of missing check on matching convention. Required
546         to properly handle access to protected subprogram types.
547
548         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
549         null excluding access types.
550
551 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
552
553         * sem_ch12.adb: Add comments
554
555         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
556         access type and the allocator is not initialized, warn rather than
557         reporting an error.
558
559 2008-08-04  Robert Dewar  <dewar@adacore.com>
560
561         * exp_ch4.adb: Minor reformatting
562
563         * exp_dist.adb: Minor reformatting
564
565         * g-comlin.adb: Minor reformatting
566
567 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
568
569         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
570         target to the type of the aggregate in the case where the target object
571         is class-wide.
572
573         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
574         result type is class-wide and inherently limited, and the expression
575         has a specific type, create a return object of the specific type, for
576         more efficient handling of returns of build-in-place aggregates (avoids
577         conversions of the class-wide return object to the specific type on
578         component assignments).
579
580         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
581         about a type mismatch for a class-wide function with a return object
582         having a specific type when the object declaration doesn't come from
583         source. Such an object can result from the expansion of a simple return.
584
585 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
586
587         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
588
589         * gcc-interface/Makefile.in: Use 64bit-specific system files when
590         compiling for 64bit windows.
591
592 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
593
594         * g-comlin.adb (Group_Switches): Preserve the switch order when
595         grouping and allow switch grouping of switches with more than one
596         character extension (e.g. gnatw.x).
597         (Args_From_Expanded): Remove this now obsolete method.
598
599 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
600
601         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
602         chain at once, to ensure that type is properly decorated for back-end,
603         when allocator appears within a loop.
604
605 2008-08-04  Kevin Pouget  <pouget@adacore.com>
606
607         * snames.h, snames.adb, snames.ads:
608         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
609
610         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
611         Build_To_Any_Call and Build_TypeCode_Call procedures.
612
613         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
614
615         * rtsfind.ads: Add corresponding names.
616
617         * tbuild.adb: Update prefix restrictions to allow '_' character.
618
619 2008-08-04  Doug Rupp  <rupp@adacore.com>
620
621         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
622         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
623         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
624         use it.  Calculate pointer range overflow using 64bit types.
625
626 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
627
628         * sem_ch3.adb (Access_Definition): A formal object declaration is a
629         legal context for an anonymous access to subprogram.
630
631         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
632         indirect call, report success to the caller to include possible
633         interpretation.
634
635         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
636         check when the type
637         of the extended return is an anonymous access_to_subprogram type.
638
639         * sem_res.adb:
640         (Resolve_Call): Insert a dereference if the type of the subprogram is an
641         access_to_subprogram and the context requires its return type, and a
642         dereference has not been introduced previously.
643
644 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
645
646         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
647         gnatcheck support in GPS.
648
649 2008-08-04  Vincent Celier  <celier@adacore.com>
650
651         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
652         requested
653
654 2008-08-04  Vincent Celier  <celier@adacore.com>
655
656         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
657         variable, but don't check the resulting value as it has no impact on
658         the processing.
659         
660         * opt.ads:
661         (Generate_Processed_File): New Boolean flag, set to True in the compiler
662         when switch -gnateG is used.
663         
664         * prep.adb:
665         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
666         when the source is modified by the preprocessor and there is no
667         preprocessing errors.
668         
669         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
670         
671         * sinput-l.adb:
672         (Load_File): Output the result of preprocessing if the source text was
673         modified.
674         
675         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
676         
677         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
678         
679         * ug_words: Add VMS equivalent for -gnateG
680         
681         * vms_data.ads:
682         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
683
684 2008-08-04  Doug Rupp  <rupp@adacore.com>
685
686         * gcc-interface/utils2.c:
687         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
688         in 32bit descriptor.
689
690 2008-08-04  Robert Dewar  <dewar@adacore.com>
691
692         * par-ch10.adb: Minor reformatting
693
694         * i-cobol.adb: Minor reformatting.
695
696 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
697
698         * sem_ch3.adb (Access_Definition): Create an itype reference for an
699         anonymous access return type of a regular function that is not a
700         compilation unit.
701
702 2008-08-04  Vincent Celier  <celier@adacore.com>
703
704         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
705         
706         * snames.adb: New standard name Global_Compilation_Switches
707         
708         * snames.ads: New standard name Global_Compilation_Switches
709
710         * make.adb: Correct spelling error in comment
711
712 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
713
714         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
715         target.
716
717 2008-08-04  Thomas Quinot  <quinot@adacore.com>
718
719         * sem_ch10.adb: Minor comment fix.
720
721 2008-08-04  Robert Dewar  <dewar@adacore.com>
722
723         * restrict.adb: Improved messages for restriction warnings
724
725         * restrict.ads: Improved messages for restriction messages
726
727         * s-rident.ads (Profile_Name): Add No_Profile
728
729 2008-08-04  Robert Dewar  <dewar@adacore.com>
730
731         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
732
733 2008-08-04  Robert Dewar  <dewar@adacore.com>
734
735         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
736
737 2008-08-04  Vincent Celier  <celier@adacore.com>
738
739         * prj-proc.adb:
740         (Copy_Package_Declarations): When inheriting package Naming from a
741         project being extended, do not inherit source exception names.
742
743 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
744
745         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
746         list of declaration to find previous subprogram, do not go to the
747         original node of a generic unit.
748
749 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
750
751         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
752         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
753
754 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
755
756         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
757         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
758         and adjust for above renaming.
759         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
760         gnu_expr_alt_type parameter.  Convert the expression to it instead
761         of changing its type in place.
762         (build_function_stub): Adjust call to above function.
763
764 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
765
766         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
767         code.  Do not get full definition of deferred constants with address
768         clause for a use.  Do not ignore deferred constant definitions with
769         address clause.  Ignore constant definitions already marked with the
770         error node.
771         <object>: Remove obsolete comment.  For a deferred constant with
772         address clause, get the initializer from the full view.
773         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
774         Rework and remove obsolete comment.
775         <N_Object_Declaration>: For a deferred constant with address clause,
776         mark the full view with the error node.
777         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
778         formatting nits.
779
780 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
781
782         * rtsfind.ads: Add block IO versions of stream routines for Strings.
783         
784         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
785         sem_prag.adb, snames.adb, snames.ads, snames.h,
786         par-prag.adb: Undo previous stream related changes.
787         
788         * s-rident.ads: Add new restriction No_Stream_Optimizations.
789         
790         * s-ststop.ads, s-ststop.adb: Comment reformatting.
791         Define enumeration type to designate different IO mechanisms.
792         Enchance generic package Stream_Ops_Internal to include an
793         implementation of Input and Output.
794
795         * exp_attr.adb (Find_Stream_Subprogram): If restriction
796         No_Stream_Optimization is active, choose the default byte IO
797         implementations of stream attributes for Strings.
798         Otherwise use the corresponding block IO version.
799
800 2008-08-01  Olivier Hainque  <hainque@adacore.com>
801         
802         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
803         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
804
805 2008-08-01  Robert Dewar  <dewar@adacore.com>
806
807         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
808         convert plain identifier into defining identifier.
809
810 2008-08-01  Robert Dewar  <dewar@adacore.com>
811
812         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
813         warnings
814
815         * lib-xref.adb: Add error defense.
816
817 2008-08-01  Bob Duff  <duff@adacore.com>
818
819         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
820
821 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
822
823         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
824         correct accessibility levels. In the "when others" case, retrieve the
825         access level of the Etype of Prev rather than Prev_Orig, because the
826         original exression has not always been analyzed.
827
828 2008-08-01  Robert Dewar  <dewar@adacore.com>
829
830         * prj-nmsc.adb: Minor reformatting
831
832         * sem_ch4.adb: Minor reformatting
833         Minor code reorganization
834
835         * prj.ads: Minor reformatting
836
837         * s-os_lib.adb: Minor reformatting
838
839         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
840         half encodings
841
842         * scans.ads: Minor reformatting.
843
844         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
845         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
846
847         * sem_res.adb:
848         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
849
850         * sem_ch12.adb: Minor comment reformatting
851
852         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
853         keyword
854
855 2008-08-01  Robert Dewar  <dewar@adacore.com>
856
857         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
858         generating code
859
860 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
861
862         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
863         converted is a real literal and the target type has static bounds,
864         perform the conversion exactly to prevent floating-point anomalies on
865         some targets.
866
867 2008-08-01  Vincent Celier  <celier@adacore.com>
868
869         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
870         
871         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
872         
873         * prj.adb (Object_Exist_For): Use Object_Generated, not
874         Objects_Generated that is removed and was never modified anyway.
875
876         * prj.ads:
877         (Path_Syntax_Kind): New enumeration type
878         (Language_Config): New component Path_Syntax, defaulted to Host.
879         Components PIC_Option and Objects_Generated removed, as they are not
880         used.
881
882         * snames.adb: New standard name Path_Syntax
883         
884         * snames.ads: New standard name Path_Syntax
885
886 2008-08-01  Vincent Celier  <celier@adacore.com>
887
888         * mlib-utl.adb:
889         (Adalib_Path): New variable to store the path of the adalib directory
890         when procedure Specify_Adalib_Dir is called.
891         (Lib_Directory): If Adalib_Path is not null, return its value
892         (Specify_Adalib_Dir): New procedure
893         
894         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
895
896 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
897
898         * sem_prag.adb:
899         (Check_Precondition_Postcondition): If not generating code, analyze the
900         expression in a postcondition that appears in a subprogram body, so that
901         it is properly decorated for ASIS use.
902
903 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
904
905         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
906         Orig_Prev to Prev in the case where the actual is N_Function_Call or
907         N_Identifier. This was interfering with other cases that are rewritten
908         as N_Identifier, such as allocators, resulting in passing of the wrong
909         accessibility level, and based on testing this code is apparently no
910         longer needed at all.
911
912 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
913
914         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
915         procedure call whose prefix
916         is a parameterless function call that returns an access_to_procedure.
917
918 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
919
920         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
921         for RTX. Adding a suffix that is incremented at each iteration.
922
923 2008-08-01  Robert Dewar  <dewar@adacore.com>
924
925         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
926         Raise_Exception
927
928 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
929
930         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
931         paths, which are authorized by Windows but can lead to errors when used
932         elsewhere.
933
934 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
935
936         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
937         a pending instantiation for the body of a subprogram that is to be
938         inlined.
939
940         * sem_ch12.adb:
941         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
942
943         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
944         create a pending instance for its body, so that calls to the subprogram
945         can be inlined by the back-end.
946
947 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
948
949         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
950         rts-rtx-w32).
951
952 2008-08-01  Robert Dewar  <dewar@adacore.com>
953
954         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
955
956 2008-08-01  Doug Rupp  <rupp@adacore.com>
957
958         * gnat_rm.texi: Document new mechanism Short_Descriptor.
959         
960         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
961         mechanism values.
962
963         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
964         mechanism and Short_Descriptor mechanism values.
965
966         * snames.adb (preset_names): Add short_descriptor entry.
967
968         * snames.ads: Add Name_Short_Descriptor.
969
970         * types.h: Add new By_Short_Descriptor mechanism values.
971
972         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
973         mechanism and Short_Descriptor mechanism values.
974
975         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
976         values.
977         (Descriptor_Codes): Modify range for new mechanism values.
978
979         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
980         mechanism values.
981
982         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
983         (gnat_to_gnu_param): Handle By_Short_Descriptor.
984
985         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
986         (build_vms_descriptor32): New prototype.
987         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
988
989         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
990         argument in call fill_vms_descriptor.
991
992         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
993         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
994         (build_vms_descriptor): Renamed from build_vms_descriptor64. 
995         (convert_vms_descriptor32): New function.
996         (convert_vms_descriptor64): New function.
997         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
998         descriptors.
999
1000         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1001         no longer needed.
1002
1003 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1004
1005         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1006         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1007         name.
1008
1009 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
1010
1011         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1012         current directory so only fully qualified names are allowed.
1013
1014 2008-08-01  Robert Dewar  <dewar@adacore.com>
1015
1016         * gnat_ugn.texi:
1017         Minor editing, remove uncomfortable use of semicolon
1018
1019         * s-ststop.adb: Add some ??? comments
1020
1021         * sem_ch10.adb: Minor reformatting
1022
1023         * snames.ads:
1024         Minor comment fixes, some pragmas were not properly
1025         categorized in the comments, documentation change only
1026
1027         * xref_lib.adb: Minor reformatting
1028
1029         * sinput.adb: Minor reformatting
1030
1031         * gnatchop.adb: Minor reformatting
1032
1033         * sem_util.ads: Minor reformatting.
1034
1035         * opt.ads: Minor documentation fix
1036
1037         * scng.adb: Minor reformatting
1038
1039         * prj-part.adb: Update comments
1040
1041 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
1042
1043         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1044         tagged synchronized type, use corresponding record type.
1045
1046 2008-08-01  Doug Rupp  <rupp@adacore.com>
1047
1048         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1049         dummy transfer address for debugging.
1050         
1051         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1052
1053         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1054
1055 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
1056
1057         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
1058         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
1059
1060 2008-07-31  Pascal Obry  <obry@adacore.com>
1061
1062         * prj-nmsc.adb: Keep Object and Exec directory casing.
1063
1064 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
1065
1066         * system-rtx-rtss.ads
1067         Change the default stack size. It is important to set the commit part.
1068         
1069         * s-taprop-rtx.adb
1070         (Initialize): Get the clock resolution.
1071         (RT_Resolution): Return the clock resolution that is indicated by the
1072         system.
1073
1074         * s-parame-vxworks.adb
1075         Document that this body is used for RTX in RTSS (kernel) mode.
1076
1077         * gcc-interface/Makefile.in
1078         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
1079         s-parame-vxworks.adb body in order to have reasonable stack sizes in
1080         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
1081         cannot ask for too big values.
1082
1083 2008-07-31  Robert Dewar  <dewar@adacore.com>
1084
1085         * exp_aggr.adb: Minor reformatting
1086
1087         * makeutl.adb: Minor reformatting
1088
1089         * prj-env.adb: Minor reformatting
1090
1091 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1092
1093         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
1094         tagged type is completed by a concurrent type.
1095
1096 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1097
1098         * sem_aggr.adb:
1099         (Resolve_Record_Aggregate): Bypass error that a type without
1100         components must have a "null record" aggregate when compiling for Ada
1101         2005, since it's legal to give an aggregate of form (others => <>)
1102         for such a type.
1103
1104 2008-07-31  Javier Miranda  <miranda@adacore.com>
1105
1106         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
1107         handle synchronized types. Required to handle well the object.operation
1108         notation applied to synchronized types.
1109
1110 2008-07-31  Quentin Ochem  <ochem@adacore.com>
1111
1112         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
1113         anymore - just used internally.
1114         Added handling of very small tasks - when the theoretical size is
1115         already full at the point of the call.
1116         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
1117         not need to be added to the result.
1118
1119 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1120
1121         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
1122         corresponding spec is a primitive wrapper. Update comment.
1123
1124 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1125
1126         * bindgen.adb Comment reformatting. Update the list of run-time globals.
1127         (Gen_Adainit_Ada): Add the declaration, import and value set for
1128         configuration flag Canonical_Streams.
1129         (Gen_Adainit_C): Add the declaration and initial value of external
1130         symbol __gl_canonical_streams.
1131         
1132         * init.c: Update the list of global values computed by the binder.
1133         
1134         * opt.ads: Add flag Canonical_Streams.
1135         
1136         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
1137         semantically handled pragmas.
1138         
1139         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
1140         (Analyze_Pragma): Add case for pragma Canonical_Streams.
1141         
1142         * snames.adb: Add character value for name Canonical_Streams.
1143         
1144         * snames.ads:
1145         Add Name_Canonical_Streams to the list of configuration pragmas.
1146         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
1147         
1148         * snames.h: Add a definition for Pragma_Canonical_Streams.
1149         
1150         * s-ststop.adb:
1151         Add a flag and import to seize the value of external symbol
1152         __gl_canonical_streams. Update comment and initial value of constant
1153         Use_Block_IO.
1154         
1155         * gnat_rm.texi: Add section of pragma Canonical_Streams.
1156         
1157         * gnat_ugn.texi:
1158         Add pragma Canonical_Streams to the list of configuration pragmas.
1159
1160 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1161
1162         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
1163         has the form A.B.C and B is a unit renaming, analyze its compilation
1164         unit and add a with_clause on A.b to the context.
1165
1166 2008-07-31  Vincent Celier  <celier@adacore.com>
1167
1168         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
1169         return the empty string, instead of raising Constraint_Error.
1170
1171 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
1172
1173         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
1174         
1175         * checks.adb (Apply_Accessibility_Check): Insert the check on
1176         Insert_Node.
1177         
1178         * exp_attr.adb:
1179         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
1180         to new parameter Insert_Node on call to Apply_Accessibility_Check.
1181         Necessary to distinguish the insertion node because the dereferenced
1182         formal may come from a rename, but the check must be inserted in
1183         front of the attribute.
1184         
1185         * exp_ch4.adb:
1186         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
1187         call to Apply_Accessibility_Check.
1188         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
1189         on call to Apply_Accessibility_Check.
1190         Minor reformatting
1191
1192 2008-07-31  Javier Miranda  <miranda@adacore.com>
1193
1194         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
1195         types when the candidate type is a synchronized type.
1196         
1197         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
1198         types, and complete management of synchronized types adding missing
1199         code to handle formal that is a synchronized type.
1200         
1201         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
1202         are not available and cause the compiler to blowup. Found compiling
1203         test with switch -gnatc
1204         
1205         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
1206         Has_Correct_Formal_Mode plus code cleanup.
1207
1208 2008-07-31  Bob Duff  <duff@adacore.com>
1209
1210         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
1211         recognized as two end-of-lines, but it should be just one.
1212
1213 2008-07-31  Thomas Quinot  <quinot@adacore.com>
1214
1215         * exp_ch9.adb: Minor reformatting
1216
1217         * tbuild.ads: Fix several occurrences of incorrectly referring to
1218         Name_Find as Find_Name.
1219
1220 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1221
1222         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
1223         and the context is an object declaration with non-static bounds, treat
1224         the aggregate as non-static.
1225
1226 2008-07-31  Vincent Celier  <celier@adacore.com>
1227
1228         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
1229         Move back spec of Parse_Single_Project to body, as it is not called
1230         outside of package Prj.Part.
1231         (Project_Data): Remove components Linker_Name, Linker_Path and
1232         Minimum_Linker_Options as they are no longer set.
1233         Remove function There_Are_Ada_Sources from package Prj and move code
1234         in the only place it was used, in Prj.Env.Set_Ada_Paths.
1235
1236 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1237
1238         * mlib-utl.ads: Fix typo.
1239
1240 2008-07-31  Robert Dewar  <dewar@adacore.com>
1241
1242         * sem_ch12.adb: Minor reformatting
1243
1244 2008-07-31  Sergey Rybin  <rybin@adacore.com>
1245
1246         * gnat_ugn.texi: Change the description of the
1247         Overly_Nested_Control_Structures: now the rule always requires a
1248         positive parameter for '+R' option
1249
1250 2008-07-31  Thomas Quinot  <quinot@adacore.com>
1251
1252         * g-pehage.adb: Minor reformatting
1253
1254 2008-07-31  Pascal Obry  <obry@adacore.com>
1255
1256         * s-finimp.ads: Minor reformatting.
1257
1258 2008-07-31  Vincent Celier  <celier@adacore.com>
1259
1260         * s-regexp.ads: Minor comment fix
1261
1262 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1263
1264         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
1265         so that we can compile this file successfully with -gnatc.
1266
1267 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1268
1269         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
1270         of the type when looking for stream subprograms for type String,
1271         Wide_String and Wide_Wide_String.
1272         
1273         * s-ststop.adb: Change the initialization expression of constant
1274         Use_Block_IO.
1275
1276 2008-07-31  Geert Bosch  <bosch@adacore.com>
1277
1278         * arit64.c:
1279         New file implementing __gnat_mulv64 signed integer multiplication with
1280         overflow checking
1281
1282         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
1283
1284         * gcc-interface/gigi.h:
1285         (standard_types): Add ADT_mulv64_decl
1286         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
1287
1288         * gcc-interface/utils.c:
1289         (init_gigi_decls): Add initialization of mulv64_decl
1290
1291         * gcc-interface/trans.c:
1292         (build_unary_op_trapv): New function
1293         (build_binary_op_trapv): New function
1294         (gnat_to_gnu): Use the above functions instead of
1295         build_{unary,binary}_op
1296
1297         * gcc-interface/Makefile.in
1298         (LIBGNAT_SRCS): Add arit64.c
1299         (LIBGNAT_OBJS): Add arit64.o
1300
1301 2008-07-31  Vincent Celier  <celier@adacore.com>
1302
1303         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
1304         Linker'Default_Switches are declared. Warn if they are declared.
1305
1306 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1307
1308         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
1309         Insert_Actions to place the pointer declaration in the code, rather
1310         than Insert_Before_And_Analyze, so that insertions of temporaries are
1311         kept in the proper order when transient scopes are present.
1312
1313
1314 2008-07-31  Robert Dewar  <dewar@adacore.com>
1315
1316         * einfo.adb (Spec_PPC): Now defined for generic subprograms
1317         
1318         * einfo.ads (Spec_PPC): Now defined for generic subprograms
1319         
1320         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
1321         subprogram case
1322
1323 2008-07-31  Vincent Celier  <celier@adacore.com>
1324
1325         * s-os_lib.adb: Minor comment fix
1326
1327 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1328
1329         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
1330         transfer pre/postconditions from generic copy to original tree, so that
1331         they will appear in each instance.
1332         (Process_PPCs): Do not transform postconditions into a procedure in a
1333         generic context, to prevent double expansion of check pragmas.
1334         
1335         * sem_attr.adb: In an instance, the prefix of the 'result attribute
1336         can be the renaming of the
1337         current instance, so check validity of the name accordingly.
1338
1339 2008-07-31  Robert Dewar  <dewar@adacore.com>
1340
1341         * mlib-utl.ads: Minor reformatting
1342
1343 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
1344
1345         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
1346         from context. This attribute must be usable in Ada95 mode.
1347         The attribute can appear in the body of a function marked
1348         Inline_Always, but in this case the postocondition is not enforced.
1349         
1350         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
1351         of an inlined call pre- and postconditions are legal
1352
1353 2008-07-31  Vincent Celier  <celier@adacore.com>
1354
1355         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
1356         were for gprmake only
1357
1358 2008-07-31  Robert Dewar  <dewar@adacore.com>
1359
1360         * gnat_ugn.texi: Update -gnatN documentation.
1361
1362         * gnat_rm.texi: Add note about pre/postcondition
1363         pragmas not checked in conjunction with front-end inlining.
1364
1365 2008-07-31  Robert Dewar  <dewar@adacore.com>
1366
1367         * g-pehage.adb, g-pehage.ads: Minor reformatting
1368
1369 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
1370
1371         * mlib-utl.ads, prj-makr.ads: Add comments.
1372
1373 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1374
1375         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) 
1376         [WINDOWS]: Add s-winext.o.
1377
1378 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
1379
1380         PR ada/36554
1381         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
1382         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
1383         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
1384         Set precision to 1 for subtype of BOOLEAN_TYPE.
1385         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
1386         (make_type_from_size): Deal with BOOLEAN_TYPE.
1387         * gcc-interface/misc.c (gnat_print_type): Likewise.
1388         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
1389         Set boolean_type_node as its translation in the table, as well
1390         as boolean_false_node for False and boolean_true_node for True.
1391         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
1392         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
1393         (create_param_decl): Deal with BOOLEAN_TYPE.
1394         (build_vms_descriptor): Likewise.
1395         (build_vms_descriptor64): Likewise.
1396         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
1397
1398 2008-07-30  Robert Dewar  <dewar@adacore.com>
1399
1400         * exp_ch9.adb: Minor reformatting
1401
1402         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
1403         if no primitive operation is found.
1404
1405         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
1406
1407         * sem_ch8.adb: Minor reformatting
1408
1409 2008-07-30  Laurent Pautet  <pautet@adacore.com>
1410
1411         * g-pehage.adb:
1412         Remove a limitation on the length of the words handled by the minimal
1413         perfect hash function generator.
1414
1415         * g-pehage.ads:
1416         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
1417         Fix some typos.
1418
1419 2008-07-30  Robert Dewar  <dewar@adacore.com>
1420
1421         * gnatlink.adb: Minor reformatting
1422
1423 2008-07-30  Thomas Quinot  <quinot@adacore.com>
1424
1425         * rtsfind.adb (Check_RPC): Check version consistency even when not
1426         generating RCI stubs. Provide more detailed error message in case of
1427         mismatch.
1428
1429 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
1430
1431         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
1432         as a actual in an instance, check for a missing attribute to prevent
1433         program_error on an illegal program.
1434         
1435         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
1436         error if primitive is not found, so that exception can be handled
1437         elsewhere on illegal programs.
1438
1439 2008-07-30  Robert Dewar  <dewar@adacore.com>
1440
1441         * uintp.adb (UI_GCD): Fix potential overflow
1442
1443 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
1444
1445         * einfo.adb: Flag245 is now used.
1446         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
1447         check to include functions.
1448         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1449         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
1450         include functions.
1451         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
1452         to the list of displayed flags.
1453
1454         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
1455         Wrapped_Entity. These two flags are now present in functions.
1456         New flag Is_Private_Primitive.
1457         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1458
1459         * exp_ch9.adb:
1460         (Build_Wrapper_Bodies): New subprogram.
1461         (Build_Wrapper_Body): The spec and body have been moved to in
1462         Build_Wrapper_ Bodies. Code cleanup.
1463         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
1464         Wrappers are now generated for primitives declared between the private
1465         and full view of a concurrent type that implements an interface.
1466         (Build_Wrapper_Specs): New subprogram.
1467         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
1468         creation mechanism with a call to Build_Wrapper_Bodies.
1469         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
1470         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
1471         (Expand_N_Task_Body): Replace the wrapper body creation
1472         mechanism with a call to Build_Wrapper_Bodies.
1473         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
1474         creation mechanism with a call to Build_Wrapper_Specs.
1475         (Is_Private_Primitive_Subprogram): New subprogram.
1476         (Overriding_Possible): Code cleanup.
1477         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
1478
1479         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
1480
1481         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
1482         (Process_Full_View): Build wrapper specs for all primitives
1483         that belong to a private view completed by a concurrent type
1484         implementing an interface.
1485         
1486         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
1487         is a primitive of a
1488         concurrent type with a private view that implements an interface, try to
1489         find the proper spec.
1490         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
1491         primitive if the type of its first parameter is a non-generic tagged
1492         private type.
1493         (Analyze_Subprogram_Specification): Code reformatting.
1494         (Disambiguate_Spec): New routine.
1495         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
1496         (Is_Private_Concurrent_Primitive): New routine.
1497
1498         * sem_ch6.ads:
1499         (Find_Corresponding_Spec): Add a formal to control the output of errors.
1500
1501 2008-07-30  Doug Rupp  <rupp@adacore.com>
1502
1503         * gigi.h (build_vms_descriptor64): New function prototype.
1504         (fill_vms_descriptor): Modified function prototype.
1505
1506         * utils.c (build_vms_descriptor64): New function.
1507
1508         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
1509
1510         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
1511         argument.
1512
1513         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
1514         64bit and 32bit descriptor and save the 64bit version as an alternate
1515         TREE_TYPE in the parameter.
1516         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
1517         thin pointer.
1518
1519         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
1520
1521 2008-07-30  Robert Dewar  <dewar@adacore.com>
1522
1523         * make.adb: Minor reformatting
1524
1525         * mlib-utl.adb: Minor reformatting
1526
1527         * osint.ads: Minor reformatting
1528
1529 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
1530
1531         * adaint.c
1532         (__gnat_file_exists): Do not use __gnat_stat for RTX.
1533         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
1534         avoid the use of this symbol from libgcc.a in RTX kernel mode.
1535
1536         * cio.c
1537         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
1538         the function RtPrintf for console output.
1539         
1540         * argv.c Do not use the environ variable for RTX.
1541         
1542         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
1543         been moved before the call to Osint.Add_Default_Search_Dirs in order
1544         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
1545         from the appropriate run time.
1546         
1547         * targparm.ads
1548         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
1549         target is a RTSS module for RTX.
1550         
1551         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
1552         RTX_RTSS_Kernel_Module
1553         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
1554
1555         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
1556         exception handling mechanism for Windows and RTX in Win32 mode, but
1557         not for RTX in kernel mode (RTSS).
1558         (LIBGNAT_SRCS): Remove ada.h
1559
1560 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
1561
1562         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
1563         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1564         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
1565         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
1566         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
1567         ALL_ADA_CFLAGS): Remove.
1568         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
1569         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1570         (GCC_CFLAGS): Remove X_CFLAGS.
1571         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
1572         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
1573         (ADA_CFLAGS): Substitute.
1574
1575 2008-07-30  Laurent Guerby  <laurent@guerby.net>
1576
1577         PR ada/5911
1578         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
1579         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
1580         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
1581         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
1582         by stamp-gnatlib2-rts.
1583         
1584 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1585
1586         PR documentation/15479
1587         * gnat-style.texi: Remove AdaCore copyright statement and GPL
1588         statement for GNAT.  Add @copying stanza, use it.  Update to
1589         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
1590         title as Front-Cover Text.
1591         * gnat_rm.texi: Likewise.
1592         * gnat_ugn.texi: Likewise.
1593
1594 2008-07-29  Jan Hubicka  <jh@suse.cz>
1595
1596         * trans.c (process_inlined_subprograms): Remove tree_really_inline
1597         check.
1598
1599 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
1600
1601         * gcc-interface: New directory.
1602
1603         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
1604         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
1605         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
1606         to gcc-interface subdirectory.
1607
1608 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1609
1610         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
1611
1612 2008-07-28  Jan Hubicka  <jh@suse.cz>
1613
1614         * misc.c (gnat_post_options): Do not set flag_no_inline.
1615
1616 2008-07-28  Richard Guenther  <rguenther@suse.de>
1617
1618         Merge from gimple-tuples-branch.
1619
1620         2008-07-22  Olivier Hainque  <hainque@adacore.com>
1621
1622         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
1623         this is called for an elab proc to be discarded if empty.
1624         * utils.c (end_subprog_body): Honor ELAB_P.
1625         (build_function_stub): Adjust call to end_subprog_body.
1626         * trans.c (Subprogram_Body_to_gnu): Likewise.
1627         (gigi): Reorganize processing of elab procs to prevent
1628         gimplifying twice, using the new end_subprog_body argument.
1629
1630         2008-07-19  Richard Guenther  <rguenther@suse.de>
1631
1632         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
1633         (utils.o): Likewise.
1634         * trans.c: Include tree-iterator.h.
1635         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
1636         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
1637         (set_expr_location_from_node): Likewise.
1638         (gigi): Tuplify.
1639         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
1640         of GENERIC_NEXT.
1641         * utils.c: Include tree-iterator.h.
1642         * gigi.h (gnat_gimplify_expr): Adjust prototype.
1643
1644         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
1645
1646         * trans.c: Include gimple.h instead of tree-gimple.h.
1647         * utils.c: Same.
1648
1649         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
1650
1651         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
1652
1653 2008-07-25  Jan Hubicka  <jh@suse.cz>
1654
1655         * utils.c (end_subprog_body): Remove inline trees check.
1656         * misc.c (gnat_post_options): Do not set flag_inline_trees.
1657
1658 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1659
1660         * raise-gcc.c: Move tsystem.h before tm.h.
1661
1662 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
1663
1664         * gnathtml.pl: New file.
1665
1666 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1667
1668         * targtyps.c (get_target_default_allocator_alignment): Use
1669         MALLOC_ABI_ALIGNMENT.
1670
1671 2008-07-17  Olivier Hainque  <hainque@adacore.com>
1672
1673         * adaint.c (__MINGW32__ section): Include ctype.h and define
1674         a fallback ISALPHA if IN_RTS.
1675         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha. 
1676
1677 2008-07-17  Olivier Hainque  <hainque@adacore.com>
1678
1679         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
1680         argument, to apply to references in addition to definitions.  Prevent
1681         setting TREE_STATIC on externals.
1682         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
1683
1684 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1685
1686         PR documentation/15479
1687         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
1688         Replace backets around optional parameters with @ovar
1689         where possible, use @r{[}, @r{]} otherwise.
1690         Replace some @r, @i, and @emph with @var where appropriate.
1691
1692 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1693
1694         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
1695
1696 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1697
1698         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
1699         -Wc++-compat warnings.
1700         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
1701         __gnat_locate_exec_on_path): Likewise.
1702         * decl.c (annotate_value): Likewise.
1703         * misc.c (gnat_handle_option): Likewise.
1704         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
1705         post_error_ne_tree): Likewise.
1706
1707 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
1708
1709         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
1710         version of its type, attempt to first convert its elements.
1711
1712 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
1713
1714         * Makefile.in: Fix *86 kfreebsd target specific pairs.
1715
1716 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
1717
1718         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
1719
1720 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1721
1722         * utils2.c (known_alignment): Derive the alignment from pointed-to
1723         types only if it is otherwise unknown.
1724         <INTEGER_CST>: Tidy.
1725         <MULT_EXPR>: Likewise.
1726         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
1727         that of the base.
1728
1729 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1730
1731         PR ada/36573
1732         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
1733
1734 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1735
1736         * gnat_rm.texi (Implementation Defined Characteristics)
1737         (Standard Library Routines): Use @smallexample for indented
1738         text.  Drop Indentation outside examples.
1739         * gnat_ugn.texi: Likewise.
1740
1741 2008-06-13  Olivier Hainque  <hainque@adacore.com>
1742
1743         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
1744         if undefined.
1745         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
1746         realignment with force_align_arg_pointer attribute on foreign
1747         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1748         
1749 2008-06-13  Olivier Hainque  <hainque@adacore.com>
1750
1751         * utils.c (rest_of_record_type_compilation): When computing
1752         encodings for the components of a variable size type, early
1753         strip conversions on the current position expression to make
1754         sure it's shape is visible.  Use remove_conversions for this
1755         purpose.
1756
1757 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1758
1759         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
1760         constrained subtype of a discriminated type, discard the fields that
1761         are beyond its limits according to its size.
1762
1763 2008-06-10  Olivier Hainque  <hainque@adacore.com>
1764
1765         * utils.c (create_subprog_decl): If this is for the 'main' entry
1766         point according to the asm name, redirect main_identifier_node.
1767
1768 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1769
1770         * decl.c (components_to_record): Adjust the packedness for the
1771         qualified union as well.
1772
1773 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
1774
1775         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
1776         checks non fatal.
1777
1778 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
1779
1780         * sem_res.adb (Large_Storage_Type): A type is large if it
1781         requires as many bits as Positive to store its values and its
1782         bounds are known at compile time.
1783         * sem_ch13.adb (Minimum_Size): Note that this function returns
1784         0 if the size is not known at compile time.
1785
1786 2008-06-06  Nicolas Setton  <setton@adacore.com>
1787             Olivier Hainque  <hainque@adacore.com>
1788
1789         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
1790         attribute, parallel descriptive type attached to another
1791         type for debug info generation purposes.
1792         * utils.c (add_parallel_type): New function, register
1793         parallel type to be attached to a type.
1794         (get_parallel_type): New function, fetch a registered
1795         parallel type, if any.
1796         (rest_of_record_type_compilation): Register the parallel
1797         type we make for variable size records.
1798         * gigi.h (add_parallel_type, get_parallel_type): Declare.
1799         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
1800         parallel debug types we make.
1801         * trans.c (extract_encoding, decode_name): New functions.
1802         (gigi): If the DWARF attribute extensions are available, setup
1803         to use them.
1804         * lang.opt: Register language specific processing request
1805         for -gdwarf+.
1806         * misc.c (gnat_dwarf_extensions): New global variable. How much
1807         do we want of our DWARF extensions. 0 by default.
1808         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
1809         (gnat_post_options): Map gnat_dwarf_extensions to the
1810         commonuse_gnu_debug_info_extensions for later processing.
1811         
1812 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
1813
1814         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
1815
1816 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1817
1818         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
1819         * gnat_ugn.texi (Style Checking)
1820         (Adding the Results of Compiler Checks to gnatcheck Output)
1821         (Example of Binder Output File): Fix typos.
1822         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
1823         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
1824         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
1825         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
1826         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
1827         sinfo.ads, utils.c: Fix typos in comments.
1828         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
1829
1830 2008-05-29  Thomas Quinot  <quinot@adacore.com>
1831
1832         * sem_eval.adb: Minor reformatting
1833
1834 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
1835
1836         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
1837         is abstract, do not apply abstractness check on subprogram if this is
1838         a renaming declaration.
1839
1840 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
1841
1842         PR ada/864
1843         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
1844         allow recognition of program suffix in addition to prefix.
1845         
1846         * gnatchop.adb (Locate_Executable): Add support for prefix.
1847         
1848         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
1849         mlib-utl.adb: Adjust calls to Program_Name.
1850
1851 2008-05-29  Robert Dewar  <dewar@adacore.com>
1852
1853         * sem_ch3.adb: Minor reformatting
1854         * sem_prag.adb: Minor reformatting
1855         * sem_res.adb: Minor reformatting
1856         * sinput-p.ads: Minor reformatting
1857
1858 2008-05-29  Javier Miranda  <miranda@adacore.com>
1859
1860         * sem_util.adb:
1861         (Abstract_Interface_List): Add missing support for full type-declaration
1862         associated with synchronized types.
1863
1864 2008-05-29  Robert Dewar  <dewar@adacore.com>
1865
1866         * sem_eval.adb (Is_Same_Value): Take care of several more cases
1867
1868 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
1869
1870         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
1871         access type, wrap the expression in a conversion to force an
1872         accessibility check.
1873
1874         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
1875         accessibility checks even when expansion is disabled in order to
1876         generate messages in the presence of previous errors or in
1877         semantics-only mode.
1878
1879 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
1880
1881         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
1882         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
1883
1884 2008-05-28  Vincent Celier  <celier@adacore.com>
1885
1886         PR ada/34446
1887         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
1888         preprocessing expressions
1889
1890 2008-05-28  Vincent Celier  <celier@adacore.com>
1891
1892         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
1893         for preprocessing
1894         
1895         * sinput-p.ads: Minor comment update and reformatting
1896
1897 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
1898
1899         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
1900         type has a deeper level than any master only when it is the type of an
1901         access parameter.
1902
1903 2008-05-28  Javier Miranda  <miranda@adacore.com>
1904
1905         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
1906
1907 2008-05-28  Javier Miranda  <miranda@adacore.com>
1908
1909         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
1910         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
1911         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
1912         Add code that was previously located in
1913         Find_Overridden_Synchronized_Primitive because it is only used here.
1914
1915 2008-05-28  Sergey Rybin  <rybin@adacore.com>
1916
1917         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
1918         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
1919
1920 2008-05-28  Robert Dewar  <dewar@adacore.com>
1921
1922         * restrict.ads:
1923         Add missing restrictions, and properly label all GNAT defined ones
1924         
1925         * rtsfind.ads:
1926         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
1927         Add entry for Ada.Task_Termination.Set_Specific_Handler
1928         Add entry for Ada.Task_Termination.Specific_Handler
1929         
1930         * s-rident.ads:
1931         Add missing restrictions and properly mark all gnat defined ones
1932         
1933         * sem_ch3.adb:
1934         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
1935         
1936         * sem_res.adb:
1937         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1938
1939         * gnat_rm.texi: Add missing restrictions, and properly label all
1940         GNAT defined ones
1941
1942 2008-05-28  Robert Dewar  <dewar@adacore.com>
1943
1944         * restrict.adb:
1945         (Check_Restriction): violation of restriction No_Finalization is
1946         treated as a serious error to stop expansion
1947
1948 2008-05-28  Robert Dewar  <dewar@adacore.com>
1949
1950         * exp_util.adb: Minor reformatting
1951         * exp_util.ads: Minor reformatting.
1952
1953 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
1954
1955         * Make-lang.in: Remove gprmake.
1956
1957         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
1958
1959 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
1960
1961         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
1962         improper progenitor names, and avoid cascaded errors.
1963
1964 2008-05-28  Robert Dewar  <dewar@adacore.com>
1965
1966         * gnat_rm.texi: Add note on Old giving warning when applied to constant
1967
1968         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
1969         a constant
1970
1971 2008-05-28  Robert Dewar  <dewar@adacore.com>
1972
1973         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
1974         size
1975
1976 2008-05-28  Robert Dewar  <dewar@adacore.com>
1977
1978         * exp_ch5.adb:
1979         (Expand_Simple_Function_Return): Copy unaligned result into temporary
1980
1981 2008-05-28  Javier Miranda  <miranda@adacore.com>
1982
1983         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
1984         for user-defined predefined primitives.
1985         
1986         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
1987         (Find_Overridden_Synchronized_Primitive): Ditto.
1988
1989         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
1990
1991 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
1992
1993         * a-ststio.adb, s-direio.adb:
1994         Further code clean up of previous change.
1995         Update comments.
1996
1997 2008-05-27  Vincent Celier  <celier@adacore.com>
1998
1999         * prj-nmsc.adb: Minor reformatting
2000
2001 2008-05-27  Bob Duff  <duff@adacore.com>
2002
2003         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2004         untagged private type with a tagged full type, where the full type has
2005         a self reference, create the corresponding class-wide type early, in
2006         case the self reference is "access T'Class".
2007
2008 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2009
2010         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2011         tasks and context is an object declaration. create master entity before
2012         expansion.
2013
2014 2008-05-27  Robert Dewar  <dewar@adacore.com>
2015
2016         * mlib-prj.adb: Minor reformatting
2017
2018         * prj-part.adb: Minor reformatting
2019
2020         * prj.ads: Minor reformatting
2021
2022         * exp_ch3.adb: Minor reformatting.
2023
2024         * sem_ch3.ads: Minor reformatting
2025
2026         * sem_eval.adb: Minor reformatting
2027
2028 2008-05-27  Vincent Celier  <celier@adacore.com>
2029
2030         * gnatcmd.adb:
2031         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2032
2033 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2034
2035         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2036         tasks, create an activation chain now, before the expansion into
2037         assignments and build-in-place calls that require the presence of an
2038         activation chain.
2039         (Backend_Processing_Possible): If the component type is inherently
2040         limited, the aggregate must be expanded into individual built-in-place
2041         assignments.
2042
2043         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2044         determine whether an allocation extra parameter must be built, to
2045         handle case of a private type whose full type is a discriminated type
2046         with defaults.
2047
2048 2008-05-27  Bob Duff  <duff@adacore.com>
2049
2050         * gnat_rm.texi:
2051         Document the new behavior regarding trampolines.
2052
2053 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2054
2055         * a-direio.adb, a-sequio.adb: Replace address clause by
2056         unrestricted_access, simpler and compatible with .NET.
2057
2058 2008-05-27  Vincent Celier  <celier@adacore.com>
2059
2060         * prj-part.adb:
2061         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
2062         a project file, so that symbolic links are not resolved.
2063
2064 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2065
2066         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
2067         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
2068         portable across GNAT targets, since this kind of address clause is not
2069         supported by VM back-ends (.NET/JGNAT).
2070
2071 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
2072
2073         * bindgen.adb: Update comments.
2074         
2075         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
2076
2077 2008-05-27  Vincent Celier  <celier@adacore.com>
2078
2079         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
2080         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
2081         mlib-tgt.adb, prj-env.adb, prj-env.ads:
2082         (Path_Information): New record type
2083         Use component of type Path_Information when there are two paths, one in
2084         canonical format and one in display format.
2085         Update the project manager to these new components.
2086
2087 2008-05-27  Robert Dewar  <dewar@adacore.com>
2088
2089         * makeutl.adb: Minor reformatting
2090         * prj-nmsc.adb: Minor reformatting
2091         * s-stausa.adb: Minor reformatting
2092         * s-stausa.ads: Minor reformatting
2093         * sem_ch6.adb: Minor reformatting
2094
2095 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2096
2097         * sem_res.adb: Minor comment fixes
2098
2099 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2100
2101         * makeutl.adb: Minor code reorganization
2102
2103         * exp_aggr.adb: Add ??? comment
2104         Fix typo
2105
2106         * exp_ch6.adb: Minor reformatting
2107
2108 2008-05-27  Quentin Ochem  <ochem@adacore.com>
2109
2110         * s-stausa.adb (Initialize): Updated result initialization, and
2111         initialization of environment stack.
2112         (Fill_Stack): Improved computation of the pattern zone, taking into
2113         account already filled at the calling point.
2114         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
2115         Measure and Overflow_Guard.
2116         (Report_Result): Fixed computation of the result using new fields of
2117         Stack_Analyzer.
2118         
2119         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
2120         params by more explicit Stack_Size / Max_Pattern_Size params.
2121         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
2122         Added Stack_Used_When_Filling field.
2123         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
2124         Min_Measure and Max_Measure fields.
2125         
2126         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
2127
2128 2008-05-27  Vincent Celier  <celier@adacore.com>
2129
2130         * prj-nmsc.adb:
2131         (Check_File): Make sure that a unit that replaces the same unit in a
2132          project being extended is properly processed.
2133
2134 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2135
2136         * sem_ch3.adb:
2137         (Get_Discr_Value): Remove obsolete code that failed to find the value
2138         of a discriminant for an inherited task component appearing in a type
2139         extension.
2140
2141 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2142
2143         (System.File_IO.{Close, Delete, Reset}):
2144         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
2145         
2146         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
2147         Pass File parameter by reference.
2148
2149 2008-05-27  Vincent Celier  <celier@adacore.com>
2150
2151         * prj-nmsc.adb:
2152         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
2153         sources of the same project that have the same object file name.
2154         (Find_Explicit_Sources): Always remove a source exception that was not
2155         found.
2156
2157 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2158
2159         * sem_ch3.adb: Minor reformatting
2160
2161 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2162
2163         * sem_ch6.adb:
2164         (Is_Interface_Conformant): Handle properly a primitive operation that
2165         overrides an interface function with a controlling access result.
2166         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
2167         inherited and overriding operations, omit as well the conformance check
2168         on result types, to prevent spurious errors.
2169
2170 2008-05-27  Vincent Celier  <celier@adacore.com>
2171
2172         * makeutl.ads, makeutl.adb:
2173         (Set_Location): New procedure
2174         (Get_Location): New function
2175         (Update_Main): New procedure
2176
2177 2008-05-27  Vincent Celier  <celier@adacore.com>
2178
2179         * prj-nmsc.adb:
2180         (Check_Library): Allow standard project to be extended as a static
2181         library project.
2182         (Get_Mains): Do not inherit attribute Main in an extending library
2183         project.
2184
2185 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2186
2187         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
2188         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
2189         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
2190         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
2191         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
2192         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
2193         * system-mingw.ads (Always_Compatible_Rep): Likewise.
2194         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
2195         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
2196         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
2197         
2198 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2199
2200         * sem_attr.adb: add guard to previous patch.
2201
2202 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
2203
2204         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
2205         a synchronized tagged type, do not attempt to build dispatch table for
2206         full view. The table is built for the corresponding record type, which
2207         has its own declaration.
2208
2209 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
2210
2211         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
2212         to the known type entity E, rather than setting it to Any_Type. Fixes
2213         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
2214         for objects whose type had an illegal constraint.
2215
2216 2008-05-27  Vincent Celier  <celier@adacore.com>
2217
2218         * gnat_ugn.texi:
2219         Add succinct documentation for attribute Excluded_Source_List_File
2220
2221 2008-05-27  Vincent Celier  <celier@adacore.com>
2222
2223         * prj-attr.adb: Add new project level attribute Map_File_Option
2224         
2225         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
2226         
2227         * prj.ads: Minor reformatting and comment update
2228         (Project_Configuration): New component Map_File_Option
2229         
2230         * snames.adb: New standard name Map_File_Option
2231         
2232         * snames.ads: New standard name Map_File_Option
2233
2234 2008-05-27  Vincent Celier  <celier@adacore.com>
2235
2236         * xsnames.adb: Remove unused variable Oname
2237
2238 2008-05-27  Doug Rupp  <rupp@adacore.com>
2239
2240         * exp_ch6.adb:
2241         (Expand_N_Function_Call): Fix comments. Minor reformatting.
2242
2243         * exp_vfpt.ads:
2244         (Expand_Vax_Foreign_Return): Fix comments.
2245
2246 2008-05-27  Thomas Quinot  <quinot@adacore.com>
2247
2248         * exp_dist.adb: Minor reformating
2249
2250 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
2251
2252         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
2253         No_Default_Initialization, which is now delayed until the freeze point
2254         of the object. Add a comment about deferral of the check.
2255         
2256         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
2257         on objects is moved here.
2258
2259 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2260
2261         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
2262         (Compare_Array_S16): Adjust for above change.
2263         * s-casi32.adb (Uword): Likewise.
2264         (Compare_Array_S32): Likewise.
2265         * s-casi64.adb (Uword): Likewise.
2266         (Compare_Array_S64): Likewise.
2267         * s-caun16.adb (Uhalf): Likewise.
2268         (Compare_Array_U16): Likewise.
2269         * s-caun32.adb (Uword): Likewise.
2270         (Compare_Array_U32): Likewise.
2271         * s-caun64.adb (Uword): Likewise.
2272         (Compare_Array_U64): Likewise.
2273         
2274 2008-05-26  Robert Dewar  <dewar@adacore.com>
2275
2276         * exp_ch6.adb: Add ??? comment for previous change
2277
2278         * exp_vfpt.adb: Minor reformatting
2279
2280         * exp_vfpt.ads: Add ??? comment for last change
2281
2282         * sem_attr.adb: Add some ??? comments for previous change
2283
2284         * s-vaflop.ads: Add comments for previous change
2285
2286 2008-05-26  Doug Rupp  <rupp@adacore.com>
2287
2288         * s-vaflop-vms-alpha.adb:
2289         Remove System.IO use clause, to prevent spurious ambiguities when
2290         package is access through rtsfind.
2291
2292 2008-05-26  Sergey Rybin  <rybin@adacore.com>
2293
2294         * tree_io.ads (ASIS_Version_Number): Update because of the changes
2295         made in front-end
2296
2297 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2298
2299         * sem_attr.adb:
2300         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
2301         converted to S (A)'address only if A .. B is known to be a non-null
2302         range.
2303
2304 2008-05-26  Doug Rupp  <rupp@adacore.com>
2305
2306         * s-vaflop.adb:
2307         (Return_D, Return_F, Return_G): New functions.
2308
2309         * s-vaflop.ads:
2310         (Return_D, Return_F, Return_G): New functions.
2311
2312         * exp_vfpt.adb:
2313         (Expand_Vax_Foreign_Return): New procedure
2314
2315         * exp_vfpt.ads:
2316         (Expand_Vax_Foreign_Return): New procedure
2317
2318         * rtsfind.ads:
2319         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
2320         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
2321
2322         * exp_ch6.adb:
2323         Import Exp_Vfpt
2324         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
2325
2326         * s-vaflop-vms-alpha.adb:
2327         (Return_D, Return_F, Return_G): New functions.
2328
2329 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
2330
2331         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
2332         init proc entity when there is actual default initialization associated
2333         with the component type, to avoid spurious errors on objects of scalar
2334         array types that are marked Is_Public when No_Default_Initialization
2335         applies.
2336
2337 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2338
2339         * rtsfind.ads, rtsfind.adb:
2340         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
2341         (Check_RPC): Support per-PCS-kind API versioning.
2342         
2343         exp_dist.ads, exp_dist.adb:
2344         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
2345         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
2346          library function Get_RACW.
2347         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
2348         library function Get_Reference.
2349         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
2350         through an intermediate Any.
2351         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
2352         going through an intermediate Any.
2353         
2354         * sem_dist.adb: Minor reformatting.
2355
2356 2008-05-26  Javier Miranda  <miranda@adacore.com>
2357
2358         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
2359         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
2360         (Is_Internal): Adding documentation on internal entities that have
2361         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
2362
2363         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
2364         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
2365         Added assertion to force entities with this attribute to have
2366         attribute Is_Internal set to True.
2367         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
2368
2369         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
2370         renamed as Derive_Progenitor_Subprograms. In addition, its code is
2371         a new implementation.
2372         (Add_Interface_Tag_Components): Remove special management of
2373         synchronized interfaces.
2374         (Analyze_Interface_Declaration): Minor reformating
2375         (Build_Derived_Record_Type): Minor reformating
2376         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
2377         predefined primitive inherited from interface type because the body of
2378         internally generated predefined primitives of tagged types are generated
2379         later by Freeze_Type
2380         (Derive_Subprogram): Avoid generating an internal name if the parent
2381         subprogram overrides an interface primitive.
2382         (Derive_Subprograms): New implementation that keeps separate the
2383         management of tagged types not implementing interfaces, from tagged
2384         types that implement interfaces.
2385         (Is_Progenitor): New implementation.
2386         (Process_Full_View): Add documentation
2387         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
2388         by call to Derive_Progenitor_Subprograms.
2389
2390         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
2391         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2392         Skip_Controlling_Formals.
2393
2394         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
2395         (Check_Conventions): New implementation. Remove local subprogram
2396         Skip_Check. Remove formal Search_From of routine Check_Convention.
2397         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2398         Skip_Controlling_Formals.
2399         (New_Overloaded_Entity): Enable addition of predefined dispatching
2400         operations.
2401
2402         * sem_disp.ads
2403         (Find_Primitive_Covering_Interface): New subprogram.
2404
2405         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
2406         the task body procedure as a primitive of the corresponding tagged
2407         type.
2408         (Check_Operation_From_Private_Type): Avoid adding twice an entity
2409         to the list of primitives.
2410         (Find_Primitive_Covering_Interface): New subprogram.
2411         (Override_Dispatching_Operation): Add documentation.
2412
2413         * sem_type.adb (Covers): Minor reformatings
2414
2415         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
2416         Collect_Interfaces.
2417         Rename formal.
2418         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
2419         (Implements_Interface): New subprogram.
2420         (Is_Parent): Removed.
2421         (Primitive_Names_Match): New subprogram.
2422         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2423         (Ultimate_Alias): New subprogram.
2424
2425         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
2426         Collect_Interfaces.
2427         Remove special management for synchronized types. Rename formal. Remove
2428         internal subprograms Interface_Present_In_Parent and Add_Interface.
2429         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
2430         on non-record types by code to return false in such case.
2431         (Implements_Interface): New subprogram.
2432         (Is_Parent): Removed. No special management is now required for
2433         synchronized types covering interfaces.
2434         (Primitive_Names_Match): New subprogram.
2435         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2436         (Ultimate_Alias): New subprogram.
2437
2438         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
2439         Add internal entities associated with secondary dispatch tables to
2440         the list of tagged type primitives that are not interfaces.
2441         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
2442         (Make_Predefined_Primitive_Specs): Code reorganization to improve
2443         the management of predefined equality operator. In addition, if
2444         the type has an equality function corresponding with a primitive
2445         defined in an interface type, the inherited equality is abstract
2446         as well, and no body can be created for it.
2447
2448         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
2449         exp_util to exp_disp.
2450         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
2451         an entity corresponds with one of the predefined primitives required
2452         to implement interfaces.
2453         Update copyright notice.
2454
2455         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
2456         final check on abstract subprograms all the primitives associated with
2457         interface primitives because they must be visible in the public and
2458         private part.
2459         (Write_DT): Use Find_Dispatching_Type to locate the name of the
2460         interface type. This allows the use of this routine, for debugging
2461         purposes, when the tagged type is not fully decorated.
2462         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
2463         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
2464         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
2465         entity corresponds with one of the predefined primitives required to
2466         implement interfaces.
2467
2468         * exp_util.adb (Find_Interface_ADT): New implementation
2469         (Find_Interface): Removed.
2470
2471         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
2472         list of interfaces associated with nodes
2473         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
2474
2475 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2476
2477         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
2478         condition for assignment to temporary.
2479
2480 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2481
2482         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
2483         checks on the upper bound if the index type is a modular type, to
2484         prevent wrap-around computations when size is close to upper bound of
2485         type.
2486
2487 2008-05-26  Robert Dewar  <dewar@adacore.com>
2488
2489         * sem_ch3.adb: Minor reformatting
2490
2491 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2492
2493         * sem_ch12.adb (Remove_Parent): Use specification of instance
2494         to retrieve generic parent,
2495         to handle properly the case where the instance is a child unit.
2496         Add guard to handle properly wrapper packages.
2497         Minor reformatting
2498
2499 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2500
2501         * sinfo.ads: Minor reformatting
2502
2503 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
2504
2505         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
2506         Generate a tag check when the result subtype of a function, defined by
2507         an access definition, designates a specific tagged type.
2508         (Make_Tag_Check): New routine.
2509
2510 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
2511
2512         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
2513
2514 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2515
2516         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
2517         (builtin_decl_for): Likewise.
2518         * trans.c (gigi): Likewise.
2519         * utils.c (def_builtin_1): Fix formatting.
2520
2521 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
2522
2523         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
2524         Create the statements which map a string name to protected or task
2525         entry indix.
2526
2527         * exp_ch9.adb: Add with and use clause for Stringt.
2528         Minor code reformatting.
2529         (Build_Entry_Names): New routine.
2530         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
2531         for flag Build_Entry_Names which controls the allocation of the data
2532         structure for the string names of entries.
2533
2534         * exp_ch9.ads (Build_Entry_Names): New subprogram.
2535
2536         * exp_util.adb (Entry_Names_OK): New function.
2537
2538         * exp_util.ads (Entry_Names_OK): New function.
2539
2540         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
2541         enumerations RE_Id and RE_Unit_Table.
2542
2543         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
2544         (Free_Entry_Names_Array): New routine.
2545
2546         * s-taskin.ads: Comment reformatting.
2547         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
2548         Add component Entry_Names to record Ada_Task_Control_Block.
2549         (Free_Entry_Names_Array): New routine.
2550
2551         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
2552         dynamically allocate an array
2553         of string pointers. This structure holds string entry names.
2554         (Free_Entry_Names): New routine.
2555         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
2556         (Set_Entry_Names): New routine.
2557
2558         * s-tassta.ads:
2559         (Create_Task): Add formal Build_Entry_Names. The flag is used to
2560         control the allocation of the data structure which stores entry names.
2561         (Set_Entry_Name): New routine.
2562
2563         * s-tpoben.adb:
2564         Add with and use clause for Ada.Unchecked_Conversion.
2565         (Finalize): Deallocate the entry names array.
2566         (Free_Entry_Names): New routine.
2567         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
2568         create an array of string pointers to hold the entry names.
2569         (Set_Entry_Name): New routine.
2570
2571         * s-tpoben.ads:
2572         Add field Entry_Names to record Protection_Entries.
2573         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
2574         (Set_Entry_Name): New routine.
2575
2576 2008-05-26  Vincent Celier  <celier@adacore.com>
2577
2578         * prj-nmsc.adb:
2579         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
2580
2581         * prj.ads:
2582         (Project_Configuration): New component Shared_Lib_Driver
2583
2584 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2585
2586         * inline.adb:
2587         (Cleanup_Scopes): For a protected operation, transfer finalization list
2588         to protected body subprogram, to force cleanup actions when needed.
2589
2590 2008-05-26  Robert Dewar  <dewar@adacore.com>
2591
2592         * sem_cat.adb: Minor reformatting
2593
2594         * gnatname.adb: Minor reformatting
2595
2596         * osint.ads: Minor reformatting
2597
2598         * s-carun8.ads: Minor reformatting
2599
2600         * g-heasor.ads: Minor comment fix (unit is now pure)
2601
2602 2008-05-26  Robert Dewar  <dewar@adacore.com>
2603
2604         * exp_ch2.adb:
2605         (Expand_Current_Value): Properly type generated integer literal
2606
2607 2008-05-26  Sergey Rybin  <rybin@adacore.com>
2608
2609         * gnat_ugn.texi: Add description for the new gnatcheck rule -
2610         Separate_Numeric_Error_Handlers.
2611
2612 2008-05-26  Pascal Obry  <obry@adacore.com>
2613
2614         * sem_aggr.adb: Minor reformatting.
2615
2616 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
2617
2618         * s-osinte-aix.adb:
2619         (To_Target_Priority): Setting the time slice value to 0 or greater sets
2620         the scheduling policy to FIFO within priorities or round-robin
2621         respectively.
2622         Hence, the priority must be set in this case to the one selected by the
2623         user.
2624         
2625 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2626
2627         * sem_ch12.adb:
2628         (Remove_Parent): If the enclosing scope is an instance whose generic
2629         parent is declared within some parent scope of the just completed
2630         instance, make full views of the entities in that parent visible, when
2631         applicable.
2632         
2633 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
2634
2635         * mingw32.h (STD_MINGW): Set to true for target w64.
2636
2637 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2638
2639         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
2640         instead of TREE_STATIC on the ADDR_EXPR.
2641
2642 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2643
2644         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
2645         (Sloc_to_locus): Do not overwrite known GCC locations when translating
2646         GNAT standard locations.
2647
2648 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2649
2650         * gigi.h (mark_visited): Declare.
2651         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
2652         only the topmost node of expressions.
2653         (elaborate_expression_1): Look deeper for read-only variables.
2654         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
2655         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
2656         (mark_visited_r): New function.
2657
2658 2008-05-23  Vincent Celier  <celier@adacore.com>
2659
2660         * snames.adb: New standard name Excluded_Source_List_File.
2661
2662         * snames.ads: New standard name Excluded_Source_List_File.
2663
2664         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
2665
2666         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
2667         Get excluded sources from
2668         file indicated by attribute Excluded_Source_List_File, when present and
2669         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
2670
2671 2008-05-23  Robert Dewar  <dewar@adacore.com>
2672
2673         * exp_dist.adb: Minor reformatting
2674
2675 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
2676
2677         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
2678         slice, convert it to an indexed component, which is equivalent, more
2679         efficient, and usable even if the slice itself is not addressable.
2680
2681 2008-05-23  Olivier Hainque  <hainque@adacore.com>
2682
2683         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
2684         convention also allows access to named compiler built-in subprograms
2685         such as the GCC __builtin family.
2686
2687 2008-05-23  Vincent Celier  <celier@adacore.com>
2688
2689         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
2690         sep. If there are several possibilities, choose the one with the
2691         longer prefix.
2692
2693 2008-05-23  Vincent Celier  <celier@adacore.com>
2694
2695         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
2696         back end switches when executable specified with --GCC= is same as
2697         default, even if there are additional options.
2698
2699         * gnat_ugn.texi:
2700         Document when the back end switches from the ALI file are taken into
2701         account when gnatlink is invoked with --GCC=
2702
2703 2008-05-23  Thomas Quinot  <quinot@adacore.com>
2704
2705         * s-os_lib.adb:
2706         (copy_File): Do not open destination file if source file is unreadable.
2707
2708 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2709
2710         * utils.c (handle_type_generic_attribute): Adjust to accept
2711         fixed arguments before an elipsis.
2712
2713 2008-05-21  Thomas Quinot  <quinot@adacore.com>
2714
2715         * g-sothco.ads, g-sothco.adb: New files.
2716
2717 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2718
2719         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
2720
2721         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
2722         Add missing "with" of Ada.Unchecked_Conversion
2723
2724         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, 
2725         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, 
2726         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, 
2727         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, 
2728         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, 
2729         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: 
2730         Move common code out of GNAT.Sockets.Thin implementations and into
2731         Thin_Common.
2732         New constant SIZEOF_fd_set
2733         New flag Has_Sockaddr_Len
2734         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2735
2736         * g-stsifd-sockets.adb
2737         (Create): Remove call to Set_Length; use Set_Family to set the family
2738         and (on appropriate platforms) length fields in struct sockaddr.
2739
2740         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, 
2741         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, 
2742         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
2743         Move common code out of GNAT.Sockets.Thin implementations and into
2744         Thin_Common.
2745
2746         * g-socket.ads, g-socket.adb: 
2747         Move common code out of GNAT.Sockets.Thin implementations and into
2748         Thin_Common.
2749         (Connect_Socket, Accept_Socket): Provide new versions of these two
2750         routines that operate with a user specified timeout.
2751         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
2752         this is now handled automatically by Set_Family on platforms that
2753         require it.
2754
2755         * gen-soccon.c: 
2756         Move common code out of GNAT.Sockets.Thin implementations and into
2757         Thin_Common.
2758         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
2759         this constant to 0 (not -1) because we use it to initialize an
2760         unsigned_char value.
2761         Align values for numeric constants only.
2762         Handle the case of systems that do not support AF_INET6.
2763         New constant SIZEOF_fd_set
2764         New flag Has_Sockaddr_Len
2765         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2766
2767         * gsocket.h: New flag Has_Sockaddr_Len
2768         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2769
2770 2008-05-20  Santiago Uruena  <uruena@adacore.com>
2771
2772         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
2773
2774 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
2775
2776         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
2777         the underlying issue with malloc/free has been fixed. Remove associated
2778         comments.
2779         Minor reformatting.
2780         Related to PR ada/24533
2781
2782 2008-05-20  Robert Dewar  <dewar@adacore.com>
2783
2784         * ali.adb: Correct casing of ASCII.NUL
2785
2786         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
2787         properly.
2788
2789 2008-05-20  Robert Dewar  <dewar@adacore.com>
2790             Gary Dismukes  <dismukes@adacore.com>
2791
2792         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
2793         overflow if result converted to wider integer type.
2794         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
2795         discriminated types when discriminant checks are suppressed.
2796
2797 2008-05-20  Vincent Celier  <celier@adacore.com>
2798
2799         * cstand.adb (Print_Standard): Issue the correct Size clause for type
2800         Wide_Wide_Character.
2801
2802 2008-05-20  Tristan Gingold  <gingold@adacore.com>
2803
2804         * decl.c: Do not emit a variable for a object that has an address
2805         representation clause whose value is known at compile time.
2806         When a variable has an address clause whose value is known at compile
2807         time, refer to this variable by using directly the address instead of
2808         dereferencing a pointer.
2809
2810 2008-05-20  Robert Dewar  <dewar@adacore.com>
2811
2812         PR ada/30740
2813         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
2814         subtypes, always False for non-modular types.
2815         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
2816         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
2817         for Shared_Storage package.
2818         (Is_RACW_Stub_Type): New entity flag.
2819
2820         * exp_ch4.adb
2821         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
2822         case where we have a modular type with a non-binary modules.
2823         Comments reformattings.
2824
2825         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
2826         all types.
2827
2828 2008-05-20  Javier Miranda  <miranda@adacore.com>
2829
2830         * exp_aggr.adb
2831         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
2832         tests did not covered the case in which the type of the aggregate has
2833         no progenitors but some its parents has progenitors.
2834
2835 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
2836             Hristian Kirtchev  <kirtchev@adacore.com>
2837
2838         * exp_ch3.adb
2839         (Expand_N_Object_Declaration): Correct the condition which triggers the
2840         generation of a call to Displace when initializing a class-wide object.
2841         (Build_Dcheck_Functions): Build discriminant-checking for null variants
2842         when Frontend_Layout_On_Target is true to ensure that they're available
2843         for calling when a record variant size function is built in Layout.
2844
2845 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2846
2847         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2848         procedure for a derived type retrieve the discriminant values from the
2849         parent using the corresponding discriminant.
2850         (Expand_N_Assignment_Statement): Skip generation of implicit
2851         if-statement associated with controlled types if we are
2852         compiling with restriction No_Finalization.
2853
2854 2008-05-20  Vincent Celier  <celier@adacore.com>
2855
2856         * prj.adb (Hash (Project_Id)): New function
2857         (Project_Empty): Add new component Interfaces_Defined
2858
2859         * prj.ads (Source_Data): New component Object_Linked
2860         (Language_Config): New components Object_Generated and Objects_Linked
2861         (Hash (Project_Id)): New function
2862         (Source_Data): New Boolean components In_Interfaces and
2863         Declared_In_Interfaces.
2864         (Project_Data): New Boolean component Interfaces_Defined
2865
2866         * prj-attr.adb: 
2867         New project level attribute Object_Generated and Objects_Linked
2868         Add new project level attribute Interfaces
2869
2870         * prj-dect.adb: Use functions Present and No throughout
2871         (Parse_Variable_Declaration): If a string type is specified as a simple
2872         name and is not found in the current project, look for it also in the
2873         ancestors of the project.
2874
2875         * prj-makr.adb: 
2876         Replace procedure Make with procedures Initialize, Process and Finalize
2877         to implement H414-023: process different directories with different
2878         patterns.
2879         Use functions Present and No throughout
2880
2881         * prj-makr.ads: 
2882         Replace procedure Make with procedures Initialize, Process and Finalize
2883
2884         * prj-nmsc.adb
2885         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
2886         the language configuration.
2887         (Process_Project_Level_Array_Attributes): Process new attributes
2888         Object_Generated and Object_Linked.
2889         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
2890         False, to indicate that the erreor/warning is a continuation.
2891         (Check): Call Report_No_Sources with Contnuation = True after the first
2892         call.
2893         (Error_Msg): Process successively contnuation character and warning
2894         character.
2895         (Find_Explicit_Sources): Check that all declared sources have been found
2896         (Check_File): Indicate in hash table Source_Names when a declared source
2897         is found.
2898         (Check_File): Set Other_Part when found
2899         (Find_Explicit_Sources): In multi language mode, check if all exceptions
2900         to the naming scheme have been found. For Ada, report an error if an
2901         exception has not been found. Otherwise, disregard the exception.
2902         (Check_Interfaces): New procedure
2903         (Add_Source): When Other_Part is defined, set mutual pointers in spec
2904         and body.
2905         (Check): In multi-language mode, call Check_Interfaces
2906         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
2907         for an excluded source.
2908         (Remove_Source): A source replacing a source in the interfaces is also
2909         in the interfaces.
2910
2911         * prj-pars.adb: Use function Present
2912
2913         * prj-part.adb: Use functions Present and No throughout
2914         (Parse_Single_Project): Set the parent project for child projects
2915         (Create_Virtual_Extending_Project): Register project with no qualifier
2916         (Parse_Single_Project): Allow an abstract project to be extend several
2917         times. Do not allow an abstract project to extend a non abstract
2918         project.
2919
2920         * prj-pp.adb: Use functions Present and No throughout
2921         (Print): Take into account the full associative array attribute
2922         declarations.
2923
2924         * prj-proc.adb: Use functions Present and No throughout
2925         (Expression): Call itself with the same From_Project_Node for the
2926         default value of an external reference.
2927
2928         * prj-strt.adb: Use functions Present and No throughout
2929         (Parse_Variable_Reference): If a variable is specified as a simple name
2930         and is not found in the current project, look for it also in the
2931         ancestors of the project.
2932
2933         * prj-tree.ads, prj-tree.adb (Present): New function
2934         (No): New function
2935         Use functions Present and No throughout
2936         (Parent_Project_Of): New function
2937         (Set_Parent_Project_Of): New procedure
2938
2939         * snames.ads, snames.adb: 
2940         Add new standard names Object_Generated and Objects_Linked
2941
2942 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
2943
2944         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
2945         and the derived type are of the same kind.
2946         (Expand_Call): Generate type conversions for actuals of
2947         record or array types when the parent and the derived types differ in
2948         size and/or packed status.
2949
2950 2008-05-20  Javier Miranda  <miranda@adacore.com>
2951             Ed Schonberg  <schonberg@adacore.com>
2952
2953         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
2954         generating dispatch tables of locally defined tagged types statically.
2955         Remove implicit if-statement that is no longer required.
2956         (Expand_Dispatching_Call): If this is a call to an instance of the
2957         generic dispatching constructor, the type of the first argument may be
2958         a subtype of Tag, so always use the base type to recognize this case.
2959
2960 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2961
2962         * exp_dist.adb
2963         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
2964         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
2965         assigning NULL into the result, to avoid a spurious warning.
2966         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
2967         is not frozen.
2968         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
2969         type.
2970         (Build_From_Any_Function, Build_To_Any_Function,
2971         Build_TypeCode_Function): For a type that has user-specified stream
2972         attributes, use an opaque sequence of octets as the representation.
2973
2974 2008-05-20  Kevin Pouget  <pouget@adacore.com>
2975
2976         * exp_smem.ads, exp_smem.adb: Construction of access and assign
2977         routines has been replaced by an instantiation of
2978         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
2979         shared variable declaration.
2980         Calls to access and assign routines have been replaced by calls to
2981         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
2982         instantiated package.
2983         
2984         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
2985         It identifies the new generic package added in s-shasto.
2986
2987         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
2988         is instantiated for each shared passive variable. It provides
2989         supporting procedures called upon each read or write access by the
2990         expanded code.
2991
2992         * sem_attr.adb:
2993         For this runtime unit (always compiled in GNAT mode), we allow
2994         stream attributes references for limited types for the case where
2995         shared passive objects are implemented using stream attributes,
2996         which is the default in GNAT's persistent storage implementation.
2997
2998 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2999
3000         * freeze.adb
3001         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3002         convention from its base type, do not set the type to that of integer,
3003         because it may inherit a size clause.
3004         Warn on a size clause with a size different
3005         from that of Integer, if the type has convention C.
3006
3007 2008-05-20  Vincent Celier  <celier@adacore.com>
3008
3009         * gnatname.adb
3010         (Scan_Args): Rewrite to take into account new switch --and to separate
3011         arguments into sections.
3012         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3013         section, then Finalize.
3014
3015 2008-05-20  Tristan Gingold  <gingold@adacore.com>
3016
3017         * init.c: Enable stack probing on ppc-linux.
3018
3019         * tracebak.c: Add symbolic traceback for ppc-linux.
3020
3021         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3022
3023 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3024
3025         * Makefile.in
3026         (common-tools): New rule, to avoid parallel build failure on gnat tools.
3027         Reenable parallel builds on this Makefile.
3028
3029         * Make-lang.in: Update dependencies.
3030
3031 2008-05-20  Robert Dewar  <dewar@adacore.com>
3032
3033         * opt.ads (Treat_Restrictions_As_Warnings): New switch
3034
3035         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3036         Treat_Restrictions_As_Warnings.
3037
3038         * switch-c.adb: Recognize new switch -gnatr
3039
3040         * usage.adb: Add line for -gnatr
3041
3042 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3043
3044         * par-ch3.adb
3045         (P_Access_Definition): Change the error message when parsing "access
3046         all" in Ada 95 mode. The message no longer forces the user to recompile
3047         in 05 mode only to discover that anonymous access types are not allowed
3048         to have "all".
3049
3050 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
3051
3052         * par-ch9.adb
3053         (P_Protected): Update the error message on missing "-gnat05" switch when
3054         using interfaces in conjunction with protected types. Remove the
3055         incorrect error message associated with the presence of "private" after
3056         a "with".
3057
3058 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3059
3060         * sem_aggr.adb: Update comments.
3061         Improve previous change for PR ada/17985
3062
3063 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3064
3065         * sem_cat.adb
3066         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
3067         the visible part of the spec of a remote types unit.
3068         (Validate_Remote_Access_Object_Type_Declaration):
3069         New local subprogram Is_Valid_Remote_Object_Type, replaces
3070         Is_Recursively_Limited_Private.
3071         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
3072         non-controlling formals (and the return type, even though this is not
3073         explicit in the standard) must support external streaming.
3074         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
3075         as above for of RAS types and RCI subprograms. (The return type is not
3076         checked yet).
3077         Update comments related to RACWs designating limited interfaces per
3078         ARG ruling on AI05-060.
3079
3080         * sem_util.ads, sem_util.adb
3081         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
3082         Is_Remote_Call_Interface to identify RACW types in a stable and
3083         consistent way. We used to rely in this predicate on the privateness of
3084         the designated type and its ancestors, but depending on the currently
3085         visible private parts, this caused false negatives. We now uniformly
3086         rely on checks made at the point where the RACW type is declared.
3087         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
3088
3089 2008-05-20  Javier Miranda  <miranda@adacore.com>
3090             Ed Schonberg  <schonberg@adacore.com>
3091             Hristian Kirtchev  <kirtchev@adacore.com>
3092
3093         * sem_ch3.adb
3094         (Analyze_Object_Declaration): Fix over-conservative condition
3095         restricting use of predefined assignment with tagged types that have
3096         convention CPP.
3097         (Analyze_Object_Declaration): Relax the check regarding deferred
3098         constants declared in scopes other than packages since they can be
3099         completed with pragma Import.
3100         Add missing escaping of all-caps word 'CPP' in error messages.
3101         (Build_Discriminated_Subtype): Do not inherit representation clauses
3102         from parent type if subtype already carries them, because they are
3103         inherited earlier during derivation and already include those that may
3104         come from a partial view.
3105
3106         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
3107         Check the declarations of a subprogram body for proper deferred
3108         constant completion.
3109
3110         * sem_ch7.ads, sem_ch7.adb
3111         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
3112
3113 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3114             Thomas Quinot  <quinot@adacore.com>
3115
3116         * sem_ch4.adb
3117         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
3118         F is a parameterless function that returns an array, and S is a subtype
3119         mark.
3120         (Analyze_Call): Insert dereference when the prefix is a parameterless
3121         function that returns an access to subprogram and the call has
3122         parameters.
3123         Reject a non-overloaded call whose name resolves to denote
3124         a primitive operation of the stub type generated to support a remote
3125         access-to-class-wide type.
3126
3127 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3128
3129         * sem_ch8.adb
3130         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
3131         when there is a use clause for the same entity in the context.
3132         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
3133         created for a stream attribute of an abstract type or interface type.
3134
3135 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3136
3137         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
3138         subprogram.
3139
3140         * sem_type.adb
3141         (Add_One_Interp): Ignore any interpretation that is a primitive
3142         operation of an RACW stub type (these primitives are only executed
3143         through dispatching, never through static calls).
3144         (Collect_Interps): When only one interpretation has been found, set N's
3145         Entity and Etype to that interpretation, otherwise Entity and Etype may
3146         still refer to an interpretation that was ignored by Add_One_Interp,
3147         in which case would end up with being marked as not overloaded but with
3148         an Entity attribute not pointing to its (unique) correct interpretation.
3149
3150 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3151
3152         * sem_eval.adb
3153         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
3154         denotes the whole array of its prefix.
3155
3156 2008-05-20  Robert Dewar  <dewar@adacore.com>
3157
3158         * sem_res.adb (Resolve_Op_Not): Warn on double negation
3159
3160 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3161
3162         * sprint.adb
3163         (Print_Itype): Do not modify the sloc of the component type of a
3164         (packed) array itype, because it is an unrelated type whose source
3165         location is independent of the point of creation of the itype itself.
3166
3167 2008-05-20  Thomas Quinot  <quinot@adacore.com>
3168
3169         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
3170         Append.
3171
3172 2008-05-20  Robert Dewar  <dewar@adacore.com>
3173             Vincent Celier  <celier@adacore.com>
3174
3175         * vms_data.ads: Add entry for -gnatr
3176         Put GNAT SYNC section in proper alpha order
3177         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
3178
3179         * gnat_ugn.texi: Add documentation for new gnatname switch --and
3180         Update the style checks section
3181         Add documentation of -gnatr
3182         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
3183         subsection the explanation how compiler checks should be disabled for
3184         gnatcheck.
3185         Update the list of Ada 95 reserved words used by in the project language
3186         Add documentation for project qualifiers.
3187         Document that abstract projects may be extended by different projects in
3188         the same project tree.
3189         Add documentation for gnatmake switch -d
3190
3191         * ug_words: Add -gnatyy VMS equivalence string.
3192         Add entry for -gnatr
3193
3194 2008-05-20  Bob Duff  <duff@adacore.com>
3195
3196         * a-rttiev.adb
3197         (Set_Handler): Remove code from both of these that implements
3198         RM-D.15(15/2), because it causes a race condition and potential
3199         deadlock.
3200         (Process_Queued_Events): Add comment explaining "exception when others
3201         => null". Add clarifying ".all", even though implicit .all is legal
3202         here.
3203
3204 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3205
3206         * s-winext.ads: Replace representation clause by pragma Pack. Gives
3207         equivalent representation, but has the advantage of allowing
3208         compilation of this file under 64 bits platforms.
3209
3210         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
3211
3212         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
3213
3214         * adaint.c: 
3215         Don't define dummy implementation of convert_addresses on ppc-linux.
3216
3217 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
3218
3219         * exp_ch7.adb
3220         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
3221         if expression is aggregate component.
3222
3223 2008-05-20  Robert Dewar  <dewar@adacore.com>
3224
3225         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
3226         sem_ch12.adb: Update comments. Minor reformatting.
3227
3228         * exp_ch2.adb: Typo
3229
3230         * s-unstyp.ads: Fixed some typos in comments.
3231
3232 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
3233
3234         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
3235         type/constant.
3236
3237         * g-socthi-vxworks.ads: Update to latest socket changes.
3238
3239         * a-caldel-vms.adb: Resync with a-caldel spec.
3240
3241         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
3242         Update comments.
3243
3244 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
3245
3246         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
3247         for dummy types pointed to by the converted pointer types.
3248
3249 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3250
3251         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
3252         of records and unions.
3253         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
3254
3255 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
3256             Robert Dewar <dewar@adacore.com>
3257
3258         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
3259         restrictions to the prefix of 'Old.
3260         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
3261         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
3262         variables.
3263
3264 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
3265
3266         PR ada/24880
3267         PR ada/26635
3268         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
3269         expression to an integral type with lower precision, use NOP_EXPR
3270         directly in a couple of special cases.
3271
3272 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
3273             Ed Schonberg <schonberg@adacore.com>
3274
3275         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
3276         constraint expressions.
3277
3278 2008-05-12  Tomas Bily  <tbily@suse.cz>
3279
3280         * utils2.c (known_alignment, contains_save_expr_p)
3281         (gnat_mark_addressable): Use CASE_CONVERT.
3282         * decl.c (annotate_value): Likewise.
3283         * trans.c (maybe_stabilize_reference): Likewise.
3284         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
3285         * utils.c (rest_of_record_type_compilation): Likewise.
3286         * trans.c (protect_multiple_eval, Attribute_to_gnu)
3287         (protect_multiple_eval): Likewise.
3288
3289 2008-05-08  Andreas Schwab  <schwab@suse.de>
3290
3291         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
3292         DECL_IS_PURE to DECL_PURE_P.
3293
3294 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
3295
3296         * decl.c (maybe_pad_type): Add ??? comment.
3297
3298 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3299
3300         * decl.c (components_to_record): Zero the alignment of the qualified
3301         union built for the variant part upon creating it.
3302
3303 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3304
3305         * decl.c (maybe_pad_type): Try to get a form of the type with integral
3306         mode even if the alignment is not a factor of the original size.  But
3307         make sure to create the inner field with the original size.  Reorder.
3308         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
3309         record as always addressable.
3310         * utils.c (convert): Deal specially with conversions between original
3311         and packable versions of a record type.
3312         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
3313         recognizing an assignment between padded objects.
3314
3315 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
3316
3317         * decl.c (make_packable_type): Resize the last component to its RM size
3318         only if it is of an aggregate type.
3319         * trans.c (call_to_gnu): Fix nit in comment.
3320         (gnat_to_gnu): Likewise.
3321
3322 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
3323
3324         * Makefile.in: Adapt sh4-linux target.
3325
3326 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
3327
3328         PR ada/35792
3329         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
3330         tagged type by an untagged protected or task type.
3331
3332 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3333             Tristan Gingold  <gingold@adacore.com>
3334
3335         PR ada/36007
3336         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
3337         of aliased objects with an unconstrained nominal subtype.
3338         Cap the promotion to the effective alignment of the word mode.
3339
3340 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3341
3342         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
3343         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
3344         Use '&&' instead of ';'.
3345
3346 2008-04-24  Olivier Hainque  <hainque@adacore.com>
3347
3348         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
3349         doesn't require signed arithmetic anymore.
3350
3351 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
3352
3353         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
3354         (call_to_gnu): Don't set TREE_INVARIANT.
3355         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
3356
3357 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
3358
3359         * s-osinte-rtems.adb: Add sigalstack function.
3360         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
3361         function. Add Alternate_Stack and Alternate_Stack_Size.
3362         Add missing process_shared field to pthread_condattr_t
3363         and change ss_low_priority to int from timespec.
3364
3365 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
3366
3367         * i-forbla.adb: Link against -llapack and -lblas by default
3368         instead of the private -lgnalasup.
3369
3370 2008-04-21  Olivier Hainque  <hainque@adacore.com>
3371
3372         Access to most C builtins from Ada
3373         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
3374         (handle_pure_attribute, handle_novops_attribute,
3375         handle_nonnull_attribute, handle_sentinel_attribute,
3376         handle_noreturn_attribute, handle_malloc_attribute,
3377         handle_type_generic_attribute): New attribute handlers, from C fe.
3378         (gnat_internal_attribute_table): Map the new handlers.
3379         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
3380         (init_gigi_decls): ... here.
3381         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
3382         Move to a section dedicated to builtins processing.
3383         (build_void_list_node, builtin_type_for_size): New functions.
3384         (def_fn_type, get_nonnull_operand): Likewise.
3385         (install_builtin_elementary_type, install_builtin_function_types,
3386         install_builtin_attributes): Likewise.
3387         (fake_attribute_handler): Fake handler for attributes we don't
3388         support in Ada.
3389         (def_builtin_1): New function, worker for DEF_BUILTIN.
3390         (install_builtin_functions): New function.
3391         (gnat_install_builtins): Move to the builtins processing section.
3392         Now calling the newly introduced installers.
3393
3394 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3395
3396         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
3397         constant objects, but not exceptions.
3398         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
3399         compatibility test.
3400         * utils.c (create_var_decl_1): Likewise.
3401         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
3402         the type when copying to padded object and the source is a constructor.
3403
3404 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3405
3406         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
3407         alignment, reset it to zero if it would end up not being greater
3408         than that of the type.
3409
3410 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3411
3412         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
3413         the padded type has a variable size.
3414
3415 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3416
3417         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
3418         target pointer mechanism as soon as the size is not constant.
3419
3420 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3421
3422         * gigi.h (create_var_decl_1): Declare.
3423         (create_var_decl): Turn into a macro invoking create_var_decl_1.
3424         (create_true_var_decl): Likewise.
3425         * utils.c (create_var_decl_1): Make global and reorder parameters.
3426         (create_var_decl): Delete.
3427         (create_true_var_decl): Likewise.
3428
3429 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3430
3431         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
3432         objects by default.
3433         * fe.h (Debug_Flag_Dot_A): Delete.
3434         * debug.adb (-gnatd.a): Update documentation.
3435
3436 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
3437
3438         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
3439         "not null" parameter.
3440
3441 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
3442
3443         * g-socket.adb: Add a message "IPv6 not supported" to the
3444         Socket_Error exception.
3445
3446 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
3447
3448         PR ada/29015
3449         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
3450         the type is known instead of the underlying type.
3451
3452 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
3453
3454         PR ada/22387
3455         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3456         procedure for a derived type retrieve the discriminant values from
3457         the parent using the corresponding discriminant.
3458
3459 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
3460             Gary Dismukes  <dismukes@adacore.com>
3461
3462         PR ada/28733
3463         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
3464         which is not an entity (and hence not a package).
3465         (End_Use_Package): Ditto.
3466
3467 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
3468
3469         PR ada/16086
3470         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
3471         protected operation that matches the signature, not only an entry, a
3472         regular subprogram or a literal.
3473
3474 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3475
3476         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
3477         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
3478         if a size or alignment is specified.  Do not take into account
3479         alignment promotions for the computation of the object's size.
3480         <type>: Call maybe_pad_type only if a size or alignment is specified.
3481         (maybe_pad_type): Really reuse the RM_Size of the original type if
3482         requested.
3483         * trans.c (Attribute_to_gnu): Fix a couple of nits.
3484         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
3485         statements.  Use the padded view of the type when copying between
3486         padded objects of the same underlying type.
3487
3488 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3489
3490         * vms_data.ads: Fix typo in constant.
3491         * gen-soccon.c: Fix typo in error string.
3492         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
3493         Fix typos.
3494         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
3495         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
3496         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
3497         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
3498         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
3499         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
3500         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
3501         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
3502         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
3503         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
3504         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
3505         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
3506         sinfo.ads: Fix typos in comments.
3507
3508 2008-04-14  Robert Dewar  <dewar@adacore.com>
3509
3510         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
3511         to every non-object and change error message.
3512
3513 2008-04-14  Robert Dewar  <dewar@adacore.com>
3514
3515         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
3516         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
3517         directly.
3518
3519 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3520
3521         PR ada/18680
3522         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
3523         apply pragma Linker_Section on type.
3524
3525 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3526
3527         PR ada/16098
3528         * sem_prag.adb (Error_Pragma_Ref): New.
3529         (Process_Convention): Specialized message for non-local
3530         subprogram renaming. Detect the problem in homonyms as well.
3531
3532 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3533
3534         PR ada/15915
3535         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
3536         * sem_ch12.adb (Instantiate_Object): Use it.
3537         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
3538         storage pool denotes a variable as per RM 13.11(15).
3539
3540 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3541
3542         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
3543         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
3544
3545 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
3546
3547         PR ada/20822
3548         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
3549         line endings even on non-Unix platforms.
3550
3551 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3552
3553         PR ada/35050
3554         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
3555         renaming information.
3556
3557 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
3558
3559         PR ada/17985
3560         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
3561         itself.
3562
3563 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3564
3565         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
3566         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
3567         snames.ads, sprint.adb, stand.ads, stringt.ads,
3568         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
3569         switch.ads, sysdep.c, table.adb, table.ads,
3570         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
3571         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
3572         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
3573         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
3574         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
3575         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
3576         Fix comment typos.
3577
3578         * sem_ch10.adb, sem_ch10.ads,
3579         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
3580         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3581         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
3582         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
3583         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
3584         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
3585         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
3586         sem_warn.ads: Fix comment typos.
3587
3588         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
3589         s-soflin.ads, s-stalib.ads, s-stausa.adb,
3590         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
3591         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3592         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
3593         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3594         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
3595         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
3596         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
3597         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
3598         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
3599         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
3600         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
3601         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
3602         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
3603         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
3604         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
3605         sem_cat.adb, sem_cat.ads: Fix comment typos.
3606
3607 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
3608
3609         PR ada/35825
3610         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
3611
3612 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
3613
3614         * s-linux-hppa.ads: Fix syntax errors.
3615
3616 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3617
3618         * gnat_ugn.texi: Fix typos.
3619         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
3620         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
3621         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
3622         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
3623         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
3624         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
3625         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
3626         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
3627         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
3628         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
3629         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
3630         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
3631         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
3632         s-osinte-darwin.ads, s-osinte-freebsd.ads,
3633         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
3634         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3635         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
3636         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
3637         s-parame-hpux.ads, s-parame-vms-alpha.ads,
3638         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
3639         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
3640         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
3641         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
3642         s-rident.ads: Fix comment typos.
3643
3644 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
3645
3646         PR ada/28305
3647         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
3648         environment if generic instance is a top-level one.
3649
3650 2008-04-09  Doug Rupp  <rupp@adacore.com>
3651
3652         * decl.c (validate_size): Set minimum size for fat pointers same as
3653         access types. Code clean ups.
3654
3655         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
3656         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
3657
3658         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
3659
3660         * s-crtl.ads (malloc32) New function, alias for malloc
3661         (realloc32) New function, alias for realloc
3662
3663         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
3664
3665         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
3666         allocator size is 32 and default pointer size is 64.
3667         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
3668         lhs type if smaller, whatever the modes.
3669
3670         * gigi.h (malloc32_decl): New macro definition
3671
3672         * utils.c (init_gigi_decls): New malloc32_decl
3673         Various code clean ups.
3674
3675         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3676         Task_Address vice System.Address.
3677
3678         * s-taspri-vms.ads: Import System.Aux_DEC
3679         (Task_Address): New subtype of System.Aux_DEC.Short_Address
3680         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
3681
3682         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3683         Task_Address vice System.Address.
3684
3685         * s-inmaop-vms.adb: Import System.Task_Primitives
3686         (To_Address): Unchecked convert to Task_Address vice System.Address
3687
3688         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
3689         expires now.
3690         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
3691         (To_Address) Unchecked convert to Task_Address vice System.Address
3692
3693         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
3694
3695         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
3696
3697 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3698
3699         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
3700         (fdesc_type_node): Define.
3701         (null_fdesc_node): Likewise.
3702         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
3703         uses descriptors for vtables and the type comes from a dispatch table,
3704         return the descriptor type.
3705         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
3706         uses descriptors for vtables and the type comes from a dispatch table,
3707         build a descriptor in the static case and copy the existing one in the
3708         non-static case.
3709         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
3710         the type is a pointer-to-subprogram coming from a dispatch table,
3711         return the null descriptor.
3712         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
3713         vtables, the source type is the descriptor type and the target type
3714         is a pointer type, first build the pointer.
3715         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
3716         build the descriptor type and the null descriptor.
3717
3718 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3719
3720         * decl.c (prepend_attributes): Fix typo.
3721         * trans.c (Pragma_to_gnu): Likewise.
3722         * utils.c (gnat_genericize): Likewise.
3723
3724 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3725             Richard Kenner  <kenner@adacore.com>
3726
3727         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
3728         * decl.c (gnat_to_gnu_entity): Adjust for above change.
3729         <E_Record_Type>: Try to get a better form of the component for
3730         packing, even if it has an integral mode.
3731         <E_Record_Subtype>: Likewise.
3732         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
3733         exception suppressing the final conversion between record types.
3734
3735 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3736
3737         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
3738         alignment for space, promote the alignment of non-scalar variables with
3739         no size and alignment.
3740         * gigi.h (gnat_types_compatible_p): Declare.
3741         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
3742         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
3743         * utils.c (gnat_types_compatible_p) : New predicate.
3744         (convert): Use it throughout to test for cases where a mere view
3745         conversion is sufficient.
3746         * utils2.c (build_binary_op): Minor tweaks.
3747         (build_unary_op): Likewise.
3748
3749 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3750
3751         * decl.c (adjust_packed): Expand comment.
3752
3753 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3754
3755         * s-tasuti.ads: Use Task_Address instead of System.Address.
3756
3757         * makeutl.adb (Path_Or_File_Name): New function
3758
3759         * nlists.ads, itypes.ads: Update comments.
3760
3761         * s-crtl.ads (malloc32, realloc32): New functions.
3762
3763         * s-auxdec.ads (Short_Address_Size): New constant.
3764
3765         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
3766
3767         * s-ststop.ads, s-ststop.adb: New file.
3768
3769         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
3770         Minor reformatting.
3771
3772 2008-04-08  Pascal Obry  <obry@adacore.com>
3773
3774         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
3775         (Stop_Bits_Number): New type.
3776         (Parity_Check): Likewise.
3777         (Set): Add parameter to set the number of stop bits and
3778         the parity. Parameter timeout is now a duration instead
3779         of a plain integer.
3780
3781         * g-sercom-linux.adb:
3782         Implement the stop bits and parity support for GNU/Linux.
3783         Fix handling of timeout, it must be given in tenth of seconds.
3784         
3785         * g-sercom-mingw.adb:
3786         Implement the stop bits and parity support for Windows.
3787         Use new s-win32.ads unit instead of declaring Win32 services
3788         directly into this body.
3789         Update handling of timeout as now a duration.
3790
3791         * s-win32.ads, s-winext.ads: New files.
3792
3793 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3794             Arnaud Charlet  <charlet@adacore.com>
3795
3796         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
3797
3798         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
3799         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
3800
3801         * s-osinte-lynxos-3.ads,
3802         (Alternate_Stack): Remove when not needed. Simplify declaration
3803         otherwise.
3804         (Alternate_Stack_Size): New constant.
3805
3806         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
3807         'Unrestricted_Access.
3808
3809         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
3810         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
3811         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
3812         s-osinte-solaris.ads, s-osinte-vms.ads
3813         (SA_ONSTACK): New constant.
3814         (stack_t): New record type.
3815         (sigaltstack): New imported function.
3816         (Alternate_Stack): New imported variable.
3817         (Alternate_Stack_Size): New constant.
3818
3819         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
3820
3821         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
3822         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
3823         s-taspri-vms.ads (Task_Address): New subtype of System.Address
3824         (Task_Address_Size): New constant size of System.Address
3825         (Alternate_Stack_Size): New constant.
3826
3827         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
3828         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
3829         Establish the alternate stack if the platform makes use of n alternate
3830         signal stack for stack overflows.
3831         (Create_Task): Take into account the alternate stack in the stack size.
3832         (Initialize): Save the address of the alternate stack into the ATCB for
3833         the environment task.
3834         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
3835
3836         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
3837
3838         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
3839
3840         * s-intman-posix.adb: 
3841         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
3842         alternate signal stack for stack overflows.
3843
3844         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
3845         x86-64, adjust the saved value of the stack pointer if the signal was
3846         raised by a stack checking probe.
3847         (HP-UX section): Use global __gnat_alternate_stack as signal handler
3848         stack and only for SIGSEGV.
3849         (Linux section): Likewise on x86 and x86-64.
3850         [VxWorks section]
3851         (__gnat_map_signal): Now static.
3852         (__gnat_error_handler): Not static any more.
3853         (__gnat_adjust_context_for_raise): New function. Signal context
3854         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
3855         propagation circuitry.
3856         (__gnat_error_handler): Second argument of a sigaction handler is a
3857         pointer, not an int, and is unused.
3858         Adjust signal context before mapping to exception.
3859         Install signal handlers for LynxOS case.
3860
3861         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
3862         (Task_Id): Set size to Task_Address_Size
3863         (To_Task_id): Unchecked convert from Task_Address vice System.Address
3864         (To_Address): Unchecked convert to Task_Address vice System.Address
3865
3866         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
3867         address into the ATCB if the platform makes use of an alternate signal
3868         stack for stack overflows.
3869         (Free_Task): Add call to Finalize_Attributes_Link.
3870         Add argument Relative_Deadline to pass the value specified for
3871         the task. This is not yet used for any target.
3872
3873         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
3874         the value specified for the task.
3875
3876 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3877
3878         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
3879         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
3880         s-vxwext-rtp.adb): New files.
3881
3882         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
3883         Minor updates to accomodate changes above.
3884
3885 2008-04-08  Pascal Obry  <obry@adacore.com>
3886
3887         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
3888         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
3889         Use new s-win32.ads unit instead of declaration
3890         from s-osinte-mingw.ads.
3891         
3892         * s-osinte-mingw.ads:
3893         Move all non tasking based interface to s-win32.ads.
3894         
3895         * s-osprim-mingw.adb:
3896         Remove duplicated declarations and use s-win32.ads
3897         unit instead.
3898
3899 2008-04-08  Vincent Celier  <celier@adacore.com>
3900             Arnaud Charlet  <charlet@adacore.com>
3901
3902         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
3903         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
3904         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3905         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3906         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
3907
3908         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
3909         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
3910         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
3911         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
3912         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
3913         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
3914         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
3915         mlib-tgt-specific-mingw.adb: New names.
3916
3917         * Makefile.in: 
3918         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
3919         Get rid of gnatbl.
3920         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
3921         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
3922         Minor updates for VMS
3923
3924         * gnatbl.c: Removed.
3925
3926 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3927
3928         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
3929         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
3930         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
3931         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
3932         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
3933         ASCII.NUL throughout.
3934
3935 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3936             Matthew Heaney  <heaney@adacore.com>
3937
3938         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
3939         renaming.
3940
3941         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
3942         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
3943         to convention for non-RM specs.
3944         Add descriptive header, and documented each operation
3945         document each operation
3946
3947 2008-04-08  Robert Dewar  <dewar@adacore.com>
3948             Bob Duff  <duff@adacore.com>
3949             Gary Dismukes  <dismukes@adacore.com>
3950             Ed Schonberg  <schonberg@adacore.com>
3951
3952         * alloc.ads: Add entries for Obsolescent_Warnings table
3953
3954         * einfo.ads, einfo.adb: Minor reformatting.
3955         (Is_Discriminal): New subprogram.
3956         (Is_Prival): New subprogram.
3957         (Is_Protected_Component): New subprogram.
3958         (Is_Protected_Private): Removed.
3959         (Object_Ref, Set_Object_Ref): Removed.
3960         (Prival, Set_Prival): Change assertion.
3961         (Privals_Chain, Set_Privals_Chain): Removed.
3962         (Prival_Link, Set_Prival_Link): New subprogram.
3963         (Protected_Operation, Set_Protected_Operation): Removed.
3964         (Protection_Object, Set_Protection_Object): New subprogram.
3965         (Write_Field17_Name): Remove case for Object_Ref.
3966         (Write_Field20_Name): Add case for Prival_Link.
3967         (Write_Field22_Name): Remove case for Protected_Operation,
3968         Privals_Chain.
3969         Add case for Protection_Object.
3970         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
3971         so clients
3972         (Overlays_Constant): New flag
3973         (Is_Constant_Object): New predicate
3974         (Is_Standard_Character_Type): New predicate
3975         (Optimize_Alignment_Space): New flag
3976         (Optimize_Alignment_Time): New flag
3977         (Has_Postconditions): New flag
3978         (Obsolescent_Warrning): Field removed
3979         (Spec_PPC_List): New field
3980         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
3981         subprograms to get and set the relative deadline associated to a task.
3982
3983         * exp_attr.adb (May_Be_External_Call): Account for the case where the
3984         Access attribute is part of a named parameter association.
3985         (Expand_Access_To_Protected_Op): Test for the attribute occurring
3986         within an init proc and use that directly as the scope rather than
3987         traversing up to the protected operation's enclosing scope. Only apply
3988         assertion on Is_Open_Scopes in the case the scope traversal is done.
3989         For the init proc case use the address of the first formal (_init) as
3990         the protected object reference.
3991         Implement Invalid_Value attribute
3992         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
3993         contents of the dispatch table there is no need to duplicate the
3994         itypes associated with record types (i.e. the implicit full view
3995         of private types).
3996         Implement Enum_Val attribute
3997         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
3998         within _Postconditions procedure
3999         (Expand_N_Attribute_Reference, case Result): Implement new attribute
4000
4001         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4002         a return statement calls a function that is not available in
4003         configurable runtime.
4004         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4005         (Expand_Non_Function_Return): Generate call to _Postconditions proc
4006         (Expand_Simple_Function_Return): Ditto
4007
4008         * frontend.adb: Add call to Sem_Aux.Initialize
4009
4010         * sem_aux.ads, sem_aux.adb: New file.
4011
4012         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4013         Add new Pragma_Relative_Deadline.
4014         Add support for pragmas Check and Check_Policy
4015
4016         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4017         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4018         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4019         missing check because they are not allowed in CPP tagged types.
4020         Add Sure parameter to Note_Possible_Modification calls
4021         Add implementation of Invalid_Value attribute
4022         Implement new attribute Has_Tagged_Values
4023         Implement Enum_Val attribute
4024         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4025         generated attributes.
4026         (Analyze_Attribute, case Result): If prefix of the attribute is
4027         overloaded, it always resolves to the enclosing function.
4028         (Analyze_Attribute, case Result): Properly deal with analysis when
4029         Postconditions are not active.
4030         (Resolve_Attribute, case Result): Properly deal with appearence during
4031         preanalysis in spec.
4032         Add processing for attribute Result
4033
4034         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4035         for operators.
4036         (Analyze_Subprogram_Body): Install private_with_clauses when the body
4037         acts as a spec.
4038         (Check_Inline_Pragma): recognize an inline pragma that appears within
4039         the subprogram body to which it applies.
4040         (Analyze_Function_Return): Check that type of the expression of a return
4041         statement in a function with a class-wide result is not declared at a
4042         deeper level than the function.
4043         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4044         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4045         user- defined operators.
4046         (Install_Formals): Moved to spec to allow use from Sem_Prag for
4047         analysis of precondition/postcondition pragmas.
4048         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4049         Last_Formal, along with lots of comments on what this is about
4050         (Analyze_Subprogram_Body): Fix case where we move entities from the
4051         spec to the body when there are no body entities (now possible with
4052         precondition and postcondition pragmas).
4053         (Process_PPCs): New procedure
4054         (Analyze_Subprogram_Body): Add call to Process_PPCs
4055
4056         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4057         clause.
4058         (Pop_Scope): Restore Check_Policy_List on scope exit
4059         (Push_Scope): Save Check_Policy_List on scope entry
4060         Change name In_Default_Expression      => In_Spec_Expression
4061         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4062         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4063         (Analyze_Object_Renaming): Allow 'Reference as object
4064         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
4065         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
4066         of restriction identifier.
4067         Add Sure parameter to Note_Possible_Modication calls
4068
4069         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
4070         Don't check for primitive operations when calling Rep_Item_Too_Late.
4071         (Process_Import_Or_Interface): Do not place flag on formal
4072         subprograms.
4073         (Analyze_Pragma, case Export): If the entity is a deferred constant,
4074         propagate information to full view, which is the one elaborated by the
4075         back-end.
4076         (Make_Inline): the pragma is effective if it applies to an internally
4077         generated subprogram declaration for a body that carries the pragma.
4078         (Analyze_Pragma, case Optimize_Alignment): Set new flag
4079         Optimize_Alignment_Local.
4080         (Analyze_PPC_In_Decl_Part): New procedure
4081         (Get_Pragma_Arg): Moved to outer level
4082         (Check_Precondition_Postcondition): Change to allow new visibility
4083         rules for package spec
4084         (Analyze_Pragma, case Check_Policy): Change placement rules to be
4085         same as pragma Suppress/Unsuppress.
4086         Change name In_Default_Expression      => In_Spec_Expression
4087         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4088         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4089         (Check_Precondition_Postcondition): Do proper visibility preanalysis
4090         for the case of these pragmas appearing in the spec.
4091         (Check_Enabled): New function
4092         (Initialize): New procedure
4093         (Tree_Read): New procedure
4094         (Tree_Write): New procedure
4095         (Check_Precondition_Postcondition): New procedure
4096         Implement pragmas Check and Check_Policy
4097         Merge Assert processing with Check
4098
4099         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
4100         New warning flag -gnatw.e
4101
4102         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
4103         returning whether a task (or main procedure) has a pragma
4104         Relative_Deadline.
4105         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
4106         (or main procedure) has a pragma Relative_Deadline.
4107         Add Next_Pragma field to N_Pragma node
4108         (PPC_Enabled): New flag
4109         (Next_Pragma): Now used for Pre/Postcondition processing
4110
4111         * snames.h, snames.ads, snames.adb: New standard name
4112         Inherit_Source_Path
4113         Add entry for 'Invalid_Value attribute
4114         Add entry for new attribute Has_Tagged_Values
4115         Add entry for Enum_Val attribute
4116         Add new standard names Aggregate, Configuration and Library.
4117         Add _Postconditions
4118         Add _Result
4119         Add Pragma_Precondition
4120         Add Pragma_Postcondition
4121         Add Attribute_Result
4122         New standard name Archive_Builder_Append_Option
4123         (Preset_Names): Add _relative_deadline and relative_deadline definitions
4124         There was also a missing non_preemptive_within_priorities.
4125         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
4126         Relative_Deadline.
4127         Add support for pragmas Check and Check_Policy
4128
4129         * tree_gen.adb: Call Sem_Aux.Tree_Write
4130
4131         * tree_in.adb: Call Sem_Aux.Tree_Read
4132
4133         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
4134         sequence
4135
4136         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
4137         sequence
4138
4139         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
4140         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
4141         Relative_Deadline.
4142         (Expand_Pragma_Check): New procedure
4143
4144         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
4145         buffer.
4146
4147         * sinfo.adb (PPC_Enabled): New flag
4148
4149 2008-04-08  Robert Dewar  <dewar@adacore.com>
4150             Gary Dismukes  <dismukes@adacore.com>
4151             Javier Miranda  <miranda@adacore.com>
4152             Ed Schonberg  <schonberg@adacore.com>
4153
4154         * fe.h: Remove global Optimize_Alignment flag, no longer used
4155
4156         * layout.adb: Test Optimize_Alignment flags rather than global switch
4157
4158         * lib.ads, lib.adb: New OA_Setting field in library record
4159
4160         * lib-load.adb: New OA_Setting field in library record
4161
4162         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
4163         units mentioned in limited_with_ clauses in the ali file, with an
4164         'Y' marker.
4165         New Ox fields in U line
4166
4167         * opt.adb: New flag Optimize_Alignment_Local
4168         (Check_Policy_List[_Config]): New flags
4169
4170         * opt.ads (Invalid_Value_Used): New flag
4171         New switch Optimize_Alignment_Local
4172         (Warn_On_Parameter_Order): New flag
4173         (Check_Policy_List[_Config]): New flags
4174
4175         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
4176         limited_with clauses.
4177         New data structures for Optimize_Alignment
4178
4179         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
4180         New procedure
4181         (Check_Consistent_Optimize_Alignment): Rework for new structure
4182         (Check_Consistent_Restrictions): Fix incorrect error message
4183
4184         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
4185         created class-wide type (to the Parent field of the specific type).
4186         (Install_Siblings): Handle properly private_with_clauses on subprogram
4187         bodies and on generic units.
4188         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
4189         illegal limited_with_clause that names a non-existent package.
4190         (Check_Body_Required): Determine whether a unit named a limited_with
4191         clause needs a body.
4192         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
4193         Capture Optimize_Alignment settings to set new OA_Setting field in
4194         library record.
4195         (Build_Limited_Views): Include task and protected type declarations.
4196
4197         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
4198         case of a possible constant redeclaration where the current object is
4199         an entry index constant.
4200         (Analyze_Object_Declaration): Generate an error in case of CPP
4201         class-wide object initialization.
4202         (Analyze_Object_Declaration): Add extra information on warnings for
4203         declaration of unconstrained objects.
4204         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
4205         conflicts with the setting of Stored_Constraint in the case where the
4206         access type entity has already been created as an E_Incomplete_Type due
4207         to a limited with clause.
4208         Use new Is_Standard_Character_Type predicate
4209         (Analyze_Object_Declaration): Apply access_constant check only after
4210         expression has been resolved, given that it may be overloaded with
4211         several access types.
4212         (Constant_Redeclaration): Additional legality checks for deferred
4213         constant declarations tha involve anonymous access types and/or null
4214         exclusion indicators.
4215         (Analyze_Type_Declaration): Set Optimize_Alignment flags
4216         (Analyze_Subtype_Declaration): Ditto
4217         (Analyze_Object_Declaration): Ditto
4218         (Analyze_Object_Declaration): Don't count tasks in generics
4219         Change name In_Default_Expression      => In_Spec_Expression
4220         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4221         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4222         (Process_Discriminants): Additional check for illegal use of default
4223         expressions in access discriminant specifications in a type that is not
4224         explicitly limited.
4225         (Check_Abstract_Overriding): If an inherited function dispaches on an
4226         access result, it must be overridden, even if the type is a null
4227         extension.
4228         (Derive_Subprogram): The formals of the derived subprogram have the
4229         names and defaults of the parent subprogram, even if the type is
4230         obtained from the actual subprogram.
4231         (Derive_Subprogram): In the presence of interfaces, a formal of an
4232         inherited operation has the derived type not only if it descends from
4233         the type of the formal of the parent operation, but also if it
4234         implements it. This is relevant for the renamings created for the
4235         primitive operations of the actual for a formal derived type.
4236         (Is_Progenitor): New predicate, to determine whether the type of a
4237         formal in the parent operation must be replaced by the derived type.
4238
4239         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
4240         predicate recursive to handle components that have a user-defined
4241         Initialize procedure. Handle controlled derived types whose ancestor
4242         has a user-defined Initialize procedured.
4243         (Note_Possible_Modification): Add Sure parameter, generate warning if
4244         sure modification of constant
4245         Use new Is_Standard_Character_Type predicate
4246         (Find_Parameter_Type): when determining whether a protected operation
4247         implements an interface operation, retrieve the type of the formal from
4248         the entity when the formal is an access parameter or an
4249         anonymous-access-to-subprogram.
4250         Move Copy_Parameter_List to sem_util, for use when building stubbed
4251         subprogram bodies.
4252         (Has_Access_Values): Tagged types now return False
4253         (Within_HSS_Or_If): New procedure
4254         (Set_Optimize_Alignment_Flags): New procedure
4255         Change name In_Default_Expression      => In_Spec_Expression
4256         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4257         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
4258
4259 2008-04-08  Tristan Gingold  <gingold@adacore.com>
4260
4261         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
4262
4263 2008-04-08  Tristan Gingold  <gingold@adacore.com>
4264
4265 PR ada/10768
4266
4267         * cuintp.c: Fix 16 bits issue for AVR.
4268         On AVR, integer is 16 bits, so it can't be used to do math with
4269         Base (=32768).
4270         So use long_integer instead.
4271
4272 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4273
4274         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
4275         System.OS_Primitives.
4276         Change type of various constants, parameters and local variables from
4277         Time to representation type OS_Time.
4278         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
4279         Remove the declaration of constant Mili_F from several routines. New
4280         body for internal package Conversions_Operations.
4281         (Time_Of): Add default parameters for several formals.
4282
4283         * a-caldel.adb: Minor reformatting
4284
4285         * a-calend.ads, a-calend.adb: New body for internal package
4286         Conversions_Operations.
4287         (Time_Of): Add default parameters for several formals.
4288
4289         * Makefile.rtl: Add a-ststop
4290         Add Ada.Calendar.Conversions to the list of runtime files.
4291         Add g-timsta
4292
4293         * a-calcon.adb, a-calcon.ads: New files.
4294
4295 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
4296             Tristan Gingold  <gingold@adacore.com>
4297
4298         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
4299         (Install_Restricted_Handlers): New procedure
4300         which is a simplified version of Install_Handlers that does not store
4301         previously installed.
4302
4303         * s-interr-vxworks.adb: Fix ACATS cxc3001
4304         On VxWorks interrupts can't be detached.
4305         (Install_Restricted_Handlers): New procedure.
4306
4307         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
4308         procedure.
4309
4310 2008-04-08  Olivier Hainque  <hainque@adacore.com>
4311
4312         * s-intman-vxworks.ads, s-intman-vxworks.adb
4313         (Map_And_Raise_Exception): Remove. Was an import of only part of the
4314         required services already implemented elsewhere.
4315         (Notify_Exception): Delete body, import __gnat_error_handler instead.
4316         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
4317         argument passed to the handler, which we need for ZCX propagation
4318         purposes.
4319
4320 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4321
4322         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
4323
4324         * g-timsta.adb, g-timsta.ads: New files.
4325
4326 2008-04-08  Robert Dewar  <dewar@adacore.com>
4327
4328         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
4329         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
4330         (Raise_Exception_Always): Fix documentation accordingly
4331
4332 2008-04-08  Robert Dewar  <dewar@adacore.com>
4333
4334         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
4335         Stream_Convert)
4336
4337         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
4338         FOnly
4339
4340 2008-04-08  Javier Miranda  <miranda@adacore.com>
4341             Robert Dewar  <dewar@adacore.com>
4342             Ed Schonberg  <schonberg@adacore.com>
4343
4344         * a-tags.adb (Register_Interface_Offset): New subprogram.
4345         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
4346         (To_Predef_Prims_Table_Ptr): Removed.
4347         (Acc_Size): Removed.
4348         (To_Acc_Size): Removed.
4349         (Parent_Size): Modified to the call the subprogram returning the size of
4350         the parent by means of the new TSD component Size_Func.
4351
4352         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
4353         (DT_Offset_To_Top_Offset): New constant value that is used to generate
4354         code referencing the Offset_To_Top component of the dispatch table's
4355         prologue.
4356         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
4357         use of 'address to initialize dispatch table slots.
4358         (Size_Func): New component of the TSD. Used by the run-time to call the
4359         size primitive of the tagged type.
4360
4361         * checks.adb (Apply_Access_Check): Avoid check when accessing the
4362         Offset_To_Top component of a dispatch table.
4363         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
4364         deferred constant declaration. do not add a null expression, to prevent
4365         spurious errors when full declaration is analyzed.
4366         (Apply_Discriminant_Check): If both discriminant constraints share a
4367         node which is not static but has no side effects, do not generate a
4368         check for that discriminant.
4369         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
4370         subexpr, since the prefix of an attribute is a name.
4371
4372         * checks.ads: Fix nit in comment.
4373
4374         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
4375         and body of predefined primitives in case of CPP tagged type
4376         derivations.
4377         (Freeze_Type): Deal properly with no storage pool case
4378         (Make_Predefined_Primitive_Specs): Generate specification of abstract
4379         primitive Deep_Adjust if a nonlimited interface is derived from a
4380         limited interface.
4381         (Build_Dcheck_Functions): Create discriminant-checking functions only
4382         for variants that have some component(s).
4383         (Build_Slice_Assignment): In expanded code for slice assignment, handle
4384         properly the case where the slice bounds extend to the last value of the
4385         underlying representation.
4386         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
4387         (Is_Variable_Size_Record): An array component has a static size if
4388         index bounds are enumeration literals.
4389
4390         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
4391         an external tag has been specified for the type.
4392         (Building_Static_DT): Add missing support for private types.
4393         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
4394         to the entity associated with the parent of Typ. This is done to
4395         avoid wrong access when the parent is a private type.
4396         (Expand_Interface_Conversion): Improve error message when the
4397         configurable runtime has no support for dynamic interface conversion.
4398         (Expand_Interface_Thunk): Add missing support to interface types in
4399         configurable runtime.
4400         (Expand_Dispatching_Call): remove obsolete code.
4401         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
4402         ensure that all subtypes and aggregates associated with dispatch
4403         tables have the attribute Is_Dispatch_Table_Entity set to true.
4404         (Register_Primitive): Rename one variable to improve code reading.
4405         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
4406         of the pointer to the 'size primitive in the TSD.
4407
4408         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
4409         (RE_Offset_To_Top_Ptr): New entity.
4410         (RE_Register_Interface_Offset): New entity.
4411         (RE_Set_Dynamic_Offset_To_Top): New entity.
4412         (RE_Set_Offset_To_Top): Removed entity.
4413         (RE_Prim_Ptr): New entity
4414         (RE_Size_Func): New entity
4415         (RE_Size_Ptr): New entity
4416         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
4417         (Ada_Dispatching_Child): Define this new subrange.
4418         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
4419          RE_Time_Span, and RE_Time_Span_Zero).
4420         (RE_Unit_Table): Add new required run-time calls
4421
4422         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
4423         children.
4424
4425         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
4426         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
4427          initializes the Offset_To_Top component of a dispatch table.
4428         (Build_Predef_Prims): Removed.
4429         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
4430          its actual code.
4431         (Build_Set_Size_Function): New subprogram.
4432
4433         * exp_ch13.adb: Do not generate storage variable for storage_size zero
4434         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
4435
4436 2008-04-08  Robert Dewar  <dewar@adacore.com>
4437
4438         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
4439         computing Fore when Exp > 0
4440
4441 2008-04-08  Robert Dewar  <dewar@adacore.com>
4442
4443         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
4444
4445         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
4446         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
4447
4448         * fmap.adb: Remove Big_String declarations (now in Types)
4449         (No_Mapping_File): New Boolean global variable
4450         (Initialize): When mapping file cannot be read, set No_Mapping_File to
4451         False.
4452         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
4453         tables were empty before adding entries, open the mapping file
4454         with Truncate = True, instead of delete/re-create.
4455
4456         * fname-sf.adb: Remove Big_String declarations (now in Types)
4457
4458         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
4459         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
4460         big pointer types
4461
4462         * table.ads: Add for Table_Ptr'Storage_Size use 0
4463
4464         * types.ads: Add Big_String declarations
4465         Add Size_Clause of zero for big pointer types
4466
4467 2008-04-08  Vincent Celier  <celier@adacore.com>
4468
4469         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
4470         (Usage): Add line for switch --subdirs=
4471         Add new switch -eL, to follow symbolic links when processing project
4472         files.
4473
4474         * gnatcmd.adb: Process switches -eL and --subdirs=
4475         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
4476         Program_Name to get proper tool names when AAMP_On_Target is set.
4477         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
4478         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
4479         Osint.Program_Name).
4480
4481         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
4482         (Usage): Add lines for switches -eL and --subdirs=
4483
4484         * makeusg.adb: Add line for switch --subdirs=
4485
4486         * prj.ads: 
4487         (Source_Data): New Boolean component Compiled, defaulted to True
4488         (Empty_File_Name: New global variable in private part, initialized in
4489         procedure Initialize.
4490         (Subdirs_Option): New constant string
4491         (Subdirs): New String_Ptr global variable
4492         (Language_Config): New component Include_Compatible_Languages
4493         (Project_Qualifier): New type for project qualifiers
4494         (Project_Data): New component Qualifier
4495         (Project_Configuration): New component Archive_Builder_Append_Option
4496
4497         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
4498         another imported project indicate the name of this imported project.
4499         (Check_File): When a unit is in two project files, indicate the project
4500         names and the paths of the source files for each project.
4501         (Add_Source): Set Compiled to False if compiler driver is empty. Only
4502         set object, dependency and switches file names if Compiled is True.
4503         (Process_Compiler): Allow the empty string for value of attribute Driver
4504         (Get_Directories): When Subdirs is not null and Object_Dir is not
4505          specified, locate and create if necessary the actual object dir.
4506         (Locate_Directory): When Subdirs is not empty and Create is not the
4507         empty string, locate and create if necessary the actual directory
4508         as a subdirectory of directory Name.
4509         (Check_Library_Attributes.Check_Library): Allow a project where the only
4510         "sources" are header files of file based languages to be imported by
4511         library projects, in multi-language mode (gprbuild).
4512         (Check_Library_Attributes.Check_Library): In multi-language mode
4513         (gprbuild), allow a library project to import a project with no
4514         sources, even when this is not declared explicitly.
4515         (Check_If_Externally_Built): A virtual project extending an externally
4516         built project is also externally built.
4517         (Check_Library_Attributes): For a virtual project extending a library
4518         project, inherit the library directory.
4519         (Process_Project_Level_Array_Attributes): Process new attribute
4520         Inherit_Source_Path.
4521         For projects with specified qualifiers "standard", "library" or
4522         "abstract", check that the project conforms to the qualifier.
4523         (Process_Project_Level_Simple_Attributes): Process new attribute
4524          Archive_Builder_Append_Option.
4525
4526         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
4527         (Normalize_Compiler_Switches): Only keep compiler switches that are
4528         passed to gnat1 by the gcc driver and that are stored in the ALI file
4529         by gnat1.
4530         Do not take into account switc -save-temps
4531
4532         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
4533         gprmake is called with -eL.
4534         (Scan_Arg): Recognize switch -eL
4535         (Usage): Add line for switch -eL
4536
4537         * prj.adb (Initialize): Initialize Empty_File_Name
4538         (Project_Empty): New component Qualifier
4539
4540         * prj-attr.ads, prj-attr.adb: New project level attribute
4541         Inherit_Source_Path.
4542         New project level attribute Archive_Builder_Append_Option
4543
4544         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
4545
4546         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
4547         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
4548         upward compatibility.
4549
4550         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
4551         each Trying ..." on different lines.
4552         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
4553         is "configuration" when not in configuration. Fail when in configuration
4554         when a specified qualifier is other than "configuration".
4555
4556         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
4557         full associative array together.
4558         (Recursive_Process): Put the project qualifier in the project data
4559         
4560         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
4561         (Set_Project_Qualifier_Of): New procedure
4562
4563 2008-04-08  Robert Dewar  <dewar@adacore.com>
4564
4565         * errout.ads: Update comments for new handling of info: messages
4566
4567         * erroutc.adb (Matches): New procedure
4568         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
4569         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
4570          info messages as well as style messages.
4571
4572         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
4573
4574         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
4575         subprograms.
4576         (Check_A_Call): Special "info: " warnings now have ? in the text
4577         (Elab_Warning): Use info message in static case
4578
4579 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4580
4581         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
4582         whether an array aggregate with static bounds and scalar components
4583         should be expanded into a static constant.
4584
4585 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
4586             Ed Schonberg  <schonberg@adacore.com>
4587             Robert Dewar  <dewar@adacore.com>
4588
4589         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
4590         Has_Stream_Attribute_ Definition when checking for available stream
4591         attributes on parameters of a limited type in Ada 2005. Necessary for
4592         proper recognition of visible stream attribute clauses.
4593         (Has_Stream_Attribute_Definition): If the type is derived from a
4594         private type, then use the derived type's underlying type for checking
4595         whether it has stream attributes.
4596         (Validate_Object_Declaration): The check for a user-defined Initialize
4597         procedure applies also to types with controlled components or a
4598         controlled ancestor.
4599         Reject an object declaration in a preelaborated unit if the type is a
4600         controlled type with an overriding Initialize procedure.
4601         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
4602         checking when the parent of a dereference is a selected component and
4603         the name has not been analyzed.
4604
4605         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
4606         prefixes that are invalid explicit dereferences of remote
4607         access-to-class-wide values, first checking whether the selected
4608         component is a prefixed form of call to a tagged operation.
4609         (Analyze_Call): Remove code that issues an error for limited function
4610         calls in illegal contexts, as we now support all of the contexts that
4611         were forbidden here.
4612         Allow a function call that returns a task.and appears as the
4613         prefix of a selected component.
4614         (Analyze_Reference): Give error message if we try to make a 'Reference
4615         for an object that is atomic/aliased without its type having the
4616         corresponding attribute.
4617         (Analyze_Call): Remove condition checking for attributes to allow
4618         calls to functions with inherently limited results as prefixes of
4619         attributes. Remove related comment about Class attributes.
4620         (Analyze_Selected_Component): If the prefix is a remote type, check
4621         whether this is a prefixed call before reporting an error.
4622         (Complete_Object_Operation): If the controlling formal is an access to
4623         variable reject an actual that is a constant or an access to one.
4624         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4625         primitive operations from base type.
4626
4627         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
4628         build-in-place
4629         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4630         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
4631         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4632         (Expand_N_Slice): Test for prefix that is a build-in-place function call
4633         and call Make_Build_In_Place_Call_In_Anonymous_Context.
4634         (Analyze_Call): Remove code that issues an error for limited function
4635         calls in illegal contexts, as we now support all of the contexts that
4636         were forbidden here.
4637         New calling sequence for Get_Simple_Init_Val
4638         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
4639         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
4640
4641 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4642             Ed Schonberg  <schonberg@adacore.com>
4643             Robert Dewar  <dewar@adacore.com>
4644
4645         * exp_ch2.adb: Minor reformatting.
4646         (Expand_Entry_Index_Parameter): Set the type of the identifier.
4647         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
4648         (Expand_Protected_Component): New routine.
4649         (Expand_Protected_Private): Removed.
4650         Add Sure parameter to Note_Possible_Modification calls
4651
4652         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
4653         generated subprogram declaration must inherit the overriding indicator
4654         from the instantiation node.
4655         (Validate_Access_Type_Instance): If the designated type of the actual is
4656         a limited view, use the available view in all cases, not only if the
4657         type is an incomplete type.
4658         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
4659         and the actual subtype does not exclude null.
4660         (Process_Default): Handle properly abstract formal subprograms.
4661         (Check_Formal_Package_Instance): Handle properly defaulted formal
4662         subprograms in a partially parameterized formal package.
4663         Add Sure parameter to Note_Possible_Modification calls
4664         (Validate_Derived_Type_Instance): if the formal is non-limited, the
4665         actual cannot be limited.
4666         (Collect_Previous_Instances): Generate instance bodies for subprograms
4667         as well.
4668
4669         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
4670         try to set RM_Size.
4671         Add Sure parameter to Note_Possible_Modification calls
4672         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
4673         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
4674         constant overlaid by variable and issue warning.
4675         Use new Is_Standard_Character_Type predicate
4676         (Analyze_Record_Representation_Clause): Check that the specified
4677         Last_Bit is not less than First_Bit - 1.
4678         (Analyze_Attribute_Definition_Clause, case Address): Check for
4679         self-referential address clause
4680
4681         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
4682         detection mechanism when the lhs is a prival.
4683         (Analyze_Assignment): Call Check_Unprotected_Access to detect
4684         assignment of a pointer to protected data, to an object declared
4685         outside of the protected object.
4686         (Analyze_Loop_Statement): Check for unreachable code after loop
4687         Add Sure parameter to Note_Possible_Modication calls
4688         Protect analysis from previous syntax error such as a scope mismatch
4689         or a missing begin.
4690         (Analyze_Assignment_Statement): The assignment is illegal if the
4691         left-hand is an interface.
4692
4693         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
4694         violation of restriction No_Implicit_Conditionals
4695         Add Sure parameter to Note_Possible_Modication calls
4696         Use new Is_Standard_Character_Type predicate
4697         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
4698         call as operator. Fixes problems (e.g. validity checking) which
4699         come from the result looking as though it does not come from source).
4700         (Resolve_Call): Check case of name in named parameter if style checks
4701         are enabled.
4702         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
4703         from the checking that such calls should not occur from an entry body.
4704         (Resolve_Call): If the return type of an Inline_Always function
4705         requires the secondary stack, create a transient scope for the call
4706         if the body of the function is not available for inlining.
4707         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
4708         that are actuals for in-out formals.
4709         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4710         primitive operations from base type.
4711         (Analyze_Selected_Component): If the context is a call to a protected
4712         operation the parent may be an indexed component prior to expansion.
4713         (Resolve_Actuals): If an actual is of a protected subtype, use its
4714         base type to determine whether a conversion to the corresponding record
4715         is needed.
4716         (Resolve_Short_Circuit): Handle pragma Check
4717
4718         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
4719         Use new Is_Standard_Character_Type predicate
4720         (Eval_Relational_Op): Catch more cases of string comparison
4721
4722 2008-04-08  Robert Dewar  <dewar@adacore.com>
4723             Gary Dismukes  <dismukes@adacore.com>
4724
4725         * s-rident.ads: Add No_Default_Initialization restriction
4726
4727         * exp_tss.adb: 
4728         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
4729         (Set_TSS): Handle No_Default_Initialization case
4730
4731         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
4732         No_Default_Initialization
4733         (Expand_N_Subprogram_Body): Remove redundant initialization of out
4734         parameters when Normalize_Scalars is active.
4735         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
4736         Fix casing error in formal parameter name in call
4737         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
4738         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4739         dispatching call on VM targets.
4740
4741 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
4742             Thomas Quinot  <quinot@adacore.com>
4743
4744         * exp_ch7.adb (Find_Final_List): Change the test for generating a
4745         selected component from an access type's Associated_Final_Chain to
4746         check for the presence of that field, rather than assuming it exists
4747         for all named access types.
4748         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
4749         procedure to call at the end of the generated cleanup procedure.
4750         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
4751         and an At_End_Proc already exists in the handled sequence of statements
4752         for which cleanup actions are being expanded, the original cleanup
4753         action must be preserved.
4754
4755 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4756             Ed Schonberg  <schonberg@adacore.com>
4757             Robert Dewar  <dewar@adacore.com>
4758             Gary Dismukes  <dismukes@adacore.com>
4759
4760         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
4761         Build_Unprotected_Subprogram_Body): Generate debug info for
4762         declarations related to the handling of private data in task and
4763         protected types.
4764         (Debug_Private_Data_Declarations): New subprogram.
4765         (Install_Private_Data_Declarations): Remove all debug info flagging.
4766         This is now done by Debug_Private_Data_Declarations at the correct
4767         stage of expansion.
4768         (Build_Simple_Entry_Call): If the task name is a function call, expand
4769         the prefix into an object declaration, and make the surrounding block a
4770         task master.
4771         (Build_Master_Entity): An internal block is a master if it wraps a call.
4772         Code reformatting, update comments. Code clean up.
4773         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
4774         (Replicate_Entry_Formals): If the formal is an access parameter or
4775         anonymous access to subprogram, copy the original tree to create new
4776         entities for the formals of the subprogram.
4777         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
4778         for tasks to store the value passed using pragma Relative_Deadline.
4779         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
4780         run-time call to create a task.
4781         (Build_Wrapper_Spec): If the controlling argument of the interface
4782         operation is an access parameter with a non-null indicator, use the
4783         non-null indicator on the wrapper.
4784
4785         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
4786         present, which it may not be in the case where the type entity is an
4787         incomplete view brought in by a limited with.
4788         (Analyze_Task_Type): Only retrieve the full view when present, which it
4789         may not be in the case where the type entity is an incomplete view brought
4790         in by a limited with.
4791         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
4792         private components of a protected type, to prevent the generation of freeze
4793         nodes for which there is no proper scope of elaboration.
4794
4795         * exp_util.ads, exp_util.adb
4796         (Remove_Side_Effects): If the expression is a function call that returns a
4797         task, expand into a declaration to invoke the build_in_place machinery.
4798         (Find_Protection_Object): New routine.
4799         (Remove_Side_Effects): Also make a copy of the value
4800         for attributes whose result is of an elementary type.
4801         (Silly_Boolean_Array_Not_Test): New procedure
4802         (Silly_Boolean_Array_Xor_Test): New procedure
4803         (Is_Volatile_Reference): New function
4804         (Remove_Side_Effects): Use Is_Volatile_Reference
4805         (Possible_Bit_Aligned_Component): Handle slice case properly
4806
4807         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
4808         case test to Exp_Util
4809         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
4810
4811 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4812
4813         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
4814         in call
4815         (Add_RACW_Features): When processing an RACW in another unit than the
4816         main unit, set Body_Decls to No_List to indicate that the bodies of
4817         the type's TSS must not be generated.
4818         (GARLIC_Support.Add_RACW_Read_Attribute,
4819         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
4820         Body_Decls is No_List.
4821         (PolyORB_Support.Add_RACW_Read_Attribute,
4822         PolyORB_Support.Add_RACW_Write_Attribute,
4823         PolyORB_Support.Add_RACW_From_Any,
4824         PolyORB_Support.Add_RACW_To_Any,
4825         PolyORB_Support.Add_RACW_TypeCode): Same.
4826         (Transmit_As_Unconstrained): New function.
4827         (Build_Ordered_Parameters_List): Use the above to order parameters.
4828         (GARLIC_Support.Build_General_Calling_Stubs):
4829         Use the above to determine which parameters to unmarshall using 'Input
4830         at the point where their temporary is declared (as opposed to later on
4831         with a 'Read call).
4832         (PolyORB_Support.Build_General_Calling_Stubs):
4833         Use the above to determine which parameters to unmarshall using From_Any
4834         at the point where their temporary is declared (as opposed to later on
4835         with an assignment).
4836
4837 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4838
4839         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
4840         an Input function for an access type, do not perform default
4841         initialization on the local variable that receives the value, to
4842         prevent spurious warnings when the type is null-excluding.
4843
4844 2008-04-08  Robert Dewar  <dewar@adacore.com>
4845             Ed Schonberg  <schonberg@adacore.com>
4846
4847         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
4848         units.
4849         (Size_Known): Generic formal scalar types have known at compile
4850         time size, so remove check.
4851         Fix casing error in formal parameter name in call
4852         (Freeze_Subprogram): If the subprogram is a user-defined operator,
4853         recheck its overriding indication.
4854
4855 2008-04-08  Vincent Celier  <celier@adacore.com>
4856
4857         * gnat1drv.adb: Send all messages indicating an error to standard error
4858
4859 2008-04-08  Robert Dewar  <dewar@adacore.com>
4860
4861         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
4862         (List_Applicable_Restrictions): Do not list existing restrictions
4863
4864 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4865
4866         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
4867         add a pointer to generic sockets literature
4868         do not mention that the given example is "typical" usage.
4869         Remove obsolete comment about multicast not being supported on Windows.
4870         (Connect_Socket): Make Server mode IN rather than IN OUT
4871         since this formal is never modified.
4872
4873 2008-04-08  Robert Dewar  <dewar@adacore.com>
4874
4875         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
4876         the declaration for some different entity.
4877         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
4878         list is precent (following the parent subtype indication), display
4879         appropriate "and" keyword.
4880
4881         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
4882         Remove unnecessary calls to Init_Size_Align and Init_Esize.
4883         Add notes on use of Parent field of an Itype
4884
4885 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4886             Robert Dewar  <dewar@adacore.com>
4887             Gary Dismukes  <dismukes@adacore.com>
4888
4889         * lib-xref.adb (Is_On_LHS): Remove dead code
4890         (Output_Overriden_Op): If the overridden operation is itself inherited,
4891         list the ancestor operation, which is the one whose body or absstract
4892         specification is actually being overridden. For source navigation
4893         purposes.
4894
4895         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
4896         operation is primitive for the type.
4897         (Declare_Inherited_Private_Subprograms): If the new operation overrides
4898         an inherited private subprogram, set properly the Overridden_Operation
4899         attribute, for better cross-reference information.
4900         (Analyze_Package_Specification): Do late analysis of spec PPCs
4901         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
4902         properly the full view and underlying full views of a private type in a
4903         child unit, whose full view is derived from a private type in a parent
4904         unit, and whose own full view becomes visible in the child body.
4905
4906         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
4907         primitive operation after the type has been frozen, add an explicit
4908         reference to the type and the operation, because other primitive
4909         references have been emitted already.
4910         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4911         dispatching call on VM targets.
4912
4913 2008-04-08  Vincent Celier  <celier@adacore.com>
4914             Thomas Quinot  <quinot@adacore.com>
4915
4916         * make.adb: (Gnatmake_Called): Remove, no longer necessary
4917         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
4918         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
4919         (Insert_Project_Sources): Take into account index in multi-unit source
4920         files.
4921         After building a library project, delete all temporary files.
4922         (Initialize): Reset current output after parsing project file.
4923         (Collect_Arguments_And_Compile): Never insert in the queue the sources
4924         of library projects that are externally built.
4925         Put file name in error and inform messages if -df is used
4926         (Display): If invoked with -d7, do not display path names, but only
4927         file names.
4928
4929         * makeutl.ads (Path_Or_File_Name): New function
4930         (Path_Or_File_Name): New function
4931
4932 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4933
4934         * Make-lang.in: Disable warnings during first stage of bootstrap
4935         Get rid of gnatbl.
4936         Update dependencies.
4937
4938 2008-04-08  Vincent Celier  <celier@adacore.com>
4939
4940         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
4941         case to decide if ALI object file is included in library.
4942         (Build_Library): Never attempt to build a library if the project is
4943         externally built.
4944
4945 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4946
4947         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
4948         (No_List) is defined to return Empty.
4949
4950 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
4951
4952         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
4953         documentation.
4954         Update comments.
4955         (Read_Default_Search_Dirs): Do not consider spaces as path separators
4956         because spaces may be part of legal paths.
4957
4958 2008-04-08  Robert Dewar  <dewar@adacore.com>
4959
4960         * par-ch11.adb (P_Exception_Handler): Check indentation level for
4961         handler
4962
4963 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4964
4965         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
4966         in a type declaration, if this is not an interface declaration or
4967         private type extension.
4968
4969 2008-04-08  Vincent Celier  <celier@adacore.com>
4970
4971         * prj-util.adb (Executable_Of): New String parameter Language. When
4972         Ada_Main is False and Language is not empty, attempt to remove the body
4973         suffix or the spec suffix of the language to get the base of the
4974         executable file name.
4975         (Put): New Boolean parameter Lower_Case, defauilted to False. When
4976         Lower_Case is True, put the value in lower case in the name list.
4977         (Executable_Of): If there is no executable suffix in the configuration,
4978         then do not modify Executable_Extension_On_Target.
4979
4980         * prj-util.ads (Executable_Of): New String parameter Language,
4981         defaulted to the empty string.
4982         (Put): New Boolean parameter Lower_Case, defauilted to False
4983
4984 2008-04-08  Robert Dewar  <dewar@adacore.com>
4985
4986         * scng.adb (Scan_Identifier): Handle case of identifier starting with
4987         wide character using UTF-8 encoding.
4988
4989 2008-04-08  Javier Miranda  <miranda@adacore.com>
4990
4991         * sem.adb (Analyze): Consider case in which we analyze an empty node
4992         that was generated by a call to a runtime function that is not
4993         available under the configurable runtime.
4994
4995         * sem.ads (Inside_Freezing_Actions): New flag.
4996         (Save_Check_Policy_List): New field in scope stack entry
4997
4998 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4999             Robert Dewar  <dewar@adacore.com>
5000
5001         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5002         the ancestor part of an extension aggregate for a limited type.
5003         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5004         enumeration index bounds.
5005         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5006         when array is too short.
5007         (Check_Expr_OK_In_Limited_Aggregate): Move function
5008         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5009         change name).
5010         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5011         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5012         component associations.
5013         (Check_Non_Limited_Type): Moved to outer level and renamed.
5014         (Resolve_Record_Aggregate): In an extension aggregate, an association
5015         with a box initialization can only designate a component of the
5016         extension, not a component inherited from the given ancestor
5017
5018         * sem_case.adb: Use new Is_Standard_Character_Type predicate
5019
5020 2008-04-08  Robert Dewar  <dewar@adacore.com>
5021
5022         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5023         negative scale
5024         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5025         Properly handle case where Aft > Scale and input number is less than
5026         one.
5027
5028 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5029
5030         * s-stoele.ads, s-soflin.ads: Move the location of
5031         Dummy_Communication_Block from System.Storage_Elements to
5032         System.Soft_Links.
5033
5034         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5035         emulate Communication_Block in certain scenarios.
5036
5037 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
5038
5039         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5040         subprogram.
5041         Add new subtype S_WWC, unchecked conversion routines From_WWC and
5042         To_WWC.
5043         (I_WWC, O_WWC): New routines for input and output of
5044         Wide_Wide_Character.
5045
5046 2008-04-08  Robert Dewar  <dewar@adacore.com>
5047
5048         * stringt.adb (Write_String_Table_Entry): Handle wide characters
5049         properly
5050
5051 2008-04-08  Robert Dewar  <dewar@adacore.com>
5052
5053         * styleg.adb (Check_Comment): Allow special char after -- in
5054         non-end-of-line case
5055
5056 2008-04-08  Robert Dewar  <dewar@adacore.com>
5057
5058         * stylesw.adb: Implement -gnaty + - y options
5059         (Set_GNAT_Style_Check_Options): Includ I in style check string
5060
5061         * stylesw.ads: Add comments for new style switch options
5062
5063 2008-04-08  Sergey Rybin  <rybin@adacore.com>
5064
5065         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
5066         to the set of the GNAT components needed by ASIS.
5067
5068 2008-04-08  Bob Duff  <duff@adacore.com>
5069
5070         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
5071
5072 2008-04-08  Tristan Gingold  <gingold@adacore.com>
5073
5074         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
5075         Improve error message generation.
5076
5077 2008-04-08  Vincent Celier  <celier@adacore.com>
5078
5079         * a-direct.adb (Start_Search): Check for Name_Error before checking for
5080         Use_Error, as specified in the RM. Check if directory is open and raise
5081         Use_Error if it is not.
5082
5083 2008-04-08  Vincent Celier  <celier@adacore.com>
5084             Robert Dewar  <dewar@adacore.com>
5085
5086         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
5087         AAMP_On_Target is set.
5088
5089         * vms_data.ads: Add NOxxx to style check switch list
5090         Add entry COMPONENTS for -gnatVe
5091         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
5092         (/SUBDIRS=).
5093         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
5094         Add qualifiers for gnatmetric coupling options
5095         Add note that -gnata enables all checks
5096         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
5097         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
5098         New warning flag -gnatw.e
5099
5100         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
5101         Add entry for -gnatyN (forgotten before)
5102         Line for new warning switch -gnatw.p
5103         New warning flag -gnatw.e
5104
5105         * gnat_ugn.texi: Add documentation fpr project file switch -aP
5106         Document -gnaty - + y
5107         Replace occurences of "package specification" with "package spec"
5108         Define preprocessing symbols in documentation of gnatprep
5109         Clarify reason for distinguishing overflow checking
5110         Add documentation for project-aware tool switches -eL and --subdirs=
5111         Complete list of configuration pragmas
5112         Specify that, even when gnatmake switch -x is used, mains on the command
5113         line need to be sources of project files.
5114         Editing of gnatcheck/gnatmetric doc.
5115         Add documentation for -gnatw.p/-gnatw.P
5116         Add missing documentation for -fno-inline-functions.
5117         Add documentation for -gnatw.e
5118
5119         * gnat_rm.texi: Add documentation for No_Default_Initialization
5120         Replace occurences of "package specification" with "package spec"
5121         Document use of * in Warnings Off string
5122         Update documentation of alignment/component clauses.
5123         Add documentation for Invalid_Value
5124         Document new consistency rule for Optimize_Alignment
5125         Add documentation for Precondition and Postcondition pragmas
5126         Add documentation for Check and Check_Policy pragmas
5127         Document new Enum_Val attribute
5128         Remove requirement for static string in pragma Assert
5129         Add documentation on GNAT.Time_Stamp
5130
5131         * ug_words: add entry for -gnatVe
5132         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
5133         Add entry for -gnatw.e
5134
5135         * debug.adb: Add missing documentation for d.a flag
5136         Document new -gnatd.a switch.
5137         Add documentation for new gnatmake debug switch -df
5138
5139 2008-04-08  Thomas Quinot  <quinot@adacore.com>
5140
5141         * gen-soccon.c: Bump year in copyright notices.
5142
5143         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
5144
5145 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5146
5147         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
5148         Minor reformatting.
5149
5150 2008-04-08  Robert Dewar  <dewar@adacore.com>
5151             Bob Duff  <duff@adacore.com>
5152
5153         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
5154         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
5155
5156         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
5157
5158         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
5159
5160         * g-trasym.ads: Minor comment improvements
5161
5162         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
5163
5164         * a-sequio.ads, a-direio.ads: improve message for tagged type
5165
5166         * a-strunb.ads: Minor reformatting
5167
5168         * a-tifiio.adb: Minor reformatting
5169
5170         * atree.adb (Fix_Parents): Use clearer names for formals
5171         Cleanup and simplify code
5172         Use named notation in calls
5173
5174         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
5175         confusing calls
5176
5177         * uintp.adb: Used named notation for some confusing calls
5178
5179         * bindusg.adb: Minor change in one line of output
5180
5181         * cstand.adb: Minor reformatting of src representation of Standard
5182
5183         * a-assert.ads: Add comment.
5184
5185         * g-decstr.adb: Fix bad indentation
5186
5187         * expander.ads, expander.adb: Code clean up.
5188
5189         * sem_dist.ads: Minor comment improvement
5190
5191         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
5192         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
5193
5194         * i-cstrin.adb: Fix casing error in formal parameter name in call
5195
5196 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
5197
5198         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
5199         mentioned in limited_with_clauses to do create semantic dependencies
5200         even though they appear in the ali file.
5201
5202 2008-04-08  Emmanuel Briot  <briot@adacore.com>
5203
5204         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
5205         statement.
5206         (Get_Configuration): New subprogram.
5207
5208         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
5209         These optional parameters help preserve the casing of the project's name
5210         when pretty-printing.
5211
5212 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
5213             Arnaud Charlet  <charlet@adacore.com>
5214
5215         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
5216         then use __gnat_set_exit_status to report the returned status code.
5217
5218         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
5219         messages on .NET, since some constructs of the language are not
5220         properly supported.
5221
5222         * gnatlink.adb (Gnatlink): In case the command line is too long for the
5223         .NET linker, gnatlink now concatenate all .il files and pass this to
5224         ilasm.
5225
5226 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5227             Xavier Grave  <grave@ipno.in2p3.fr>
5228
5229         * Makefile.in: Add make ifeq define for mips/mipsel support.
5230         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
5231         system-linux-mips.ads: New files.
5232
5233 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5234
5235         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
5236         detect systems using GNU libc.
5237         * gsocket.h: ditto.
5238         * socket.c: ditto.
5239         * adaint.c: ditto.
5240         * link.c: ditto.
5241
5242 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
5243
5244         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
5245         constant constant for sysconf call.
5246         (bit_field): New packed boolean type used by cpu_set_t.
5247         (cpu_set_t): New type corresponding to the C type with
5248         the same name. Note that on the Ada side we use a bit
5249         field array for the affinity mask. There is not need
5250         for the C macro for setting individual bit.
5251         (pthread_setaffinity_np): New imported routine.
5252         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
5253         on GNU/kFreeBSD.
5254
5255 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5256
5257         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
5258
5259 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5260
5261         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
5262         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
5263         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
5264         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
5265         Return by Depressed Stack Pointer.
5266
5267 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5268
5269         * decl.c (is_variable_size): Do not unconditionally return false
5270         on non-strict alignment platforms.
5271
5272 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5273
5274         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
5275         used to process all the variants of the specified type.
5276         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
5277         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
5278         (rest_of_type_decl_compilation): Likewise.
5279         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
5280
5281 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5282
5283         * gigi.h (insert_block): Kill.
5284         * utils.c (insert_block): Kill.
5285
5286 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
5287
5288         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
5289         type has self-referential size, get the size from the initializing
5290         expression directly if it is also a constant whose nominal type
5291         has self-referential size.
5292
5293 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5294
5295         PR ada/33688
5296         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
5297
5298         PR ada/33857
5299         * env.c: Always include crt_externs.h if __APPLE__ is defined.
5300         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
5301
5302 2008-04-01  Andreas Jaeger  <aj@suse.de>
5303
5304         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
5305         IP_PKTINFO.
5306
5307 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5308
5309         * g-table.adb, g-tasloc.adb, g-traceb.ads,
5310         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
5311         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
5312         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
5313         gnatlink.adb, gnatmem.adb, gprep.adb,
5314         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
5315         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
5316         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
5317         lib-xref.ads, lib.adb, link.c, live.ads,
5318         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
5319         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
5320         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
5321         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
5322         namet.adb, namet.h, nlists.adb, nlists.ads,
5323         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
5324         osint-c.ads, osint.adb, osint.ads, output.ads,
5325         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
5326         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
5327         par-endh.adb, par-labl.adb, par-prag.adb,
5328         par-sync.adb, par-tchk.adb, par-util.adb,
5329         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
5330         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
5331         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
5332         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
5333
5334 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5335
5336         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
5337         size if it has overflowed.
5338
5339 2008-03-31  Olivier Hainque  <hainque@adacore.com>
5340             Eric Botcazou  <ebotcazou@adacore.com>
5341
5342         * utils2.c (find_common_type): Document assumption on t1/t2 vs
5343         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
5344
5345 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5346
5347         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
5348         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
5349         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
5350         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
5351         exp_tss.ads, exp_util.adb, exp_util.ads,
5352         exp_vfpt.adb, freeze.adb, freeze.ads,
5353         frontend.adb, g-alleve.adb, g-altcon.adb,
5354         g-altive.ads, g-alveop.ads, g-alvevi.ads,
5355         g-arrspl.adb, g-busorg.ads, g-calend.adb,
5356         g-calend.ads, g-casuti.ads, g-cgideb.adb,
5357         g-comlin.adb, g-comlin.ads, g-curexc.ads,
5358         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
5359         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
5360         g-dyntab.adb, g-encstr.ads, g-excact.ads,
5361         g-except.ads, g-expect.ads, g-heasor.adb,
5362         g-hesora.adb, g-hesorg.adb, g-htable.ads,
5363         g-locfil.ads, g-md5.adb, g-md5.ads,
5364         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
5365         g-pehage.adb, g-pehage.ads, g-regexp.adb,
5366         g-regexp.ads, g-regpat.adb, g-regpat.ads,
5367         g-soccon-aix.ads, g-soccon-darwin.ads,
5368         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
5369         g-soccon-hpux.ads, g-soccon-irix.ads,
5370         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
5371         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
5372         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
5373         g-soccon-solaris.ads, g-soccon-tru64.ads,
5374         g-soccon-vms.ads, g-soccon-vxworks.ads,
5375         g-soccon.ads, g-socket.adb, g-socket.ads,
5376         g-socthi-mingw.adb, g-socthi-vms.adb,
5377         g-socthi-vxworks.adb, g-soliop-mingw.ads,
5378         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
5379         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
5380         typos.
5381
5382 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
5383
5384         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
5385         if the procedure is imported.
5386
5387 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5388
5389         * adaint.c: Fix warnings.
5390
5391 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5392
5393         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
5394
5395 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5396
5397         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
5398         Fix problem of status check for null file
5399
5400 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5401
5402         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
5403         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
5404         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
5405         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
5406         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
5407         comments.
5408
5409 2008-03-26  Thomas Quinot  <quinot@adacore.com>
5410
5411         PR ada/33688
5412         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
5413         Get_Socket_Option): Add support for Receive_Packet_Info.
5414
5415         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
5416         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
5417         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
5418         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
5419         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
5420         new constants SO_REUSEPORT and IP_PKTINFO
5421
5422 2008-03-26  Robert Dewar  <dewar@adacore.com>
5423
5424         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
5425         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
5426         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
5427         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
5428         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
5429         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
5430         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
5431         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5432         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
5433         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
5434         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
5435         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
5436         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
5437         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
5438         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
5439         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
5440         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
5441         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
5442         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
5443         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
5444         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
5445         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
5446         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
5447         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
5448         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
5449         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
5450         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
5451         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
5452         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
5453         s-tasloc.adb: Minor reformatting.
5454         Update comments.
5455         Remove "used for" sections from comments.
5456
5457 2008-03-26  Robert Dewar  <dewar@adacore.com>
5458
5459         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5460         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5461         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5462         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5463         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5464         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5465         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5466         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5467         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5468         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5469         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5470         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5471         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5472         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5473         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5474         double spaced if it fits on one line and otherwise single spaced.
5475
5476 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5477
5478         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
5479         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
5480         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
5481         or task info if the thread could not be created.
5482
5483 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5484
5485         * gnatvsn.ads (Library_Version): Bump to 4.4.
5486         (Current_Year): Bump to 2008.
5487
5488 2008-03-26  Robert Dewar  <dewar@adacore.com>
5489
5490         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
5491
5492         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
5493
5494         * debug.adb: Add debug flags d.r and d.v
5495         Add debug flag .T (Optimize_Alignment (Time))
5496         Add debug flag .S (Optimize_Alignment (Space))
5497
5498         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
5499         depending on setting of relevant debug flags.
5500         Replace use of Warnings_Off by Has_Warnings_Off
5501         (Freeze_Entity): In circuit for warning on suspicious convention
5502         actuals, do not give warning if subprogram has same entity as formal
5503         type, or if subprogram does not come from source.
5504         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
5505         if Optimize_Alignment set to Space.
5506
5507         * frontend.adb: Add call to Sem_Warn.Initialize
5508         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
5509         Reset Optimize_Alignment mode from debug switches .S and .T
5510
5511         * layout.adb (Layout_Composite_Object): Rewritten for
5512         Optimize_Aligment pragma.
5513
5514         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
5515         mode.
5516
5517         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
5518
5519         * par-prag.adb (N_Pragma): Chars field removed, use Chars
5520         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
5521         this change. Add entry for pragma Optimize_Alignment
5522
5523         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
5524         (Pragma_Identifier (..
5525         instead, adjustments throughout to accomodate this change.
5526         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
5527         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
5528         Add implementation of pragma Optimize_Alignment
5529
5530 2008-03-26  Vincent Celier  <celier@adacore.com>
5531
5532         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
5533         Improve memory usage to avoid use of stack.
5534
5535 2008-03-26  Robert Dewar  <dewar@adacore.com>
5536
5537         * a-teioed.ads: Correct value of Default_Fill
5538
5539         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
5540
5541 2008-03-26  Robert Dewar  <dewar@adacore.com>
5542
5543         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
5544         with Current_Output (introduce Self).
5545
5546 2008-03-26  Robert Dewar  <dewar@adacore.com>
5547
5548         * checks.adb (Ensure_Valid): Capture valid status if possible
5549         (eliminate checks)
5550
5551 2008-03-26  Robert Dewar  <dewar@adacore.com>
5552
5553         * stand.ads: Deal with reordering of package standard declarations
5554
5555         * cstand.adb: Put package Standard declarations in proper order
5556
5557 2008-03-26  Robert Dewar  <dewar@adacore.com>
5558
5559         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
5560         (Pragma_Identifier (.. instead.
5561         (OK_To_Reorder_Components): New flag
5562         (Has_Entries): Code cleanup.
5563         (Warnings_Off_Used): New flag
5564         (Warnings_Off_Used_Unmodified): New flag
5565         (Warnings_Off_Used_Unreferenced): New flag
5566         (Has_Warnings_Off): New function
5567         (Has_Unmodified): New function
5568         (Has_Unreferenced): New function
5569         (Is_Trivial_Subprogram): New flag
5570         (Is_Static_Dispatch_Table_Entity): New attribute.
5571         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
5572         (more consistent with other similar names)
5573         (Access_Subprogram_Type): New classification function
5574
5575 2008-03-26  Robert Dewar  <dewar@adacore.com>
5576
5577         * errout.ads: Document new !! insertion sequence
5578
5579         * errout.adb (N_Pragma): Chars field removed, use Chars
5580         (Pragma_Identifier (..  instead.
5581         Replace use of Warnings_Off by Has_Warnings_Off
5582         (Error_Msg_Internal): Don't delete warning ending in !!
5583
5584 2008-03-26  Robert Dewar  <dewar@adacore.com>
5585
5586         * par.adb (Check_No_Right_Paren): Removed no longer used
5587
5588         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
5589         (Pragma_Identifier (..  instead.
5590
5591         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
5592
5593         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
5594         par-ch4.adb: Minor improvements in error recovery and messages.
5595
5596         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
5597         non-serious
5598
5599         * par-ch9.adb: Minor improvements in error recovery and messages
5600         (P_Protected): Better error recovery for "protected type x;"
5601
5602         * par-util.adb: Minor improvements in error recovery and messages
5603         (Check_No_Right_Paren): Removed no longer used
5604
5605 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5606
5607         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
5608         that the prefix of an attribute is the type of the aggregate being
5609         expanded.
5610
5611 2008-03-26  Javier Miranda  <miranda@adacore.com>
5612             Robert Dewar  <dewar@adacore.com>
5613
5614         * exp_attr.adb (N_Pragma): Chars field removed.
5615         (Expand_N_Attribute_Reference): If the designated type associated with
5616         attribute 'Unrestricted_Access is a subprogram entity then replace it
5617         by an E_Subprogram_Type itype.
5618         Implement attribute Old
5619
5620         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
5621
5622         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
5623         Replace call to
5624         New_Internal_Entity by call to Create_Itype to centralize calls
5625         building itypes, ad propagate the convention of the designated
5626         subprogram. In addition, disable the machinery cleaning constant
5627         indications from all entities in current scope when 'Unrestricted_Access
5628         corresponds with a node initializing a dispatch table slot.
5629         (Analyze_Attribute): Parameterless attributes returning a string or a
5630         type will not be called with improper arguments, so we can remove junk
5631         code that was dealing with this case.
5632         Implement attribute Old
5633
5634         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
5635         Add entry for pragma Optimize_Alignment
5636         New standard names Sync and Synchronize
5637
5638 2008-03-26  Robert Dewar  <dewar@adacore.com>
5639             Arnaud Charlet  <charlet@adacore.com>
5640
5641         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
5642         stmt.
5643         (No_Exception_Propagation_Active): New function.
5644         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5645         Update comments, and review all uses of No_Exception_Propagation, which
5646         are now correct and in sync with what gigi expects.
5647
5648         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
5649         function.
5650         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5651         Update comments, and review all uses of No_Exception_Propagation, which
5652         are now correct and in sync with what gigi expects.
5653
5654 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5655
5656         * sem_ch3.adb (Access_Definition): If the access type is the return
5657         result of a protected function, create an itype reference for it
5658         because usage will be in an inner scope from the point of declaration.
5659         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
5660         OK_To_Reorder_Components.
5661         (Make_Index): If an overloaded range includes a universal integer
5662         interpretation, resolve to Standard.Integer.
5663         (Analyze_Subtype_Indication): Copy Convention to subtype
5664         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
5665         limited an synchronized progenitors in type declaration and private
5666         extension declarations.
5667
5668         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
5669         protected subprogram body, determine proper scope from subprogram
5670         declaration.
5671
5672 2008-03-26  Robert Dewar  <dewar@adacore.com>
5673
5674         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
5675         No_Run_Time_Mode
5676
5677 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
5678
5679         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
5680         of a heap allocator for a limited unconstrained function return when
5681         resstriction No_Allocators is active.
5682         (Analyze_Allocator): The restriction No_Allocators is now only checked
5683         on allocators that have Comes_From_Source set, as per RM-H.4(7).
5684
5685         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
5686         of a heap allocator for a limited unconstrained function return when
5687         resstriction No_Allocators is active.
5688         (Analyze_Allocator): The restriction No_Allocators is now only checked
5689         on allocators that have Comes_From_Source set, as per RM-H.4(7).
5690         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
5691         operands are fixed-point types, the universal_fixed predefined operation
5692         is used, regardless of whether the operand type (s) have a primitive
5693         operation of the same name.
5694
5695 2008-03-26  Javier Miranda  <miranda@adacore.com>
5696
5697         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
5698         Is_Static_Dispatch_Table
5699         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
5700         to Exchange_Declarations to exchange the private and full-view. Bug
5701         found working in this issue.
5702         (Expand_Dispatching_Call): Propagate the convention of the subprogram
5703         to the subprogram pointer type.
5704         (Make_Secondary_DT): Replace generation of Prim'Address by
5705         Address (Prim'Unrestricted_Access)
5706         (Make_DT): Replace generation of Prim'Address by
5707         Address (Prim'Unrestricted_Access)
5708         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
5709         simple call form for single entry.
5710         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
5711         tables of predefined primitives).
5712         (Make_Secondary_DT): Add support to handle access to dispatch tables of
5713         predefined primitives.
5714         (Make_Tags): Add entities to Access_Dispatch_Table associated with
5715         access to dispatch tables containing predefined primitives.
5716
5717         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
5718         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
5719         this change.
5720         (Register_Predefined_DT_Entry): Updated to handle the new contents
5721         of attribute Access_Disp_Table (pointers to dispatch tables containing
5722         predefined primitives).
5723
5724         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
5725         subprogram.
5726         (Find_Interface_ADT): Updated to skip the new contents of attribute
5727         Access_Dispatch_Table (pointers to dispatch tables containing predefined
5728         primitives).
5729
5730         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
5731         concurrent types.
5732         (Set_Convention): Use new function Is_Access_Subprogram_Type
5733         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
5734         Access_Dispatch_Table (pointers to dispatch tables containing predefined
5735         primitives).
5736
5737         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
5738         expanded code avoiding calls to Build_Predef_Prims.
5739         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
5740         call to Build_Get_Predefined_Prim_Op_Address.
5741
5742 2008-03-26  Javier Miranda  <miranda@adacore.com>
5743
5744         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
5745         subprogram Corresponding_Runtime_Package to know the runtime package
5746         that will provide support to a given protected type.
5747
5748         * exp_ch9.adb (Add_Private_Declarations,
5749         Build_Protected_Subprogram_Call,
5750         Build_Protected_Entry, Build_Simple_Entry_Call,
5751         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
5752         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
5753         cleanup using the new centralized subprogram Corresponding_Runtime
5754         Package to know the runtime package that provides support to
5755         a given protected type.
5756
5757 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5758
5759         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
5760         assignment is within the initialization procedure for a packed array,
5761         and Initialize_Scalars is enabled, compile right-hand side with checks
5762         off, because the value is purposely out of range.
5763
5764 2008-03-26  Vincent Celier  <celier@adacore.com>
5765
5766         * gnatcmd.adb: Add processing for GNAT SYNC
5767
5768         * vms_conv.ads: (Command_Type): Add command Sync
5769
5770         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
5771
5772         * vms_data.ads: Add entries for -gnatw.w
5773         Add qualifier for gnatstub --header-file option
5774         Add switches for GNAT SYNC
5775
5776         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
5777         (Add_Package_Name): New procedure
5778         (Package_Name_List): New function
5779         (Initialize): Add known package names to the list
5780         (Register_New_Package): Add the new package name to the list
5781
5782 2008-03-26  Robert Dewar  <dewar@adacore.com>
5783
5784         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
5785         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
5786         Raise_Exception by "raise with" construct.
5787
5788 2008-03-26  Pascal Obry  <obry@adacore.com>
5789
5790         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
5791         supported platforms.
5792         
5793         * Makefile.rtl: Add g-sercom.o.
5794         
5795         * impunit.adb: Add g-sercom.adb.
5796         
5797         * s-crtl.ads (open): New routine.
5798         (close): Likewise.
5799         (write): Likewise.
5800         
5801         * s-osinte-mingw.ads (BYTE): New type.
5802         (CHAR): Likewise.
5803         (OVERLAPPED): Likewise.
5804         (GENERIC_READ): New constant.
5805         (GENERIC_WRITE): Likewise.
5806         (OPEN_EXISTING): Likewise.
5807         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
5808         type instead.
5809         (CreateFile): New routine.
5810         (WriteFile): Likewise.
5811         (ReadFile): Likewise.
5812         (CloseHandle): Move next to the other file oriented routines.
5813
5814         * g-sercom.ads: New unit.
5815
5816         * g-sercom.adb: Default implementation, calls to this unit will raise
5817         a program error exception.
5818         
5819         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
5820         GNU/Linux implementations.
5821
5822 2008-03-26  Robert Dewar  <dewar@adacore.com>
5823
5824         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
5825
5826         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
5827         unchecked conversion for different conventions only for subprogram
5828         pointers or on VMS.
5829
5830 2008-03-26  Vincent Celier  <celier@adacore.com>
5831
5832         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
5833         to check if the specified object file is correct.
5834
5835 2008-03-26  Thomas Quinot  <quinot@adacore.com>
5836
5837         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
5838         Comes_From_Source to exclude primitives from being checked. We want to
5839         exclude predefined primitives only, so use the appropriate specific
5840         predicate. Also, flag a formal parameter of an anonymous
5841         access-to-subprogram type as illegal for a primitive operation of a
5842         remote access to class-wide type.
5843
5844 2008-03-26  Vincent Celier  <celier@adacore.com>
5845
5846         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
5847         known, check if it may be a missspelling of a known package name. In
5848         not verbose, not mode, issue warnings only if the package name is a
5849         possible misspelling.
5850         In verbose mode, always issue a warning for a not known package name,
5851         plus a warning if the name is a misspelling of a known package name.
5852
5853         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
5854         limited withs or limited withs are parse during one call.
5855         (Parse_Single_Project): Post parse context clause in two passes: non
5856         limited withs before current project and limited withs after current
5857         project.
5858
5859         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
5860         project with the name With_Name, even if it is only extended indirectly.
5861         (Recursive_Process): Process projects in order: first single withs, then
5862         current project, then limited withs.
5863
5864         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
5865         project with the name With_Name, even if it is only extended indirectly.
5866
5867 2008-03-26  Robert Dewar  <dewar@adacore.com>
5868
5869         * scn.adb (Initialize_Scanner): Format messages belong on standard error
5870
5871 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5872
5873         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
5874         a generic subprogram that is imported, do not attempt to compile
5875         non-existent body.
5876
5877         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
5878         imported, do not generate a raise_program_error for the non-existent
5879         body.
5880         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
5881         perform minimal name resolution on the generic to avoid spurious
5882         warnings.
5883         (Find_Actual_Type): the designated type of the actual in a child unit
5884         may be declared in a parent unit without being an actual.
5885
5886 2008-03-26  Robert Dewar  <dewar@adacore.com>
5887
5888         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
5889         * sinfo.ads, sinfo.adb (From_At_End): New flag
5890
5891 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5892
5893         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
5894         operations that have an interface parameter.
5895         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
5896         Don't treat No_Return call as raise.
5897
5898         * sem_disp.adb (Check_Dispatching_Operations): apply check for
5899         non-primitive interface primitives to access parameters, not to all
5900         parameters of an access type.
5901
5902 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5903
5904         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
5905         declarations of a parent unit are made visible when compiling a child
5906         instance, the parent is not a hidden open scope, even though it may
5907         contain other pending instance.
5908         
5909         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
5910         hidden open scope for some child instance, it does affect the
5911         visibility status of other stach entries.
5912         (Analyze_Object_Renaming): Check that a class-wide object cannot be
5913         renamed as an object of a specific type.
5914
5915 2008-03-26  Robert Dewar  <dewar@adacore.com>
5916
5917         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
5918         recursion and raise SE directly.
5919         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
5920         set for formal type for IN mode parameter.
5921
5922 2008-03-26  Robert Dewar  <dewar@adacore.com>
5923
5924         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
5925         (Initialize): New procedure
5926         (Output_Warnings_Off_Warnings): New procedure
5927         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
5928         (Output_Non_Modifed_In_Out_Warnings): Ditto
5929         (Warn_On_Unreferenced_Entity): Ditto
5930
5931 2008-03-26  Vincent Celier  <celier@adacore.com>
5932
5933         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
5934         readable.
5935
5936 2008-03-26  Matthew Heaney  <heaney@adacore.com>
5937
5938         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
5939         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
5940         Marked with clauses as private, and controlled operations as overriding
5941
5942 2008-03-26  Robert Dewar  <dewar@adacore.com>
5943
5944         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
5945
5946 2008-03-26  Robert Dewar  <dewar@adacore.com>
5947
5948         * back_end.adb, back_end.ads: Minor reformatting
5949
5950         * bindgen.adb: Minor clarification of comments
5951
5952         * fname.ads: Minor comment fixes
5953
5954         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
5955         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
5956
5957         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
5958         xsnames.adb: Remove warnings off pragma no longer needed
5959
5960         * a-catizo.ads, a-calari.ads, a-calfor.adb,
5961         a-calfor.ads: Fix header.
5962
5963 2008-03-26  Tristan Gingold  <gingold@adacore.com>
5964
5965         * init.c: Do not adjust pc for HPARITH on alpha/vms.
5966
5967 2008-03-26  Robert Dewar  <dewar@adacore.com>
5968
5969         * lib-xref.adb: (OK_To_Set_Reference): New function
5970         (Generate_Reference): Don't set referenced from occurrence in Warnings,
5971         Unmodified, or Unreferenced pragma
5972
5973 2008-03-26  Robert Dewar  <dewar@adacore.com>
5974
5975         * alloc.ads: Add entries for Warnings_Off_Pragmas table
5976
5977 2008-03-26  GNAT Script  <nobody@adacore.com>
5978
5979         * Make-lang.in: Makefile automatically updated
5980
5981 2008-03-26  Robert Dewar  <dewar@adacore.com>
5982
5983         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
5984         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
5985         removed, use Chars (Pragma_Identifier (..  instead, adjustments
5986         throughout to accomodate this change.
5987
5988         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
5989
5990         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
5991         Einfo.Set_Needs_Debug_Info)
5992
5993 2008-03-26  Robert Dewar  <dewar@adacore.com>
5994
5995         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
5996         Add description for the new gnatstub option '--header-file'
5997         clarification of -gnatwz/-gnatwZ
5998         Add a "Irix-Specific Considerations" section to document the need to
5999         set LD_LIBRARY_PATH when using the default shared runtime library.
6000         Added documentation for both gcov and gprof.
6001
6002         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6003         messages that are not suppressed when clients are compiled.
6004         Add documentation of s-pooglo s-pooloc
6005         Document the new GNAT.Serial_Communications API.
6006         Add documentation for 'Old attribute
6007         Add description of pragma Optimize_Alignment
6008
6009         * ug_words: Add entries for -gnatw.w -gnatw.W
6010
6011         * usage.adb: Add line for -gnatw.w (warn on warnings off)
6012
6013 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
6014
6015         Revert
6016         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6017         PR ada/35186
6018         * decl.c (maybe_pad_type): Avoid padding an integral type when
6019         bumping its alignment is sufficient.
6020
6021 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
6022
6023         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6024         Fix wrong formatting (lines too long)
6025
6026 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6027
6028         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6029         a-calend-vms.adb, a-calend.adb, a-calend.ads,
6030         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6031         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6032         a-cohama.ads, a-comlin.ads, a-coorse.adb,
6033         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6034         a-except-2005.ads, a-except.adb, a-except.ads,
6035         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6036         a-exextr.adb, a-filico.ads, a-finali.ads,
6037         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6038         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6039         a-sequio.ads, a-strbou.ads, a-strfix.adb,
6040         checks.adb, exp_ch3.adb, exp_ch4.adb,
6041         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6042         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6043         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6044         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6045         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6046
6047 2008-03-24  Robert Dewar  <dewar@adacore.com>
6048
6049         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6050         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6051         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6052         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6053         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6054         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6055         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6056         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6057         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6058         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6059         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6060         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6061         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6062         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6063         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6064         double spaced if it fits on one line and otherwise single spaced.
6065
6066 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6067
6068         PR documentation/15479
6069         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
6070         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
6071         (doc/gnat_ugn.info): Renamed from ...
6072         (doc/gnat_ugn_unw.info): ... this.
6073         (doc/gnat_ugn.dvi): Renamed from ...
6074         (doc/gnat_ugn_unw.dvi): ... this.
6075         (doc/gnat_ugn.pdf): Renamed from ...
6076         (doc/gnat_ugn_unw.pdf): ... this.
6077         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
6078         Adjusted.
6079         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
6080         unconditionally to gnat_ugn.info.  Fix cross references to the
6081         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
6082         and GNU make manuals to be proper texinfo links.
6083         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
6084
6085 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6086
6087         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
6088         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
6089
6090 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6091
6092         * trans.c (addressable_p): Add notes on addressability issues.
6093
6094 2008-03-21  Olivier Hainque  <hainque@adacore.com>
6095             Ed Schonberg  <schonberg@adacore.com>
6096
6097         * trans.c (addressable_p): Accept COND_EXPR when both arms
6098         are addressable.
6099         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
6100         (call_to_gnu): Do not use name reference in the error message
6101         for a misaligned by_reference_parameter. The actual may be a
6102         general expression.
6103
6104 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6105
6106         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6107
6108 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6109
6110         * gnat_rm.texi (Implementation Defined Characteristics)
6111         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
6112         appropriate.
6113         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
6114         (Switches for gnatchop, Installing a library): Likewise.
6115
6116 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
6117
6118         * trans.c (emit_range_check): Do not emit the check if the base type
6119         of the expression is the type against which its range must be checked.
6120
6121 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6122
6123         * decl.c (maybe_pad_type): Use value_factor_p.
6124
6125 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6126
6127         * lang.opt (nostdlib): Move around.
6128         * misc.c (gnat_handle_option): Fix formatting.
6129         (gnat_dwarf_name): Move around.
6130         * trans.c (Case_Statement_to_gnu): Fix formatting.
6131         (gnat_to_gnu): Likewise.
6132         * utils.c (aggregate_type_contains_array_p): Likewise.
6133         (create_subprog_decl): Likewise.
6134
6135 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6136
6137         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
6138         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
6139
6140 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6141
6142         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
6143         BIGGEST_ALIGNMENT when capping the alignment of records with
6144         strict alignment and size clause.
6145
6146 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6147
6148         * lang-specs.h: Pass -gnatwa if -Wall is passed.
6149         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
6150         and -Wuninitialized.
6151         (gnat_post_options): Clear warn_unused_parameter.
6152
6153 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6154
6155         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
6156         aligned bit-fields, bumping the alignment of the record type if deemed
6157         profitable.
6158         (value_factor_p): Return false instead of 0.
6159
6160 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6161
6162         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
6163         for scalar types with small alignment.
6164
6165 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
6166
6167         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
6168         from that of the front-end's end label.
6169         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
6170         from that of the loop label.
6171
6172 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6173
6174         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
6175         comment for the packed array type case.
6176         * utils.c (build_template): Use a loop to strip padding or
6177         containing records for justified modular types.
6178
6179 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6180
6181         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
6182         large alignments specified for types.
6183         (validate_alignment): Minor cleanup.
6184
6185 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
6186
6187         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
6188         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
6189         the component for packing, if possible, as well as if a component
6190         size clause is specified.
6191         <E_Record_Subtype>: For an array type used to implement a packed
6192         array, get the component type from the original array type.
6193         Try to get a smaller form of the component for packing, if possible,
6194         as well as if a component size clause is specified.
6195         (round_up_to_align): New function.
6196         (make_packable_type): Add in_record parameter.
6197         For a padding record, preserve the size.  If not in_record and the
6198         size is too large for an integral mode, attempt to shrink the size
6199         by lowering the alignment.
6200         Ditch the padding bits of the last component.
6201         Compute sizes and mode manually, and propagate the RM size.
6202         Return a BLKmode record type if its size has shrunk.
6203         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
6204         Use Original_Array_Type to retrieve the type in case of an error.
6205         Adjust call to make_packable_type.
6206         (gnat_to_gnu_field): Likewise.
6207         (concat_id_with_name): Minor tweak.
6208         * trans.c (larger_record_type_p): New predicate.
6209         (call_to_gnu): Compute the nominal type of the object only if the
6210         parameter is by-reference.  Do the conversion actual type -> nominal
6211         type if the nominal type is a larger record.
6212         (gnat_to_gnu): Do not require integral modes on the source type to
6213         avoid the conversion for types with identical names.
6214         (addressable_p): Add gnu_type parameter.  If it is specified, do not
6215         return true if the expression is not addressable in gnu_type.
6216         Adjust recursive calls.
6217         * utils.c (finish_record_type): Remove dead code.
6218
6219 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
6220
6221         PR ada/35186
6222         * decl.c (maybe_pad_type): Avoid padding an integral type when
6223         bumping its alignment is sufficient.
6224
6225 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6226
6227         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
6228         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
6229         statement.
6230         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
6231         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
6232         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
6233         code output strings.
6234         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
6235         system-vms_64.ads: Fix typos in ada source code comments.
6236         * sinfo-cn.adb: Remove incomplete sentence.
6237
6238         PR documentation/15479
6239         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
6240
6241 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
6242
6243         PR ada/22255
6244         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
6245
6246 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
6247
6248         PR ada/34799
6249         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
6250         that underlying type is present.
6251
6252 2008-02-26  Tom Tromey  <tromey@redhat.com>
6253
6254         * misc.c (internal_error_function): Remove test of
6255         USE_MAPPED_LOCATION.
6256         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
6257         (Sloc_to_locus): Remove old location code.
6258
6259 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6260
6261         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
6262         `i.e.' by adding comma or `@:' as appropriate.
6263         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
6264         plain characters `C', use `@samp{C}'.
6265         * gnat_ugn.texi (File Naming Rules, About gnatkr)
6266         (Krunching Method): Likewise.
6267
6268         * gnat_ugn.texi (Conventions): List environment variables and
6269         metasyntactic variables.
6270         (Compiling Programs): Fix notation of metasyntactic variables.
6271         Add @file where appropriate.  Use @file for file extensions,
6272         @samp for strings.
6273         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
6274         instead of @file, @env instead of @code.
6275
6276 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6277
6278         PR documentation/15479
6279         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
6280         and `...' with `@dots{}' or `@enddots{}'.
6281
6282         PR documentation/15479
6283         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
6284         use @command instead of @code, @option instead of @samp or @code,
6285         @code instead of @var, @samp instead of @file.
6286
6287         PR documentation/15479
6288         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
6289         in Makefile rules, by using `&&' rather than `;'.
6290
6291 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6292
6293         PR documentation/15479
6294         * gnat_ugn.texi: In non-code, avoid space before colon.
6295         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
6296         (Examples of gnatxref Usage): Use @command{vi} instead of
6297         @file{vi}.
6298         (Character Set Control): Do not use @code for UTF-8.
6299         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
6300         use @code for IEEE.
6301         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
6302         sample.
6303         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
6304
6305 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
6306
6307         PR ada/35143
6308         * env.c: Add __rtems__ to if defined.
6309         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
6310         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
6311         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
6312         pragma Convention as required.
6313         * gsocket.h: Make compile in and out of RTS.
6314         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
6315         Use g-soccon-rtems.ads.
6316         * g-soccon-rtems.ads, system-rtems.ads: New files.
6317
6318 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6319
6320         PR other/35107
6321         * Make-lang.in (gnat1): Add $(GMPLIBS).
6322
6323 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
6324
6325         * decl.c (components_to_record): Improve comment.
6326
6327 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
6328
6329         * decl.c (components_to_record): Do not reuse the empty union type
6330         if there is a representation clause on the record.
6331         * trans.c (addressable_p): Return true for INTEGER_CST.
6332
6333 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
6334
6335         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
6336         in pointer arithmetics.
6337         * utils2.c (build_allocator): Likewise.
6338
6339 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
6340
6341         * utils.c (build_function_stub): Properly build the call expression.
6342
6343 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
6344
6345         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
6346         before converting the expression to the type of the object.
6347         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
6348         Stabilize constructors for special wrapping types.
6349
6350 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
6351
6352         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
6353         when necessary.  Merge some conditional statements.  Update comments.
6354         Rename unchecked_convert_p local variable to suppress_type_conversion.
6355         Do not suppress conversions in the In case.
6356         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
6357         into account on non strict-alignment platforms.
6358
6359 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
6360
6361         * utils.c (aggregate_type_contains_array_p): New predicate.
6362         (create_field_decl): In a packed record, force byte alignment
6363         for fields without specified position that contain an array.
6364
6365 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
6366
6367         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
6368
6369 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
6370
6371         PR ada/34466
6372         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
6373         sysconf call.
6374         (bit_field): New packed boolean type used by cpu_set_t.
6375         (cpu_set_t): New type corresponding to the C type with
6376         the same name. Note that on the Ada side we use a bit
6377         field array for the affinity mask. There is not need
6378         for the C macro for setting individual bit.
6379         (pthread_setaffinity_np): New imported routine.
6380
6381 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
6382
6383         PR ada/34647
6384         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6385         on OpenBSD as is done on other BSD systems.
6386
6387         PR ada/34645
6388         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
6389         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
6390         I/O.
6391
6392         PR ada/34644
6393         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
6394         clearenv().
6395
6396         PR ada/34646
6397         * init.c (__gnat_error_handler, __gnat_install_handler,
6398         __gnat_init_float): Define for OpenBSD.
6399
6400         * initialize.c (__gnat_initialize): Define for OpenBSD.
6401
6402 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
6403
6404         PR ada/34553
6405         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6406         instead of mktemp() or tmpnam() on NetBSD.
6407
6408 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
6409
6410         * trans.c (call_to_gnu): Make the temporary for non-addressable
6411         In parameters passed by reference.
6412         (addressable_p): Return true for STRING_CST and CALL_EXPR.
6413
6414 2007-12-19  Robert Dewar  <dewar@adacore.com>
6415
6416         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
6417         Add pragma Warnings (Off) for unassigned IN OUT arguments
6418
6419         * sem_warn.adb (Output_Reference): Suppress messages for internal names
6420         (Check_References): Extensive changes to tune up warnings
6421         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
6422         (Has_Pragma_Unmodifed_Check_Spec): New function
6423         (Check_References): Implement pragma Unmodified
6424         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
6425
6426         * par-prag.adb: Dummy entry for pragma Unmodified
6427
6428         * sem_prag.adb: Implement pragma Unmodified
6429
6430         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
6431         (Proc_Next_Component_Or_Discriminant): Fix typo.
6432         Update comments.
6433
6434         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
6435         Unmodified.
6436         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
6437         because the former already takes care of discarding the result.
6438         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
6439         Add comment.
6440
6441         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
6442
6443 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
6444
6445         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
6446         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
6447         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
6448         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
6449         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
6450         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6451         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6452         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
6453         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6454         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
6455         (Dynamic_Trampolines_Used): Delete.
6456
6457         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
6458         Turn on stack probing mechanism on LynxOS.
6459
6460 2007-12-19  Bob Duff  <duff@adacore.com>
6461
6462         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
6463         the resulting tail recursion by hand. This prevents running out of
6464         memory on deeply nested concatenations, since Field2 is where the left
6465         operand of concatenations is stored.
6466         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
6467         clarify that it can only return OK or Abandon.
6468
6469         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
6470         operand by iteration, in order to avoid running out of memory on
6471         deeply-nested concatenations. Use the Parent pointer to get back up the
6472         tree.
6473         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
6474          Resolve_Op_Concat_Rest): New procedures split out of
6475         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
6476         clearer.
6477
6478         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
6479         Traverse_Func, because the former already takes care of discarding the
6480         result.
6481
6482         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
6483         because the former already takes care of discarding the result.
6484         (Remove_Warning_Messages): Use appropriate subtype for Status and
6485         Discard 
6486
6487 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6488
6489         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
6490         discriminants forces expansion of the aggregate into assignments.
6491         (Init_Record_Controller):  If the type of the aggregate is untagged and
6492         is not inherently limited, the record controller is not limited either.
6493
6494 2007-12-19  Robert Dewar  <dewar@adacore.com>
6495
6496         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
6497         handling compile time known size of record or array (case of front end
6498         layout active, e.g. in GNAAMP).
6499
6500 2007-12-19  Javier Miranda  <miranda@adacore.com>
6501
6502         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
6503         that forces the construction of static dispatch tables in case of
6504         record subtypes.
6505
6506 2007-12-19  Robert Dewar  <dewar@adacore.com>
6507
6508         * exp_ch9.adb (Null_Statements): Moved to library level
6509         (Trivial_Accept_OK): New function
6510         (Expand_Accept_Declaration): Use Trivial_Accept_OK
6511         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
6512
6513 2007-12-19  Robert Dewar  <dewar@adacore.com>
6514
6515         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
6516         in complex case where array is Volatile.
6517
6518 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6519
6520         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
6521         properly the Ada2005 rules concerning when the current instance of a
6522         record type is aliased.
6523
6524 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6525
6526         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
6527         mangled declaration
6528         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
6529         declarations.
6530         (P_Variant_Part): Cleaner patch for parenthesized discriminant
6531
6532 2007-12-19  Vincent Celier  <celier@adacore.com>
6533
6534         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
6535         package is not known
6536
6537         * prj-attr.ads (Unknown_Package): New constant
6538         Do not crash when an unknown package is in several projects
6539
6540         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
6541         ignored
6542
6543         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
6544         existing package Language_Processing.
6545
6546 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6547             Gary Dismukes  <dismukes@adacore.com>
6548             Samuel Tardieu  <sam@rfc1149.net>
6549
6550         PR ada/15803, ada/15805
6551         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
6552         illegal access subtypes when there is a constrained partial view.
6553         (Check_For_Premature_Usage): New procedure inside
6554         Access_Subprogram_Declaration for checking that an access-to-subprogram
6555         type doesn't reference its own name within any formal parameters or
6556         result type (including within nested anonymous access types).
6557         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
6558         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
6559         context is an access_to_variable, the expression cannot be an
6560         access_to_constant.
6561
6562 2007-12-19  Bob Duff  <duff@adacore.com>
6563
6564         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
6565         (Analyze_Concatenation): Use iteration instead of recursion in order
6566         to avoid running out of stack space for deeply nested concatenations.
6567
6568 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6569             Gary Dismukes  <dismukes@adacore.com>
6570
6571         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
6572         whose renamed entity is a subprogram that requires overriding.
6573         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
6574         issuing an error for premature usage and issue a message that says
6575         'type' rather than 'object'.
6576
6577 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
6578
6579         PR ada/34149
6580         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
6581         presence of a statically tagged operand (Present (Static_Tag)) with
6582         test for Indeterm_Ancestor_Call when determining whether to propagate
6583         the static tag to tag-indeterminate operands (which forces dispatching
6584         on such calls).
6585         (Check_Controlling_Formals): Ada2005, access parameters can have
6586         defaults.
6587         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
6588         not insert subprogram in list of primitive operations if already there.
6589
6590 2007-12-19  Tristan Gingold  <gingold@adacore.com>
6591
6592         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
6593         global variable.
6594
6595 2007-12-19  Thomas Quinot  <quinot@adacore.com>
6596
6597         Part of PR ada/33688
6598         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
6599         datagram info on Linux.
6600
6601 2007-12-19  Vincent Celier  <celier@adacore.com>
6602
6603         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
6604         that the source path name is always found in the dependencies.
6605
6606 2007-12-19  Robert Dewar  <dewar@adacore.com>
6607
6608         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
6609         Fix name of Wide_Wide_Latin_1/9 file names
6610         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
6611         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
6612         Add missing documentation for Ada.Command_Line.Response_File
6613         Update list of warning letters for Warnings pragma
6614         Add documentation for pragma Unmodified
6615
6616 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
6617
6618         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
6619
6620 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
6621
6622         * s-vxwork-alpha.ads: Removed, no longer used.
6623
6624 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
6625
6626         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
6627
6628 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
6629
6630         PR ada/34360
6631         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
6632         mlib-tgt-specific.adb.
6633
6634 2007-12-13  Bob Duff  <duff@adacore.com>
6635
6636         * trans.c (Attribute_to_gnu): Check for violations of the
6637         No_Implicit_Dynamic_Code restriction. This checking used to be done in
6638         the front end, but is moved here so we can make it more accurate.
6639
6640 2007-12-13  Pascal Obry  <obry@adacore.com>
6641
6642         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
6643          version is provided for older GNU/Linux distribution not
6644          supporting thread affinity sets.
6645         
6646         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
6647         call.
6648         (bit_field): New packed boolean type used by cpu_set_t.
6649         (cpu_set_t): New type corresponding to the C type with
6650         the same name. Note that on the Ada side we use a bit
6651         field array for the affinity mask. There is not need
6652         for the C macro for setting individual bit.
6653         (pthread_setaffinity_np): New imported routine.
6654         
6655         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
6656         no null.
6657         (Create_Task): Set the processor affinity mask if information
6658         is present.
6659         
6660         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
6661         
6662 2007-12-13  Robert Dewar  <dewar@adacore.com>
6663
6664         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
6665         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
6666         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
6667         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
6668         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
6669         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
6670         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
6671         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
6672         for subprogram pointers.
6673
6674         * g-ctrl_c.adb: New file.
6675
6676         * g-ctrl_c.ads (Install_Handler): New body.
6677
6678         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
6679         instead of obsolete function Is_Always_Inlined.
6680         (Freeze_Entity): check for tagged type in imported C subprogram
6681         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
6682         (Freeze_Entity): check for convention Ada subprogram pointer in
6683         imported C subprogram.
6684         (Freeze_Fixed_Point_Type): In the case of a base type where the low
6685         bound would be chopped off and go from negative to zero, force
6686         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
6687         bound) so that the size computation for the base type will take
6688         negative values into account.
6689
6690 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
6691             Bob Duff  <duff@adacore.com>
6692             Tristan Gingold  <gingold@adacore.com>
6693
6694         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
6695         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
6696         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
6697         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
6698         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
6699         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
6700         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
6701         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
6702         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
6703         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
6704         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
6705         (Always_Compatible_Rep): New flag to control trampolines globally.
6706         (Dynamic_Trampolines_Used): New flag for implementing the
6707         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
6708         and not yet set correctly for some targets).
6709
6710         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
6711         Simply indirectly call s-stchop when a task is created.
6712
6713         * ali.ads: 
6714         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
6715         appears as an argument (entries A) in an ALI file.
6716
6717         * fe.h (Stack_Check_Limits): Declare new target parameter.
6718         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
6719
6720         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
6721         This variable is declared in C to be sure not subject to elaboration
6722         code.
6723         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
6724         Storage_Error.
6725
6726         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
6727         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
6728
6729         * s-stchop.ads: Add comments.
6730
6731         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
6732         limit method of stack checking.
6733
6734         * s-stchop-limit.ads: New file.
6735
6736 2007-12-13  Robert Dewar  <dewar@adacore.com>
6737
6738         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
6739         a-cihama.adb, g-awk.adb, 
6740         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
6741         warnings
6742
6743         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
6744
6745         * sem.adb: Update handling of assigned value/unreferenced warnings
6746
6747         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
6748
6749         * lib-xref.ads: Improve documentation for k xref type
6750
6751         * lib-xref.adb: 
6752         Update handling of assigned value/unreferenced warnings
6753         (Generate_Reference): Warning for reference to entity for which a
6754         pragma Unreferenced has been given should be unconditional.
6755         If the entity is a discriminal, mark the original
6756         discriminant as referenced.
6757
6758         * sem_warn.ads, sem_warn.adb
6759         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
6760         no entities referenced in package
6761         (Check_One_Unit): Don't give message about no entities referenced in
6762         a package if a pragma Unreferenced has appeared.
6763         Handle new warning flag -gnatw.a/-gnatw.A
6764         Update handling of assigned value/unreferenced warnings
6765
6766         * atree.h: Add flags up to Flag247
6767         (Flag231): New macro.
6768
6769 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
6770
6771         * adaint.h: (__gnat_plist_init): Not defined for RTX.
6772
6773         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
6774         RTX systems.
6775
6776         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
6777         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
6778         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
6779         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
6780
6781         * mingw32.h: 
6782         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
6783
6784         * sysdep.c (winflush_function for RTX): Procedure that does nothing
6785         since we only have problems with Windows 95/98, which are not
6786         supported by RTX.
6787         (__gnat_ttyname): Return the empty string on Nucleus, just as
6788         done on vxworks.
6789
6790 2007-12-13  Robert Dewar  <dewar@adacore.com>
6791
6792         * a-textio.adb, a-textio.ads: 
6793         Extensive changes to private part for wide character encoding
6794
6795         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
6796         (Look_Ahead): Fix mishandling of encoded sequences
6797         Move declaration of Wch_Con to private part (should not be visible)
6798
6799         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
6800         UTF-8. Probably this is never used, but if it is, brackets is
6801         clearly correct.
6802
6803         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
6804         setting wide character encoding for no main program case and when
6805         encoding is specified using -W?
6806         Initialize stack limit of environment task if stack limit method of
6807         stack checking is enabled.
6808         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
6809         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
6810         (Get_Main_Unit_Name): New function.
6811         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
6812         (Gen_Output_File): Set Bind_Main_Program to True for .NET
6813
6814         * bindusg.adb: Add line for -Wx switch
6815
6816         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
6817         Add comments
6818         Add new useful constant WC_Longest_Sequences
6819
6820         * switch-b.adb: Clean up handling of -Wx switch
6821         For -gnatWx, set Wide_Character_Encoding_Method_Specified
6822
6823         * switch-c.adb: -gnatg activates warning on assertion errors
6824         For -gnatWx, set Wide_Character_Encoding_Method_Specified
6825
6826         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
6827
6828 2007-12-13  Robert Dewar  <dewar@adacore.com>
6829             Ed Schonberg  <schonberg@adacore.com>
6830
6831         * a-ngcoty.adb: New pragma Fast_Math
6832
6833         * opt.adb: New pragma Fast_Math
6834
6835         * par-prag.adb: 
6836         Add Implemented_By_Entry to the list of pragmas which do not require any
6837         special processing.
6838         (Favor_Top_Level): New pragma.
6839         New pragma Fast_Math
6840
6841         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
6842         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6843         Expand_Allocator_Expression): Take into account VM_Target
6844         (Expand_Attribute, case 'Identity):  Handle properly the case where
6845         the prefix is a task interface.
6846         New pragma Fast_Math
6847
6848         * par.adb (Next_Token_Is): New function
6849         (P_Pragma): Add Skipping parameter
6850         (U_Left_Paren): New procedure
6851         (U_Right_Paren): New procedure
6852         New pragma Fast_Math
6853
6854         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
6855         subunit
6856         New pragma Fast_Math
6857
6858         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
6859         Implemented_By_Entry.
6860         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
6861         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
6862         items, since it can apply to more than one overloadable entity. Set
6863         new flag Has_Pragma_Inline_Always for Inline_Always case.
6864         (Analyze_Pragma, case Complex_Representation): Improve error message.
6865         (Analyze_Pragma, case Assert): When assertions are disabled build the
6866         rewritten code with Sloc of expression rather than pragma, so new
6867         warning about failing is not deleted.
6868         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
6869         protected types and update error message to reflect that. Test whether
6870         the protected type is allowed for the pragma (an error is issued if the
6871         type has any entries, or components that do not have preelaborable
6872         initialization).
6873         New pragma Fast_Math
6874         (Analyze_Pragma, case No_Return): Handle generic instance
6875
6876         * snames.h, snames.ads, snames.adb: 
6877         Add new predefined name for interface primitive _Disp_Requeue.
6878         New pragma Fast_Math
6879
6880         * a-tags.ads, a-tags.adb: New calling sequence for
6881         String_To_Wide_[Wide_]String
6882         (Secondary_Tag): New subprogram.
6883
6884         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
6885         from Exp_Attr
6886         New calling sequence for String_To_Wide_[Wide_]String
6887         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
6888         the use of the secondary stack for image routines.
6889
6890         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
6891         calling sequence for String_To_Wide_[Wide_]String
6892
6893         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
6894         Ada 95 mode
6895         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
6896         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6897
6898         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
6899         (P_Formal_Part): Use Skipping parameter in P_Pragma call
6900         to improve error recovery
6901
6902         * par-util.adb (Next_Token_Is): New function
6903         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
6904
6905         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
6906         semicolon if missing
6907         (P_Pragma): Implement new Skipping parameter
6908         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6909         Fix location of flag for unrecognized pragma message
6910
6911         * par-tchk.adb (U_Left_Paren): New procedure
6912         (U_Right_Paren): New procedure
6913
6914 2007-12-13  Geert Bosch  <bosch@adacore.com>
6915
6916         * a-tifiio.adb: 
6917         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
6918         the second or later Scaled_Divide would omit leading zeroes,
6919         resulting in too few digits produced and a Layout_Error as result.
6920         (Put): Initialize Pos.
6921
6922 2007-12-13  Robert Dewar  <dewar@adacore.com>
6923
6924         atree.ads, atree.adb (Flag231..Flag247): New functions
6925         (Set_Flag231..Set_Flag247): New procedures
6926         (Basic_Set_Convention): Rename Set_Convention to be
6927         Basic_Set_Convention
6928         (Nkind_In): New functions
6929         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6930
6931         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
6932         instead
6933          of obsolete function Is_Always_Inlined
6934         (Register_Predefined_DT_Entry): Initialize slots of the second
6935         secondary dispatch table.
6936         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6937         (Expand_N_Function_Call): Remove special provision for stack checking.
6938
6939         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
6940         Include _Disp_Requeue in the list of predefined operations.
6941         (Find_Interface_ADT): Modified to fulfill the new specification.
6942         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6943
6944         * par-ch4.adb, nlists.ads, nlists.adb: 
6945         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6946
6947         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
6948         Fix location of flag for unrecognized pragma message
6949
6950         * sem_ch7.adb: Use Nkind_In
6951
6952 2007-12-13  Vincent Celier  <celier@adacore.com>
6953
6954         * opt.ads: 
6955         Indicate what flags are used by the Project Manager, gprbuild and
6956         gprclean.
6957         (Opt.Follow_Links_For_Dirs): New flag
6958         (Warn_On_Assertion_Failure): New flag
6959         (Wide_Character_Encoding_Method_Specified): New flag
6960         (Suppress_All_Inlining): New switch set by -fno-inline
6961         (Real_VMS_Target): New flag
6962         New pragma Fast_Math
6963
6964 2007-12-13  Robert Dewar  <dewar@adacore.com>
6965
6966         * back_end.adb: Recognize -fno-inline
6967
6968 2007-12-13  Robert Dewar  <dewar@adacore.com>
6969
6970         * checks.adb: Fix optimization problem with short-circuited form
6971
6972 2007-12-13  Bob Duff  <duff@adacore.com>
6973
6974         * clean.adb (Usage): Add line for -aP
6975         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
6976         with a parameter "procedure Usage", instead of passing a pointer to a
6977         procedure. This is to eliminate trampolines (since the Usage procedure
6978         is often nested in a main procedure, and it would be inconvenient to
6979         unnest it).
6980
6981         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
6982         to be generic, with a parameter "procedure Callback (...)", instead of
6983         passing a pointer to a procedure. This is to eliminate trampolines
6984         (since the Callback procedure is usually nested).
6985
6986         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
6987         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
6988         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
6989
6990         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
6991         Use the generic Heap_Sort_G instead of Heap_Sort_A.
6992
6993 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
6994
6995         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
6996         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
6997         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
6998         (Renamed_In_Spec): New flag
6999         (Has_Pragma_Inline_Always): New flag
7000         Add missing doc for pragma Obsolescent_Warning
7001         Add missing doc for 17 additional unused flags (230-247)
7002         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7003         Alphabetize with clauses.
7004         Separate Is_Thunk and Has_Thunks flags
7005         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7006         (Related_Interface): Renamed to Related_Type.
7007         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7008         (Set_Is_Flag): Restrict the assertion.
7009
7010 2007-12-13  Vincent Celier  <celier@adacore.com>
7011
7012         * errout.adb (Output_Source_Line): Do not keep a trailing space after
7013         the source line number if the source line is empty.
7014
7015 2007-12-13  Geert Bosch  <bosch@adacore.com>
7016
7017         * eval_fat.adb (Decompose_Int): Handle argument of zero.
7018         (Compose): Remove special casing of zero.
7019         (Exponent): Likewise.
7020         (Fraction): Likewise.
7021         (Machine): Likewise.
7022         (Decompose): Update comment.
7023
7024 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7025
7026         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7027         limited ancestor part, initialize controllers of enclosing record
7028         before expanding ancestor aggregate.
7029         (Gen_Assign): If a component of the aggregate is box-initialized, add
7030         code to call Initialize if the component is controlled, and explicit
7031         assignment of null if the component is an access type.
7032
7033         Handle properly aggregates for limited types that appear in object
7034         declarations when the aggregate contains controlled values such as
7035         protected types.
7036         When expanding limited aggregates into individual components, do not
7037         call Adjust on controlled components that are limited.
7038
7039 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7040
7041         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7042
7043 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7044
7045         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7046         predefined primitive _Disp_Requeue.
7047         (Make_Predefined_Primitive_Specs): Create the spec for predefined
7048         primitive _Disp_Requeue.
7049         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7050         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7051         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7052         an interface type. In case of limited interfaces we now declare all the
7053         predefined primitives associated with synchronized interfaces as
7054         abstract.
7055         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7056         declarations.
7057         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
7058         tagged type is an interface type and there is no user-defined equality
7059         function.
7060         Add also bodies of predefined primitives associated with synchronized
7061         interfaces.
7062         (Freeze_Record_Type): Do not build bodies of predefined primitives of
7063         interface types because they are now defined abstract.
7064         Add missing documentation.
7065         (Expand_Record_Controller): Update occurrence of Related_Interface
7066         to Related_Type.
7067         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
7068         (Expand_N_Object_Declaration): Take into account VM_Target when handling
7069         class wide interface object declaration.
7070         (Expand_Previous_Access_Type): Do not create a duplicate master entity
7071         if the access type already has one.
7072         (Expand_N_Object_Declaration): Defend against attempt to validity check
7073         generic types. Noticed for -gnatVcf specified with previous errors.
7074
7075 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7076
7077         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7078         Expand_Allocator_Expression): Take into account VM_Target
7079
7080         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
7081         secondary stack when VM_Target /= No_VM
7082
7083 2007-12-13  Javier Miranda  <miranda@adacore.com>
7084             Ed Schonberg  <schonberg@adacore.com>
7085
7086         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
7087         Is_Complation_Unit by Is_Library_Level_Entity in the code
7088         that decides if the static dispatch tables need to be built.
7089         (Wrap_Transient_Declaration): Do not generate a finalization call if
7090         this is a renaming declaration and the renamed object is a component
7091         of a controlled type.
7092
7093 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7094
7095         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
7096         In the case where the renamed subprogram is a dereference, call
7097         Force_Evaluation on the prefix.
7098
7099 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7100             Ed Schonberg  <schonberg@adacore.com>
7101
7102         * exp_ch9.adb (Expand_N_Asynchronous_Select,
7103         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
7104         comment reformatting.
7105         (Set_Privals): Inherit aliased flag from formal. From code reading.
7106         (Build_Simple_Entry_Call): Out parameters of an access type are passed
7107         by copy and initialized from the actual. This includes entry parameters.
7108         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
7109         and Ada 2005 models of requeue.
7110         (Null_Statements): Still connsider do-end block null if it contains
7111         Unreferenced and Warnings pragmas.
7112         (Expand_N_Accept_Statement): Do not optimize away null do end if
7113         dispatching policy is other than defaulted.
7114         (Expand_N_Timed_Entry_Call): When the triggering statement is a
7115         dispatching call, manually analyze the delay statement.
7116         (Find_Parameter_Type): Move subprogram to Sem_Util.
7117
7118 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7119             Javier Miranda  <miranda@adacore.com>
7120
7121         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
7122         _Disp_Requeue occupies dispatch table slot number 15. Move
7123         _Disp_Timed_Select to slot 16.
7124         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
7125         generate the spec and body of _Disp_Reqeueue.
7126         (Make_DT): Build and initialize the second dispatch table.
7127         Handle initialization of RC_Offset when the parent
7128         is a private type with variable size components.
7129         (Make_Secondary_DT): Complete documentation. Add support to
7130         initialize the second dispatch table.
7131         (Make_Tags): Generate the tag of the second dispatch table.
7132         (Register_Primitive): Add support to register primitives in the
7133         second dispatch table.
7134
7135 2007-12-13  Pascal Obry  <obry@adacore.com>
7136
7137         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
7138         Windows. This signal is used by gnatmake to kill child processes for
7139         example.
7140
7141 2007-12-13  Javier Miranda  <miranda@adacore.com>
7142
7143         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7144         support for generic dispatching constructor calls in which we need to
7145         locate the tag of a secondary dispatch table associated with an
7146         interface type to properly dispatch the call.
7147         (Expand_N_Attribute_Reference [case Address],
7148         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
7149         handling of VM targets.
7150
7151 2007-12-13  Robert Dewar  <dewar@adacore.com>
7152             Ed Schonberg  <schonberg@adacore.com>
7153
7154         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
7155         assert fail
7156
7157         * ug_words: Add entries for -gnatw.a -gnatw.A
7158
7159         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
7160         literal is a subtype with non-static constraints, use the base type of
7161         the context as the base of the string subtype, to prevent type
7162         mismatches in gigi.
7163         (Resolve_Actuals): If the actual is an entity name, generate a
7164         reference before the actual is resolved and expanded, to prevent
7165         spurious warnings on formals of enclosing protected operations.
7166         (Analyze_Overloaded_Selected_Component): If type of prefix if
7167         class-wide, use visible components of base type.
7168         (Resolve_Selected_Component): Ditto.
7169         (Resolve_Short_Circuit): Detect case of pragma Assert argument
7170         evaluating to False, and issue warning message.
7171
7172         * usage.adb: Add lines for -gnatw.a and -gnatw.A
7173
7174 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7175
7176         * g-calend.ads (No_Time): New constant, to represent an uninitialized
7177         time value
7178
7179         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
7180         formats.
7181         (Month_Name_To_Number): New subprogram
7182
7183         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
7184         letter to upper-case.
7185
7186 2007-12-13  Robert Dewar  <dewar@adacore.com>
7187             Ed Schonberg  <schonberg@adacore.com>
7188
7189         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
7190
7191         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
7192         context is a limited view, use non-limited view when available. If the
7193         non-limited view is an unconstrained array, this enforces consistency
7194         requirements in 3.10.2 (27).
7195         (Layout_Type): For an access type whose designated type is a limited
7196         view, examine its declaration to determine if it is an unconstrained
7197         array, and size the access type accordingly.
7198         (Layout_Type): Do not force 32-bits for convention c subprogram
7199         pointers in -gnatdm mode, only if real vms target.
7200
7201         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
7202         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7203         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
7204         violations of the No_Implicit_Dynamic_Code restriction.
7205         (Resolve_Attribute, case 'Access): If designated type of context is a
7206         limited view, use non-limited view when available. If the non-limited
7207         view is an unconstrained array, this enforces consistency requirements
7208         in 3.10.2 (27).
7209         (Layout_Type): For an access type whose designated type is a limited
7210         view, examine its declaration to determine if it is an unconstrained
7211         array, and size the access type accordingly.
7212
7213 2007-12-13  Vincent Celier  <celier@adacore.com>
7214
7215         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
7216         object directory of main project does not exist.
7217         On VMS, correctly set then environment variable for the source
7218         directories.
7219
7220 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
7221
7222         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
7223         set to True this procedure will create the value of type REG_EXPAND_SZ.
7224         It was only possible to create REG_SZ values before.
7225
7226 2007-12-13  Robert Dewar  <dewar@adacore.com>
7227
7228         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
7229         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
7230         namet-sp.adb, namet-sp.ads: New files.
7231
7232         * g-speche.adb: Use generic routine in g-spchge
7233
7234         * s-wchcnv.ads, s-wchcnv.adb: 
7235         Minor code cleanup (make formal type consistent with spec)
7236
7237         * namet.adb: Update comments.
7238
7239         * par-endh.adb (Evaluate_End_Entry): Use new
7240         Namet.Sp.Is_Bad_Spelling_Of function
7241
7242         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
7243
7244         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
7245         ancestor is an access type initialized with a box, set its type
7246         explicitly, for use in subsequent expansion.
7247         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
7248         function
7249
7250 2007-12-13  Robert Dewar  <dewar@adacore.com>
7251
7252         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
7253         access Vstring)
7254
7255 2007-12-13  Robert Dewar  <dewar@adacore.com>
7256
7257         * inline.adb (Back_End_Cannot_Inline): Use new flag
7258         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7259
7260         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
7261         Has_Pragma_Inline_Always instead.
7262         of obsolete function Is_Always_Inlined
7263         (Build_Body_To_Inline): Same change
7264         (Cannot_Inline): Same change
7265         Do not give warning on exception raise in No_Return function
7266
7267         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
7268         component has two inconsistent component clauses in the same record
7269         representation clause, favor the message that complains about
7270         duplication rather than inconsistency.
7271         Update comments.
7272         (Record_Representation_Clause): Do not warn on missing component
7273         clauses for inherited components of a type extension.
7274         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
7275         an overloadable item if it is a pragma that can apply to multiple
7276         overloadable entities (e.g. Inline) because a pragma cannot be on
7277         more than one chain at a time.
7278         (Validate_Unchecked_Conversion): Add code to warn on unchecked
7279         conversion where one of the operands is Ada.Calendar.Time.
7280         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
7281         For now, ignore Component_Size clause on VM targets, as done for
7282         pragma Pack.
7283
7284 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7285             Vincent Celier  <celier@adacore.com>
7286
7287         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
7288         string
7289         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
7290         prj.ads
7291         (Hash): Move instantiation of System.HTable.Hash from spec to body
7292         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
7293         systems, since we do not need to recompute the Name_Id for the canonical
7294         file name.
7295         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
7296         as a parameter. This parameter is in fact always "ada" in all calls, and
7297         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
7298         while loading a project with 40000 files
7299
7300         * prj-attr.adb: Fix name of attribute Dependency_Driver
7301         Change the kind of indexing for attribute Root
7302
7303         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
7304         variables already declared, in case constructions.
7305
7306         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
7307         Current_Object_Path_File to No_Path.
7308
7309         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
7310         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
7311
7312         * prj-makr.adb: new parameter Current_Dir
7313
7314         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
7315         Ada sources when language is not Ada.
7316         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
7317         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
7318         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
7319         (Locate_Directory): Always resolve links when computing Canonical_Path
7320         (Look_For_Sources): Make sure that Name_Buffer contains the file name
7321         in Source_Files before checking for the presence of a directory
7322         separator.
7323         Optimize calls to Name_Find when on case sensitive systems.
7324         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
7325         as a parameter.
7326         (Prj.Nmsc.Check): new parameter Current_Dir
7327         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
7328         cannot be empty and the spec suffix cannot be the same as the body or
7329         separate suffix.
7330         (Get_Unit): When a file name can be of several unit kinds (spec, body or
7331         subunit), always consider the longest suffix.
7332         (Check_Configuration): Do not issue an error if there is no compiler
7333         for a language. Just issue a warning and ignore the sources for the
7334         language.
7335         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
7336         not empty.
7337         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
7338         (Unit_Exceptions): New hash table
7339         (Check_Naming_Schemes): Check if a file that could be a unit because of
7340         the naming scheme is not in fact a source because there is an exception
7341         for the unit.
7342         (Look_For_Sources): Put the unit exceptions in hash table
7343         Unit_Exceptions
7344         (Get_Unit_Exceptions): Give initial value No_Source to local variable
7345         Other_Part to avoid exception when code is compiled with validity
7346         checking.
7347         (Get_Sources_From_File): Check that there is no directory information
7348         in the file names.
7349         (Look_For_Sources): Check that there is no directory information in the
7350         list of file names in Source_Files.
7351         (Look_For_Sources): In multi-language mode, do not allow exception file
7352         names that are excluded.
7353         (Excluded_Sources_Htable): New hash table
7354         (Search_Directories.Check_File): New procedure to simplify
7355         Search_Directories.
7356         (Search_Directories): Do not consider excluded sources
7357         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
7358         Search_Directories.
7359         (Get_Exceptions): Set component Lang_Kind of Source_Data
7360         (Get_Unit_Exceptions): Ditto
7361         (Search_Directories): Ditto
7362
7363         * prj-pars.adb: new parameter Current_Dir
7364
7365         * prj-part.ads, prj-part.adb: 
7366         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
7367         (Opt.Follow_Links_For_Dirs): New flag
7368         (Project_Path_Name_Of): Cache information returned by this routine as
7369         Locate_Regular_File is a costly routine. The code to output a log
7370         information and the effective call to Locate_Regular_File is now
7371         factorized into a routine (code clean-up).
7372         (Parse, Parse_Single_Project): new parameter Current_Dir
7373         When main project file cannot be found, indicate in the error
7374         message the project path that was used to do the search.
7375
7376         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
7377         (Prj.Proc.Process*): new parameter Current_Dir
7378
7379         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
7380
7381 2007-12-13  Bob Duff  <duff@adacore.com>
7382
7383         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
7384         procedure to be called from the back end to check the
7385         No_Implicit_Dynamic_Code restriction.
7386
7387 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7388
7389         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
7390         Fixes another case where RTE_Available_Call was ignored instead of being
7391         taken into account.
7392         (Load_Fail): Ditto.
7393
7394         * rtsfind.ads: Add new entries.
7395
7396 2007-12-13  Robert Dewar  <dewar@adacore.com>
7397
7398         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
7399         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
7400
7401         * scn.adb: Implement BOM recognition
7402
7403 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7404             Ed Schonberg  <schonberg@adacore.com>
7405
7406         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
7407         subprogram body that acts as its own spec may not have a non-private
7408         WITH clause on a private sibling.
7409         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
7410         child unit is a renaming, create an implicit with_clause on that
7411         parent, and not on the unit it renames, to prevent visibility errors
7412         in the current unit.
7413
7414 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7415
7416         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
7417         renaming declaration, use the Slocs of the formal parameters from the
7418         declaration of the formal subprogram when creating the formal parameter
7419         entities in the renaming declaration.
7420         (Analyze_Formal_Type_Declaration): Change the placement of the error
7421         message concerning illegal known discriminants. It is now posted on the
7422         type rather than on the first discriminant. This change ensures early
7423         error report.
7424         (Freeze_Subprogram_Body): If the generic subprogram is nested within
7425         the package body that contains the instance, do not generate an
7426         out-of-place freeze node for the enclosing package.
7427         (Collect_Previous_Instantiations): Ignore internal instantiations
7428         generated for formal packages.
7429         (Validate_Derived_Type_Instance): Add a check that when a formal
7430         derived type is Known_To_Have_Preelab_Init then the actual type must
7431         have preelaborable initialization, and issue an error when this
7432         condition is violated.
7433
7434 2007-12-13  Robert Dewar  <dewar@adacore.com>
7435
7436         * s-imenne.adb, s-imenne.ads: New files.
7437
7438         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
7439         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
7440         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
7441         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
7442         s-imgwch.ads: New calling sequence for Image routines to avoid sec
7443         stack usage.
7444
7445 2007-12-13  Javier Miranda  <miranda@adacore.com>
7446             Ed Schonberg  <schonberg@adacore.com>
7447
7448         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
7449         generation of spurious error if parent is an interface type; caused
7450         because predefined primitive bodies will be generated later by
7451         Freeze_Record_Type.
7452         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
7453         flag.
7454         (Derive_Subprograms): Handle derivations of predefined primitives
7455         after all the user-defined primitives to ensure that they are
7456         found in proper order in instantiations.
7457         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
7458         of Related_Interface to Related_Type.
7459         (Record_Type_Declaration): Minor reordering of calls to decorate the
7460         Tag component because the entity must have set its Ekind attribute
7461         before setting its Is_Tag attribute.
7462         (Analyze_Subtype_Declaration): In the case of subtypes with
7463         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
7464
7465 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7466             Ed Schonberg  <schonberg@adacore.com>
7467
7468         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
7469         statement to the list of contexts where a selected component with a
7470         concurrent tagged type prefix should yield a primitive operation.
7471         (Find_Primitive_Operation): Handle case of class-wide types.
7472         (Analyze_Overloaded_Selected_Component): If type of prefix is
7473         class-wide, use visible components of base type.
7474         (Resolve_Selected_Component): Ditto.
7475         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
7476         formal of a generic subprogram. find candidate interpretations by
7477         scanning the list of generic formal declarations.:
7478         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
7479         type from a limited_with_clause, and the full view is available, use it
7480         for subsequent semantic checks.
7481         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
7482         (Find_Primitive_Operation): New function.
7483         (Analyze_Overloaded_Selected_Component): insert explicit dereference
7484         only once if several interpretations of the prefix yield an access type.
7485         (Try_Object_Operation): Code and comment cleanup.
7486         (Analyze_Selected_Component): Reorder local variables. Minot comment and
7487         code reformatting. When the type of the prefix is tagged concurrent, a
7488         correct interpretation might be available in the primitive and
7489         class-wide operations of the type.
7490
7491 2007-12-13  Robert Dewar  <dewar@adacore.com>
7492             Ed Schonberg  <schonberg@adacore.com>
7493
7494         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
7495         renaming entry as subprogram using rename-as-body if subprogram spec
7496         frozen.
7497         (Use_One_Type): The clause is legal on an access type whose designated
7498         type has a limited view.
7499         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7500         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7501         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
7502         operation denoted by a selected component.
7503         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
7504         it can be an expression, possibly overloaded, that returns a task or
7505         an access to one.
7506
7507 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7508             Gary Dismukes  <dismukes@adacore.com>
7509
7510         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
7511         requeue statement is dispatching. Do not emit an error when the name is
7512         not an entry and the context is a dispatching select. Add code to
7513         perform subtype conformance between the formals of the current entry
7514         and those of the target interface primitive.
7515         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
7516         Timed_Entry_Call): Analyze the triggering statement as the first step of
7517         the processing. If this is a dispatching select, postpone the analysis
7518         of all select statements until the Expander transforms the select. This
7519         approach avoids generating duplicate identifiers after the Expander has
7520         replicated some of the select statements. In case the Expander is
7521         disabled, perform regular analysis.
7522         (Check_Triggering_Statement): New routine.
7523         (Analyze_Requeue): Exclude any interpretations that are not entries when
7524         checking overloaded names in a requeue. Also test type conformance for
7525         matching interpretations rather than requiring subtype conformance at
7526         that point to conform with the RM's resolution rule for requeues.
7527
7528 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7529
7530         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
7531         inherited operation is a defaulted tag-indeterminate call, and there is
7532         a statically tagged actual, use the static tag as a controlling actual
7533         for the defaulted actual.
7534
7535 2007-12-13  Geert Bosch  <bosch@adacore.com>
7536
7537         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
7538         context, so do not call Check_Non_Static_Context.
7539
7540 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7541
7542         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
7543         whether formal E is an entity which may have parameters.
7544
7545 2007-12-13  Bob Duff  <duff@adacore.com>
7546             Javier Miranda  <miranda@adacore.com>
7547             Robert Dewar  <dewar@adacore.com>
7548
7549         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
7550         (Set_Convention): New procedure to set the Convention flag, and in
7551         addition make sure the Favor_Top_Level flag is kept in sync (all
7552         foreign-language conventions require Favor_Top_Level = True).
7553         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
7554         to Related_Type.
7555         (Collect_Interfaces_Info): Minor update to handle the two secondary
7556         dispatch tables. Update occurrence of Related_Interface to Related_Type.
7557         (Generate_Parent_Ref): Add parameter to specify entity to check
7558         (Is_Preelaborable_Expression): Allow the name of a discriminant to
7559         initialize a component of a type with preelaborable initialization.
7560         This includes the case of a discriminal used in such a context.
7561         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
7562         latest Ada 2005 rules about renaming and 'Access of
7563         discriminant-dependent components.
7564         (Check_Nested_Access): Add handling when there are no enclosing
7565         subprograms (e.g. case of a package body).
7566         (Find_Parameter_Type): Factor routine from several other compiler files.
7567         Remove routine from Find_Overridden_Synchronized_Primitive.
7568
7569 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7570
7571         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
7572         an invalid access to an uninitialized slot in the
7573         Source_File_Index_Table.
7574
7575 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7576
7577         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
7578
7579 2007-12-13  Bob Duff  <duff@adacore.com>
7580
7581         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
7582         access-to-subprogram types in this package.
7583
7584 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7585
7586         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
7587         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
7588         Stack_Overlay_Address and document that we are using an internal
7589         abstraction.
7590         (Byte_Size, Unsigned_32_Size): Remove, now useless.
7591         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
7592         consistently throughout the various implementation pieces.
7593
7594         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
7595         overlay we are using to fill the stack area with patterns.
7596         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
7597         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
7598         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
7599
7600 2007-12-13  Robert Dewar  <dewar@adacore.com>
7601
7602         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
7603
7604 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7605
7606         * s-tassta.adb: 
7607         (Create_Task): Take into account tasks created by foreign threads.
7608         Code clean up: use constants instead of hard coded values.
7609
7610 2007-12-13  Robert Dewar  <dewar@adacore.com>
7611
7612         * styleg.adb (Check_Comment): More liberal rules for comment placement
7613
7614 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7615
7616         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
7617         of Procedure Value instead of Frame Pointer as the invocation
7618         identifier associated with the instruction pointer in each traceback
7619         entry.
7620
7621         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
7622         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
7623         Pointer as the invocation identifier passed to tbk$symbolize.
7624
7625         * s-traent-vms.ads, s-traent-vms.adb
7626         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
7627         Procedure Value instead of Frame Pointer as the invocation identifier
7628         passed to tbk$symbolize.
7629
7630 2007-12-13  Robert Dewar  <dewar@adacore.com>
7631
7632         * tbuild.ads, tbuild.adb: 
7633         Fix location of flag for unrecognized pragma message
7634
7635 2007-12-13  Robert Dewar  <dewar@adacore.com>
7636
7637         * treepr.ads, treepr.adb: (pl): implement use of positive value
7638         shorthands
7639
7640 2007-12-13  Robert Dewar  <dewar@adacore.com>
7641
7642         * xeinfo.adb: Remove warnings
7643         * xnmake.adb: Remove warnings
7644         * xsinfo.adb: Remove warnings
7645         * xtreeprs.adb: Remove warnings
7646         * xsnames.adb: Remove warnings
7647
7648         * a-ngcoar.adb: Fix typo.
7649         * s-interr.adb: Minor reformatting
7650         * env.c: Minor reformatting.
7651         * g-bytswa.adb: Minor reformatting.
7652         * g-rannum.ads: Minor documentation improvements
7653         * s-tasinf-mingw.adb: Minor header fix
7654         * a-clrefi.adb: Minor reformatting
7655         * g-sttsne.ads: Minor documentation improvement
7656         * g-sttsne-locking.ads: Minor documentation improvement
7657         * g-soliop-solaris.ads: Minor documentation improvement
7658         * g-soliop-mingw.ads: Minor documentation improvement
7659         * g-soliop.ads: Minor documentation improvement
7660         * exp_aggr.ads: Minor reformatting
7661         * debug.adb: Add documentation for the gprbuild debug flags
7662         * exp_ch2.adb: Use Nkind_In to simplify code throughout
7663         * exp_pakd.adb: Minor reformatting
7664
7665         * g-altive.ads, g-alleve.adb: Remove assertions.
7666         Add comment about minor differences between targets regarding
7667         floating-point operations.
7668
7669         * g-thread.adb: Remove pragma unreferenced.
7670         * lib.ads: Minor reformatting
7671         * par-ch9.adb: Minor reformatting of error messages
7672         * sem_case.adb: Minor reformatting
7673         * s-fileio.adb: Minor reformattinng
7674         * s-vmexta.ads: Minor typo
7675         * vxaddr2line.adb: 
7676         Take into account 'Success' value as per new GNAT warning.
7677
7678 2007-12-13  Vincent Celier  <celier@adacore.com>
7679
7680         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
7681         even on Windows
7682
7683 2007-12-13  Robert Dewar  <dewar@adacore.com>
7684             Bob Duff  <duff@adacore.com>
7685
7686         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
7687         Document that suffixes may be terminations of each others
7688         Add doc for -gnatw.a and -gnatw.A
7689         Document gnatbind -Wx switch
7690         Document BOM recognition
7691         Document pragma Implemented_By_Entry.
7692         Document new units.
7693
7694         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
7695         Add doc for pragma Unreferenced suppressing no entities referenced msg
7696         Add documentation of GNAT.Directory_Operations.Iteration
7697         Add documentation of GNAT.Random_Numbers
7698         Add documentation for pragma Shared.
7699         Correct documentation for Bit_Order
7700         Add documentation for the Pool_Address attribute.
7701         Fix and improve documentation of pragma machine_attribute.
7702         New pragma Fast_Math
7703         Document BOM recognition
7704
7705         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
7706         Add /Wide_Character_Encoding for binder
7707         Add qualifier for the new gnatpp option --no-separate-loop-then
7708
7709 2007-12-13  Matthew Heaney  <heaney@adacore.com>
7710
7711         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
7712         which generic formal operations are called for each operation.
7713
7714 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7715
7716         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
7717         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
7718
7719 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7720
7721         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
7722         Reference_Dir unless we actually need it.
7723
7724 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
7725             Tristan Gingold  <gingold@adacore.com>
7726
7727         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
7728
7729         * s-osprim-vms.adb,
7730         a-calend-vms.adb: Remove pragma warning off and add pragma
7731         unreferenced.
7732
7733 2007-12-13  Robert Dewar  <dewar@adacore.com>
7734
7735         * impunit.adb: Add entries for missing units
7736
7737         * Makefile.rtl: Add new run-time units.
7738
7739         * Make-lang.in:  Update dependencies.
7740
7741 2007-12-13  Bob Duff  <duff@adacore.com>
7742
7743         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
7744         types, set Can_Use_Internal_Rep appropriately, based on
7745         Always_Compatible_Rep_On_Target.
7746
7747 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7748             Arnaud Charlet  <charlet@adacore.com>
7749
7750         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
7751         it to the front end and setting the aamp_target environment variable
7752         to the switch's argument to ensure that gnaampbind and gnaamplink will
7753         take the specified library into account.
7754         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
7755         target, since the CIL compiler supports an "object" file (.il files).
7756
7757 2007-12-13  Vincent Celier  <celier@adacore.com>
7758
7759         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
7760         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
7761
7762 2007-12-13  Geert Bosch  <bosch@adacore.com>
7763
7764         * s-parame-vxworks.adb: 
7765         Update comments to reflect usage of this package by Nucleus.
7766
7767 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7768
7769         * i-vxwork.ads: Kill new warning on Convention C, since changing the
7770         spec would break code.
7771
7772         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
7773
7774         * system-vxworks-alpha.ads: Removed.
7775
7776 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
7777
7778         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
7779
7780 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
7781
7782         PR ada/34366
7783         * sem_ch3.adb (Designates_T): New function.
7784         (Mentions_T): Factor reusable part of the logic into Designates_T.
7785         Consider non-access parameters and access and non-access result.
7786         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
7787         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
7788
7789         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
7790
7791 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
7792
7793         PR ada/34361
7794         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
7795         the new implementation of target-specific calls.
7796
7797 2007-12-07  Olivier Hainque  <hainque@adacore.com>
7798
7799         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
7800         the designated full view, only follow a second level Full_View link
7801         for Non_Limited_Views of from_limited_with references.
7802         
7803 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
7804
7805         PR ada/15805
7806         * sem_ch6.adb (Process_Formals): Prevent an access type formal
7807         to be initialized with an access to constant object.
7808
7809         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
7810         when an access to constant is used to initialize an access
7811         value.
7812
7813         PR ada/21346
7814         * a-direct.adb (Compose): Containing_Directory can be an empty string.
7815
7816 2007-12-07  Olivier Hainque  <hainque@adacore.com>
7817
7818         PR ada/34173
7819         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
7820         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
7821         this is from an alignment clause on the GNAT entity.
7822         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
7823         to distinguish the case where we set it from the type's alignment.
7824         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
7825         whether this alignment was set from an explicit alignment clause.
7826
7827 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
7828
7829         * decl.c (make_packable_type): Revert last change.
7830         (gnat_to_gnu_field): Avoid setting size and position multiple times.
7831         * utils.c (finish_record_type): Retrieve the real name of the type.
7832
7833 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
7834
7835         * trans.c (lvalue_required_p): Take base node directly instead
7836         of its parent.  Rename second parameter to 'gnu_type'.
7837         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
7838         <N_Slice>: Likewise.
7839         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
7840         Adjust calls to lvalue_required_p.
7841
7842 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
7843
7844         PR ada/21489
7845         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
7846         parameters of an entry call.
7847
7848 2007-12-03  Robert Dewar  <dewar@adacore.com>
7849             Samuel Tardieu  <sam@rfc1149.net>
7850
7851         PR ada/34287
7852         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
7853         of variables declared in a library-level package.
7854     
7855 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
7856
7857         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
7858         of Empty_String'Unchecked_Access.
7859
7860         * Makefile.in: Add support for sh4-linux.
7861
7862         * system-linux-sh4.ads: New file.
7863
7864 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
7865
7866         PR ada/33722
7867         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
7868         and its argument must not be free()ed.
7869
7870 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
7871
7872         * decl.c (make_packable_type): Retrieve the real name of the type.
7873         (maybe_pad_type): Simplify similar code.
7874
7875 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
7876
7877         PR ada/15804
7878         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
7879         than an identifier is used after "case" in a variant_part.
7880
7881         PR ada/17318
7882         * par-ch4.adb (Is_Parameterless_Attribute): New map.
7883         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
7884         attribute name or not depending on the new map.
7885
7886         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
7887         returning a string or a type will not be called with improper
7888         arguments.
7889
7890         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
7891
7892         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
7893
7894         PR ada/32792
7895         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
7896         Signal an error when attribute argument is a fixed-point value of
7897         an unknown type.
7898
7899         PR ada/22559
7900         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
7901         a derived ordinary fixed point type.
7902
7903         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
7904         RM_Size when a Small clause is found.
7905
7906 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
7907
7908         PR 34081/C++
7909         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
7910         Pass 'false' for the new allocate_struct_function parameter.
7911         * utils.c (build_function_stub): Likewise.
7912
7913 2007-11-25  Richard Guenther  <rguenther@suse.de>
7914
7915         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
7916         (gnat_poplevel): Likewise.
7917
7918 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
7919
7920         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
7921         strict alignment, no alignment clause and a known static size, cap
7922         the type alignment to the greatest power of 2 factor of the size.
7923         (gnat_to_gnu_field): If the field has a component clause, is aliased
7924         or of a type with strict alignment, require that its size be equal to
7925         that of the type.
7926         (validate_size): Use the type size as the minimum size for a type with
7927         strict alignment.
7928
7929 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
7930
7931         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
7932         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7933         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
7934         Use 'Access instead of 'Unchecked_Access in second and third
7935         arguments of pthread_sigmask.
7936
7937 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
7938
7939         * decl.c (ceil_alignment): New function.
7940         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
7941         (make_packable_type): Likewise.
7942
7943 2007-11-22  Olivier Hainque  <hainque@adacore.com>
7944
7945         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
7946         to fit in 80 columns.
7947
7948 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
7949
7950         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
7951         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
7952
7953 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
7954
7955         PR ada/34098
7956         * misc.c (gnat_adjust_rli): Delete.
7957         (gnat_init): Do not initialize the translation code here.
7958         Do not call set_lang_adjust_rli.
7959         * trans.c (init_code_table): Make static.
7960         (gnat_init_stmt_group): Delete.
7961         (gigi): Initialize the translation code entirely here.
7962         Emit debug info for the common types here instead of...
7963         * utils.c (gnat_init_decl_processing): ...here.
7964         * gigi.h (init_code_table): Delete.
7965         (gnat_init_stmt_group): Likewise.
7966
7967 2007-11-16  Olivier Hainque  <hainque@adacore.com>
7968
7969         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
7970         retrieving an allocator return value from a super-aligned address from
7971         here to ...
7972         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
7973         expect a super-aligned address for a fat or thin pointer.
7974         
7975 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
7976
7977         * trans.c (call_to_gnu): Always set the source location on the call
7978         expression.  If the function returns-by-target, also set it on the
7979         address expression.
7980
7981 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
7982
7983         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
7984         sections of non-supported Interix target.
7985
7986         * s-osinte-interix.ads: Removed.
7987
7988         * i-cstrin.ads (chars_ptr): Make it a C convention type.
7989
7990 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
7991
7992         * a-tasatt.adb: Add a comment at the beginning of the package
7993         explaining why in general 'Unchecked_Access must be used instead
7994         of 'Access.
7995
7996         * sem_prag.adb (Process_Convention): Move the test for the
7997         entity on which the Convention pragma applies down to also
7998         forbid pragma Convention on enumeration literals reached
7999         through renamings.
8000
8001 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
8002
8003         * a-tasatt.adb: Revert previous change for this file as it will
8004         generate an error when this package is instantiated from a
8005         local context.
8006
8007 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
8008
8009         * a-tasatt.adb: Type Wrapper should be declared in comment instead
8010         of already declared type Node_Access.
8011         Use 'Access instead of 'Unchecked_Access when applicable. Local
8012         lifetime is the one of the package.
8013         (Set_Value): W is allocated on the heap.
8014
8015         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8016         applicable.
8017         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8018         access type.
8019         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8020         access type.
8021
8022         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8023         applicable.
8024         (elaboration code): Timer_Queue lifetime is the one of the
8025         package.
8026
8027         * tracebak.c (i386 alternative): Remove useless comparaison
8028         which is always false; LOWEST_ADDRESS is 0 and is never greater
8029         than an unsigned integer.
8030
8031         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8032         embedded check for "Ada_Version >= Ada_05".
8033
8034 2007-11-07  Olivier Hainque  <hainque@adacore.com>
8035
8036         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8037         craft and expand comment.
8038
8039 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
8040
8041         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8042
8043 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
8044
8045         * misc.c (gnat_handle_option): Replace call to abort with
8046         call to gcc_unreachable.
8047         (gnat_init): Likewise.
8048         (gnat_expand_expr): Likewise.
8049         (fp_prec_to_size): Likewise.
8050         (fp_size_to_prec): Likewise.
8051
8052 2007-10-23  Richard Guenther  <rguenther@suse.de>
8053
8054         PR bootstrap/33608
8055         * tracebak.c: #undef abort after including system.h.
8056
8057 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
8058
8059         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
8060         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
8061         for win32 targets.
8062         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
8063
8064 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
8065
8066         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
8067         Set the protection status of the guard page based on the value of On.
8068
8069         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
8070
8071         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
8072         (Exit_Task): Pass False to Hide_Yellow_Zone.
8073
8074 2007-10-15  Robert Dewar  <dewar@adacore.com>
8075
8076         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
8077         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
8078         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
8079         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
8080         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
8081         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
8082         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
8083         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
8084         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
8085         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
8086         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
8087         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
8088         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
8089         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
8090         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
8091         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
8092         Minor reformatting.
8093         Add Unreferenced and Warnings (Off) pragmas for cases of
8094         variables modified calls where they are IN OUT or OUT parameters and
8095         the resulting values are not subsequently referenced. In a few cases,
8096         we also remove redundant code found by the new warnings.
8097
8098         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
8099         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
8100         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
8101         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
8102         warning controlled by -gnatw.o that warns on cases of out parameter
8103         values being ignored.
8104
8105 2007-10-15  Geert Bosch  <bosch@adacore.com>
8106
8107         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
8108
8109         * expect.c: Initial port to arm-mentor-nucleus.
8110         Use kill for __gnat_kill() on VMS.
8111
8112 2007-10-15  Emmanuel Briot  <briot@adacore.com>
8113
8114         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
8115         value.
8116         (Xref_Record): Change type for Line, since in the case of a reference to
8117         a predefined entity (as happens for array index types), the line is set
8118         to 0.
8119         Add support for parsing multiple array index types info, or
8120         multiple inherited interfaces info. This information cannot be stored
8121         in Xref_Entity_Record, which only supports a single instance of Tref_*,
8122         and is therefore stored in the list of references instead. It has a
8123         special treatement later on in tools that use this information.
8124
8125 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8126
8127         * debug.adb: Document use of -gnatd.a and -gnatd.I
8128
8129         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
8130
8131 2007-10-15  Javier Miranda  <miranda@adacore.com>
8132
8133         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
8134         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
8135         care of access to class-wide interface types plus removal of bizarre
8136         conversion of tagged object to access type (reported by Gary
8137         Dismukes). After this patch there is no need to perform any
8138         additional management on these nodes in Expand_Interface_Actuals.
8139
8140         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
8141         that handles use of 'Access and 'Unchecked_Access applied to
8142         actuals covering interface types. Such code is now
8143         centralized in Expand_N_Attribute_Reference.
8144
8145 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8146
8147         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
8148         of tagged types whose ultimate ancestor is a CPP type.
8149         (Freeze_Array_Type): For a packed array type, generate an initialization
8150         procedure if the type is public, to handle properly a client that
8151         specifies Normalize_Scalars.
8152
8153 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8154
8155         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
8156         inside a generic body, retrieve the full view of the entry family
8157         discrete subtype if available.
8158
8159 2007-10-15  Thomas Quinot  <quinot@adacore.com>
8160
8161         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
8162         attempt to generate stubs for hidden primitive operations.
8163
8164 2007-10-15  Vincent Celier  <celier@adacore.com>
8165
8166         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
8167         returning None, used when there is no platform specific body for
8168         MLib.Tgt.Specific.
8169
8170 2007-10-15  Bob Duff  <duff@adacore.com>
8171
8172         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
8173         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
8174         the generic Heap_Sort_G, in order to avoid trampolines.
8175
8176 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
8177             Jose Ruiz  <ruiz@adacore.com>
8178
8179         * vx_stack_info.c: New file.
8180
8181         * i-forbla-unimplemented.ads: New file.
8182
8183         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
8184         for unsupported configurations; use it on VMS targets instead of the
8185         real one.
8186         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
8187         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
8188         used by VxWorks targets to have access to task-specific data and be
8189         able to extract the stack boundaries for stack checking.
8190         Use system-vms-ia64.ads on ivms.
8191
8192         * Make-lang.in: Update dependencies.
8193
8194         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
8195         (vx_stack_info.c).
8196
8197 2007-10-15  Vincent Celier  <celier@adacore.com>
8198
8199         * snames.adb, snames.ads: Add new standard name runtime_library_dir
8200
8201         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
8202
8203         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
8204
8205         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
8206         the source is unknown.
8207
8208         * prj-ext.adb: Spelling error fix
8209
8210         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
8211         95 reserved word in its name.
8212         (Process_Project_Level_Array_Attributes): Process new attribute
8213         Runtime_Library_Dir.
8214
8215         * prj-part.adb (Parse_Single_Project): Do not check the name of the
8216         config project against the user project names.
8217
8218         * prj-proc.adb (Expression): In multi-language mode, indexes that do
8219         not include a dot are always case insensitive.
8220         (Process_Declarative_Items): Ditto
8221         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
8222         detected.
8223
8224         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
8225         True, compare both indexes in lower case.
8226
8227 2007-10-15  Robert Dewar  <dewar@adacore.com>
8228
8229         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
8230
8231 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
8232
8233         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
8234         association for an access component, add an association with null as
8235         the expression. Remove testing for array subtypes and the setting in
8236         that case of Ctyp to the array component type, which prevented proper
8237         inclusion of an association for null-initialized arrays. Collapse
8238         condition that tests for array subtypes into just a test of
8239         Is_Partially_Initialized_Type (which already covers arrays anyway).
8240
8241 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8242
8243         * sem_ch12.adb: Minor code reformatting.
8244         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
8245         find the parent package which may have been hidden by local
8246         declarations.
8247
8248 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
8249
8250         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
8251         flag of derived concurrent types, taking into account the flag setting
8252         on the parent subtype and any new set of discriminants.
8253
8254 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
8255
8256         * sem_ch4.adb: Minor code and comment reformatting.
8257         (Analyze_Allocator): When the designated type of an unconstrained
8258         allocator is a record with unknown discriminants or an array with
8259         unknown range bounds, emit a detailed error message depending on the
8260         compilation mode and whether the designated type is limited.
8261
8262 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8263
8264         * system-vms-ia64.ads: New file.
8265
8266         * system-vms_64.ads: Minor comment fix.
8267
8268 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8269
8270         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
8271         body generated for a function with a controlling result that is a null
8272         extension, discard the generated body in favor of the current explicit
8273         one.
8274
8275 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
8276
8277         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
8278         examining its original form, to handle properly operator calls that
8279         have been rewritten.
8280
8281 2007-10-15  Olivier Hainque  <hainque@adacore.com>
8282
8283         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
8284         instead of a procedure value in each traceback entry.
8285
8286         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
8287         instead of procedure value to TBK$SYMBOLIZE.
8288
8289         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
8290         field.
8291         (TB_Entry_For): Account for the PV/FP renaming.
8292
8293         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
8294         add comment.
8295         (Null_TB_Entry): Account for change of component name.
8296         (PV_For): Rename as FP_For.
8297
8298 2007-10-15  Tristan Gingold  <gingold@adacore.com>
8299
8300         * trans.c (gnat_to_gnu): Remove the padding structure more often.
8301         This optimize assignment to over-aligned record.
8302
8303 2007-10-15  Emmanuel Briot  <briot@adacore.com>
8304
8305         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
8306         interfaces.
8307
8308         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
8309         type, for dispatching calls.
8310
8311 2007-10-15  Vincent Celier  <celier@adacore.com>
8312             Robert Dewar  <dewar@adacore.com>
8313
8314         * gnat_ugn.texi: Add documentation for switches --version and --help
8315         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
8316         gnatxref, gnatfind, gnatls, and gnatclean.
8317         Document -gnatw.o.
8318         Mention attribute Excluded_Source_Dirs
8319         Replace obsolescent attribute Locally_Removed_Files with attribute
8320         Excluded_Source_Files.
8321         Improve documentation of -u (gnatbind)
8322         Document how to do reliable stack checking for the environmental task
8323         on iVMS.
8324
8325         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
8326         Document attribute Excluded_Source_Files and indicate that attribute
8327         Locally_Removed_Files is obsolescent.
8328
8329 2007-10-15  Thomas Quinot  <quinot@adacore.com>
8330
8331         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
8332
8333         * gen-soccon.c: 
8334         Update documentation to note that OpenVMS 8.3 or later must be used
8335         to generate g-soccon-vms.ads.
8336
8337         * atree.adb: Add ??? comment
8338
8339         * exp_util.adb: Minor reformatting.
8340         Add ??? comment in Kill_Dead_Code.
8341
8342 2007-10-15  Robert Dewar  <dewar@adacore.com>
8343
8344         * errout.ads: Comment clarification
8345
8346         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
8347         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
8348
8349         * lib.ads: Comment update
8350
8351         * init.c: Minor reformatting.
8352
8353         * sem_attr.adb: Minor formatting
8354
8355         * osint-b.ads: Minor reformatting
8356
8357         * sem_ch9.adb: Implement -gnatd.I switch
8358
8359         * g-comlin.adb: (Start): Fix handling of empty command line.
8360
8361         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
8362         even when -rules follows the -cargs section.
8363
8364 2007-10-08  Ollie Wild  <aaw@google.com>
8365
8366         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
8367         gnat_return_tree.
8368         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
8369         gnat_return_tree.
8370         (gnat_eh_runtime_type): Removed.
8371         (gnat_return_tree): New function.
8372
8373 2007-10-08  Ben Elliston  <bje@au.ibm.com>
8374
8375         PR ada/33454
8376         Revert:
8377         2007-08-31  Ben Elliston  <bje@au.ibm.com>
8378
8379         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8380         when compiling for powerpc64-*-linux.
8381         * system-linux-ppc64.ads: New file.
8382
8383 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
8384
8385         Mapped location support
8386         * back_end.adb (Call_Back_End): Pass information about source
8387         files instead of units to gigi.
8388         * gigi.h (struct File_Info_Type): New.
8389         (gigi): Rename and change type of number_units parameter, change
8390         type of file_info_ptr parameter.
8391         * trans.c (number_files): New global variable.
8392         (gigi): Rename and change type of number_units parameter, change
8393         type of file_info_ptr parameter.
8394         If mapped location support is enabled, create the isomorphic mapping
8395         between source files and line maps.
8396         (Sloc_to_locus): If mapped location support is enabled, translate
8397         source location into mapped location.
8398         (annotate_with_node): Rename into set_expr_location_from_node.
8399         Call set_expr_location instead of annotate_with_locus.
8400         (Pragma_to_gnu): Adjust for above change.
8401         (Loop_Statement_to_gnu): Likewise.
8402         (call_to_gnu): Likewise.
8403         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
8404         (gnat_to_gnu): Likewise.
8405         (add_stmt_with_node): Likewise.
8406         (add_cleanup): Likewise.
8407         * utils.c (gnat_init_decl_processing): Do not set input_line.
8408
8409 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8410
8411         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
8412         (Applicable_Use): Emit a warning when a package tries to use itself.
8413         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
8414         is already in use or the package where it is declared is in use or is
8415         declared in the current package.
8416         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
8417
8418         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
8419         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
8420         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
8421
8422 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8423
8424         * a-calend-vms.adb, a-calend.adb: 
8425         Add a section on leap seconds control along with two entities used to
8426         enable and disable leap seconds support. The array Leap_Second_Times is
8427         now constant and contains hard time values pre-generated. Remove
8428         all elaboration code used to populate the table of leap seconds.
8429
8430         * bindgen.adb: 
8431         Add entity Leap_Seconds_Support to the list of global run-time variables
8432         along with a comment on its usage and values.
8433         (Gen_Adainit_Ada): Add code to generate the declaration and import of
8434         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
8435         or one (enabled) depending on the presence of binder switch "-y".
8436         (Gen_Adainit_C): Add code to generate the declaration of external int
8437         __gl_leap_seconds_support. Set is value to zero (disabled) or one
8438         (enabled) depending on the presence of binder switch "-y".
8439
8440         * init.c: Add __gl_leap_seconds_support to the list of global values
8441         computed by the binder.
8442
8443 2007-09-26  Jerome Guitton  <guitton@adacore.com>
8444
8445         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8446         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
8447          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
8448         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
8449
8450         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
8451
8452         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
8453         function which can be called by the debugger to interrupt the tasks of
8454         an Ada application asynchronously, as needed on VxWorks.
8455         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
8456
8457         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
8458         renamed from Stop_All_Tasks. Update comments.
8459         (Stop_All_tasks): New function declaration.
8460
8461 2007-09-26  Olivier Hainque  <hainque@adacore.com>
8462
8463         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
8464         #include <utime.h> and #define GCC_RESOURCE_H before
8465         #include <sys/wait.h>.
8466         Add more protections in __gnat_translate_vms.
8467
8468         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
8469         #include <sys/wait.h>.
8470
8471 2007-09-26  Thomas Quinot  <quinot@adacore.com>
8472             Sergey Rybin  <rybin@adacore.com>
8473
8474         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
8475
8476         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8477         where it belongs.
8478
8479         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8480
8481         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8482         where it belongs.
8483
8484         * sem_dist.ads: Minor comment fix
8485
8486         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8487
8488 2007-09-26  Javier Miranda  <miranda@adacore.com>
8489             Eric Botcazou  <ebotcazou@adacore.com>
8490
8491         * a-tags.adb: 
8492         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
8493          indirection added to the HT_Link component of the TSD. This is required
8494          to statically allocate the TSD.
8495
8496         * a-tags.ads: 
8497         Minor reordering of the declarations in the private part. Required to
8498         add a level of indirection to the contents of the TSD component HT_Link.
8499         This is required to statically allocate the TSD.
8500
8501         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
8502         Is_Statically_Allocated set from constant objects.
8503         Do not make exported constants created by the compiler volatile.
8504         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
8505         as read-only.
8506
8507         * trans.c (Identifier_to_gnu): For constants, unshare initializers
8508         before returning them.
8509
8510         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
8511         public part of the package.
8512         (Make_DT): Move HT_Link component out of the TSD record. For this
8513         purpose Make_DT now declares a separate object that stores the
8514         HT_Link value, and initializes the TSD component with the address
8515         of this new object. The addition of this level of indirection is
8516         required to statically allocate the TSD because the TSD cannot
8517         have variable components.
8518         (Expand_Interface_Conversion): Improve the expanded code.
8519         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
8520
8521         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
8522         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
8523         if we are building static dispatch tables then we must not generate
8524         extra code to register the primitive because the dispatch table will
8525         be built at the end of the library package; otherwise we notify that
8526         we cannot build the static dispatch table.
8527
8528 2007-09-26  Robert Dewar  <dewar@adacore.com>
8529
8530         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
8531         overlays.
8532
8533         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
8534         (Analyze_Record_Representation_Clause): Suppress junk warning for
8535         missing component clause.
8536         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
8537         tests for controlled type overlay to composites with controlled
8538         components.
8539         (Analyze_Record_Representation_Clause): Add reference for component name
8540
8541 2007-09-26  Javier Miranda  <miranda@adacore.com>
8542             Gary Dismukes  <dismukes@adacore.com>
8543
8544         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
8545         for thunks associated with interface types.
8546
8547         * einfo.ads: Improve documentatation of Is_Internal
8548         (Is_Thunk): New attribute applicable to subprograms. True for thunks
8549         associated with interface types.
8550         Extensive comment fixes regarding flags that appear in all entities. The
8551         documentation is now consistent for all such flags (there were a number
8552         of errors in the documentation in this regard).
8553
8554         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
8555
8556         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
8557         of these procedures are passed a function call that already has
8558         build-in-place actuals (testing new flag
8559         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
8560         the case where processing continues.
8561         (Expand_Call): If the call is generated from a thunk body then we
8562         propagate the extra actuals associated with the accessibility
8563         level of the access type actuals.
8564
8565         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
8566         of each extra formal of a protected operation to reference the
8567         corresponding extra formal of the subprogram denoted by the
8568         operation's Protected_Body_Subprogram.
8569         
8570         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
8571         N_Function_Call nodes.
8572
8573 2007-09-26  Robert Dewar  <dewar@adacore.com>
8574
8575         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
8576
8577         * debug.adb: Add d.s flag.
8578
8579 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8580
8581         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
8582         debug variable so that it won't be initialized when pragma
8583         Initialize_Scalars is in effect.
8584
8585 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8586
8587         * freeze.adb (Freeze_Entity): Remove check for preelaborable
8588         initialization of a full view. This is moved to
8589         Analyze_Package_Specification.
8590
8591         * sem_ch7.adb (Analyze_Package_Specification): Add check for
8592         preelaborable initialization of a full view in entity loop.
8593         (Uninstall_Declarations): If entity is a use-visible compilation unit,
8594         its child units are use-visible only if they are visible child units.
8595
8596         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
8597         whether an expression can be used within a type declaration that
8598         requires preelaborable init.
8599         (Check_Components): Replace inline code that does partial checking for
8600         preelaborable default expressions with call to
8601         Is_Preelaborable_Expression.
8602         (Has_Preelaborable_Initialization): In the case of a generic actual
8603         subtype, (that is, Is_Generic_Actual is True), return the result of
8604         applying Has_Preelaborable_Initialization to the generic actual's base
8605         type.
8606
8607 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8608
8609         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
8610         call to Jan_1_Day _Of_Week to optimize its performance.
8611         (Is_Leap): Move the routine to the scope of Week_In_Year.
8612         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
8613         weekday on which January 1 falls of Year - 1 and Year + 1. This function
8614         avoids calling Time_Of and Split, thus making it more efficent.
8615         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
8616
8617         * g-calend.ads (Week_In_Year): Change comment to reflect new
8618         implementation.
8619
8620 2007-09-26  Emmanuel Briot  <briot@adacore.com>
8621
8622         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
8623         Command_Line): New types
8624         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
8625         support for defining how switches can be grouped on a command line (as
8626         is the case for -gnatw... for GNAT), and how simple switches can be
8627         used as aliases for more complex switches (-gnatwa is same as
8628         -gnatwbcef...)
8629         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
8630         (Start, Current_*): New subprograms
8631         Added support for parsing an array of strings in addition to the real
8632         command line.
8633         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
8634          be moved from the body to the private part of the spec.
8635         (*): All subprograms now have an extra parameter with default value to
8636         specify which parser should be used. For backward compatibility, it
8637         defaults to parsing the command line of the application. They were also
8638         modified to properly handle cases where each of the argument does not
8639         start at index 1 (which is always true for Ada.Command_Line, but not
8640         when processing any Argument_List).
8641         (Free): New subprogram
8642         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
8643         Argument): New subprograms
8644         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
8645         special characters like ':', '=',... are now handled in a single place,
8646         which makes the code more extensible eventually.
8647         (Getopt, Full_Switch): When the switch was returned as part of the
8648         special character '*', make sure it is prepended by the switch character
8649         ('-' in general), so that the application knows whether "foo" or "-foo"
8650         was specified on the command line.
8651
8652 2007-09-26  Florian Villoing  <villoing@adacore.com>
8653
8654         * g-dirope.adb (Remove_Dir): In case we are removing directories
8655         recursively, make sure that if an exception is raised during the
8656         processing, the current working directory is reset to its initial
8657         value before propagating the exception.
8658
8659 2007-09-26  Vincent Celier  <celier@adacore.com>
8660
8661         * gnatbind.adb: If there are several ALI files specified and there is
8662         a main program to bind, the first ALI is expected to contain the main
8663         subprogram and the names of the binder generated files will be derived
8664         from the first ALI file name.
8665         (Gnatbind): Fix insertion character in invocation of Error_Msg
8666
8667 2007-09-26  Vincent Celier  <celier@adacore.com>
8668
8669         * gnatcmd.adb (Check_Files): Do not include sources that have been
8670         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
8671
8672 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8673
8674         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
8675         information about each of its index types, following the type
8676         reference for its component type.
8677
8678 2007-09-26  Vincent Celier  <celier@adacore.com>
8679
8680         * make.adb: (Kill): New procedure (__gnat_kill imported)
8681         (Running_Compile, Outstanding_Compiles): Global variables that
8682         were previously local to procedure Compile_Sources.
8683         (Sigint_Intercepted): Send signal SIGINT to all outstanding
8684         compilation processes.
8685
8686         (Gnatmake): If project files are used, create the mapping of all the
8687         sources, so that the correct paths will be found.
8688
8689         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
8690
8691 2007-09-26  Vincent Celier  <celier@adacore.com>
8692
8693         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
8694
8695         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
8696         Replace components Compiler_Min_Options and Binder_Min_Options with
8697         Compiler_Required_Switches and Binder_Required_Switches in record
8698         Language_Config.
8699         Remove components Default_Language and Config in Project_Tree_Data,
8700         no longer used.
8701
8702         * prj-attr.adb: New attributes Required_Switches (<language>) in
8703         packages Compiler and Binder.
8704
8705         * prj-nmsc.adb: Major rewrite of the processing of configuration
8706         attributes for gprbuild. No impact on GNAT tools.
8707
8708         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
8709         process configuration attributes: this is done in Prj.Nmsc.Check.
8710         (Recursive_Process): Make a full copy of packages inherited from project
8711         being extended, instead of a shallow copy.
8712         (Process_Project_Tree_Phase_1): New procedure
8713         (Process_Project_Tree_Phase_1): New procedure
8714         (Process): Implementation now uses the two new procedures
8715
8716         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
8717         from the project config, not the tree config that no longer exists.
8718
8719 2007-09-26  Vincent Celier  <celier@adacore.com>
8720
8721         * Make-lang.in: Update dependencies..
8722
8723 2007-09-26  Vincent Celier  <celier@adacore.com>
8724
8725         * osint.adb, osint.ads: Minor reformatting
8726
8727         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
8728
8729 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8730
8731         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
8732         message to cite use of <> in aggregate component associations rather
8733         than wrongly indicating use of limited aggregates.
8734
8735 2007-09-26  Robert Dewar  <dewar@adacore.com>
8736
8737         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
8738         Address_Taken.
8739
8740 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8741
8742         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
8743         ancestor of the derived type, the operations are inherited from the
8744         primary dispatch table of the parent.
8745         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
8746         when the context is an explicit type conversion.
8747
8748 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8749
8750         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
8751         rule for qualified expressions properly, to detect improper conversions
8752         and resolve some cases of overloading.
8753
8754 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8755
8756         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
8757         proper kind of reference to the primitive operation, for better source
8758         navigation.
8759         (Valid_Conversion): A tagged conversion is legal if both operands are
8760         tagged.
8761
8762 2007-09-26  Robert Dewar  <dewar@adacore.com>
8763
8764         * sem_warn.adb (Check_References): Catch more cases of unreferenced
8765         packages.
8766
8767 2007-09-26  Vincent Celier  <celier@adacore.com>
8768
8769         * snames.adb, snames.ads: Change Include_Option to Include_Switches
8770
8771 2007-09-26  Robert Dewar  <dewar@adacore.com>
8772
8773         * s-wchstw.adb: provide messages for run time unit exceptions
8774
8775         * a-witeio.adb: Minor reformatting
8776
8777         * exp_ch13.adb: Minor reformatting
8778
8779 2007-09-26  Sergey Rybin  <rybin@adacore.com>
8780
8781         * vms_data.ads: Revise gnatmetric qualifiers.
8782         Add qualified for the new gnatbind option '-y'
8783
8784         * gnat_ugn.texi: Revise the gnatmetric section.
8785         Add entry for new gnatbind option '-y'.
8786
8787         * gnat_rm.texi: Minor spelling correction.
8788         Document restriction on overlaying controlled types
8789
8790 2007-09-26  Vincent Celier  <celier@adacore.com>
8791
8792         * makegpr.adb (Link_Executables): Do not fail when the root project has
8793         no sources, but is an extending project.
8794
8795 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
8796
8797         * trans.c: Fix misplaced #define.
8798
8799 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
8800
8801         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
8802         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
8803
8804 2007-09-21  Olivier Hainque  <hainque@adacore.com>
8805
8806         * utils.c (type_for_nonaliased_component_p): Return false for
8807         all AGGREGATE_TYPEs.
8808
8809 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
8810
8811         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
8812         object covered by 13.3(19) volatile.
8813
8814 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
8815
8816         PR ada/26797
8817         PR ada/32407
8818         * utils.c (unchecked_convert): Use a subtype as the intermediate type
8819         in the special VIEW_CONVERT_EXPR case.
8820
8821 2007-09-12  Robert Dewar  <dewar@adacore.com>
8822
8823         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
8824
8825         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
8826         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
8827         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
8828         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
8829         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
8830         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
8831         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
8832         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
8833         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
8834         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
8835         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
8836         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
8837         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
8838         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
8839         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
8840         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
8841         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
8842         pragma Compiler_Unit and adds it to relevant library units.
8843
8844 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
8845
8846         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
8847         a box need not correspond to any component.
8848
8849 2007-09-12  Robert Dewar  <dewar@adacore.com>
8850
8851         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
8852         the tasking version of the Ada run time when foreign threads are
8853         present and there are no explicit Ada tasks or tasking constructs.
8854
8855         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
8856
8857 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
8858
8859         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
8860         the usage of switch -y.
8861
8862         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
8863         when switch -y is present.
8864
8865         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
8866         leap seconds in Ada.Calendar and its children.
8867
8868 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
8869
8870         * a-extiti.ads (Timer): The discriminant is a "not null access
8871         constant" in the Reference Manual.
8872         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
8873
8874 2007-09-12  Robert Dewar  <dewar@adacore.com>
8875
8876         * a-swuwha.adb: Remove junk RM header
8877
8878 2007-09-12  Vincent Celier  <celier@adacore.com>
8879
8880         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
8881         indicator
8882
8883         * g-bytswa.ads: Minor reformatting
8884
8885 2007-09-12  Thomas Quinot  <quinot@adacore.com>
8886
8887         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
8888         Add new constant Thread_Blocking_IO, always True by default, set False
8889         on a per-runtime basis.
8890         (Need_Netdb_Buffer): New constant.
8891
8892 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
8893
8894         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
8895         Added renames for corresponding functions in System.Partition_Interface.
8896
8897 2007-09-12  Doug Rupp  <rupp@adacore.com>
8898
8899         * Makefile.in: Remove VMS specific System.CRTL packages which are no
8900         longer needed.
8901
8902         * s-crtl-vms64.ads: Removed.
8903
8904 2007-09-12  Olivier Hainque  <hainque@adacore.com>
8905
8906         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
8907         with discriminant constraints, generalize the code for BIT_FIELDs
8908         to PACKED fields of constant size and propagate DECL_PACKED.
8909
8910 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
8911
8912         * decl.c (array_type_has_nonaliased_component): New predicate.
8913         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
8914         set the TYPE_NONALIASED_COMPONENT flag on the type.
8915         <E_Array_Subtype>: Likewise.
8916         * gigi.h (type_for_nonaliased_component_p): Declare.
8917         * utils.c (type_for_nonaliased_component_p): New predicate.
8918         (create_field_decl): Invoke the above predicate to set the
8919         DECL_NONADDRESSABLE_P flag on the field.
8920
8921 2007-09-11  Javier Miranda  <miranda@adacore.com>
8922
8923         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
8924         in library level record type entities if we are generating statically
8925         allocated dispatch tables.
8926
8927         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
8928         importing/exporting the _tag declaration by new code
8929         importing/exporting the dispatch table wrapper. This change allows us
8930         to statically allocate of the TSD.
8931         (Make_DT.Export_DT): New procedure.
8932         (Build_Static_DT): New function.
8933         (Has_DT): New function.
8934
8935         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
8936         True_Constant and Current_Value. Required to statically
8937         allocate the dispatch tables.
8938         (Check_Allocator): Make function iterative instead of recursive.
8939         Also return inner allocator node, when present, so that we do not have
8940         to look for that node again in the caller.
8941
8942 2007-09-11  Jan Hubicka  <jh@suse.cz>
8943
8944         * misc.c (gnat_expand_body): Kill.
8945         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
8946
8947 2007-09-10  Robert Dewar  <dewar@adacore.com>
8948
8949         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
8950         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8951         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8952         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
8953         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
8954         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
8955         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
8956         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
8957         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
8958         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
8959         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
8960         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
8961         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
8962         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
8963         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8964         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
8965         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
8966         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8967         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
8968         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
8969         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
8970         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
8971         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
8972         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
8973         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
8974         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
8975         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
8976         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
8977         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
8978         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
8979         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
8980         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
8981         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
8982         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
8983         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
8984         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
8985         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
8986         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
8987         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
8988         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
8989         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
8990         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
8991         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
8992         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
8993         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8994         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
8995         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
8996         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
8997         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
8998         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
8999         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9000         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9001         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9002         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9003         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9004         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9005         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9006         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9007         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9008         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9009         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9010         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9011         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9012         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9013         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9014         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9015         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9016         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9017         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9018         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9019         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9020         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9021         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9022         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9023         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9024         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9025         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9026         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9027         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9028         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9029         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9030         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9031         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9032
9033 2007-09-10  Emmanuel Briot  <briot@adacore.com>
9034
9035         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9036         classes ("[]").
9037
9038 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
9039
9040         * adaint.c (__gnat_translate_vms): new function.
9041
9042 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
9043             Thomas Quinot  <quinot@adacore.com>
9044
9045         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9046         create an abstract subprogram in the case of 'Input. For 'Output we now
9047         create a real spec/body when the type is abstract, since it can
9048         potentially be called.
9049         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9050         body for 'Output when the type is abstract (only the creation of the
9051         body for 'Input is excluded when the type is abstract).
9052         (Stream_Operation_OK): Add an additional condition in the return
9053         statement, so that False will be returned for TTS_Stream_Input if the
9054         associated tagged type is an abstract extension. Add comments for
9055         return statement.
9056         (Expand_N_Object_Declaration): For the case of a shared passive
9057         variable, insert init proc call only after the shared variable
9058         procedures have been processed, because the IP call needs to undergo
9059         shared passive variable reference expansion, which requires these
9060         procedures to be available (and elaborated).
9061
9062 2007-09-10  Vincent Celier  <celier@adacore.com>
9063
9064         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
9065         parameter Runtime_Project.
9066
9067 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9068
9069         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
9070         given a box association, the type of the component is discriminated,
9071         and the value of the discriminant is the discriminant of the enclosing
9072         type, retrieve its value from the aggregate itself, where it must have
9073         been supplied.
9074
9075         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
9076         to remove other spurious ambiguities on arithmetic operations involving
9077         literals and addresses, on systems where Address is a visible integer
9078         type, when the operator is called in functional notation.
9079         (Try_Primitive_Operation): Within an instance, a call in prefixed form
9080         is legal when the types match, even if the operation is currently
9081         hidden.
9082
9083 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
9084
9085         * sem_ch12.adb (Build_Local_Package): A formal package with no
9086         associations is legal if all formals have defaults. It is not
9087         equivalent to a formal declared with a box.
9088
9089 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9090
9091         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
9092
9093 2007-09-10  Sergey Rybin  <rybin@adacore.com>
9094
9095         * gnat_ugn.texi: Add description of the new '-lratio' option
9096         Update 7.3.1 section about availability of the feature.
9097
9098 2007-09-10  Thomas Quinot  <quinot@adacore.com>
9099
9100         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
9101         inserted node.
9102
9103 2007-09-10  Olivier Hainque  <hainque@adacore.com>
9104
9105         * Makefile.in: (mips-irix section): Activate build of libgmem.
9106
9107 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9108
9109         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
9110         x87 registers.
9111
9112 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
9113
9114         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
9115         a debug renaming declaration specially.
9116
9117 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9118
9119         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
9120         which a constant renaming is treated as a normal object declaration.
9121         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
9122         the N_Indexed_Component case.
9123         <N_Indexed_Component>: Fall through to above case.
9124         <N_Object_Renaming_Declaration>: Return true for all composite types.
9125
9126 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
9127
9128         * decl.c (make_packable_type): If the new type has been given BLKmode,
9129         try again to get an integral mode for it.
9130
9131 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
9132
9133         Re-apply accidentally reverted change:
9134
9135         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9136
9137         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9138         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
9139         and _Unwind_SWord with _sleb128_t.
9140
9141 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
9142
9143         * trans.c (convert_with_check): Update call to real_2expN.
9144
9145 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
9146
9147         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
9148         * utils.c (end_subprog_body): Likewise.
9149
9150 2007-09-03  Nick Clifton  <nickc@redhat.com>
9151
9152         * Make-lang.in: Change copyright header to refer to version 3 of
9153         the GNU General Public License and to point readers at the
9154         COPYING3 file and the FSF's license web page.
9155         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
9156         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
9157         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
9158         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
9159         Likewise.
9160
9161 2007-08-31  Vincent Celier  <celier@adacore.com>
9162
9163         PR ada/4720
9164
9165         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
9166         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
9167         (Check_Version_And_Help): New procedure in package Switch to process
9168         switches --version and --help.
9169         Use Check_Version_And_Help in GNAT tools
9170
9171         * make.adb:  Ditto.
9172         (Compile_Sources): Make sure that sources that are "excluded" are not
9173         compiled.
9174         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
9175         project file is used.
9176         (Version_Switch): Remove, moved to Switch
9177         (Help_Switch): Remove, moved to Switch
9178         (Display_Version): Remove, moved to Switch
9179
9180         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
9181         package Switch to process switches --version and --help.
9182         (Display_Version): New procedure
9183
9184         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
9185
9186 2007-08-31  Javier Miranda  <miranda@adacore.com>
9187
9188         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
9189         internal tags.
9190
9191 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9192
9193         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
9194         (Mark_Non_Null): If the node for which we just generated an access check
9195         is a reference to an *in* parameter and the reference appears in the
9196         declarative part of a subprogram body, mark the node as known non null.
9197
9198 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9199
9200         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
9201         structure of E_Exception to reflect the new flag.
9202         (Is_Raised, Set_Is_Raised): New inlined routines.
9203         Update the usage of available flag to reflect the addition of Is_Raised.
9204         (Is_Raised, Set_Is_Raised): Bodies of new routines.
9205         (Write_Entity_Flags): Write the status of flag Is_Raised.
9206         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
9207         spurious ambiguities when integer literals appear in the context of an
9208         address type that is a visible integer type.
9209
9210         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
9211         exceptions never being raised.
9212         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
9213         explicitly raised.
9214
9215 2007-08-31  Javier Miranda  <miranda@adacore.com>
9216
9217         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
9218         statement when compiling under restriction No_Exceptions_Proparation.
9219
9220 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9221
9222         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
9223         initialization aggregate for the type, generate itype references for
9224         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
9225
9226 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
9227
9228         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
9229         library-level package renaming, pass the declaration associated with
9230         the renaming's special debug variable to Qualify_Entity_Names to ensure
9231         that its encoded name is properly qualified.
9232
9233         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
9234         occurring in the list of entities to qualify, and do not attempt to
9235         traverse an entity list in that case. Variables associated with
9236 `       library-level package renamings can now occur in the table.
9237
9238         * exp_dbug.ads: Revise documentation of the encoding for renaming
9239         declarations.
9240
9241 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9242
9243         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
9244         access type points to an unconstrained array.
9245
9246 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
9247
9248         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
9249         conversion.
9250
9251         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
9252         simple redundant qualifications. The check is performed whenever the
9253         expression is a non-overloaded identifier.
9254         (Resolve_Type_Conversion): Enchance the redundant type conversion check
9255         to include loop parameters.
9256         (Valid_Conversion): Avoid generation of spurious error message.
9257
9258 2007-08-31  Bob Duff  <duff@adacore.com>
9259
9260         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
9261         concatenations of string literals into a single literal, in order to
9262         avoid very deep recursion in the front end, which was causing stack
9263         overflow.
9264
9265         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
9266         string, and the right operand is a string literal (the case of "" &
9267         "..."), optimize by avoiding copying the right operand -- just use the
9268         value of the right operand directly.
9269
9270         * stringt.adb (Store_String_Chars): Optimize by growing the
9271         String_Chars table all at once, rather than appending characters one by
9272         one.
9273         (Write_String_Table_Entry): If the string to be printed is very long,
9274         just print the first few characters, followed by the length. Otherwise,
9275         doing "pn(n)" in the debugger can take an extremely long time.
9276
9277         * sem_prag.adb (Process_Interface_Name): Replace loop doing
9278         Store_String_Char with Store_String_Chars.
9279
9280 2007-08-31  Vincent Celier  <celier@adacore.com>
9281
9282         * prj-attr.adb: Add new attribute Excluded_Source_Files
9283
9284         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
9285         Locally_Removed_Files.
9286
9287         * snames.ads, snames.adb: New standard name Excluded_Source_Files
9288
9289 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9290
9291         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
9292         clauses of subunits, ignore limited_with_clauses that are illegal and
9293         have not been fully analyzed.
9294
9295 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
9296
9297         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
9298         flag, for effiency. It is called when analyzing arithmetic operators
9299         and also for actuals in calls that are universal_integers. The flag is
9300         set for the predefined type address, and for any type or subtype
9301         derived from it.
9302
9303         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
9304         Universal_Integer, when the formal is a descendent of address and the
9305         call appears in user code.
9306         (Analyze_Selected_Component): if the prefix is a private extension, the
9307         tag component is visible.
9308
9309         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
9310         entity flag.
9311
9312 2007-08-31  Robert Dewar  <dewar@adacore.com>
9313
9314         * s-fileio.adb (Open): Normalize file name to lower case in non-case
9315         sensitive file name systems to avoid unexpected mismatch in Vista.
9316
9317 2007-08-31  Vincent Celier  <celier@adacore.com>
9318
9319         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
9320
9321 2007-08-31  Vincent Celier  <celier@adacore.com>
9322
9323         * symbols-vms.adb (Initialize): Read symbol files with continuation
9324         lines
9325         (Finalize): If symbol is long, split the line
9326
9327 2007-08-31  Vincent Celier  <celier@adacore.com>
9328
9329         * fmap.ads: Minor comment updates
9330
9331 2007-08-31  GNAT Script  <nobody@adacore.com>
9332
9333         * Make-lang.in: Makefile automatically updated
9334
9335 2007-08-31  Bob Duff  <duff@adacore.com>
9336
9337         * sinfo.ads: Minor comment fix.
9338
9339 2007-08-31  Thomas Quinot  <quinot@adacore.com>
9340
9341         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
9342         with implementation.
9343         Documentation cleanup only.
9344
9345 2007-08-31  Sergey Rybin  <rybin@adacore.com>
9346
9347         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
9348         gnatpp '--separate-stmt-name' option.
9349         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
9350         option.
9351
9352         * gnat_ugn.texi: Add description for the new gnatpp
9353         '--separate-stmt-name' and '--use-on-new-line' options.
9354
9355 2007-08-31  Ben Elliston  <bje@au.ibm.com>
9356
9357         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9358         when compiling for powerpc64-*-linux.
9359         * system-linux-ppc64.ads: New file.
9360
9361 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
9362
9363         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
9364         NetBSD.
9365
9366 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9367
9368         * misc.c (gnat_type_max_size): Constify.
9369
9370 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9371
9372         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
9373         associated with Standard_Debug_Renaming_Type, to be used as the type of
9374         the special variables whose names provide debugger encodings for
9375         renaming declarations.
9376
9377         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
9378         (Set_Debug_Renaming_Link): Change to set Node25.
9379         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
9380         (Write_Field25_Name): Add case for E_Variable to output
9381         "Debug_Renaming_Link".
9382         (Write_Field23_Name): Correct the output string for "Limited_View".
9383
9384         * exp_dbug.adb: Add with and use of Tbuild.
9385         (Debug_Renaming_Declaration): Replace creation of an enumeration type
9386         and literal with creation of a variable of type
9387         Standard_Debug_Renaming_Type whose name encodes both the renamed object
9388         and the entity of the renaming declaration.
9389         (Qualify_Entity_Name): Add the delayed qualification of the entity name
9390         part of the name of a variable that has a Debug_Renaming_Link.
9391
9392         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
9393         special type to be associated with variables that provide debugger
9394         encodings for renaming declarations.
9395
9396 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9397             Ed Schonberg  <schonberg@adacore.com>
9398             Javier Miranda  <miranda@adacore.com>
9399
9400         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
9401         ancestor part given by an aggregate to test for an unchecked conversion,
9402         since this can occur in some cases when the ancestor part is a function
9403         call, and we don't want to fall into the recursive call to this
9404         procedure in that case.
9405
9406         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
9407         stream attributes on limited types to account for user-specified
9408         attributes as well as whether Input (resp. Output) becomes available
9409         due to Read (resp. Write) being available for the type. Change Boolean
9410         variable to the more accurate name
9411         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
9412         double-"not" predicate at beginning of return statement to more
9413         understandable form.
9414
9415         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
9416         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
9417         in a block statement and use that as the first statement of the
9418         expanded return rather than incorrectly using the handled sequence as
9419         the first statement.
9420
9421         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
9422         operation, generate an explicit freeze node for it rather than
9423         generating extra formals, to ensure that gigi has the proper order of
9424         elaboration for anonymous subtypes in the signature of the subprograms.
9425         (Build_In_Place_Formal): Move assertion to beginning of loop.
9426         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
9427         applied to a function call (occurs for some cases of 'Input).
9428         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
9429         applied to a function call (occurs for some cases of 'Input).
9430
9431         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
9432         2005, generate an extended return statement enclosing the result object
9433         and 'Read call.
9434
9435         * freeze.adb (Freeze_Record_Type): Extend the current management of
9436         components that are access type with an allocator as default value: add
9437         missing support to the use of qualified expressions of the
9438         allocator (which also cause freezing of the designated type!)
9439         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
9440         dispatching operation, since extra formals may be needed by calls to
9441         build-in-place functions (such as stream 'Input).
9442
9443         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
9444         formals for 'Constrained and accessibility level in the case of a
9445         predefined dispatching operation.
9446
9447         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
9448         point, no need to find the parent node.
9449
9450 2007-08-16  Javier Miranda  <miranda@adacore.com>
9451
9452         * exp_attr.adb (Attribute_Priority): Add missing support for entries
9453         and entry barriers.
9454
9455 2007-08-16  Javier Miranda  <miranda@adacore.com>
9456
9457         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
9458         is not really required and can introduce regression with the debugger.
9459         The original problem is fixed with the patch written for checks.adb.
9460
9461 2007-08-16  Thomas Quinot  <quinot@adacore.com>
9462
9463         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
9464         Range_Check on Allocated_Table.
9465
9466 2007-08-16  Vincent Celier  <celier@adacore.com>
9467
9468         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
9469         Including_Non_Switch set to False.
9470         (Gnatmake): For the compiler, call Test_If_Relative_Path with
9471         Including_Non_Switch set to False.
9472
9473         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
9474         parameter Including_Non_Switch, defaulted to True. When
9475         Including_Non_Switch is False, options that are not switches and
9476         appear as relative path are not converted to absolute paths.
9477
9478 2007-08-16  Nicolas Roche  <roche@adacore.com>
9479
9480         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
9481         makefiles
9482
9483         * Make-lang.in: Update dependencies
9484
9485 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
9486
9487         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
9488         currently inspected is a selected component, retrieve the entity of
9489         its selector.
9490         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
9491         from the immediate ancestor of Main_Unit_Entity.
9492         (Install_Limited_Withed_Unit): Do not install the limited view of
9493         package P if P is reachable through an ancestor chain from package C
9494         and C also has a with clause for P in its body.
9495         (Has_Limited_With_Clause): New routine.
9496         (Has_With_Clause): New routine.
9497
9498 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
9499
9500         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
9501         generic for an enclosing instance is a global reference, even though
9502         its scope is the enclosing instance.
9503
9504 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9505             Javier Miranda  <miranda@adacore.com>
9506
9507         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
9508         initialize a limited object.
9509         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
9510         13/2 and 14/2.
9511         Make sure Has_Complex_Representation is inherited by derived type.
9512
9513 2007-08-16  Robert Dewar  <dewar@adacore.com>
9514
9515         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
9516         exception case
9517
9518 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
9519
9520         * sem_disp.adb (Check_Dispatching_Operation): If the operation
9521         implements an operation inherited from a progenitor interface, verify
9522         that they are subtype-conformant.
9523
9524 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
9525             Bob Duff  <duff@adacore.com>
9526             Nicolas Setton  <setton@adacore.com>
9527
9528         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
9529         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
9530         the statement which is being resolved comes from a predefined library
9531         unit, all non-predefined library interpretations are skipped.
9532         (Resolve_Op_Concat): If string concatenation was folded in the parser,
9533         but the "&" is user defined, give an error, because the folding would
9534         be wrong.
9535
9536         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
9537         the parser has folded a long sequence of concatenations of string
9538         literals.
9539
9540         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
9541         and "JMP_BUF" variables as artificial.
9542         (N_String_Literal): Do not use alloca for very long string literals. Use
9543         xmalloc/free instead. Otherwise the stack might overflow.
9544
9545         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
9546         compiler.
9547
9548 2007-08-16  Vincent Celier  <celier@adacore.com>
9549
9550         * vms_conv.adb (Process_Argument): Ensure that project related options
9551         are not put in the -cargs section when using GNAT COMPILE.
9552
9553 2007-08-16  Robert Dewar  <dewar@adacore.com>
9554
9555         * gnat_ugn.texi: Add note on preprocessing (output file not written)
9556
9557 2007-08-16  Thomas Quinot  <quinot@adacore.com>
9558
9559         * a-tags.adb: Minor reformatting.
9560
9561 2007-08-16  Bob Duff  <duff@adacore.com>
9562
9563         * sem_type.ads, sem_ch4.adb: Minor reformatting.
9564
9565 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9566
9567         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
9568         s-osinte-interix.ads, system-interix.ads: Removed.
9569
9570 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9571
9572         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
9573         calls to Check_Within_Time_Bounds.
9574         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
9575         (Difference): Account for possible rounding of the resulting difference
9576
9577 2007-08-14  Robert Dewar  <dewar@adacore.com>
9578
9579         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
9580         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
9581         s-osinte-solaris.adb, s-osinte-solaris.ads,
9582         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
9583
9584         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
9585         switch -gnatyS. Enable -gnatyS in GNAT style check mode
9586
9587 2007-08-14  Robert Dewar  <dewar@adacore.com>
9588             Ed Schonberg  <schonberg@adacore.com>
9589
9590         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
9591         Suppress unmodified in-out parameter warning in some cases
9592         This patch is a also fairly significant change to the way suppressible
9593         checks are handled.
9594
9595         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
9596         needed for access to concurrent record types generated by the expander.
9597         (Generate_Range_Check): When generating a temporary to capture the
9598         value of a conversion that requires a range check, set the type of the
9599         temporary before rewriting the node, so that the type is always
9600         properly placed for back-end use.
9601         (Apply_Float_Conversion_Check): Handle case where the conversion is
9602         truncating.
9603         (Get_Discriminal): Code reformatting. Climb the scope stack looking
9604         for a protected type in order to examine its discriminants.
9605
9606 2007-08-14  Robert Dewar  <dewar@adacore.com>
9607             Gary Dismukes  <dismukes@adacore.com>
9608             Ed Schonberg  <schonberg@adacore.com>
9609             Thomas Quinot  <quinot@adacore.com>
9610
9611         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
9612         a-stwisu.adb, a-strsup.adb: Fix warnings for range
9613         tests optimized out.
9614
9615         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
9616         (Get_Allocator_Final_List): For the case of an anonymous access type
9617         that has a specified Associated_Final_Chain, do not go up to the
9618         enclosing scope.
9619         (Expand_N_Type_Conversion): Test for the case of renamings of access
9620         parameters when deciding whether to apply a run-time accessibility
9621         check.
9622         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
9623         aggregate code before allocator, and ahead of declaration for
9624         temporary, to prevent access before elaboration when the allocator is
9625         an actual for an access parameter.
9626         (Expand_N_Type_Conversion): On an access type conversion involving an
9627         access parameter, do not apply an accessibility check when the
9628         operand's original node was an attribute other than 'Access. We now
9629         create access conversions for the expansion of 'Unchecked_Access and
9630         'Unrestricted_Access in certain cases and clearly accessibility should
9631         not be checked for those.
9632
9633         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
9634         includes a type conversion of a packed component that has been expanded,
9635         recover the original expression for the object, and use this expression
9636         in the post-call assignment statement, so that the assignment is made
9637         to the object and not to a back-end temporary.
9638         (Freeze_Subprogram): In case of primitives of tagged types not defined
9639         at the library level force generation of code to register the primitive
9640         in the dispatch table. In addition some code reorganization has been
9641         done to leave the implementation clear.
9642         (Expand_Call): When expanding an inherited implicit conversion,
9643         preserve the type of the inherited function after the intrinsic
9644         operation has been expanded.
9645
9646         * exp_ch2.ads, exp_ch2.adb
9647         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
9648         of an entry formal appearing in an assignment statement does not assign
9649         to the formal.
9650         (Expand_Current_Value): Instead of calling a routine to determine
9651         whether the prefix of an attribute reference should be optimized or
9652         not, prevent the optimization of such prefixes all together.
9653
9654         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
9655         component whose prefix is known to be of an access type is an implicit
9656         dereference and does not assign to the prefix.
9657
9658 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9659             Robert Dewar  <dewar@adacore.com>
9660
9661         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
9662         itype is visited, make an entry into table to link associated node and
9663         new itype.
9664         Add comments and correct harmless error in Build_NCT_Hash_Tables
9665         (Array_Aggr_Subtype): Associate each itype created for an index type to
9666         the corresponding range construct, and not to the aggregate itself. to
9667         maintain a one-to-one correspondence between itype and its associated
9668         node, to prevent errors when complex expression is copied.
9669         Fix mishandling of multiple levels of parens
9670
9671         * sem_aggr.adb: Create a limited view of an incomplete type, to make
9672         treatment of limited views uniform for all visible declarations in a
9673         limited_withed package.
9674         (New_Copy_Tree): If hash table is being used and itype is visited,
9675         make an entry into table to link associated node and new itype.
9676         (Resolve_Record_Aggregate): Do not add an others box association for a
9677         discriminated record component that has only discriminants, when there
9678         is a box association for the component itself.
9679
9680         * par-ch4.adb: Fix mishandling of multiple levels of parens
9681
9682 2007-08-14  Robert Dewar  <dewar@adacore.com>
9683
9684         * comperr.adb: Fix problem with suppressing warning messages from gigi
9685
9686         * erroutc.ads, erroutc.adb, errout.ads, 
9687         errout.adb (Write_Eol): Remove trailing spaces before writing the line
9688         (Write_Eol_Keep_Blanks): New procedure to write a line, including
9689         possible trailing spaces.
9690         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9691         Fix problem with suppressing warning messages from back end
9692         Improve handling of deleted warnings
9693
9694         * gnat1drv.adb: 
9695         Fix problem with suppressing warning messages from back end
9696         Handle setting of Static_Dispatch_Tables flag.
9697
9698         * prepcomp.adb: 
9699         Fix problem with suppressing warning messages from back end
9700
9701         * exp_intr.adb: Improve handling of deleted warnings
9702
9703 2007-08-14  Robert Dewar  <dewar@adacore.com>
9704
9705         * debug.adb: Improve -gnatdI to cover all cases of serialization
9706         Add documentation of dZ, d.t
9707
9708         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
9709         serialization.
9710         (Sprint_Node_Actual): Generate new output associated with implicit
9711         importation and implicit exportation of object declarations.
9712
9713 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9714             Robert Dewar  <dewar@adacore.com>
9715             Javier Miranda  <miranda@adacore.com>
9716             Gary Dismukes  <dismukes@adacore.com>
9717
9718         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
9719         to make treatment of limited views uniform for all visible declarations
9720         in a limited_withed package.
9721         Improve warnings for in out parameters
9722         (Set_Related_Interaface/Related_Interface): Allow the use of this
9723         attribute with constants.
9724         (Write_Field26_Name): Handle attribute Related_Interface in constants.
9725         Warn on duplicate pragma Preelaborable_Initialialization
9726
9727         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
9728         generation of a freezing node to ensure proper management of null
9729         excluding access types in the backend.
9730         (Create_Extra_Formals): Test base type of the formal when checking for
9731         the need to add an extra accessibility-level formal. Pass the entity E
9732         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
9733         originally being done in a couple of cases), to ensure that the
9734         Extra_Formals list gets set on the entity E when the first entity is
9735         added.
9736         (Conforming_Types): Add missing calls to Base_Type to the code that
9737         handles anonymous access types. This is required to handle the
9738         general case because Process_Formals builds internal subtype entities
9739         to handle null-excluding access types.
9740         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9741         functions that need it, even when not marked Requires_Overriding.
9742         Improve warnings for in out parameters
9743         (Analyze_Function_Return): Warn for disallowed null return
9744         Warn on return from procedure with unset out parameter
9745         Ensure consistent use of # in error messages
9746         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
9747         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
9748         the implicit conversion of the expression done for anonymous access
9749         types. This is required to generate the code of the null excluding
9750         check (if required).
9751
9752         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
9753         A formal parameter is never publicly referenceable outside of its body.
9754         (Check_References): For an unreferenced formal parameter in an accept
9755         statement, use the same warning circuitry as for subprogram formal
9756         parameters.
9757         (Warn_On_Unreferenced_Entity): New subprogram, taken from
9758         Output_Unreferenced_Messages, containing the part of that routine that
9759         is now reused for entry formals as described above.
9760         (Goto_Spec_Entity): New function
9761         (Check_References): Do not give IN OUT warning for dispatching operation
9762         Improve warnings for in out parameters
9763         (Test_Ref): Check that the entity is not undefinite before calling
9764         Scope_Within, in order to avoid infinite loops.
9765         Warn on return from procedure with unset out parameter
9766         Improved warnings for unused variables
9767
9768 2007-08-14  Robert Dewar  <dewar@adacore.com>
9769             Javier Miranda  <miranda@adacore.com>
9770             Gary Dismukes  <dismukes@adacore.com>
9771
9772         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
9773         (Expand_N_Attribute_Reference): Further unify the handling of the
9774         three forms of access attributes, using common code now for all three
9775         cases. Add a test for the case of applying an access attribute to
9776         an explicit dereference when the context is an access-to-interface
9777         type. In that case we need to apply the conversion to the prefix
9778         of the explicit dereference rather than the prefix of the attribute.
9779         (Attribute_Version, UET_Address): Set entity as internal to ensure
9780         proper dg output of implicit importation.
9781         (Expand_Access_To_Type): Removed.
9782         (Expand_N_Attribute_Reference): Merge the code from the three cases
9783         of access attributes, since the processing is largely identical for
9784         these cases. The substantive fix here is to process the case of a
9785         type name prefix (current instance case) before handling the case
9786         of interface prefixes.
9787
9788 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9789             Ed Schonberg  <schonberg@adacore.com>
9790             Javier Miranda  <miranda@adacore.com>
9791             Robert Dewar  <dewar@adacore.com>
9792
9793         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
9794         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
9795         type that is an anonymous access to controlled object, establish
9796         an associated finalization chain to avoid corrupting the global
9797         finalization list when a dynamically allocated object designated
9798         by such a component is deallocated.
9799         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9800         functions that need it, even when not marked Requires_Overriding.
9801         (Initialize_Tag): Replace call to has_discriminants by call to
9802         Is_Variable_Size_Record in the circuitry that handles the
9803         initialization of secondary tags.
9804         (Is_Variable_Size_Record): New implementation.
9805         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
9806         Suppress_Initialization pragma for a derived type.
9807         (Is_Variable_Size_Record): New subprogram.
9808         (Build_Offset_To_Top_Functions): New implementation that simplifies the
9809         initial version of this routine and also fixes problems causing
9810         incomplete initialization of the table of interfaces.
9811         (Build_Init_Procedure): Improve the generation of code to initialize the
9812         the tag components of secondary dispatch tables.
9813         (Init_Secondary_Tags): New implementation that simplifies the previous
9814         version of this routine.
9815         (Make_DT): Add parameter to indicate when type has been frozen by an
9816         object declaration, for diagnostic purposes.
9817         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
9818         diagnose attemps to freeze a subprogram when some untagged type of its
9819         profile is a private type whose full view has not been analyzed yet.
9820         (Freeze_Array_Type): Generate init proc for packed array if either
9821         Initialize or Normalize_Scalars is set.
9822         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
9823         constructing the new profile, copy the null_exclusion indicator for each
9824         parameter, to ensure full conformance of the new body with the spec.
9825
9826         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
9827         Create wrappers for constructor functions that need it, even when not
9828         marked Requires_Overriding.
9829         (Covers): Handle properly designated types of anonymous access types,
9830         whose non-limited views are themselves incomplete types.
9831         (Add_Entry): Use an entity to store the abstract operation which hides
9832         an interpretation.
9833         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
9834         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
9835         initialization aggregate.
9836         (Function_Interp_May_Be_Hidden): Rename to
9837         Function_Interp_Has_Abstract_Op.
9838         (Has_Compatible_Type): Remove machinery that skips interpretations if
9839         they are labeled as potentially hidden by an abstract operator.
9840         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
9841         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
9842         (Write_Overloads): Output the abstract operator if present.
9843         (Add_Entry): Before inserting a new entry into the interpretation table
9844         for a node, determine whether the entry will be disabled by an abstract
9845         operator.
9846         (Binary_Op_Interp_May_Be_Hidden): New routine.
9847         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
9848         aggregate.
9849         (Function_Interp_May_Be_Hidden): New routine.
9850         (Has_Compatible_Type): Do not consider interpretations hidden by
9851         abstract operators when trying to determine whether two types are
9852         compatible.
9853         (Has_Hidden_Interp): New routine.
9854         (Set_May_Be_Hidden_Interp): New routine.
9855         (Write_Overloads): Write the status of flag May_Be_Hidden.
9856
9857 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9858             Javier Miranda  <miranda@adacore.com>
9859
9860         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
9861         types declared in the declarative part of a nested package body or in
9862         the proper body of a stub.
9863         (Set_All_DT_Position): Add missing check to avoid wrong assignation
9864         of the same dispatch table slot to renamed primitives.
9865         (Make_Select_Specific_Data_Table): Handle private types.
9866         (Tagged_Kind): Handle private types.
9867         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
9868         output of implicit importation and exportation.
9869         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
9870         first formal of the thunk is always associated with the controlling
9871         type. In addition perform the following code cleanup: remove formal
9872         Thunk_Alias which is no longer required, cleanup evaluation of the
9873         the controlling type, and update the documentation.
9874         Replace occurrence of Default_Prim_Op_Count by
9875         Max_Predef_Prims. Addition of compile-time check to verify
9876         that the value of Max_Predef_Prims is correct.
9877         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
9878         (Make_DT): Add parameter to indicate when type has been frozen by an
9879         object declaration, for diagnostic purposes.
9880         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
9881         construction of statically allocated dispatch tables.
9882         (Make_DT): In case of library-level tagged types export the declaration
9883         of the primary tag. Remove generation of tags (now done by Make_Tags).
9884         Additional modifications to handle non-static generation of dispatch
9885         tables. Take care of building tables for asynchronous interface types
9886         (Make_Tags): New subprogram that generates the entities associated with
9887         the primary and secondary tags of Typ and fills the contents of Access_
9888         Disp_Table. In case of library-level tagged types imports the forward
9889         declaration of the primary tag that will be declared later by Make_DT.
9890         (Expand_Interface_Conversion): In case of access types to interfaces
9891         replace an itype declaration by an explicit type declaration to avoid
9892         problems associated with the scope of such itype in transient blocks.
9893
9894 2007-08-14  Robert Dewar  <dewar@adacore.com>
9895             Ed Schonberg  <schonberg@adacore.com>
9896             Javier Miranda  <miranda@adacore.com>
9897
9898         * exp_util.ads, exp_util.adb: 
9899         This patch replaces a number of occurrences of explicit tests for N_Null
9900         with calls to Known_Null. This improves tracking of null values, since
9901         Known_Null also catches null constants, and variables currently known to
9902         be null, so we get better tracking.
9903         (Ensure_Defined): create an itype reference only in the scope of the
9904         itype.
9905         (Side_Effect_Free): A selected component of an access type that
9906         denotes a component with a rep clause must be treated as not
9907         side-effect free, because if it is part of a linked structure its
9908         value may be affected by a renaming.
9909         (Expand_Subtype_From_Expr): For limited objects initialized with build
9910         in place function calls, do nothing; otherwise we prematurely introduce
9911         an N_Reference node in the expression initializing the object, which
9912         breaks the circuitry that detects and adds the additional arguments to
9913         the called function. Bug found working in the new patch for statically
9914         allocated dispatch tables.
9915         (Is_Library_Level_Tagged_Type): New subprogram.
9916         (Remove_Side_Effects): If the expression of an elementary type is an
9917         operator treat as a function call.
9918         (Make_Literal_Range): If the index type of the array is not integer, use
9919         attributes properly to compute the constraint on the resulting aggregate
9920         which is a string.
9921
9922         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
9923         class-wide type whose base type is an incomplete private type, leave
9924         class-wide type unfrozen so that freeze nodes can be generated
9925         properly at a later point.
9926         (Freeze_Entity, array case): Handle case of pragma Pack and component
9927         size attributre clause for same array.
9928
9929 2007-08-14  Vincent Celier  <celier@adacore.com>
9930
9931         * prj.ads, prj.adb: Update Project Manager to new attribute names for
9932         gprbuild.
9933         Allow all valid declarations in configuration project files
9934         (Reset): Initialize all tables and hash tables in the project tree data
9935         Major update of the Project Manager and of the project aware tools,
9936         including gprmake, so that the same sources in the GNAT repository
9937         can be used by gprbuild.
9938         (Slash_Id): Change type to be Path_Name_Type
9939         (Slash): Return a Path_Name_Type instead of a File_Name_Type
9940
9941         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
9942         gprbuild.
9943         Update Project Manager to new attribute names for ghprbuild
9944         Allow all valid declarations in configuration project files
9945         Major update of the Project Manager and of the project aware tools,
9946         including gprmake, so that the same sources in the GNAT repository
9947         can be used by gprbuild.
9948
9949         * prj-com.ads: 
9950         Major update of the Project Manager and of the project aware tools,
9951         including gprmake, so that the same sources in the GNAT repository
9952         can be used by gprbuild.
9953
9954         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9955         insensitive flag for attributes with optional index.
9956         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9957         array attribute, put the index in lower case.
9958         Update Project Manager to new attribute names for ghprbuild
9959         Allow all valid declarations in configuration project files
9960         Major update of the Project Manager and of the project aware tools,
9961         including gprmake, so that the same sources in the GNAT repository
9962         can be used by gprbuild.
9963
9964         * prj-env.ads, prj-env.adb: 
9965         Major update of the Project Manager and of the project aware tools,
9966         including gprmake, so that the same sources in the GNAT repository
9967         can be used by gprbuild.
9968         (Get_Reference): Change type of parameter Path to Path_Name_Type
9969
9970         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
9971         removing '-' from the path to start with the first character of the
9972         next directory.
9973         Major update of the Project Manager and of the project aware tools,
9974         including gprmake, so that the same sources in the GNAT repository
9975         can be used by gprbuild.
9976         Major update of the Project Manager and of the project aware tools,
9977         including gprmake, so that the same sources in the GNAT repository
9978         can be used by gprbuild.
9979
9980         * prj-nmsc.ads, prj-nmsc.adb: 
9981         Update Project Manager to new attribute names for ghprbuild
9982         Allow all valid declarations in configuration project files
9983         (Search_Directories): Detect subunits that are specified with an
9984         attribute Body in package Naming. Do not replace a source/unit in the
9985         same project when the order of the source dirs are known. Detect
9986         duplicate sources/units in the same project when the order of the
9987         source dirs are not known.
9988         (Check_Ada_Name): Allow all identifiers that are not reserved words
9989         in Ada 95.
9990         Major update of the Project Manager and of the project aware tools,
9991         including gprmake, so that the same sources in the GNAT repository
9992         can be used by gprbuild.
9993         (Look_For_Sources): If the list of sources is empty, set the object
9994         directory of non extending project to nil.
9995         Change type of path name variables to be Path_Name_Type
9996         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
9997         otherwise creating missing directories will fail.
9998
9999         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
10000         prj-part.ads, prj-part.adb:
10001         Major update of the Project Manager and of the project aware tools,
10002         including gprmake, so that the same sources in the GNAT repository
10003         can be used by gprbuild.
10004
10005         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10006         insensitive flag for attributes with optional index.
10007         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10008         array attribute, put the index in lower case.
10009         (Parse_Variable_Reference): Allow the current project name to be used in
10010         the prefix of an attribute reference.
10011
10012         * prj-util.ads, prj-util.adb
10013         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10014         defaulted to False. When True, always check against indexes in lower
10015         case.
10016
10017         * snames.ads, snames.h, snames.adb: 
10018         Update Project Manager to new attribute names for gprbuild
10019         Allow all valid declarations in configuration project files
10020
10021 2007-08-14  Robert Dewar  <dewar@adacore.com>
10022             Ed Schonberg  <schonberg@adacore.com>
10023
10024         * opt.ads: Warning for non-local exception propagation now off by
10025         default
10026         New switch -gnatI to disable representation clauses
10027         Implement new pragma Implicit_Packing
10028
10029         * usage.adb: 
10030         Warning for non-local exception propagation now off by default
10031         Add warning for unchecked conversion of pointers wi different
10032         conventions.
10033         New switch -gnatI to disable representation clauses
10034
10035         * usage.adb: new switch -gnatyS
10036
10037         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10038         note that aggregates of anonymous array types are not flagged.
10039         -gnatwc now includes membership tests optimized away
10040         -gnatw.x warnings are now off by default
10041         Added conditional compilation Appendix
10042         Add documentation of -gnatI
10043         Add documentation for new -gnatyS style check
10044         Update documentation about SAL and auto-init on Windows.
10045
10046         * gnat_rm.texi: 
10047         Add documentation for pragma Check_Name and 'Enabled attribute
10048         Document that Eliminate on dispatching operation is ignored
10049         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10050         Document pragma Main
10051         Document pragma Implicit_Packing
10052
10053         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10054         different conventions
10055         New switch -gnatI to disable representation clauses
10056
10057         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
10058         recognized, report the invalid characters including "-gnat" instead of
10059         just the first character in the switch.
10060         New switch -gnatI to disable representation clauses
10061         Set Warn_On_Object_Renames_Function true for -gnatg
10062
10063         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
10064         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
10065         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
10066         to switch -aP (add directory to project search dir).
10067
10068         * par-prag.adb: Implement new pragma Implicit_Packing
10069
10070         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
10071         type as having a non-standard representation, to force expansion on
10072         conversion to related types.
10073         (Analyze_Pragma): Warn on misspelled pragma
10074         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
10075         Ensure consistent use of # in error messages
10076         Implement pragma Implicit_Packing
10077
10078 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10079             Eric Botcazou  <ebotcazou@adacore.com>
10080
10081         * targtyps.c (get_target_maximum_default_alignment): New function.
10082         Maximum alignment
10083         that the compiler might choose by default for a type or object.
10084         (get_target_default_allocator_alignment): New function. Alignment known
10085         to be honored by the target default allocator.
10086         (get_target_maximum_allowed_alignment): New function. Maximum alignment
10087         we might accept for any type or object on the target.
10088         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
10089
10090         * gigi.h (get_target_maximum_default_alignment): Declare new function.
10091         (get_target_default_allocator_alignment): Likewise.
10092         (get_target_maximum_allowed_alignment): Likewise.
10093
10094         PR ada/19037
10095         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
10096         result of a function call, first try to use a stabilized reference for
10097         a constant renaming too.
10098         (validate_alignment): Use target_maximum_allowed_alignment instead of
10099         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
10100         (gnat_to_gnu_entity): Use common nodes directly.
10101         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
10102         alignment and size for the object.
10103         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
10104         and N_Procedure_Call_Statement.
10105         (takes_address): Rename to lvalue_required_p, add third parameter
10106         'aliased' and adjust recursive calls.
10107         <N_Indexed_Component>: Update 'aliased' from the array type.
10108         <N_Selected_Component>: New case.
10109         <N_Object_Renaming_Declaration>: New Likewise.
10110         (Identifier_to_gnu): Adjust for above changes.
10111         (maybe_stabilize_reference) <CONST_DECL>: New case.
10112
10113         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
10114         between type variants.
10115         (build_simple_component_ref): Likewise.
10116         (build_call_alloc_dealloc): Use target_default_allocator_alignment
10117         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
10118         aligning type circuitry for allocations from the default storage pool.
10119         (build_allocator): Likewise.
10120         (build_simple_component_ref): Manually fold the reference for a
10121         constructor if the record type contains a template.
10122
10123         * utils.c (value_zerop): Delete.
10124         (gnat_init_decl_processing): Emit debug info for common types.
10125         (rest_of_record_type_compilation): If a union contains a field
10126         with a non-constant qualifier, treat it as variable-sized.
10127         (finish_record_type): Give the stub TYPE_DECL a name.
10128         (rest_of_record_type_compilation): Likewise.
10129         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
10130         types are equivalent array types.
10131         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
10132         even if the type is not passed by reference.
10133         (static_ctors, static_dtors): Delete.
10134         (end_subprog_body): Do not record constructors and destructors.
10135         (build_global_cdtor): Delete.
10136         (gnat_write_global_declarations): Do not call build_global_cdtor.
10137
10138         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
10139         -fRTS=rtp is specified.
10140         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
10141         specified.
10142
10143         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
10144         of the personality function with SJLJ exceptions.
10145
10146         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
10147         the name of the personality function with SJLJ exceptions.
10148
10149 2007-08-14  Robert Dewar  <dewar@adacore.com>
10150             Ed Schonberg  <schonberg@adacore.com>
10151
10152         * par.ads, par.adb: Improve handling of extra right parens.
10153         (Par): Remove flag From_Limited_With_Clause.
10154
10155         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
10156         Improve handling of extra right parens.
10157
10158 2007-08-14  Robert Dewar  <dewar@adacore.com>
10159
10160         * par-tchk.adb (TF_Semicolon): Improve error recovery
10161
10162 2007-08-14  Robert Dewar  <dewar@adacore.com>
10163             Ed Schonberg  <schonberg@adacore.com>
10164
10165         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
10166         enumeration type, mark all literals as referenced.
10167         (Eval_Attribute, case 'Image): If the argument is an enumeration
10168         literal and names are available, constant-fold but mark nevertheless as
10169         non-static.
10170         Clean up function names.
10171         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
10172         comment.
10173         (Requires_Simple_Name_Prefix): Removed.
10174
10175 2007-08-14  Robert Dewar  <dewar@adacore.com>
10176             Ed Schonberg  <schonberg@adacore.com>
10177
10178         * sem_ch11.adb: Improved warnings for unused variables
10179
10180         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
10181         is a synchronized interface, the derived type is limited.
10182         (Analyze_Object_Declaration): Mark the potential coextensions in the
10183         definition and expression of an object declaration node.
10184         (Build_Derived_Type): For the completion of a private type declaration
10185         with a derived type declaration, chain the parent type's representation
10186         items to the last representation item of the derived type (not the
10187         first one) if they are not present already.
10188         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
10189         object declaration of forward references to tags.
10190         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
10191         subprogram types can appear as access discriminants of synchronized
10192         types.
10193         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
10194         given in prefixed form as a selected component.
10195         (Process_Discriminants): If not all discriminants have defaults, place
10196         error message on a default that is present.
10197         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
10198         extend a synchronized tagged type.
10199         Improved warnings for unused variables
10200         (Is_Visible_Component): Fix a visibility hole on a component inherited
10201         by a private extension when parent is itself declared as a private
10202         extension, and the derivation is in a child unit.
10203         (Find_Hidden_Interface): Move spec from the package body.
10204
10205 2007-08-14  Robert Dewar  <dewar@adacore.com>
10206             Ed Schonberg  <schonberg@adacore.com>
10207
10208         * sem_ch5.adb: Improve warnings on redundant assignments
10209
10210         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
10211         parameter
10212         (Is_Synchronized_Tagged_Type): New subprogram that returns true
10213         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
10214         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
10215         is set to False. Improves handling of Known_[Not_]Null.
10216         (Wrong_Type): Special case address arithmetic attempt
10217         (Collect_Abstract_Interfaces): Add new formal to allow collecting
10218         abstract interfaces just using the partial view of private types.
10219         (Has_Abstract_Interfaces): Add new formal to allow checking types
10220         covering interfaces using the partial view of private types.
10221         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
10222         component still needs to be defined in this case, but is never
10223         initialized as VMs are using other dispatching mechanisms.
10224         (Abstract_Interface_List): For a protected type, use base type to get
10225         proper declaration.
10226         Improve warnings on redundant assignments
10227         (Is_Variable): Handle properly an implicit dereference of a prefixed
10228         function call.
10229         (Build_Actual_Subtype): If this is an actual subtype for an
10230         unconstrained formal parameter, use the sloc of the body for the new
10231         declaration, to prevent anomalises in the debugger.
10232
10233 2007-08-14  Robert Dewar  <dewar@adacore.com>
10234
10235         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
10236         dispatching operation
10237
10238 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10239             Gary Dismukes  <dismukes@adacore.com>
10240
10241         * exp_aggr.ads, 
10242         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
10243         expanded aggregate code before allocator, and ahead of declaration for
10244         temporary, to prevent access before elaboration when the allocator is
10245         an actual for an access parameter.
10246         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
10247         the TSD and the table of interfaces.
10248         (Convert_To_Assignments): Augment the test for delaying aggregate
10249         expansion for limited return statements to include the case of extended
10250         returns, to prevent creation of an unwanted transient scope.
10251         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
10252         (Expand_Array_Aggregate): Handle aggregates associated with
10253         statically allocated dispatch tables.
10254         (Expand_Record_Aggregate): Handle aggregates associated with
10255         statically allocated dispatch tables.
10256         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
10257         of anonymous access type.
10258
10259 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10260
10261         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
10262         is a variable that renames a slice, use the variable itself in the
10263         expannsion when the renamed expression itself may be modified between
10264         the declaration of the renaming and the array assignment.
10265
10266 2007-08-14  Jerome Guitton  <guitton@adacore.com>
10267
10268         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
10269         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
10270         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
10271         New functions; dummy implementations.
10272
10273         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
10274         functions, used to implement the multi-tasks mode routines on VxWorks.
10275
10276         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
10277         New functions, thin
10278         binding to the VxWorks routines which have changed between VxWorks 5
10279         and 6.
10280         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
10281         which are not callable from a RTP.
10282
10283         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
10284         implemented for the multi-tasks mode on VxWorks 5 and 6.
10285
10286         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
10287
10288         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
10289         functions.
10290
10291 2007-08-14  Vincent Celier  <celier@adacore.com>
10292
10293         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
10294         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
10295         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
10296         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
10297         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
10298         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
10299         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
10300         procedure.
10301         (Major_Id_Name): New function.
10302         mlib-tgt.ads/mlib.tgt.adb:
10303         (Library_Major_Minor_Id_Supported): New function, default returns True
10304         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
10305         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
10306         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
10307         Implementation of Library_Major_Minor_Id_Supported returns False
10308         clean.adb:
10309         (Clean_Library_Directory): If major/minor ids are supported, clean all
10310         library files.
10311         Major update of the Project Manager and of the project aware tools,
10312         including gprmake, so that the same sources in the GNAT repository
10313         can be used by gprbuild.
10314
10315 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10316
10317         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
10318         (GCC_ZCX_Support): Switch to True.
10319         
10320         * s-intman-solaris.adb (Notify_Exception): Call
10321         Adjust_Context_For_Raise before raising, as expected for signal
10322         handlers in general.
10323         
10324         * s-intman-posix.adb (Notify_Exception): Remove declaration of
10325         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
10326         to other implementation bodies.
10327         
10328         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
10329         be visible by multiple implementation bodies.
10330         
10331         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
10332         only for conditions coming from hardware.
10333         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
10334         adjustments to signal context prior to exception raise from signal
10335         handler.
10336         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
10337         mode.
10338         Solaris section: (__gnat_adjust_context_for_raise): New function.
10339         Implementation of the machine context adjustments to perform prior to
10340         raise from a signal handler. Version for both sparc and x86.
10341         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
10342         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
10343         prior to raising as expected for any handler, before possible nested
10344         faults to make sure all the contexts in a chain have been adjusted by
10345         the time we propagate.
10346
10347 2007-08-14  Pascal Obry  <obry@adacore.com>
10348
10349         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
10350         (SYSTEM_INFO): New record.
10351         (SetThreadIdealProcessor): New imported routine needed for supporting
10352         task_info pragma on Windows.
10353
10354         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
10355         info can be applied to the current host.
10356         (Create_Task): Set the ideal processor if information is present.
10357
10358         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
10359         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
10360
10361 2007-08-14  Olivier Hainque  <hainque@adacore.com>
10362
10363         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
10364         stack size and initial stack pointer value for a given task.
10365         (Enter_Task): Get the stack attributes of the task we are entering and
10366         let the stack checking engine know about them.
10367
10368         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
10369         Let the stack-checking engine know about the initial sp value and stack
10370         size associated with the current task.
10371         (Set_Stack_Info): If a stack base has been notified for the current
10372         task, honor it. Fallback to the previous less accurate method otherwise.
10373
10374         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
10375
10376 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10377
10378         * sem_ch10.adb: Create a limited view of an incomplete type, to make
10379         treatment of limited views uniform for all visible declarations in a
10380         limited_withed package.
10381         Set flag indicating that a subprogram body for a child unit has a
10382         generated spec.
10383         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
10384         separate declaration, remove the unit name from visibility after
10385         compilation, so that environment is clean for subsequent compilations.
10386         (Install_Limited_Context_Clauses): Do not install a
10387         limited_private_with_clause unless the current unit is a body or a
10388         private child unit.
10389         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
10390         in the same fashion.
10391         (Install_Limited_Withed_Unit): Do not install a limited with clause if
10392         it applies to the declaration of the current package body.
10393         (Remove_Private_With_Clauses): If there is a regular with_clause for
10394         the unit, delete Private_With_Clause from context, to prevent improper
10395         hiding when processing subsequent nested packages and instantiations.
10396
10397 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
10398
10399         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
10400         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
10401         representing absolute path names.
10402         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
10403
10404         * cstreams.c (__gnat_full_name for VxWorks): Use
10405         __gnat_is_absolute_path to detect whether we need to add the current
10406         directory to normalize the path.
10407
10408 2007-08-14  Javier Miranda  <miranda@adacore.com>
10409
10410         * a-tags.ads, 
10411         a-tags.adb (Displace): Associate a message with the raised CE
10412         exception.
10413         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
10414         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
10415         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
10416         spec.
10417         (Default_Prim_Op_Count): Removed.
10418         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
10419         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
10420         Remove pragma Inline_Always.
10421
10422         * rtsfind.ads (Default_Prim_Op_Count): Removed
10423         (Max_Predef_Prims): New entity
10424         (RE_Expanded_Name): Removed
10425         (RE_HT_Link): Removed
10426         (RE_Iface_Tag): Remmoved
10427         (RE_Ifaces_Table): Removed
10428         (RE_Interfaces_Array): Removed
10429         (RE_Interface_Data_Element): Removed
10430         (RE_Nb_Ifaces): Removed
10431         (RE_RC_Offset): Removed
10432         (RE_Static_Offset_To_Top): Removed
10433
10434         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
10435         formal.
10436         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
10437         Prim_Op_Count by Max_Predef_Prims.
10438
10439 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10440             Vincent Celier  <celier@adacore.com>
10441
10442         * binde.adb (Elab_All_Links): Remove unnecessary call to
10443         Generic_Separately_Compiled (if a unit satisfies this predicate, there
10444         won't be an associated Afile).
10445         (Elab_All_Links): Fail if a referenced unit cannot be found
10446
10447         * bindgen.adb: 
10448         Fix comments in bindgen regarding consistency checks done in Bcheck:
10449         the checks are made across units within a partition, not across several
10450         partitions.
10451         Fix generation of C binder file for VxWorks.
10452
10453         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
10454         Generic_May_Lack_ALI, more descriptive of the current use of the
10455         predicate, and update documentation.
10456
10457         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
10458         reorganization and documentation update for the case of predefined
10459         library generics (for which we do not reference an Afile).
10460
10461 2007-08-14  Robert Dewar  <dewar@adacore.com>
10462
10463         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
10464         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
10465         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
10466         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
10467         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
10468         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
10469         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
10470         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
10471         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
10472         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
10473         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
10474         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
10475         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
10476         g-altcon.adb: Minor reformatting
10477
10478         ada-tree.h: Delete empty line.
10479
10480         ali.ads: Minor reformatting
10481         Clarification of comments.
10482         Minor spelling correction
10483
10484         * exp_dbug.adb: Add Warnings Off to suppress new warning
10485
10486         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10487         formal
10488
10489         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
10490         value
10491
10492         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
10493
10494         * a-textio.ads: Reorder the standard input/output/error declarations
10495         for consistency.
10496
10497         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
10498
10499         * par-ch2.adb: Recognize RM specially in errout
10500         Change 'R'M to RM in all error messages
10501
10502         * scng.adb: Recognize RM specially in errout
10503
10504         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
10505         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
10506
10507         * s-direio.adb: Add missing routine header box.
10508
10509         * sem_attr.ads: Add ??? comments
10510
10511         * sem_eval.adb: Recognize RM specially in errout
10512         Change 'R'M to RM in all error messages
10513
10514         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
10515
10516         * s-tasinf.ads: Fix minor comment typo.
10517
10518         * a-cihama.adb: Minor comment addition
10519
10520         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10521         formal
10522
10523         * s-tasinf-tru64.ads: Fix minor comment typo.
10524
10525         * itypes.ads: Comment update.
10526
10527         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
10528         anymore.
10529
10530         * argv.c: Added protection against null gnat_argv and gnat_envp.
10531
10532         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
10533         warning message when Tolerate_Consistency_Errors is True.
10534
10535         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
10536         Any_Id, as this subprogram is only applicable to *type* entities (it
10537         sets RM_Size). Instead initialize just Esize and Alignment.
10538
10539 2007-08-14  Bob Duff  <duff@adacore.com>
10540
10541         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
10542         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
10543         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
10544         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
10545         a-coorse.ads (Next): Applied pragma Inline.
10546         Make all Containers packages Remote_Types (unless they are already
10547         Pure).
10548         (Previous): applied pragma Inline
10549         (Elements_Type): is now a record instead of an array
10550
10551 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10552
10553         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
10554         of Set_Item.
10555         (Set_Item): When the new item is an element of the currently allocated
10556         table passed by reference, save a copy on the stack if we're going
10557         to reallocate. Also, in Table.Set_Item, make sure we test the proper
10558         variable to determine whether to call Set_Last.
10559
10560         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
10561         symbols-vms.adb, symbols-processing-vms-alpha.adb,
10562         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
10563         some occurrences of the pattern
10564            T.Increment_Last;
10565            T.Table (T.Last) := Value;
10566         with a cleaner call to
10567            T.Append (Value);
10568
10569 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10570             Gary Dismukes  <dismukes@adacore.com>
10571             Thomas Quinot  <quinot@adacore.com>
10572
10573         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
10574         derived type with interface progenitors use the analyzed formal as the
10575         parent of the actual, to create renamings for all the inherited
10576         operations in Derive_Subprograms.
10577         (Collect_Previous_Instances): new procedure within of
10578         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
10579         unit being loaded, to ensure that the generation of global symbols is
10580         consistent in different compilation modes.
10581         (Is_Tagged_Ancestor): New function testing the ancestor relation that
10582         takes progenitor types into account.
10583         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
10584         traversing over the primitives of the formal and actual types to locate
10585         any abstract subprograms of the actual type that correspond to a
10586         nonabstract subprogram of the formal type's ancestor type(s), and issue
10587         an error if such is found.
10588         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
10589         Instantiate_Package_Body, Instantiate_Subprogram_Body):
10590         Remove bogus guard around calls to Inherit_Context.
10591         (Reset_Entity): If the entity is the selector of a selected component
10592         that denotes a named number, propagate constant-folding to the generic
10593         template only if the named number is global to the generic unit.
10594         (Set_Instance_Env): Only reset the compilation switches when compiling
10595         a predefined or internal unit.
10596
10597 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10598
10599         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
10600         parameter to determine whether operation applies to the prefix.
10601         (Complete_Object_Operation): If actual has an access type and
10602         controlling formal is not an in_parameter, reject the actual if it is
10603         an access_to_constant type.
10604         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
10605         type, the candidate operations are found in the scope of declaration of
10606         the type, because the type has no primitive subprograms.
10607         (Analyze_Selected_Component): If prefix is class-wide, and root type is
10608         a private extension, only examine visible components before trying to
10609         analyze as a prefixed call.
10610         Change Entity_List to Type_To_Use, for better readability.
10611         (Has_Fixed_Op): Use base type when checking whether the type of an
10612         operator has a user-defined multiplication/division
10613         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
10614         user-defined operators are available for fixed-point types.
10615
10616 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10617             Ed Schonberg  <schonberg@adacore.com>
10618
10619         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
10620         formal At_Any_Place indicating, when True, that we want to test for
10621         availability of the stream attribute at any place (as opposed to the
10622         current visibility context only).
10623         (Missing_Read_Write_Attributes): A stream attribute is missing for the
10624         purpose of enforcing E.2.2(8) only if it is not available at any place.
10625         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
10626         when checking the legality of an extension aggregate in a preelaborable
10627         package. Treat the literal null as a valid default expression in a
10628         component declaration for a type with preelaborable initialization.
10629         A limited interface is a legal progenitor for the designated type of a
10630         remote access to class-wide type.
10631
10632 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10633             Ed Schonberg  <schonberg@adacore.com>
10634
10635         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
10636         reference): Use correct entity as denoted entity for the selector of
10637         the rewritten node.
10638         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
10639         setting the Referenced_As_LHS flag for entities that are implicitly
10640         dereferenced.
10641         (Find_Type): If the type is an internally generated incomplete type,
10642         mark the full view as referenced, to prevent spurious warnings.
10643         (Find_Selected_Component, Has_Components): Handle properly non-limited
10644         views that are themselves incomplete types.
10645         Handle interfaces visible through limited-with clauses.
10646         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
10647         subprogram generic actual for which we have generated a renaming.
10648         Warn when the renaming introduces a homonym of
10649         the renamed entity, and the renamed entity is directly visible.
10650
10651 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10652             Hristian Kirtchev  <kirtchev@adacore.com>
10653
10654         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
10655         appear in the subtree to the current allocator if it is not a static
10656         coextension.
10657         (Resolve_Allocator): Perform cleanup if resolution has determined that
10658         the allocator is not a coextension.
10659         (Resolve): Skip an interpretation hidden by an abstract operator only
10660         when the type of the interpretation matches that of the context.
10661         (Resolve): When looping through all possible interpretations of a node,
10662         do not consider those that are hidden by abstract operators.
10663         (Resolve_Actuals): When verifying that an access to class-wide object
10664         is an actual  for a controlling formal, ignore anonymous access to
10665         subprograms whose return type is an access to class_wide type.
10666         (Resolve_Slice): If the prefix of the slice is a selected component
10667         whose type depends on discriminants, build its actual subtype before
10668         applying range checks on the bounds of the slice.
10669         (Valid_Conversion): In an instance or inlined body, compare root types,
10670         to prevent anomalies between private and public views.
10671         (Resolve): Improve error message for ambiguous fixed multiplication
10672         expressions that involve universal_fixed multiplying operations.
10673
10674 2007-08-14  Javier Miranda  <miranda@adacore.com>
10675             Hristian Kirtchev  <kirtchev@adacore.com>
10676
10677         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
10678         location to allow the correct generation of errors in case of
10679         restrictions applied to the expanded code.
10680         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
10681         function if the condition does not reference them.
10682         (Expand_Entry_Body_Declarations): Mark the index constant as having a
10683         valid value.
10684
10685 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10686             Pablo Oliveira  <oliveira@adacore.com>
10687
10688         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
10689         typecode parameters for a union (in a variant record), remove
10690         extraneous layer of Any wrapping for member label.
10691         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
10692         elabration statements, register the package with the name server
10693         at the beginning, not at the end, of the elaboration statements so
10694         that they can create remote access to subprogram values that designate
10695         remote subprograms from the package.
10696
10697 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10698
10699         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
10700         values to compute the number of seconds since the Unix Epoc in order to
10701         account for Daylight Savings Time. Perform special processing for dates
10702         that are earlier than the Unix Epoc to obtain a negative number.
10703
10704 2007-08-14  Emmanuel Briot  <briot@adacore.com>
10705
10706         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
10707         switches.
10708
10709 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
10710
10711         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
10712         binder-generated file is not in Ada.
10713         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
10714         recorded in the ALI file.
10715         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
10716
10717 2007-08-14  Vincent Celier  <celier@adacore.com>
10718
10719         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
10720         (Output_Source): Do nothing if parameter is No_Sdep_Id
10721
10722         * make.adb (Gnatmake): Do not rebuild an archive simply because a
10723         shared library it imports has a later time stamp.
10724         (Check): Resolve the symbolic links in the path name of the object
10725         directory.
10726         Check that the ALI file is in the correct object directory
10727         Check if a file name does not correspond to the mapping of units
10728         to file names.
10729         (Display_Version): New procedure
10730         (Initialize): Process switches --version and --help
10731         Use type Path_Name_Type for path name
10732
10733 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
10734
10735         * impunit.adb: Re-organize System.Random_Numbers and
10736         GNAT.Random_Numbers and add to builds.
10737
10738         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
10739
10740         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
10741
10742         * a-assert.ads, a-assert.adb: New files.
10743
10744 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
10745
10746         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
10747         if AAMP_On_Target is True, then the size of the type encompasses two
10748         addresses (a static link and a subprogram address), except in the case
10749         of library-level access types.
10750
10751 2007-08-14  Vincent Celier  <celier@adacore.com>
10752
10753         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
10754         writing the line.
10755         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10756         possible trailing spaces.
10757         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10758
10759 2007-08-14  Javier Miranda  <miranda@adacore.com>
10760
10761         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
10762         null-excluding access types.
10763
10764 2007-08-14  Javier Miranda  <miranda@adacore.com>
10765
10766         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
10767         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
10768         of private types add missing check on matching interfaces in the
10769         partial and full declarations.
10770         (Analyze_Protected_Type): Code cleanup.
10771         (Analyze_Task_Type): Code cleanup.
10772
10773 2007-08-14  Javier Miranda  <miranda@adacore.com>
10774
10775         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
10776         generated interface thunk.
10777
10778 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10779
10780         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
10781         obsolescent warning on application of 'Class to an incomplete type.
10782
10783         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
10784         prevent obsolescent warning on application of 'Class to an incomplete
10785         type.
10786
10787 2007-08-14  Pascal Obry  <obry@adacore.com>
10788
10789         * s-fileio.adb (Is_Open): Add check for usability of the underlying
10790         file stream.
10791
10792 2007-08-14  Cyrille Comar  <comar@adacore.com>
10793
10794         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
10795         since it is potentially used in cases implying double finalization of
10796         the same object.
10797
10798 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
10799
10800         * s-tasini.adb (Get_Stack_Info): Move this function to
10801         System.Soft_Links.Tasking because it is common to the full and the
10802         restricted run times.
10803         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
10804         in SSL.Tasking.Init_Tasking_Soft_Links.
10805
10806         * s-solita.adb (Get_Stack_Info): Function moved from
10807         System.Tasking.Initialization because it is common to the full and the
10808         restricted run times.
10809         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
10810
10811 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
10812
10813         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
10814         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
10815         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
10816         parameter.
10817
10818         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
10819         guard to 12K.
10820
10821 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
10822
10823         * s-veboop.adb (SU): New named number initialized to
10824         System.Storage_Unit.
10825         (True_Val): The initialization expression is revised to use SU (=
10826         Storage_Unit) rather than assuming 8 for the component size of an
10827         unpacked Boolean array.
10828
10829 2007-08-14  Tristan Gingold  <gingold@adacore.com>
10830
10831         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
10832
10833         * tb-ivms.c: New file.
10834
10835         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
10836
10837 2007-08-14  Geert Bosch  <bosch@adacore.com>
10838
10839         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
10840         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
10841         Add required linker pragmas for automatically linking with the gnalasup
10842         linear algebra support library, and the systems math library.
10843         Rename cdot to cdotu and zdot to zdotu.
10844         Update header comment to describe purpose of package.
10845
10846 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10847
10848         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
10849         an explicitly specified Associated_Final_Chain, use that list.
10850         (Expand_N_Package_Body): Build dispatch tables of library level tagged
10851         types.
10852         (Expand_N_Package_Declaration): Build dispatch tables of library level
10853         tagged types. Minor code cleanup.
10854
10855 2007-08-14  Vincent Celier  <celier@adacore.com>
10856
10857         * gnatchop.adb (Terminate_Program): Remove exception and use
10858         Types.Terminate_Program instead.
10859
10860         * osint.ads, osint.adb (Current_Exit_Status): New global variable
10861         (Find_Program_Name): Added protection against empty name.
10862         (OS_Exit_Through_Exception): New procedure
10863
10864         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
10865         (OS_Exit_Default): New procedure that contains the previous
10866         implementation of procedure OS_Exit.
10867         (Final_Value): Remove obsolete Interix stuff.
10868
10869 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10870
10871         * g-socket.ads: Reorganize example code so that it also works on
10872         Windows XP.
10873
10874 2007-08-14  Tristan Gingold  <gingold@adacore.com>
10875
10876         * g-trasym.ads: AIX now supports symbolic backtraces.
10877
10878 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10879
10880         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
10881         units being loaded to detect circularities. A circularity may be
10882         present even if the current chain of pending units to load starts from
10883         a limited_with_clause.
10884
10885         * lib-load.ads: Change profile of Load_Unit to use a with_clause
10886         rather than a boolean flag, in order to detect circularities in
10887         with_clauses.
10888
10889         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
10890         than propagating the From_Limited_With flag, in order to handle
10891         properly circularities involving with_clauses.
10892
10893 2007-08-14  Nicolas Setton  <setton@adacore.com>
10894
10895         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
10896         warnings.
10897
10898 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
10899
10900         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
10901         to build for libgnala.
10902         libgnat: Add rules to build libgnala.a
10903         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
10904         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
10905         Add s-osinte-vxworks-kernel.adb to the target pairs of the
10906         kernel run-time lib for VxWorks 6, which would provide a different
10907         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
10908         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
10909         running ZCX by default.
10910         Add g-sttsne-locking to LynxOS version.
10911         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
10912         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
10913
10914         * system-darwin-x86.ads: New file.
10915
10916         * Make-lang.in: Delete files before copying onto them, so if they are
10917         read-only, the copy won't fail.
10918         Update dependencies
10919
10920 2007-08-14  Pascal Obry  <obry@adacore.com>
10921
10922         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
10923         naming scheme.
10924
10925 2007-08-14  Vincent Celier  <celier@adacore.com>
10926
10927         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
10928         (Gcc): Initialize Gcc_Name at the first call
10929
10930 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10931
10932         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
10933         with_clauses of the enclosing unit when analyzing the package
10934         specification of a nested instance.
10935
10936 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10937
10938         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
10939         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
10940         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
10941         layout of N_Allocator.
10942
10943 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10944
10945         * rtsfind.adb (Check_RPC): Add PCS version check.
10946
10947         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
10948         (Gnat_Free_Software): New function.
10949
10950         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
10951         the PCS_Version value from s-parint, used to check that it is consistent
10952         with what exp_dist expects.
10953
10954         * s-parint.ads (PCS_Version): New entity for checking consistency
10955         between exp_dist and PCS.
10956
10957         * gen-soccon.c: (SO_REUSEPORT): New constant.
10958
10959 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10960
10961         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
10962         variable Sub_Second to Duration in order to accomodate a larger range
10963         of arithmetic operations.
10964
10965 2007-08-14  Bob Duff  <duff@adacore.com>
10966
10967         * g-sttsne-locking.ads: Move comments from spec to body.
10968         * g-sttsne-locking.adb: Move comments from spec to body.
10969         * g-sttsne-vxworks.ads: Removed.
10970         * g-sttsne-vxworks.adb: Removed.
10971
10972 2007-08-11  Ian Lance Taylor  <iant@google.com>
10973
10974         * misc.c (gnat_get_alias_set): Change return type to
10975         alias_set_type.
10976
10977 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10978
10979         * decl.c, utils2.c: Fix whitespace in last change.
10980
10981 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10982
10983         * decl.c (compare_field_bitpos): Constify.
10984         * utils2.c (compare_elmt_bitpos): Likewise.
10985
10986 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
10987
10988         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
10989         anonymous access type.
10990         (pthread_sigmask): Now take an access sigset_t.
10991
10992 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
10993
10994         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
10995         
10996 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
10997
10998         PR tree-optimization/25737
10999         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11000
11001 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11002
11003         * trans.c (Attribute_to_gnu): When subtracting an
11004         offset from a pointer, use POINTER_PLUS_EXPR with
11005         NEGATE_EXPR instead of MINUS_EXPR.
11006         (gnat_to_gnu): Likewise.
11007         * utils.c (convert): When converting between
11008         thin pointers, use POINTER_PLUS_EXPR and sizetype
11009         for the offset.
11010         * utils2.c (known_alignment): POINTER_PLUS_EXPR
11011         have the same semantics as PLUS_EXPR for alignment.
11012         (build_binary_op): Add support for the semantics of
11013         POINTER_PLUS_EXPR's operands.
11014         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11015
11016 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
11017
11018         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11019         of get_signed_or_unsigned_type.
11020         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11021
11022 2007-06-11  Bob Duff  <duff@adacore.com>
11023             Thomas Quinot  <quinot@adacore.com>
11024
11025         * g-stsifd-sockets.adb (Create): Work around strange behavior of
11026         'bind' on windows that causes 'connect' to fail intermittently, by
11027         retrying the 'bind'.
11028         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11029
11030 2007-06-10  Duncan Sands  <baldrick@free.fr>
11031
11032         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11033         than to void, for the fields when making a new fat pointer type.
11034         (gnat_substitute_in_type): Now substitute_in_type.
11035         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
11036         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11037         * utils.c (update_pointer_to): Update fat pointers by updating the
11038         dummy node pointers used for the fields.
11039
11040 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11041             Bob Duff  <duff@adacore.com>
11042
11043         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11044         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
11045         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
11046         constant Thread_Blocking_IO, always True by default, set False
11047         on a per-runtime basis.
11048         (Need_Netdb_Buffer): New constant.
11049
11050         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11051         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11052         files.
11053
11054         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11055         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11056         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11057         child package Task_Safe_NetDB
11058         (Host_Error_Messages): Add stub body.
11059         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11060
11061         * g-soccon-mingw.ads: Add Windows-specific constants.
11062         (Need_Netdb_Buffer): New constant.
11063         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
11064         wrapper and import inet_addr(3) from the standard sockets library
11065         directly instead.
11066         (In_Addr): Add alignment clause.
11067         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11068
11069 2007-06-06  Robert Dewar  <dewar@adacore.com>
11070
11071         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11072         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
11073         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
11074         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
11075         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
11076         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
11077         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
11078         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
11079         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
11080         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
11081         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
11082         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
11083         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
11084         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
11085         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
11086         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
11087         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
11088         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
11089         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
11090         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
11091         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
11092         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
11093         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
11094         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
11095         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
11096         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
11097         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
11098         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
11099         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
11100         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
11101         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
11102         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
11103         Unchecked_* by Ada.Unchecked_*
11104
11105 2007-06-06  Robert Dewar  <dewar@adacore.com>
11106
11107         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
11108         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
11109         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
11110         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
11111         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
11112         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
11113
11114         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
11115         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
11116         s-tasloc.adb, s-tasloc.ads: New files.
11117
11118 2007-06-06  Bob Duff  <duff@adacore.com>
11119
11120         * g-expect-vms.adb: 
11121         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
11122         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
11123         (Send_Signal, Close): Raise Invalid_Process if the process id is
11124         invalid.
11125         (Pattern_Matcher_Access): Is now a general access type to be able to
11126         use aliased string.
11127
11128 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11129             Arnaud Charlet  <charlet@adacore.com>
11130
11131         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
11132         (SIGEMT is now used instead of SIGTERM on AIX).
11133
11134         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
11135         (Time_Slice_Supported): Set to True.
11136         Use SIGEMT instead of SIGTERM as SIGADAABORT.
11137
11138 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11139
11140         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
11141         (Time, Time)): Use To_Relative_Time rather than manual calculation to
11142         express the bounds of Duration as Time. Raise Time_Error when the
11143         result is greater or equal to the higher bound of Duration (on the
11144         margin case).
11145         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
11146         Ada_High_And_Leaps.
11147         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
11148         Ada_High_And_Leaps.
11149         ("-" (Time, Time)): Reorder code.
11150         (All_Leap_Seconds): Removed.
11151         (Arithmetic_Operations.Add): Remove sign related kludge.
11152         (Arithmetic_Operations.Difference): Control the leaps seconds processing
11153         with flag Leap_Support.
11154         (Arithmetic_Operations.Subtract): Remove sign related kludge.
11155         (Check_Within_Time_Bounds): New procedure.
11156         (Clock): Control the leap seconds processing with flag Leap_Support.
11157         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
11158         (Formatting_Operations.Split): Control the leap seconds processing with
11159         flag Leap_Support.
11160         (Formatting_Operations.Time_Of): Control the leaps seconds processing
11161         with flag Leap_Support. Adjust the year, month and day (if applicable)
11162         when the value of day seconds designates a new day.
11163         (Split): Use parameter associations for better readability. Integrate
11164         flag Is_Ada_05.
11165         (Time_Of): Use parameter associations for better readability. Integrate
11166         flag Is_Ada_05.
11167
11168         * a-calfor.adb (Split): Use parameter associations for better
11169         readability. Integrate flag Is_Ada_05.
11170         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
11171         better readability. Integrate flag Is_Ada_05.
11172
11173 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11174
11175         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
11176         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
11177         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
11178         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
11179         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
11180         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
11181         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
11182         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
11183         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
11184         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
11185         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
11186         time when entering this routine to detect a backward clock setting
11187         (manual setting or DST adjustment), to avoid waiting for a longer delay
11188         than needed.
11189         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
11190         Remove handling of deferred priority change, and replace by setting the
11191         task priority directly, as required by AI-188.
11192         Update comments.
11193         (Max_Task_Image_Length): New constant.
11194         Replace Warnings (Off) by Unreferenced pragma, cleaner.
11195         (Dynamic_Priority_Support): Removed, no longer needed.
11196         (Poll_Base_Priority_Change): Ditto.
11197         (Set_Ceiling): Add this procedure to change the ceiling priority
11198         associated to a lock. This is a dummy implementation because dynamic
11199         priority ceilings are not supported by the underlying system.
11200
11201         * a-dynpri.adb (Set_Priority): Take into account case where Target is
11202         accepting a RV with its priority boosted.
11203         Remove handling of deferred priority change, and replace by setting the
11204         task priority directly, as required by AI-188.
11205
11206         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
11207         Succeeded = True.
11208         Remove handling of deferred priority change, and replace by setting the
11209         task priority directly, as required by AI-188.
11210         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
11211         of Self_Id earlier.
11212
11213         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
11214         (Poll_Base_Priority_Change): Removed.
11215         Code clean up: use SSL.Current_Target_Exception.
11216
11217         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
11218         to run as this is a potentially dispatching point.
11219         (Call_Synchronous): Use Local_Defer_Abort.
11220         (Callable): Relax assertion.
11221         (Selective_Wait): Relax assertion in case abort is not allowed.
11222         Remove handling of deferred priority change, and replace by setting the
11223         task priority directly, as required by AI-188.
11224
11225         * s-tasuti.adb (Make_Passive): Adjust assertions.
11226         Remove handling of deferred priority change, and replace by setting the
11227         task priority directly, as required by AI-188.
11228
11229 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11230
11231         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
11232         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
11233         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
11234         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
11235         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
11236         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
11237         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
11238         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
11239         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
11240         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
11241         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
11242         This patch changes the largest non-binary modulus from 2**31-1 to
11243         2**32-1.
11244         (Compiler_System_Version): Removed, no longer used.
11245         Clean up system files by removing flags only used on a single target.
11246         Also remove obsolete flags, only used during bootstrap from system.ads
11247         (Address): Add a pragma Preelaborable_Initialization.
11248
11249         * system-aix.ads:  Ditto.
11250         (GCC_ZCX_Support): Set to true.
11251         Update priority range on AIX and map Ada priorities to target
11252         priorities appropriately for different scheduling policies.
11253
11254         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
11255
11256 2007-06-06  Vincent Celier  <celier@adacore.com>
11257
11258         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
11259         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
11260
11261         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
11262         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
11263         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
11264         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
11265         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
11266         MLib.Tgt, containing the default versions of the exported subprograms.
11267         For each platform, create a specific version of the body of new child
11268         package MLib.Tgt.Specific that contains only the body of subprograms
11269         that are different from the default.
11270         (Archive_Builder_Append_Options): New function.
11271
11272 2007-06-06  Matthew Gingell  <gingell@adacore.com>
11273
11274         * s-osinte-aix.adb: Map Ada priorities to target priorities
11275         appropriately for different scheduling policies.
11276
11277 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11278
11279         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
11280         its C counterpart.
11281         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
11282         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
11283
11284 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
11285
11286         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
11287         Noop on VMS, added for interface commonality.
11288
11289 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11290             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11291             Olivier Hainque  <hainque@adacore.com>
11292
11293         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
11294         renamed expression of a full renaming at toplevel.
11295         (gnat_to_gnu_entity, case object): If not defining, do not look inside
11296         the values the constant is initialized to if it is an N_Allocator.
11297         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
11298         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
11299         (make_aligning_type): Accept an extra ROOM argument for storage to be
11300         made available before the aligned field, and an extra BASE_ALIGN
11301         argument for callers to pass the alignment guaranteed to be honored for
11302         the whole aligning object. Avoid call to finish_record_type, which only
11303         interferes with the sizes we want to set.
11304         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
11305         make_aligning_type for super-aligned objects on stack.
11306         (components_to_record): Pass the adjusted size of the type when creating
11307         fields in the qualified union for the variant part.
11308         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
11309         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
11310         packed array type.
11311         (maybe_pad_type): Set TYPE_USER_ALIGN.
11312         (make_aligning_type): Likewise.
11313         ALIGN argument is unsigned int.
11314         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
11315         (gnat_to_gnu_param): Likewise, for parameters.
11316         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
11317         if it is constant and stems from a function call.
11318         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
11319         of the record is specified.  Adjust accordingly.
11320         (adjust_packed): New static function.
11321         (gnat_to_gnu_field): Use it to adjust the packedness setting.
11322         (components_to_record): Likewise.
11323         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
11324         side-effects if the object is deemed constant.
11325         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
11326         type instead of merely finalizing it.  Tidy.
11327         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
11328         <E_Access_Type>: Likewise.
11329         (defer_debug_incomplete_list): Rename to defer_finalize_list.
11330         (defer_debug_level): Delete.
11331         (gnat_to_gnu_entity) <debug_deferred>: Likewise
11332         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
11333         type.
11334         <E_Record_Type>: Do not explicitly defer finalizing the type.
11335         Adjust for write_record_type_debug_info renaming.
11336         <E_Subprogram_Type>: Likewise.
11337         Finalize deferred types right after deferred incomplete types are
11338         expanded.
11339         (rest_of_type_decl_compilation): New global function.
11340         (components_to_record): Rename defer_debug parameter to do_not_finalize.
11341         (components_to_record): Propagate the packedness to the fields of the
11342         qualified union type if there is a variant part.
11343         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
11344         instead of inline code to adjust the XUT field offsets.
11345         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
11346         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
11347         and write the debug info if the type derives from a discriminated one.
11348         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
11349         <E_Array_Subtype>: Likewise.
11350         <E_String_Literal_Subtype>: Likewise.
11351         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
11352         an alignment clause.
11353         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
11354         before giving warning.
11355         (prepend_one_attribute_to): New function, helper to prepend an attribute
11356         to an attribute list.
11357         (gnat_to_gnu_entity) <E_Procedure>: Use it.
11358         (prepend_attributes): Likewise.
11359         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
11360         <E_Array_Type>: Declare the padding type for the element type, if any.
11361         <E_Array_Subtype>: Likewise.
11362         (defer_limited_with): New variable.
11363         (Gigi_Equivalent_Type): New function.
11364         (gnat_to_gnu_entity): Use it at start and use result throughout.
11365         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
11366         Gigi_Equivalent_Type, support Limited_With, allow two levels of
11367         indirection, precompute if unconstrained array to simplify logic, and
11368         use defer_limited_with to defer elaboration of some types from limited
11369         with.
11370         (finalize_from_with_types): New function.
11371
11372 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
11373             Eric Botcazou  <ebotcazou@adacore.com>
11374             Tristan Gingold  <gingold@adacore.com>
11375             Olivier Hainque  <hainque@adacore.com>
11376
11377         * trans.c (Identifier_to_gnu): Change test for deferred constant by
11378         adding guard that the entity is an E_Constant before testing presence
11379         of Full_view (and remove unnecessary test that entity is not a type).
11380         For a CONST_DECL used by reference, manually retrieve
11381         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
11382         (struct language_function): Move from utils.c to here.
11383         (struct parm_attr): New structure.
11384         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
11385         (f_parm_attr_cache): New macro.
11386         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
11387         expressions for the 'First, 'Last and 'Length attributes of the
11388         unconstrained array IN parameters.
11389         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
11390         Allocate the information structure for the function earlier, as well
11391         as the language-specific part.
11392         If the parameter attributes cache has been populated, evaluate the
11393         cached expressions on entry.
11394         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
11395         N_Procedure_Call_Statement and N_Indexed_Component.
11396         (Pragma_to_gnu): Translate inspection_point to an asm statement
11397         containaing a comment and a reference to the object (either its address
11398         for BLKmode or its value).
11399         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
11400         to go to DECL_INITIAL. Together with the size constraint relaxation
11401         in create_var_decl, enlarges the set of situations in which an
11402         identifier may be used as an initializer without implying elaboration
11403         code.
11404         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
11405         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
11406         node.
11407         (maybe_stabilize_reference): Remove lvalues_only parameter.
11408         (gnat_stabilize_reference): Adjust for above change.
11409         (gnat_to_gnu): Do not set location information on the result
11410         if it is a reference.
11411         (add_cleanup): Add gnat_node parameter and set the location of the
11412         cleanup to it.
11413         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
11414         (Exception_Handler_to_gnu_zcx): Likewise.
11415         (gigi): Remove the cgraph node if the elaboration procedure is empty.
11416         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
11417         the former right after the latter.
11418         (start_stmt_group): Make global.
11419         (end_stmt_group): Likewise.
11420         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
11421         vars.
11422         (gnu_program_error_label_stack): Likewise.
11423         (gigi): Initialize them.
11424         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
11425         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
11426         New cases.
11427         (push_exception_label_stack): New function.
11428         (takes_address): New function.
11429
11430         * utils.c (struct language_function): Move to trans.c from here.
11431         (unchecked_convert): Do not wrap up integer constants in
11432         VIEW_CONVERT_EXPRs.
11433         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
11434         the latter for aggregate types, unexpected by later passes, and relax an
11435         arbitrary size constraint on the former.
11436         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
11437         to compare the sizes.
11438         (convert_vms_descriptor): When converting to a fat pointer type, be
11439         prepared for a S descriptor at runtime in spite of a SB specification.
11440         (shift_unc_components_for_thin_pointers): New function.
11441         (write_record_type_debug_info): For variable-sized fields, cap the
11442         alignment of the pointer to the computed alignment.
11443         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
11444         If REP_LEVEL is 2, do not compute the sizes.
11445         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
11446         (build_unc_object_type): Likewise.
11447         (declare_debug_type): New function.
11448
11449         * ada-tree.def: USE_STMT: removed (not emitted anymore).
11450
11451         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
11452         no statement is expandable anymore.
11453         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
11454         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
11455         when the user requested it explicitely.
11456         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
11457         to 0 for Ada.
11458         (get_alias_set): Return alias set 0 for a type if
11459         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
11460
11461         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
11462         (DECL_FUNCTION_STUB): New accessor macro.
11463         (SET_DECL_FUNCTION_STUB): New setter macro.
11464
11465         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
11466
11467         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
11468         declarations.
11469
11470 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
11471
11472         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
11473         Rename to Abort_Task_Interrupt to be able to keep the same interface
11474         as the rest of the targets.
11475
11476         * s-osinte-vxworks.ads s-osinte-vxworks.adb
11477         (To_VxWorks_Priority): Remove explicit "in" mode indicator
11478
11479         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
11480         New files.
11481
11482 2007-06-06  Robert Dewar  <dewar@adacore.com>
11483
11484         * a-chahan.ads: Remove obsolescent pragmas
11485
11486         * a-chlat1.ads: Minor reformatting
11487
11488 2007-06-06  Robert Dewar  <dewar@adacore.com>
11489
11490         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
11491         for Errout
11492
11493         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
11494         implementation
11495
11496         * errout.ads (Finalize): Changed interface
11497         (Output_Messages): New procedure
11498         (Compilation_Errors): New Interface
11499
11500         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
11501         Finalize/Output_Messages interface for Errout
11502         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
11503         Errout.
11504
11505 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11506             Olivier Hainque  <hainque@adacore.com>
11507             Robert Dewar  <dewar@adacore.com>
11508
11509         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
11510         check.
11511         (Raise_Current_Excep): Call Debug_Raise_Exception just before
11512         propagation starts, to let debuggers know about the event in a reliable
11513         fashion.
11514         (Local_Raise): Moved to System.Exceptions
11515         More convenient to have this as a separate unit
11516
11517         * s-except.adb, s-except.ads: New files.
11518
11519         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
11520         Debug_Unhandled_Exception in System.Exceptions where it belongs
11521         together with a couple of other debug helpers.
11522         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
11523         the former Unhandled_Exception.
11524
11525         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
11526         (Warn_No_Exception_Propagation): New procedure
11527         (Warn_If_No_Propagation): Rewritten for new warning generation
11528         (Expand_Exception_Handlers): New warning generation
11529         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
11530         (Add_Exception_Label): Use Special_Exception_Package_Used for test
11531         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
11532         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
11533         even if restriction is set (makes life easier in Check_Returns)
11534         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
11535         checking exception identities.
11536         (Expand_Local_Exception_Handlers): Do not optimize when all others case
11537         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
11538         block for handler (used by Check_Returns)
11539         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
11540         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
11541         remove all exception handlers when optimizing local raise statements.
11542         (Find_Local_Handler): Use Get_Renamed_Entity
11543         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
11544         marked analyzed after expanding exception handlers, do not generate
11545         redundant cleanup actions, because they have been constructed already.
11546
11547 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11548
11549         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
11550         presence of this categorization pragma is mandated by the language.
11551         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
11552         for this type.
11553
11554 2007-06-06  Vincent Celier  <celier@adacore.com>
11555             Robert Dewar  <dewar@adacore.com>
11556
11557         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
11558         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
11559         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
11560         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
11561         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
11562         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
11563         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
11564         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
11565         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
11566         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
11567         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
11568         ali.ads, ali.adb: 
11569         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
11570         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
11571         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
11572         Use variables of types File_Name_Type and Unit_Name_Type in error
11573         messages.
11574         (Get_Name): Add parameter Ignore_Special, and set it reading file name
11575         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
11576         here.
11577         Define flags Flag217-Flag230 with associated subprograms
11578         (Flag_Word5): New record type.
11579         (Flag_Word5_Ptr): New access type.
11580         (To_Flag_Word5): New unchecked conversion.
11581         (To_Flag_Word5_Ptr): Likewise.
11582         (Flag216): New function.
11583         (Set_Flag216): New procedure.
11584
11585 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11586
11587         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
11588         instead of 'Size.
11589
11590         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
11591
11592 2007-06-06  Javier Miranda  <miranda@adacore.com>
11593
11594         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
11595         the package.
11596         (Object_Specific_Data_Array): This is now internal to the package.
11597         (Object_Specific_Data): This is now internal to the package.
11598         (Select_Specific_Data_Element): This is now internal to the package.
11599         (Select_Specific_Data_Array): This is now internal to the package.
11600         (Select_Specific_Data): This is now internal to the package.
11601         (Offset_To_Top_Function_Ptr): This is now public.
11602         (To_Offset_To_Top_Function_Ptr): Removed.
11603         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
11604          local to subprogram Offset_To_Top.
11605         (Predefined_DT): Removed.
11606         (Typeinfo_Ptr): Removed.
11607         (OSD): This function is now internal to this package.
11608         (SSD): This function is now internal to this package.
11609         (DT): New function that displaces the pointer to the table of primitives
11610          to get access to the enclosing wrapper record.
11611         (IW_Membership): Code cleanup.
11612         (Offset_To_Top): Code cleanup.
11613         (Predefined_DT): Removed.
11614         (Register_Interface_Tag): Removed.
11615         (Set_Interface_Table): Removed.
11616         (Set_Offset_Index): Removed.
11617         (Set_Offset_To_Top): Code cleanup.
11618         (Set_OSD): Removed.
11619         (Set_Signature): Removed.
11620         (Set_SSD): Removed.
11621         (Set_Tagged_Kind): Removed.
11622         (Typeinfo_Ptr): Removed.
11623         (TSD): Removed.
11624         (Displace): Add missing check on null actual.
11625
11626         * exp_disp.ads, exp_disp.adb
11627         (Select_Expansion_Utilities): Removed.
11628         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
11629         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
11630         the interface requires a new parameter.
11631         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
11632         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
11633         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
11634         Done to remove package Select_Expansion_Utilities.
11635         (Make_DT): New implementation for statically allocated dispatch tables.
11636         (Make_Secondary_DT): Moved to the scope of Make_DT.
11637         (Register_Primitive): Code cleanup plus incoporate the use of the new
11638         function DT_Address_Attribute.
11639         (Expand_Interface_Thunk): The profile of this subprogram has been
11640         changed to return the Thunk_Id and the corresponding code.
11641         (Fill_DT_Entry): Removed. Its functionality is now provided by
11642         subprogram Register_Primitive.
11643         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
11644         subprogram Register_Primitive.
11645         (Register_Primitive): New subprogram that incorporates the previous
11646         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
11647         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
11648         was only required to call Make_DT_Access_Action, which is now removed.
11649         (Ada_Actions): Removed
11650         (Action_Is_Proc): Removed
11651         (Action_Nb_Arg): Removed
11652         Replace all the calls to Make_DT_Access_Action by direct calls to
11653         Make_Procedure_Call_Statement or Make_Function_Call.
11654         (Set_DTC_Entity_Value): New subprogram.
11655         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
11656         (Expand_Interface_Thunk): Add missing support for primitives that are
11657         functions with a controlling result (case in which there is no need
11658         to generate the thunk).
11659
11660         * exp_atag.ads, exp_atag.adb
11661         (Build_DT): New subprogram that displaces the pointer to reference the
11662         base of the wrapper record.
11663         (Build_Typeinfo_Offset): Removed.
11664         (RTE_Tag_Node): Removed.
11665         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
11666         (Build_Get_RC_Offset): Removed.
11667         (Build_Inherit_Predefined_Prims): Removed.
11668         (Build_Inherit_TSD: Removed.
11669         (Build_New_TSD): Removed.
11670         (Build_Set_External_Tag): Removed.
11671         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
11672         (Build_Set_Prim_Op_Address): Add documentation.
11673         (Build_Set_TSD): Removed.
11674
11675         * rtsfind.ads, rtsfind.adb
11676         (Load_Fail): If load fails and we are not in configurable run-time
11677         mode, then raise Unrecoverable_Error.
11678         (Text_IO_Kludge): Generate an error message if a run-time library is
11679         not available in a given run-time (ie. zfp run-time).
11680         (RTE_Record_Component): Add code to check that the component we search
11681         for is not found in two records in the given run-time package.
11682         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
11683         (RE_DT_Predef_Prims_Offset): New entity
11684         (RE_Static_Offset_To_Top): New entity
11685         (RE_HT_Link): New entity.
11686         (System_Address_Image): Addition of this run-time package.
11687         (RE_Address_Image): New entity.
11688         (RE_Abstract_Interface): Removed.
11689         (RE_Default_Prim_Op_Count): Removed.
11690         (RE_DT_Entry_Size): Removed.
11691         (RE_DT_Min_Prologue_Size): Removed.
11692         (RE_DT_Prologue_Size): Removed.
11693         (RE_Ifaces_Table_Ptr): Removed.
11694         (RE_Interface_Data_Ptr): Removed.
11695         (RE_Type_Specific_Data): Removed.
11696         (RE_Primary_DT): Removed.
11697         (RE_Register_Interface_Tag): Removed.
11698         (RE_Set_Offset_Index): Removed.
11699         (RE_Set_OSD): Removed.
11700         (RE_Set_SSD): Removed.
11701         (RE_Set_Signature): Removed.
11702         (RE_Set_Tagged_Kind): Removed.
11703         (RE_Address_Array): New entity.
11704         (RE_DT): New entity.
11705         (RE_Iface_Tag): New entity.
11706         (RE_Interfaces_Table): New entity.
11707         (RE_No_Dispatch_Table): New entity.
11708         (RE_NDT_Prims_Ptr): New entity.
11709         (RE_NDT_TSD): New entity.
11710         (RE_Num_Prims): New entity.
11711         (RE_Offset_To_Top_Function_Ptr): New entity.
11712         (RE_OSD_Table): New entity.
11713         (RE_OSD_Num_Prims): New entity.
11714         (RE_Predef_Prims): New entity
11715         (RE_Predef_Prims_Table_Ptr): New entity.
11716         (RE_Primary_DT): New entity.
11717         (RE_Signature): New entity.
11718         (RE_SSD): New entity.
11719         (RE_TSD): New entity.
11720         (RE_Type_Specific_Data): New entity.
11721         (RE_Tag_Kind): New entity.
11722
11723 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11724
11725         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
11726         C imported variable.
11727         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
11728         on entry.
11729
11730 2007-06-06  Robert Dewar  <dewar@adacore.com>
11731
11732         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
11733         character
11734
11735 2007-06-06  Vincent Celier  <celier@adacore.com>
11736
11737         * a-tifiio.adb (Put, internal): For negative numbers, check that there
11738         is room for at least one digit and the minus sign.
11739         (Put.Put_Character): Never put a character outside of the range of
11740         string To.
11741
11742 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11743             Eric Botcazou  <ebotcazou@adacore.com>
11744
11745         * utils2.c (build_allocator): Provide the extra arguments to
11746         make_aligning_type for super-aligned objects allocated from the default
11747         pool. Leave enough room for a pointer before the aligning field, and
11748         store the system's allocator return value there.
11749         (build_call_alloc_dealloc): When releasing a super-aligned object,
11750         retrieve the system's allocator return value from where build_allocator
11751         has stored it, just ahead of the adjusted address we are passed.
11752         (build_call_raise): Handle properly the generation of line numbers when
11753         the node is marked No_Location.
11754         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
11755         by using DECL_UID on ties.
11756         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
11757         main variant.
11758         (build_call_raise): Handle converting exception into goto; support new
11759         argument KIND.
11760         (build_component_ref): Add new arg to build_call_raise.
11761
11762 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11763
11764         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
11765         "." in the case of nnn.xxx when nnn terminates with an underscore.
11766         Parse the remaining "#" or ":" in the case of nnn#.xxx#
11767
11768 2007-06-06  Robert Dewar  <dewar@adacore.com>
11769
11770         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
11771
11772 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11773             Vincent Celier  <celier@adacore.com>
11774             Robert Dewar  <dewar@adacore.com>
11775
11776         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
11777         needed.
11778         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
11779         ((destructor)) for adafinal, even when switch -a is used.
11780         Do not issue pragma Linker_Destructor for adafinal when switch -a is
11781         used.
11782         (Gen_Object_Files_Options): Add formatting of Linker Options, when
11783         Output_Linker_Option_List is set. Suppress this formatting when
11784         Zero_Formatting is set.
11785         Add case for CLI_Target.
11786         (System_Restrictions_Used): New flag, used to avoid generating with of
11787         System_Restrictions and initialization of the data unless there is
11788         some use of System.Restrictions in the partition.
11789         (Check_System_Restrictions_Used): New procedure
11790
11791         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
11792         since we only with this unit in the binder file if it is used elsewhere
11793         in the partition.
11794
11795 2007-06-06  Vincent Celier  <celier@adacore.com>
11796
11797         * bindusg.adb: Add line for @<response file>
11798         Add lines for new switches -R and -Z
11799
11800         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
11801         hierarchy in the list of files of the closure when -R is used
11802         (Gnatbind): Accept arguments starting with '@' to indicate response
11803         files and take the arguments from the response files.
11804         If List_Closure is set, display the referenced files
11805
11806 2007-06-06  Javier Miranda  <miranda@adacore.com>
11807             Robert Dewar  <dewar@adacore.com>
11808             Ed Schonberg  <schonberg@adacore.com>
11809
11810         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
11811         which the address-clause is applied to in-mode actuals (allowed by
11812         13.1(22)).
11813         (Apply_Discriminant_Check): Do not generate a check if the type is
11814         constrained by a current instance.
11815         (Activate_Division_Check): New procedure
11816         (Activate_Overflow_Check): New procedure
11817         (Activate_Range_Check): New procedure
11818         Call these new Activate procedures instead of setting flags directly
11819         (Apply_Array_Size_Check): Removed, no longer needed.
11820         Code clean up: remove obsolete code related to GCC 2.
11821         (Get_E_Length): Protect against bomb in case scope is standard
11822         (Selected_Range_Checks): If the node to be checked is a conversion to
11823         an unconstrained array type, and the expression is a slice, use the
11824         bounds of the slice to construct the required constraint checks.
11825         Improve NOT NULL error messages
11826         (Apply_Constraint_Check): If the context is a null-excluding access
11827         type, diagnose properly the literal null.
11828
11829 2007-06-06  Pascal Obry  <obry@adacore.com>
11830
11831         * clean.adb (Clean_Archive): Use untouched casing for the archive name
11832         and the corresponding .deps file.
11833         (Clean_Interface_Copy_Directory): Use untouched casing for the library
11834         src directory. Minor code-clean-up. Use untouched casing for files
11835         read into the library src dir.
11836         (Clean_Library_Directory): Idem.
11837         (Parse_Cmd_Line): Accept new switch -aP
11838
11839 2007-06-06  Javier Miranda  <miranda@adacore.com>
11840             Ed Schonberg  <schonberg@adacore.com>
11841             Robert Dewar  <dewar@adacore.com>
11842             Eric Botcazou  <ebotcazou@adacore.com>
11843             Arnaud Charlet  <charlet@adacore.com>
11844
11845         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
11846         applicable to types that have the With_Type flag set. Returns the
11847         non-limited view of the type, if available, otherwise the type itself.
11848         For class-wide types, there is no direct link in the tree, so we have
11849         to retrieve the class-wide type of the non-limited view of the Etype.
11850         New attributes Static_Initialization and Static_Elaboration_Desired.
11851         Remove the pragma Thread_Body, and the associated flag
11852         Is_Thread_Body in entities, and all related code.
11853         (Suppress_Value_Tracking_On_Call): New flag
11854         E_Exception has Esize and Alignment fields
11855         (Universal_Aliasing): New function.
11856         (Set_Universal_Aliasing): New procedure.
11857         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
11858         (Check_Nested_Access): New procedure.
11859         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11860         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11861         (Related_Interface): New attribute. Present in dispatch table pointer
11862         components of records. Set to point to the entity of the corresponding
11863         interface type.
11864         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
11865         (Original_Access_Type): Remove, not needed.
11866         (Root_Type): Handle properly subtypes of class-wide-types.
11867         Update comments.
11868
11869         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
11870         class-wide types visible through limited-with clauses.
11871         (Try_Primitive_Operation): When examining all primitive operations of a
11872         tagged type, do not consider subprograms labeled as hidden unless they
11873         belong to a private generic type with a tagged parent.
11874         (Try_Object_Operation): Extensive rewriting, to handle properly various
11875         overloading cases, when several ancestors may have class-wide operations
11876         that are possible candidates, and when the overloaded functions return
11877         array types and have defaulted parameters so that the call may be
11878         interpreted as an indexing.
11879         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
11880         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
11881         successive actuals before analyzing the call itself.
11882         (Try_Primitive_Operation): A primitive operation is compatible with the
11883         prefix if the prefix has a synchronized type and the type of the formal
11884         is its corresponding record, as can be the case when the primitive
11885         operation is declared outside of the body of the type.
11886         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
11887         perform homonym traversal, looking for class-wide operation matches
11888         (formerly done in statements of Try_Class_Wide_Operation). Matches on
11889         access parameters are now restricted to anonymous access types.
11890         (Mark_Allocator): An allocator with a discriminant association parent is
11891         a coextension.
11892         (Try_One_Prefix_Interpretation): If the type of the object is
11893         incomplete, as can be happen when it is a limited view obtained through
11894         a limited_with_clause, the selected component is not part of a prefixed
11895         call.
11896         (Complete_Object_Operation): Diagnose properly an object that is not
11897         aliased when the corresponding controlling formal is an access
11898         parameter.
11899         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
11900         ambiguous calls in prefixed notation, where two primitives differ only
11901         in that the controlling argument of one is an access parameter.
11902
11903         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
11904         whether a function that returns an unconstrained type can be inlined.
11905         (Process_Formals): Diagnose properly the illegal use of an incomplete
11906         type in the profile of an access_to_subprogram declaration.
11907         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
11908         operations are attached to the corresponding record.
11909         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
11910         When processing a primitive of a concurrent type which implements an
11911         interface change the type of all controlling formals to that of the
11912         corresponding record type.
11913         (Check_Synchronized_Overriding): Relax the conditional logic when trying
11914         to determine the tagged type to which a primitive belongs.
11915         (Check_Conventions): Capture condition to ignore a primitive operation
11916         (which is shared between the loop in Check_Conventions and the one in
11917         Check_Convention) in a new local function Skip_Check.
11918         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
11919         confusion with Check_Conventions' own Prim_Op local variable.
11920         (Create_Extra_Formals): Test for a tagged result type rather than a
11921         controlling result when determining whether to add a BIP_Alloc_Form
11922         formal and a BIP_Final_List formal to the function.
11923         (Check_Conformance); For parameters that are anonymous access types,
11924         subtype conformance requires that the not null and the constant
11925         indicators must match
11926         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
11927         to retrieve the appropriate type when processing a concurrent type
11928         declared within a generic. Minor comment reformatting. Change invocation
11929         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
11930         mitive.
11931         (Analyze_Subprogram_Body): If the return type of a function is an
11932         anonymous access to the limited view of a class-wide type, and the
11933         non-limited view of the type is available, update the type of the
11934         function so that code can be generated.
11935         (Process_Formals): In case of access-subtype itype whose designated
11936         type is also an itype (situation that happens now with access to
11937         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
11938         attribute to avoid backend problems.
11939         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
11940         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
11941         anonymous types' designated types are same before testing
11942         Subtypes_Statically_Match.
11943         (Create_Extra_Formals): Test for a named access parameter that is a
11944         controlling formal as an additional condition for adding an
11945         accessibility level formal. This can occur in the subp type created for
11946         dispatching calls in Expand_Dispatching_Call, and allows calling
11947         Create_Extra_Formals from that procedure rather than special-casing the
11948         extra formals there.
11949         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
11950         when the function has a controlling result.
11951         (Check_Returns): Add much more knowledge of the optimization of local
11952         raise statements to gotos, to retain proper warnings in this case.
11953         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
11954         nodes when looking for last statement.
11955
11956         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
11957         class-wide types visible through limited with clauses.
11958         (Add_One_Interp): If the operands are anonymous access types, the
11959         predefined operator on universal_access is immediately visibles
11960         (Find_Unique_Type): Handle anonymous access to subprogram types just as
11961         other anonymous access types.
11962         (Disambiguate): Take into account CIL convention.
11963         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
11964
11965 2007-06-06  Robert Dewar  <dewar@adacore.com>
11966
11967         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
11968         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
11969         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
11970         Fix lower bound of tables.
11971         Add rep clauses.
11972
11973         * nlists.adb: Ditto.
11974         (Prev_Node, Next_Node): Change index type to Int so that it properly
11975         covers the range First_Node_Id - 1 up.
11976
11977 2007-06-06  Javier Miranda  <miranda@adacore.com>
11978             Ed Schonberg  <schonberg@adacore.com>
11979             Bob Duff  <duff@adacore.com>
11980             Hristian Kirtchev  <kirtchev@adacore.com>
11981
11982         * exp_aggr.ads, exp_aggr.adb: 
11983         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
11984         in extension aggregates.
11985         (Flatten): Other conditions being met, an aggregate is static if the
11986         low bound given by component associations is different from the low
11987         bound of the base index type.
11988         (Packed_Array_Aggregate_Handled): If the component type is itself a
11989         packed array or record, the front-end must expand into assignments.
11990         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
11991         Init_Pr, instead of Ancestor_Is_Expression.
11992         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
11993         coextension chain root, either generate a list controller or use the
11994         already existing one.
11995         (Static_Array_Aggregate): New procedure to construct a positional
11996         aggregate that can be handled by the backend, when all bounds and
11997         components are compile-time known constants.
11998         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
11999         types covering interface types into assignments.
12000         (Replace_Type): move to Build_Record_Aggr_Code.
12001         (Expand_Record_Aggr_Code): if the target of the aggregate is an
12002         interface type, convert to the definite type of the aggregate itself,
12003         so that needed components are visible.
12004         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12005         components and the context is an extended return statement do not
12006         create a transient block for it, to prevent premature finalization
12007         before the return is executed.
12008         (Gen_Assign): Do not generate a call to deep adjust routine if the
12009         component type is itself an array of controlled (sub)-components
12010         initialized with an inner aggregate.
12011         (Component_Check): New name for Static_Check. This name is now more
12012         appropriate, and documentation is added which was missing.
12013         (Component_Check): Add test for bit aligned component value
12014         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12015         Tagged_Comps, name is more appropriate given added function below.
12016         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12017
12018 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12019             Javier Miranda  <miranda@adacore.com>
12020             Robert Dewar  <dewar@adacore.com>
12021
12022         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12023         Terminated: Add unchecked type conversion from System.Address to
12024         System.Tasking.Task_Id when calling the predefined primitive
12025         _disp_get_task_id.
12026         Disable new Ada 05 accessibility check for JVM.NET targets, which
12027         cannot be implemented in a practical way.
12028         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12029         the sources always references the tag of the actual object. Therefore,
12030         if 'Tag is applied in the sources to class-wide interface objects we
12031         generate code that displaces "this" to reference the base of the object.
12032         (Expand_N_Attribute_Reference, case Size): Return specified size if
12033         known to front end.
12034         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12035         has code that displaces the pointer of the object to manage interface
12036         types. However this code must not be executed when the prefix is a
12037         subprogram. This bug caused the wrong expansion of the internally
12038         generated assignment that fills the dispatch table when the primitive
12039         is a function returning a class-wide interface type.
12040         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12041         Set_Attribute_Name for Name_Unaligned_Valid.
12042
12043 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12044             Gary Dismukes  <dismukes@adacore.com>
12045
12046         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12047         If the initialization is the equivalent aggregate of the initialization
12048         procedure of the type, do not remove it.
12049         (Expand_N_Attribute_Definition_Clause): Exclude access variables
12050         initialized to null from having their expression reset to empty and
12051         note this exception in the comment.
12052
12053 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12054             Robert Dewar  <dewar@adacore.com>
12055             Ed Schonberg  <schonberg@adacore.com>
12056             Gary Dismukes  <dismukes@adacore.com>
12057
12058         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
12059         Add "with" and "use" clauses for Sem_Attr.
12060         (Expand_Current_Value): Do not replace occurences of attribute
12061         references where the prefix must be a simple name.
12062
12063         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
12064         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
12065         Attribute_Requires_Simple_Name_Prefix.
12066         (Name_Modifies_Prefix): Body of new function.
12067         (Requires_Simple_Name_Prefix): Body of new function.
12068         (Resolve_Attribute, case Access): Improve error message for case of
12069         mismatched conventions.
12070         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
12071         incomplete type.
12072         (Analyze_Attribute, case 'Access): If the type of the prefix is a
12073         constrained subtype for a nominal unconstrained type, use its base type
12074         to check for conformance with the context.
12075         (Resolve_Attribute): Remove test of the access type being associated
12076         with a return statement from condition for performing accessibility
12077         checks on access attributes, since this case is now captured by
12078         Is_Local_Anonymous_Access.
12079         (Analyze_Access_Attribute): Set Address_Taken on entity
12080         (Analyze_Attribute, case Address): Set Address_Taken on entity
12081         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
12082         validating an access attribute whose prefix is a current instance.
12083         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
12084         applied to dispatching operations, if freezing is required then we set
12085         the attribute Has_Delayed_Freeze in the prefix's entity.
12086         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
12087         current scope if access of local subprogram taken
12088         (Analyze_Access_Attribute): Check legality of self-reference even if the
12089         expression comes from source, as when a single component association in
12090         an aggregate has a box association.
12091         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
12092         the prefix if it is a protected operation and the attribute is
12093         Unrestricted_Access.
12094         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
12095         reference to the base type of the context, to force a constraint check
12096         when the context is an access subtype with an explicit constraint.
12097         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
12098         node is rewritten as an interface conversion. leave unanalyzed after
12099         resolution, to ensure that type checking against the context will take
12100         place.
12101
12102 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12103             Javier Miranda  <miranda@adacore.com>
12104             Robert Dewar  <dewar@adacore.com>
12105
12106         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
12107         wrapper when the full view of the controlling type of an inherited
12108         function that dispatches on result implements interfaces.
12109         (Expand_N_Object_Declaration): In cases where the type of the
12110         declaration is anonymous access, create finalization list for it.
12111         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
12112         if the object has no explicit initialization, to match description of
12113         functionality of pragam Persistent_BSS.
12114         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
12115         new function to build static aggregates, to replace initialization call
12116         when static initialization is desired.
12117         (Freeze_Type): Generate a list controller for an access type whenever
12118         its designated type has controlled anonymous access discriminants.
12119         (Build_Equivalent_Aggregate): New procedure to compute a static
12120         aggregate to be used as default initialization for composite types,
12121         instead of a generating a call to the initialization procedure for the
12122         type.
12123         (Build_Initialization_Call): When available, replace a call to the
12124         initialization procedure with a copy of the equivalent static aggregate
12125         for the type.
12126         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
12127         declarations for objects of a class-wide interface type, rather than
12128         just identifiers, to prevent visibility problems.
12129         (Expand_N_Object_Declaration): When expanding the declaration for an
12130         object of a class-wide interface type, preserve the homonym chain of
12131         the original entity before exchanging it with that of the generated
12132         renaming declaration.
12133         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
12134         active, because there is no way to handle the exception.
12135         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
12136         to do a minimum decoration of the Access_Disp_Table list.
12137         (Expand_Record_Controller): Avoid the addition of the controller between
12138         the component containing the tag of a secondary dispatch table and its
12139         adjacent component that stores the offset to the base of the object.
12140         This latter component is only generated when the parent type has
12141         discriminants ---documented in Add_Interface_Tag_Components).
12142         (Apply_Array_Size_Check): Removed, no longer needed.
12143         (Expand_N_Full_Type_Declaration): If the type has anonymous access
12144         components, create a Master_Entity for it only if it contains tasks.
12145         (Build_Init_Procedure): Suppress the tag assignment compiling under
12146         no run-time mode.
12147         (Freeze_Record_Type): Remove code associated with creation of dispatch
12148         table.
12149         (Init_Secondary_Tags): Update type of actuals when generating calls to
12150         Ada.Tags.Set_Offset_To_Top
12151         (Stream_Operation_OK): Disable use of streams compiling under no
12152         run-time mode
12153         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
12154         if Has_Init_Expression set.
12155         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
12156         Register_Primitive, which provides the same functionality.
12157         (Requires_Init_Proc): Return false in case of interface types.
12158         (Add_Secondary_Tables): Use the new attribute Related_Interface to
12159         cleanup the code.
12160         (Predefined_Primitive_Freeze): Do not assume that an internal entity
12161         is always associated with a predefined primitive because the internal
12162         entities associated with interface types are not predefined primitives.
12163         Therefore, the call to Is_Internal is replaced by a call to the
12164         function Is_Predefined_Dispatching_Operation.
12165         (Make_Eq_If): When generating the list of comparisons for the
12166         components of a given variant, omit the controller component that is
12167         present if the variant has controlled components.
12168
12169 2007-06-06  Javier Miranda  <miranda@adacore.com>
12170             Hristian Kirtchev  <kirtchev@adacore.com>
12171             Bob Duff  <duff@adacore.com>
12172
12173         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
12174         handle the creation of finalization lists and calls for nested
12175         coextensions when the root of the chains is part of a return statement.
12176         (Inside_A_Return_Statement): New function inside Complete_Coextension_
12177         Finalization.
12178         (Expand_Record_Equality): Skip components that are interface types.
12179         (Displace_Allocator_Pointer): Add missing support for interface subtypes
12180         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
12181         with Rewrite_Coextension. Change the condition for detecting coextension
12182         root nodes.
12183         (Is_Local_Access_Discriminant): Removed.
12184         (Rewrite_Coextension): New routine which rewrites a static coextension
12185         as a temporary and uses its unrestricted access in the construction of
12186         the outer object.
12187         (Complete_Coextension_Finalization): New routine. Generate finalization
12188         attachment calls to all delayed coextensions.
12189         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
12190         the allocator is not a coextension itself and has delayed coextensions.
12191         If the current allocator is controlled, but also a coextension, delay
12192         the generation of the finalization attachment call.
12193         Rename local variable "Node" to "Nod" in order to avoid confusion with
12194         "Elists.Node".
12195         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
12196         limited types that are not inherently limited. Such an allocator is
12197         illegal, but is generated by the expander for a return statement, to
12198         copy the result onto the secondary stack. This is the only case where a
12199         limited object can be copied. Generate code to displace the pointer
12200         to the object if the qualified expression is a class-wide interface
12201         object. Such displacement was missing and hence the copy of the object
12202         was wrong.
12203         (Apply_Accessibility_Check): Handle allocated objects initialized in
12204         place.
12205         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
12206         and Expand_Allocator_Expression. Allocating class-wide interface objects
12207         this routine displaces the pointer to the allocated object to reference
12208         the component referencing the corresponding secondary dispatch table.
12209         Expand_Allocator_Expression): Add missing support to allocate class-wide
12210         interface objects initialized with a qualified expression.
12211         (Get_Allocator_Final_List): Test for an anonymous access type that is a
12212         function result type, and use the finalization list associated with the
12213         function scope in that case (such an anonymous type should not be
12214         treated like an access parameter's type).
12215
12216 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12217             Gary Dismukes  <dismukes@adacore.com>
12218             Javier Miranda  <miranda@adacore.com>
12219
12220         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
12221         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
12222         required exception handler.
12223         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
12224         properly the case of a function whose return type is a limited
12225         class-wide interface type. Modify the code of the accessibility
12226         check to handle class-wide interface objects. In this case we need to
12227         displace "this" to reference the primary dispatch table to get access
12228         to the TSD of the object (to evaluate its accessibility level).
12229         (Expand_N_Extended_Return_Statement): Test for a tagged result type
12230         rather than a controlling result as one of the conditions for
12231         generating tests of the implicit BIP_Alloc_Form formal. The
12232         initialization assignment is also handled according to whether the
12233         result is tagged instead of controlling.
12234         In the case where the init assignment is inserted in the "then" part of
12235         the allocation conditional, rewrite the target to be a dereference of
12236         the implicit BIP_Object_Access formal.
12237         If the returned value is unconstrained and created on the secondary
12238         stack, mark the enclosing block and function so that the secondary
12239         stack is not reclaimed on return.
12240         Treat returns from functions with controlling results similarly to
12241         returns from functions with unconstrained result subtypes.
12242         If the object returned is unconstrained, and an allocator must be
12243         created for it, analyze the allocator once the block for the extended
12244         return is installed, to ensure that finalizable components
12245         of the expression use the proper finalization list. Guard the call to
12246         Move_Final_List with a check that there is something to finalize.
12247         (Make_Tag_Ctrl_Assignment): Use "old" handling
12248         of controlled type assignment for virtual machines, since new code uses
12249         unsupported features (such as direct access to bytes in memory).
12250
12251 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
12252             Ed Schonberg  <schonberg@adacore.com>
12253
12254         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
12255         accessibility actual, check for the case of an aliased object that has
12256         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
12257         we fall into processing for the attribute rather than the name of the
12258         object.
12259         (Expand_Inline_Call): If an actual is a literal, and the corresponding
12260         formal has its address taken in the body, create a temporary to capture
12261         value.  If the return type is a limited interface, do not treat the
12262         return value as Controlled.
12263         (Is_In_Place_Function):  If the return type is a limited interface,
12264         treat as returning in place. The actual returned object may not always
12265         be limited, but the caller has to assume that it is returned in place.
12266         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
12267         context of an allocator, use the correct finalization chain (that is,
12268         the chain belonging to the access type, rather than the chain belonging
12269         to the current scope).
12270         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
12271         result type rather than a controlling result as a precondition for
12272         adding an allocation form actual to a build-in-place call.
12273         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
12274         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
12275         primitive in the dispatch tables. This work is now done by Make_DT when
12276         the type is frozen.
12277         (Register_Predefined_DT_Entry): Removed.
12278         (Add_Return): If end label is not present, use sloc of last statement
12279         for generated return statement in procedure, for better gdb behavior
12280         on expanded code.
12281         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
12282         object address nodes to ensure proper processing by routines like
12283         Insert_After*.
12284         (Expand_Call): Fix generation of validity check for parameter
12285         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
12286         the allocation form parameter if the result subtype is constrained,
12287         except when the function has a controlling result.
12288         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
12289         rather than Is_Controlled and Has_Controlled_Component, since we want to
12290         include class-wide result types in this treatment. Also test for a
12291         controlling result, since that also requires passing a finalization
12292         list.
12293         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
12294         even when the result subtype is constrained, to handle calls involving
12295         controlling results.
12296         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
12297         is now called even when the result subtype is constrained, to handle
12298         calls involving controlling results.
12299         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
12300         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
12301         now performs the test).
12302         (Make_Build_In_Place_Call_In_Object_Declaration):
12303         Add_Alloc_Form_Actual_* is now called even when the result subtype is
12304         constrained, to handle calls involving controlling results.
12305         (Add_Return): Accomodate rewritten pattern from local raise to goto
12306         transformation, so that we still recognize an transfer statement
12307         and do the right thing here in that case.
12308         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
12309         and end of subprogram code.
12310         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
12311         support for primitives that are functions (without formals) with a
12312         controlling result.
12313         (Inherited_From_Formal): If the actual subtype has not generic parent
12314         type, it is not an actual for a formal derived type, and there is no
12315         operation to inherit from the formal.
12316
12317 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12318             Thomas Quinot  <quinot@adacore.com>
12319
12320         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
12321         inserted cleanup code appropriately for GDB use.
12322         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
12323         exception handler for Deep_Adjust or Deep_Finalize.
12324         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
12325         Raise_From_Controlled_Operation is available, use a call to that
12326         subprogram instead of a plain "raise Program_Error" node to raise
12327         Program_Error if an exception is propagated from an Adjust or Finalize
12328         operation.
12329         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
12330         appears in the optional statement list of a triggering alternative, the
12331         scope actions can be inserted directly there, and not in the list that
12332         includes the asynchronous select itself.
12333
12334 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12335             Robert Dewar  <dewar@adacore.com>
12336             Hristian Kirtchev  <kirtchev@adacore.com>
12337
12338         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
12339         generated exception handler appropriately when debugging generated code.
12340         Deal properly with No_Exception_Propagation restriction mode.
12341         (Expand_N_Abort_Statement): Add an unchecked type conversion from
12342         System.Address to System.Tasking.Task_Id when processing the result of
12343         the predefined primitive _disp_get_task_id.
12344         (Expand_N_Asynchronous_Select): Clarify comment.
12345         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
12346         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
12347         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
12348         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
12349         privals and for generated call to Complete_Entry_Body, for better gdb
12350         behavior.
12351         (Copy_Result_Type): Utility to construct a parameter and result profile
12352         for protected functions whose return type is an anonymous access to
12353         subprogram.
12354         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
12355         call the above.
12356         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
12357         point when the local-raise-to-goto transformation has taken place.
12358
12359 2007-06-06  Javier Miranda  <miranda@adacore.com>
12360             Nicolas Setton  <setton@adacore.com>
12361
12362         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
12363         functionality when the backend is generating code.
12364         Otherwise any serious error
12365         reported by the backend calling the frontend routine Error_Msg
12366         changes the Compilation_Mode to Check_Semantics, disables the
12367         functionality of this routine and causes the generation of
12368         spureous additional errors.
12369
12370         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
12371         debugging information now generated by the compiler for fat-pointer
12372         types.
12373         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
12374         DWARF2/3.
12375         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
12376
12377 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12378
12379         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
12380         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12381         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
12382         For a remote call to a function with a classwide return type, apply an
12383         E.4(18) check to the returned value.
12384         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
12385         stream attributes of the designated type of an RACW, as they are not
12386         dispatching primitive operations.
12387
12388 2007-06-06  Geert Bosch  <bosch@adacore.com>
12389
12390         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
12391         negative literal
12392         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
12393         positive
12394         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
12395         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
12396         positive
12397         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
12398
12399 2007-06-06  Javier Miranda  <miranda@adacore.com>
12400
12401         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
12402         attribute compiling package Ada.Tags under No_Run_Time_Mode.
12403
12404 2007-06-06  Javier Miranda  <miranda@adacore.com>
12405
12406         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
12407         deallocation of class-wide interface objects.
12408         (Expand_Dispatching_Constructor_Call): Take into account that if the
12409         result of the dispatching constructor is an interface type, the
12410         function returns a class-wide interface type; otherwise the returned
12411         object would be actual. The frontend previously accepted returning
12412         interface types because Expand_Interface_Actuals silently performed
12413         the management of the returned type "as if" it were a class-wide
12414         interface type.
12415         (Expand_Dispatching_Constructor_Call): Replace call to
12416         Make_DT_Access_Action by direct call to Make_Function_Call.
12417
12418 2007-06-06  Robert Dewar  <dewar@adacore.com>
12419             Ed Schonberg  <schonberg@adacore.com>
12420
12421         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
12422         compute masking constant, since we now set Esize properly to the
12423         underlying size.
12424         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
12425         to match the alignment.
12426         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
12427         packed arrays of 8 bits or less.
12428
12429         * freeze.adb (Freeze_Entity): When freezing the formals of a
12430         subprogram, freeze the designated type of a parameter of an access type
12431         only if it is an access parameter.
12432         Increase size of C convention enumeration object
12433         (Freeze_Entity, array type case): Make sure Esize value is properly
12434         adjusted for the alignment if it is known.
12435         (Freeze_Entity, array type case): When checking bit packed arrays for
12436         the size being incorrect, check RM_Size, not Esize.
12437         (Freeze_Record_Type): Check for bad discriminated record convention
12438         (In_Exp_Body): Return true if the body is generated for a subprogram
12439         renaming, either an attribute renaming or a renaming as body.
12440         (Check_Itype): If the designated type of an anonymous access component
12441         is a non-protected subprogram type, indicate that it is frozen, to
12442         prevent out-of-scope freeze node at some subsequent call.
12443         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
12444         only if the subprogram is neither imported nor exported, as well as the
12445         NCA descriptor class if the subprogram is exported.
12446
12447 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12448             Arnaud Charlet  <charlet@adacore.com>
12449             Robert Dewar  <dewar@adacore.com>
12450             Gary Dismukes  <dismukes@adacore.com>
12451
12452         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
12453         default initialization on an imported object, when there is no
12454         initialization call generated for it.
12455         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
12456         restriction
12457
12458         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
12459         Static_Elaboration_Desired.
12460         Remove pragma Thread_Body.
12461         Implement a new pragma No_Body
12462         Removes the Explicit_Overriding pragma
12463         Remove Optional_Overriding pragma
12464         (Prag): Deal with Universal_Aliasing.
12465         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12466         Pragma_CIL_Constructor): New names.
12467
12468         * sem_cat.adb (Validate_Object_Declaration): An initialization that
12469         uses the equivalent aggregate of a type must be treated as an implicit
12470         initialization.
12471         (Get_Categorization): Check a unit for pragma Preelaborate only if it
12472         has none of the other categories.
12473         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
12474         to apply Import to an object renaming declaration.
12475
12476         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
12477         from a C++ class should be declared as limited and that it will be
12478         considererd limited.
12479         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
12480         should be declared as limited and that it will be considererd limited.
12481         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
12482         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
12483         (Analyze_Pragma): Deal with Universal_Aliasing.
12484         (Sig_Flags): Likewise.
12485         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
12486         (Overflow_Checks_Unsuppressed): New flag.
12487         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12488         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
12489         case of JVM or .NET targets, and compiling user code.
12490         Add debugging convenience routine rv
12491
12492 2007-06-06  Robert Dewar  <dewar@adacore.com>
12493
12494         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
12495         are interface type.
12496         (Build_Elementary_Input_Call): For floating-point use right type in the
12497         absence of strange size or stream size clauses.
12498         (Build_Elementary_Write_Call): Same fix
12499         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
12500         set to value that does not match base type size.
12501
12502 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12503
12504         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
12505         object of a limited type can be initialized with a call to a function
12506         that returns in place. If the limited type has unknown discriminants,
12507         and the underlying type is a constrained composite type, build an actual
12508         subtype from the function call, as is done for private types.
12509         (Side_Effect_Free): An expression that is the renaming of an object or
12510         whose prefix is the renaming of a object, is not side-effect free
12511         because it may be assigned through the renaming and its value must be
12512         captured in a temporary.
12513         (Has_Controlled_Coextensions): New routine.
12514         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
12515         as is done for other limited types.
12516         (Non_Limited_Designated_Type): new predicate.
12517         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
12518         objects.
12519         Remove all handling of with_type clauses.
12520
12521         * par-ch10.adb: Remove all handling of with_type clauses.
12522
12523         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
12524         checksum if the main source could not be parsed.
12525         (Loat_Unit): When processing a child unit, determine properly whether
12526         the parent unit is a renaming when the parent is itself a child unit.
12527         Remove handling of with_type clauses.
12528
12529         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
12530         (Set_Is_Static_Coextension): New procedure.
12531         (Has_Local_Raise): New function
12532         (Set_Has_Local_Raise): New procedure
12533         (Renaming_Exception): New field
12534         (Has_Init_Expression): New flag
12535         (Delay_Finalize_Attach): Remove because flag is obsolete.
12536         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
12537         Remove all handling of with_type clauses.
12538         (Exception_Junk): Can now be set in N_Block_Statement
12539
12540 2007-06-06  Vincent Celier  <celier@adacore.com>
12541             Robert Dewar  <dewar@adacore.com>
12542
12543         * frontend.adb (Frontend): Return immediately if the main source could
12544         not be parsed, because of preprocessing errors.
12545
12546         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
12547         (Gnat1drv): Exit with errors if the main source could not be parsed,
12548         because of preprocessing errors.
12549         (Check_Rep_Info): New procedure
12550
12551 2007-06-06  Robert Dewar  <dewar@adacore.com>
12552
12553         * g-hesorg.ads, g-heasor.ads,
12554         g-busorg.ads, g-bubsor.ads: Update documentation
12555         GNAT.Heap/Bubble_Sort_G is now pure
12556
12557 2007-06-06  Robert Dewar  <dewar@adacore.com>
12558
12559         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
12560
12561 2007-06-06  Robert Dewar  <dewar@adacore.com>
12562             Ed Schonberg  <schonberg@adacore.com>
12563
12564         * g-comlin.ads, g-comlin.adb: 
12565         Add new warning for renaming of function return objects
12566
12567         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
12568         (Tree_Read): Use size of object instead of type'object_size, since the
12569         latter is incorrect for packed array types.
12570         (Tree_Write): Same fix
12571
12572         * opt.ads: Add new warning for renaming of function return objects
12573         (Generating_Code): New boolean variable used to indicate that the
12574         frontend as finished its work and has called the backend to process
12575         the tree and generate the object file.
12576         (GCC_Version): Is now private
12577         (Static_Dispatch_Tables): New constant declaration.
12578         (Overflow_Checks_Unsuppressed): New flag.
12579         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12580         (List_Closure): New flag for gnatbind (-R)
12581         Zero_Formatting: New flag for gnatbind (-Z)
12582         (Special_Exception_Package_Used): New flag.
12583         (Warn_On_Unrepped_Components): New flag.
12584
12585         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
12586         unit is a compilation unit, rather than relying on its scope, so that
12587         Standard can be renamed.
12588         (Analyze_Object_Renaming): Add new warning for renaming of function
12589         return objects.
12590         Also reject attempt to rename function return object in Ada 83 mode.
12591         (Attribute_Renaming): In case of tagged types, add the body of the
12592         generated function to the freezing actions of the type.
12593         (Find_Type): A protected type is visible right after the reserved word
12594         "is" is encountered in its type declaration. Set the entity and type
12595         rather than emitting an error message.
12596         (New_Scope): Properly propagate Discard_Names to inner scopes
12597         (Check_Nested_Access): New procedure.
12598         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
12599         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12600
12601         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
12602         Add new warning for renaming of function return objects
12603         (Check_References): Suppress warnings for objects whose type or
12604         base type has Warnings suppressed.
12605         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
12606         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
12607
12608 2007-06-06  Vincent Celier  <celier@adacore.com>
12609             Emmanuel Briot  <briot@adacore.com>
12610             Olivier Hainque  <hainque@adacore.com>
12611
12612         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
12613         absolute value of Header.Block_Size when displaying the freed physical
12614         memory in traces.
12615         (Allocate): Compute Storage_Address using Integer_Address, not
12616         Storage_Offset, because the range of Storage_Offset may not be large
12617         enough.
12618         (Configure): New parameter Low_Level_Traces
12619         (Allocate, Deallocation, Free_Physically): Added low-level traces
12620         (Configure): new parameter Errors_To_Stdout.
12621         (Output_File): new subprogram
12622         (Deallocate, Dereference): Send error messages to the proper stream
12623         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
12624         documented. Previous code would send it to the current output file
12625         defined in GNAT.IO, which might not be stdout
12626         (Is_Valid): Adjust comment to mention that a positive reply means that
12627         Header_Of may be used to retrieve the allocation header associated with
12628         the subprogram Storage address argument. Return False early if this
12629         address argument is misaligned.
12630
12631 2007-06-06  Vincent Celier  <celier@adacore.com>
12632
12633         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
12634         switch -P
12635         (ASIS_Main): New global variable
12636         (Get_Closure): New procedure
12637         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
12638         check, metric or pretty. Call Get_Closure in this case.
12639         (Check_Files): For GNAT LIST, check all sources of all projects when
12640         All_Projects is True.
12641         (GNATCmd): Accept -U for GNAT LIST
12642
12643 2007-06-06  Vincent Celier  <celier@adacore.com>
12644
12645         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
12646         has been specified
12647         Correct error message when invocation of the linker fails
12648         Add explicit size clause for the C imported variables
12649         Object_List_File_Supported and Using_GNU_Linker to emphasize that
12650         we expect char size.
12651         Read target parameters earlier, since this is needed to set
12652         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
12653         targets.
12654
12655 2007-06-06  Vincent Celier  <celier@adacore.com>
12656
12657         * gnatls.adb: 
12658         Add 3 spaces before the default project directory when displaying
12659         the project search path.
12660         Add new command line switch '-l' to display license information.
12661
12662 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12663
12664         * gmem.c: Add support for timestamps on memory operations.
12665
12666         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
12667         operations (not used currently, just foundation for future
12668         enhancements). Add possibility to perform full dump of gmem.out file.
12669         (Print_Back_Traces): Declare accesses to root arrays constants since
12670         they aren't modified.
12671         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
12672
12673 2007-06-06  Vincent Celier  <celier@adacore.com>
12674
12675         * gnatsym.adb: Update Copyright notice
12676         (Parse_Cmd_Line): Accept new switch -D
12677         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
12678          file.
12679
12680         * prj.ads (Policy): New policy Direct
12681         (Yes_No_Unknown): New enumeration type
12682         (Project_Data): New component Libgnarl_Needed
12683
12684         * prj-nmsc.adb (Check_For_Source): When recording a source file make
12685         use the untouched pathname casing.
12686         (Get_Directories): Ensure that the Display_Exec_Directory is using the
12687         proper casing on non case-sensitive platforms like Windows.
12688         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
12689         on all platforms, as it is not possible to know which one is allowed
12690         before processing the project files.
12691         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
12692         specified when symbol policy is Direct. Check that when there is a
12693         symbol file defined (either by default or with attribute
12694         Library_Symbol_File) it is not the same as the reference symbol file.
12695         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
12696         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
12697         extending projects.
12698         (Record_Ada_Source): Record a source that has been locally removed in an
12699         imported project.
12700
12701         * symbols.ads (Policy): New policy Direct
12702
12703         * symbols-vms.adb (Initialize): Take new policy Direct in case
12704         statement
12705
12706 2007-06-06  Vincent Celier  <celier@adacore.com>
12707
12708         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
12709         Correct obvious bug (return Dir; instead of return Directory;).
12710         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
12711
12712 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12713
12714         * g-pehage.adb (Produce): Open output files in Binary mode, so that
12715         they have UNIX line endings (LF only) even on Windows, and thus pass
12716         all GNAT style checks.
12717
12718 2007-06-06  Emmanuel Briot  <briot@adacore.com>
12719
12720         * g-regpat.adb (Quote): Fix improper quoting of '.'
12721
12722 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12723
12724         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
12725         default, set False on a per-runtime basis.
12726         (Need_Netdb_Buffer): New constant.
12727
12728         * g-socket.ads, g-socket.adb: Import new package
12729         GNAT.Sockets.Thin.Task_Safe_NetDB.
12730         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
12731         binding to obtain proper message.
12732         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
12733         Replace various occurrences of Arry (Arry'First)'Address with the
12734         equivalent Arry'Address (GNAT always follows implementation advice from
12735         13.3(14)).
12736         (Get_Host_By_Address, Get_Host_By_Name,
12737         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
12738         instead, rely on platform-specific task safe netdb operations provided
12739         by g-socthi.
12740
12741         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
12742         parameter Process_Blocking_IO.
12743         (Host_Error_Messages): Add stub body.
12744         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12745         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
12746         Safe_Getservbyport): Move functions into new child package
12747         Task_Safe_NetDB.
12748         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
12749         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
12750         (In_Addr): Add alignment clause.
12751
12752 2007-06-06  Robert Dewar  <dewar@adacore.com>
12753
12754         * g-trasym.ads, g-traceb.ads: Update list of supported targets
12755         Add note about symbolic traceback
12756
12757 2007-06-06  Pascal Obry  <obry@adacore.com>
12758
12759         * hostparm.ads (Normalized_CWD): Use the host directory separator
12760         instead of the hardcoded forward slash which is not the proper
12761         character on Windows for example.
12762         (Java_VM): Removed.
12763
12764 2007-06-06  Vincent Celier  <celier@adacore.com>
12765             Arnaud Charlet  <charlet@adacore.com>
12766
12767         * a-clrefi.adb, a-clrefi.ads: New files
12768
12769         * impunit.adb: Add s-os_lib in the list of user visible units.
12770         (Non_Imp_File_Names_95): Add a-clrefi to this list
12771         Remove obsolete run-time entries.
12772         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
12773          "a-exetim" -- Ada.Execution_Time
12774          "a-extiti" -- Ada.Execution_Time.Timers
12775
12776         * mlib-prj.ads, mlib-prj.adb
12777         (Build_Library): Use untouched object dir and library dir. At the
12778         same time makes sure that the checks are done using the canonical
12779         form. Removes hard-coded directory separator and use the proper host
12780         one instead.
12781         (Process_Project): Do not look in object directory to check if libgnarl
12782         is needed for a library, if there is no object directory.
12783         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
12784         linking.
12785         (Build_Library): When invoking gnatbind, use a response file if the
12786         total size of the arguments is too large.
12787
12788         * Makefile.rtl: (g-sttsne): New object file.
12789         Add entry for a-clrefi, s-utf_32, System.Exceptions
12790
12791         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
12792         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
12793         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
12794         Change g-string to s-string, g-os_lib to s-os_lib
12795         Change all g-utf_32 references to s-utf_32
12796
12797 2007-06-06  Tristan Gingold  <gingold@adacore.com>
12798             Olivier Hainque  <hainque@adacore.com>
12799
12800         * init.c: Do not adjust IP of an imported VMS exception of ia64.
12801         LIB$STOP is called to raise an exception and the IP of the exception
12802         is the instruction right after the call.
12803         (__gnat_adjust_context_for_raise, AIX): Implement.
12804         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
12805          adjust_context_for_raise before Raise_From_Signal_Hanler.
12806         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
12807         siginfo is passed to the handler, necessary to let the zcx propagation
12808         engine unwind past it.
12809
12810 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12811
12812         * initialize.c (__gnat_initialize for vxworks):  Update documentation
12813         on the ZCX support, using different sets of crtstuff objects than with
12814         GCC 3.4.
12815
12816 2007-06-06  Robert Dewar  <dewar@adacore.com>
12817
12818         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
12819         spec from body
12820         (Layout_Type): Fix recomputation of size from alignment.
12821
12822 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12823             Javier Miranda  <miranda@adacore.com>
12824
12825         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
12826         association in an instance.
12827         (Copy_Generic_Node): If the node is a string literal, no need to copy
12828         its descendants.
12829         (Is_Generic_Formal): For a formal subprogram, the declaration is the
12830         grandparent of the entity.
12831         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
12832         to simplify handling of formal interfaces that derive from other formal
12833         interfaces.
12834         (Instantiate_Subprogram_Body): The defining unit name of the body of
12835         the instance should be a defining identifier.
12836         (Install_Formal_Packages): make global to the package, for use in
12837         instantiations of child units.
12838         (Analyze_Package_Instantiation): Do not attempt to set information on an
12839         enclosing master of an entry when expansion is disabled.
12840         (Instantiate_Type): If the actual is a tagged synchronized type and the
12841         generic ancestor is an interface, create a generic actual for the
12842         corresponding record.
12843         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
12844         declaration, to ensure that the interface list is processed correctly.
12845         (Inline_Instance_Body): If enclosing scope is an instance body, remove
12846         its entities from visibiility as well.
12847         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
12848         given with a named association, analyze the expression only, not the
12849         discriminant association itself.
12850         (Reset_Entity): If the analysis of a selected component is transformed
12851         into an expanded name in the prefix of a call with parameters, do not
12852         transform the original node into an expanded name, to prevent visibility
12853         errors in the case of nested generics.
12854         (Check_Private_View): For an array type, check whether the index types
12855         may need exchanging.
12856
12857 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12858             Vincent Celier  <celier@adacore.com>
12859
12860         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
12861         since both are separated.
12862         Add support for imported CIL packages.
12863         Add further special handling of "value_type" for CIL.
12864         Add special handling of pragma Import for CIL.
12865
12866         * make.ads, make.adb: When switch -eS is used, direct all outputs to
12867         standard output instead of standard error, except errors.
12868         (Absolute_Path): Use untouched casing for the parent directory.
12869         (Add_Library_Search_Dir): Use the untouched directory name.
12870         (Add_Source_Search_Dir): Idem.
12871         (Change_To_Object_Directory): Update output to use proper casing.
12872         (Create_Binder_Mapping_File): Use the untouched filename to set
12873         ALI_Name.
12874         (Gnatmake): Use untouched library and executable directory names.
12875         (Insert_Project_Sources): Use untouched filename for spec and body.
12876         (Is_In_Object_Directory): Use untouched object directory.
12877         (Mark_Directory): Idem.
12878         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
12879         contains the non-canonical filename in all cases.
12880         (Change_To_Object_Directory): In verbose mode, display the name of the
12881         object directory we're changing to.
12882         (Compile_Sources): Make sure, when a project file is used, to compile
12883         the body of the unit, when there is one, even when only the spec is
12884         recorded in an ALI file.
12885         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
12886         spec to the body.
12887         (Report_Compilation_Failed): New procedure
12888         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
12889         procedures moved from the spec to the body.
12890         (Extract_Failure): Removed, not used
12891         Replace explicit raises of exception Bind_Failed and Link_Failed with
12892         calls to Make_Failed with the proper message.
12893         Replace explicit raises of exception Compilation_Failed with calls to
12894         procedure Report_Compilation_Failed.
12895         (Initialize): Create mapping files unconditionally when using project
12896         files.
12897
12898         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12899         Pragma_CIL_Constructor): New names.
12900
12901         * targparm.ads, targparm.adb
12902         (Compiler_System_Version): Removed, no longer used.
12903         (Get_Target_Parameters): Relax checks on system.ads validity. Add
12904         handling of two new system flags: JVM and CLI.
12905
12906 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12907             Arnaud Charlet  <charlet@adacore.com>
12908
12909         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
12910         time, use the default s-interr body that provides interrupt support
12911         based on signals.
12912         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
12913         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
12914         g-soccon.ads, and s-taprop.adb for the marte run time.
12915         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
12916         timers are supported on marte.
12917         (EH_MECHANISM for marte): Do not use ZCX.
12918         (THREADSLIB for marte): Use -lmarte.
12919         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
12920         Add mlib-tgt-specific.o to gnatmake objects
12921         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
12922         longer of MLib.Tgt.
12923         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
12924         6, either kernel or rtp, use a specialized version of s-osinte.ads.
12925
12926 2007-06-06  Pascal Obry  <obry@adacore.com>
12927
12928         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
12929
12930 2007-06-06  Vincent Celier  <celier@adacore.com>
12931
12932         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
12933         separator, use instead the proper host directory separator.
12934         (Copy_ALI_Files): Make sure that an already existing ALI file in the
12935         ALI copy dir is writable, before doing the copy.
12936
12937         * mlib-utl.ads, mlib-utl.adb: 
12938         (Gcc): If length of command line is too long, put the list of object
12939         files in a response file, if this is supported by the platform.
12940         (Ar): If invocation of the archive builder is allowed to be done in
12941         chunks and building it in one shot would go above an OS dependent
12942         limit on the number of characters on the command line, build the archive
12943         in chunks.
12944
12945 2007-06-06  Vincent Celier  <celier@adacore.com>
12946
12947         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
12948         of specified object file is not equal to base name of source.
12949
12950 2007-06-06  Javier Miranda  <miranda@adacore.com>
12951             Hristian Kirtchev  <kirtchev@adacore.com>
12952             Ed Schonberg  <schonberg@adacore.com>
12953
12954         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
12955         the full type declaration.
12956         (Analyze_Component_Declaration): Add local variable E to capture the
12957         initialization expression of the declaration. Replace the occurences of
12958         Expression (N) with E.
12959         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
12960         limited interface object with a function call.
12961         (Array_Type_Declaration): If the declaration lacks subtype marks for
12962         indices, create a simple index list to prevent cascaded errors.
12963         (Is_Null_Extension): Ignore internal components created for secondary
12964         tags when checking whether a record extension is a null extension.
12965         (Check_Abstract_Interfaces): Add missing support for interface subtypes
12966         and generic formals.
12967         (Derived_Type_Declaration): Add missing support for interface subtypes
12968         and generic formals.
12969         (Analyze_Object_Declaration): If an initialization expression is
12970         present, traverse its subtree and mark all allocators as static
12971         coextensions.
12972         (Add_Interface_Tag_Component): When looking for components that may be
12973         secondary tags, ignore pragmas that can appear within a record
12974         declaration.
12975         (Check_Abstract_Overriding): an inherited function that dispatches on
12976         result does not need to be overriden if the controlling type is a null
12977         extension.
12978         (Mentions_T): Handle properly a 'class attribute in an anonymous access
12979         component declaration, when the prefix is an expanded name.
12980         (Inherit_Component): If the derivation is for a private extension,
12981         inherited components remain visible and their ekind should not be set
12982         to Void.
12983         (Find_Type_Of_Object): In the case of an access definition, always set
12984         Is_Local_Anonymous_Access. We were previously not marking the anonymous
12985         access type of a return object as a local anonymous type.
12986         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
12987         range with character literal bounds.
12988         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
12989         (Access_Subprogram_Declaration): Indicate that the type declaration
12990         depends on an incomplete type only if the incomplete type is declared
12991         in an open scope.
12992         (Analyze_Subtype_Declaration): Handle properly subtypes of
12993         synchronized types that are tagged, and that may appear as generic
12994         actuals.
12995         (Access_Subprogram_Declaration): An anonymous access to subprogram can
12996         appear as an access discriminant in a private type declaration.
12997         (Add_Interface_Tag_Components): Complete decoration of the component
12998         containing the tag of a secondary dispatch table and the component
12999         containing the offset to the base of the object (this latter component
13000         is only generated when the parent type has discriminants --as documented
13001         in this routine).
13002         (Inherit_Components): Use the new decoration of the tag components to
13003         improve the condition that avoids inheriting the components associated
13004         with secondary tags of the parent.
13005         (Build_Discriminanted_Subtype): Indicate to the backend that the
13006         size of record types associated with dispatch tables is known at
13007         compile time.
13008         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13009         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13010         to include task, protected, and synchronized interfaces as limited
13011         interfaces.
13012         (Process_Discriminants): Remove the setting of
13013         Is_Local_Anonymous_Access on the type of (anonymous) access
13014         discriminants of nonlimited types.
13015         (Analyze_Interface_Type_Declaration): Complete the decoration of the
13016         class-wide entity it is is already present. This situation occurs if
13017         the limited-view has been previously built.
13018         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13019         field.
13020         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13021         Related_Interface.
13022
13023 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13024
13025         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13026         of the type that specify the position of interface tags when the type
13027         inherits discriminated array components from the parent type.
13028         If a component is initialized with a box, check for the presence of a
13029         default expression in its declaration before using its default
13030         initialization procedure.
13031         (Resolve_Record_Aggregate): If a component is box-initialized, and the
13032         component type has a discriminants, create a partial aggregate for it
13033         by copying the discriminants of the component subtype.
13034         Reject attempt to initialize a discriminant with a box.
13035         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13036         associated with dispatch tables is known at compile time.
13037         (Get_Value): If an association in a record aggregate has a box
13038         association, and the corresponding record component has a default
13039         expression, always copy the default expression, even when the
13040         association has a single choice, in order to create a proper
13041         association for the expanded aggregate.
13042
13043 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13044             Robert Dewar  <dewar@adacore.com>
13045
13046         * par-ch12.adb (P_Generic_Associations): The source position of an
13047         Others association is that of the others keyword, not that of the token
13048         that follows the box.
13049         (P_Formal_Type_Definition): Handle formal access types that carry a
13050         not null indicator.
13051
13052         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13053         multiple identifier are present, save Scan_State before scanning the
13054         colon, to ensure that separate trees are constructed for each
13055         declaration.
13056         (P_Identifier_Declarations): For object declaration, set new flag
13057         Has_Init_Expression if initialization expression present.
13058         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
13059         Improve NOT NULL error messages
13060
13061 2007-06-06  Robert Dewar  <dewar@adacore.com>
13062
13063         * par-ch4.adb: (P_Name): Recover from literal used as name
13064
13065 2007-06-06  Vincent Celier  <celier@adacore.com>
13066
13067         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
13068         defaulted to False.
13069         In the "not" case, recursive call with Complemented set to True.
13070         Do not allow "or" or "and" operators when Complemented is True.
13071
13072 2007-06-06  Vincent Celier  <celier@adacore.com>
13073
13074         * prj.adb (Project_Empty): Gives default value for new component
13075         Libgnarl_Needed
13076
13077         * prj-attr.ads: Minor reformatting
13078
13079         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
13080         directory using the untouched casing.
13081         (For_All_Source_Dirs): Idem.
13082
13083         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
13084         directories specified with switches -aP.
13085         (Add_Search_Project_Directory): New procedure
13086         (Initialize_Project_Path): Put the directories in table
13087         Search_Directories in the project search path.
13088         (Initialize_Project_Path): For VMS, transform into canonical form the
13089         project path.
13090
13091 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13092
13093         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
13094         true if configurable run-time or No_Run_Time is set.
13095         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
13096         processing an unit which is not the one being compiled.
13097
13098 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13099
13100         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
13101         Replace UC by Ada.UC
13102
13103         * s-bitops.adb: Get rid of System.Pure_Exceptions.
13104         Replace UC by Ada.UC
13105
13106 2007-06-06  Robert Dewar  <dewar@adacore.com>
13107
13108         * scng.adb: (Check_End_Of_Line): Deal with very long lines
13109
13110 2007-06-06  Robert Dewar  <dewar@adacore.com>
13111
13112         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
13113         Remove no longer used nodes.
13114
13115 2007-06-06  Javier Miranda  <miranda@adacore.com>
13116             Ed Schonberg  <schonberg@adacore.com>
13117             Robert Dewar  <dewar@adacore.com>
13118
13119         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
13120         on obsolescent withed unit in case of limited-withed units.
13121         (Analyze_Compilation_Unit): Add guard to code that removed an
13122         instantiation from visibility, to prevent compiler aborts when
13123         instantiation is abandoned early on.
13124         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
13125         current unit being analyzed, and Distinguish local incomplete types
13126         from limited views of types declared elsewhere.
13127         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
13128         to state that the class-wide entity is shared by the limited-view
13129         and the full-view.
13130         (Analyze_With_Clause): Improve placement of flag for case of
13131         unimplemented unit.
13132         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
13133         manner similar to GNAT.Current_Exception. This is a violation of
13134         restriction (No_Exception_Propagation), and also inhibits the
13135         optimization of local raise to goto.
13136         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
13137         and if so set Most_Recent_Exception_Used flag in Opt, and also check
13138         for violation of restriction No_Exception_Propagation.
13139
13140 2007-06-06  Javier Miranda  <miranda@adacore.com>
13141             Hristian Kirtchev  <kirtchev@adacore.com>
13142             Gary Dismukes  <dismukes@adacore.com>
13143
13144         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
13145         use of entity Exception_Occurrence if it is not available in the
13146         target run-time.
13147
13148         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
13149         concurrent types are declared within an Ada 2005 generic, build their
13150         corresponding record types since they are needed for overriding-related
13151         semantic checks.
13152         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
13153         protected type does not implement a task interface or a nonlimited
13154         interface.
13155         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
13156         type does not implement a protected interface or a nonlimited interface.
13157         (Single_Task_Declaration, Single_Protected_Declaration): use original
13158         entity for variable declaration, to ensure that debugging information
13159         is correcty generated.
13160         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
13161         routines if the expander is not active.
13162         (Analyze_Task_Body): Mark all handlers to stop optimization of local
13163         raise, since special things happen for task exception handlers.
13164
13165         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
13166         concurrent types declared within a generic.
13167         (Check_Dispatching_Operation): Do not emit warning about late interface
13168         operations in the context of an instance.
13169         (Check_Dispatching_Call): Remove restriction against calling a
13170         dispatching operation with a limited controlling result.
13171         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
13172         Register_Interface_DT_Entry by calls to Register_Primitive.
13173         (Check_Dispatching_Formals): Handle properly a function with a
13174         controlling access result.
13175
13176 2007-06-06  Robert Dewar  <dewar@adacore.com>
13177             Arnaud Charlet  <charlet@adacore.com>
13178
13179         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
13180         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
13181         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
13182         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
13183         message when using a VM, since this attribute is not supported.
13184         (Analyze_Record_Representation_Clause): Give unrepped component warnings
13185
13186         * usage.adb: Add new warning for renaming of function return objects
13187         Indicate that -gnatwp and -gnatwP concern front-end inlining
13188         Add line for -gnatyg
13189         Add usage information for -gnatw.c/C
13190
13191 2007-06-06  Robert Dewar  <dewar@adacore.com>
13192             Ed Schonberg  <schonberg@adacore.com>
13193
13194         * sem_ch5.adb
13195         (Find_Var): Do not consider function call in test for infinite loop
13196         warning if warnings set off for function entity.
13197         (One_Bound): Do not create a temporary for a loop bound if it is a
13198         character literal.
13199         (Analyze_Assignment): Traverse the right hand side of an assignment and
13200         mark all allocators as static coextensions.
13201         (Analyze_Assignment): Exempt assignments involving a dispatching call
13202         to a function with a controlling access result from the check requiring
13203         the target to be class-wide.
13204
13205 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13206             Ed Schonberg  <schonberg@adacore.com>
13207             Robert Dewar  <dewar@adacore.com>
13208             Javier Miranda  <miranda@adacore.com>
13209
13210         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
13211         chain of coextensions when an allocator serves as the root of such a
13212         chain.
13213         (Propagate_Coextensions): Remove the test for the root being an
13214         allocator.
13215         (Resolve_Allocator): Add condition to ensure that all future decoration
13216         occurs on an allocator node. Add processing and cleanup for static
13217         coextensions.
13218         (Valid_Conversion): If the operand type is the limited view of a
13219         class-wide type, use the non-limited view is available to determine
13220         legality of operation.
13221         (Ambiguous_Character): move to spec, for use elsewhere.
13222         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
13223         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
13224         character literals.
13225         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
13226         Do_Division_Check flag explicitly.
13227         (Resolve_Actuals): If the actual is of a synchronized type, and the
13228         formal is of the corresponding record type, this is a call to a
13229         primitive operation of the type, that is declared outside of the type;
13230         the actual must be unchecked-converted to the type of the actual
13231         (Resolve_Call): Kill all current values for any subprogram call if
13232         flag Suppress_Value_Tracking_On_Call is set.
13233         (Resolve_Type_Conversion): Generate error message the the operand
13234         or target of interface conversions come from a limited view.
13235         (Check_Infinite_Recursion): Ignore generated calls
13236         (Check_Allocator_Discrim_Accessibility): New procedure for checking
13237         that an expression that constrains an access discriminant in an
13238         allocator does not denote an object with a deeper level than the
13239         allocator's access type.
13240         (Resolve_Allocator): In the case of an allocator initialized by an
13241         aggregate of a discriminated type, check that associations for any
13242         access discriminants satisfy accessibility requirements by calling
13243         Check_Allocator_Discrim_Accessibility.
13244         (Resolve_Equality_Op): Handle comparisons of anonymous access to
13245         subprogram types in the same fashion as other anonymous access types.
13246         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
13247         message that is not a continuation message.
13248         (Resolve_Type_Conversion): Add missing support for conversion to
13249         interface type.
13250         (Resolve_Actuals): Introduce a transient scope around the call if an
13251         actual is a call to a function returning a limited type, because the
13252         resulting value must be finalized after the call.
13253         (Resolve_Actuals): If the call was given in prefix notations, check
13254         whether an implicit 'Access reference or implicit dereference must be
13255         added to make the actual conform to the controlling formal.
13256
13257 2007-06-06  Robert Dewar  <dewar@adacore.com>
13258             Javier Miranda  <miranda@adacore.com>
13259
13260         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
13261         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
13262         overriding of an inherited private subprogram now there is no need to
13263         inherit its dispatching slot and reduce the size of the dispatch table.
13264         Set_All_DT_Position now ensures that the same slot is now assigned to
13265         both entities. This is required to statically build the dispatch table.
13266         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
13267         of calling Set_All_DT_Position to re-evaluate the position of the
13268         entries in the dispatch table. Such reevaluation is not desired if
13269         the tagged type is already frozen.
13270
13271 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
13272             Gary Dismukes  <dismukes@adacore.com>
13273             Robert Dewar  <dewar@adacore.com>
13274             Javier Miranda  <miranda@adacore.com>
13275
13276         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
13277         reference acts as an lvalue when the attribute name modifies the prefix
13278         (Is_Coextension_Root): New routine.
13279         (Mark_Static_Coextensions): New routine.
13280         (Type_Access_Level): Revise code for checking the level of the
13281         anonymous access type of a return object.
13282         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
13283         (Matches_Prefixed_View_Profile): Remove the no longer necessary
13284         retrieval of the corresponding controlling record type.
13285         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
13286         concurrent types declared within a generic as well as class wide types.
13287         Emit a mode incompatibility error whenever a protected entry or routine
13288         override an interface routine whose first parameter is not of mode
13289         "out", "in out" or access to variable.
13290         (Overrides_Synchronized_Primitive): Rename to
13291         Find_Overridden_Synchronized_Primitive.
13292         (Collect_Interface_Components): New subprogram that collects all the
13293         components of a tagged record containing tags of secondary dispatch
13294         tables.
13295         (Add_Global_Declaration): New procedure
13296         (Abstract_Interface_List): Handle properly the case of a subtype of a
13297         private extension.
13298         (Type_Access_Level): In the case of a type whose parent scope is a
13299         return statement, call Type_Access_Level recursively on the enclosing
13300         function's result type to determine the level of the return object's
13301         type.
13302         (Build_Elaboration_Entity): Build name of elaboration entity from the
13303         scope chain of the entity, rather than the unit name of the file name.
13304         (Check_Nested_Access): New procedure.
13305         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13306         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13307         (Get_Renamed_Entity): Utility routine for performing common operation
13308         of chasing the Renamed_Entity field of an entity.
13309
13310 2007-06-06  Robert Dewar  <dewar@adacore.com>
13311
13312         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
13313         elaboration model
13314         (Check_A_Call): Add check for entry call which was causing blowup
13315
13316 2007-06-06  Olivier Hainque  <hainque@adacore.com>
13317
13318         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
13319         special code on ia64-vms to handle major incompatibilities between the
13320         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
13321         this routine with a very different set of arguments and expectations on
13322         the return value.
13323
13324 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13325
13326         * socket.c (__gnat_close_signalling_fd): New function.
13327         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
13328         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
13329         New supporting functions for task safe Netdb operations.
13330
13331 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13332             Olivier Hainque  <hainque@adacore.com>
13333
13334         * a-except-2005.ads, a-except-2005.adb
13335         (Raise_From_Controlled_Operation): New procedure in
13336         (private part of) Ada.Exceptions (standard runtime version). Used to
13337         provide informational exception message when Program_Error is raised as
13338         a result of an Adjust or Finalize operation propagating an exception.
13339         (Rmsg_28): Fix description for E.4(18) check.
13340         (Raise_Current_Excep): Call Debug_Raise_Exception just before
13341         propagation starts, to let debuggers know about the event in a reliable
13342         fashion.
13343         Take the address of E and dereference to make sure it is homed on stack
13344         and prevent the stores from being deleted, necessary for proper
13345         debugger behavior on "break exception" hits.
13346         (Local_Raise): Moved to System.Exceptions
13347
13348         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
13349         exception message from the current occurrence and raise Program_Error
13350         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
13351
13352 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
13353             Arnaud Charlet  <charlet@adacore.com>
13354
13355         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
13356         lock, if needed.
13357
13358         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
13359         priority associated to a lock.
13360
13361         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
13362         assertion to take into account case of no abort restriction.
13363         (Initialize_Protection_Entries): Add initialization for the field
13364         New_Ceiling associated to the protected object.
13365         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
13366         needed.
13367
13368         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13369         since this function needs to be set consistently with Update_Exception.
13370
13371         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13372         since this function needs to be set consistently with Update_Exception.
13373
13374         * s-taskin.ads: Update comments on
13375         Interrupt_Server_Blocked_On_Event_Flag.
13376         (Unbind_Handler): Fix handling of server_task wakeup
13377         (Server_Task): Set self's state so that Unbind_Handler can take
13378         appropriate actions.
13379         (Common_ATCB): Now use a constant from System.Parameters to determine
13380         the max size of the Task_Image field.
13381
13382         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
13383         Initialize_Analyzer function.
13384         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
13385         take into account case of no abort restriction.
13386         ([Vulnerable_]Complete_Master): Modify assertion.
13387
13388         * s-tataat.adb (Finalize): Use the nestable versions of
13389         Defer/Undefer_Abort.
13390
13391         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
13392
13393         * s-tpobop.ads: Update comments.
13394
13395         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
13396         of locking the object manually, to avoid inconsistencies between
13397         Lock/Unlock_Entry assertions.
13398
13399         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
13400         terminating
13401         application and System.Parameters.No_Abort is True.
13402         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
13403         (Unbind_Handler): Fix handling of server_task wakeup
13404         (Server_Task): Set self's state so that Unbind_Handler can take
13405         appropriate actions.
13406
13407 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13408
13409         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
13410         declarations instead of an explicit null body, for conciseness.
13411
13412 2007-06-06  Robert Dewar  <dewar@adacore.com>
13413
13414         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
13415         illegal aggregate and the type is still Any_Composite.
13416         (Subtypes_Statically_Match): Fix problem of empty discriminant list
13417
13418 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13419
13420         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
13421         to prevent subsequent expansion.
13422
13423 2007-06-06  Robert Dewar  <dewar@adacore.com>
13424
13425         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
13426
13427 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
13428             Robert Dewar  <dewar@adacore.com>
13429
13430         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
13431         exceptions.
13432         (Write_Itype): Handle case of string literal subtype, which
13433         comes up in this context.
13434         (Update_Itype): when debugging expanded code, update sloc of itypes
13435         associated with defining_identifiers and ranges, for gdb use.
13436         (Sprint_Node_Actual): Add static keyword to object or exception
13437         declaration output if Is_Statically_Allocated is True.
13438         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
13439         or task body, so that the tree carries the proper Sloc information for
13440         debugging use.
13441         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
13442
13443 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
13444
13445         * s-secsta.adb (Chunk): Ensure this object has a static size known at
13446         compile time, to avoid dynamic memory allocation
13447         (Elaboration code): Only use dynamic memory allocation when needed.
13448
13449 2007-06-06  Quentin Ochem  <ochem@adacore.com>
13450
13451         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
13452         "Overflow_Guard".
13453         (Stack_Analyzer): Added field "Overflow_Guard"
13454         (Task_Result): Added field "Overflow_Guard".
13455         (Index_Str): New constant.
13456         (Task_Name_Str): New constant.
13457         (Actual_Size_Str): New constant.
13458         (Pattern_Array_Element_Size): New constant.
13459         (Get_Usage_Range): New subprogram.
13460         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
13461         Now align the output.
13462         Added comments.
13463         (Initialize): Added value for Overflow_Guard.
13464         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
13465         Update the value of the overflow guard according to the actual
13466         beginning of the pattern array.
13467         (Initialize_Analyzer): Added parameter Overflow_Guard.
13468         Take this parameter into accound when computing the max size.
13469         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
13470         (Report_Result): Removed extra useless procedure.
13471         Updated call to Output_Result.
13472         Moved full computation of the Task_Result here.
13473
13474 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13475
13476         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
13477         Thread_Blocking_IO, always True by default, set False on a per-runtime
13478         basis.
13479         Add Windows-specific constants
13480         Add new constant Need_Netdb_Buffer.
13481         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13482         not, whether to use getXXXbyYYY_r.
13483
13484         * gsocket.h: Add new constant Need_Netdb_Buffer.
13485         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13486         not, whether to use getXXXbyYYY_r.
13487
13488 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13489
13490         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
13491         than their first call.
13492         Add type Dummy_Communication_Block used in the generation of the pre-
13493         defined dispatching primitive _disp_asynchronous_select.
13494         (Storage_Element): Put Pragma Universal_Aliasing on it.
13495
13496 2007-06-06  Vincent Celier  <celier@adacore.com>
13497
13498         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
13499         function.
13500
13501         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
13502         letter if it is not followed by a '/' or a '\'.
13503         (Windows): New Boolean function
13504
13505         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
13506         Ada 2005.
13507         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
13508         drive letter.
13509         (Containing_Directory): Raise Use_Error when the directory is a root
13510         directory.
13511         (Extension): When returning the result, use a conversion to Result_Type,
13512         not a qualification.
13513
13514 2007-06-06  Robert Dewar  <dewar@adacore.com>
13515
13516         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
13517         (Set_Style_Check_Options): Recognize new -gnatyg style switch
13518
13519         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
13520         Warn_On_Non_Local_Exception to False, to turn off warnings for
13521         No_Exception_Propagation in ZFP runtime.
13522         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
13523         back-ends.
13524         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
13525
13526 2007-06-06  Vincent Celier  <celier@adacore.com>
13527
13528         * switch-b.adb (Scan_Binder_Switches): Add processing for new
13529         switches -R and -Z
13530
13531         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
13532         (Scan_Make_Switches): Recognize new switch -aP
13533
13534 2007-06-06  Matthew Gingell  <gingell@adacore.com>
13535             Jose Ruiz  <ruiz@adacore.com>
13536
13537         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
13538         VxWorks task descriptor in the Ada run time, call a C subprogram
13539         (__gnat_get_stack_info) that extracts the required information.
13540
13541         * sysdep.c: Back out temporary lynxos workaround.
13542         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
13543         time the stack information associated to the currently executing task.
13544         Only VxWorks systems require this function.
13545
13546 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13547
13548         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
13549         add the stack bias if the offset is computed from a frame address.
13550         (__gnat_backtrace): Adjust for above change.
13551
13552 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13553
13554         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
13555         PE_Non_Transportable_Actual.
13556         (By_Descriptor_Last): New constant.
13557         (By_Copy_Return): Likewise.
13558
13559 2007-06-06  Vincent Celier  <celier@adacore.com>
13560
13561         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
13562         is.
13563
13564         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
13565         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
13566         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
13567         Add missing comment for /OPTIMIZE=SPACE
13568         Add entry for OPTIMIZE=SPACE
13569         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
13570         Add documentation for new qualifiers corresponding to -gnatw.c/.C
13571
13572 2007-06-06  Vincent Celier  <celier@adacore.com>
13573             Robert Dewar  <dewar@adacore.com>
13574
13575         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
13576         -gnatw.C)
13577
13578         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
13579         Document gnatbind switch -a
13580         (case Constructions): Document that variables declarations are allowed
13581         for previously declared variables.
13582         Fix external lib project example
13583         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
13584         Indicate that "#if not X or Y then" is not allowed in input files to
13585         gnatprep.
13586         Document gnatw.x and gnatw.X warning flags
13587         Mention -Winline switch to activate warnings when back-end inlining is
13588         ineffective.
13589         Add gnatcheck rule descriptions
13590         Describe how to use the GNAT driver to call a tool on a closure.
13591         Describe how to run project-wide checks or metrics.
13592         Document gnatbind's -R option
13593         Updated to account for Ada 2005 support
13594
13595         * gnat_rm.texi (Case Construction): Allow variable declarations for
13596         previously declared variables.
13597         (Representation Clauses and Pragmas): Lift restriction on alignment
13598         clauses for record types.
13599         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
13600         Document No_Exception_Propagation restriction
13601         Document No_Body pragma
13602         Updated to account for Ada 2005 support; corrected some typos
13603         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
13604
13605         * gnat-style.texi: Make it clear that we never use mode IN for
13606         procedures or functions
13607
13608         * ug_words: Add entries for -gnatw.x and -gnatw.X
13609         Add entries for -gnatw.c/.C
13610
13611 2007-06-06  Pascal Obry  <obry@adacore.com>
13612             Vincent Celier  <celier@adacore.com>
13613
13614         * makegpr.adb (Add_Archive_Path): Use untouched object and library
13615         dirs and library name.
13616         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
13617         comments.
13618         (Build_Library): Idem.
13619         (Compile_Individual_Sources): Idem.
13620         (Compile_Link_With_Gnatmake): Idem.
13621         (Compile_Sources): Idem.
13622         (Get_Imported_Directories): Idem.
13623         (Link_Executables): Idem. Same change for the executable dir.
13624         (Check_Compilation_Needed): C_Source_Path new variable containing
13625         the canonical form of Source_Path to check against the source names
13626         in the dependency file.
13627         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
13628         verbose mode, display the name of the object directory we're changing
13629         to.
13630         (Saved_Switches): New name of table X_Switches
13631         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
13632         (Usage): New line for switch -aP
13633         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
13634         testing if a directory should be added to the search path.
13635
13636 2007-06-06  Javier Miranda  <miranda@adacore.com>
13637
13638         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
13639         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
13640         declaration after freezing point of all its associated tagged types;
13641         otherwise such types are frozen too early.
13642
13643 2007-06-06  Robert Dewar  <dewar@adacore.com>
13644
13645         * a-reatim.adb: Documentation addition
13646
13647         * g-cgideb.adb: Minor code reorganization
13648
13649         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
13650         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
13651         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
13652
13653         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
13654         function.  Change name New_Scope to Push_Scope
13655         (Get_Debug_Flag_K): Remove unused obsolete function.
13656
13657         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
13658         Push_Scope.
13659
13660         * makeusg.adb: Update Copyright notice
13661         Add line for switch -aP
13662
13663         * makeusg.adb: Fix wording of some usage messages
13664
13665         * s-assert.adb (Raise_Assert_Failure): Add call to
13666         Debug_Raise_Assert_Failure.
13667
13668         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
13669         (2, Standard'Alignment) for compatibility with AAMP (where alignment
13670         is restricted to 1).
13671
13672         * s-wchjis.adb: Remove use of System.Pure_Exceptions
13673
13674         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
13675         node location to No_Location when we're not debugging the expanded
13676         code.
13677
13678 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
13679
13680         * misc.c (enumerate_modes): Consider log2_b to always be one.
13681
13682 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
13683
13684         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13685
13686 2007-05-02  Pascal Obry  <obry@adacore.com>
13687
13688         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
13689         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
13690         encoding support of Stream_IO.
13691         (Write_Unit): Idem.
13692
13693         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
13694         filename and corresponding encoding to match the OS requirement.
13695         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
13696         routine will fail on specific devices like CON: AUX: ...
13697
13698         PR ada/29856: Add missing braces
13699
13700 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13701
13702         PR ada/31660
13703         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
13704
13705 2007-04-21  Jan Hubicka  <jh@suse.cz>
13706
13707         * misc.c (gnat_expand_body): Don't call target for destructors,
13708         avoid redundant check on syntax errors.
13709
13710 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13711
13712         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
13713         instead of checking GIMPLE_STMT_P in chain_next.
13714
13715 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
13716
13717         PR ada/31576
13718         * system-linux-alpha.ads: Disable constant condition warning for the
13719         Default_Bit_Order variable.
13720         * system-linux-s390.ads: Likewise.
13721         * system-linux-s390x.ads: Likewise.
13722         * system-linux-sparc.ads: Likewise.
13723
13724 2007-04-06  Javier Miranda  <miranda@adacore.com>
13725             Matt Heaney  <heaney@adacore.com>
13726             Robert Dewar  <dewar@adacore.com>
13727
13728         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
13729         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
13730         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
13731         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
13732         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
13733         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
13734         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
13735         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
13736         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
13737         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
13738         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
13739         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
13740         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
13741         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
13742         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
13743         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
13744         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
13745         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
13746         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
13747         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
13748         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
13749         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
13750         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
13751         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
13752         s-taprop-tru64.adb, s-taprop-irix.adb,
13753         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
13754         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
13755         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
13756         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
13757         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
13758         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
13759         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
13760         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
13761         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
13762         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
13763         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
13764         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
13765         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
13766         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
13767         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
13768         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
13769         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
13770         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
13771         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
13772         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
13773         access types.
13774         Update documentation.
13775         Minor rewording.
13776
13777 2007-04-06  Robert Dewar  <dewar@adacore.com>
13778
13779         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13780         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13781         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
13782         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
13783         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
13784         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13785         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13786         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
13787         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
13788         system-hpux-ia64.ads, targparm.adb,
13789         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
13790
13791         * system.ads: Move Functions_Return_By_DSP to obsolete section,
13792         kept for bootstrap purposes only.
13793
13794 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13795
13796         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
13797         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
13798         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
13799         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
13800
13801 2007-04-06  Robert Dewar  <dewar@adacore.com>
13802
13803         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
13804         (Local_Raise): New dummy procedure called when a raise is converted
13805         to a local goto. Used for debugger to detect that the exception
13806         is raised.
13807
13808         * debug.adb: Document new d.g flag (expand local raise statements to
13809         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
13810
13811         * exp_sel.adb: Use Make_Implicit_Exception_Handler
13812
13813         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
13814         suppress warnings for unused handlers.
13815         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
13816         warnings for raise statements not handled locally.
13817         (Get_RT_Exception_Entity): New function
13818         (Get_Local_Call_Entity): New function
13819         (Find_Local_Handler): New function
13820         (Warn_If_No_Propagation): New procedure
13821         (Expand_At_End_Handler): Call Make_Implicit_Handler
13822         (Expand_Exception_Handlers): Major additions to deal with local handlers
13823         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
13824         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
13825         for local raise
13826
13827         * exp_ch11.ads (Get_RT_Exception_Entity): New function
13828         (Get_Local_Call_Entity): New function
13829
13830         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
13831         of restrictions that the binder will never suggest adding.
13832
13833         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
13834         to No_Elist.
13835
13836         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
13837         be with'ed in the presence of pragma Restriction
13838         (No_Exception_Propagation).
13839
13840         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
13841
13842         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
13843         parameter, then the handler is not a suitable target for a local raise,
13844         and this is a violation of restriction No_Exception_Propagation.
13845         (Analyze_Handled_Statements): Analyze choice parameters in exception
13846         handlers before analyzing statement sequence (needed for proper
13847         detection of local raise statements).
13848         (Analyze_Raise_Statement): Reraise statement is a violation of the
13849         No_Exception_Propagation restriction.
13850
13851         * s-rident.ads: Add new restriction No_Exception_Propagation
13852
13853         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
13854         function, like Make_Exception_Handler but sets Local_Raise_Statements
13855         to No_List.
13856         (Add_Unique_Serial_Number): Deal with case where this is called during
13857         processing of configuration pragmas.
13858
13859 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13860             Pat Rogers  <rogers@adacore.com>
13861             Pascal Obry  <obry@adacore.com>
13862
13863         * g-stsifd-sockets.adb: New file.
13864
13865         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
13866         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
13867         g-socthi-vms.adb: Move signalling
13868         fd management to a nested package, so that they can conveniently be
13869         moved to a subunit that is shared across Windows, VMS, and VxWorks
13870         (Ada implementation) or completed with imported bodies from socket.c
13871         (UNIX case).
13872         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
13873         subprograms.
13874         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
13875         the signalling file descriptor.
13876         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
13877         signalling file descriptor.
13878         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
13879         instead of creating a pair of sockets for signalling here.
13880
13881         * g-socthi.adb: Ditto.
13882         Set the runtime process to ignore SIGPIPEs on platforms that support
13883         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13884
13885         * g-socthi-mingw.adb: Ditto.
13886         (WS_Version): Use Windows 2.2.
13887         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13888
13889         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
13890         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13891
13892         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
13893         added GNAT byte swapping facility
13894         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
13895
13896         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
13897
13898         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
13899         New subprograms.
13900         (__gnat_create_signalling_fds): New subprogram.
13901         Set the runtime process to ignore SIGPIPEs on platforms that support
13902         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13903
13904 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
13905             Vincent Celier  <celier@adacore.com>
13906
13907         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
13908         New version of Ada.Calendar which supports the new upper bound of Ada
13909         time (2399-12-31 86_399.999999999).
13910         The following modifications have been made to the package:
13911          - New representation of time as count of nanoseconds since the start of
13912            Ada time (1901-1-1 0.0).
13913          - Target independent Split and Time_Of routines which service both
13914            Ada 95 and Ada 2005 code.
13915          - Target independent interface to the Ada 2005 children of Calendar.
13916          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
13917          - Handling of non-leap centenial years.
13918          - Updated clock function.
13919          - Updated arithmetic and comparison operators.
13920
13921         * a-caldel.adb (To_Duration): Add call to target independent routine in
13922         Ada.Calendar to handle the conversion of time to duration.
13923
13924         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
13925         (UTC Offset).
13926         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
13927         set off to 0.
13928         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
13929         targets do not have a natural time zone, GMT is used as a default.
13930         (__gnat_get_task_options): New.
13931
13932         * a-direct.adb (Modification_Time): Add with and use clauses for
13933         Ada.Calendar and Ada.
13934         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
13935         since it is no longer needed.
13936         (Duration_To_Time): Removed.
13937         (OS_Time_To_Long_Integer): Removed.
13938         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
13939         Formatting Time_Of routines which automatically handle time zones,
13940         buffer periods and leap seconds.
13941
13942         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
13943         target independent routines in Ada.Calendar.
13944
13945         * a-calfor.ads, a-calfor.adb: 
13946         Code cleanup and addition of validity checks in various routines.
13947         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
13948         Ada.Calendar.
13949
13950         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
13951         independent routine in Ada.Calendar.
13952
13953 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13954
13955         * adaint.c: 
13956         (convert_addresses): Adjust prototype and dummy definition to expect an
13957          extra file_name argument.
13958
13959         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
13960         filling the now expected file_name argument with the appropriate
13961         argv[0] expansion.
13962         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
13963         (tracebk): Array of void * instead of char *, corresponding to what
13964          convert_addresses expects.
13965         (exename): New static global, to hold the executable file name to be
13966         used in all convert_addresses invocations.
13967         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
13968         change.
13969         (__gnat_gmem_a2l_initialize): Resolve exename.
13970         (__gnat_convert_addresses): Use exename as the convert_addresses
13971         file_name argument.
13972
13973         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
13974         "convert_addresses", now expecting a filename argument. Import the
13975         necessary entities to compute the filename to use and pass it to
13976         convert_addresses.
13977
13978 2007-04-06  Matt Gingell  <gingell@adacore.com>
13979
13980         * system-aix.ads: Back out previous change.
13981         (Functions_Return_By_DSP): Removed
13982
13983 2007-04-06  Pascal Obry  <obry@adacore.com>
13984
13985         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
13986         or the monotonic used by Ada.Real_Time) to compute the sleep duration
13987         on Windows.
13988
13989 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
13990
13991         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
13992         function. Its value changes in different VxWorks versions, and it is
13993         now handled by the function __gnat_get_task_options.
13994
13995         * s-taprop-vxworks.adb (Create_Task): Call the function
13996         __gnat_get_task_options to get the required options for creating a task.
13997
13998 2007-04-06  Pascal Obry  <obry@adacore.com>
13999             Thomas Quinot  <quinot@adacore.com>
14000
14001         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14002         dealing with filename.
14003         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14004         filename from a standard string to a wide-string depending on the
14005         encoding value.
14006         (__gnat_freopen): Idem.
14007         (__gnat_current_time): New function (wrapper for time(3) standard C
14008         function).
14009
14010         * g-os_lib.ads (Current_Time): New function. Returns the current
14011         system time as an OS_Time value.
14012
14013         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14014         (Monotonic_Clock): Same.
14015
14016 2007-04-06  Quentin Ochem  <ochem@adacore.com>
14017
14018         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14019         not on a natural.
14020         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14021
14022 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14023
14024         * a-retide.adb: Add elaboration code to ensure that the tasking run
14025         time is initialized when using delay operations even when no task is
14026         created.
14027
14028 2007-04-06  Javier Miranda  <miranda@adacore.com>
14029
14030         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14031         component Num_Prim_Ops.
14032         (Set_Num_Prim_Ops): Removed.
14033         Remove all the assertions because all the routines of this
14034         package are inline always.
14035         (Get_Offset_Index): Add support to primary dispatch tables.
14036         Move the documentation about the dispatch table to a-tags.ads
14037         (Set_External_Tag): Removed
14038         (Inherit_TSD): Removed.
14039         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14040         moved to a-tags.ads
14041         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14042         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14043         of the TSD field "Table" because this field has been renamed to
14044         "Ifaces_Table".
14045         (Inherit_CPP_DT): Removed.
14046         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14047         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14048         declarations have been moved to a-tags.ads
14049         (Check_Size): Removed.
14050         (Expanded_Name): Updated to get access to the new field of TSD
14051         containing the address of the expanded name.
14052         (Get_Access_Level/Set_Access_Level): Removed.
14053         (Get_Predefined_Prim_Op_Address): Removed.
14054         (Set_Predefined_Prim_Op_Address): Removed.
14055         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14056         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14057         (Set_Expanded_Name): Removed.
14058         (Inherit_DT): Removed.
14059         (Inherit_CPP_DT): Removed.
14060         (Set_RC_Offset): Removed.
14061         (Set_TSD): Removed.
14062         (Base_Address): New function that displaces "this" to point to the base
14063         of the object (that is, to point to the primary tag of the object).
14064
14065 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14066             Javier Miranda  <miranda@adacore.com>
14067
14068         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
14069         anonymous access component, do not create a master_id if type already
14070         has one, as may happen if the type is a subcomponent of a packed array
14071         type.
14072         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
14073         Initialize_Tag): Remove code associated with the old CPP pragmas.
14074         CPP_Virtual and CPP_Vtable are no longer supported.
14075         (Build_Offset_To_Top_Internal): Add support for concurrent record types
14076         (Build_Offset_To_Top_Functions): Add support for concurrent record types
14077         (Freeze_Record_Type): Remove call to
14078         Init_Predefined_Interface_Primitives.
14079         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
14080         code required to initialize the tags of the secondary dispatch tables.
14081         This leaves the algoritm more clear.
14082         (Init_Secondary_Tags): Add support for concurrent record types
14083         (Make_Predefined_Primitive_Specs): Code cleanup.
14084         (Predefined_Primitive_Bodies): Code cleanup.
14085         (Build_Master_Renaming): New local subprogram.
14086         (Expand_N_Full_Type_Declaration): Build the master_id associated with
14087         anonymous access to task type components.
14088         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
14089         subtype indication are resolved during analysis, and must not be done
14090         here.
14091         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
14092
14093 2007-04-06  Geert Bosch  <bosch@adacore.com>
14094             Ed Schonberg  <schonberg@adacore.com>
14095             Javier Miranda  <miranda@adacore.com>
14096             Bob Duff  <duff@adacore.com>
14097
14098         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
14099         for conversion of a Float_Type'Truncation to integer.
14100
14101         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
14102         check if a node is an attribute that can be handled directly by the
14103         back end.
14104         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
14105         attributes that can be handled directly by the back end.
14106         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
14107         use new predicate Is_Access_Protected_Subprogram_Type.
14108         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
14109         and Unchecked_Union if it is generated as part of the default  Output
14110         procedure for a type with default discriminants.
14111         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
14112         if we are compiling under restriction No_Dispatching_Calls.
14113         (Constrained): Use Underlying_Type, in case the type is private without
14114         discriminants, but the full type has discriminants.
14115         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
14116         call to Build_Get_Access_Level.
14117         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
14118         interface objects requires a call to the run-time subprogram that
14119         returns the base address of the object.
14120         (Valid_Conversion): Improve error message on illegal attempt to store
14121         an anonymous access to subprogram value into a record component.
14122
14123         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
14124         null".
14125         (Simplify_Type_Conversion): New procedure that performs simplification
14126         of Int_Type (Float_Type'Truncation (X)).
14127         (Resolve_Type_Conversion): Call above procedure after resolving operand
14128         and before performing checks. This replaces the existing ineffective
14129         code in Exp_Ch4.
14130         (Set_String_Literal_Subtype): When creating the internal static lower
14131         bound subtype for a string literal, use a newly created copy of the
14132         subtree representing the lower bound.
14133         (Resolve_Call): Exclude build-in-place function calls from transient
14134         scope treatment. Update comments to describe this exception.
14135         (Resolve_Equality_Op): In case of dispatching call check violation of
14136         restriction No_Dispatching_Calls.
14137         (Resolve_Call): If the call returns an array, the context imposes the
14138         component type of the array, and the function has one non-defaulted
14139         parameter, rewrite the call as the indexing of a call with a single
14140         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
14141         in prefix form.
14142         (Resolve_Actuals): If an actual is an allocator for an access parameter,
14143         the master of the created object is the innermost enclosing statement.
14144         (Remove_Conversions): For a binary operator, check if type of second
14145         formal is numeric, to check if an abstract interpretation is present
14146         in the case of exponentiation as well.
14147
14148 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14149             Bob Duff  <duff@adacore.com>
14150
14151         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
14152         copying a parameter list in a call, set properly the First_Named_Formal
14153         and Next_Named_Formal fields in the new list and in the enclosing call.
14154         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
14155         names, to ease typing in the debugger. Improve comments.
14156         (Watch_Node): New variable, intended to be set in the debugger.
14157         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
14158         called when the watched node is created.
14159         (New_Node_Debugging_Output): Combined version of local procedures
14160         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
14161         with a parameter so that conditional breakpoints like "if Node = 12345"
14162         work.
14163         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
14164         Add Elist1 function
14165
14166 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14167             Ed Schonberg  <schonberg@adacore.com>
14168             Gary Dismukes  <dismukes@adacore.com>
14169
14170         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
14171         required for a conversion between two access-to-unconstrained-array
14172         types.
14173         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
14174         to discriminant constraints on discriminant objects. This rule must
14175         apply as well to discriminants of protected types in private components.
14176         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
14177         object of a null-excluding access type then don't require the
14178         the object declaration to have an expression and don't emit a
14179         run-time check.
14180
14181 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14182             Eric Botcazou  <botcazou@adacore.com>
14183
14184         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
14185         and made constant.
14186
14187         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
14188         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
14189         carry any.
14190
14191         * fe.h (Compiler_Abort): Add third parameter.
14192
14193         * misc.c (internal_error_function): Build third argument from current
14194         input location and pass it to Compiler_Abort.
14195
14196 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
14197
14198         * cstand.adb (Create_Standard): When the target's storage unit size is
14199         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
14200         Standard_String.
14201
14202 2007-04-06  Nicolas Roche  <roche@adacore.com>
14203
14204         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
14205         absolute path can have the following form: device:/a/b. In this case
14206         '/' should be inserted between the path and the filename.
14207
14208 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14209             Eric Botcazou  <botcazou@adacore.com>
14210
14211         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
14212         VAR_DECL to a CONST_DECL we make for a public constant when we know the
14213         corresponding definition has created the so made visible variable.
14214         Handle anonymous access to protected subprogram.
14215         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
14216         object with an address clause volatile.  Re-enable original fix.
14217         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
14218         too.
14219         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
14220         associated with either the Equivalent or Root type, instead of the
14221         naked type node.
14222         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
14223         subtree for every field of a global record type.
14224         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
14225         discriminants, invoke again variable_size on its newly computed sizes.
14226
14227 2007-04-06  Robert Dewar  <dewar@adacore.com>
14228             Thomas Quinot  <quinot@adacore.com>
14229             Ed Schonberg  <schonberg@adacore.com>
14230             Bob Duff  <duff@adacore.com>
14231
14232         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
14233         (Next_Component_Or_Discriminant): New function and procedure
14234         (First_Index, First_Literal, Master_Id,
14235         Set_First_Index, Set_First_Literal, Set_Master_Id):
14236         Add missing Ekind assertions.
14237         (Is_Access_Protected_Subprogram_Type): New predicate.
14238         (Has_RACW): New entity flag, set on package entities to indicate that
14239         the package contains the declaration of a remote accecss-to-classwide
14240         type.
14241         (E_Return_Statement): This node type has the Finalization_Chain_Entity
14242         attribute, in case the result type has controlled parts.
14243         (Requires_Overriding): Add this new flag, because "requires
14244         overriding" is subtly different from "is abstract" (see AI-228).
14245         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
14246         Is_Abstract_Type. Make sure these are called only when appropriate.
14247         (Has_Pragma_Unreferenced_Objects): New flag
14248
14249         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
14250         class-wide, the tag of the right-hand side must be an exact match, not
14251         an ancestor of that of the object on left-hand side.
14252         (Move_Activation_Chain): New procedure to create the call to
14253         System.Tasking.Stages.Move_Activation_Chain.
14254         (Expand_N_Extended_Return_Statement): Generate code to call
14255         System.Finalization_Implementation.Move_Final_List at the end of a
14256         return statement if the function's result type has controlled parts.
14257         Move asserts to Build_In_Place_Formal.
14258         (Move_Final_List): New function to create the call statement.
14259         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
14260         tagged type, replace generation of call to the run-time subprogram
14261         CW_Membership by call to Build_CW_Membership.
14262         (Expand_N_Return_Statement): Replace generation of call to the run-time
14263         subprogram Get_Access_Level by call to Build_Get_Access_Level.
14264         (Expand_N_Simple_Function_Return): Replace generation of call to the
14265         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14266
14267         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
14268         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
14269         access to protected operations.
14270         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
14271         master and chain actual parameters to a build-in-place function call
14272         involving tasks.
14273         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
14274         statement.
14275         (Make_Build_In_Place_Call_In_Allocator,
14276         Make_Build_In_Place_Call_In_Anonymous_Context,
14277         Make_Build_In_Place_Call_In_Assignment,
14278         Make_Build_In_Place_Call_In_Object_Declaration): Call
14279         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
14280         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
14281         stubbed procedure with a null body, replace the call with a null
14282         statement without using the full inlining machinery, for efficiency
14283         and to avoid invalid values in source file table entries.
14284
14285         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
14286         renamings of calls to build-in-place functions.
14287
14288         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
14289         provides the functionality of RTE_Available to record components.
14290         (RTU_Entity): The function Entity has been renamed to RTU_Entity
14291         to avoid undesired overloading.
14292         (Entity): New subprogram that returns the entity for the referened
14293         unit. If this unit has not been loaded, it returns Empty.
14294         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
14295         Remove no longer used entities.
14296         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
14297         (RE_Type_Specific_Data): New entity.
14298         (RE_Move_Any_Value): New entity.
14299         (RE_TA_A, RE_Get_Any_Type): New entities.
14300         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
14301          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
14302          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
14303         (Entity): New subprogram that returns the entity for the referened
14304         unit. If this unit has not been loaded, it returns Empty.
14305         (RTE): Addition of a new formal that extends the search to the scopes
14306         of the record types found in the chain of the package.
14307
14308         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
14309         "abstract subprograms must be visible" message, whether or not the type
14310         is an interface; that is, remove the special case for interface types.
14311         (Analyze_Function_Return): Remove error message "return of task objects
14312         is not yet implemented" because this is now implemented.
14313         (Create_Extra_Formals): Add the extra master and activation chain
14314         formals in case the result type has tasks.
14315         Remove error message "return of limited controlled objects is not yet
14316         implemented".
14317         (Create_Extra_Formals): Add the extra caller's finalization list formal
14318         in case the result type has controlled parts.
14319         (Process_Formals): In case of access formal types there is no need
14320         to continue with the analysis of the formals if we already notified
14321         errors.
14322         (Check_Overriding_Indicator): Add code to check overriding of predefined
14323         operators.
14324         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
14325         flags for formals that do not require them,.
14326         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
14327         hidden entity is use visible or directly visible.
14328         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
14329         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
14330         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
14331         New_Overloaded_Entity): Split Is_Abstract flag into
14332         Is_Abstract_Subprogram and Is_Abstract_Type.
14333
14334         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
14335         a return statement's finalization list to the caller's list, used for
14336         build-in-place functions with result type with controlled parts.
14337         Remove no longer used entities.
14338
14339         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
14340         longer needed, because the full type is now limited, and therefore a
14341         pass-by-reference type.
14342         (Foreign_Task_Level): New constant.
14343
14344         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
14345         move tasks from the activation chain belonging to a return statement to
14346         the one passed in by the caller, and update the master to the one
14347         passed in by the caller.
14348         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
14349         of unactivated tasks, so we don't kill the ones that are being returned
14350         by a build-in-place function.
14351         (Create_Task): Ignore AI-280 for foreign threads.
14352
14353 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14354             Robert Dewar  <dewar@adacore.com>
14355             Bob Duff  <duff@adacore.com>
14356             Gary Dismukes  <dismukes@adacore.com>
14357
14358         * errout.adb (Unwind_Internal_Type): Use predicate
14359         Is_Access__Protected_Subprogram_Type.
14360
14361         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
14362         (Freeze_Entity, packed array case): Do not override explicitly set
14363         alignment and size clauses.
14364         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
14365         the enclosing subprogram is a child unit body that acts as a spec.
14366         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
14367         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
14368         Remove all code for DSP option
14369
14370         * layout.adb (Layout_Record_Type): Use First/
14371         Next_Component_Or_Discriminant
14372         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
14373         to handle properly the anonymous access case.
14374
14375         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
14376         for all access attributes, because overload resolution should work the
14377         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
14378         causes the error message for the ambiguous "X'Access = Y'Access" and
14379         "X'Unrestricted_Access = Y'Access" and so forth to match.
14380         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
14381         now that anonymous access to protected operations have their own kind.
14382         (Resolve_Attribute): In case of dispatching call check the violation of
14383         restriction No_Dispatching_Calls.
14384         (Check_Array_Type): Check new -gnatyA array index style option
14385
14386         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
14387         attempt to derive from a synchronized tagged type.
14388         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
14389         type, inherit the class-wide type already created, because it may
14390         already have been used in a self-referential anonymous access component.
14391         (Mentions_T): Recognize self-referential anonymous access components
14392         that use (a subtype of) the class-wide type of the enclosing type.
14393         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
14394         Derived_Type for Prev formal on call to
14395         Check_Anonymous_Access_Components rather than Empty.
14396         (Make_Incomplete_Type_Declaration): Add test for case where the type has
14397         a record extension in deciding whether to create a class-wide type,
14398         rather than just checking Tagged_Present.
14399         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
14400         to stand-alone object declarations as well as component declarations.
14401         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
14402         prevent accidental overwriting when enclosing package appears in
14403         a limited_with_clause.
14404         (Array_Type_Declaration): If the component type is an anonymous access,
14405         the associated_node for the itype is the type declaration itself.
14406         (Add_Interface_Tag_Components): Modified to support concurrent
14407         types with abstract interfaces.
14408         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
14409         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
14410         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
14411         to complete the decoration of synchronized interface types. Add also
14412         a call to Check_Abstract_Interfaces to verify the ARM rules.
14413         (Derive_Interface_Subprograms): Modified to support concurrent types
14414         with abstract interfaces.
14415         (Analyze_Subtype_Indication): Resolve the range with the given subtype
14416         mark, rather than delaying the full resolution depending on context.
14417         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
14418         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
14419         Array_Type_Declaration,Build_Derived_Record_Type,
14420         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
14421         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
14422         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
14423         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14424         called only when appropriate.
14425         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
14426         to private type.
14427         (Analyze_Subtype_Declaration): For an access subtype declaration, create
14428         an itype reference for the anonymous designated subtype, to prevent
14429         scope anonmalies in gigi.
14430         (Build_Itype_Reference): New utility, to simplify construction of such
14431         references.
14432
14433 2007-04-06  Vincent Celier  <celier@adacore.com>
14434
14435         * errutil.adb (Initialize): Initialize warnings table, if all warnings
14436         are suppressed, supply an initial dummy entry covering all possible
14437         source locations.
14438
14439         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
14440         and start with only one, such as "-RTS=none".
14441         (Collect_Arguments): Do not check for sources outside of projects.
14442         Do not collect arguments if project is externally built.
14443         (Compile_Sources): Do nothing, not even check if the source is up to
14444         date, if its project is externally built.
14445         (Compile): When compiling a predefined source, add -gnatpg
14446         as the second switch, after -c.
14447         (Compile_Sources): Allow compilation of Annex J renames without -a
14448         (Is_In_Object_Directory): Check if the ALI file is in the object
14449         even if there is no project extension.
14450         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
14451         gnatbind if the ALI file effectively exists.
14452         (Initialize): Add the directory where gnatmake is invoked in front of
14453         the path if it is invoked from a bin directory, even without directory
14454         information, so that the correct GNAT tools will be used when spawned
14455         without directory information.
14456
14457         * makeusg.adb: Change switch -S to -eS
14458         Add lines for new switches -we, -wn and -ws
14459         Add line for new switch -p
14460
14461         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
14462         Treat_As_Error and there are warnings.
14463
14464         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
14465         -gnatww Change gnatmake switch -S to -eS
14466         (Scan_Make_Switches): Code reorganisation. Process separately multi
14467         character switches and single character switches.
14468         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
14469         False when switch is not recognized by gnatmake.
14470         (Scan_Make_Switches): Set Setup_Projects True when -p or
14471         --create-missing-dirs is specified.
14472
14473         * fname.adb (Is_Predefined_File_Name): Return True for annex J
14474         renamings Calendar, Machine_Code, Unchecked_Conversion and
14475         Unchecked_Deallocation only when Renamings_Included is True.
14476
14477         * par.adb: Allow library units Calendar, Machine_Code,
14478         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
14479         when -gnatg is not specified.
14480         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14481         there is no need to generate always a record_definition_node in case
14482         of synchronized interface types.
14483         (SIS_Entry_Active): Initialize global variable to False
14484         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
14485         indicate cases where AI-447 says "not null" is legal.
14486
14487         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
14488
14489         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
14490         files with with several lines starting with the object fileb name.
14491         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
14492         is specified.
14493         (Initialize): Add the directory where gprmake is invoked in front of the
14494         path, if it is invoked from a bin directory or with directory
14495         information, so that the correct GNAT tools will be used when invoked
14496         directly.
14497         (Check_Compilation_Needed): Process correctly backslashes on Windows.
14498
14499         * vms_data.ads: Update switches/qualifiers
14500
14501 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14502             Thomas Quinot  <quinot@adacore.com>
14503
14504         * exp_aggr.adb:
14505         If the array component is a discriminated record, the array aggregate
14506         is non-static even if the component is given by an aggregate with
14507         static components.
14508         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
14509         (Convert_Aggr_In_Allocator): If the allocator is for an access
14510         discriminant and the type is controlled. do not place on a finalization
14511         list at this point. The proper list will be determined from the
14512         enclosing object.
14513         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
14514         initialize record controller if needed, before the components, to ensure
14515         that they are properly finalized.
14516         (Build_Record_Aggr_Code): For the case of an array component that has a
14517         corresponding array aggregate in the record aggregate, perform sliding
14518         if required.
14519
14520 2007-04-06  Javier Miranda  <miranda@adacore.com>
14521             Gary Dismukes  <dismukes@adacore.com>
14522             Ed Schonberg  <schonberg@adacore.com>
14523
14524         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
14525         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
14526
14527         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
14528         accessibility on class-wide allocators if the allocator occurs at the
14529         same scope level as the allocator's type. The check is guaranteed to
14530         succeed in that case, even when the expression originates from a
14531         parameter of the containing subprogram.
14532         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
14533         under No_Dispatching_Calls restriction. During the semantic analysis
14534         we already notified such violation.
14535         (Tagged_Membership): Constant folding. There is no need to check
14536         the tag at run-time if the type of the right operand is non
14537         class-wide abstract.
14538         Replace call to Is_Ancestor by call to Is_Parent
14539         to support concurrent types with interface types.
14540         (Expand_N_Allocator): Add an assertion associated with the generation
14541         of the master_id.
14542         (Expand_N_Slice): Do not enable range check to nodes associated
14543         with the frontend expansion of the dispatch table.
14544         (Is_Local_Access_Discriminant): Subsidiary function to
14545         Expand_N_Allocator.
14546         (Tagged_Membership): Replace generation of call to the run-time
14547         subprogram CW_Membership by call to Build_CW_Membership.
14548         (Expand_Allocator_Expression): Replace generation of call to the
14549         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14550
14551         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
14552         initialize most the TSD components by means of an aggregate.
14553         Modify the declaration of the object containing the TSD
14554         because we now expand code that has a higher level of abstraction.
14555         The TSD has a discriminant containing the Inheritance Depth Level,
14556         value that is used in the membership test but also to fix the size
14557         of the table of ancestors.
14558         (Expand_Interface_Conversion): Insert function body at the closest place
14559         to the conversion expression, to prevent access-before-elaboration
14560         errors in the backend.
14561         Code improved to reduce the size of the dispatch table if
14562         compiling under restriction No_Dispatching_Calls plus code cleanup.
14563         Code reorganization plus removal of calls to Set_Num_Prim_Ops
14564         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
14565         (Expand_Dispatching_Call): Minor code reorganization plus addition of
14566         code to return immediately if compiling under No_Dispatching_Calls
14567         restriction.
14568         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
14569         CPP_Virtual and CPP_Vtable are no longer supported.
14570         (Expand_Interface_Conversion): Add missing support for interface type
14571         derivations.
14572         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
14573         Is_Parent to support concurrent types with interfaces.
14574         (Init_Predefined_Interface_Primitives): Removed.
14575         (Make_Secondary_DT): Modified to support concurrent record types.
14576         (Set_All_DT_Position): Modified to support concurrent record types.
14577         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14578         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
14579         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
14580         with CW_Membership.
14581         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14582         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
14583         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
14584         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
14585         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
14586         (Expand_Dispatching_Call): Replace generation of call to the run-time
14587         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
14588         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
14589         Address.
14590         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
14591         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
14592         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
14593         Build_Set_Prim_Op_Address.
14594         (Get_Remotely_Callable): Subprogram removed.
14595         (Init_Predefined_Interface_Primitives): Replace generation of call to
14596         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
14597         Prims.
14598
14599         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
14600         First (Parameter_Associations ()) with the call to First_Actual that
14601         returns an actual parameter expression for both named and positional
14602         associations.
14603
14604         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
14605         check violation of restriction No_Dispatching_Calls.
14606         (Check_Controlling_Type): A formal of a tagged incomplete type is a
14607         controlling argument.
14608
14609         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
14610         First/Next_Component_Or_Discriminant
14611         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
14612         (Find_Implemented_Interface): Removed. All the calls to this subprogram
14613         specify Any_Limited_Interface, and this functionality is already
14614         provided by the function Has_Abstract_Interfaces.
14615         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
14616         support concurrent types implementing interfaces.
14617         (Find_Implemented_Interface): Removed. All the calls to this subprogram
14618         specify kind Any_Limited_Interface, and this functionality is already
14619         provided by the function Has_Abstract_Interfaces.
14620         (Remove_Side_Effects): replace Controlled_Type by
14621         CW_Or_Controlled_Type whenever the issue is related to
14622         using or not the secondary stack.
14623
14624         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
14625         P_Interface_Type_Definition to fulfill the new interface (the formal
14626         Is_Synchronized is no longer required).
14627
14628         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
14629         Update dependencies.
14630
14631         * exp_atag.ads, exp_atag.adb: New file
14632
14633 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14634             Bob Duff  <duff@adacore.com>
14635             Cyrille Comar  <comar@adacore.com>
14636
14637         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
14638         anonymous, use finalization list of enclosing dynamic scope.
14639         (Expand_N_Package_Declaration): For a library package declaration
14640         without a corresponding body, generate RACW subprogram bodies in the
14641         spec (just as we do for the task activation call).
14642         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
14643         Is_Abstract_Type. Make sure these are called only when appropriate.
14644         Remove all code for DSP option
14645         (CW_Or_Controlled_Type): new subprogram.
14646
14647 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
14648             Ed Schonberg  <schonberg@adacore.com>
14649             Gary Dismukes  <dismukes@adacore.com>
14650
14651         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
14652         parameter. If it is set to true, return a result capped according to
14653         the global upper bound for the index of an entry family.
14654         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
14655         (Build_Find_Body_Index): Adjust for above change.
14656         (Entry_Index_Expression): Likewise.
14657         (Is_Potentially_Large_Family): New function extracted from...
14658         (Collect_Entry_Families): ...here. Call it to detect whether the family
14659         is potentially large.
14660         (Build_Entry_Count_Expression): If the family is potentially large, call
14661         Family_Size with 'Cap' set to true.
14662         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
14663         a protected version of an operation declared in the private part of
14664         a protected object, because they may be invoked through a callback.
14665         (Set_Privals): If the type of a private component is an anonymous access
14666         type, do not create a new itype for each protected body.
14667         If the body of a protected operation creates
14668         controlled types (including allocators for class-widetypes), the
14669         body of the corresponding protected subprogram must include a
14670         finalization list.
14671         (Build_Activation_Chain_Entity): Build the chain entity for extended
14672         return statements.
14673         (Type_Conformant_Parameters): Use common predicate Conforming_Types
14674         to determine whether operation overrides an inherited primitive.
14675         (Build_Wrapper_Spec): Add code to examine the parents while looking
14676         for a possible overriding candidate.
14677         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
14678         hold an actual parameter value since its initialization is separated
14679         from the the declaration. Prevents errors on null-excluding access
14680         formals.
14681
14682 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14683             Pablo Oliveira  <oliveira@adacore.com>
14684
14685         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
14686         Do an Unchecked_Conversion to handle the passage from the Underlying
14687         Type to the Base Type when calling Build_To_Any_Call and
14688         Build_From_Any_Call.
14689         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
14690         E_Constant, depending upon Variable formal.
14691         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14692         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
14693         parameter that requires an extra constrained parameter, declare
14694         temporary for actual as a variable, not a constant.
14695         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
14696         the unit being compiled is the one that contains the stub type.
14697         Change primitive operation name for the RACW associated with a RAS
14698         from Call to _Call so it cannot clash with any legal identifier.
14699         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
14700         Is_RAS.
14701         (Append_RACW_Bodies): New subprogram.
14702         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
14703         Add_Receiving_Stubs_To_Declarations functions.
14704         When expanding a package body, this list correspond to the
14705         statements in the HSS at the end of the pacakge.
14706         When expanding a package spec, this list correspond to the
14707         spec declarations.
14708         (Add_Receiving_Stubs_To_Declarations): Append the function
14709         registering the receiving stubs at the end of the 'Stmts' list.
14710         (RCI_Package_Locator): Pass the new Version generic formal when
14711         instantiating a RCI_Locator package.
14712         (Build_From_Any_Function): To compute the High bound for an
14713         unconstrained array actual, we add the Low bound with the length.
14714         Thus we must convert the low bound and the length to an appropriate
14715         type before doing the sum.
14716         (Build_Subprogram_Receiving_Stubs, PolyORB):
14717          * Retrieve the extra formals parameters at the
14718            end of the parameter stream.
14719          * Use Move_Any_Value to write back out parameters
14720            after executing the request as it is more efficient
14721            than Copy_Any_Value.
14722          * Build the any containing Extra Formals with the
14723            appropriate typecode.
14724         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
14725         empty Component_List.
14726         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
14727         the tree the declaration for an object that serves as actual parameter
14728         in server-side stubs.
14729         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14730         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14731         Use Build_Actual_Object_Declaration to prepare the actuals.
14732         (Add_Parameter_To_NVList): Set the parameter mode to In for
14733         Extra Constrained Parameters.
14734         (Build_General_Calling_Stubs): Set the parameter type to boolean for
14735         Extra Constrained parameters.
14736         (Build_To_Any_Function, Build_From_Any_Function,
14737         Built_TypeCode_Function): When Typ is implicit, call the correct
14738         function with the first not implicit parent type.
14739         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
14740         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
14741         typecode from the Etype. Therefore we retrieve the correct typecode
14742         with a call to Get_Any_Type.
14743         (Copy_Specification): Do controlling formal type substitution based on
14744         Is_Controlling_Formal flag, instead of caller-provided object type.
14745         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
14746         a RACW primitive operation, we might get a subprogram declaration for an
14747         ancestor of the RACW designated type (not for the designated type
14748         itself), in the case where this operation is inherited. In this case we
14749         have no easy means of determining the original tagged type for which
14750         the primitive was declared, so instead we now rely on
14751         Copy_Specification to use the Is_Controlling_Formal flag to determine
14752         which formals require type substitution.
14753
14754 2007-04-06  Robert Dewar  <dewar@adacore.com>
14755             Ed Schonberg  <schonberg@adacore.com>
14756
14757         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
14758         GNAT.Current_Exception are not allowed if pragma Restrictions
14759         (No_Exception_Propagation) is set and in any case make the associated
14760         handler unsuitable as a target for a local raise statement.
14761         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
14762         run-time subprogram CW_Membership by call to Build_CW_Membership.
14763         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
14764         by a function call, a temporary must be created before expanding the
14765         Constructor_Call itself, to prevent out-of-order elaboration in the
14766         back-end when stack checking is enabled..
14767
14768 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14769
14770         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
14771         result are the bounds of the left operand, not the right.
14772
14773 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14774
14775         * exp_strm.adb
14776         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
14777          discriminant defaults.
14778         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
14779         (Make_Component_List_Attributes): Ditto.
14780
14781 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14782             Bob Duff  <duff@adacore.com>
14783
14784         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
14785         an association with a box as providing a value even though the
14786         initialization procedure for the type is not available.
14787         (Resolve_Record_Aggregate): Check that a choice of an association with a
14788         box corresponds to a component of the type.
14789         (Resolve_Record_Aggregate): Split Is_Abstract flag into
14790         Is_Abstract_Subprogram and Is_Abstract_Type.
14791
14792         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
14793         assert.
14794
14795         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
14796         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14797         called only when appropriate.
14798
14799 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14800
14801         * g-alleve.ads (Low Level Vector type definitions): Map each to the
14802         associated vector view instead of all to the unsigned char view.
14803
14804         * g-altcon.adb (Generic_Conversions): New internal generic package,
14805         offering facilities for all the Vector/View conversion routines
14806         implemented by this unit.
14807         (To_View/To_Vector - all versions): Reimplemented in a systematic
14808         manner, using the internal Generic_Conversions facilities.
14809
14810 2007-04-06  Pascal Obry  <obry@adacore.com>
14811
14812         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
14813         string.
14814         (Create): Free the source string before storing the new one.
14815
14816 2007-04-06  Vincent Celier  <celier@adacore.com>
14817
14818         * g-debpoo.adb (Validity): New package with a complete new
14819         implementation of subprograms Is_Valid and Set_Valid.
14820         (Is_Valid): Move to local package Validity
14821         (Set_Valid): Move to local package Validity
14822
14823 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14824             Pablo Oliveira  <oliveira@adacore.com>
14825
14826         * g-expect.adb (Get_Command_Output): When expanding the output buffer
14827         we must ensure that there is enough place for the new data we are going
14828         to copy in.
14829
14830 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14831
14832         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
14833         computation.
14834
14835 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14836             Vincent Celier  <celier@adacore.com>
14837
14838         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
14839         (Stack_String): Add this String that contains the name of the Stack
14840         package in the project file.
14841         (Packages_To_Check_By_Stack): Add this list that contains the packages
14842         to be checked by gnatstack, which are the naming and the stack packages.
14843         (Check_Files): If no .ci files were specified for gnatstack we add all
14844         the .ci files belonging to the projects, including binder generated
14845         files.
14846         (Non_VMS_Usage): Document that gnatstack accept project file switches.
14847         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
14848         Add gnatstack to the list of commands that use project file related
14849         switches, and get the single attribute Switches from the stack package
14850         in a project file when calling gnatstack. Parse the -U flag for
14851         processing files belonging to all projects in the project tree.
14852         Remove all processing for command Setup
14853
14854         * prj-attr.adb: Add new package Stack with single attribute Switches
14855
14856         * vms_conv.ads (Command_Type): Add command Stack.
14857         Move to body declarations that are only used in the body: types Item_Id,
14858         Translation_Type, Item_Ptr, Item and its subtypes.
14859
14860         * vms_conv.adb: (Initialize): Add data for new command Stack.
14861         Add declarations moved from the spec: types Item_Id, Translation_Type,
14862         Item_Ptr, Item and its subtypes.
14863         (Cargs_Buffer): New table
14864         (Cargs): New Boolean global variable
14865         (Process_Buffer): New procedure to create arguments
14866         (Place): Put character in table Buffer or Cargs_Buffer depending on the
14867          value of Cargs.
14868         (Process_Argument): Set Cargs when processing qualifiers for GNAT
14869         COMPILE
14870         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
14871         empty, for table Cargs_Buffer.
14872         (Initialize): Remove component Setup in Command_List
14873
14874 2007-04-06  Vincent Celier  <celier@adacore.com>
14875
14876         * gprep.adb (Process_Files.Process_One_File): Use full file name when
14877         issuing pragma Source_Reference.
14878
14879 2007-04-06  Emmanuel Briot  <briot@adacore.com>
14880
14881         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
14882         [[:xdigit:]] character class.
14883         Also raise an exception when an invalid character class is used.
14884
14885 2007-04-06  Pascal Obry  <obry@adacore.com>
14886
14887         * i-cstrea.ads: (fopen): Add encoding parameter.
14888         (freopen): Idem.
14889         Change reference from a-sysdep.c to sysdep.c in comment.
14890         Update copyright notice.
14891         This set of patch add support for the encoding form parameter.
14892
14893         * mingw32.h (S2WSU): New macro to convert from a string to a
14894         wide-string using the UTF-8 encoding. The S2WS macro supports now only
14895         standard 8bits encoding.
14896         (WS2SU): As above but converting from wide-sring to string.
14897         This is needed as it is necessary to have access to both versions in the
14898         runtime for the form parameter encoding support.
14899         This set of patch add support for the encoding form parameter.
14900         (S2WS): Improve implementation to handle cases where the filename is not
14901         UTF-8 encoded. In this case we default to using the current code page
14902         for the conversion.
14903
14904         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
14905         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
14906         the constants defined in adaint.h.
14907         (fopen): Add encoding parameter.
14908         (freopen): Idem.
14909
14910         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
14911         encoding. This is needed for the Reset routine (freopen low level-call).
14912
14913         * s-fileio.adb (Open): Decode encoding form parameter and set the
14914         corresponding encoding value into AFCB structure.
14915         (Reset): Pass the encoding value to freopen.
14916         (Close): Move the call to Lock_Task to the beginning of the procedure.
14917
14918 2007-04-06  Geert Bosch  <bosch@adacore.com>
14919             Robert Dewar  <dewar@adacore.com>
14920
14921         * i-fortra.ads: Add Double_Complex type.
14922
14923         * impunit.adb: (Is_Known_Unit): New function
14924         Add Gnat.Byte_Swapping
14925         Add GNAT.SHA1
14926         Add new Ada 2005 units
14927         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
14928         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
14929         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
14930         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
14931
14932         * impunit.ads (Is_Known_Unit): New function
14933
14934         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
14935         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
14936         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
14937         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
14938         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
14939         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
14940         New files.
14941
14942         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
14943
14944         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
14945
14946 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
14947             Arnaud Charlet  <charlet@adacore.com>
14948
14949         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
14950         __gnat_adjust_context_for_raise.
14951         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
14952         implementation of floating point operations as native x86 targets.
14953         So the FPU should be initialized in the same way using finit. Fix
14954         floating point operations accuracy issues.
14955         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
14956         member in struct sigaction, so as to avoid warning for incompatible
14957         pointer types.
14958
14959 2007-04-06 Serguei Rybin  <rybin@adacore.com>
14960
14961         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
14962         switches from previously loaded tree
14963
14964 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14965
14966         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
14967         cases where a given dependency has a body or not.
14968         (Write_With_File_Names): New subprogram, common code for the two cases
14969         above.
14970
14971 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14972             Javier Miranda  <miranda@adacore.com>
14973
14974         * lib-xref.ads, lib-xref.adb: 
14975         Modify the loop that collects type references, to include interface
14976         types that the type implements. List each of these interfaces when
14977         building the entry for the type.
14978         (Generate_Definition): Initialize component Def and Typ of new entry
14979         in table Xrefs, to avoid to have these components unitialized.
14980         (Output_References): Split Is_Abstract flag into
14981         Is_Abstract_Subprogram and Is_Abstract_Type.
14982         (Generate_Reference): Add barrier to do not generate the warning
14983         associated with Ada 2005 entities with entities generated by the
14984         expander.
14985
14986 2007-04-06  Robert Dewar  <dewar@adacore.com>
14987             Arnaud Charlet  <charlet@adacore.com>
14988             Vincent Celier  <celier@adacore.com>
14989
14990         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
14991         Update 'Exception Handling Control' chapter which was outdated.
14992         Minor fix to documentation of -gnatwq
14993         Remove section "Adapting the Run Time to a New C++ Compiler" because
14994         it is now obsolete.
14995         Add passage on need of -nostart-files in some non-ada-main cases.
14996         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
14997         Update documentation about Interfacing with C++
14998         Add documentation for new gnatmake switch -p
14999         Add missing protocol part in URLs.
15000         Document -gnatyA
15001         Document pragma Compile_Time_Error
15002         Add documentation for Object_Size indicating that stand alone
15003         objects can have a larger size in some cases.
15004         Add node for GNAT.Byte_Swapping, GNAT.SHA1
15005         Update reference to the Ravenscar profile.
15006         Document pragma Unreferenced_Objects
15007
15008         * gnat-style.texi: Fix typo
15009
15010 2007-04-06  Vincent Celier  <celier@adacore.com>
15011
15012         * mlib.adb (Building_Library): Only output "building a library..." in
15013         verbose mode
15014
15015         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15016         files in verbose mode.
15017
15018         * mlib-utl.adb (Ar): Only output the first object files when not in
15019         verbose mode.
15020         (Gcc): Do not display all the object files if not in verbose mode, only
15021         the first one.
15022
15023 2007-04-06  Robert Dewar  <dewar@adacore.com>
15024
15025         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15026         it no longer destroys the contents of Name_Buffer or Name_Len and
15027         non-standard and invalid names are handled better.
15028         (Get_Decoded_Name_String): Improve performance by using
15029         Name_Has_No_Encodings flag in the name table.
15030         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15031         Used for debugging printouts.
15032
15033 2007-04-06  Robert Dewar  <dewar@adacore.com>
15034             Javier Miranda  <miranda@adacore.com>
15035             Bob Duff  <duff@adacore.com>
15036
15037         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15038         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15039         there is no need to generate always a record_definition_node in case
15040         of synchronized interface types.
15041         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15042         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15043         illegal in Ada 95, in cases where it is legal. Change the warnings to
15044         errors in other cases. Don't give the error unless the "not null"
15045         parses properly. Correct the source position at which the error occurs.
15046         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15047         P_Null_Exclusion, to suppress "not null" warnings.
15048         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15049         associated goto statements.
15050
15051         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15052         of END RECORD
15053
15054         * scans.ads (Type_Token_Location): New flag
15055
15056         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15057         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
15058         P_Null_Exclusion, to suppress "not null" warnings.
15059
15060 2007-04-06  Robert Dewar  <dewar@adacore.com>
15061             Javier Miranda  <miranda@adacore.com>
15062             Bob Duff  <duff@adacore.com>
15063             Vincent Celier  <celier@adacore.com>
15064
15065         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
15066         (Extensions_Allowed): No longer sets Ada_Version
15067         Entry for pragma Unreferenced_Objects
15068
15069         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
15070         system.tasking if pragma priority used in a procedure
15071         (Analyze_Pragma, case Warning): Handle dot warning switches
15072         (Process_Compile_Time_Warning_Or_Error): New procedure
15073         (Analyze_Pragma): Add processing for Compile_Time_Error
15074         Add support for extra arguments External_Name and Link_Name.
15075         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
15076         (Process_Import_Or_Interface): Add support for the use of pragma Import
15077         with tagged types.
15078         (Extensions_Allowed): No longer affects Ada_Version
15079         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
15080         Is_Abstract_Type. Make sure these are called only when appropriate.
15081         Add processing for pragma Unreferenced_Objects
15082
15083         * snames.h, snames.ads, snames.adb: Add entry for pragma
15084         Compile_Time_Error
15085         Add new standard name Minimum_Binder_Options for new gprmake
15086         Add new standard names for gprmake: Archive_Suffix,
15087         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
15088         Library_Support, Library_Version_Options,
15089         Shared_Library_Minimum_Options,
15090         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
15091         Change Name_Call to Name_uCall so that it cannot clash with a legal
15092         subprogram name.
15093         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
15094         Append C_Plus_Plus to convention identifiers as synonym for CPP
15095         Add new standard names Stack and Builder_Switches
15096         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
15097         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
15098         Run_Path_Option, Toolchain_Version.
15099         Entry for pragma Unreferenced_Objects
15100
15101         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
15102         switches, without repetition of "eD". Make sure that last character of
15103         -gnatep= switch is not taken as -gnat switch character.
15104         Complete rewrite of circuit for handling saving compilation options
15105         Occasioned by need to support dot switchs for -gnatw, but cleans up
15106         things in general.
15107         -gnatX does not affect Ada_Version
15108         Include -gnatyA in -gnatg style switches
15109
15110         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
15111         warnings on return objects.
15112         (Warn_On_Useless_Assignment): Exclude warnings on return objects
15113         (Set_Dot_Warning_Switch): New procedure
15114         (Check_References): Add missing case of test for
15115         Has_Pragma_Unreferenced_Objects
15116         (Output_Unreferenced_Messages): Implement effect of new pragma
15117         Unreferenced_Objects, remove special casing of limited controlled
15118         variables.
15119
15120 2007-04-06  Vincent Celier  <celier@adacore.com>
15121
15122         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
15123         the default project path, initially done during elaboration of the
15124         package.
15125         If the prefix returned by Sdefault is null, get the prefix from a call
15126         to Executable_Prefix_Path.
15127         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
15128         null.
15129
15130         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
15131         canonical directory name to open the directory from which files are
15132         retrieved.
15133         (Record_Other_Sources): Idem.
15134         (Locate_Directory): Add the possibility to create automatically missing
15135         directories when Setup_Projects is True.
15136         Call Locate_Directory so that the directory will be created when
15137         Setup_Projects is True, for object dir, library dir, library ALI dir,
15138         library source copy dir and exec dir.
15139
15140         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
15141         versions of GNAT.
15142
15143 2007-04-06  Robert Dewar  <dewar@adacore.com>
15144
15145         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
15146         Use First/Next_Component_Or_Discriminant
15147         (Analyze_Record_Representation_Clause):
15148         Use First/Next_Component_Or_Discriminant
15149         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
15150         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
15151         definition if type is unconstrained.
15152         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15153         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
15154         Is_Abstract_Subprogram and Is_Abstract_Type.
15155         (Adjust_Record_For_Reverse_Bit_Order): New procedure
15156
15157         * repinfo.adb (List_Record_Info): Use First/
15158         Next_Component_Or_Discriminant.
15159
15160         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
15161         New procedure.
15162
15163         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
15164         Include -gnatyA in default switches
15165
15166         * opt.ads: (Warn_On_Non_Local_Exception): New flag
15167         (Warn_On_Reverse_Bit_Order): New flag
15168         (Extensions_Allowed): Update the documentation.
15169         (Warn_On_Questionable_Missing_Parens): Now on by default
15170
15171         * usage.adb: Add documentation of -gnatw.x/X switches
15172         Document new -gnatyA style switch
15173         -gnatq warnings are on by default
15174
15175 2007-04-06  Ed Falis  <falis@adacore.com>
15176
15177         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
15178         full word is no longer compared twice.
15179
15180 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15181
15182         * sem_ch10.adb (Install_Limited_Context_Clauses.
15183         Expand_Limited_With_Clause): Use a new copy of selector name in the
15184         call to Make_With_Clause. This fixes the tree structure for ASIS
15185         purposes. Nothing is changed in the compiler behaviour.
15186         (Process_Body_Clauses): Handle properly use clauses whose prefix is
15187         a package renaming.
15188         (Install_Limited_With_Clauses): Do not install non-limited view when it
15189         is still incomplete.
15190
15191 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15192             Gary Dismukes  <dismukes@adacore.com>
15193
15194         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
15195         when capturing size information, instead of base type, which for a
15196         formal array type will be the unconstrained type.
15197         (Analyze_Formal_Object_Declaration): Add check for illegal default
15198         expressions for a formal in object of a limited type.
15199         (Instantiate_Object): Ditto.
15200         (Check_Formal_Package_Instance): Skip entities that are formal objects,
15201         because they were defaulted in the formal package and no check applies
15202         to them.
15203         (Check_Formal_Package_Instance): Extend conformance check to other
15204         discrete types beyond Integer.
15205         (Process_Default): Copy directly the unmatched formal. A generic copy
15206         has already been performed in Analyze_Formal_Package.
15207         (Analyze_Associations): If a formal subprogram has no match, check for
15208         partial parametrization before looking for a default, to prevent
15209         spurious errors.
15210         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
15211         not set the instantiation environment before analyzing the actuals.
15212         Fixes regression on 8515-003 with implementation of AI-133.
15213         Set_Instance_Env checks whether the generic unit is a predefined
15214         unit, in which case the instance must be analyzed with the latest Ada
15215         mode. This setting must take place after analysis of the actuals,
15216         because the actuals must be analyzed and frozen in the Ada mode extant
15217         outside of the current instantiation.
15218         (Save_Env, Restore_Env): Preserve and restore the configuration
15219         parameters so that predefined units can be compiled in the proper Ada
15220         mode.
15221         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
15222         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
15223         and Is_Abstract_Type.
15224         (Analyze_Formal_Package): For better error recovery, Add exception
15225         handler to catch Instantion_Error, which can be raised in
15226         Analyze_Associations
15227
15228 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15229             Bob Duff  <duff@adacore.com>
15230             Gary Dismukes  <dismukes@adacore.com>
15231
15232         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
15233         prefix type is a discriminated subtype of the type of the formal.
15234         (Analyze_Allocator): Collect all coextensions regardless of the context.
15235         Whether they can be allocated statically is determined in exp_ch4.
15236         (Analyze_Selected_Component): If the prefix is a limited view and the
15237         non-limited view is available, use the non-limited one.
15238         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
15239         therefore illegal), suggest a qualified expression rather than a type
15240         conversion, because a type conversion would be illegal in this context.
15241         (Anayze_Allocator): Trace recursively all nested allocators so that all
15242         coextensions are on the corresponding list for the root. Do no mark
15243         coextensions if the root allocator is within a declaration for a stack-
15244         allocated object, because the access discriminants will be allocated on
15245         the stack as well.
15246         (Analyze_Call): Remove restriction on calls to limited functions for the
15247         cases of generic actuals for formal objects, defaults for formal objects
15248         and defaults for record components.
15249         (Analyze_Allocator): Before analysis, chain coextensions on the proper
15250         element list. Their expansion is delayed until the enclosing allocator
15251         is processed and its finalization list constructed.
15252         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
15253         for an operation with the given name among the primitive operations of
15254         the corresponding record type.
15255         (Analyze_Selected_Component): If the prefix is a task type that
15256         implements an interface, and there is no entry with the given name,
15257         check whether there is another primitive operation (e.g. a function)
15258         with that name.
15259         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
15260         properly the indexing of a function call written in prefix form, where
15261         the function returns an array type, and all parameters of the function
15262         except the first have defaults.
15263         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
15264         the original operands, rather than relocating them, for efficiency and
15265         to work properly when an operand is overloaded.
15266         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
15267         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
15268         (Analyze_Selected_Component): If the prefix is a private extension, only
15269         scan the visible components, not those of the full view.
15270         (Try_Primitive_Operation): If the operation is a procedure, collect all
15271         possible interpretations, as for a function, because in the presence of
15272         classwide parameters several primitive operations of the type can match
15273         the given arguments.
15274
15275 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15276             Robert Dewar  <dewar@adacore.com>
15277
15278         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
15279         tag-indeterminate call to an abstract function, when the left-hand side
15280         is not classwide.
15281         (Analyze_Loop_Statement): Improve detection of infinite loops
15282
15283 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15284             Thomas Quinot  <quinot@adacore.com>
15285
15286         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
15287         out of Analyze_Package_Declaration, because processing must be applied
15288         to package bodies as well, for deferred constants completed by pragmas.
15289         (Analyze_Package_Declaration): When the package declaration being
15290         analyzed does not require an explicit body, call Check_Completion.
15291         (May_Need_Implicit_Body): An implicit body is required when a package
15292         spec contains the declaration of a remote access-to-classwide type.
15293         (Analyze_Package_Body): If the package contains RACWs, append the
15294         pending subprogram bodies generated by exp_dist at the end of the body.
15295         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
15296         Is_Abstract_Subprogram and Is_Abstract_Type.
15297         (Preserve_Full_Attributes): The full entity list is not an attribute
15298         that must be preserved from full to partial view.
15299
15300         * sem_dist.adb (Add_RAS_Dereference_TSS):
15301         Change primitive name to _Call so it cannot clash with any legal
15302         identifier, and be special-cased in Check_Completion.
15303         Mark the full view of the designated type for the RACW associated with
15304         a RAS as Comes_From_Source to get proper view switching when installing
15305         private declarations.
15306         Provite a placeholder nested package body along with the nested spec
15307         to have a place for Append_RACW_Bodies to generate the calling stubs
15308         and stream attributes.
15309
15310 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15311             Robert Dewar  <dewar@adacore.com>
15312
15313         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
15314         that is a limited view, check the non-limited view if available.
15315         (Undefined): Refine error message for missing with of Text_IO
15316         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
15317         to distinguish real missing with cases.
15318         Fix format of all missing with messages
15319         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
15320         renaming as body when renamed entity is abstract.
15321
15322 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15323             Javier Miranda  <miranda@adacore.com>
15324
15325         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
15326         predicate recursive, to handle complex expressions on literals whose
15327         spurious ambiguity comes from the abstract interpretation of some
15328         subexpression.
15329         (Interface_Present_In_Ancestor): Add support to concurrent record
15330         types.
15331         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
15332         Is_Abstract_Subprogram and Is_Abstract_Type.
15333
15334 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15335             Javier Miranda  <miranda@adacore.com>
15336
15337         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
15338         dereference of a local object R created as a reference to another
15339         object O, use the access level of O.
15340         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
15341         rather than local Same_Formal_Type, to check whether protected operation
15342         overrides an inherited one.
15343         (Same_Formal_Type): New predicate, used when matching signatures of
15344         overriding synchronized operations, to handle the case when a formal
15345         has a type that is a generic actual.
15346         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
15347         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
15348         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
15349         syntactic ambiguities involving indexing of function calls that return
15350         arrays.
15351         (Abstract_Interface_List): New subprogram that returns the list of
15352         abstract interfaces associated with a concurrent type or a
15353         concurrent record type.
15354         (Interface_Present_In_Parent): New subprogram used to check if a
15355         given type or some of its parents implement a given interface.
15356         (Collect_Abstract_Interfaces): Add support for concurrent types
15357         with interface types.
15358         (Has_Abstract_Interfaces): Add support for concurrent types with
15359         interface types.
15360         (Is_Parent): New subprogram that determines whether E1 is a parent
15361         of E2. For a concurrent type its parent is the first element of its
15362         list of interface types; for other types this function provides the
15363         same result than Is_Ancestor.
15364         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
15365         (Collect_Synchronized_Interfaces): Removed because the subprogram
15366         Collect_Abstract_Interfaces provides this functionality.
15367         (Collect_Abstract_Interfaces): Minor update to give support to
15368         concurrent types and thus avoid undesired code duplication.
15369         (Get_Subprogram_Entity): Handle entry calls.
15370         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
15371         entry calls.
15372         (Enter_Name): Do not give -gnatwh hiding warning for record component
15373         entities, they never result in hiding.
15374
15375 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
15376             Robert Dewar  <dewar@adacore.com>
15377
15378         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
15379         to chain nested components that are allocators for access discriminants
15380         of the enclosing object.
15381         Add N_Push and N_Pop nodes
15382         New field Exception_Label added
15383         (Local_Raise_Statements): New field in N_Exception_Handler_Node
15384         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
15385         (Is_Coextension): New flag for allocators, to mark allocators that
15386         correspond to access discriminants of dynamically allocated objects.
15387         (N_Block_Statement): Document the fact that the corresponding entity
15388         can be an E_Return_Statement.
15389         (Is_Coextension): New flag for allocators.
15390         Remove all code for DSP option
15391
15392         * sprint.ads, sprint.adb: Display basic information for class_wide
15393         subtypes. Add handling of N_Push and N_Pop nodes
15394
15395 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
15396
15397         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
15398         before propagating exception.
15399
15400 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15401
15402         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
15403         an address always within the call instruction from a return address.
15404
15405 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15406             Eric Botcazou  <botcazou@adacore.com>
15407
15408         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
15409         expression with a COMPOUND_EXPR including the call instead of emitting
15410         the call directly here.
15411         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
15412         high bound is constant and the slice is empty.  Tidy.
15413         (tree_transform, case N_Op_Not): Handle properly the case where the
15414         operation applies to a private type whose full view is a modular type.
15415         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
15416         Address_Clause, use the associated Expression as the GNAT tree
15417         representing the choice value to ensure the corresponding GCC tree is
15418         of the proper kind.
15419         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
15420         instead of just the operands, as the base GCC stabilize_reference does.
15421         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
15422         requested; otherwise fail.
15423         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
15424
15425 2007-04-06  Thomas Quinot  <quinot@adacore.com>
15426
15427         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
15428         implementation of UI_Div.
15429         (UI_Div): Reimplement as a call to UI_Div_Rem.
15430         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
15431         remainder, avoiding the cost of a multiplication and a subtraction.
15432         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
15433         provides both quotient and remainder in a single computation.
15434         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
15435         functions for uint.
15436         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
15437         is undefined if the given n is not inversible.
15438
15439 2007-04-06  Olivier Hainque  <hainque@adacore.com>
15440
15441         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
15442         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
15443         opcodes.
15444
15445 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15446             Olivier Hainque  <hainque@adacore.com>
15447
15448         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
15449         when updating the contents of the old pointer to an unconstrained array.
15450         (end_subprog_body): Set error_gnat_node to Empty.
15451         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
15452         (unchecked_convert): For subtype to base type conversions, require that
15453         the source be a subtype if it is an integer type.
15454         (builtin_decls): New global, vector of available builtin functions.
15455         (gnat_pushdecl): Add global builtin function declaration nodes to the
15456         builtin_decls list.
15457         (gnat_install_builtins): Adjust comments.
15458         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
15459         calling gnat_pushdecl, so that it knows when it handed a builtin
15460         function declaration node.
15461         (builtin_decl_for): Search the builtin_decls list.
15462
15463 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
15464
15465         * s-stchop-vxworks.adb: 
15466         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
15467
15468 2007-04-06  Robert Dewar  <dewar@adacore.com>
15469             Arnaud Charlet  <charlet@adacore.com>
15470
15471         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
15472
15473         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
15474         of files
15475         Add mention of -Sev (set initialize_scalars option from environment
15476         variable at run time) in gnatbind usage message.
15477
15478         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
15479
15480         * fname-uf.ads: Minor comment fix
15481
15482         * osint.ads: Change pragma Elaborate to Elaborate_All
15483
15484         * par-load.adb: Add documentation.
15485
15486         * sem_cat.ads, sem_cat.adb: Minor code reorganization
15487
15488         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
15489
15490         * s-secsta.ads: Extra comments
15491
15492         * s-soflin.ads: Minor comment fixes
15493
15494         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
15495
15496         * s-wchcon.ads: Minor comment addition
15497
15498         * treepr.adb: Minor change in message
15499         (Print_Name,Print_Node): Make these debug printouts more robust: print
15500         "no such..." instead of crashing on bad input.
15501
15502 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
15503
15504         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
15505         instead of gnat_signed_or_unsigned_type.
15506         * utils.c (gnat_signed_or_unsigned_type): Remove.
15507         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
15508         * gigi.h (gnat_signed_or_unsigned_type): Remove
15509
15510 2007-03-09  Roger Sayle  <roger@eyesopen.com>
15511
15512         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
15513         fold with the result of buildN.
15514         * decl.c (gnat_to_gnu_entity): Likewise.
15515         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
15516         * utils.c (finish_record_type, merge_sizes, max_size, convert):
15517         Likewise.
15518         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
15519         nonbinary_modular_operation, build_binary_op, build_unary_op,
15520         build_cond_expr): Likewise.
15521
15522         * utils.c (convert): Use fold_build1 when casting values to void.
15523         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
15524         fold_convert instead of convert when appropriate.
15525
15526 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
15527
15528         * Make-lang.in: Add install-pdf target as copied from
15529         automake v1.10 rules.
15530
15531 2007-02-28  Andreas Schwab  <schwab@suse.de>
15532
15533         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
15534         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
15535         (doc/gnat-style.info): Likewise.
15536
15537 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
15538
15539         * gnat-style.texi: Standardize title page.
15540         * gnat_rm.texi: Likewise.
15541         * gnat_ugn.texi: Likewise.
15542
15543 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
15544
15545         * decl.c (annotate_value): Adjust for refactoring of tree_map
15546         hierarchy.
15547
15548 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
15549
15550         * decl.c (annotate_value): Adjust for refactoring of tree_map
15551         hierarchy.
15552
15553 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
15554
15555         PR ada/18819
15556         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
15557         untagged derived type, add hidden components to keep discriminant
15558         layout consistent, when a given discriminant of the derived type
15559         constraints several discriminants of the parent type.
15560
15561 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
15562             Sandra Loosemore  <sandra@codesourcery.com>
15563
15564         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
15565         build the call expression.
15566         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
15567         * utils.c (max_size) <tcc_exceptional>: Delete.
15568         <tcc_vl_exp>: New case.
15569         <tcc_expression>: Delete CALL_EXPR subcase.
15570         (build_global_cdtor): Use build_call_nary instead of build3.
15571         * utils2.c (build_call_1_expr): Likewise.
15572         (build_call_2_expr): Likewise.
15573         (build_call_0_expr): Likewise.
15574         (build_call_alloc_dealloc): Likewise.
15575
15576 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15577
15578         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
15579         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
15580         and _Unwind_SWord with _sleb128_t.
15581
15582 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
15583
15584         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
15585         * decl.c: Include gt-ada-decl.h.
15586         (annotate_value_cache): New.
15587         (annotate_value): Use it instead of TREE_COMPLEXITY.
15588
15589 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
15590
15591         * misc.c, utils2.c: Fix comment typos.
15592
15593 2007-01-24  Roger Sayle  <roger@eyesopen.com>
15594
15595         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
15596         TREE_CONSTANT_OVERFLOW.
15597         (allocatable_size_p, annotate_value): Likewise.
15598         * trans.c (gnat_to_gnu): Likewise.
15599         * utils.c (unchecked_convert): Likewise.
15600         * utils2.c (build_simple_component_ref): Likewise.
15601
15602 2007-01-23  Richard Guenther  <rguenther@suse.de>
15603
15604         PR bootstrap/30541
15605         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
15606         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
15607         (gnatboot3): Likewise.
15608         (GNATBIND): Do not define.
15609         * Makefile.in (GNATBIND): Do not define.
15610
15611 2007-01-08  Richard Guenther  <rguenther@suse.de>
15612
15613         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
15614         * trans.c (gnat_to_gnu): Likewise.
15615
15616 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
15617
15618         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
15619         * adaint.c: Likewise.
15620
15621 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
15622
15623         Merge from gimple-tuples-branch:
15624         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
15625
15626         * ada-tree.h (lang_tree_node): Handle gimple tuples.
15627         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
15628         GIMPLE_MODIFY_STMT.
15629
15630 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
15631
15632         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
15633         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
15634         Fix typos.
15635
15636 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
15637
15638         PR ada/27936
15639         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
15640         if the initializer takes into account the padding.
15641
15642 2006-11-11  Richard Guenther  <rguenther@suse.de>
15643
15644         * trans.c (maybe_stabilize_reference): Remove handling of
15645         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
15646
15647 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
15648
15649         PR ada/29707
15650         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
15651         (To_Target_Priority): New function.
15652
15653 2006-10-31  Robert Dewar  <dewar@adacore.com>
15654
15655         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
15656         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
15657         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
15658         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
15659         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
15660         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
15661         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
15662         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
15663         a-szbzha.adb: Minor reformatting. Fix header.
15664
15665         * a-numaux-x86.adb: Add parentheses for use of unary minus
15666         * a-ngcefu.adb: Supply missing parentheses for unary minus
15667         * a-ngcoty.adb: Add parens for use of unary minus
15668         * a-ngelfu.adb: Add missing parens for unary minus
15669         * a-tifiio.adb: Add parentheses for uses of unary minus
15670
15671 2006-10-31  Robert Dewar  <dewar@adacore.com>
15672             Bob Duff  <duff@adacore.com>
15673             Ed Schonberg  <schonberg@adacore.com>
15674
15675         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
15676         with multiplying operator.
15677         (Expected_Type_Is_Any_Real): New function to determine from the Parent
15678         pointer whether the context expects "any real type".
15679         (Resolve_Arithmetic_Op): Do not give an error on calls to the
15680         universal_fixed "*" and "/" operators when they are used in a context
15681         that expects any real type. Also set the type of the node to
15682         Universal_Real in this case, because downstream processing requires it
15683         (mainly static expression evaluation).
15684         Reword some continuation messages
15685         Add some \\ sequences to continuation messages
15686         (Resolve_Call): Refine infinite recursion case. The test has been
15687         sharpened to eliminate some false positives.
15688         Check for Current_Task usage now includes entry barrier, and is now a
15689         warning, not an error.
15690         (Resolve): If the call is ambiguous, indicate whether an interpretation
15691         is an inherited operation.
15692         (Check_Aggr): When resolving aggregates, skip associations with a box,
15693         which are priori correct, and will be replaced by an actual default
15694         expression in the course of expansion.
15695         (Resolve_Type_Conversion): Add missing support for conversion from
15696         a class-wide interface to a tagged type. Minor code cleanup.
15697         (Valid_Tagged_Converion): Add support for abstact interface type
15698         conversions.
15699         (Resolve_Selected_Component): Call Generate_Reference here rather than
15700         during analysis, and use May_Be_Lvalue to distinguish read/write.
15701         (Valid_Array_Conversion): New procedure, abstracted from
15702         Valid_Conversion, to incorporate accessibility checks for arrays of
15703         anonymous access types.
15704         (Valid_Conversion): For a conversion to a numeric type occurring in an
15705         instance or inlined body, no need to check that the operand type is
15706         numeric, since this has been checked during analysis of the template.
15707         Remove legacy test for scope name Unchecked_Conversion.
15708
15709         * sem_res.ads: Minor reformatting
15710
15711         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
15712         (PE_Current_Task_In_Entry_Body): New exception code
15713         (SE_Restriction_Violation): Removed, not used
15714
15715         * a-except.ads:  Update comments.
15716
15717         * types.h, types.ads: Add definition for Validity_Check
15718         (PE_Current_Task_In_Entry_Body): New exception code
15719         (SE_Restriction_Violation): Removed, not used
15720
15721 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15722
15723         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
15724         error status.
15725
15726 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15727             Jose Ruiz  <ruiz@adacore.com>
15728
15729         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
15730         part of Ada.Calendar: all subprogram raise Unimplemented.
15731         (Split_W_Offset): Temp function body, raising Unimplemented
15732
15733         * a-calend.ads, a-calend-vms.ads: 
15734         Add imported variable Invalid_TZ_Offset used to designate targets unable
15735         to support time zones.
15736         (Unimplemented): Temporary function raised by the body of new
15737         subprograms below.
15738         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
15739         unit provides handling of leap seconds and is used by the new Ada 2005
15740         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
15741         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
15742         version returns an extra value which is the offset to UTC.
15743
15744         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
15745         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
15746         (Split_W_Offset): New function body.
15747         (Time_Of): When a date is close to UNIX epoch, compute the time for
15748         that date plus one day (that amount is later substracted after
15749         executing mktime) so there are no problems with time zone adjustments.
15750
15751         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
15752
15753         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
15754         a-catizo.ads, a-catizo.adb: New files.
15755
15756         * impunit.adb: Add new Ada 2005 entries
15757
15758         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
15759         Rename all occurences of "__gnat_localtime_r" to
15760         "__gnat_localtime_tzoff".
15761         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
15762         zone data and calculate the GMT offset.
15763         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
15764         Use the field "tm_gmtoff" to extract the GMT offset.
15765         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
15766         the external variable "timezone" to calculate the GMT offset.
15767
15768 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15769             Jose Ruiz  <ruiz@adacore.com>
15770
15771         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
15772         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
15773         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
15774         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
15775         System.Any_Priority to a POSIX priority on the target.
15776
15777         * system-linux-ia64.ads: 
15778         Extend range of Priority types on Linux to use the whole range made
15779         available by the system.
15780
15781         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
15782         function maps from System.Any_Priority to a POSIX priority on the
15783         target.
15784         (PTHREAD_PRIO_PROTECT): Set real value.
15785         (PTHREAD_PRIO_INHERIT): Now a function.
15786         (SIGCPUFAIL): New signal.
15787         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
15788         are documented as reserved by the OS.
15789
15790         * system-aix.ads: Use the full range of priorities provided by the
15791         system on AIX.
15792
15793         * s-taprop-posix.adb: Call new function To_Target_Priority.
15794         (Set_Priority): Take into account Task_Dispatching_Policy and
15795         Priority_Specific_Dispatching pragmas when determining if Round Robin
15796         must be used for scheduling the task.
15797
15798         * system-linux-x86_64.ads, system-linux-x86.ads, 
15799         system-linux-ppc.ads: Extend range of Priority types on Linux to use
15800         the whole range made available by the system.
15801
15802         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
15803         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
15804         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
15805         when deallocating the TCB in order to avoid potential references to
15806         deallocated data.
15807         (Set_Priority): Take into account Task_Dispatching_Policy and
15808         Priority_Specific_Dispatching pragmas when determining if Round Robin
15809         or FIFO within priorities must be used for scheduling the task.
15810
15811         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
15812         the Thread field (to be used internally by the run-time system) and the
15813         kernel-level task id in the LWP field (to be used by the debugger).
15814         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
15815         instance, and propagate the current task options to the spawned task.
15816         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
15817         (Initialize): Set Round Robin dispatching when the corresponding pragma
15818         is in effect.
15819
15820 2006-10-31  Robert Dewar  <dewar@adacore.com>
15821
15822         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
15823         system-linux-hppa.ads, system-hpux-ia64.ads, 
15824         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
15825         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
15826         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
15827         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
15828         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
15829         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
15830         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
15831         Default_Bit_Order) to kill constant condition warnings for references
15832         to this switch.
15833
15834 2006-10-31  Vincent Celier  <celier@adacore.com>
15835             Eric Botcazou  <ebotcazou@adacore.com>
15836
15837         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
15838         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
15839         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
15840         Ext_To, when building the library file name
15841
15842         * mlib-tgt-vxworks.adb: ditto.
15843         (Get_Target_Suffix): Add support for x86 targets.
15844
15845         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
15846
15847         * mlib-tgt-darwin.adb: 
15848         Use Append_To, instead of Ext_To, when building the library file name
15849         (Flat_Namespace): New global variable.
15850         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
15851         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
15852         (Link_Shared_Libgcc): Delete.
15853         (Build_Dynamic_Library): Adjust for above changes.
15854         Use Opt package.
15855         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
15856
15857 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
15858
15859         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
15860         (Initialize): Add type conversions required by above change.
15861
15862 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
15863
15864         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
15865         (getpid): New body for this function that uses the underlying taskIdSelf
15866         function for VxWorks 5 and VxWorks 6 in kernel mode.
15867         (unsigned_int): New type, modular to allow logical bit operations.
15868         (taskOptionsGet): New imported function.
15869
15870         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
15871         field to be compliant with the type used by the corresponding operating
15872         system primitive.
15873
15874 2006-10-31  Pascal Obry  <obry@adacore.com>
15875             Eric Botcazou  <ebotcazou@adacore.com>
15876             Vincent Celier  <celier@adacore.com>
15877
15878         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
15879         ASCII version of the registry API. This is needed as the GNAT runtime
15880         is now UNICODE by default.
15881         Include version.h.
15882         (get_gcc_version): Do not hardcode the return value.
15883         (__gnat_file_time_name): On Windows properly set the default returned
15884         value to -1 which corresponds to Invalid_Time.
15885         (__gnat_fopen): New routine. A simple wrapper on all plateforms
15886          except on Windows where it does conversion for unicode support.
15887         (__gnat_freopen): Idem.
15888         (__gnat_locate_exec_on_path): If environment variable PATH does not
15889         exist, return a NULL pointer
15890
15891         * adaint.h: (__gnat_fopen): Declare.
15892         (__gnat_freopen): Likewise.
15893
15894         * mingw32.h (_tfreopen): Define this macro here for older MingW
15895         version.
15896         Activate the unicode support on platforms using a MingW runtime
15897         version 3.9 or newer.
15898
15899         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
15900         This is needed for proper unicode support on Windows.
15901         (freopen): Idem.
15902
15903 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
15904             Nicolas Setton  <setton@adacore.com>
15905             Olivier Hainque  <hainque@adacore.com>
15906             Gary Dismukes  <dismukes@adacore.com>
15907
15908         * gigi.h: (tree_code_for_record_type): Declare.
15909         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
15910         (get_global_renaming_pointers): Rename to
15911         invalidate_global_renaming_pointers.
15912         (static_ctors): Delete.
15913         (static_dtors): Likewise.
15914         (gnat_write_global_declarations): Declare.
15915         (create_var_decl): Adjust descriptive comment to indicate that the
15916         subprogram may return a CONST_DECL node.
15917         (create_true_var_decl): Declare new function, similar to
15918         create_var_decl but forcing the creation of a VAR_DECL node.
15919         (get_global_renaming_pointers): Declare.
15920         (add_global_renaming_pointer): Likewise.
15921
15922         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
15923
15924         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
15925         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
15926         processing.
15927         (gnat_to_gnu_entity): Remove From_With_Type from computation for
15928         imported_p.
15929         <E_Access_Type>: Use the Non_Limited_View as the full view of the
15930         designated type if the pointer comes from a limited_with clause.  Make
15931         incomplete designated type if it is in the main unit and has a freeze
15932         node.
15933         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
15934         Underlying_Full_View similarly.  Return earlier if the full view already
15935         has an associated tree.
15936         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
15937         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
15938         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
15939         reference type built for objects with an address clause.
15940         Use create_true_var_decl with const_flag set for
15941         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
15942         TREE_READONLY set.
15943         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
15944         for Character and Wide_Character types. This info is read by the
15945         dwarf-2 writer, and is needed to be able to use the command "ptype
15946         character" in the debugger.
15947         (gnat_to_gnu_entity): When generating a type representing
15948         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
15949         so that debug writers can distinguish it from ordinary integers.
15950         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
15951         addition to TREE_READONLY to assert the constantness of variables for
15952         elaboration purposes.
15953         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
15954         parameters to call new Einfo function First_Formal_With_Extras.
15955         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
15956         protected type with its corresponding discriminant, to obtain a usable
15957         declaration
15958         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
15959         for a multiple elaboration of the "equivalent" type.
15960         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
15961         into record_global_renaming_pointer.
15962         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
15963         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
15964         <E_Array_Subtype>: Likewise.
15965         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
15966         incomplete subtypes and incomplete subtypes of incomplete types visible
15967         through a limited with clause.
15968         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
15969         the base index type for the maximum size of the array only if they are
15970         constant.
15971         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
15972         expression into a SAVE_EXPR if stabilization failed.
15973
15974         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
15975         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
15976         by lower level compilation passes.
15977         (gnat_genericize): New function, lowering a function body to GENERIC.
15978         Turn the type of RESULT_DECL into a real reference type if the decl
15979         has been marked DECL_BY_REFERENCE, and adjust references to the latter
15980         accordingly.
15981         (gnat_genericize_r): New function. Tree walking callback for
15982         gnat_genericize.
15983         (convert_from_reference, is_byref_result): New functions. Helpers for
15984         gnat_genericize_r.
15985         (create_type_decl): Call gnat_pushdecl before calling
15986         rest_of_decl_compilation, to make sure that field TYPE_NAME of
15987         type_decl is properly set before calling the debug information writers.
15988         (write_record_type_debug_info): The heuristics which compute the
15989         alignment of a field in a variant record might not be accurate. Add a
15990         safety test to make sure no alignment is set to a smaller value than
15991         the alignment of the field type.
15992         (make_dummy_type): Use the Non_Limited_View as the underlying type if
15993         the type comes from a limited_with clause. Do not loop on the full view.
15994         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
15995         (dummy_node_table): New global variable, moved from decl.c.
15996         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
15997         (save_gnu_tree): Use above macros.
15998         (get_gnu_tree): Likewise.
15999         (present_gnu_tree): Likewise.
16000         (init_dummy_type): New function, moved from decl.c. Use above macros.
16001         (make_dummy_type): Likewise.
16002         (tree_code_for_record_type): New function extracted from make_dummy_type
16003         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16004         (static_ctors): Change it to a vector, make static.
16005         (static_dtors): Likewise.
16006         (end_subprog_body): Adjust for above change.
16007         (build_global_cdtor): Moved from trans.c.
16008         (gnat_write_global_declarations): Emit global constructor and
16009         destructor, and call cgraph_optimize before emitting debug info for
16010         global declarations.
16011         (global_decls): New global variable.
16012         (gnat_pushdecl): Store the global declarations in global_decls, for
16013         later use.
16014         (gnat_write_global_declarations): Emit debug information for global
16015          declarations.
16016         (create_var_decl_1): Former create_var_decl, with an extra argument to
16017          state whether the creation of a CONST_DECL is allowed.
16018         (create_var_decl): Behavior unchanged. Now a wrapper around
16019         create_var_decl_1 allowing CONST_DECL creation.
16020         (create_true_var_decl): New function, similar to create_var_decl but
16021         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16022         (create_field_decl): Do not always mark the field as addressable
16023         if its type is an aggregate.
16024         (global_renaming_pointers): New static variable.
16025         (add_global_renaming_pointer): New function.
16026         (get_global_renaming_pointers): Likewise.
16027
16028         * misc.c (gnat_dwarf_name): New function.
16029         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16030         (gnat_post_options): Add comment about structural alias analysis.
16031         (gnat_parse_file): Do not call cgraph_optimize here.
16032         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16033
16034         * trans.c (process_freeze_entity): Don't abort if we already have a
16035         non dummy GCC tree for a Concurrent_Record_Type, as it might
16036         legitimately have been elaborated while processing the associated
16037         Concurrent_Type prior to this explicit freeze node.
16038         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16039         exception handler volatile if it is of variable size.
16040         (process_type): Remove bypass for types coming from a limited_with
16041         clause.
16042         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16043         actual, convert the corresponding gnu_actual to the real destination
16044         type when necessary.
16045         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16046         originally TREE_READONLY but whose elaboration cannot be performed
16047         statically.
16048         Part of fix for F504-021.
16049         (tree_transform, subprogram cases): Change loops on formal parameters to
16050         call new Einfo function First_Formal_With_Extras.
16051         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16052         stemming from type conversion for the lhs.
16053         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16054         number of bits per unit for components of records.
16055         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16056         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16057         with At_End_Proc after the SJLJ EH cleanup.
16058         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
16059         compilation unit.
16060         (elaborate_all_entities): Do not retest type_annotate_only.
16061         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
16062         result type of an abstract subprogram, which may be an itype associated
16063         with an anonymous access result (related to AI-318-02).
16064         (build_global_cdtor): Move to utils.c.
16065         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
16066         this choice is not a null tree nor an integer constant.
16067         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
16068         on the body of elaboration routines instead of mark_unvisited.
16069         (add_stmt): Do not mark the tree.
16070         (add_decl_expr): Tweak comment.
16071         (mark_unvisited): Delete.
16072         (unshare_save_expr): New static function.
16073         (call_to_gnu): Issue an error when making a temporary around a
16074         procedure call because of non-addressable actual parameter if the
16075         type of the formal is by_reference.
16076         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
16077         after building the elaboration routine.
16078
16079 2006-10-31  Bob Duff  <duff@adacore.com>
16080
16081         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
16082         as finalization-started, so we can raise Program_Error on 'new'.
16083
16084         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
16085         collection has already started.
16086
16087         * s-finimp.ads (Collection_Finalization_Started): Added new special
16088         flag value for indicating that a collection's finalization has started.
16089
16090         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
16091         create a task whose master has already waited for dependent tasks.
16092
16093 2006-10-31  Robert Dewar  <dewar@adacore.com>
16094
16095         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
16096
16097         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
16098         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
16099         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
16100         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
16101         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
16102         a-except-2005.ads: Add pragma Preelaborable_Warning
16103
16104 2006-10-31  Robert Dewar  <dewar@adacore.com>
16105             Jose Ruiz  <ruiz@adacore.com>
16106
16107         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
16108
16109         * ali.adb (Get_Name): Properly handle scanning of wide character names
16110         encoded with brackets notation.
16111         (Known_ALI_Lines): Add S lines to this list.
16112         (Scan_ALI): Acquire S (priority specific dispatching) lines.
16113         New flag Elaborate_All_Desirable in unit table
16114
16115         * ali.ads (Priority_Specific_Dispatching): Add this range of
16116         identifiers to be used for Priority_Specific_Dispatching table entries.
16117         (ALIs_Record): Add First_Specific_Dispatching and
16118         Last_Specific_Dispatching that point to the first and last entries
16119         respectively in the priority specific dispatching table for this unit.
16120         (Specific_Dispatching): Add this table for storing each S (priority
16121         specific dispatching) line encountered in the input ALI file.
16122         New flag Elaborate_All_Desirable in unit table
16123
16124         * bcheck.adb: (Check_Configuration_Consistency): Add call to
16125         Check_Consistent_Dispatching_Policy.
16126         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
16127         verifying that the use of Priority_Specific_Dispatching,
16128         Task_Dispatching_Policy, and Locking_Policy is consistent across the
16129         partition.
16130
16131         * bindgen.adb: (Public_Version_Warning): function removed.
16132         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
16133         required information from ALI files in order to initialize the table
16134         containing the specific dispatching policy.
16135         (Gen_Adainit_Ada): Generate the variables required for priority specific
16136         dispatching entries (__gl_priority_specific_dispatching and
16137         __gl_num_specific_dispatching).
16138         (Gen_Adainit_C): Generate the variables required for priority specific
16139         dispatching entries (__gl_priority_specific_dispatching and
16140         __gl_num_specific_dispatching).
16141         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
16142         pragma entries.
16143         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
16144         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
16145         (Tab_To): Removed.
16146         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
16147         a call to gnat_set_globals.
16148         Generate a string containing settings from
16149         Priority_Specific_Dispatching pragma entries.
16150         (Gen_Object_Files_Options): Do not include the runtime libraries when
16151         pragma No_Run_Time is specified.
16152
16153         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
16154         consistency with s-intman-posix.adb.
16155         (__gnat_error_handler, case FreeBSD): Account for the fact that the
16156         handler is installed with SA_SIGINFO.
16157         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
16158         FreeBSD ZCX support, copied from Linux version.
16159         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
16160         sigfillset, and sigemptyset so the routines defined by MaRTE.
16161         (__gl_priority_specific_dispatching): Add this variable that stores the
16162         string containing priority specific dispatching policies in the
16163         partition.
16164         (__gl_num_specific_dispatching): Add this variable that indicates the
16165         highest priority for which a priority specific dispatching pragma
16166         applies.
16167         (__gnat_get_specific_dispatching): Add this routine that returns the
16168         priority specific dispatching policy, as set by a
16169         Priority_Specific_Dispatching pragma appearing anywhere in the current
16170         partition. The input argument is the priority number, and the result
16171         is the upper case first character of the policy name.
16172         (__gnat_set_globals): Now a dummy function.
16173         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
16174         mechargs instead of sigargs, as the latter can be retrieved from the
16175         former and sigargs is not what we want on ia64.
16176         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
16177         mechargs argument.
16178         (__gnat_adjust_context_for_raise, ia64-vms): New function.
16179         (tasking_error): Remove unused symbol.
16180         (_abort_signal): Move this symbol to the IRIX specific part since this
16181         is the only target that uses this definition.
16182         (Check_Abort_Status): Move this symbol to the IRIX specific part since
16183         this is the only target that uses this definition.
16184         (Lock_Task): Remove unused symbol.
16185         (Unlock_Task): Remove unused symbol.
16186
16187         * lib-writ.adb (Write_ALI): Output new S lines for
16188         Priority_Specific_Dispatching pragmas.
16189         Implement new flag BD for elaborate body desirable
16190
16191         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
16192         (Specific_Dispatching): Add this table for storing the entries
16193         corresponding to Priority_Specific_Dispatching pragmas.
16194         Document new BD flag for elaborate body desirable
16195
16196         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
16197         of known pragmas.
16198
16199 2006-10-31  Javier Miranda  <miranda@adacore.com>
16200
16201         * a-tags.ads, a-tags.adb: 
16202         (Predefined_DT): New function that improves readability of the code.
16203         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
16204         Inherit_DT): Use the new function Predefined_DT to improve code
16205         readability.
16206         (Register_Interface_Tag): Update assertion.
16207         (Set_Interface_Table): Update assertion.
16208         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
16209         determining progenitor interfaces in Tags.
16210         (Inherit_CPP_DT): New subprogram.
16211
16212         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
16213         analysis of the thunk code.
16214         (Expand_Interface_Conversion): Handle run-time conversion of
16215         access to class wide types.
16216         (Expand_Dispatching_Call): When generating the profile for the
16217         subprogram itype for a dispatching operation, properly terminate the
16218         formal parameters chaind list (set the Next_Entity of the last formal
16219         to Empty).
16220         (Collect_All_Interfaces): Removed. This routine has been moved to
16221         sem_util and renamed as Collect_All_Abstract_Interfaces.
16222         (Set_All_DT_Position): Hidden entities associated with abstract
16223         interface primitives are not taken into account in the check for
16224         3.9.3(10); this check is done with the aliased entity.
16225         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
16226         interfacing with CPP by default.
16227         (Expand_Interface_Conversion): Add missing support for static conversion
16228         from an interface to a tagged type.
16229         (Collect_All_Interfaces): Add new out formal containing the list of
16230         abstract interface types to cleanup the subprogram Make_DT.
16231         (Make_DT): Update the code to generate the table of interfaces in case
16232         of abstract interface types.
16233         (Is_Predefined_Dispatching_Alias): New function that returns true if
16234         a primitive is not a predefined dispatching primitive but it is an
16235         alias of a predefined dispatching primitive.
16236         (Make_DT): If the ancestor of the type is a CPP_Class and we are
16237         compiling under full ABI compatibility mode we avoid the generation of
16238         calls to run-time services that fill the dispatch tables because under
16239         this mode we currently inherit the dispatch tables in the IP subprogram.
16240         (Write_DT): Emit an "is null" indication for a null procedure primitive.
16241         (Expand_Interface_Conversion): Use an address as the type of the formal
16242         of the internally built function that handles the case in which the
16243         target type is an access type.
16244
16245 2006-10-31  Robert Dewar  <dewar@adacore.com>
16246
16247         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
16248
16249 2006-10-31  Robert Dewar  <dewar@adacore.com>
16250
16251         * bindusg.ads, bindusg.adb:
16252         Change to package and rename procedure as Display, which
16253         now ensures that it only outputs usage information once.
16254
16255 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16256
16257         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
16258         using RTPs.
16259
16260         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
16261         when using RTPs.
16262
16263 2006-10-31  Robert Dewar  <dewar@adacore.com>
16264             Ed Schonberg  <schonberg@adacore.com>
16265
16266         * treepr.adb: Use new subtype N_Membership_Test
16267
16268         * checks.ads, checks.adb: Add definition for Validity_Check
16269         (Range_Or_Validity_Checks_Suppressed): New function
16270         (Ensure_Valid): Test Validity_Check suppressed
16271         (Insert_Valid_Check): Test Validity_Check suppressed
16272         (Insert_Valid_Check): Preserve Do_Range_Check flag
16273         (Validity_Check_Range): New procedure
16274         (Expr_Known_Valid): Result of membership test is always valid
16275         (Selected_Range_Checks): Range checks cannot be applied to discriminants
16276         by themselves. Disabling those checks must also be done for task types,
16277         where discriminants may be used for the bounds of entry families.
16278         (Apply_Address_Clause_Check): Remove side-effects if address expression
16279         is non-static and is not the name of a declared constant.
16280         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
16281         Code cleanup and new error messages.
16282         (Enable_Range_Check): Test for some cases of suppressed checks
16283         (Generate_Index_Checks): Suppress index checks if index checks are
16284         suppressed for array object or array type.
16285         (Apply_Selected_Length_Checks): Give warning for compile-time detected
16286         length check failure, even if checks are off.
16287         (Ensure_Valid): Do not generate a check on an indexed component whose
16288         prefix is a packed boolean array.
16289         * checks.adb: (Alignment_Checks_Suppressed): New function
16290         (Apply_Address_Clause_Check): New procedure, this is a completely
16291         rewritten replacement for Apply_Alignment_Check
16292         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
16293         we request a discriminal value only in case of discriminants.
16294         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
16295         assignments where the target subtype is unconstrained and the target
16296         object is a parameter or dereference (other aliased cases are known
16297         to be unconstrained).
16298
16299 2006-10-31  Robert Dewar  <dewar@adacore.com>
16300
16301         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
16302         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
16303         vms_conv.adb: Fix bad table increment values (much too small)
16304
16305         * table.adb (Realloc): Make sure we get at least some new elements
16306         Defends against silly small values for table increment
16307
16308 2006-10-31  Robert Dewar  <dewar@adacore.com>
16309             Ed Schonberg  <schonberg@adacore.com>
16310             Bob Duff  <duff@adacore.com>
16311
16312         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
16313         entities. Move other fields around to make this possible
16314         (Is_Derived_Type): Add missing call to Is_Type.
16315         (Extra_Formals): New function for subprograms, entries, subprogram
16316         types.
16317         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
16318         (First_Formal_With_Extras): New function for subprogs, entries, subp
16319         types.
16320         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
16321         Add node information for E_Return_Statement.
16322         (Elaborate_Body_Desirable): New flag
16323         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
16324         to be Is_Inherently_Limited_Type, because return-by-reference has
16325         no meaning in Ada 2005.
16326         (E_Return_Statement): New entity kind.
16327         (Return_Applies_To): Field of E_Return_Statement.
16328         (Is_Return_Object): New flag in object entities.
16329         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
16330         (Must_Have_Preelab_Init): New flag
16331         (Known_To_Have_Preelab_Init): New flag
16332         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
16333         (Is_Visible_Formal): New flag on entities in formal packages.
16334         (Low_Bound_Known): New flag
16335         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
16336         Incomplete_Kind.
16337         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
16338         output when Id is an incomplete subtype.
16339
16340 2006-10-31  Robert Dewar  <dewar@adacore.com>
16341
16342         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
16343         Avoid abbreviation Creat
16344         (Finalize): List all sources in extended mail source if -gnatl
16345         switch is active.
16346         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
16347         (Finalize): Implement new -gnatl=xxx switch to output listing to file
16348         (Set_Specific_Warning_On): New procedure
16349         (Set_Specific_Warning_Off): New procedure
16350         Add implementation of new insertion \\
16351         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
16352         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
16353         types.
16354         (Error_Msg_Internal): Make sure that we set Last_Killed to
16355         True when a message from another package is suppressed.
16356         Implement insertion character ~ (insert string)
16357         (First_Node): Minor adjustments to get better placement.
16358
16359         * frontend.adb: 
16360         Implement new -gnatl=xxx switch to output listing to file
16361
16362         * gnat1drv.adb: 
16363         Implement new -gnatl=xxx switch to output listing to file
16364
16365         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
16366         (Commands_To_Stdout): New flag
16367         Implement new -gnatl=xxx switch to output listing to file
16368         New switch Dump_Source_Text
16369         (Warn_On_Deleted_Code): New warning flag for -gnatwt
16370         Define Error_Msg_Line_Length
16371         (Warn_On_Assumed_Low_Bound): New switch
16372
16373         * osint.ads, osint.adb
16374         (Normalize_Directory_Name): Fix bug.
16375         Implement new -gnatl=xxx switch to output listing to file
16376         (Concat): Removed, replaced by real concatenation
16377         Make use of concatenation now allowed in compiler
16378         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
16379         we find the 'lib' or 'bin' directory even when the tool has been
16380         invoked with a relative path.
16381         (Executable_Name): New function taking string parameters.
16382
16383         * osint-c.ads, osint-c.adb: 
16384         Implement new -gnatl=xxx switch to output listing to file
16385
16386         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
16387
16388         * switch-c.adb: 
16389         Implement new -gnatl=xxx switch to output listing to file
16390         Recognize new -gnatL switch
16391         (no longer keep in old warning about old style usage)
16392         Use concatenation to simplify code
16393         Recognize -gnatjnn switch
16394         (Scan_Front_End_Switches): Clean up handling of -gnatW
16395         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
16396
16397 2006-10-31  Robert Dewar  <dewar@adacore.com>
16398
16399         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
16400         (Set_Specific_Warning_Off): New procedure
16401         (Warning_Specifically_Suppressed): New function
16402         (Validate_Specific_Warnings): New procedure
16403         (Output_Msg_Text): Complete rewrite to support -gnatjnn
16404
16405         * err_vars.ads: Implement insertion character ~ (insert string)
16406
16407 2006-10-31  Bob Duff  <duff@adacore.com>
16408             Ed Schonberg  <schonberg@adacore.com>
16409
16410         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
16411         the parent part is a build-in-place function call, generate assignments.
16412         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
16413         are build-in-place function calls.
16414         (Replace_Self_Reference): New subsidiary of
16415         Make_OK_Assignment_Statement, to replace an access attribute that is a
16416         self-reference into an access to the appropriate component of the
16417         target object. Generalizes previous mechanism to handle self-references
16418         nested at any level.
16419         (Is_Self_Referential_Init): Remove, not needed.
16420         (Is_Self_Referential_Init): New predicate to simplify handling of self
16421         referential components in record aggregates.
16422         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
16423         check for presence of entity before checking for self-reference.
16424         (Has_Default_Init_Comps): Return True if a component association is a
16425         self-reference to the enclosing type, which can only come from a
16426         default initialization.
16427         (Make_OK_Assignment_Statement): If the expression is of the form
16428         Typ'Acc, where Acc is an access attribute, the expression comes from a
16429         default initialized self-referential component.
16430         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
16431         that has been derived from several abstract interfaces we must also
16432         initialize the tags of the secondary dispatch tables.
16433
16434 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16435             Thomas Quinot  <quinot@adacore.com>
16436             Javier Miranda  <miranda@adacore.com>
16437             Robert Dewar  <dewar@adacore.com>
16438
16439         * exp_attr.adb: 
16440         (Expand_Access_To_Protected_Op): If the context indicates that an access
16441         to a local operation may be transfered outside of the object, create an
16442         access to the wrapper operation that must be used in an external call.
16443         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
16444         target, pass the Valid attribute applied to a floating-point prefix on
16445         to the back end without expansion.
16446         (Storage_Size): Use the new run-time function Storage_Size to retrieve
16447         the allocated storage when it is specified by a per-object expression.
16448         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
16449         Nothing to do here, the attribute has been rewritten during semantic
16450         analysis.
16451         (Expand_Attribute_Reference): Handle expansion of the new Priority
16452         attribute
16453         (Find_Fat_Info): Handle case of universal real
16454         (Expand_Access_To_Protected_Op): Fix use of access to protected
16455         subprogram from inside the body of a protected entry.
16456         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
16457         'Access and 'Unrestricted_Access, to transform the attribute reference
16458         into a fat pointer.
16459         (Is_Constrained_Aliased_View): New predicate to help determine whether a
16460         subcomponent's enclosing variable is aliased with a constrained subtype.
16461         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
16462         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
16463         an aliased prefix must be known to be constrained in order to use True
16464         for the attribute value, and now it's possible for some aliased views
16465         to be unconstrained.
16466
16467 2006-10-31  Robert Dewar  <dewar@adacore.com>
16468
16469         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
16470         (Expand_Entity_Reference): Correct error of not handling subprogram
16471         formals in current_value processing.
16472
16473 2006-10-31  Javier Miranda  <miranda@adacore.com>
16474             Robert Dewar  <dewar@adacore.com>
16475             Ed Schonberg  <schonberg@adacore.com>
16476             Gary Dismukes  <dismukes@adacore.com>
16477
16478         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
16479         register in the final list objects containing class-wide interfaces;
16480         otherwise we incorrectly register the tag of the interface in the final
16481         list.
16482         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
16483         generate the wrapper if the parent primitive is abstract. This is
16484         required to report the correct error message.
16485         (Expand_N_Subtype_Indication): Do validity checks on range
16486         (Clean_Task_Names): If an initialization procedure includes a call to
16487         initialize a task (sub)component, indicate that the procedure will use
16488         the secondary stack.
16489         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
16490         compatibility for interfacing with CPP by default.
16491         (Expand_N_Object_Declaration): Only build an Adjust call when the
16492         object's type is a nonlimited controlled type.
16493         * exp_ch3.adb: Add with and use of Exp_Ch6.
16494         (Expand_N_Object_Declaration): Check for object initialization that is a
16495         call to build-in-place function and apply Make_Build_In_Place_Call_In_
16496         Object_Declaration to the call.
16497         (Freeze_Type): When the designated type of an RACW was not frozen at the
16498         point where the RACW was declared, validate the primitive operations
16499         with respect to E.2.2(14) when it finally is frozen.
16500         (Build_Initialization_Call,Expand_Record_Controller): Rename
16501         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
16502         return-by-reference has no meaning in Ada 2005.
16503         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
16504         to register tag of the immediate ancestor interfaces in the
16505         run-time structure.
16506         (Init_Secondary_Tags): Moved to the specification to allow the
16507         initialization of extension aggregates with abstract interfaces.
16508         (Build_Master_Renaming): Make public, for use by function declarations
16509         whose return type is an anonymous access type.
16510         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
16511         Insert_List_Before_And_Analyze after the generation of the specs
16512         associated with null procedures.
16513         (Expand_Tagged_Root): Update documentation in its specification.
16514         (Init_Secondary_Tags): Update documentation.
16515         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
16516         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
16517         then generate code to inherit the contents of the dispatch table
16518         directly from the ancestor.
16519         (Expand_Record_Controller): Insert controller component after tags of
16520         implemented interfaces.
16521         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
16522         create null procedure overridings when null procedures are inherited
16523         from interfaces.
16524         (Make_Null_Procedure_Specs): New procedure to generate null procedure
16525         declarations for overriding null primitives inherited from interfaces.
16526         (Is_Null_Interface_Procedure): New function in
16527         Make_Null_Procedure_Specs.
16528         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
16529         immediate ancestor of a tagged type is an abstract interface type we
16530         must generate the specification of the predefined primitives associated
16531         with controlled types (because the dispatch table of the ancestor is
16532         null and hence these entries cannot be inherited). This is required to
16533         elaborate well the dispatch table.
16534
16535 2006-10-31  Javier Miranda  <miranda@adacore.com>
16536             Ed Schonberg  <schonberg@adacore.com>
16537             Bob Duff  <duff@adacore.com>
16538             Gary Dismukes  <dismukes@adacore.com>
16539             Robert Dewar  <dewar@adacore.com>
16540
16541         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
16542         conversion.
16543         (Expand_N_In): Do validity checks on range
16544         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
16545         (Expand_N_Allocator): For "new T", if the object is constrained by
16546         discriminant defaults, allocate the right amount of memory, rather than
16547         the maximum for type T.
16548         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
16549         when the allocator is initialized by a build-in-place call, since the
16550         allocator is already rewritten as a reference to the function result,
16551         and this prevents an unwanted duplication of the function call.
16552         Add with and use of Exp_Ch6.
16553         (Expand_Allocator_Expresssion): Check for an allocator whose expression
16554         is a call to build-in-place function and apply
16555         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
16556         untagged designated types).
16557         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
16558         optimization if source or target is biased.
16559         (Expand_N_Allocator): Add comments for case of an allocator within a
16560         function that returns an anonymous access type designating tasks.
16561         (Expand_N_Allocator): apply discriminant checks for access
16562         discriminants of anonymous access types (AI-402, AI-416)
16563
16564 2006-10-31  Bob Duff  <duff@adacore.com>
16565             Robert Dewar  <dewar@adacore.com>
16566             Gary Dismukes  <dismukes@adacore.com>
16567             Ed Schonberg  <schonberg@adacore.com>
16568
16569         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
16570
16571         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
16572         (Expand_N_Assignment_Statement): Call
16573         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
16574         build-in-place function call. Currently, this can happen only for
16575         assignments that come from aggregates.
16576         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16577         in order to alleviate the upward compatibility introduced by AI-318.
16578         (Expand_N_Extended_Return_Statement): Add support for handling the
16579         return object as a build-in-place result.
16580         (Expand_Non_Function_Return): Implement simple return statements nested
16581         within an extended return.
16582         (Enable_New_Return_Processing): Turn on the new processing of return
16583         statements.
16584         (Expand_Non_Function_Return): For a return within an extended return,
16585         don't raise Program_Error, because Sem_Ch6 now gives a warning.
16586         (Expand_N_Extended_Return_Statement): Implement AI-318
16587         (Expand_Simple_Function_Return): Ditto.
16588         (Expand_N_If_Statement): Handle new -gnatwt warning
16589         (Expand_N_Case_Statement): Handle new -gnatwt warning
16590         (Expand_N_Assignment): Handle assignment to the Priority attribute of
16591         a protected object.
16592         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
16593         validity checking of assignments to elementary record components.
16594         (Expand_N_Return_Statement): return Class Wide types on the secondary
16595         stack independantly of their controlled status since with HIE runtimes,
16596         class wide types are not potentially controlled anymore.
16597
16598         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
16599         node kind.
16600
16601         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
16602         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
16603         it expects a block, procedure, or task. The return statement will get
16604         turned into a block, and Expand_Cleanup_Actions will happen then.
16605
16606 2006-10-31  Robert Dewar  <dewar@adacore.com>
16607             Ed Schonberg  <schonberg@adacore.com>
16608             Bob Duff  <duff@adacore.com>
16609             Gary Dismukes  <dismukes@adacore.com>
16610
16611         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
16612         capability.
16613         (Expand_Inlined_Call): Tagged types are by-reference types, and
16614         therefore should be replaced by a renaming declaration in the expanded
16615         body, as is done for limited types.
16616         (Expand_Call): If this is a call to a function with dispatching access
16617         result, propagate tag from context.
16618         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
16619         CPP by default.
16620         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
16621         build-in-place when the right-hand side of an assignment is a
16622         build-in-place function call.
16623         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
16624         of the explicit dereference of the allocator to the result subtype of
16625         the build-in-place function. This is needed to satisfy type checking
16626         in cases where the caller's return object is created by an allocator for
16627         a class-wide access type and the type named in the allocator is a
16628         specific type.
16629         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
16630         conversion of the reference to the declared object to the result subtype
16631         of the build-in-place function. This is needed to satisfy type checking
16632         in cases where the declared object has a class-wide type. Also, in the
16633         class-wide case, change the type of the object entity to the specific
16634         result subtype of the function, to avoid passing a class-wide object
16635         without explicit initialization to the back end.
16636         (Register_Interface_DT_Entry): Moved outside the body of
16637         Freeze_Subprogram because this routine is now public; it is called from
16638         Check_Dispatching_Overriding to handle late overriding of abstract
16639         interface primitives.
16640         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
16641         adding an implicit access actual on a call to a build-in-place function.
16642         (Expand_Actuals): Test for an actual parameter that is a call to a
16643         build-in-place function and apply
16644         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
16645         (Is_Build_In_Place_Function): New function to determine whether an
16646         entity is a function whose calls should be handled as build-in-place.
16647         (Is_Build_In_Place_Function_Call): New function to determine whether an
16648         expression is a function call that should handled as build-in-place.
16649         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
16650         calls to build-in-place functions as the initialization of an allocator.
16651         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
16652         handling calls to build-in-place functions in contexts that do not
16653         involve init of a separate object (for example, actuals of subprogram
16654         calls).
16655         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
16656         handling calls to build-in-place functions as the initialization of an
16657         object declaration.
16658         (Detect_Infinite_Recursion): Add explicit parameter Process to
16659         instantiation of Traverse_Body to avoid unreferenced warning.
16660         (Check_Overriding_Inherited_Interfaces): Removed.
16661         (Register_Interface_DT_Entry): Code cleanup.
16662         (Register_Predefined_DT_Entry): Code cleanup.
16663         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
16664         inlined statements if within a transient scope.
16665         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
16666         formal parameters with occurrences of actuals in inlined body, establish
16667         visibility on the proper view of the actual's subtype for the body's
16668         context.
16669         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
16670         compatibility mode and we have an imported CPP subprogram because
16671         for now we assume that imported CPP primitives correspond with
16672         objects whose constructor is in the CPP side (and therefore we
16673         don't need to generate code to register them in the dispatch table).
16674         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
16675         aligned selected component.
16676         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
16677         the actual of an in-mode parameter is a type conversion.
16678         (Expand_Actuals): If the call does not come from source and the actual
16679         is potentially misaligned, let gigi handle it rather than rejecting the
16680         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
16681         Class Wide types as returning by reference independantly of their
16682         controlled status since with HIE runtimes class wide types are not
16683         potentially controlled anymore.
16684
16685 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16686
16687         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
16688         references that are private components of the protected object.
16689         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
16690         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
16691         instantiation to deal with warnings.
16692         (Initialize_Protection): If expression for priority is non-static, use
16693         System_Priority as its expected type, in case the expression has not
16694         been analyzed yet.
16695
16696 2006-10-31  Robert Dewar  <dewar@adacore.com>
16697
16698         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
16699         initialization of Homonym_Len.
16700         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
16701         names from fully qualified name. Fixes problem of duplicate
16702         external names differing only in the presence of such a block name.
16703
16704 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16705             Pablo Oliveira  <oliveira@adacore.com>
16706
16707         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
16708         subprogram Ids, even if they are not yet assigned.
16709         (Build_Subprogram_Id): It is now this function that will take care of
16710         calling Assign_Subprogram_Ids if necessary.
16711         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
16712         should be done only once they are assigned.
16713         (Build_From_Any_Function, case of tagged types): Add missing call to
16714         Allocate_Buffer.
16715         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
16716         type for an RACW type.
16717         (Add_RACW_Features): When processing an RACW declaration for which the
16718         designated type is already frozen, enforce E.2.2(14) rules immediately.
16719         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
16720         special reordering of controlling formals.
16721
16722         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
16723         associated stub type for an RACW type.
16724
16725 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16726
16727         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
16728         fixed-point operations in an integer context, i.e. as operands of a
16729         conversion to an integer type, indicate that result must be rounded.
16730
16731 2006-10-31  Robert Dewar  <dewar@adacore.com>
16732
16733         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
16734         cases, pass the encoding method, since it is now required by the run
16735         time.
16736
16737         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
16738         assumption that Str'First = 1.
16739         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
16740         it on to the Value_Wide_Wide_Character call.
16741         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
16742         properly handles a string of the form quote-encoded_wide_char-quote.
16743
16744         * s-wchcnv.adb: Minor reformatting
16745
16746 2006-10-31  Javier Miranda  <miranda@adacore.com>
16747
16748         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
16749         run-time membership test to ensure that the constructed object
16750         implements the target abstract interface.
16751
16752 2006-10-31  Robert Dewar  <dewar@adacore.com>
16753
16754         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
16755         Machine_Attribute pragma internally to implement the user pragma.
16756         Add processing for pragma Interface so that it is now completely
16757         equivalent to pragma Import.
16758
16759         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
16760         so that it can be applied to all entities, including record components
16761         and enumeration literals.
16762         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
16763         priority ranges are correct, verify compatibility against task
16764         dispatching and locking policies, and if everything is correct an entry
16765         is added to the table containing priority specific dispatching entries
16766         for this compilation unit.
16767         (Delay_Config_Pragma_Analyze): Delay processing
16768         Priority_Specific_Dispatching pragmas because when processing the
16769         pragma we need to access run-time data, such as the range of
16770         System.Any_Priority.
16771         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
16772         Allow pragma Unreferenced as a context item
16773         Add pragma Preelaborable_Initialization
16774         (Analyze_Pragma, case Interface): Interface is extended so that it is
16775         now syntactically and semantically equivalent to Import.
16776         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
16777         insertion characters.
16778         Add handling for Pragma_Wide_Character_Encoding
16779         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
16780         never supercedes a real restriction, and that a real restriction
16781         always supercedes a warning.
16782         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
16783         appropriate form.
16784
16785 2006-10-31  Bob Duff  <duff@adacore.com>
16786             Ed Schonberg  <schonberg@adacore.com>
16787             Robert Dewar  <dewar@adacore.com>
16788
16789         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
16790         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
16791         Is_Inherently_Limited_Type, because return-by-reference has no meaning
16792         in Ada 2005.
16793         (Find_Node_To_Be_Wrapped): Use new method of determining the result
16794         type of the function containing a return statement, because the
16795         Return_Type field was removed. We now use the Return_Applies_To field.
16796
16797         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
16798         (Build_Task_Image_Decl): If procedure is not called from an
16799         initialization procedure, indicate that function that builds task name
16800         uses the sec. stack. Otherwise the enclosing initialization procedure
16801         will carry the indication.
16802         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
16803         N_Object_Declaration instead.
16804         (Kill_Dead_Code): New interface to implement -gnatwt warning for
16805         conditional dead code killed, and change implementation accordingly.
16806         (Insert_Actions): Add N_Return_Object_Declaration case.
16807         Correct comment to mention N_Extension_Aggregate node.
16808         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
16809         attempts to save information for global variables which cannot be
16810         safely tracked.
16811         (Get_Current_Value_Condition): Handle conditions the other way round
16812         (constant on left). Also handle right operand of AND and AND THEN
16813         (Set_Current_Value_Condition): Corresponding changes
16814         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
16815         (Get_Current_Value_Condition): Handle simple boolean operands
16816         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
16817         (Get_Current_Value_Condition): If the variable reference is within an
16818         if-statement, does not appear in the list of then_statments, and does
16819         not come from source, treat it as being at unknown location.
16820         (Get_Current_Value_Condition): Enhance to allow while statements to be
16821         processed as well as if statements.
16822         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
16823         come from source.
16824         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
16825         of loop. This is safe now that we fixed Kill_Current_Values.
16826         (OK_To_Do_Constant_Replacement): Check whether current scope is
16827         Standard, before examining outer scopes.
16828
16829 2006-10-31  Vincent Celier  <celier@adacore.com>
16830
16831         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
16832         When True, apply VMS treatment to children of packages A, G, I and S.
16833         For F320-016
16834
16835         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
16836
16837 2006-10-31  Robert Dewar  <dewar@adacore.com>
16838             Ed Schonberg  <schonberg@adacore.com>
16839
16840         * freeze.adb: Add handling of Last_Assignment field
16841         (Warn_Overlay): Supply missing continuation marks in error msgs
16842         (Freeze_Entity): Add check for Preelaborable_Initialization
16843
16844         * g-comlin.adb: Add Warnings (Off) to prevent new warning
16845
16846         * g-expect.adb: Add Warnings (Off) to prevent new warning
16847
16848         * lib-xref.adb: Add handling of Last_Assignment field
16849         (Generate_Reference): Centralize handling of pragma Obsolescent here
16850         (Generate_Reference): Accept an implicit reference generated for a
16851         default in an instance.
16852         (Generate_Reference): Accept a reference for a node that is not in the
16853         main unit, if it is the generic body corresponding to an subprogram
16854         instantiation.
16855
16856         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
16857
16858         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
16859         -gnatwq/Q.
16860         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
16861         exception handler.
16862         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
16863         use clauses, to avoid messages on packages used to qualify, and also
16864         to avoid messages from obsolescent units.
16865         (Warn_On_Useless_Assignments): Don't generate messages for imported
16866         and exported variables.
16867         (Warn_On_Useless_Assignments): New procedure
16868         (Output_Obsolescent_Entity_Warnings): New procedure
16869         (Check_Code_Statement): New procedure
16870
16871         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
16872         Change name Is_Ada_2005 to Is_Ada_2005_Only
16873         (Last_Assignment): New field for useless assignment warning
16874
16875 2006-10-31  Olivier Hainque  <hainque@adacore.com>
16876
16877         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
16878         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
16879
16880 2006-10-31  Bob Duff  <duff@adacore.com>
16881             Robert Dewar  <dewar@adacore.com>
16882             Ed Schonberg  <schonberg@adacore.com>
16883
16884         * g-awk.adb (Default_Session, Current_Session): Compile this file in
16885         Ada 95 mode, because it violates the new rules for AI-318.
16886
16887         * g-awk.ads: Use overloaded subprograms in every case where we used to
16888         have a default of Current_Session. This makes the code closer to be
16889         correct for both Ada 95 and 2005.
16890
16891         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
16892         code, relying on the fact that the compiler generates a warning
16893         instead of an error in -gnatg mode.
16894
16895         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
16896         E_Return_Statement entity kind.
16897         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
16898
16899         * par.adb (P_Interface_Type_Definition): Addition of one formal to
16900         report an error if the reserved word abstract has been previously found.
16901         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
16902
16903         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
16904         parenthesized range attribute usage
16905         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
16906
16907         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
16908         in the syntax for extended_return_statement. This is not in the latest
16909         RM, but the ARG is expected to issue an AI allowing this.
16910         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
16911         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
16912         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
16913         P_Return_Statement): Parse the new syntax for extended_return_statement.
16914
16915         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
16916         Output_End_Missing): Add error-recovery code for the new
16917         extended_return_statement syntax; that is, the new E_Return entry on
16918         the scope stack.
16919
16920         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
16921         limited to nonlimited, because otherwise we violate the new Ada 2005
16922         rules about returning limited types in function Create_AST_Handler in
16923         s-asthan.adb.
16924
16925         * sem.adb (Analyze): Add cases for new node kinds
16926         N_Extended_Return_Statement and N_Return_Object_Declaration.
16927
16928         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
16929         type is in the same category as type of context before applying check,
16930         to prevent anomalies in instantiations.
16931         (Resolve_Aggregate): Remove test for limited components in aggregates.
16932         It's unnecessary in Ada 95, because if it has limited components, then
16933         it must be limited. It's wrong in Ada 2005, because limited aggregates
16934         are now allowed.
16935         (Resolve_Record_Aggregate): Move check for limited types later, because
16936         OK_For_Limited_Init requires its argument to have been resolved.
16937         (Get_Value): When copying the component default expression for a
16938         defaulted association in an aggregate, use the sloc of the aggregate
16939         and not that of the original expression, to prevent spurious
16940         elaboration errors, when the expression includes function calls.
16941         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
16942         were missing. We also didn't handle qualified expressions. Now also
16943         allow function calls. Use new common routine OK_For_Limited_Init.
16944         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
16945         with space can upper case letter).
16946
16947         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
16948         Has_Static_Discriminants flag
16949         (Record_Type_Declaration): Diagnose an attempt to declare an interface
16950         type with discriminants.
16951         (Process_Range_Expr_In_Decl): Do validity checks on range
16952         (Build_Discriminant_Constraints): Use updated form of
16953         Denotes_Discriminant.
16954         (Process_Subtype): If the subtype is a private subtype whose full view
16955         is a concurrent subtype, introduce an itype reference to prevent scope
16956         anomalies in gigi.
16957         (Build_Derived_Record_Type, Collect_Interface_Primitives,
16958         Record_Type_Declaration):  The functionality of the subprograms
16959         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
16960         is now performed by a single routine.
16961         (Build_Derived_Record_Type): If the type definition includes an explicit
16962         indication of limitedness, then the type must be marked as limited here
16963         to ensure that any access discriminants will not be treated as having
16964         a local anonymous access type.
16965         (Check_Abstract_Overriding): Issue a detailed error message when an
16966         abstract subprogram was not overridden due to incorrect mode of its
16967         first parameter.
16968         (Analyze_Private_Extension_Declaration): Add support for the analysis of
16969         synchronized private extension declarations. Verify that the ancestor is
16970         a limited or synchronized interface or in the generic case, the ancestor
16971         is a tagged limited type or synchronized interface and all progenitors
16972         are either limited or synchronized interfaces.
16973         Derived_Type_Declaration): Check for presence of private extension when
16974         dealing with synchronized formal derived types.
16975         Process_Full_View): Enchance the check done on the usage of "limited" by
16976         testing whether the private view is synchronized.
16977         Verify that a synchronized private view is completed by a protected or
16978         task type.
16979         (OK_For_Limited_Init_In_05): New function.
16980         (Analyze_Object_Declaration): Move check for limited types later,
16981         because OK_For_Limited_Init requires its argument to have been resolved.
16982         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16983         in order to alleviate the upward compatibility introduced by AI-318.
16984         (Constrain_Corresponding_Record): If the constraint is for a component
16985         subtype, mark the itype as frozen, to avoid out-of-scope references to
16986         discriminants in the back-end.
16987         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
16988         this subprogram against wrong sources.
16989         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
16990         discriminant of limited type completed with a protected type, when the
16991         discriminant is used to constrain a private component of the type, and
16992         expansion is disabled.
16993         (Find_Type_Of_Object): Do not treat a return subtype that is an
16994         anonymous subtype as a local_anonymous_type, because its accessibility
16995         level is the return type of the enclosing function.
16996         (Check_Initialization): In -gnatg mode, turn the error "cannot
16997         initialize entities of limited type" into a warning.
16998         (OK_For_Limited_Init): Return true for generated nodes, since it
16999         sometimes violates the legality rules.
17000         (Make_Incomplete_Declaration): If the type for which an incomplete
17001         declaration is created happens to be the currently visible entity,
17002         preserve the homonym chain when removing it from visibility.
17003         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17004         inherited subprograms.
17005         (Access_Definition): If this is an access to function that is the return
17006         type of an access_to_function definition, context is a type declaration
17007         and the scope of the anonymous type is the current one.
17008         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17009         incomplete subtype to the set of private dependents of the original
17010         incomplete type.
17011         (Constrain_Discriminated_Type): Emit an error message whenever an
17012         incomplete subtype is being constrained.
17013         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17014         corresponding subtype of the full view of the original incomplete type.
17015         (Check_Incomplete): Properly detect invalid usage of incomplete types
17016         and subtypes.
17017
17018 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17019
17020         * g-catiio.ads, g-catiio.adb (Value): New function.
17021         Given an input String, try and parse a valid Time value.
17022
17023 2006-10-31  Vincent Celier  <celier@adacore.com>
17024
17025         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17026         Integer_Address arithmetic, as in Set_Valid.
17027
17028 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17029             Robert Dewar  <dewar@adacore.com>
17030
17031         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17032         handling executable extension manually and duplicating code.
17033
17034         * make.adb: Implement new -S switch
17035         (Gnatmake): Use new function Osint.Executable_Name instead
17036         of handling executable extension manually.
17037
17038         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17039         is specified, the executable name ends with this suffix.
17040         Take advantage of Osint.Executable_Name instead of duplicating code.
17041
17042         * switch-m.adb: Recognize new gnatmake -S switch
17043
17044         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17045         variable.
17046         (Get_Target_Parameters): Set Executable_Extension_On_Target if
17047         available.
17048
17049         * makeusg.adb: Add line for gnatmake -S switch
17050
17051 2006-10-31  Vincent Celier  <celier@adacore.com>
17052
17053         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17054         call it with -static-libgcc, as there are some platforms, such as
17055         Darwin, where one of these two switches is compulsory to link.
17056
17057 2006-10-31  Vincent Celier  <celier@adacore.com>
17058
17059         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
17060         instead of ADA_PROJECT_PATH, for the project path.
17061         (Gnatls): When displaying the project path directories, use host dir
17062         specs.
17063
17064         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
17065         names in the project path, as absolute paths may correspond to
17066         multi-valued VMS logical names.
17067
17068 2006-10-31  Vincent Celier  <celier@adacore.com>
17069
17070         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
17071         absolute path name.
17072         (Locate_Regular_File): Ditto
17073         (Change_Dir): Remove, no longer used
17074         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
17075         on Windows. Get it calling Get_Current_Dir.
17076         (OpenVMS): Remove imported boolean, no longer needed.
17077         (Normalize_Pathname)[VMS]: Do not resolve directory names.
17078         (Pid_To_Integer): New function to convert a Process_Id to  Integer
17079
17080 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17081
17082         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
17083         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
17084         to No_Socket.
17085         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
17086         W_Sig_Socket.
17087
17088 2006-10-31  Robert Dewar  <dewar@adacore.com>
17089
17090         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
17091         initial letter o as a zero.
17092
17093 2006-10-31  Robert Dewar  <dewar@adacore.com>
17094
17095         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
17096
17097 2006-10-31  Robert Dewar  <dewar@adacore.com>
17098
17099         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
17100         variant records
17101         (Layout_Variant_Record): Retrieve the discriminants from the entity
17102         rather than from the type definition, because in the case of a full
17103         type for a private type we need to take the discriminants from the
17104         partial view.
17105         (Layout_Component_List): When applying the Max operator to variants with
17106         a nonstatic size, check whether either operand is static and scale that
17107         operand from bits to storage units before applying Max.
17108         (Layout_Type): In VMS, if a C-convention access type has no explicit
17109         size clause (and does not inherit one in the case of a derived type),
17110         then the size is reset to 32 from 64.
17111
17112 2006-10-31  Vincent Celier  <celier@adacore.com>
17113
17114         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
17115         its file has already been loaded, according to the unit being loaded,
17116         not to the current value of Multiple_Unit_Index.
17117
17118 2006-10-31  Thomas Quinot  <quinot@adacore.com>
17119             Eric Botcazou  <ebotcazou@adacore.com>
17120             Arnaud Charlet  <charlet@adacore.com>
17121
17122         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
17123         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
17124         possible.
17125         (a-except.o): Pass it to the compiler.
17126         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
17127         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
17128         a-calend-mingw.adb version.
17129
17130         * Makefile.rtl: Added s-dsaser.
17131         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
17132         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
17133         Ada.Dispatching.Round_Robin.
17134         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
17135
17136         * Make-lang.in: Remove all references to gt-ada-decl.h.
17137         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
17138         sources.
17139         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
17140         Update dependencies.
17141
17142         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
17143
17144 2006-10-31  Vincent Celier  <celier@adacore.com>
17145
17146         * mlib-utl.adb (Initialized): Remove, no longer used
17147         (Initialize): Remove, no longer used
17148         (Ar): If Ar_Exec is null, get the location of the archive builder and,
17149         if there is one, the archive indexer. Fail if the archive builder cannot
17150         be found.
17151         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
17152         be found.
17153
17154 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17155
17156         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
17157         Process_Body_Clauses): If the context of a body includes a use clause
17158         for P.Q then a with_clause for P in the same body is not redundant,
17159         even if the spec also has a with_clause on P.
17160         Add missing continuation mark to error msg
17161         (Build_Limited_Views): A limited view of a type is tagged if its
17162         declaration includes a record extension.
17163         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
17164         node, even if the subunit has errors. This avoids malfunction by
17165         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
17166         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
17167         generation of obsolescent messages for with statements (cannot do
17168         this too early, or we cannot implement avoiding the messages in the
17169         case of obsolescent units withing obsolescent units).
17170         (Install_Siblings): If the with_clause is on a remote descendant of
17171         an ancestor of the current compilation unit, find whether there is
17172         a sibling child unit that is immediately visible.
17173         (Remove_Private_With_Clauses): New procedure, invoked after completing
17174         the analysis of the private part of a nested package, to remove from
17175         visibility the private with_clauses of the enclosing package
17176         declaration.
17177         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
17178         now centralized in Generate_Reference.
17179         (Install_Limited_Context_Clauses): Remove superfluous error
17180         message associated with unlimited view visible through use
17181         and renamings. In addition, at the point in which the error
17182         is reported, we add the backslash to the text of the error
17183         to ensure that it is reported as a single error message.
17184         Use new // insertion for some continuation messages
17185         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
17186         to create implicit with_clause for parent unit mentioned in original
17187         limited_with_clause.
17188         (Install_Limited_With_Unit): Set entity of parent identifiers if the
17189         unit is a child unit. For ASIS queries.
17190         (Analyze_Subunit): If the subunit appears within a child unit, make all
17191         ancestor child units directly visible again.
17192
17193 2006-10-31  Robert Dewar  <dewar@adacore.com>
17194
17195         * par-ch10.adb (P_Context_Clause): Minor error message fix
17196
17197 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17198             Javier Miranda  <miranda@adacore.com>
17199
17200         * par-ch12.adb: Grammar update and cleanup.
17201         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
17202         support for synchronized derived type definitions.
17203         Add the new actual Abstract_Present to every call to
17204         P_Interface_Type_Definition.
17205         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
17206         a formal object declaration with an access definition or a subtype mark
17207         with a null exclusion.
17208         (P_Generic_Association): Handle association with box, and others_choice
17209         with box, to support Ada 2005 partially parametrized formal packages.
17210
17211 2006-10-31  Robert Dewar  <dewar@adacore.com>
17212             Javier Miranda  <miranda@adacore.com>
17213
17214         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
17215         (P_Type_Declaration): Remove barrier against the reserved word "limited"
17216         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
17217         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
17218         private extensions.
17219         (P_Type_Declaration): Add the new actual Abstract_Present to every call
17220         to P_Interface_Type_Definition.
17221         (P_Interface_Type_Definition): Addition of one formal to report an error
17222         if the reserved word abstract has been previously found.
17223         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
17224         object renaming declaration with an access definition or subtype mark
17225         with a possible null exclusion.
17226
17227         * par-ch9.adb: Minor error msg fix
17228
17229         * par-load.adb: Add missing continuation mark to error msg
17230
17231         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
17232
17233 2006-10-31  Vincent Celier  <celier@adacore.com>
17234
17235         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
17236         unknown attribute in unknown package or in package that does not need
17237         to be checked.
17238         (Parse_Package_Declaration): Do not issue warning for unknown package in
17239         quiet output.
17240
17241 2006-10-31  Vincent Celier  <celier@adacore.com>
17242
17243         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
17244         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
17245         Packages_To_Check.
17246
17247 2006-10-31  Vincent Celier  <celier@adacore.com>
17248
17249         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
17250         on VMS, change "__" to '.' before checking the name.
17251         (Record_Ada_Source): Always add the source file name in the list of
17252         of sources, even if it is not the first time, as it is for another
17253         source index.
17254         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
17255         dot, instead of replacing only the first '_'.
17256
17257         * prj-part.adb (Parse): Convert project file path to canonical form
17258
17259         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
17260         extended, the project id of the project extending it is recorded in its
17261         data, even when it has already been processed as an imported project.
17262
17263 2006-10-31  Robert Dewar  <dewar@adacore.com>
17264
17265         * repinfo.adb (List_Entities): Don't list entities from renaming
17266         declarations.
17267
17268 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17269             Robert Dewar  <dewar@adacore.com>
17270
17271         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
17272         only a restriction warning is active for the given restriction. This is
17273         desirable because we do not want to modify code in the case where only
17274         a warning is set.
17275         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
17276         causes overriding of real restrictions.
17277         Take advantage of new No_Restrictions constant.
17278
17279         * raise.h: (__gnat_set_globals): Change profile.
17280
17281 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17282
17283         * rtsfind.adb: Remove s-polint from comment as it exists no more.
17284
17285         * rtsfind.ads: 
17286         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
17287         Move all the entities in obsolete package System.PolyORB_Interface to
17288         System.Partition_Interface.
17289         (RE_Storage_Size): New function in System.Tasking.
17290         (RE_Get_Ceiling): New entity.
17291         (RE_Set_Ceiling): New entity.
17292         (RO_PE_Get_Ceiling): New entity.
17293         (RO_RE_Set_Ceiling): New entity.
17294         (Inherit_CPP_DT): New entity
17295
17296 2006-10-31  Robert Dewar  <dewar@adacore.com>
17297
17298         * scng.adb (Scan, case of numeric literal): Better msg for identifier
17299         starting with a digit.
17300
17301 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17302             Thomas Quinot  <quinot@adacore.com>
17303             Javier Miranda  <miranda@adacore.com>
17304             Gary Dismukes  <dismukes@adacore.com>
17305
17306         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
17307         properly an attempt to apply Unchecked_Access to a protected operation.
17308         (OK_Self_Reference): New subprogram to check the legality of an access
17309         attribute whose prefix is the type of an enclosing aggregate.
17310         Generalizes previous mechanism to handle attribute references nested
17311         arbitrarily deep within the aggregate.
17312         (Analyze_Access_Attribute): An access attribute whose prefix is a type
17313         can appear in an aggregate if this is a default-initialized aggregate
17314         for a self-referential type.
17315         (Resolve_Attribute, case Access): Ditto.
17316         Add support for new implementation defined attribute Stub_Type.
17317         (Eval_Attribute, case Attribute_Stub_Type): New case.
17318         (Analyze_Attribute, case Attribute_Stub_Type): New case.
17319         (Stream_Attribute_Available): Implement using new subprogram from
17320         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
17321         Has_Specified_Stream_Attribute flag.
17322         Disallow Storage_Size and Storage_Pool for access to subprogram
17323         (Resolve_Attribute, case 'Access et al): Take into account anonymous
17324         access types of return subtypes in extended return statements. Remove
17325         accessibility checks on anonymous access types when Unchecked_Access is
17326         used.
17327         (Analyze_Attribute): Add support for the use of 'Class to convert
17328         a class-wide interface to a tagged type.
17329         Add support for the attribute Priority.
17330         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
17331         whether the designated type is discriminated with a constrained partial
17332         view and require static matching in that case.
17333         Add local variable Des_Btyp. The Designated_Type
17334         of an access to incomplete subtype is either its non-limited view if
17335         coming from a limited with or its etype if regular incomplete subtype.
17336
17337         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
17338         Fix predicate to identify and allow cases of (expander-generated)
17339         references to tag of designated object of a RACW.
17340         (Validate_Static_Object_Name): In Ada 2005, a formal object is
17341         non-static, and therefore cannot appear as a primary in a preelaborable
17342         package.
17343         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
17344         Has_Read_Write_Attributes.
17345         (Has_Read_Write_Attributes): Reimplement in termes of
17346         Has_Stream_Attribute_Definition.
17347         (Missing_Read_Write_Attributes): When checking component types in a
17348         record, unconditionally call Missing_Read_Write_Attributes recursively
17349         (remove guard checking for Is_Record_Type / Is_Access_Type).
17350
17351 2006-10-31  Robert Dewar  <dewar@adacore.com>
17352
17353         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
17354         useless assignments here and conditionalize it on absence of exception
17355         handlers.
17356         (Analyze_Exception_Handlers): Small code reorganization of error
17357         detection code, for new handling of formal packages.
17358
17359 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17360             Hristian Kirtchev  <kirtchev@adacore.com>
17361
17362         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
17363         that has been constant-folded, preserve information of original tree,
17364         for ASIS uses.
17365         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
17366         generated private extension declaration if the formal derived type is
17367         synchronized. Carry synchronized present over to the generated private
17368         extension.
17369         (Validate_Derived_Type_Instance): Ensure that the actual of a
17370         synchronized formal derived type is a synchronized tagged type.
17371         (Instantiate_Formal_Package): When creating the instantiation used to
17372         validate the actual package of a formal declared without a box, check
17373         whether the formal itself depends on a prior actual.
17374         (Instantiate_Formal_Subprogram): Create new entities for the defining
17375         identifiers of the formals in the renaming declaration, for ASIS use.
17376         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
17377         a renaming declaration or a subtype declaration for an actual in an
17378         instance, capture location information of declaration in generic, for
17379         ASIS use.
17380         (Instantiate_Formal_Package): Add comments on needed additional tests.
17381         AI-317 (partial parametrization) is fully implemented.
17382         (Validate_Private_Type_Instance): Add check for actual which
17383         must have preelaborable initialization
17384         Use new // insertion for some continuation messages
17385         (Analyze_Formal_Object_Declaration): Change usage of Expression to
17386         Default_Expression. Add type retrieval when the declaration has an
17387         access definition. Update premature usage of incomplete type check.
17388         (Check_Access_Definition): New subsidiary routine. Check whether the
17389         current compilation version is Ada 05 and the supplied node has an
17390         access definition.
17391         (Instantiate object): Alphabetize local variables. Handle the creation
17392         of new renaming declarations with respect to the kind of definition
17393         used - either an access definition or a subtype mark. Guard against
17394         unnecessary error message in the context of anonymous access types after
17395         they have been resolved. Add check for required null exclusion in a
17396         formal object declaration.
17397         (Switch_View): A private subtype of a non-private type needs to be
17398         switched (the base type can have been switched without its private
17399         dependents because of the last branch of Check_Private_View.
17400         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
17401         value from BT.
17402         (Instantiate_Type): Emit an error message whenever a class-wide type of
17403         a tagged incomplete type is used as a generic actual.
17404         (Find_Actual_Type): Extend routine to handle a component type in a child
17405         unit that is imported from a formal package in a parent.
17406         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
17407         agree on constrainedness, rather than checking against ultimate ancestor
17408         (Instantiate_Subprogram_Body): Create a cross-reference link to the
17409         generic body, for navigation purposes.
17410
17411 2006-10-31  Robert Dewar  <dewar@adacore.com>
17412             Thomas Quinot  <quinot@adacore.com>
17413
17414         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
17415         type.
17416         (New_Stream_Subprogram): When processing an attribute definition clause
17417         for a stream-oriented subprogram, record an entity node occurring at
17418         the point of clause to use for checking the visibility of the clause,
17419         as defined by 8.3(23) as amended by AI-195.
17420         (New_Stream_Subprogram): New procedure, factoring behaviour from both
17421          New_Stream_Function and New_Stream_Procedure.
17422         (New_Stream_Function, New_Stream_Procedure): Removed.
17423         (Analyze_Attribute_Definition_Clause, case Address): Check new
17424         Alignment_Check check
17425
17426 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17427             Javier Miranda  <miranda@adacore.com>
17428             Robert Dewar  <dewar@adacore.com>
17429
17430         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
17431         generate the same errors compiling under -gnatc.
17432         (Try_Object_Operation): If no candidate interpretation succeeds, but
17433         there is at least one primitive operation with the right name, report
17434         error in call rather than on a malformed selected component.
17435         (Analyze_Selected_Component): If the prefix is an incomplete type from
17436         a limited view, and the full view is available, use the full view to
17437         determine whether this is a prefixed call to a primitive operation.
17438         (Operator_Check): Verify that a candidate interpretation is a binary
17439         operation before checking the type of its second formal.
17440         (Analyze_Call): Add additional warnings for function call contexts not
17441         yet supported.
17442         (Analyze_Allocator): Move the check for "initialization not allowed for
17443         limited types" after analyzing the expression. This is necessary,
17444         because OK_For_Limited_Init looks at the structure of the expression.
17445         Before analysis, we don't necessarily know what sort of expression it
17446         is. For example, we don't know whether F(X) is a function call or an
17447         indexed component; the former is legal in Ada 2005; the latter is not.
17448         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
17449         were missing. We also didn't handle qualified expressions. Now also
17450         allow function calls. Use new common routine OK_For_Limited_Init.
17451         (Analyze_Type_Conversion): Do not perform some legality checks in an
17452         instance, because the error message will be redundant or spurious.
17453         (Analyze_Overloaded_Selected_Component): Do not do style check when
17454         setting an entity, since we do not know it is the right entity yet.
17455         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
17456         (Analyze_Overloaded_Selected_Component): Same change
17457         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
17458         since regular incomplete subtypes are transformed into corresponding
17459         subtypes of their full views.
17460         (Complete_Object_Operation): Treat name of transformed subprogram call
17461         as coming from source, for browsing purposes.
17462         (Try_Primitive_Operation): If formal is an access parameter, compare
17463         with base type of object to determine whether it is a primitive
17464         operation.
17465         (Operator_Check): If no interpretation of the operator matches, check
17466         whether a use clause on any candidate might make the operation legal.
17467         (Try_Class_Wide_Operation): Check whether the first parameter is an
17468         access type whose designated type is class-wide.
17469
17470 2006-10-31  Robert Dewar  <dewar@adacore.com>
17471             Ed Schonberg  <schonberg@adacore.com>
17472             Gary Dismukes  <dismukes@adacore.com>
17473
17474         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
17475         warn on infinite loops.
17476         Add \\ to some continuation messages
17477         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
17478         (Process_Bounds): If the bounds are integer literals that result from
17479         constant-folding, and they carry a user-defined type, preserve that type
17480         rather than treating this as an integer range.
17481         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
17482         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
17483         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
17484         left hand side of assignment.
17485         (Analyze_Assignment): Add suport to manage assigments to the attribute
17486         priority of a protected object.
17487         (Check_Possible_Current_Value_Condition): Allow fully qualified names
17488         not just identifiers.
17489         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
17490         or AND THEN for possible tracking.
17491         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
17492         case of while loops so we can track values in the loop body.
17493
17494 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17495             Hristian Kirtchev  <kirtchev@adacore.com>
17496             Bob Duff  <duff@adacore.com>
17497
17498         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
17499         procedure cannot be a protected operation (it is a basic_declaration,
17500         not a subprogram_declaration).
17501         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
17502         Subp. Add logic for entry processing.
17503         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
17504         Determine whether an entry or subprogram of a protected or task type
17505         override an inherited primitive of an implemented interface.
17506         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
17507         Update the actual used in calls to Check_Overriding_Indicator.
17508         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
17509         generate the proper reference to the parent unit, for cross-reference.
17510         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
17511         Is_Formal.
17512         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17513         (Add_Extra_Formal): Revise procedure to allow passing in associated
17514         entity, scope, and name suffix, and handle setting of the new
17515         Extra_Formals field.
17516         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
17517         pass new parameters. Add support for adding the new extra access formal
17518         for functions whose calls are treated as build-in-place.
17519         (Analyze_A_Return_Statement): Correct casing in error message.
17520         Move Pop_Scope to after Analyze_Function_Return, because an extended
17521         return statement really is a full-fledged scope. Otherwise, visibility
17522         doesn't work right. Correct use of "\" for continuation messages.
17523         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
17524         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
17525         the node doesn't get properly marked as analyzed.
17526         (Analyze_Subprogram_Body): If subprogram is a function that returns
17527         an anonymous access type that denotes a task, build a Master Entity
17528         for it.
17529         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
17530         proper usage of null exclusion in a result definition.
17531         (Process_Formals): Code cleanup and new error message.
17532         (Process_Formals): Detect incorrect application of null exclusion to
17533         non-access types.
17534         (Conforming_Types): Handle conformance between [sub]types and itypes
17535          generated for entities that have null exclusions applied to them.
17536         (Maybe_Primitive_Operation): Add an additional type retrieval when the
17537          base type is an access subtype. This case arrises with null exclusions.
17538         (New_Overloaded_Entity): Do not remove the overriden entity from the
17539         homonym chain if it corresponds with an abstract interface primitive.
17540         (Process_Formals): Replace membership test agains Incomplete_Kind with a
17541         call to the synthesized predicate Is_Incomplete_Type.
17542         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
17543         primitives.
17544         (Analyze_Subprogram_Declaration): Check that abstract interface
17545         primitives are abstract or null.
17546         (Analyze_Subprogram_Specification): Remove previous check for abstract
17547         interfaces because it was not complete.
17548         (Has_Interface_Formals): Removed.
17549
17550 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17551             Javier Miranda  <miranda@adacore.com>
17552
17553         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
17554         of Analyze_Package_Body, to create Itype references for anonymous
17555         access types created in the package declaration, whose designated types
17556         may have only a limited view.
17557         (Analyze_Package_Specification): For the private part of a nested
17558         package, install private_with_clauses of enclosing compilation unit if
17559         we are in its visible part.
17560         (Declare_Inherited_Private_Subprograms): Complete barrier
17561         to ensure that the primitive operation has an alias to some parent
17562         primitive. This is now required because, after the changes done for the
17563         implementation of abstract interfaces, the contents of the list of
17564         primitives has entities whose alias attribute references entities of
17565         such list of primitives.
17566         (Analyze_Package_Specification): Simplify code that handles parent units
17567         of instances and formal packages.
17568         (Uninstall_Declarations): Check the convention consistency among
17569         primitive overriding operations of a tagged record type.
17570
17571 2006-10-31  Robert Dewar  <dewar@adacore.com>
17572             Hristian Kirtchev  <kirtchev@adacore.com>
17573             Javier Miranda  <miranda@adacore.com>
17574             Ed Schonberg  <schonberg@adacore.com>
17575
17576         * sem_ch8.adb: Minor error msg rewording
17577         (Undefined): When checking for misspellings, invert arguments (to get
17578         expected and found set right)
17579         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
17580         (Analyze_Generic_Renaming): Same fix
17581         (Use_One_Package): Do not take into account the internal entities of
17582         abstract interfaces during the analysis of entities that are marked
17583         as potentially use-visible.
17584         (Find_Type): Handle the case of an attribute reference for
17585         implementation defined attribute Stub_Type (simply let the analysis of
17586         the attribute reference rewrite it).
17587         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
17588         type that appears in a Use_Type clause.
17589         (Analyze_Object_Renaming): Add support for renaming of the Priority
17590         attribute.
17591         (Find_Type): In Ada 2005, a task type can be used within its own body,
17592         when it appears in an access definition.
17593         (Analyze_Object_Renaming): Remove warning on null_exclusion.
17594         (Analyze_Object_Renaming): Introduce checks for required null exclusion
17595          in a formal object declaration or in a subtype declaration.
17596         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
17597         (Check_Null_Exclusion): New local routine to
17598         Analyze_Subprogram_Renaming. Check whether the formals and return
17599         profile of a renamed subprogram have required null exclusions when
17600         their counterparts of the renaming already impose them.
17601         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
17602         Determine whether an entity is inside a generic scope.
17603         (In_Open_Scope): First pass of documentation update.
17604         (Find_Expanded_Name): Add support for shadow entities associated with
17605         limited withed packages. This is required to handle nested packages.
17606         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
17607         that makes a renaming of a limited withed package illegal.
17608
17609 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17610             Ed Schonberg  <schonberg@adacore.com>
17611
17612         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
17613         Check_Overriding_Indicator.
17614         (Analyze_Task_Definition): Ditto.
17615         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
17616         (Check_Overriding_Indicator): To find overridden interface operation,
17617         examine only homonyms that have an explicit subprogram declaration, not
17618         inherited operations created by an unrelated type derivation.
17619         (Check_Overriding_Indicator): When checking for the presence of "null"
17620         in a procedure, ensure that the queried node is a procedure
17621         specification.
17622         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
17623         type when the formal is an access to variable.
17624         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
17625         (Analyze_Task_Type): Same addition
17626         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
17627         provide navigation capabilities for entries.
17628
17629 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17630             Ed Schonberg  <schonberg@adacore.com>
17631             Javier Miranda  <miranda@adacore.com>
17632             Gary Dismukes  <dismukes@adacore.com>
17633
17634         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
17635         inherited from an interface ancestor by another interface in the
17636         context of an instance as 'late'.
17637         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
17638         of a call to a function that dispatches on access result.
17639         (Check_Dispatching_Operation): In case of late overriding of a primitive
17640         that covers abstract interface subprograms we register it in all the
17641         secondary dispatch tables associated with abstract interfaces.
17642         (Check_Dispatching_Call): Add check that a dispatching call is not made
17643         to a function with a controlling result of a limited type. This is a
17644         current implementation restriction.
17645         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
17646         (Check_Dispatching_Operation): Do no emit a warning if the controlling
17647         argument is an interface type that is a generic formal.
17648         (Is_Interface_Subprogram): Removed.
17649         (Check_Dispatching_Operation): If the subprogram is not a dispatching
17650         operation, check the formals to handle the case in which it is
17651         associated with an abstract interface type.
17652
17653 2006-10-31  Robert Dewar  <dewar@adacore.com>
17654             Ed Schonberg  <schonberg@adacore.com>
17655
17656         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
17657         Add new calls to this procedure during traversal
17658         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
17659         another unit if expansion is disabled.
17660
17661 2006-10-31  Robert Dewar  <dewar@adacore.com>
17662
17663         * sem_eval.adb (Compile_Time_Compare): Make use of information from
17664         Current_Value in the conditional case, to evaluate additional
17665         comparisons at compile time.
17666
17667 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17668             Hristian Kirtchev  <kirtchev@adacore.com>
17669             Javier Miranda  <miranda@adacore.com>
17670
17671         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
17672         subprogram type to provide better diagnostics in case of ambiguity.
17673         (Covers): Handle coverage of formal and actual anonymous access types in
17674         the context of generic instantiation.
17675         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
17676         abstract interface types; this is required to handle concurrent types
17677         with discriminants and abstract interface types.
17678         (Covers): Include type coverage of both regular incomplete subtypes and
17679         incomplete subtypes of incomplete type visibles through a limited with
17680         clause.
17681
17682 2006-10-31  Robert Dewar  <dewar@adacore.com>
17683             Hristian Kirtchev  <kirtchev@adacore.com>
17684             Ed Schonberg  <schonberg@adacore.com>
17685
17686         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
17687         messages for entities in packages which are not used.
17688         (Collect_Synchronized_Interfaces): New procedure.
17689         (Overrides_Synchronized_Primitive): New function.
17690         (Denotes_Discriminant): Extend predicate to apply to task types.
17691         Add missing continuation marks in error msgs
17692         (Unqualify): New function for removing zero or more levels of
17693         qualification from an expression. There are numerous places where this
17694         ought to be used, but we currently only deal properly with zero or one
17695         level.
17696         (In_Instance); The analysis of the actuals in the instantiation of a
17697         child unit is not within an instantiation, even though the parent
17698         instance is on the scope stack.
17699         (Safe_To_Capture_Value): Exclude the case of variables that are
17700         renamings.
17701         (Check_Obsolescent): Removed
17702         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
17703         is an aliased view, even when rewritten as a reference to the target
17704         object in an assignment.
17705         (Get_Subprogram_Entity): New function
17706         (Known_To_Be_Assigned): New function
17707         (Type_Access_Level): Compute properly the access level of a return
17708         subtype that is an anonymous access type.
17709         (Explain_Limited_Type): Correct use of "\" for continuation messages.
17710         (Is_Transfer): The new extended_return_statement causes a transfer of
17711         control.
17712         (Has_Preelaborable_Initialization): New function
17713         (Has_Null_Exclusion): New function. Given a node N, determine whether it
17714         has a null exclusion depending on its Nkind.
17715         Change Is_Lvalue to May_Be_Lvalue
17716         (May_Be_Lvalue): Extensive additional code to deal with subprogram
17717         arguments (IN parameters are not Lvalues, IN OUT parameters are).
17718         (Safe_To_Capture_Value): Extend functionality so it can be used for
17719         the current value condition case.
17720         (Has_Compatible_Alignment): New function
17721         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
17722         objects to handle the Ada 2005 case, where aliasedness no longer implies
17723         that the object is constrained. In particular, for dereferenced names,
17724         the designated object must be assumed to be unconstrained.
17725         (Kill_Current_Values): Properly deal with the case where we encounter
17726         a loop in the scope chain.
17727         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
17728         a value.
17729         (Compile_Time_Constraint_Error): Improve error message in error case
17730
17731         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
17732         associated with entities of abstract interface primitives.
17733         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
17734
17735 2006-10-31  Robert Dewar  <dewar@adacore.com>
17736
17737         * s-osinte-tru64.adb: 
17738         Mark Asm statements Volatile to prevent warnings (seems a
17739         reasonable change anyway)
17740         Fixes new warnings
17741
17742         * s-mastop-irix.adb: Add Volatile to Asm statements
17743         Suppresses warning, and seems appropriate in any case
17744
17745         * s-osinte-vms.adb: Add Volatile to Asm statement
17746
17747         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
17748
17749         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
17750         returned.
17751         Add call to Check_Code_Statement
17752
17753 2006-10-31  Robert Dewar  <dewar@adacore.com>
17754             Ed Schonberg  <schonberg@adacore.com>
17755             Bob Duff  <duff@adacore.com>
17756
17757         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
17758         Synchronized_Present): Add Formal_Derived_Type_Definition and
17759         Private_Extension_Declaration to the list of assertions.
17760         (Is_Entry_Barrier_Function): New flag
17761         (Has_Self_Reference): New flag on aggregates, to indicate that they
17762         contain a reference to the enclosing type, inserted through a default
17763         initialization.
17764         (Next_Rep_Item): Move from Node4 to Node5.
17765         (Entity): Add this field for N_Attribute_Definition_Clause.
17766         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
17767         (N_Return_Object_Declaration): Remove this node kind. We now use
17768         N_Object_Declaration instead.
17769         (Actual_Designated_Subtype): Move to a different place to make room in
17770         N_Extended_Return_Statement.
17771         (Procedure_To_Call): Move to a different place to make room in
17772         N_Extended_Return_Statement.
17773         (Return_Type): Removed this field to make room in return statements
17774         (both kinds).
17775         (Return_Statement_Entity): New field in return statements, in part to
17776         replace Return_Type, and in part to support the fact that return
17777         statements are now pushed on the scope stack during semantic analysis.
17778         (Return_Object_Declarations): New field to support extended return
17779         statements.
17780         (N_Extended_Return_Statement): New node for extended_return_statement
17781         nonterminal.
17782         (N_Return_Object_Declaration): New node for part of
17783         extended_return_statement nonterminal. Needed because all the necessary
17784         fields won't fit in N_Extended_Return_Statement.
17785         Generic_associations now carry the Box_Present flag, to indicate a
17786         default for an actual in a partially parametrized formal package.
17787
17788         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
17789         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
17790         and for the new predefined dispatching policies: EDF_Across_Priorities,
17791         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
17792         Introduce new name Stub_Type for implementation defined attribute.
17793         Add pragma Preelaborable_Initialization
17794         Add entry for Priority attribute.
17795         Add Pragma_Wide_Character_Encoding
17796         (Get_Convention_Name): Given a convention id, this function returns the
17797         corresponding name id from the names table.
17798
17799 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17800             Robert Dewar  <dewar@adacore.com>
17801             Bob Duff  <duff@adacore.com>
17802
17803         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
17804         print null exclusion twice in the case of an access definition,
17805         Implement new -gnatL switch
17806         Remove N_Return_Object_Declaration. We now use
17807         N_Object_Declaration instead. Implement the case for
17808         N_Extended_Return_Statement. Alphabetize the cases.
17809         Add cases for new nodes N_Extended_Return_Statement and
17810         N_Return_Object_Declaration. The code is not yet written.
17811         Update the output for N_Formal_Object_Declaration
17812         and N_Object_Renaming_Declaration.
17813         (Write_Itype): Account for the case of a modular integer subtype whose
17814         base type is private.
17815
17816 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17817
17818         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
17819         Remove elaboration code, now done in the binder.
17820
17821         * s-rident.ads: Make this unit Preelaborate.
17822         (No_Restrictions): New constant used to clean up code and follow
17823         preelaborate constraints.
17824
17825         * s-stalib.adb: 
17826         Add System.Restrictions dependence, referenced directly from the
17827         binder generated file.
17828
17829 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
17830
17831         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
17832         True when AAMP extended floating-point is in use (48-bit). Change type
17833         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
17834         the two byte array types on AFloat. Change type of IV_Ilf overlay
17835         variable from Byte8 to ByteLF. Add appropriate initializations of
17836         floating-point overlays for AAMP cases.
17837
17838 2006-10-31  Javier Miranda  <miranda@adacore.com>
17839
17840         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
17841         (Get_Ceiling): New subprogram that returns
17842         the ceiling priority of the protected object.
17843         (Set_Ceiling): New subprogram that sets the new ceiling priority of
17844         the protected object.
17845
17846         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
17847
17848         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
17849
17850 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17851
17852         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
17853         requeuing to the same protected object to give higher priority tasks
17854         the opportunity to execute.
17855
17856 2006-10-31  Robert Dewar  <dewar@adacore.com>
17857
17858         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
17859         add more precise check for the character sequence that follows '[' to
17860         avoid possible confusion in case if '[' is the last character of a
17861         string literals.
17862         (Scan_Wide): Always allow brackets encoding
17863
17864 2006-10-31  Olivier Hainque  <hainque@adacore.com>
17865
17866         * s-stchop.ads: make this unit preelaborate. This is desirable in
17867         general and made mandatory by the use of this unit by s-taprop which
17868         is itself preelaborate.
17869
17870         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
17871         Td_Events component.
17872
17873 2006-10-31  Vincent Celier  <celier@adacore.com>
17874
17875         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
17876         in file names.
17877
17878 2006-10-31  Vincent Celier  <celier@adacore.com>
17879
17880         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
17881
17882 2006-10-31  Vincent Celier  <celier@adacore.com>
17883
17884         * makegpr.adb (Check_Compilation_Needed): Take into account path names
17885         with spaces.
17886         (Check_Compilation_Needed): When checking a C or C++ source, do not
17887         resolve symbolic links.
17888         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
17889         When not in verbose mode and Ellipse is True, display "..." for the
17890         first argument with Display set to False.
17891         (Build_Global_Archive): Always set Display True for the first object
17892         file. Call Display_Command with Ellipse set to True.
17893
17894 2006-10-31  Matt Heaney  <heaney@adacore.com>
17895
17896         * a-crbtgo.ads: Commented each subprogram
17897
17898         * a-crbtgo.adb: Added reference to book from which algorithms were
17899         adapted.
17900
17901         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
17902         indicate which child.
17903         (Generic_Conditional_Insert): changed parameter name from "Success" to
17904         "Inserted".
17905         (Generic_Unconditional_Insert_With_Hint): improved algorithm
17906
17907         * a-coorse.adb (Replace_Element): changed parameter name in call to
17908         conditional insert operation.
17909
17910         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
17911
17912         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
17913         Generic_Iteration
17914
17915         * a-ciorse.adb (Replace_Element): changed parameter name in call to
17916         conditional insert operation.
17917
17918         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
17919         Generic_Iteration.
17920
17921         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
17922         instead of mode inout.
17923
17924         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
17925         draft
17926         (Generic_Read): preserve existing buckets array if possible
17927         (Generic_Write): don't send buckets array length anymore
17928
17929         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
17930         instead of mode inout.
17931
17932         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
17933         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17934
17935         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
17936         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17937         (Replace_Element): local operation is now an instantiation
17938
17939         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
17940         check current length.
17941         (Generic_Replace_Element): new operation
17942
17943 2006-10-31  Doug Rupp  <rupp@adacore.com>
17944
17945         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
17946         Call TBK$SYMBOLIZE without omitting parameters.
17947
17948 2006-10-31  Vincent Celier  <celier@adacore.com>
17949
17950         * symbols-processing-vms-ia64.adb,
17951         symbols-processing-vms-alpha.adb (Process): Do not include symbols
17952         that come from generic instantiations in bodies.
17953
17954 2006-10-31  Pat Rogers  <rogers@adacore.com>
17955
17956         * a-rttiev.ads, a-rttiev.adb: 
17957         This is a significant redesign primarily for the sake of automatic
17958         timer task termination but also to fix a design flaw.
17959         Therefore we are now using an RTS lock, instead of a protected
17960         object, to provide mutual exclusion to the queue of pending events
17961         and the type Timing_Event is no longer a protected type.
17962
17963 2006-10-31  Robert Dewar  <dewar@adacore.com>
17964             Cyrille Comar  <comar@adacore.com>
17965             Ben Brosgol  <brosgol@adacore.com>
17966
17967         * debug.adb:  Update flags documentation
17968
17969         * gnat_ugn.texi: Add documentation for new -gnatwq switch
17970         Clean up documentation for several other warning switches
17971         Clarify how task stack size can be specified with various
17972         versions of Windows.
17973         Add note that -gnatVo includes ranges including loops
17974         Add documentation for -gnatL switch
17975         Add note on elaboration warning for initializing variables
17976         Add documentation for new -gnatwt warning switch
17977         Document new form of pragma Warnings (On|Off, string)
17978         Add comment on use of pragma Warnings to control warnings
17979         Add documentation for -gnatjnn switch
17980         Modify section on interfacing with C for VMS 64-bit.
17981         Add doc for -gnatVe/E
17982         Add documentation of new warning flags -gnatww/-gnatwW
17983         Add warnings about address clause overlays to list of warnings
17984         (Exception Handling Control): Document that the option --RTS must be
17985         used consistently for gcc and gnatbind.
17986         Clarify that inlining is not always possible
17987         Update documentation on pragma Unchecked_Union.
17988
17989         * gnat_rm.texi: 
17990         Add documentation for new extended version of pragma Obsolescent
17991         Add documentation for implementation defined attribute 'Stub_Type.
17992         Add note on use of Volatile in asm statements
17993         Add documentation on use of pragma Unreferenced in context clause
17994         Document new form of pragma Warnings (On|Off, pattern)
17995         Document pragma Wide_Character_Encoding
17996         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
17997         enforced if code generation is active.
17998         Add section on pragma Suppress to document GNAT specific check
17999         Alignment_Check
18000         Clarify difference between No_Dispatching_Calls & No_Dispatch.
18001         Add documentation for pragma Restrictions (No_Elaboration_Code)
18002
18003         * gnat-style.texi: 
18004         Add comments on layout of subprogram local variables in the
18005         presence of nested subprograms.
18006
18007         * ug_words: Resync.
18008
18009         * elists.ads: Minor reformatting
18010         Node returns Node_Or_Entity_Id (doc change only)
18011
18012         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18013
18014         * g-arrspl.ads (Create): Update comments.
18015
18016         * sem.ads: Add details on the handling of the scope stack.
18017
18018         * usage.adb: Update documentation.
18019
18020         * validsw.ads, validsw.adb: 
18021         Add definition of Validity_Check_Components and implement -gnatVe/E
18022
18023         * vms_data.ads: Add missing VMS qualifiers.
18024
18025         * s-addope.ads: Add documentation on overflow and divide by zero
18026
18027 2006-10-31  Robert Dewar  <dewar@adacore.com>
18028             Thomas Quinot  <quinot@adacore.com>
18029             Arnaud Charlet  <charlet@adacore.com>
18030
18031         * fmap.adb: Put routines in alpha order
18032
18033         * g-boumai.ads: Remove redundant 'in' keywords
18034
18035         * g-cgi.adb: Minor reformatting
18036
18037         * g-cgi.ads: Remove redundant 'in' keywords
18038
18039         * get_targ.adb: Put routines in alpha order
18040
18041         * prj-attr.ads: Minor reformatting
18042
18043         * s-atacco.ads: Minor reformatting
18044
18045         * scn.adb: Put routines in alpha order
18046
18047         * sinput-l.adb: Minor comment fix
18048
18049         * sinput-p.adb: Minor comment fix
18050
18051         * s-maccod.ads: Minor reformatting
18052
18053         * s-memory.adb: Minor reformatting
18054
18055         * s-htable.adb: Fix typo in comment.
18056
18057         * s-secsta.adb: Minor comment update.
18058
18059         * s-soflin.adb: Minor reformatting
18060
18061         * s-stoele.ads: 
18062         Add comment about odd qualification in Storage_Offset declaration
18063
18064         * s-strxdr.adb: 
18065         Remove unnecessary 'in' keywords for formal parameters.
18066
18067         * treeprs.adt: Minor reformatting
18068
18069         * urealp.adb: Put routines in alpha order
18070
18071         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
18072         taking string.
18073
18074         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18075
18076         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
18077
18078         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
18079         workaround as on other platforms.
18080
18081         * g-eacodu-vms.adb: Remove redundant 'in' keywords
18082         * g-expect-vms.adb: Remove redundant 'in' keywords
18083
18084         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
18085         clear error message if the list-of-files file cannot be opened.
18086
18087         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
18088         equality operator is always visible.
18089
18090         * lang.opt: Woverlength-strings: New option.
18091
18092         * nmake.adt: 
18093         Update copyright, since nmake.ads and nmake.adb have changed.
18094
18095         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
18096         (Binder_Output_Time_Stamps_Set): removed.
18097         (Old_Binder_Output_Time_Stamp): idem.
18098         (New_Binder_Output_Time_Stamp): idem.
18099         (Recording_Time_From_Last_Bind): idem.
18100         (Recording_Time_From_Last_Bind): Make constant.
18101
18102         * output.ads, output.adb (Write_Str): Allow LF characters
18103         (Write_Spaces): New procedure
18104
18105         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
18106
18107         * inline.adb: Minor reformatting
18108
18109         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18110
18111         * s-mastop-vms.adb: Remove redundant 'in' keywords
18112
18113         * s-osprim-vms.adb: Remove redundant 'in' keywords
18114
18115         * s-trafor-default.adb: Remove redundant 'in' keywords
18116
18117         * 9drpc.adb: Remove redundant 'in' keywords
18118
18119         * s-osinte-mingw.ads: Minor reformatting
18120
18121         * s-inmaop-posix.adb: Minor reformatting
18122
18123         * a-direio.ads: Remove quotes from Compile_Time_Warning message
18124
18125         * a-exexda.adb: Minor code reorganization
18126
18127         * a-filico.adb: Minor reformatting
18128
18129         * a-finali.adb: Minor reformatting
18130
18131         * a-nudira.ads: Remove quote from Compile_Time_Warning message
18132
18133         * a-numeri.ads: Minor reformatting
18134
18135         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
18136
18137         * exp_pakd.ads: Fix obsolete comment
18138
18139         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
18140         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
18141         Probably not a bug, but certainly neater and more efficient.
18142
18143         * a-tienio.adb: Minor reformatting
18144
18145         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
18146         Avoid assuming low bound of string is 1.
18147
18148         * gnatbind.adb: Change Bindusg to package and rename procedure as
18149         Display, which now ensures that it only outputs usage information once.
18150         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
18151
18152         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
18153         Table'First.
18154
18155         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
18156         warning.
18157         (Match): Add pragma Assert to ensure that Matches'First is zero
18158
18159         * g-regpat.ads (Match): Document that Matches lower bound must be zero
18160
18161         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
18162         documented preconditions (also kills warnings about bad indexes).
18163
18164         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
18165         is 1.
18166         (Build_Import_Library): Ditto;
18167
18168         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
18169
18170         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
18171
18172         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
18173         lower bound of choice table is 1.
18174
18175         * sem_case.ads (Analyze_Choices): Document that lower bound of
18176         Choice_Table is 1.
18177
18178         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
18179         string is 1.
18180
18181         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
18182         and add appropriate Assert pragma to suppress warnings.
18183
18184         * atree.h, atree.ads, atree.adb
18185         Change Elist24 to Elist25
18186         Add definitions of Field28 and Node28
18187         (Traverse_Field): Use new syntactic parent table in sinfo.
18188
18189         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18190
18191         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18192
18193         * exp_tss.adb: Put routines in alpha order
18194
18195         * fe.h: Remove redundant declarations.
18196
18197 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
18198
18199         * utils.c (builtin_function): Rename to gnat_builtin_function.
18200         Move common code to add_builtin_function.
18201         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
18202         gnat_builtin_function.
18203         * gigi.h (builtin_function): Rename to gnat_builtin_function.
18204         Change the signature.
18205
18206 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
18207
18208         * Makefile.in: Add TEXI2PDF definition.
18209         * Make-lang.in: Add "ada.pdf" target.
18210
18211 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
18212
18213         * decl.c, utils.c: Fix comment typos.
18214         * utils.c: Fix a typo.
18215
18216 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
18217
18218         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
18219         on "pure" Ada subprograms if SJLJ exceptions are used.
18220         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
18221         on the declaration node of JMPBUF_SAVE.
18222         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
18223         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
18224         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
18225
18226 2006-08-20  Laurent Guerby  <laurent@guerby.net>
18227
18228         PR ada/28716
18229         g-socket.adb (Bind_Socket): Call Set_Address.
18230
18231 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
18232
18233         PR ada/15802
18234         * decl.c (same_discriminant_p): New static function.
18235         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
18236         subtype and we have discriminants, fix up the COMPONENT_REFs
18237         for the discriminants to make them reference the corresponding
18238         fields of the parent subtype after it has been built.
18239
18240 2006-09-15  Roger Sayle  <roger@eyesopen.com>
18241
18242         PR ada/18817
18243         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
18244         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
18245
18246 2006-09-13  Olivier Hainque  <hainque@adacore.com>
18247
18248         PR ada/29025
18249         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
18250         of a SAVE_EXPR, just make the operand addressable/not-readonly and
18251         let the common gimplifier code make and propagate a temporary copy.
18252         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
18253         out/in-out actuals and defer setting the addressable/readonly bits
18254         to the gimplifier.
18255
18256 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
18257
18258         PR ada/28591
18259         * decl.c (components_to_record): Defer emitting debug info for the
18260         record type associated with the variant until after we are sure to
18261         actually use it.
18262
18263 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
18264
18265         PR ada/21952
18266         * gigi.h (gnat_internal_attribute_table): Declare.
18267         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
18268         * utils.c (gnat_internal_attribute_table): New global variable.
18269         (builtin_function): Always call decl_attributes on the builtin.
18270         (handle_const_attribute): New static function.
18271         (handle_nothrow_attribute): Likewise.
18272
18273 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
18274
18275         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
18276
18277 2006-06-23  Olivier Hainque  <hainque@adacore.com>
18278
18279         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
18280         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
18281
18282 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
18283             Eric Botcazou  <ebotcazou@adacore.com>
18284
18285         PR ada/18692
18286         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
18287         check-gnat into check-acats.
18288
18289 2006-06-17  Karl Berry  <karl@gnu.org>
18290
18291         * gnat-style.texi (@dircategory): Use "Software development"
18292         instead of "Programming", following the Free Software Directory.
18293
18294 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18295
18296         PR ada/27944
18297         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
18298
18299 2006-06-06  Laurent Guerby  <laurent@guerby.net>
18300
18301         PR ada/27769
18302         mlib-utl.adb: Use Program_Name.
18303
18304 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
18305
18306         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
18307         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
18308         trans.c, utils.c: Fix comment typos.  Follow spelling
18309         conventions.
18310         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
18311         conventions.
18312
18313 2006-05-19  Nicolas Setton  <setton@adacore.com>
18314
18315         * misc.c (gnat_dwarf_name): New function.
18316         (LANG_HOOKS_DWARF_NAME): Define to it.
18317
18318 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18319
18320         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
18321         (ada/misc.o): Likewise.
18322         (ada/utils.o): Likewise.
18323
18324 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
18325
18326         * Makefile.in: Add Ada support for GNU/kFreeBSD.
18327         * s-osinte-kfreebsd-gnu.ads: New file.
18328
18329 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
18330
18331         * Make-lang.in: Rename docdir to gcc_docdir.
18332
18333 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
18334
18335         * gigi.h (get_ada_base_type): Delete.
18336         * utils2.c (get_ada_base_type): Likewise.
18337         * trans.c (convert_with_check): Operate in the real base type.
18338
18339 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18340
18341         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
18342
18343 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
18344
18345         * utils.c (create_var_decl): Use have_global_bss_p when deciding
18346         whether to make the decl common.
18347
18348 2006-02-20  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
18349
18350         * Make-lang.in (Ada): Remove.
18351         (.PHONY): Remove Ada
18352
18353 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18354
18355         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
18356         aggregate, check the interpretations of the other operand to find one
18357         that may be a boolean array.
18358
18359         (Analyze_Selected_Component): Fix flow-of-control typo in case where
18360         the prefix is a private extension.
18361
18362 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
18363
18364         PR ada/26315
18365         * utils2.c (find_common_type): If both input types are BLKmode and
18366         have the same constant size, keep using the first one.
18367
18368         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
18369
18370         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
18371
18372         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
18373
18374 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
18375
18376         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
18377         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
18378         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
18379         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
18380         Abort_Defer/Undefer pairs to avoid the possibility of a task being
18381         aborted while owning a lock.
18382
18383 2006-02-17  Javier Miranda  <miranda@adacore.com>
18384             Robert Dewar  <dewar@adacore.com>
18385
18386         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
18387         through an access to class-wide interface we force the displacement of
18388         the pointer to the allocated object to reference the corresponding
18389         secondary dispatch table.
18390         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
18391         if Long_Shifts are supported on the target, even if 64 bit divides
18392         are not supported (configurable run time mode).
18393         (Expand_N_Type_Conversion): Do validity check if validity checks on
18394         operands are enabled.
18395         (Expand_N_Qualified_Expression): Do validity check if validity checks
18396         on operands are enabled.
18397
18398 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18399
18400         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
18401         must be materialized when the renamed expression is an explicit
18402         dereference.
18403
18404 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18405
18406         * freeze.adb (Statically_Discriminated_Components): Return false if
18407         the bounds of the type of the discriminant are not static expressions.
18408
18409         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
18410         the bounds of the discriminant type are not static.
18411
18412 2006-02-17  Robert Dewar  <dewar@adacore.com>
18413
18414         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
18415         then we close To if it is valid.
18416
18417 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
18418
18419         * init.c (facility_resignal_table): new array
18420         (__gnat_default_resignal_p): enhance default predicate to resignal if
18421         VMS condition has one of the predefined facility codes.
18422
18423 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
18424
18425         * Makefile.in: Use VMS64 specialized versions of several units in
18426         Interfaces.C hierarchy to be compatible with HP C default size choices.
18427         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
18428
18429 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18430
18431         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
18432         instantiation, the corresponding entity is the related_instance of the
18433         wrapper package created for the instance.
18434
18435 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18436
18437         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
18438         the current instance is nested within another instance in a child unit.
18439
18440 2006-02-17  Javier Miranda  <miranda@adacore.com>
18441             Ed Schonberg  <schonberg@adacore.com>
18442
18443         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
18444         type we cannot inherit the primitive operations; we inherit the
18445         Corresponding_Record_Type (which has the list of primitive operations).
18446         (Check_Anonymous_Access_Types): When creating anonymous access types for
18447         access components, use Rewrite in order to preserve the tree structure,
18448         for ASIS use.
18449         (Analyze_Object_Declaration): For limited types with access
18450         discriminants with defaults initialized by an aggregate, obtain
18451         subtype from aggregate as for other mutable types.
18452         (Derived_Type_Declaration): If the derived type is a limited interface,
18453         set the corresponding flag (Is_Limited_Record is not sufficient).
18454
18455 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
18456
18457         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
18458         to inline a function that returns an unconstrained type, the return
18459         expression must be the first variable declared in the body of the
18460         function.
18461
18462 2006-02-17  Javier Miranda  <miranda@adacore.com>
18463
18464         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
18465         abstract interface type, the static analysis is not enough to know if
18466         the interface is implemented or not by the source tagged type. Hence
18467         we must pass the work to the expander to generate the required code to
18468         evaluate the conversion at run-time.
18469         (Resolve_Equality_Op): Do not apply previous
18470         transformation if expansion is disasbled, to prevent anomalies when
18471         locating global references in a generic unit.
18472
18473 2006-02-17  Vincent Celier  <celier@adacore.com>
18474
18475         * snames.ads, snames.adb: New standard names for new project attributes:
18476         archive_builder, archive_indexer, compiler_pic_option,
18477         config_body_file_name, config_body_file_name_pattern,
18478         config_file_switches, config_file_unique, config_spec_file_name,
18479         config_spec_file_name_pattern, default_builder_switches,
18480         default_global_compiler_switches, default_language,
18481         dependency_file_kind, global_compiler_switches, include_path,
18482         include_path_file, language_kind, linker_executable_option,
18483         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
18484         roots, runtime_project.
18485
18486 2006-02-17  Matthew Heaney  <heaney@adacore.com>
18487
18488         * a-convec.ads, a-convec.adb: 
18489         (operator "&"): handle potential overflow for large index types
18490         (Insert): removed Contraint_Error when using large index types
18491         (Insert_Space): removed Constraint_Error for large index types
18492         (Length): moved constraint check from Length to Insert
18493
18494         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
18495         as not null access.
18496         Explicit raise statements now include an exception message.
18497         (operator "&"): handle potential overflow for large index types
18498         (Insert): removed Contraint_Error when using large index types
18499         (Insert_Space): removed Constraint_Error for large index types
18500         (Length): moved constraint check from Length to Insert
18501
18502 2006-02-17  Robert Dewar  <dewar@adacore.com>
18503
18504         * s-wchcnv.adb: Document handling of [ on output (we do not change
18505         this to ["5B"] and the new comments say why not.
18506
18507         * gnat_ugn.texi: 
18508         Add note for -gnatVo that this now includes the cases of type
18509         conversions and qualified expressions.
18510         Add comments on handling of brackets encoding for Text_IO
18511
18512 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
18513             Thomas Quinot  <quinot@adacore.com>
18514             Robert Dewar  <dewar@adacore.com>
18515             Javier Miranda  <miranda@adacore.com>
18516
18517         * expander.adb: Fix typo in comment
18518
18519         * exp_pakd.adb: Fix typo
18520         Minor comment reformatting.
18521
18522         * g-dyntab.adb: Minor reformatting
18523
18524         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
18525         aliased subprograms to look for the abstract interface subprogram.
18526
18527 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
18528
18529         * env.c (__gnat_setenv): Use size_t.
18530         (__gnat_unsetenv): Likewise.
18531         (__gnat_clearenv): Likewise.
18532
18533 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
18534
18535         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
18536
18537 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18538
18539         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
18540         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
18541         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
18542         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
18543         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
18544         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
18545         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
18546         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
18547         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
18548         no longer used.
18549
18550 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
18551
18552         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
18553         protection against race conditions is not needed.
18554         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
18555         fallback handler.
18556         (Set_Specific_Handler): Add mutual exclusive access to the specific
18557         handler.
18558         (Specific_Handler): Add mutual exclusive access for retrieving the
18559         specific handler.
18560
18561         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
18562         back handler.
18563
18564         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
18565         Fall_Back_Handler and Specific_Handler.
18566
18567         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
18568         termination handlers.
18569         Set two different owerflow depending on the maximal stack size.
18570
18571         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
18572         protection against race conditions is not needed when executing the
18573         task termination handler.
18574
18575 2006-02-13  Robert Dewar  <dewar@adacore.com>
18576
18577         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
18578         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
18579         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18580         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
18581         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
18582         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
18583         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
18584         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
18585         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
18586         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18587         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
18588         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
18589         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
18590         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
18591         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
18592         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
18593         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
18594         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
18595         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
18596         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
18597         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
18598         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
18599         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
18600         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
18601         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
18602         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
18603         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
18604         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
18605         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
18606         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
18607         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
18608         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
18609         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
18610         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
18611         reformatting.
18612
18613 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
18614
18615         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
18616         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
18617         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
18618         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
18619         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
18620         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
18621         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
18622         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
18623         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
18624
18625 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18626
18627         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
18628         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
18629         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
18630         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
18631         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
18632         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
18633         replaced by anonymous access type.
18634         (pthread_sigmask): Now take an access sigset_t
18635
18636         * s-osinte-hpux.ads:  Ditto.
18637         (pthread_mutex_t, pthread_cond_t): Update definitions to support
18638         properly 32 and 64 bit ABIs.
18639
18640 2006-02-13  Pascal Obry  <obry@adacore.com>
18641
18642         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
18643         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
18644         s-taprop-linux.adb, s-taprop-solaris.adb,
18645         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
18646         adjustement is already done when calling this routine.
18647
18648 2006-02-13  Pascal Obry  <obry@adacore.com>
18649
18650         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
18651         table to take advantage of the 16 priority levels available on Windows
18652         2000 and XP. On NT4 there are only 7 priority levels, this is properly
18653         supported by this new mapping.
18654
18655 2006-02-13  Nicolas Setton  <setton@adacore.com>
18656
18657         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
18658         (get_encoding): New subprogram. Extracts the encodings from an encoded
18659         Ada name.
18660
18661 2006-02-13  Pascal Obry  <obry@adacore.com>
18662             Nicolas Roche  <roche@adacore.com>
18663             Arnaud Charlet  <charlet@adacore.com>
18664
18665         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
18666         support.
18667         (__gnat_try_lock): Add unicode support by using a specific section on
18668         Windows.
18669         (__gnat_get_current_dir): Idem.
18670         (__gnat_open_read): Idem.
18671         (__gnat_open_rw): Idem.
18672         (__gnat_open_create): Idem.
18673         (__gnat_create_output_file): Idem.
18674         (__gnat_open_append): Idem.
18675         (__gnat_open_new): Idem.
18676         (__gnat_file_time_name): Idem.
18677         (__gnat_set_file_time_name): Idem.
18678         (__gnat_stat): Idem.
18679         (win32_no_block_spawn): Idem.
18680         (__gnat_locate_exec_on_path): Idem.
18681         (__gnat_opendir): New routine.
18682         (__gnat_closedir): Idem.
18683         (__gnat_readdir): Add new parameter length (pointer to int). Update
18684         implementation to use it and add specific Win32 code for Unicode
18685         support.
18686         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
18687         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
18688         (convert_addresses): Do not define this dummy routine on VMS.
18689
18690         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
18691         runtime Unicode support will be activated.
18692         (S2WS): String to Wide-String conversion. This version just copy a
18693         string in non Unicode version.
18694         (WS2S): Wide-String to String conversion. This version just copy a
18695         string in non Unicode version.
18696
18697         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
18698         (Open): Now import __gnat_opendir from adaint.c.
18699         (Read): Change the implementation to support unicode characters. It is
18700         not possible to use strlen() on Windows as this version supports only
18701         standard ASCII characters. So the length of the directory entry is now
18702         returned from the imported __gnat_readdir routine.
18703         Update copyright notice.
18704
18705         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
18706         (opendir): Moved to adaint.c.
18707
18708         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
18709         (Get_Directory): Fix wrong indexing.
18710         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
18711         __gnat_getenv from env.c
18712         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
18713         from env.c
18714
18715         * env.h, env.c: New file.
18716
18717         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
18718         adaint.c by __gnat_getenv from env.c
18719
18720         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
18721         adaint.c by __gnat_getenv from env.c
18722
18723         * Make-lang.in: Add env.o in the list of C object needed by gnat1
18724         and gnatbind.
18725         Update dependencies.
18726
18727 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18728             Olivier Hainque  <hainque@adacore.com>
18729             Eric Botcazou  <ebotcazou@adacore.com>
18730
18731         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
18732         
18733         * gigi.h (value_factor_p): Add prototype and description, now public.
18734
18735         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
18736         promotion for field with rep clause if the associated size was proven
18737         to be in error.
18738         Expand comments describing attempts to use a packable type.
18739         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
18740         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
18741         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
18742         necessary since these are not different types and pointers may
18743         actually designate any subtype in this hierarchy.
18744         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
18745         discriminants but put them into record only if not Unchecked_Union;
18746         pass flag to components_to_record showing Unchecked_Union.
18747         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
18748         components before variants; don't set TYPE_UNCHECKED_UNION_P.
18749         (components_to_record): New argument UNCHECKED_UNION.
18750         Remove special case code for Unchecked_Union and instead use main code
18751         with small changes.
18752
18753         PR ada/26096
18754         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
18755         variable with the expression being built, only its inner field.
18756
18757         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
18758         emit_sequence_entry_statements.
18759         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
18760         (establish_gnat_vms_condition_handler): Move before
18761         Subprogram_Body_to_gnu.
18762         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
18763         for a subprogram if it has a foreign convention or is exported.
18764         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
18765         substituted for a CONST_DECL.
18766         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
18767         Etype to assoc_to_constructor.
18768         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
18769         discriminants of Unchecked_Union.
18770         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
18771         don't need cluttering preprocessor directives.
18772         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
18773         condition handler as current in the compiled function.
18774         (body_with_handlers_p): New function. Tell whether a given sequence of
18775         statements node is attached to a package or subprogram body and involves
18776         exception handlers possibly nested within inner block statements.
18777         (emit_sequence_entry_statements): New function, to emit special
18778         statements on entry of sequences when necessary. Establish GNAT
18779         condition handler in the proper cases for VMS.
18780         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
18781         emit_sequence_entry_statements.
18782
18783         * utils2.c (find_common_type): If both input types are BLKmode and
18784         have a constant size, use the smaller one.
18785         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
18786         the same.
18787
18788         * utils.c (value_factor_p): Make public, to allow uses from other gigi
18789         units.
18790         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
18791         (convert, case UNION_TYPE): Remove special treatment for unchecked
18792         unions.
18793
18794         PR ada/18659
18795         (update_pointer_to): Update variants of pointer types to unconstrained
18796         arrays by attaching the list of fields of the main variant.
18797
18798 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18799             Robert Dewar  <dewar@adacore.com>
18800
18801         * a-exexpr.adb, a-exexpr-gcc.adb
18802         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
18803         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
18804         Remove code unused for exception propagation for the compiler itself
18805         from a-except.adb and update to still share separate packages.
18806
18807         * a-except.ads, a-except.adb: Ditto.
18808         Add comments that this version is now used only by the compiler and
18809         other basic tools. The full version that includes the Ada 2005 stuff
18810         is in separate files a-except-2005.ads/adb. The reason is that we do
18811         not want to cause bootstrap problems with compilers not recognizing
18812         Wide_Wide_String.
18813         Add exception reason code PE_Implicit_Return
18814         Add new exception reason code (Null Exception_Id)
18815
18816         * a-except-2005.adb, a-except-2005.ads: New files.
18817
18818         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
18819
18820         * s-wchcon.adb: New file.
18821
18822         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
18823         (traceback.o deps): Likewise.
18824         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
18825         Activate build of GMEM instrumentation library on VMS targets.
18826         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
18827         Use a-except-2005.ads/adb for all run-time library builds unless
18828         specified otherwise.
18829         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
18830         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
18831         Use s-parame.adb on all native platforms.
18832         Use s-parame-vxworks.adb on all vxworks platforms.
18833         Add env.c env.h in LIBGNAT_SRCS
18834         Add env.o in LIBGNAT_OBJS
18835         (GNATMAKE_OBJS): Remove ctrl_c.o object.
18836         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
18837         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
18838         supports VxWorks 6 RTPs.
18839         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
18840         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
18841
18842         * types.h, types.ads (Terminate_Program): New exception
18843         Add comment on modifying multiple versions of a-except.adb when the
18844         table of exception reasons is modified.
18845         Add exception reason code PE_Implicit_Return
18846         Add new exception reason code (Null Exception_Id)
18847
18848         * clean.adb (Initialize): Get the target parameters before checking
18849         if target is OpenVMS. Move the OpenVMS specific code here from package
18850         body elaboration code.
18851
18852 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18853             Vincent Celier  <celier@adacore.com>
18854             Robert Dewar  <dewar@adacore.com>
18855
18856         * ali-util.adb (Get_File_Checksum): Update to account for change in
18857         profile of Initialize_Scanner.
18858
18859         * gprep.adb (Gnatprep): Update to account for change in profile of
18860         Initialize_Scanner.
18861         (Process_One_File): Same.
18862
18863         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
18864         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
18865         that behaviour using the new Unit information recorded in the source
18866         files table, rather than going through all units every time.
18867         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
18868         (Get_Source_Unit): Same.
18869
18870         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
18871         change in profile of Initialize_Scanner.
18872         (Prepare_To_Preprocess): Same.
18873
18874         * lib.ads: Fix typo in comment (templace -> template).
18875
18876         * prj-part.adb (Parse_Single_Project): Update to account for change in
18877         profile of Initialize_Scanner.
18878
18879         * scn.adb (Initialize_Scanner): Account for change in profile of
18880         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
18881         Also record the association of the given Source_File_Index to the
18882         corresponding Unit_Number_Type.
18883
18884         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
18885         procedure.
18886         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
18887         Remove Unit formal for generic scanner: this formal
18888         is only relevant to Scn (the scanner instance used to parse Ada source
18889         files), not to other instances. Update comment accordingly.
18890         (Scan): Use new function Snames.Is_Keyword_Name.
18891
18892         * sinfo-cn.adb: Fix typo in comment.
18893
18894         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
18895         Unit.
18896
18897         * sinput.ads (Source_File_Record): New component Unit, used to capture
18898         the unit identifier (if any) associated to a source file.
18899
18900         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
18901         Unit in Source_File_Record.
18902
18903         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
18904         in profile of Initialize_Scanner.
18905
18906         * scans.adb (Initialize_Ada_Keywords): New procedure
18907
18908         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
18909         Ada keywords in the Namet table, without the need to call
18910         Initialize_Scanner.
18911
18912         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
18913         (Is_Keyword_Name): New function
18914
18915         * snames.ads: Add subtype Configuration_Pragma_Names
18916         Add pragma Ada_2005 (synonym for Ada_05)
18917         (Is_Keyword_Name): New function
18918
18919         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
18920
18921 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18922
18923         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
18924         index.
18925
18926         * a-stwima.adb (To_Set): Add extra check when N = 0.
18927
18928         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
18929
18930 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18931
18932         * s-parame-mingw.adb, s-parame-linux.adb,
18933         s-parame-solaris.adb: Removed, replaced by s-parame.adb
18934
18935         * s-parame-vxworks.ads: Fix typo.
18936
18937         * s-parame-vxworks.adb: New file.
18938
18939         * s-parame.adb: Version now used by all native platforms.
18940         (Default_Stack_Size): Use 2 megs for default stack size and use
18941         __gl_default_stack_size when available.
18942         (Minimum_Stack_Size): Use 12K.
18943
18944         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
18945         (Create_Task): Refine implementation taking advantage of the XP stack
18946         size support. On XP, we now create the thread using the flag
18947         STACK_SIZE_PARAM_IS_A_RESERVATION.
18948
18949         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
18950
18951         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
18952         XP and 0 on older Windows versions.
18953
18954         * interfac-vms.ads: Removed, no longer used.
18955
18956 2006-02-13  Matthew Heaney  <heaney@adacore.com>
18957
18958         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
18959         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
18960         a-cohase.adb: All explicit raise statements now include an exception
18961         message.
18962
18963         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
18964         (Update_Element_Preserving_Key): renamed op to just Update_Element.
18965         Explicit raise statements now include an exception message
18966
18967         * a-cihase.ads, a-cohase.ads: Removed comment.
18968
18969         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
18970         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
18971         a-szbzha.adb, a-szfzha.ads: New files.
18972
18973 2006-02-13  Matthew Heaney  <heaney@adacore.com>
18974
18975         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
18976         quicksort.
18977
18978 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
18979
18980         * lang.opt: Wvariadic-macros: New option.
18981         Wold-style-definition: Likewise.
18982         Wmissing-format-attribute: Likewise.
18983
18984         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
18985         -Wold-style-definition and -Wmissing-format-attribute.
18986
18987 2006-02-13  Robert Dewar  <dewar@adacore.com>
18988
18989         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
18990
18991         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
18992
18993 2006-02-13  Nicolas Roche  <roche@adacore.com>
18994
18995         * a-envvar.adb, a-envvar.ads: New files.
18996
18997 2006-02-13  Douglas Rupp  <rupp@adacore.com>
18998
18999         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19000
19001         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19002
19003 2006-02-13  Pat Rogers  <rogers@adacore.com>
19004
19005         * a-rttiev.adb, a-rttiev.ads: New files.
19006
19007 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19008
19009         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19010         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
19011
19012         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19013
19014 2006-02-13  Robert Dewar  <dewar@adacore.com>
19015
19016         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
19017         sem_case.adb: Minor code reorganization (not Present should be No)
19018
19019 2006-02-13  Geert Bosch  <bosch@adacore.com>
19020             Gary Dismukes  <dismukes@adacore.com>
19021
19022         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19023         0, since the lower bound of the actual string may be greater than one.
19024
19025         PR ada/20753
19026         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19027         layout is requested.
19028
19029 2006-02-13  Vincent Celier  <celier@adacore.com>
19030
19031         * back_end.adb (Scan_Compiler_Arguments): Check if
19032         Search_Directory_Present is True and, if it is, add the argument in
19033         the source search directory path.
19034
19035         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19036         Search_Directory_Present to True.
19037
19038 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
19039
19040         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19041         volatile, to tell the compiler to preserve this variable at any level
19042         of optimization.
19043         (Gen_Versions_Ada): Temporarily work around codegen bug.
19044
19045 2006-02-13  Vincent Celier  <celier@adacore.com>
19046
19047         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19048         gcc to link with option -shared-libgcc.
19049         (Gnatlink): Remove duplicate switches -shared-libgcc
19050
19051 2006-02-13  Robert Dewar  <dewar@adacore.com>
19052
19053         * gnatvsn.ads (Current_Year): New constant, used to easily update
19054         copyright on all GNAT tools.
19055
19056         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19057         copyright notice.
19058
19059 2006-02-13  Robert Dewar  <dewar@adacore.com>
19060
19061         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
19062         after hyphen (small aesthetic change useful for a range of numbers
19063         using ^-^.
19064         Suppress range checks for a couple of assignments which otherwise
19065         cause validity checks with validity checking turned on.
19066
19067         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
19068         Improvement in error message for object.
19069         (Rep_Item_Too_Late): Remove '!' in warning message.
19070
19071 2006-02-13  Robert Dewar  <dewar@adacore.com>
19072             Eric Botcazou  <ebotcazou@adacore.com>
19073
19074         * err_vars.ads: Suppress range checks for a couple of assignments
19075         which otherwise cause validity checks with validity checking turned on.
19076         Update comments.
19077
19078         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
19079         Make message unconditional if it is a warning.
19080         (Error_Msg_NEL): Always output warning messages.
19081         Suppress range checks for a couple of assignments which otherwise
19082         cause validity checks with validity checking turned on.
19083
19084         * errout.ads (Message Insertion Characters): Document that '!' is
19085         implied by '?' in error messages.
19086
19087         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
19088         (Gnat1drv): Use a goto to end of main subprogram instead of
19089         Exit_Program (E_Success) so that finalization can occur normally.
19090
19091 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19092
19093         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
19094         wrapped around.
19095
19096 2006-02-13  Vincent Celier  <celier@adacore.com>
19097
19098         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
19099         Unchecked_Conversion functions.
19100         (Modification_Time): Use direct conversion of OS_Time to Calendar time
19101         when OpenVMS returns False.
19102
19103         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
19104         a-dirval.adb (OpenVMS): New Boolean function
19105
19106 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19107             Thomas Quinot  <quinot@adacore.com>
19108
19109         * checks.adb (Build_Discriminant_Checks): If the expression being
19110         checks is an aggregate retrieve the values of its discriminants to
19111         generate the check, rather than creating a temporary and a reference
19112         to it.
19113         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
19114         (Install_Null_Excluding_Check): Ditto
19115         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
19116         not for the renamed object, so that the actual itype is attached in the
19117         proper context.
19118
19119 2006-02-13  Robert Dewar  <dewar@adacore.com>
19120             Vincent Celier  <celier@adacore.com>
19121
19122         * debug.adb: Eliminate numeric switches for binder/gnatmake
19123
19124         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
19125         switches for the compiler.
19126         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
19127         (Scan_Make_Switches): When failing with an illegal switch, output an
19128         error message with the full switch.
19129         Eliminate numeric switches for binder/gnatmake
19130
19131         * switch.ads, switch.adb (Bad_Switch): New procedure
19132
19133         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
19134         Remove 0-9 as debug flag character possibilities
19135         -d is now controlling the primary stack size when its value is a
19136         positive. Also add checks against invalid values, and support for kb,
19137         mb. Ditto for -D switch.
19138
19139 2006-02-13  Robert Dewar  <dewar@adacore.com>
19140             Serguei Rybin  <rybin@adacore.com>
19141
19142         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
19143         save/restore routines.
19144         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19145         were not always properly handled previously.
19146         Since we are changing the tree format anyway, also get rid of the
19147         junk obsolete Immediate_Errors flag.
19148         (Tree_Read): Change the way of reading Tree_Version_String - now we
19149         read the version string from the tree even if its length is not the
19150         same as the length of the version string computed from Gnatvsn.
19151         (Search_Directory_Present): New Boolean flag for the compiler.
19152         Define Tree_Version_String as a dynamic string.
19153         (Default_Stack_Size): new variable, used to handle switch -d.
19154
19155         * par-prag.adb: 
19156         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
19157         only for main unit.
19158         Add pragma Ada_2005 (synonym for Ada_05)
19159         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19160         were not always properly handled previously.
19161
19162         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
19163         explicit Ada_95 to Ada_2005.
19164
19165 2006-02-13  Javier Miranda  <miranda@adacore.com>
19166             Robert Dewar  <dewar@adacore.com>
19167             Ed Schonberg  <schonberg@adacore.com>
19168
19169         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
19170         against errors in the source program: a private types for which the
19171         corresponding full type declaration is missing and pragma CPP_Virtual
19172         is used.
19173         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
19174         (Is_Known_Null): New flag
19175         (Has_Pragma_Pure): New flag
19176         (No_Return): Present in all entities, set only for procedures
19177         (Is_Limited_Type): A type whose ancestor is an interface is limited if
19178         explicitly declared limited.
19179         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
19180         entities. Only used for component marked Is_Tag. If present it stores
19181         the Offset_To_Top function used to provide this value in tagged types
19182         whose ancestor has discriminants.
19183
19184         * exp_ch2.adb: Update status of new Is_Known_Null flag
19185
19186         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
19187
19188         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
19189         the categorization sense if Is_Pure was set by pragma Pure_Function.
19190
19191 2006-02-13  Quentin Ochem  <ochem@adacore.com>
19192             Olivier Hainque  <hainque@adacore.com>
19193
19194         * bindusg.adb: Updated documentation for -d and -D switches.
19195
19196         * raise.h (__gnat_set_globals): added new parameter for
19197         Default_Stack_Size.
19198
19199         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
19200         (__gnat_handle_vms_condition): Adjust context before raise.
19201         (__gnat_install_handler): Restore the global vector setup for GCC
19202         versions before 3.4, as the frame based circtuitry is not available
19203         in this case.
19204         (__gnat_set_globals): added a parameter default_stack_size
19205         (__gl_default_stack_size): new variable.
19206
19207 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19208
19209         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
19210         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
19211         does not exist in the Ada RM.
19212         (Compatible_Int_Bounds): Determine whether two integer range bounds
19213         are of equal length and have the same start and end values.
19214         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
19215         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
19216         aggregate when it is part of an object declaration.
19217         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
19218         constrains discriminants of its parent, add explicitly the discriminant
19219         constraints of the ancestor by retrieving them from the
19220         stored_constraint of the parent.
19221
19222 2006-02-13  Robert Dewar  <dewar@adacore.com>
19223
19224         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
19225         attribute Mechanism_Code is applied to renamed subprogram, modify
19226         prefix to point to base subprogram.
19227         Max/Min attributes now violate Restriction No_Implicit_Conditionals
19228
19229         * sinfo.ads: Document that Mechanism_Code cannot be applied to
19230         renamed subprograms so that the front-end must replace the prefix
19231         appropriately.
19232
19233 2006-02-13  Javier Miranda  <miranda@adacore.com>
19234             Gary Dismukes  <dismukes@adacore.com>
19235
19236         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
19237         availability of RE_Interface_Tag.
19238         (Build_Initialization_Call): Fix wrong access to the discriminant value.
19239         (Freeze_Record_Type): Do not generate the tables associated with
19240         timed and conditional dispatching calls through synchronized
19241         interfaces if compiling under No_Dispatching_Calls restriction.
19242         When compiling for Ada 2005, for a nonabstract
19243         type with a null extension, call Make_Controlling_Function_Wrappers
19244         and insert the wrapper function declarations and bodies (the latter
19245         being appended as freeze actions).
19246         (Predefined_Primitive_Bodies): Do not generate the bodies of the
19247         predefined primitives associated with timed and conditional
19248         dispatching calls through synchronized interfaces if we are
19249         compiling under No_Dispatching_Calls.
19250         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
19251         service is available before generating a call.
19252         (Make_Controlling_Function_Wrappers): New procedure.
19253         (Expand_N_Full_Type_Declaration): Create a class-wide master for
19254         access-to-limited-interfaces because they can be used to reference
19255         tasks that implement such limited interface.
19256         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
19257         procedure spec and body of the Offset_To_Top function that is generated
19258         when the parent of a type with discriminants has secondary dispatch
19259         tables.
19260         (Init_Secondary_Tags): Handle the case in which the parent of the type
19261         containing secondary dispatch tables has discriminants to generate the
19262         correct arguments to call Set_Offset_To_Top.
19263         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
19264
19265         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
19266         Add Wide_[Wide_]Expanded_Name.
19267         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
19268         the same functionality of Get_Prim_Op_Address but applied to predefined
19269         primitive operations because the pointers to the predefined primitives
19270         are now saved in a separate table.
19271         (Parent_Size): Modified to get access to the separate table of primitive
19272         operations or the parent type.
19273         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
19274         functionality of Set_Prim_Op_Address but applied to predefined primitive
19275         operations.
19276         (Set_Signature): New subprogram used to store the signature of a DT.
19277         (Displace): If the Offset_To_Top value is not static then call the
19278         function generated by the expander to get such value; otherwise use
19279         the value stored in the table of interfaces.
19280         (Offset_To_Top): The type of the actual has been changed to Address to
19281         give the correct support to tagged types with discriminants. In this
19282         case this value is stored just immediately after the tag field.
19283         (Set_Offset_To_Top): Two new formals have been added to indicate if the
19284         offset_to_top value is static and hence pass this value to the run-time
19285         to store it in the table of interfaces, or else if this value is dynamic
19286         and then pass to the run-time the address of a function that is
19287         generated by the expander to provide this value for each object of the
19288         type.
19289
19290         * rtsfind.ads (Default_Prin_Op_Count): Removed.
19291         (Default_Prim_Op_Count): New entity
19292         (Get_Predefined_Prim_Op_Address): New entity
19293         (Set_Predefined_Prim_Op_Address): New entity
19294         (RE_Set_Signature): New entity
19295
19296 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19297             Ed Schonberg  <schonberg@adacore.com>
19298
19299         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
19300         Make_Adjust_Call done for a newly-allocated object.
19301
19302         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
19303         in a subprogram are wrapped in a cleanup block, indicate that the
19304         subprogram contains an inner block with an exception handler.
19305         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
19306         Adjust call is for a newly-allocated object. In that case we must not
19307         assume that the finalization list chain pointers are correct (since they
19308         come from a bit-for-bit copy of the original object's pointers) so if
19309         the attach level would otherwise be zero (no change), we set it to 4
19310         instead to cause the pointers to be reset to null.
19311
19312         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
19313         reset chain pointers to null.
19314
19315 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19316
19317         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
19318         string, and the context requires a loop for the assignment (e.g.
19319         because the left-hand side is packed), generate a unique name for the
19320         temporary that holds the string, to prevent spurious name clashes.
19321
19322 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19323             Javier Miranda  <miranda@adacore.com>
19324             Robert Dewar  <dewar@adacore.com>
19325             Gary Dismukes  <dismukes@adacore.com>
19326
19327         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
19328         return unconstrained arrays.
19329         Update comments.
19330         (Expand_Call):  An indirect call through an access parameter of a
19331         protected operation is not a protected call.
19332         Add circuit to raise CE in Ada 2005 mode following call
19333         to Raise_Exception.
19334         (Register_DT_Entry): Do nothing if
19335         the run-time does not give support to abstract interfaces.
19336         (Freeze_Subprogram): In case of dispatching operations, do not generate
19337         code to register the operation in the dispatch table if the source
19338         is compiled with No_Dispatching_Calls.
19339         (Register_Predefined_DT_Entry): Generate code that calls the new
19340         run-time subprogram Set_Predefined_Prim_Op_Address instead of
19341         Set_Prim_Op_Address.
19342
19343         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
19344         on array assignments if the right-hand side is a function call that has
19345         been inlined. Check is performed on the assignment in the block.
19346         (Process_Bounds): If bounds and range are overloaded, apply preference
19347         rule for root operations to disambiguate, and diagnose true ambiguity.
19348         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
19349         a tag-indeterminate right-hand side even when Expander_Active is True.
19350         Needed to ensure that dispatching calls to T'Input are allowed and
19351         get the tag of the target class-wide object.
19352
19353         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
19354         an inherited primitive operation that already overrides several
19355         abstract interface primitives. For transitivity, the new entity must
19356         also override all the abstract interface primitives covered by the
19357         inherited overriden primitive.
19358         Emit warning if new entity differs from homograph in same scope only in
19359         that one has an access parameter and the other one has a parameter of
19360         a general access type with the same designated type, at the same
19361         position in the signature.
19362         (Make_Inequality_Operator): Use source locations of parameters and
19363         subtype marks from corresponding equality operator when creating the
19364         tree structure for the implicit declaration of "/=". This does not
19365         change anything in behaviour except that the decoration of the
19366         components of the subtree created for "/=" allows ASIS to get the
19367         string images of the corresponding identifiers.
19368         (Analyze_Return_Statement): Remove '!' in warning message.
19369         (Check_Statement_Sequence): Likewise.
19370         (Analyze_Subprogram_Body): For an access parameter whose designated type
19371         is an incomplete type imported through a limited_with clause, use the
19372         type of the corresponding formal in the body.
19373         (Check_Returns): Implicit return in No_Return procedure now raises
19374         Program_Error with a compile time warning, instead of beging illegal.
19375         (Has_Single_Return):  Function returning unconstrained type cannot be
19376         inlined if expression in unique return statement is not an identifier.
19377         (Build_Body_To_Inline): It is possible to inline a function call that
19378         returns an unconstrained type if all return statements in the function
19379         return the same local variable. Subsidiary procedure Has_Single_Return
19380         verifies that the body conforms to this restriction.
19381
19382         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
19383         same type, and  one of them is of an anonymous access type, convert
19384         the other operand to it, so that this is a valid binary operation for
19385         gigi.
19386         (Resolve_Type_Conversion): Handle subtypes of protected types and
19387         task types when accessing to the corresponding record type.
19388         (Resolve_Allocator): Add '\' in 2-line warning message.
19389         Remove '!' in warning message.
19390         (Resolve_Call): Add '\' in 2-line warning message.
19391         (Valid_Conversion): Likewise.
19392         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
19393         resulting type may be an access type with an implicit dereference.
19394         Obtain the proper component from the designated type.
19395         (Make_Call_Into_Operator): Handle properly a call to predefined equality
19396         given by an expanded name with prefix Standard, when the operands are
19397         of an anonymous access type.
19398         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
19399         Explicit_Dereference and Resolve_Selected_Component, to verify that the
19400         prefix of the expression is not of an incomplete type. Allows full
19401         diagnoses of all semantic errors.
19402         (Resolve_Actuals): If the actual is an allocator whose directly
19403         designated type is a class-wide interface we build an anonymous
19404         access type to use it as the type of the allocator. Later, when
19405         the subprogram call is expanded, if the interface has a secondary
19406         dispatch table the expander will add a type conversion to force
19407         the displacement of the pointer.
19408         (Resolve_Call): If a function that returns an unconstrained type is
19409         marked Inlined_Always and inlined, the call will be inlined and does
19410         not require the creation of a transient scope.
19411         (Check_Direct_Boolean_Op): Removed
19412         (Resolve_Comparison_Op): Remove call to above
19413         (Resolve_Equality_Op): Remove call to above
19414         (Resolve_Logical_Op): Inline above, since this is only call.
19415         (Valid_Conversion): Handle properly conversions between arrays of
19416         convertible anonymous access types.
19417
19418         PR ada/25885
19419         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
19420         the literal in an unchecked conversion, because GCC 4.x needs a static
19421         value for a string bound.
19422
19423 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19424             Hristian Kirtchev  <kirtchev@adacore.com>
19425
19426         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
19427         components of the corresponding record, take into account component
19428         definitions that are access definitions.
19429         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
19430         procedure is not considered a dispatching call and will be expanded
19431         properly.
19432
19433 2006-02-13  Javier Miranda  <miranda@adacore.com>
19434
19435         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
19436         controlling argument of the dispatching call is an abstract interface
19437         class-wide type then we use it directly.
19438         Check No_Dispatching_Calls restriction.
19439         (Default_Prim_Op_Position): Remove the code that looks for the last
19440         entity in the list of aliased subprograms. This code was wrong in
19441         case of renamings.
19442         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
19443         when the source is compiled with the No_Dispatching_Calls restriction.
19444         (Init_Predefined_Interface_Primitives): No need to inherit primitives
19445         if we are compiling with restriction No_Dispatching_Calls.
19446         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
19447         subprograms if we are compiling under No_Dispatching_Calls restriction.
19448         (Make_DT): Generate a dispatch table with a single dummy entry if
19449         we are compiling with the No_Dispatching_Calls restriction. In
19450         addition, in this case we don't generate code that calls to the
19451         following run-time subprograms: Set_Type_Kind, Inherit_DT.
19452         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
19453         of this subprogram if compiling with the No_Dispatching_Calls
19454         restriction.
19455         (Expand_Type_Conversion): Instead of using the actual parameter,
19456         the argument passed as parameter to the conversion function was
19457         erroneously referenced by the expander.
19458         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
19459         Set_Predefined_Primitive_Op_Address and Set_Signature.
19460         (Expand_Dispatching_Call): Generate call to
19461         Get_Predefined_Prim_Op_Address for predefined primitives.
19462         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
19463         predefined primitives.
19464         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
19465         primitives we reserve one dummy entry to ensure that the tag does not
19466         point to some memory that is associated with some other object. In
19467         addition, remove all the old code that generated the assignments
19468         associated with the signature of the dispatch table and replace them
19469         by a call to the new subprogram Set_Signature.
19470         (Set_All_DT_Position): Change the algorithm because now we have a
19471         separate dispatch table associated with predefined primitive operations.
19472         (Expand_Interface_Conversion): In case of non-static offset_to_top
19473         add explicit dereference to get access to the object after the call
19474         to displace the pointer to the object.
19475         (Expand_Interface_Thunk): Modify the generation of the actual used
19476         in the calls to the run-time function Offset_To_Top to fulfil its
19477         new interface.
19478         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
19479
19480 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19481
19482         * exp_dist.adb (Copy_Specification): For access parameters, copy
19483         Null_Exclusion flag, which will have been set for stream subprograms
19484         in Ada2005 mode.
19485
19486 2006-02-13  Pascal Obry  <obry@adacore.com>
19487
19488         * expect.c (__gnat_expect_portable_execvp): New implementation. The
19489         previous implementation was using the C runtime spawnve routine but
19490         the corresponding wait was using directly the Win32 API. This was
19491         causing some times a lock when waiting for an event using
19492         WaitForSingleObject in __gnat_waitpid. This new implementation uses
19493         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
19494         API fixes this problem.
19495
19496 2006-02-13  Robert Dewar  <dewar@adacore.com>
19497
19498         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
19499         call.
19500
19501 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19502
19503         * exp_pakd.ads: Fix typos in comments.
19504
19505         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
19506         array reference that is an explicit dereference, mark the converted
19507         (packed) array reference as analyzed to prevent a forthcoming
19508         reanalysis from resetting its type to the original (non-packed) array
19509         type.
19510
19511 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19512             Javier Miranda  <miranda@adacore.com>
19513             Eric Botcazou  <ebotcazou@adacore.com>
19514
19515         * exp_util.ads, exp_util.adb (Find_Prim_Op,
19516         Is_Predefined_Primitive_Operation): When
19517         searching for the predefined equality operator, verify that operands
19518         have the same type.
19519         (Is_Predefined_Dispatching_Operation): Remove the code that looks
19520         for the last entity in the list of aliased subprograms. This code
19521         was wrong in case of renamings.
19522         (Set_Renamed_Subprogram): New procedure
19523         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
19524         Exp_Type constant computed when entering this subprogram.
19525         (Known_Null): New function
19526         (OK_To_Do_Constant_Replacement): New function
19527         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
19528         (Side_Effect_Free): An attribute reference 'Input is not free of
19529         side effect, unlike other attributes that are functions. (from code
19530         reading).
19531         (Remove_Side_Effects): Expressions that involve packed arrays or records
19532         are copied at the point of reference, and therefore must be marked as
19533         renamings of objects.
19534         (Is_Predefined_Dispatching_Operation): Return false if the operation is
19535         not a dispatching operation.
19536
19537         PR ada/18819
19538         (Remove_Side_Effects): Lift enclosing type conversion nodes for
19539         elementary types in all cases.
19540
19541 2006-02-13  Javier Miranda  <miranda@adacore.com>
19542
19543         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
19544         task types when accessing to the corresponding record type.
19545         Remove '!' in warning message.
19546
19547 2006-02-13  Olivier Hainque  <hainque@adacore.com>
19548
19549         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
19550         to avoid useless and space inefficient overalignments on targets where
19551         Max_Alignment is larger than 16.
19552
19553 2006-02-13  Pascal Obry  <obry@adacore.com>
19554
19555         * g-catiio.adb (Sec_Number): New type used to compute the number of
19556         seconds since 1-1-1970.
19557         (Image) [Natural]: The parameter was an Integer, as we can't deal with
19558         negative numbers (years, months...) it is better to have a Natural here.
19559         Code clean-up.
19560         (Image) [Number]: Change parameter from Long_Integer to Number.
19561         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
19562         overflow for dates past year 2038.
19563
19564 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19565
19566         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
19567         Constraint_Error.
19568
19569 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19570
19571         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
19572         native platforms.
19573         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
19574         finalization can occur normally.
19575
19576 2006-02-13  Vincent Celier  <celier@adacore.com>
19577
19578         * gnatcmd.adb (Rules_Switches): New table
19579         (Add_To_Rules_Switches): New procedure
19580         (GNATCmd): For command CHECK, put all options following "-rules" in the
19581         Rules_Switches table. Append these -rules switches after the -cargs
19582         switches.
19583
19584 2006-02-13  Robert Dewar  <dewar@adacore.com>
19585
19586         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
19587         These two cases were generating incorrect output, and if this unit
19588         was built with checks on, generated a discriminant mismatch constraint
19589         error.
19590
19591 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19592             Robert Dewar  <dewar@adacore.com>
19593
19594         * lib-xref.adb (Get_Type_Reference): For a private type whose full
19595         view is an array type, indicate the component type as well, for
19596         navigation purposes.
19597         (Generate_Reference): Don't consider array ref on LHS to be a case
19598         of violating pragma Unreferenced.
19599         Do not give Ada 2005 warning except on real reference.
19600
19601 2006-02-13  Vincent Celier  <celier@adacore.com>
19602
19603         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
19604         main source, add switch -mdebug-main=_ada_ so that the executable can
19605         be debugged by the standard VMS debugger.
19606         (Gnatmake): Set No_Main_Subprogram to True when there is no main
19607         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
19608         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
19609         of the last source, as the binding and linking phases are never
19610         performed.
19611         Set all executable obsolete when rebuilding a library.
19612
19613         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
19614         options.
19615
19616 2006-02-13  Javier Miranda  <miranda@adacore.com>
19617
19618         PR ada/23973
19619         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
19620         code to improve the error message reported when the program has
19621         declarations of abstract interface types and it is not compiled with
19622         the -gnat05 switch.
19623         (P_Access_Definition): Reorganize the code to improve the error
19624         message reported when the new Ada 2005 syntax for anonymous
19625         access types is used and the program is not compiled with the
19626         -gnat05 switch.
19627
19628 2006-02-13  Robert Dewar  <dewar@adacore.com>
19629
19630         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
19631         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
19632         (MODE_IN)
19633
19634 2006-02-13  Javier Miranda  <miranda@adacore.com>
19635
19636         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
19637         against source containing syntax errors.
19638
19639 2006-02-13  Vincent Celier  <celier@adacore.com>
19640
19641         * prj.adb (Reset): Initialize the first element of table Namings with
19642         the standard naming data.
19643
19644 2006-02-13  Vincent Celier  <celier@adacore.com>
19645
19646         * prj.ads (Error_Warning): New enumeration type
19647
19648         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
19649         unknown, use the location of the project to report the error.
19650         (When_No_Sources): New global variable
19651         (Report_No_Ada_Sources): New procedure
19652         (Check): New parameter When_No_Sources. Set value of global variable
19653         When_No_Sources,
19654         (Find_Sources): Call Report_No_Ada_Sources when appropriate
19655         (Get_Sources_From_File): Ditto
19656         (Warn_If_Not_Sources): Better warning messages indicating the unit name
19657         and the file name.
19658
19659         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
19660         Call Prj.Proc.Process with parameter When_No_Sources.
19661
19662         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
19663         Call Recursive_Check with parameter When_No_Sources.
19664         (Recursive_Check): New parameter When_No_Sources. Call itself and
19665         Prj.Nmsc.Check with parameter When_No_Sources.
19666         (Process): New parameter When_No_Sources. Call Check with parameter
19667         When_No_Sources.
19668         (Copy_Package_Declarations): New procedure to copy renamed parameters
19669         and setting the location of the declared attributes to the location
19670         of the renamed package.
19671         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
19672         packages.
19673
19674 2006-02-13  Vincent Celier  <celier@adacore.com>
19675
19676         * prj-makr.adb (Make): Preserve the comments from the original project
19677         file.
19678         When removing nodes (attributes Source_Dirs, Source_Files,
19679         Source_List_File and package Naming), save the comments and attach the
19680         saved comments to the newly created nodes.
19681         Do not add a with clause for the naming package if one already exists.
19682
19683 2006-02-13  Javier Miranda  <miranda@adacore.com>
19684             Gary Dismukes  <dismukes@adacore.com>
19685             Robert Dewar  <dewar@adacore.com>
19686
19687         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
19688
19689         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
19690         aliased entities to look for the overriden abstract interface
19691         subprogram.
19692         (Is_Interface_Subprogram): Complete documentation.
19693         (Check_Dispatching_Operation): Do not generate code to register the
19694         operation in the dispatch table if the source is compiled with
19695         restriction No_Dispatching_Calls.
19696         (Override_Dispatching_Operation): Check for illegal attempt to override
19697         No_Return procedure with procedure that is not No_Return
19698         (Check_Dispatching_Call): Suppress the check for an abstract operation
19699         when the original node of an actual is a tag-indeterminate attribute
19700         call, since the attribute, which must be 'Input, can never be abstract.
19701         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
19702         call to the Input attribute (even when rewritten).
19703         (Propagate_Tag): Augment comment to indicate the possibility of a call
19704         to an Input attribute.
19705
19706         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
19707         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
19708
19709         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
19710         No_Wide_Characters is no longer partition-wide
19711         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
19712         rather than GNAT
19713
19714 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19715
19716         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
19717
19718 2006-02-13  Javier Miranda  <miranda@adacore.com>
19719
19720         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
19721         handles default-initialized components to keep separate the management
19722         of this feature but also avoid the unrequired resolution and
19723         expansion of components that do not have partially initialized
19724         values.
19725         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
19726         (Check_Bounds): Likewise.
19727         (Check_Length): Likewise.
19728
19729 2006-02-13  Javier Miranda  <miranda@adacore.com>
19730             Ed Schonberg  <schonberg@adacore.com>
19731
19732         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
19733         abstract interface type call analyze_and_resolve to expand the type
19734         conversion into the corresponding displacement of the
19735         reference to the base of the object.
19736         (Eval_Attribute, case Width): For systems where IEEE extended precision
19737         is supported, the maximum exponent occupies 4 decimal digits.
19738         (Accessibility_Message): Add '\' in 2-line warning message.
19739         (Resolve_Attribute): Likewise.
19740         (case Attribute_Access): Significantly revise checks
19741         for illegal access-to-subprogram Access attributes to properly enforce
19742         the rules of 3.10.2(32/2).
19743         Diagnose use of current instance with an illegal attribute.
19744
19745         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
19746         to a Node_Id.
19747         (Enclosing_Generic_Unit): New function to return a node's innermost
19748         enclosing generic declaration node.
19749         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
19750         (Type_Access_Level): The accessibility level of anonymous acccess types
19751         associated with discriminants is that of the current instance of the
19752         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
19753         (Compile_Time_Constraint_Error): Handle case of conditional expression.
19754         (Kill_Current_Values_For_Entity): New function
19755         (Enter_Name): Change formal type to Entity_Id
19756
19757 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19758             Ed Schonberg  <schonberg@adacore.com>
19759             Gary Dismukes  <dismukes@adacore.com>
19760
19761         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
19762         Analyze_Compilation_Unit.
19763         Detect and warn on redundant with clauses detected in a package spec
19764         and/or body when -gnatwr is used.
19765         (Analyze_Context): Analyze config pragmas before other items
19766         (Install_Context_Items): Don't analyze config pragmas here
19767         (Install_Limited_Withed_Unit): Set limited entity of package in
19768         with_clause so that cross-reference information or warning messages on
19769         unused packages can be properly generated
19770         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
19771         has Error_Posted set. Prevent infinite loops in illegal programs.
19772         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
19773         to the point of the error test requiring the current unit to be private.
19774         This ensures that private with clauses are not exempted from the basic
19775         checking for being a descendant of the same library unit parent as a
19776         withed private descendant unit.
19777         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
19778         handle private with clauses properly, as well as to account for cases
19779         where the withed unit is a public descendant of a private ancestor
19780         (in which case the current unit must be a descendant of the private
19781         ancestor's parent). The spec comments were updated accordingly. Also,
19782         the old error message in this subprogram was replaced with error
19783         messages that mirror the errors tested and reported by
19784         Check_Private_Child_Unit.
19785         Parameter and variable names improved for readability.
19786         (Install_Limited_Context_Clauses): Remove test for a withed unit being
19787         private as the precondition for calling
19788         Check_Private_Limited_Withed_Unit since that subprogram has been
19789         revised to test public units as well as private units.
19790
19791 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19792             Robert Dewar  <dewar@adacore.com>
19793             Ed Schonberg  <schonberg@adacore.com>
19794             Javier Miranda  <miranda@adacore.com>
19795
19796         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
19797         that Scope_Stack.First = 1.
19798         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19799         were not always properly handled previously.
19800         (Formal_Entity): Complete rewrite, to handle properly some complex case
19801         with multiple levels of parametrization by formal packages.
19802         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
19803         to the corresponding derived type declaration for proper semantics.
19804
19805         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
19806         (Check_Component): Enforce restriction on components of
19807         unchecked_unions: a component in a variant cannot contain tasks or
19808         controlled types.
19809         (Unchecked_Union): Allow nested variants and multiple discriminants, to
19810         conform to AI-216.
19811         Add pragma Ada_2005 (synonym for Ada_05)
19812         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19813         were not always properly handled previously.
19814         Document that pragma Propagate_Exceptions has no effect
19815         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
19816         (Set_Convention_From_Pragma): Check that if a convention is
19817         specified for a dispatching operation, then it must be
19818         consistent with the existing convention for the operation.
19819         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
19820         longer required to specify an vtable-ptr component in the record. For
19821         compatibility reasons we leave the support for the previous definition.
19822         (Analyze_Pragma, case No_Return): Allow multiple arguments
19823
19824         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
19825         non-overrideen inherited operation with a controlling result as
19826         illegal only its implicit declaration comes from the derived type
19827         declaration of its result's type.
19828         (Check_Possible_Deferred_Completion): Relocate the object definition
19829         node of the subtype indication of a deferred constant completion rather
19830         than directly analyzing it. The analysis of the generated subtype will
19831         correctly decorate the GNAT tree.
19832         (Record_Type_Declaration): Check whether this is a declaration for a
19833         limited derived record before analyzing components.
19834         (Analyze_Component_Declaration): Diagnose record types  not explicitly
19835         declared limited when a component has a limited type.
19836         (Build_Derived_Record_Type): Code reorganization to check if some of
19837         the inherited subprograms of a tagged type cover interface primitives.
19838         This check was missing in case of a full-type associated with a private
19839         type declaration.
19840         (Constant_Redeclaration): Check that the subtypes of the partial and the
19841         full view of a constrained deferred constant statically match.
19842         (Mentions_T): A reference to the current type in an anonymous access
19843         component declaration  must be an entity name.
19844         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
19845         class_wide type to refer to full type, not to the incomplete one.
19846         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
19847         available. Required to give support to the certified run-time.
19848         (Analyze_Component_Declaration): In case of anonymous access components
19849         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
19850         (Process_Discriminants): For an access discriminant, use the
19851         discriminant specification as the associated_node_for_itype, to
19852         simplify accessibility checks.
19853
19854 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19855             Javier Miranda  <miranda@adacore.com>
19856
19857         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
19858         abstract interpretations on an operator, remove interpretations that
19859         yield Address or a type derived from it, if one of the operands is an
19860         integer literal.
19861         (Try_Object_Operation.Try_Primitive_Operation,
19862         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
19863         location when creating the new reference to a primitive or class-wide
19864         operation as a part of rewriting a subprogram call.
19865         (Try_Primitive_Operations): If context requires a function, collect all
19866         interpretations after the first match, because there may be primitive
19867         operations of the same type with the same profile and different return
19868         types. From code reading.
19869         (Try_Primitive_Operation): Use the node kind to choose the proper
19870         operation when a function and a procedure have the same parameter
19871         profile.
19872         (Complete_Object_Operation): If formal is an access parameter and prefix
19873         is an object, rewrite as an Access reference, to match signature of
19874         primitive operation.
19875         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
19876         by an expanded name with prefix Standard, when the operands are of an
19877         anonymous access type.
19878         (Remove_Abstract_Operations): If the operation is abstract because it is
19879         inherited by a user-defined type derived from Address, remove it as
19880         well from the set of candidate interpretations of an overloaded node.
19881         (Analyze_Membership_Op): Membership test not applicable to cpp-class
19882         types.
19883
19884 2006-02-13  Bob Duff  <duff@adacore.com>
19885
19886         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
19887         redundant use clauses.
19888         In particular, if the scope of two use clauses overlaps, but one is not
19889         entirely included in the other, we should not warn.  This can happen
19890         with nested packages.
19891         (Analyze_Subprogram_Renaming): Protect the compiler against previously
19892         reported errors. The bug was reported when the compiler was built
19893         with assertions enabled.
19894         (Find_Type): If the node is a 'Class reference and the prefix is a
19895         synchronized type without a corresponding record, return the type
19896         itself.
19897
19898 2006-02-13  Javier Miranda  <miranda@adacore.com>
19899
19900         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
19901         if this is the full-declaration associated with a private declaration
19902         that implement interfaces, then the private type declaration must be
19903         limited.
19904         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
19905         as aliased. The use of the 'access attribute is not available for such
19906         object (for this purpose the object should be explicitly marked as
19907         aliased, but being an anonymous type this is not possible).
19908
19909 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19910             Robert Dewar  <dewar@adacore.com>
19911
19912         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
19913         compilation unit is an elaboration scope.
19914         (Add_Task_Proc): Add '\' in 2-line warning message.
19915         (Activate_All_Desirable): Deal with case of unit with'ed by parent
19916
19917 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19918             Javier Miranda  <miranda@adacore.com>
19919
19920         * sem_type.adb (Write_Overloads): Improve display of candidate
19921         interpretations.
19922         (Add_One_Interp): Do not add to the list of interpretations aliased
19923         entities corresponding with an abstract interface type that is an
19924         immediate ancestor of a tagged type; otherwise we have a dummy
19925         conflict between this entity and the aliased entity.
19926         (Disambiguate): The predefined equality on universal_access is not
19927         usable if there is a user-defined equality with the proper signature,
19928         declared in the same declarative part as the designated type.
19929         (Find_Unique_Type): The universal_access equality operator defined under
19930         AI-230 does not cover pool specific access types.
19931         (Covers): If one of the types is a generic actual subtype, check whether
19932         it matches the partial view of the other type.
19933
19934 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19935
19936         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
19937         line. This is necessary to allow In_Extended_Main_Unit to provide
19938         correct results for itypes while writing out expanded source.
19939         (Close_File): No need to update the source_index_table here since it's
19940         now done for each line.
19941
19942 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19943             Robert Dewar  <dewar@adacore.com>
19944
19945         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
19946         preserve the source unit where the itype is declared, and prevent a
19947         backend abort.
19948         (Note_Implicit_Run_Time_Call): New procedure
19949         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
19950         E_Subprogram_Type)
19951
19952         * sprint.ads: Document use of $ for implicit run time routine call
19953
19954 2006-02-13  Quentin Ochem  <ochem@adacore.com>
19955
19956         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
19957         task name.
19958
19959 2006-02-13  Bob Duff  <duff@adacore.com>
19960
19961         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
19962         Scan_Unsigned, so we do not scan leading blanks and sign twice.
19963         Integer'Value("- 5") and Integer'Value("-+5") now correctly
19964         raise Constraint_Error.
19965
19966         * s-vallli.adb (Scan_Long_Long_Integer): Call
19967         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
19968         do not scan leading blanks and sign twice.
19969         Integer'Value("- 5") and Integer'Value("-+5") now correctly
19970         raise Constraint_Error.
19971
19972         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
19973         Scan_Long_Long_Unsigned): Split out most of the processing from
19974         Scan_Long_Long_Unsigned out into
19975         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
19976         This prevents scanning leading blanks and sign twice.
19977         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
19978         See RM-3.5(44).
19979
19980         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
19981         out most of the processing from Scan_Unsigned out into
19982         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
19983         This prevents scanning leading blanks and sign twice.
19984
19985         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
19986         use with Modular'Value attribute.
19987         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
19988         attribute.
19989
19990 2006-02-13  Robert Dewar  <dewar@adacore.com>
19991
19992         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
19993
19994 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19995
19996         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
19997         (PPC VxWorks): Likewise.
19998         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
19999         (forced_callee): Make non-inlinable and non-pure.
20000         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20001
20002 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
20003             Ben Brosgol  <brosgol@adacore.com>
20004             Robert Dewar  <dewar@adacore.com>
20005
20006         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20007         support.
20008         Document that gnatbind -M option is for cross environments only.
20009         Added description of using gnatmem to trace gnat rtl allocs and deallocs
20010         Add note on use of $ to label implicit run time calls
20011         Add documentation for -gnatyI (check mode IN)
20012         Updated chapter on compatibility with HP Ada
20013         VMS-oriented edits.
20014         Ran spell and corrected errors
20015         Add documentation for gnatbind -d and rework documentation of -D
20016         at the same time.
20017         Add subprogram/data elimination section.
20018         Minor editing of annex A.
20019         Add section for gnatcheck.
20020         Add documentation for restriction No_Dispatching_Calls
20021         Add documentation for pragma Ada_2005
20022         Remove mention of obsolete pragma Propagate_Exceptions
20023         Document that pragma Unreferenced can appear after DO in ACCEPT
20024         Clarify Pure_Function for library level units
20025         Mention Max/Min in connection with No_Implicit_Conditionals
20026         No_Wide_Characters restriction is no longer partition-wide
20027         Add a nice example for Universal_Literal_String attribute
20028         Document that pragma No_Return can take multiple arguments
20029
20030         * ug_words: Added entry for gnatcheck
20031
20032         * g-ctrl_c.ads (Install_Handler): Enhance comments
20033
20034         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20035
20036         * g-trasym.ads: Add documentation on how to do off line symbolic
20037         traceback computation.
20038
20039         * s-fatgen.adb: Add comments for Unaligned_Valid
20040
20041         * stand.ads: Fix typo in comment
20042
20043 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20044
20045         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20046
20047 2006-02-06  Roger Sayle  <roger@eyesopen.com>
20048
20049         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20050
20051 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20052
20053         PR target/25926
20054         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20055         implementation that calls __main.
20056
20057 2006-01-25  Peter O'Gorman  <peter@pogma.com>
20058
20059         PR bootstrap/25859
20060         * Makefile.in (GCC_LINK): Remove quotes.
20061         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
20062         or $(GCC_LINK).
20063
20064         (powerpc-darwin): Pass -shared-libgcc when building shared library.
20065
20066 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20067
20068         PR ada/24533
20069         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
20070
20071 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20072
20073         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
20074
20075 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20076
20077         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
20078         needed.
20079
20080 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20081
20082         * Make-lang.in: Update dependencies
20083
20084 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20085
20086         * Make-lang.in: Add rule for ada/exp_sel.o
20087
20088 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
20089
20090         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
20091
20092 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
20093
20094         * gnatvsn.ads (Library_Version): Bump to version 4.2
20095         (ASIS_Version_Number): Bumped.
20096
20097 2005-12-09  Doug Rupp  <rupp@adacore.com>
20098
20099         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
20100         Ada bind file prefix on VMS from b$ to b__.
20101         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
20102         __init.
20103
20104         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
20105         Targparm.OpenVMS_On_Target.
20106         (Object_Suffix): Initialize with target object suffix.
20107         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
20108
20109         * butil.adb: Change some Hostparm.OpenVMS checks to
20110         Targparm.OpenVMS_On_Target.
20111
20112         * clean.adb: Change some Hostparm.OpenVMS checks to
20113         Targparm.OpenVMS_On_Target.
20114         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
20115         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
20116         Ada bind file prefix on VMS from b$ to b__.
20117
20118         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
20119         --GCC so that Get_Target_Parameters can find system.ads.
20120         (Gnatlink): Call Get_Target_Parameters in mainline.
20121         Initialize standard packages for Targparm.
20122         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20123         (Process_Args): Also Check for object files with target object
20124         extension.
20125         (Make_Binder_File_Names): Create with target object extension.
20126         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
20127         to b__.
20128
20129         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
20130         Targparm.OpenVMS_On_Target.
20131         ({declaration},Build_Library,Check_Library): Change Ada bind file
20132         prefix on VMS from b$ to b__.
20133
20134         * osint-b.adb: Change some Hostparm.OpenVMS checks to
20135         Targparm.OpenVMS_On_Target.
20136         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
20137         b__.
20138
20139         * targext.c: New file.
20140
20141         * Makefile.in: add support for vxworks653 builds
20142         (../../vxaddr2line): gnatlink with targext.o.
20143         (TOOLS_LIBS): Move targext.o to precede libgnat.
20144         (init.o, initialize.o): Minor clean up in dependencies.
20145         (GNATLINK_OBJS): Add targparm.o, snames.o
20146         Add rules fo building targext.o and linking it explicitly with all
20147         tools.
20148         Also add targext.o to gnatlib.
20149
20150         * Make-lang.in: Add rules for building targext.o and linking it in
20151         with gnat1 and gnatbind.
20152         Add entry for exp_sel.o.
20153
20154         * osint.adb Change some Hostparm.OpenVMS checks to
20155         Targparm.OpenVMS_On_Target.
20156         (Object_File_Name): Use target object suffix.
20157
20158         * osint.ads (Object_Suffix): Remove, no longer used.
20159         (Target_Object_Suffix): Initialize with target object suffix.
20160
20161         * rident.ads: Add special exception to license.
20162
20163         * targparm.adb (Get_Target_Parameters): Set the value of
20164         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
20165         value.
20166         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
20167         
20168         * targparm.ads: Add special exception to license.
20169
20170         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
20171         function.
20172         (Copy_File): Make sure from file is closed if error on to file
20173         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
20174
20175         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
20176         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
20177
20178         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
20179         target object suffix.
20180
20181 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
20182             Quentin Ochem  <ochem@adacore.com>
20183             Florian Villoing  <villoing@adacore.com>
20184
20185         * a-taster.ads, a-taster.adb: New files.
20186
20187         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
20188         link to the version that does nothing. This way the task termination
20189         routine is not executed twice for the environment task when finishing
20190         because of an unhandled exception.
20191
20192         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
20193         handler because of an unhandled exception.
20194
20195         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
20196         System.Tasking.Utilities instead of that in System.Tasking.Stages.
20197
20198         * s-finimp.adb (initialization code): Modify the soft link for the
20199         finalization of the global list instead of Adafinal.
20200
20201         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
20202         non-tasking version of the soft link for task termination. We do
20203         nothing since if we are using the non-tasking version it
20204         means that the task termination functionality is not used.
20205         (Null_Finalize_Global_List): Add this null version for the procedure
20206         in charge of finalizing the global list for controlled objects.
20207         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
20208         instead for handling run-time termination in a more flexible way.
20209         (Adafinal_NT): This new procedure will take care of finalizing the
20210         global list for controlled objects if needed, but no tasking
20211         finalization.
20212
20213         * s-tarest.adb (Task_Lock): Do not try to lock again the
20214         Global_Task_Lock if we already own it. Otherwise, we get blocked in
20215         some run-time operations.
20216         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
20217         until all nested locks have been released.
20218         (Task_Wrapper): Call the fall-back task termination handler. It
20219         applies to all tasks but the environment task.
20220         (Finalize_Global_Tasks): Add the call for the task termination
20221         procedure for the environment task.
20222         (Task_Wrapper): suppress warnings around declaration of
20223         Secondary_Stack_Address.
20224
20225         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
20226         moved to the Common_ATCB record.
20227         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
20228         Common_ATCB record.
20229         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
20230         Common_ATCB record.
20231
20232         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
20233         Fall_Back_Handler, and Specific_Handler.
20234
20235         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
20236         defined in Ada.Task_Termination, to avoid circular dependencies.
20237         (Termination_Handler): Redefine this type here, alredy defined in
20238         Ada.Task_Termination, for avoiding circular dependencies.
20239         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
20240         for storing task termination handlers. In addition,
20241         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
20242         Common_ATCB because it is used by both the regular and the restricted
20243         run times.
20244         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
20245         Common_ATCB because it is used by both the regular and the restricted
20246         run times.
20247         (Common_ATCB): Added a dynamic task analyzer field.
20248
20249         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
20250         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
20251         (Task_Wrapper): Call the task termination handler. It applies to all
20252         tasks but the environment task.
20253         (Finalize_Global_Tasks): Call the task termination procedure for the
20254         environment task. The call to Finalize_Global_List is now performed
20255         using the soft links mechanism.
20256         (Task_Wrapper): added dynamic stack analysis.
20257
20258         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
20259         potentially blocking operations has been moved from
20260         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
20261         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
20262         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
20263         this run-time check.
20264
20265         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
20266         of task termination procedure.
20267         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
20268         link for the task termination procedure.
20269
20270         * bindusg.adb: (Bindusg): Added documentation for -u option.
20271
20272         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
20273         (Get_Main_C): Add handling of dynamic stack analysis.
20274         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
20275
20276         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
20277         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
20278         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
20279
20280         * opt.ads: Added flags used by dynamic stack measurement.
20281         (Max_Line_Length): Remove (not used anymore)
20282
20283         * s-io.ads, s-io.adb (Standard_Error): new subprogram
20284         (Standart_Output): new subprogram
20285         (Set_Output): new subprogram
20286         (Put): now uses the value of Current_Out to know if the output has to be
20287         send to stderr or stdout.
20288         
20289         * s-stausa.ads: Complete implementation.
20290
20291         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
20292         
20293         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
20294         list of Ada 05 files.
20295         (GNAT Library Units): Add AltiVec files.
20296
20297         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
20298         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
20299         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
20300
20301 2005-12-09  Nicolas Setton  <setton@adacore.com>
20302
20303         * adaint.c (__gnat_locate_regular_file): Return immediately if
20304         file_name is empty.
20305
20306 2005-12-09  Javier Miranda  <miranda@adacore.com>
20307             Hristian Kirtchev  <kirtchev@adacore.com>
20308
20309         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
20310         to the specification because the frontend generates code that uses this
20311         subprogram.
20312         (Set_Interface_Table): Add missing assertion.
20313         Update documentation describing the run-time structure.
20314         (Displace): New subprogram that displaces the pointer to the object
20315         to reference one of its secondary dispatch tables.
20316         (IW_Membership): Modified to use the new table of interfaces.
20317         (Inherit_TSD): Modified to use the new table of interfaces.
20318         (Register_Interface_Tag): Use the additional formal to fill the
20319         contents of the new table of interfaces.
20320         (Set_Interface_Table): New subprogram that stores in the TSD the
20321         pointer to the table of interfaces.
20322         (Set_Offset_To_Top): Use the additional formal to save copy of
20323         the offset value in the table of interfaces.
20324         Update structure of GNAT Primary and Secondary dispatch table diagram.
20325         Add comment section on GNAT dispatch table prologue.
20326         (Offset_To_Signature): Update the constant value of the Signature field.
20327         (Dispatch_Table): Update comment on hidden fields in the prologue.
20328         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
20329         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
20330         the type of formal parameter T to Tag, introduce additional assertions.
20331         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
20332         conversion.
20333         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
20334
20335         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
20336         in all the calls to Expand_Interface_Thunk. Instead of referencing the
20337         record component containing the tag of the secondary dispatch table we
20338         have to use the Offset_To_Top run-time function to get this information;
20339         otherwise if the pointer to the base of the object has been displace
20340         we get a wrong value if we use the 'position attribute.
20341
20342         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
20343         all the calls to Expand_Interface_Thunk.
20344         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
20345         interfaces; hence the call to Set_Interface_Table was clearly wrong.
20346         (Collect_All_Interfaces): Modify the internal subprogram Collect to
20347         ensure that the interfaces implemented by the ancestors are placed
20348         at the header of the generated list.
20349         (Expand_Interface_Conversion): Handle the case in which the displacement
20350         associated with the interface conversion is not statically known. In
20351         this case we generate a call to the new run-time subprogram Displace.
20352         (Make_DT): Generate and fill the new table of interfaces.
20353         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
20354         Get_Tagged_Kind and Set_Tagged_Kind.
20355         (Tagged_Kind): New function that determines the tagged kind of a type
20356         with respect to limitedness and concurrency and returns a reference to
20357         RE_Tagged_Kind.
20358         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
20359         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
20360         primary dispatch table for a type.
20361         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
20362         secondary dispatch table respectively of a tagged type.
20363
20364         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
20365         (Expand_Interface_Conversion): New subprogram to indicate if the
20366         displacement of the type conversion is statically known.
20367         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
20368
20369         * rtsfind.ads (RE_Offset_To_Top): New entity
20370         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
20371         accessible to users.
20372         (Re_Displace): New entity
20373         (RE_Interface_Data): New entity
20374         (RE_Set_Interface_Data): New_Entity
20375         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
20376         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
20377         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
20378         RE_TK_Tagged, RE_TK_Task.
20379
20380         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
20381         Init_Secondary_Tags_Internal to allow its use with interface types and
20382         also to generate the code for the new additional actual required
20383         by Set_Offset_To_Top.
20384         (Build_Init_Statements): In case of components associated with abstract
20385         interface types there is no need to generate a call to its IP.
20386         (Freeze_Record_Type): Generate Select Specific Data tables only for
20387         concurrent types.
20388         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
20389         the bodies and specifications of the predefined primitive operations
20390         dealing with dispatching selects and abort, 'Callable, 'Terminated only
20391         for concurrent types.
20392
20393         * exp_sel.ads, exp_sel.adb: New files.
20394
20395         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
20396         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
20397         properly protected objects and attach handler in the case of the
20398         restricted profile.
20399         Move embeded package Select_Expansion_Utilities into a separate external
20400         package.
20401         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
20402         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
20403         (Build_K, Build_S_Assignment): New subprograms, part of the select
20404         expansion utilities.
20405         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
20406         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
20407         where the trigger is a dispatching procedure of a limited tagged type.
20408
20409 2005-12-09  Olivier Hainque  <hainque@adacore.com>
20410
20411         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
20412         pointer initialization values. Make a SAVE_EXPR instead. Add comments
20413         about the use and expansion of SAVE_EXPRs in the various possible
20414         renaming handling cases.
20415         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
20416         abusing DECL_FCONTEXT.
20417
20418 2005-12-09  Matthew Heaney  <heaney@adacore.com>
20419
20420         * a-convec.adb (Merge): Added assertions to check whether vector params
20421         are sorted.
20422
20423         * a-coinve.adb (Merge): Added assertions to check whether vector params
20424         are sorted.
20425
20426         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
20427         draft.
20428         (Cursor'Read): raises PE
20429
20430         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
20431         to its default value.
20432
20433         * a-cihama.adb: Manually check whether cursor's key and elem are
20434         non-null
20435
20436         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
20437         (Merge): Assert that target and source lists are in order
20438         (Swap): Declare non-const temporaries, to pass to Splice
20439
20440         * a-cdlili.ads: (Splice): Changed param name and param mode
20441
20442         * a-cdlili.adb: (Splice): Changed param name and param mode
20443         (Merge): Assert that target and source lists are in order
20444         (Swap): Declare non-const temporaries, to pass to Splice
20445
20446         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
20447         (Write): declare Stream param as not null
20448
20449         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
20450         an exception message.
20451
20452 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20453             Robert Dewar  <dewar@adacore.com>
20454
20455         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
20456         which is the absolute maximum length we can support.
20457
20458         * frontend.adb: For the processing of configuration pragma files,
20459         remove references to Opt.Max_Line_Length, which is not checked anymore.
20460
20461         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
20462         length.
20463
20464         * scn.adb, scng.adb: 
20465         Always check line length against the absolute supported maximum,
20466         Hostparm.Max_Line_Length.
20467
20468         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
20469         value for the maximum line length is Max_Line_Length (not
20470         Column_Number'Last).
20471         Minor error msg update
20472         (Set_Style_Check_Options): New interface returning error msg
20473         Minor code reorganization (processing for 'M' was out of alpha order)
20474
20475         * switch-c.adb: New interface for Set_Style_Check_Options
20476
20477         * stylesw.ads (Set_Style_Check_Options): New interface returning error
20478         msg.
20479
20480 2005-12-09  Javier Miranda  <miranda@adacore.com>
20481
20482         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
20483         with IP subprogram were only supported if there were limited types.
20484
20485         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
20486         records with IP subprogram were only supported if there were limited
20487         types.
20488
20489 2005-12-09  Olivier Hainque  <hainque@adacore.com>
20490             Eric Botcazou  <ebotcazou@adacore.com>
20491
20492         * trans.c (tree_transform, emit_check): Adjust calls to
20493         build_call_raise, passing the now expected GNAT_NODE argument.
20494
20495         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
20496         source line information than what the current global locus indicates
20497         when appropriate.
20498
20499         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
20500         field has overflowed.
20501         (build_call_raise): Add a GNAT_NODE argument to convey better source
20502         line information than what the current global locus indicates when
20503         appropriate.
20504         (build_component_ref): Adjust call to build_call_raise.
20505
20506 2005-12-09  Pascal Obry  <obry@adacore.com>
20507
20508         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
20509         the iterator is quitting iteration on parent directory.
20510
20511 2005-12-09  Javier Miranda  <miranda@adacore.com>
20512
20513         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
20514         and the assignment to a class-wide object, before the assignment we
20515         generate a run-time check to ensure that the tag of the Target is
20516         covered by the tag of the source.
20517
20518 2005-12-09  Robert Dewar  <dewar@adacore.com>
20519
20520         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
20521         parameter in call to Image_Wide_Character.
20522
20523         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
20524         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
20525         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
20526         annoying FFFE/FFFF inconsistency.
20527
20528 2005-12-09  Robert Dewar  <dewar@adacore.com>
20529             Javier Miranda  <miranda@adacore.com>
20530             Ed Schonberg  <schonberg@adacore.com>
20531
20532         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
20533         of type conversion.
20534         (Find_Interface): New subprogram that given a tagged type and one of its
20535         component associated with the secondary table of an abstract interface
20536         type, return the entity associated with such abstract interface type.
20537         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
20538         base type to create anonymous subtype, because entity may be a locally
20539         declared subtype or generic actual.
20540         (Find_Interface): New subprogram that given a tagged type and one of its
20541         component associated with the secondary table of an abstract interface
20542         type, return the entity associated with such abstract interface type.
20543
20544         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
20545         conversion cannot be handled at compile time. In this case we pass this
20546         information to the expander to generate the appropriate code.
20547
20548 2005-12-09  Robert Dewar  <dewar@adacore.com>
20549             Ed Schonberg  <schonberg@adacore.com>
20550             Gary Dismukes  <dismukes@adacore.com>
20551             Javier Miranda  <miranda@adacore.com>
20552             Hristian Kirtchev  <kirtchev@adacore.com>
20553
20554         * einfo.adb (Itype_Printed): New flag
20555         (Is_Limited_Type): Derived types do not inherit limitedness from
20556         interface progenitors.
20557         (Is_Return_By_Reference_Type): Predicate does not apply to limited
20558         interfaces.
20559
20560         * einfo.ads (Itype_Printed): New flag
20561         Move Is_Wrapper_Package to proper section
20562         Add missing Inline for Is_Volatile
20563
20564         * output.ads, output.adb (Write_Erase_Char): New procedure
20565         (Save/Restore_Output_Buffer): New procedures
20566         (Save/Restore_Output_Buffer): New procedures
20567
20568         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
20569         Add missing support for anonymous access type
20570         (Write_Id): Insert calls to Write_Itype
20571         (Write_Itype): New procedure to output itypes
20572
20573         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
20574         use of "limited" in declaration.
20575
20576         * sinfo.ads, sinfo.adb: 
20577         Formal derived types can carry an explicit "limited" indication.
20578
20579         * sem_ch3.adb: Add with and use of Targparm.
20580         (Create_Component): If Frontend_Layout_On_Target is True and the
20581         copied component does not have a known static Esize, then reset
20582         the size and positional fields of the new component.
20583         (Analyze_Component_Declaration): A limited component is
20584         legal within a protected type that implements an interface.
20585         (Collect_Interfaces): Do not add to the list the interfaces that
20586         are implemented by the ancestors.
20587         (Derived_Type_Declaration): If the parent of the full-view is an
20588         interface perform a transformation of the tree to ensure that it has
20589         the same parent than the partial-view. This simplifies the job of the
20590         expander in order to generate the correct object layout, and it is
20591         needed because the list of interfaces of the full-view can be given in
20592         any order.
20593         (Process_Full_View): The parent of the full-view does not need to be
20594         a descendant of the parent of the partial view if both parents are
20595         interfaces.
20596         (Analyze_Private_Extension_Declaration): If declaration has an explicit
20597         "limited" the parent must be a limited type.
20598         (Build_Derived_Record_Type): A derived type that is explicitly limited
20599         must have limited ancestor and progenitors.
20600         (Build_Derived_Type): Ditto.
20601         (Process_Full_View): Verify that explicit uses of "limited" in partial
20602         and full declarations are consistent.
20603         (Find_Ancestor_Interface): Remove function.
20604         (Collect_Implemented_Interfaces): New procedure used to gather all
20605         implemented interfaces by a type.
20606         (Contain_Interface): New function used to check whether an interface is
20607         present in a list.
20608         (Find_Hidden_Interface): New function used to determine whether two
20609         lists of interfaces constitute a set equality. If not, the first
20610         differing interface is returned.
20611         (Process_Full_View): Improve the check for the "no hidden interface"
20612         rule as defined by AI-396.
20613
20614 2005-12-09  Robert Dewar  <dewar@adacore.com>
20615
20616         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
20617         types, not on record subtypes.
20618         (Freeze_Entity): Code cleanup. Add barrier to the loop
20619         that generates the references for primitive operations. This allows to
20620         remove an unnecessary exception handler.
20621         Code reformatting and comment clean ups.
20622
20623 2005-12-09  Vincent Celier  <celier@adacore.com>
20624
20625         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
20626         If GNAT CHECK is called with a project file, but with no
20627         source on the command line, call gnatcheck with all the compilable
20628         sources of the project.
20629         Take into account the new command Check, for gnatcheck. Treat as for
20630         other ASIS tools: take into account project, specific package Check and
20631         Compiler switches.
20632         For ASIS tools, add the switches in package Compiler for
20633         the invocation of the compiler.
20634
20635         * prj-attr.adb: Add package Check and its attributes
20636
20637         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
20638
20639         * vms_conv.adb (Initialize): Change Params of command Check to
20640         unlimited files.
20641         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20642         Add data for new command Check
20643
20644         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
20645         ELIM.
20646         Add qualifiers for Check command options
20647         (Command_Type): New command Check
20648
20649 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20650
20651         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
20652         command line switch overruns the output buffer.
20653
20654 2005-12-09  Robert Dewar  <dewar@adacore.com>
20655
20656         * sem_prag.adb: Processing for new pragma Complete_Representation
20657         (Analyze_Pragma, case Debug): Implement two argument form.
20658
20659         * par-prag.adb: Entry for new pragma Complete_Representation
20660         (Prag, case Debug): Recognize two argument form of pragma Debug
20661         New interface for Set_Style_Check_Options.
20662
20663         * sem_ch13.adb: Implement new pragma Complete_Representation.
20664
20665         * snames.adb, snames.ads, snames.h: Entry for new pragma
20666         Complete_Representation.
20667
20668 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
20669
20670         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
20671         available user-specified stream attributes on limited parameters to
20672         also test the type directly rather than only its underlying type (for
20673         Ada 95) and, in the case of Ada 2005, to check that the user-specified
20674         attributes are visible at the point of the subprogram declaration.
20675         For Ada 2005, the error message is modified to indicate that the
20676         type's stream attributes must be visible (again, only for -gnat05).
20677
20678 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20679
20680         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
20681         anonymous access types.
20682
20683         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
20684         matching of anonymous access types and anonymous access to subprogram
20685         types. 'R'M 4.9.1 (2/2).
20686
20687 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20688
20689         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
20690         rule prematurely when operands are universal, remaining ambiguities
20691         will be removed during resolution.
20692         Code cleanup.
20693
20694         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
20695         that are Ada 2005 functions.
20696         (Has_Abstract_Interpretation): Subsidiary to
20697         Remove_Conversions, to remove ambiguities caused by abstract operations
20698         on numeric types when operands are universal.
20699
20700 2005-12-09  Robert Dewar  <dewar@adacore.com>
20701
20702         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
20703         for case where spec is categorized.
20704
20705 2005-12-09  Javier Miranda  <miranda@adacore.com>
20706
20707         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
20708         types use the corresponding record type. This was not needed before
20709         the implementation of Ada 2005 synchronized types because
20710         concurrent types were never tagged types in Ada 95.
20711
20712 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20713
20714         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
20715         first subtype of the type of the expression to verify that it is a
20716         legal Time type.
20717
20718 2005-12-09  Robert Dewar  <dewar@adacore.com>
20719
20720         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
20721         decoded names.
20722
20723 2005-12-09  Quentin Ochem  <ochem@adacore.com>
20724             Robert Dewar  <dewar@adacore.com>
20725             Ed Falis  <falis@adacore.com>
20726             Florian Villoing  <villoing@adacore.com>
20727             Thomas Quinot  <quinot@adacore.com>
20728             Arnaud Charlet  <charlet@adacore.com>
20729
20730         * gnat_ugn.texi: Created section "Stack Related Tools"
20731         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
20732         "Stack Related Tools"
20733         Added subsection "Static Stack Usage Analysis"
20734         Added subsection "Dynamic Stack Usage Analysis"
20735         Include documentation of itypes in sprint listing (-gnatG)
20736         Documented gnatbind -D switch (default sec stack size for fixed sec
20737         stacks).
20738         Added Interrupt_State and Persistent_BSS to list of configuration
20739         pragmas.
20740         Add missing doc for maximum value of nnn in -gnatyMnnn
20741
20742         * gnat_rm.texi: Document the AltiVec binding.
20743         Add documentation for pragma Complete_Representation
20744         Shortened an overly long line (> 79 chars)
20745         Clarify documentation of unchecked conversion in implementation
20746         defined cases.
20747         Document two argument form of pragma Debug
20748
20749         * types.ads (Column_Number): Update documentation.
20750
20751         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
20752         library level Finalize_Storage_Only objects (these are not attached to
20753         any finalization list).
20754
20755         * system-mingw.ads: (Underlying_Priorities): Update comment.
20756
20757 2005-12-09  Robert Dewar  <dewar@adacore.com>
20758
20759         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
20760         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20761         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
20762         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
20763         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
20764         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
20765         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
20766         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
20767         reformatting.
20768
20769 2005-12-09  Robert Dewar  <dewar@adacore.com>
20770
20771         * s-vaflop-vms-alpha.adb: (Ne_F): New function
20772         (Ne_G): New function
20773
20774         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
20775         for tag assignment.
20776         (Rewrite_Comparison): Handle case where operation is not a comparison
20777         and ignore, and also handle type conversion case.
20778
20779 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20780
20781         * exp_aggr.ads: Fix typo in comment.
20782         ???-mark Convert_Aggr_In_Assignment as needing documentation.
20783
20784 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
20785
20786         * layout.adb: Replace various uses of byte by storage unit throughout.
20787         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
20788         static size, convert to storage units before returning, to conform to
20789         spec.
20790
20791 2005-12-09  Matthew Gingell  <gingell@adacore.com>
20792
20793         * g-exctra.ads: Fix typo in comment.
20794
20795 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20796
20797         * utils.c: Minor reformatting.
20798
20799 2005-12-09  Robert Dewar  <dewar@adacore.com>
20800
20801         * g-soccon.ads: 
20802         Further comment fixes to make the status of the default file clear
20803
20804         * s-bitops.adb: Clarify comment for Bits_Array
20805
20806 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
20807
20808         * Make-lang.in (ada.install-normal): Remove.
20809
20810 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
20811
20812         * Make-lang.in: Remove all dependencies on s-gtype.
20813
20814 2005-12-05  Richard Guenther  <rguenther@suse.de>
20815
20816         * utils.c (convert): Use fold_convert where appropriate.
20817
20818 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
20819
20820         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
20821         a period is meant.
20822
20823 2005-12-02  Richard Guenther  <rguenther@suse.de>
20824
20825         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
20826
20827 2005-12-01  Roger Sayle  <roger@eyesopen.com>
20828
20829         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
20830         nodes.
20831
20832 2005-11-23  Laurent Guerby  <laurent@guerby.net>
20833
20834         * mlib-prj.adb (Build_Library): Initialize Delete.
20835
20836 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
20837
20838         * socket.c: Add extern int h_errno for rtems since networking header
20839         files are not available at this point in a tool bootstrap. Newlib
20840         only has basic C library header files.
20841
20842 2005-11-19  Richard Guenther  <rguenther@suse.de>
20843         Roger Sayle  <roger@eyesopen.com>
20844
20845         PR ada/23717
20846         * misc.c (internal_error_function): Don't use vsprintf to format
20847         the error message text, instead use pp_format_text and the new
20848         pretty printer APIs.  This allows handling of %qs, %w, etc.
20849
20850 2005-11-18  Laurent Guerby  <laurent@guerby.net>
20851
20852         PR ada/24857
20853         * Makefile.in: Use s-auxdec-empty for RTEMS.
20854
20855 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20856
20857         PR ada/22333
20858         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
20859         a temporary if taking the address of something that is neither
20860         reference, declaration, or constant, since the gimplifier
20861         can't handle that case.
20862
20863 2005-11-17  Laurent Guerby  <laurent@guerby.net>
20864
20865         PR ada/24857
20866         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
20867
20868 2005-11-16  Richard Guenther  <rguenther@suse.de>
20869
20870         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
20871
20872 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
20873
20874         PR ada/24855
20875         * raise-gcc.c: Add missing stdarg.h include.
20876  
20877 2005-11-16  Richard Guenther  <rguenther@suse.de>
20878
20879         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
20880         (ada/misc.o): Likewise.
20881
20882 2005-11-14  Thomas Quinot  <quinot@adacore.com>
20883
20884         * g-soccon.ads: Minor reformatting. Update comments.
20885
20886         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
20887         gain visibility on the declaration of struct timeval.
20888
20889         * g-soccon-freebsd.ads,
20890         g-soccon-darwin.ads,
20891         g-soccon-tru64.ads,
20892         g-soccon-aix.ads,
20893         g-soccon-irix.ads,
20894         g-soccon-hpux.ads,
20895         g-soccon-solaris.ads,
20896         g-soccon-vms.ads,
20897         g-soccon-mingw.ads,
20898         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
20899
20900         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
20901         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
20902         g-soccon-linux-x86.ads: New files.
20903
20904         * g-socthi-mingw.adb: 
20905         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
20906
20907         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
20908         (time_t, suseconds_t): New types constructed to match the tv_sec
20909         and tv_usec fields of C struct timeval.
20910         (Timeval): Construct structure in terms of the new types.
20911         (Host_Errno): New function (imported from socket.c), returns last hosts
20912         database error.
20913
20914         * g-socthi-vxworks.adb:  Add error handling circuitry.
20915
20916         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
20917         components of struct timeval.
20918         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
20919         (Check_Selector): In error conditions, clear internal socket sets to
20920         avoid a memory leak.
20921         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
20922         Send_Timeout, Receive_Timeout.
20923
20924         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
20925         the tv_sec and tv_usec fields of C struct timeval.
20926         (Timeval): Construct structure in terms of the new types.
20927         (Host_Errno): New function (imported from socket.c), returns last hosts
20928         database error.
20929
20930         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
20931         hosts database last error code.
20932
20933         * gen-soccon.c: Complete value expansion should not be performed on
20934         TARGET, as it has the form of a math expression, and some components
20935         may be platform-defined macros.
20936         For VxWorks, generate the OK and ERROR values.
20937         New constants giving the sizes of the components of C struct timeval.
20938
20939 2005-11-14  Robert Dewar  <dewar@adacore.com>
20940             Ed Schonberg  <schonberg@adacore.com>
20941
20942         PR ada/18434
20943         * types.ads: Include All_Checks in Suppress_Array
20944
20945         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
20946         not(a=b), since we no longer do this rewriting, and hence it is not
20947         needed.
20948         (Elaboration_Checks_Suppressed): Add special casing to
20949         deal with different cases of static and dynamic elaboration checks (all
20950         checks does not count in the first case, but does in the second).
20951         (Expr_Known_Valid): Do not assume that the result of any arbitrary
20952         function call is valid, since this is not the case.
20953         (Ensure_Valid): Do not apply validity check to a real literal
20954         in a universal or fixed context
20955
20956         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
20957         elementary types using the operator in standard. It is cleaner not to
20958         modify the programmers intent, especially in the case of floating-point.
20959         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
20960         it did not matter because we always rewrote a/=b to not(a=b).
20961         (Expand_Allocator_Expression): For an allocator expression whose nominal
20962         subtype is an unconstrained packed type, convert the expression to its
20963         actual constrained subtype.
20964         Implement warning for <= or >= where < or > not possible
20965         Fix to Vax_Float tests (too early in many routines, causing premature
20966         Vax_Float expansions.
20967
20968         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
20969         to be used with packages and generic packages as well as with
20970         subprograms.
20971         (Suppress): Set All_Checks, but not Elaboration_Check, for case
20972         of pragma Suppress (All_Checks)
20973         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
20974         a string literal for precise control over warnings.
20975         Avoid raise of pragma in case of unrecognized pragma and just return
20976         instead.
20977
20978         * sem_prag.ads: Minor reformatting
20979
20980         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
20981         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20982         Switch. Do not handle any exception.
20983         Include -gnatwx as part of -gnatg (warn on redundant parens)
20984         Allow optional = after -gnatm
20985         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
20986         longer sets Elaboration_Checks.
20987         Code to set warning mode moved to Sem_Warn
20988         so that it can be shared by pragma processing.
20989
20990         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
20991         statement.
20992
20993         * s-taprop-solaris.adb: 
20994         Change some <= to =, to avoid new warning
20995
20996         * a-exexda.adb, prj-proc.adb: 
20997         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
20998         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
20999
21000 2005-11-14  Robert Dewar  <dewar@adacore.com>
21001
21002         * exp_vfpt.adb: Handle /= case
21003         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21004         so that we do not get duplicate scaling for fixed point conversions.
21005
21006         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21007
21008 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21009
21010         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
21011         Increase default priority on Lynx from 15 to 17, and meet the Ada
21012         requirement that Default_Priority be ((Priority'First +
21013         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21014
21015 2005-11-14  Vincent Celier  <celier@adacore.com>
21016
21017         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21018         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21019         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21020         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21021         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21022         mlib-tgt-lynxos.adb (DLL_Prefix): New function
21023
21024 2005-11-14  Doug Rupp  <rupp@adacore.com>
21025
21026         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21027         private part.
21028
21029 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21030
21031         * s-traces-default.adb, s-trafor-default.ads,
21032         s-tratas-default.adb: Fix compilation errors.
21033
21034 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21035
21036         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21037         raising the exception so the memory used is freed.
21038
21039 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21040
21041         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21042         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21043         (convert_address): Update comments and list of platforms using this.
21044
21045         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21046         no longer used.
21047
21048 2005-11-14  Pascal Obry  <obry@adacore.com>
21049             Vincent Celier  <celier@adacore.com>
21050
21051         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21052         GNAT.Command_Line.
21053
21054         * memroot.adb: Remove redundant with/use clause on
21055         System.Storage_Elements.
21056
21057 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21058
21059         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
21060         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
21061         related code to a-exexpr.adb
21062         (Save_Occurrence_And_Private): Move GCC EH related code to
21063         a-exexpr-gcc.adb
21064         (Raise_Current_Excep): Add new variable Id with pragma
21065         volatile, to ensure that the variable lives on stack.
21066
21067         * a-exexpr-gcc.adb, raise-gcc.c: New file.
21068
21069         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
21070         from a-except.adb.
21071         Move GCC EH related code to a-exexpr-gcc.adb
21072
21073         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
21074         64-bit Solaris
21075         Split the Linux version of g-soccon into separate variants for 32 and 64
21076         bit platforms.
21077         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
21078         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
21079         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
21080         of host variable $(RANLIB_FLAGS).
21081         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
21082         Code clean up: remove unused/obsolete targets.
21083         (EH_MECHANISM): New variable introduced to differenciate between the
21084         two EH mechanisms statically.
21085         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
21086         (LIBGNAT_OBJS): Add raise-gcc.o
21087         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
21088         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
21089         supports VxWorks 6 RTPs.
21090         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
21091         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
21092
21093         * raise.c: Move all GCC EH-related routines to raise-gcc.c
21094
21095 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
21096
21097         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
21098         deferral level, when abort is not allowed, to a later stage (the
21099         Task_Wrapper).
21100         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
21101         it will not get changed by the generated code. It was previously done
21102         in Create_Task.
21103
21104 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21105             Olivier Hainque  <hainque@adacore.com>
21106             Eric Botcazou  <ebotcazou@adacore.com>
21107
21108         * decl.c:
21109         Factor common code to build a storage type for an unconstrained object
21110         from a fat or thin pointer type and a constrained object type.
21111         (annotate_value): Handle BIT_AND_EXPR.
21112         (annotate_rep): Don't restrict the back annotation of inherited
21113         components to the type_annotate_only case.
21114         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
21115         we are not defining the type.
21116         <E_Record_Type>: Likewise.
21117         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
21118         to get advantage of the new maybe_stabilize_reference interface, to
21119         ensure that what we reference is indeed stabilized instead of relying
21120         on assumptions on what the stabilizer does.
21121         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
21122         type imported through a limited_with clause, use its non-limited view.
21123         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
21124         differentiation.
21125         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
21126         of #if sections + explicit comparisons of convention identifiers.
21127         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
21128         before early-returning for certain types when code generation is
21129         disabled.
21130         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
21131         nullification of gnu_expr we do for objects with address clause and
21132         that we are not defining.
21133         (elaborate_expression_1): Do not create constants when creating
21134         variables needed by the debug info: the dwarf2 writer considers that
21135         CONST_DECLs is used only to represent enumeration constants, and emits
21136         nothing for them.
21137         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
21138         object with an address clause into an indirect reference, drop the
21139         initializing expression.
21140         Include "expr.h".
21141         (STACK_CHECK_BUILTIN): Delete.
21142         (STACK_CHECK_PROBE_INTERVAL): Likewise.
21143         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
21144         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
21145         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
21146         corresponding to the renamed object as ignored for debugging purposes.
21147
21148         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
21149         related): For a prefix that is a dereference of a fat or thin pointer,
21150         if there is an actual subtype provided by the front-end, use that
21151         subtype to build an actual type with bounds template.
21152         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
21153         is provided by the front-end, use that subtype to compute the size of
21154         the deallocated object.
21155         (gnat_to_gnu): When adding a statement into an elaboration procedure,
21156         check for a potential violation of a No_Elaboration_Code restriction.
21157         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21158         with extra arguments to control whether to recurse through non-values
21159         and to let the caller know if the stabilization has succeeded.
21160         (gnat_stabilize_reference): Now a simple wrapper around
21161         maybe_stabilize, for common uses without restriction on lvalues and
21162         without need to check for the success indication.
21163         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
21164         pass false instead of 0 as the FORCE argument which is a bool.
21165         (Identifier_to_gnu): Remove checks ensuring that an renamed object
21166         attached to a renaming pointer has been properly stabilized, as no such
21167         object is attached otherwise.
21168         (call_to_gnu): Invoke create_var_decl to create the temporary when the
21169         function uses the "target pointer" return mechanism.
21170         Reinstate conversion of the actual to the type of the formal
21171         parameter before any other specific treatment based on the passing
21172         mechanism. This turns out to be necessary in order for PLACEHOLDER
21173         substitution to work properly when the latter type is unconstrained.
21174
21175         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
21176         common pattern.
21177         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21178         with extra arguments to control whether to recurse through non-values
21179         and to let the caller know if the stabilization has succeeded.
21180
21181         * utils2.c (gnat_build_constructor): Only sort the fields for possible
21182         static output of record constructor if all the components are constant.
21183         (gnat_build_constructor): For a record type, sort the list of field
21184         initializers in increasing bit position order.
21185         Factor common code to build a storage type for an unconstrained object
21186         from a fat or thin pointer type and a constrained object type.
21187         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
21188         types variants, and process special cases of VIEW_CONVERT expressions
21189         as their NOP_EXPR counterpart to ensure we get to the
21190         CORRESPONDING_VARs associated with CONST_DECls.
21191         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
21192         on the right-hand side.
21193
21194         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
21195         a common pattern.
21196         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
21197         are converting back to its original type.
21198         (convert) <JM input>: Fallthrough regular conversion code instead of
21199         extracting the object if converting to a type variant.
21200         (create_var_decl): When a variable has an initializer requiring code
21201         generation and we are at the top level, check for a potential violation
21202         of a No_Elaboration_Code restriction.
21203         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
21204         SIZE and SIZE_UNIT which we need for later back-annotations.
21205         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
21206         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
21207         is an unchecked union.
21208         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
21209         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
21210         main variant, just replace the VIEW_CONVERT_EXPR.
21211         <UNION_TYPE>: Revert 2005-03-02 change.
21212
21213         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
21214
21215         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
21216
21217 2005-11-14  Matthew Heaney  <heaney@adacore.com>
21218
21219         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
21220         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
21221         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
21222         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
21223         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
21224         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
21225         Compiles against the spec for ordered maps described in sections
21226         A.18.6 of the most recent (August 2005) AI-302 draft.
21227
21228 2005-11-14  Olivier Hainque  <hainque@adacore.com>
21229
21230         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
21231         to ensure bias adjustments take place when need be and to prevent
21232         occurrences of intermediate overflows.
21233
21234 2005-11-14  Matthew Gingell  <gingell@adacore.com>
21235             Olivier Hainque  <hainque@adacore.com>
21236
21237         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
21238         ia64 HP-UX.
21239
21240         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
21241         tracebacks on ia64 HP-UX and provide explanatory comment.
21242         Enable backtraces on ia64 GNU/Linux.
21243         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
21244         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
21245
21246 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
21247             Javier Miranda  <miranda@adacore.com>
21248
21249         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
21250         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
21251         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
21252         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
21253
21254         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
21255         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
21256         assertions).
21257
21258         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
21259         subprogram that generates the external name associated with a
21260         secondary dispatch table.
21261         (Get_Secondary_DT_External_Name): New subprogram that generates the
21262         external name associated with a secondary dispatch table.
21263
21264 2005-11-14  Emmanuel Briot  <briot@adacore.com>
21265
21266         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
21267         line in the ALI file to include both an instantiation reference, and a
21268         returned value.
21269
21270 2005-11-14  Vincent Celier  <celier@adacore.com>
21271
21272         * clean.adb (Check_Project): Look for Ada code in extending project,
21273         even if Ada is not specified as a language.
21274         Use new function DLL_Prefix for DLL_Name
21275         (Clean_Interface_Copy_Directory): New procedure
21276         (Clean_Library_Directory): New procedure
21277         (Clean_Directory): Remove procedure, no longer used
21278         (Clean_Project): Do not delete any file in an externally built project
21279
21280         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
21281         directory of an extending project, even when there are no Ada source
21282         present.
21283         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
21284         (Set_Ada_Paths.Add.Recursive_Add): Ditto
21285
21286         * mlib-prj.adb (Check_Library): For all library projects, get the
21287         library file timestamp.
21288         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
21289         (Build_Library): Use new function DLL_Prefix for the DLL_Name
21290         (Clean): Remove procedure, no longer used
21291         (Ultimate_Extension_Of): New function
21292         (Build_Library): When cleaning the library directory, only remove an
21293         existing library file and any ALI file of a source of the project.
21294         When cleaning the interface copy directory, remove any source that
21295         could be a source of the project.
21296
21297         * prj.ads, prj.adb (Project_Empty): Add values of new components
21298         Library_TS and All_Imported_Projects.
21299         (Project_Empty): Add values for new components of Project_Data:
21300         Library_ALI_Dir and Display_Library_ALI_Dir
21301
21302         * prj-attr.adb: New project level attribute name Library_ALI_Dir
21303
21304         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
21305         attribute Library_ALI_Dir.
21306         (Check_Library_Attributes): The library directory cannot be the same as
21307         any source directory of the project tree.
21308         (Check_Stand_Alone_Library): The interface copy directory cannot be
21309         the same as any source directory of the project tree.
21310
21311         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
21312         all temporary files.
21313
21314 2005-11-14  Robert Dewar  <dewar@adacore.com>
21315             Ed Schonberg  <schonberg@adacore.com>
21316
21317         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21318         (Check_Elab_Call): A call within a protected body is never an
21319         elaboration call, and does not require checking.
21320         (Same_Elaboration_Scope): Take into account protected types for both
21321         entities.
21322         (Activate_Elaborate_All_Desirable): New procedure
21323
21324         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
21325         desirable
21326
21327         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
21328         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
21329
21330         * lib-writ.ads, lib-writ.adb: 
21331         Implement new AD/ED for Elaborate_All/Elaborate desirable
21332         Use new Elaborate_All_Desirable flag in N_With_Clause node
21333
21334         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
21335         N_Free_Statement nodes.
21336         Define new class N_Subprogram_Instantiation
21337         Add Elaborate_Desirable flag to N_With_Clause node
21338         Add N_Delay_Statement (covering two kinds of delay)
21339
21340         * debug.adb: Introduce d.f flag for compiler
21341         Add -da switch for binder
21342
21343 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21344             Cyrille Comar  <comar@adacore.com>
21345
21346         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
21347         for task component, in the case of a limited aggregate. The enclosed
21348         object declaration will create it earlier. Otherwise, in the case of a
21349         nested aggregate, the object may appear in the wrong scope.
21350         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
21351         (Gen_Assign): If the component being assigned is an array type and the
21352         expression is itself an aggregate, wrap the assignment in a block to
21353         force finalization actions on the temporary created for each row of the
21354         enclosing object.
21355         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
21356         structures are initialized after all discriminants are set so that
21357         they can be accessed even when their offset is dynamic.
21358
21359 2005-11-14  Robert Dewar  <dewar@adacore.com>
21360             Hristian Kirtchev  <kirtchev@adacore.com>
21361
21362         * sem_attr.adb: Implement Machine_Rounding attribute
21363         (Analyze_Access_Attribute): The access attribute may appear within an
21364         aggregate that has been expanded into a loop.
21365         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
21366         'Terminated whenever the prefix is of a task interface class-wide type.
21367         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
21368         the prefix is of a task interface class-wide type.
21369
21370         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
21371         to avoid warnings.
21372
21373         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
21374         Remove pragma Inline for [Unaligned_]Valid.
21375         Add comments that Valid routines do not work for Vax_Float
21376
21377         * exp_attr.adb: Implement Machine_Rounding attribute
21378
21379         * snames.h: Add entry for Machine_Rounding attribute
21380
21381 2005-11-14  Javier Miranda  <miranda@adacore.com>
21382             Robert Dewar  <dewar@adacore.com>
21383             Hristian Kirtchev  <kirtchev@adacore.com>
21384
21385         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
21386         and related): For a prefix that is an explicit dereference of an
21387         access to unconstrained packed array type, annotate the dereference
21388         with an actual subtype so GIGI can make a correct size computation.
21389         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
21390         'Unrestricted_Access, if the designated type is an interface we
21391         add a type conversion to force the displacement of the pointer
21392         to the secondary dispatch table.
21393         Use Universal_Real instead of Long_Long_Float when we need a high
21394         precision float type for the generated code (prevents gratuitous
21395         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21396         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
21397         'Terminated for task interface class-wide objects. Generate a call to
21398         the predefined dispatching routine used to retrieve the _task_id from
21399         a task corresponding record.
21400         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
21401
21402         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21403         (Check_Dispatching_Operation): Protect the frontend againts
21404         previously detected errors.
21405
21406         * Makefile.rtl: Add new instantiations of system.fat_gen
21407
21408         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
21409         Change name of instantiated package for better consistency
21410         with newly added system.fat_gen instantiations.
21411
21412         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
21413         s-fvagfl.ads: New files.
21414
21415 2005-11-14  Cyrille Comar  <comar@adacore.com>
21416             Thomas Quinot  <quinot@adacore.com>
21417
21418         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
21419         assignment of a value of a tagged type that has been rewritten to a
21420         block statement, it is known by construction that no checks are
21421         necessary for the statements within the block: analyze it with checks
21422         suppressed.
21423         (Expand_N_If_Statement): When killing a dead then-branch in an
21424         if-statement that has elsif_parts, recompute the Current_Value node
21425         for any entity whose value is known from the condition of the first
21426         elsif_part.
21427         (Expand_N_Return_Statement): When returning a mutable record, convert
21428         the return value into its actual subtype in order to help the backend
21429         to return the actual size instead of the maximum. This is another
21430         aftermath of not returning mutable records on the sec-stack anymore.
21431
21432         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
21433         handling of error msg for suspicious reverse range iteration.
21434         (Check_Possible_Current_Value_Condition): Move declaration from body to
21435         spec, to allow this subprogram to be called from exp_ch5.
21436
21437 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21438
21439         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
21440         generate a set of nested array aggregates instead of a single flat
21441         aggregate for multi-dimensional arrays.
21442
21443 2005-11-14  Pascal Obry  <obry@adacore.com>
21444
21445         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
21446         by spawnve is a process handle, no need to convert. Add a parameter
21447         close to control wether the process handle must be closed.
21448         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
21449         a process handle, not need to convert.
21450         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
21451
21452         * g-expect.adb: (Kill): Document the new close parameter.
21453         (Close): Do not release the process handle in the kill there as
21454         waitpid() is using it.
21455         (Send_Signal): Release the process handle.
21456
21457 2005-11-14  Robert Dewar  <dewar@adacore.com>
21458
21459         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
21460         need a high precision float type for the generated code (prevents
21461         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21462         used).
21463
21464         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
21465         need a high precision float type for the generated code (prevents
21466         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21467         used).
21468         (Expand_Width_Attribute): In configurable run-time, the attribute is not
21469         allowed on non-static enumeration subtypes. Force a load error to emit
21470         the correct diagnostic.
21471
21472 2005-11-14  Thomas Quinot  <quinot@adacore.com>
21473             Robert Dewar  <dewar@adacore.com>
21474             Ed Schonberg  <schonberg@adacore.com>
21475
21476         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
21477         subtype to compute the size of the designated object at run-time,
21478         create such a subtype and store it in the Actual_Designated_Subtype
21479         attribute of the N_Free_Statement.
21480         Generate itype for classwide designated object in both cases of
21481         user-specified storage pool: specific and class-wide, not only in the
21482         specific case.
21483         Raise CE when trying to set a not null access type object to null.
21484         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
21485         an explicit loop, because freeze nodes make its position variable.
21486
21487         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
21488         null object.
21489
21490 2005-11-14  Javier Miranda  <miranda@adacore.com>
21491
21492         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
21493         Build_Stream_Procedure): Add the null-excluding attribute to the first
21494         formal.
21495         This has no semantic meaning under Ada95 mode but it is a
21496         requirement under Ada05 mode.
21497
21498         * par-ch3.adb (P_Access_Definition): Addition of warning message if
21499         the null exclusion is used under Ada95 mode
21500         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
21501         (P_Access_Definition): Remove assertion that forbids the use of
21502         the null-exclusion feature in Ada95.
21503
21504 2005-11-14  Robert Dewar  <dewar@adacore.com>
21505
21506         * impunit.adb: Exclude container helper units not intended for use by
21507         users.
21508
21509 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21510
21511         * freeze.adb (Freeze_Entity): For an access formal that is an access
21512         to subprogram, freeze the anonymous subprogram type at the same time,
21513         to prevent later freezing in the wrong scope, such as the enclosing
21514         subprogram body.
21515         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
21516         subprogram whenever available.
21517
21518 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21519
21520         PR ada/23732
21521         * gnatvsn.ads (Library_Version): Bump to 4.1
21522
21523 2005-11-14  Robert Dewar  <dewar@adacore.com>
21524
21525         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
21526         Storage_Offset to avoid wrap around causing invalid results.
21527
21528 2005-11-14  Pascal Obry  <obry@adacore.com>
21529
21530         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
21531         cross-compiler.
21532         (Scan_Bind_Arg): Fail with an error message if -M option is used
21533         on a native compiler.
21534
21535 2005-11-14  Robert Dewar  <dewar@adacore.com>
21536             Vincent Celier  <celier@adacore.com>
21537
21538         * gprep.adb: Implement -C switch to scan comments
21539
21540         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
21541
21542         * scans.ads: Comment updates (including new use of Tok_Comment in
21543         preprocessing)
21544
21545         * opt.ads: Add documentation for flags that are used by gprmake,
21546         currently and in the next version of gprmake.
21547         (Verbosity_Level): New variable
21548         Add Replace_In_Comments switch
21549
21550         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
21551         and -vm.
21552         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
21553
21554 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21555
21556         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
21557         message, friendlier.
21558
21559 2005-11-14  Robert Dewar  <dewar@adacore.com>
21560
21561         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
21562
21563 2005-11-14  Doug Rupp  <rupp@adacore.com>
21564
21565         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
21566
21567 2005-11-14  Robert Dewar  <dewar@adacore.com>
21568
21569         * interfac.ads: Change declarations of IEEE float types so that we no
21570         longer need a separate version of this package for VMS.
21571
21572 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21573
21574         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
21575         internal entity created for the declaration of a child subprogram body
21576         with no spec as coming from source, to generate proper cross-reference
21577         information.
21578
21579 2005-11-14  Vincent Celier  <celier@adacore.com>
21580
21581         * make.adb (Compile_Sources): Change verbose message to minimum
21582         verbosity level High for "is in an Ada library", "is a read-only
21583         library" and "is an internal library",
21584         (Create_Binder_Mapping_File): Path name of ALI file for library project
21585         must include the library directory, not the object directory.
21586         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
21587         for new switches -vl, -vm and -vh.
21588         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
21589         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
21590         (Compile_Sources): Do not attempt to compile if an ALI file is missing
21591         in a project that is externally built.
21592         (Compute_All_Imported_Projects): New procedure
21593         (Gnatmake): Check if importing libraries should be regenerated because
21594         at least an imported library is more recent.
21595         (Initialize): For each project compute the list of the projects it
21596         imports directly or indirectly.
21597         (Add_Library_Search_Dir): New procedure, used in place of
21598         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21599         put in the search paths.
21600         (Add_Source_Search_Dir): New procedure, used in place of
21601         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21602         put in the search paths.
21603         (Mark_Directory): Resolve the absolute path the directory before marking
21604         it.
21605
21606         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
21607         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21608         Switch. Do not handle any exception.
21609         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
21610         so that the switch is recognized as valid.
21611         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
21612
21613 2005-11-14  GNAT Script  <nobody@adacore.com>
21614
21615         * Make-lang.in: Makefile automatically updated
21616
21617 2005-11-14  Pascal Obry  <obry@adacore.com>
21618
21619         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
21620         used.
21621         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
21622         In both cases the last argument was dropped.
21623
21624 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
21625
21626         * namet.h: (Column_Numbe): New type.
21627         (Get_Column_Number): Define to sinput__get_column_number.
21628         (Instantiation): Define to sinput__instantiation.
21629         (Get_Column_Number): Declare.
21630         (Instantiation): Likewise.
21631
21632 2005-11-14  Robert Dewar  <dewar@adacore.com>
21633
21634         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
21635         syntax, which could cause compiler hangs.
21636
21637 2005-11-14  Vincent Celier  <celier@adacore.com>
21638
21639         * prj-ext.adb: Take into account new environment variable
21640         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
21641         are defined.
21642         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
21643         normalize its path name, making it absolute and resolving symbolic
21644         links, and replace the original if resolved path is different.
21645
21646 2005-11-14  Vincent Celier  <celier@adacore.com>
21647
21648         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
21649         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
21650
21651 2005-11-14  Emmanuel Briot  <briot@adacore.com>
21652
21653         * prj-pp.adb (Print): Do not output the with statement if the
21654         associated name is empty, which happens for virtual extending projects.
21655         (Print): Preserve the "extends all" attribute when printing the project.
21656
21657         * prj-tree.ads (String_Value_Of): Add comment about returned value for
21658         a virtual extending project.
21659
21660 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21661
21662         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
21663         rhs of an assignment even if the type is unconstrained, when the
21664         context is non-expanding.
21665         In an inlined body, if the context type is private,
21666         resolve with its full view, which must be a composite type.
21667
21668 2005-11-14  Robert Dewar  <dewar@adacore.com>
21669             Ed Schonberg  <schonberg@adacore.com>
21670
21671         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21672         Do not give obsolescent warning on with of subprogram (since we
21673         diagnose calls)
21674         (Analyze_With_Clause): Add test for obsolescent package
21675         (Install_Context_Clauses): If the unit is the body of a child unit, do
21676         not install twice the private declarations of the parents, to prevent
21677         circular lists of Use_Clauses in a parent.
21678         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
21679         compiling body of child unit.
21680         Use new class N_Subprogram_Instantiation
21681         (Expand_With_Clause): If this is a private with_clause for a child unit,
21682         appearing in the context of a package declaration, then the implicit
21683         with_clauses generated for parent units are private as well.
21684         (License_Check): Do not generate message if with'ed unit is internal
21685
21686 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
21687             Ed Schonberg  <schonberg@adacore.com>
21688             Thomas Quinot  <quinot@adacore.com>
21689
21690         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
21691         names are internal, because they will not have a corresponding partner
21692         in the actual package.
21693         (Analyze_Formal_Package): Move the setting of the formal package spec's
21694         Generic_Parent field so that it occurs prior to analyzing the package,
21695         to allow proper operation of Install_Parent_Private_Declarations.
21696         (Analyze_Package_Instantiation): Set the instantiated package entity's
21697         Package_Instantiation field.
21698         (Get_Package_Instantiation_Node): Move declaration to package spec.
21699         Retrieve the N_Package_Instantiation node when the Package_Instantiation
21700         field is present.
21701         (Check_Generic_Child_Unit): Within an inlined call, the only possible
21702         instantiation is Unchecked_Conversion, for which no parents are needed.
21703         (Inline_Instance_Body): Deinstall and record the use_clauses for all
21704         parent scopes of a scope being removed prior to inlining an instance
21705         body.
21706         (Analyze_Package_Instantiation): Do not perform front-end inlining when
21707         the current context is itself an instance within a non-instance child
21708         unit, to prevent scope stack errors.
21709         (Save_References): If the node is an aggregate that is an actual in a
21710         call, rewrite as a qualified expression to preserve some type
21711         information, to resolve possible ambiguities in the instance.
21712         (Instance_Parent_Unit): New global variable to record the ultimate
21713         parent unit associated with a generic child unit instance (associated
21714         with the existing Parent_Unit_Visible flag).
21715         (type Instance_Env): New component Instance_Parent_Unit for stacking
21716         parents recorded in the global Instance_Parent_Unit.
21717         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
21718         stack.
21719         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
21720         it's not a top-level unit, and only do this if Instance_Parent_Unit is
21721         not already set. Replace test of Is_Child_Unit with test of parent's
21722         scope against package Standard. Add comments and a ??? comment.
21723         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
21724         on a child instance parent to test that the parent equals
21725         Instance_Parent rather than simply checking that the unit is not a
21726         child unit.
21727         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
21728         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
21729         a formal interface are ancestors of the corresponding actual.
21730         (Validate_Formal_Interface_Type): Additional legality checks.
21731         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
21732         interface types with ancestors.
21733         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
21734         to diagnose attempts to use generic within its own declaration.
21735
21736 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21737             Javier Miranda  <miranda@adacore.com>
21738
21739         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
21740         discriminant.
21741         (Build_Private_Derived_Type): The entity of the created full view of the
21742         derived type does not come from source. If after installing the private
21743         declarations of the parent scope the parent is still private, use its
21744         full view to construct the full declaration of the derived type.
21745         (Build_Derived_Record_Type): Relax the condition that controls the
21746         execution of the check that verifies that the partial view and
21747         the full view agree in the set of implemented interfaces. In
21748         addition, this test now only takes into account the progenitors.
21749         (Derive_Interface_Subprograms): No need to derive subprograms
21750         of ancestors that are interfaces.
21751         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
21752         associated code.
21753         Change name Is_Package to Is_Package_Or_Generic_Package
21754         (Complete_Subprograms_Derivation): Handle the case in which the full
21755         view is a transitive derivation of the ancestor of the partial view.
21756         (Process_Full_View): Rename local subprogram Find_Interface_In_
21757         Descendant to Find_Ancestor_Interface to leave the code more clear.
21758         Remove wrong code that avoids the generation of an error message
21759         when the immediate ancestor of the partial view is an interface.
21760         In addition some minor reorganization of the code has been done to
21761         leave it more clear.
21762         (Analyze_Type_Declaration): If type has previous incomplete tagged
21763         partial view, inherit properly its primitive operations.
21764         (Collect_Interfaces): Make public, for analysis of formal
21765         interfaces.
21766         (Analyze_Interface_Declaration): New procedure for use for regular and
21767         formal interface declarations.
21768         (Build_Derived_Record_Type): Add support for private types to the code
21769         that checks if a tagged type implements abstract interfaces.
21770         (Check_Aliased_Component_Type): The test applies in the spec of an
21771         instance as well.
21772         (Access_Type_Declaration): Clean up declaration of malformed type
21773         declared as an access to its own classwide type, to prevent cascaded
21774         crash.
21775         (Collect_Interfaces): For private extensions and for derived task types
21776         and derived protected types, the parent may be an interface that must
21777         be included in the interface list.
21778         (Access_Definition): If the designated type is an interface that may
21779         contain tasks, create Master_Id for it before analyzing the expression
21780         of the declaration, which may be an allocator.
21781         (Record_Type_Declaration): Set properly the interface kind, for use
21782         in allocators, the creation of master id's for task interfaces, etc.
21783
21784 2005-11-14  Javier Miranda  <miranda@adacore.com>
21785             Ed Schonberg  <schonberg@adacore.com>
21786
21787         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
21788         omitted in case of stream attribute subprograms.
21789         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
21790         appear immediately after a subprogram body, when there is no previous
21791         subprogram declaration.
21792         Change name Is_Package to Is_Package_Or_Generic_Package
21793         (Process_Formals): A non null qualifier on a non null named access
21794         type is not an error, and is a warning only if Redundant_Constructs
21795         are flagged.
21796
21797 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
21798             Ed Schonberg  <schonberg@adacore.com>
21799
21800         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
21801         nested within Analyze_Package_Specification to install the private
21802         declarations and use clauses within each of the parent units of a
21803         package instance of a generic child package.
21804         (Analyze_Package_Specification): When entering a private part of a
21805         package associated with a generic instance or formal package, the
21806         private declarations of the parent must be installed (by calling new
21807         procedure Install_Parent_Private_Declarations).
21808         Change name Is_Package to Is_Package_Or_Generic_Package
21809         (Preserve_Full_Attributes): For a synchronized type, the corresponding
21810         record is absent in a generic context, which does not indicate a
21811         compiler error.
21812
21813 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21814
21815         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
21816         not try to rewrite a renamed stream attribute, because the operations
21817         on the type may not have been generated.
21818         Handle properly a renaming_as_body generated for a stream operation
21819         whose default is abstract because the object type itself is abstract.
21820         (Find_Type): If the type is incomplete and appears as the prefix of a
21821         'Class reference, it is tagged, and its list of primitive operations
21822         must be initialized properly.
21823         (Chain_Use_Clauses): When chaining the use clauses that appear in the
21824         private declaration of a parent unit, prior to compiling the private
21825         part of a child unit, find on the scope stack the proper parent entity
21826         on which to link the use clause.
21827         (Note_Redundant_Use): Emit a warning when a redundant use clause is
21828         detected.
21829         (Analyze_Object_Renaming): An attribute reference is not a legal object
21830         if it is not a function call.
21831
21832 2005-11-14  Robert Dewar  <dewar@adacore.com>
21833             Ed Schonberg  <schonberg@adacore.com>
21834
21835         * sem_eval.adb: Implement d.f flag
21836         (Subtype_Statically_Match): A generic actual type has unknown
21837         discriminants when the corresponding actual has a similar partial view.
21838         If the routine is called to validate the signature of an inherited
21839         operation in a child instance, the generic actual matches the full view,
21840
21841 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
21842             Ed Schonberg  <schonberg@adacore.com>
21843             Robert Dewar  <dewar@adacore.com>
21844             Thomas Quinot  <quinot@adacore.com>
21845
21846         * sem_res.adb (Resolve_Call): Provide a better error message whenever
21847         a procedure call is used as a select statement trigger and is not an
21848         entry renaming or a primitive of a limited interface.
21849         (Valid_Conversion): If the operand has a single interpretation do not
21850         remove address operations.
21851         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
21852         statement to inhibit warning.
21853         (Resolve_Unary_Op): Do not produce a warning when
21854         processing an expression of the form -(A mod B)
21855         Use Universal_Real instead of Long_Long_Float when we need a high
21856         precision float type for the generated code (prevents gratuitous
21857         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21858         (Resolve_Concatenation_Arg): Improve error message when argument is an
21859         ambiguous call to a function that returns an array.
21860         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
21861         there is an implicit operator in the given scope if we are within an
21862         instance: legality check has been performed on the generic.
21863         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
21864         after resolving operand, to avoid false warnings on overloaded calls.
21865
21866 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21867             Javier Miranda  <miranda@adacore.com>
21868
21869         PR ada/15604
21870         * sem_type.adb (Covers): In an inlined body, a composite type matches
21871         a private type whose full view is a composite type.
21872         (Interface_Present_In_Ancestor): Protect the frontend against
21873         previously detected errors to ensure that its compilation
21874         with assertions enabled gives the same output that its
21875         compilation without assertions.
21876         (Interface_Present_In_Ancestor): Add support for private types.
21877         Change name In_Actual to In_Generic_Actual (clean up)
21878         (Disambiguate): New predicate In_Actual, to recognize expressions that
21879         appear in the renaming declaration generated for generic actuals, and
21880         which must be resolved in the outer context.
21881
21882 2005-11-14  Robert Dewar  <dewar@adacore.com>
21883             Thomas Quinot  <quinot@adacore.com>
21884             Hristian Kirtchev  <kirtchev@adacore.com>
21885             Ed Schonberg  <schonberg@adacore.com>
21886
21887         * sem_util.ads, sem_util.adb: Change name Is_Package to
21888         Is_Package_Or_Generic_Package.
21889         (Check_Obsolescent): New procedure.
21890         (Set_Is_Public): Remove obsolete junk test.
21891         (Set_Public_Status): Do not set Is_Public on an object whose declaration
21892         occurs within a handled_sequence_of_statemets.
21893         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
21894         for a parameterless procedure.
21895         (Enter_Name): Recognize renaming declarations created for private
21896         component of a protected type within protected operations, so that
21897         the source name of the component can be used in the debugger.
21898
21899 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21900             Robert Dewar  <dewar@adacore.com>
21901
21902         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
21903         of a generic subprogram are not visible outside the body.
21904         (Set_Warning_Switch): New procedure (code to set warning mode moved
21905         here from Switch.C so that it can be shared by pragma processing.
21906         (Check_References): Special case warning for non-modified non-imported
21907         volatile objects.
21908         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
21909         form with a string literal argument
21910
21911 2005-11-14  Javier Miranda  <miranda@adacore.com>
21912
21913         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
21914         anonymous access.
21915         (Write): Addition of "not null" to the anonymous access.
21916         (Read): Addition of "not null" to the anonymous access.
21917         (Write): Addition of "not null" to the anonymous access.
21918
21919         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
21920         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
21921         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
21922         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
21923         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
21924         "not null" to the anonymous access.
21925
21926 2005-11-14  Robert Dewar  <dewar@adacore.com>
21927
21928         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
21929         offset values
21930
21931 2005-11-14  Vincent Celier  <celier@adacore.com>
21932
21933         * switch.adb (Bad_Switch): New procedure
21934         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
21935         message when in error.
21936
21937         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
21938         Too_Many_Output_Files): Remove declarations, no longer used.
21939         (Scan_Nat): New parameter Switch
21940         (Scan_Pos): Ditto
21941         (Bad_Switch): New procedure
21942
21943         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
21944         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
21945         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
21946         to Osint.Fail. Do not handle any exception.
21947
21948 2005-11-14  Vincent Celier  <celier@adacore.com>
21949
21950         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
21951         designates a non existent directory.
21952
21953 2005-11-14  Robert Dewar  <dewar@adacore.com>
21954
21955         * xgnatugn.adb: Replace invalid membership test by 'Valid
21956
21957 2005-11-14  Vincent Celier  <celier@adacore.com>
21958
21959         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
21960         there is no object directory.
21961
21962 2005-11-14  Robert Dewar  <dewar@adacore.com>
21963
21964         * usage.adb: Minor adjustment to output format, use nn instead of nnn
21965         (so that -gnateInnn does not run into next column)
21966
21967 2005-11-14  Ed Falis  <falis@adacore.com>
21968
21969         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
21970         "constrained"
21971
21972 2005-11-14  Cyrille Comar  <comar@adacore.com>
21973
21974         * s-chepoo.ads: Add comments on Dereference.
21975         Remove unnecessary inherited abstract primitives.
21976         Cosmetic cleanup.
21977
21978 2005-11-14  Robert Dewar  <dewar@adacore.com>
21979
21980         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
21981         node parameter, not needed, since it is available as Declaration_Node.
21982
21983 2005-11-14  Geert Bosch  <bosch@adacore.com>
21984
21985         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
21986         grammatically correct.
21987
21988 2005-11-14  Vincent Celier  <celier@adacore.com>
21989
21990         * s-fileio.ads: Correct spelling error in comment
21991
21992 2005-11-14  Cyrille Comar  <comar@adacore.com>
21993             Robert Dewar  <dewar@adacore.com>
21994             Vincent Celier  <celier@adacore.com>
21995             Ben Brosgol  <brosgol@adacore.com>
21996             Jose Ruiz  <ruiz@adacore.com>
21997             Pascal Obry  <obry@adacore.com>
21998
21999         * gnat_ugn.texi: 
22000         Document that -fstack-check is needed for strict compliance with the
22001         Ada 95 Reference Manual.
22002         Correct reference to VAX systems to meet HP guidelines
22003         Add documentation for new gnatmake switches -vl, -vm and -vh
22004         Replace DEC Ada by HP Ada
22005         Replace DIGITAL by HP
22006         Remove empty section on tools in compatibility section
22007         Clarify the Windows convention semantics.
22008         Document the Win32 calling convention.
22009         The Stdcall, Win32 and DLL convention are synonyms.
22010         Add a note in -gnatR description about zero size record components
22011         Note on new >= and <= warnings for -gnatwc
22012         Document that equal sign after -gnatm is optional.
22013         Note that strip is working fine on DLL built with a Library
22014         Project. The restriction apply only to DLL built with gnatdll.
22015         Update section about the way to debug a DLL.
22016         Update information about the DLL convention.
22017         Document -C switch for gnatprep
22018         Document new attribute Library_ALI_Dir
22019         Update elaboration doc to include implicit Elaborate pragmas now
22020         generated for subprogram instantiations.
22021         Document limitation on executable names that include spaces for --GCC,
22022         --GNATBIND, and --GNATLINK switches.
22023         Document that -w causes -gnatws to be added at start of gcc switches
22024
22025         * gnat_rm.texi: Document that -mieee is needed for generating infinite
22026         and NaN values in case of overflow on machines that are not fully
22027         compliant with the IEEE floating-point standard.
22028         Create a section describing the set of compiler options needed for
22029         strict compliance with the Ada 95 Reference Manual.
22030         Add documentation for pragma Obsolescent applied to a package
22031         Clarify potential issues of mixed language programs related to the
22032         I/O buffering enabling in the elaboration of the GNAT runtime.
22033         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22034         This documentation only patch adds extra documentsion for pragma
22035         Restrictions (No_Elaboration_Code), explaining why it is not possible
22036         to document this restriction in terms of allowed source constructs.
22037         Document string literal form of pragma Warnings
22038         Document new attribute Library_ALI_Dir
22039         Add documentation on stable attributes in project files that was missing
22040
22041         * gnat-style.texi: Indicate that paragraphs within a single comment
22042         should be separated by empty comment lines
22043
22044         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22045         /05 respectively)
22046
22047         * bindusg.adb: Minor cleanup, put -m before -M for consistency
22048
22049 2005-11-14  Robert Dewar  <dewar@adacore.com>
22050
22051         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22052         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22053         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22054         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22055         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22056         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22057         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22058         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
22059         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
22060         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22061         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
22062         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
22063         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
22064         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
22065         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
22066         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
22067         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
22068         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
22069         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
22070         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
22071         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22072         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
22073         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
22074         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
22075         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
22076         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
22077         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
22078         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
22079         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
22080         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
22081         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
22082         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
22083         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
22084         system-interix.ads, system-solaris-sparc.ads,
22085         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
22086         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
22087         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
22088         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
22089         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
22090         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
22091         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
22092         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22093         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
22094         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
22095         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
22096         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
22097         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
22098         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
22099         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
22100         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
22101         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
22102         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
22103         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
22104         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
22105         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
22106         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
22107         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
22108         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
22109         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
22110         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22111         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
22112         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
22113         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
22114         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
22115         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
22116         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
22117         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22118         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
22119         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
22120         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
22121         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22122         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
22123         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
22124         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
22125         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
22126         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
22127         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
22128         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
22129         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
22130         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
22131         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
22132         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
22133         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
22134         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
22135         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
22136         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
22137         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
22138         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
22139         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
22140         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
22141         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
22142         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
22143         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
22144         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
22145         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
22146         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
22147         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
22148         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
22149         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
22150         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
22151         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
22152         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
22153         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
22154         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
22155         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
22156         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
22157         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
22158         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
22159         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
22160         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
22161         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
22162         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
22163         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
22164         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
22165         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
22166         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
22167         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
22168         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
22169         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
22170         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
22171         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
22172         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
22173         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
22174         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
22175         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
22176         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
22177         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
22178         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
22179         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
22180         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
22181         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
22182         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
22183         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
22184         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
22185         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
22186         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
22187         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
22188         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
22189         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
22190         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
22191         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
22192         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
22193         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
22194         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
22195         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
22196         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
22197         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
22198         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
22199         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
22200         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
22201         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
22202         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
22203         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
22204         a-numaux-darwin.ads, a-numaux-darwin.adb,
22205         a-swuwha.ads, a-stunha.ads: Minor reformatting
22206
22207 2005-11-14  Robert Dewar  <dewar@adacore.com>
22208
22209         PR ada/18434
22210         * osint-m.adb: Add pragma Elaborate_All for Osint
22211
22212 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
22213
22214         PR ada/23995
22215         * trans.c (call_to_gnu): Restore statement lost in translation.
22216
22217 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
22218
22219         * init.c: Use the Linux-specific section for the IA-64/Linux target.
22220         (__gnat_adjust_context_for_raise): Add conditional code so that the
22221         IA-64 is also supported.
22222
22223 2005-11-03  James E Wilson  <wilson@specifix.com>
22224
22225         PR ada/23427
22226         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
22227         TREE_OVERFLOW check.
22228
22229 2005-09-21  Olivier Hainque  <hainque@adacore.com>
22230
22231         PR ada/22418
22232         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
22233         as we create them to store a size in bits.
22234
22235 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
22236
22237         PR ada/21937
22238         PR ada/22328
22239         PR ada/22381
22240         PR ada/22383
22241         PR ada/22419
22242         PR ada/22420
22243         * utils2.c (build_return_expr): New helper function.
22244         * gigi.h (build_return_expr): Declare it.
22245         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
22246         of manually building the RETURN_EXPR tree.
22247         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
22248         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
22249         build_binary_op for the "target pointer" case.  Use build_return_expr
22250         instead of manually building the RETURN_EXPR tree.
22251
22252 2005-09-16  Laurent Guerby  <laurent@guerby.net>
22253
22254         PR ada/23788
22255         * s-tpinop.ads: Make this unit Preelaborate.
22256
22257 2005-09-16  Andreas Jaeger  <aj@suse.de>
22258
22259         * socket.c: Add string.h for memcpy.
22260
22261 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
22262
22263         * dec-io.ads, dec-io.adb: Removed, no longer used.
22264
22265 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22266
22267         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
22268
22269         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22270         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
22271         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
22272         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
22273         dependent units are Preelaborate.
22274         (Initialize): Call Interrupt_Managemeent.Initialize and
22275         OS_Primitives.Initialize to ensure proper initialization of this unit.
22276         Remove use of System.Soft_Links
22277         Make this unit Preelaborate.
22278
22279         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22280         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
22281         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
22282         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
22283         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
22284         s-tratas.ads, s-tasinf.ads: Minor reformatting.
22285         Add pragma Preelaborate, since these packages are suitable for this
22286         categorization.
22287         Update comments.
22288
22289         * s-traent-vms.ads, s-intman-dummy.adb,
22290         s-taprop-dummy.adb: Make this unit Preelaborate.
22291
22292         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
22293         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
22294         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
22295         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
22296         s-intman-solaris.adb, s-intman-irix-athread.adb,
22297         s-intman-irix.adb: Mark this unit Preelaborate.
22298         (Initialize): New procedure.
22299         Update comments.
22300
22301         * s-taspri-linux.ads: Removed.
22302
22303         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
22304         as done by other implementations (e.g. posix).
22305
22306         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
22307         responsible for deferring abort.
22308         Mark this unit Preelaborate.
22309
22310         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
22311         proper initialization of the tasking run-time.
22312
22313         * s-tasdeb.ads: Mark this unit Preelaborate.
22314         (Known_Tasks): Add explicit default value to avoid elaboration code.
22315
22316         * s-inmaop-vms.adb (Elaboration code): Add call to
22317         Interrupt_Management.Initialize since the elaboration code depends on
22318         proper initialization of this package.
22319
22320         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
22321         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
22322         s-osprim-posix.adb: Make this unit Preelaborate.
22323
22324         * a-calend.adb: Add call to OS_Primitives.Initialize
22325
22326         * a-elchha.adb: Update use of Except.Id.Full_Name.
22327         Minor reformatting.
22328         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
22329
22330         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
22331         Move with clauses outside Warnings Off now that dependent units are
22332         Preelaborate.
22333         Use raise xxx with "..."; Ada 2005 form.
22334
22335         * a-taside.ads, a-taside.adb:
22336         Remove some dependencies, to make it easier to make this unit truly
22337         Preelaborate.
22338         Rewrite some code to be conformant with Preelaborate rules.
22339
22340         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
22341         marked Preelaborate in the future.
22342
22343         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
22344         these units Preelaborate.
22345
22346         * s-exctab.adb: Update use of Except.Id.Full_Name.
22347
22348         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
22349         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
22350         Set_Exc_Stack_Addr): Removed, no longer used.
22351         Remove reference to *Machine_State_Addr*, no longer needed.
22352
22353         * s-stalib.ads: Mark this unit as Preelaborate[_05].
22354         (Exception_Data): Full_Name is now a System.Address so that this unit
22355         can be made Preelaborate.
22356         Clean up/simplify code thanks to Full_Name being a System.Address.
22357         Remove obsolete pragma Suppress (All_Checks), no longer needed.
22358
22359         * s-taskin.ads, s-taskin.adb:
22360         Move with clauses outside Warnings Off now that dependent units are
22361         Preelaborate.
22362         Make this unit Preelaborate.
22363         (Initialize): New proceduure, replace elaboration code and makes the
22364         set up of the tasking run-time cleaner.
22365         (Detect_Blocking): Now a function instead of a deferred boolean, to
22366         obey Preelaborate rules.
22367
22368         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
22369         soft links, no longer used.
22370
22371         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
22372         packages are suitable for this categorization.
22373
22374         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
22375         since we compile run-time sources in Ada 2005 mode.
22376         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
22377         avoid having s-taprop*.adb depend on s-soflin and to avoid code
22378         duplication.
22379         Remove reference to *Machine_State_Addr*, no longer needed.
22380
22381 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22382
22383         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
22384         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22385         Remove reference to System.Exceptions.
22386
22387         * s-mastop-x86.adb: Removed, no longer used.
22388
22389         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
22390
22391         * a-excach.adb: Minor reformatting.
22392
22393         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
22394         instead fix new warnings that were hidden by this change.
22395         (AAA, ZZZ): Removed, replaced by...
22396         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
22397         are used instead of constants, to help make Ada.Exception truly
22398         preelaborate.
22399         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
22400         Raise_Storage_Error): File is now a System.Address, to simplify code.
22401         (Elab code): Removed, no longer used.
22402         (Null_Occurrence): Remove Warnings Off and make this construct
22403         preelaborate.
22404         Remove code related to front-end zero cost exception handling, since
22405         it is no longer used.
22406         Remove -gnatL/-gnatZ switches.
22407
22408         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
22409         Update use of Except.Msg.
22410
22411         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
22412         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
22413         to front-end zero cost exception handling, since it is no longer used.
22414         Remove -gnatL/-gnatZ switches.
22415
22416         * lib-writ.ads: Minor reformatting
22417         Remove doc of UX
22418
22419         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
22420
22421         * Make-lang.in: Remove references to s-except.ads
22422
22423         * s-except.ads: Removed, no longer used.
22424
22425         * s-mastop.ads, s-mastop.adb:
22426         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22427         Remove reference to System.Exceptions.
22428
22429         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
22430         switch-b.adb: Remove code related to front-end zero cost exception
22431         handling, since it is no longer used.
22432         Remove -gnatL/-gnatZ switches.
22433
22434 2005-09-01  Robert Dewar  <dewar@adacore.com>
22435             Gary Dismukes  <dismukes@adacore.com>
22436             Javier Miranda  <miranda@adacore.com>
22437
22438         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
22439         type by valid test and generate warning.
22440         (Tagged_Membership): Generate call to the run-time
22441         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
22442         Change formal name Subtype_Mark to Result_Definition in several calls to
22443         Make_Function_Specification.
22444         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
22445         check for proper accessibility of the operand of a class-wide allocator.
22446         The check can be left out if checks are suppressed or if the expression
22447         has a specific tagged type whose level is known to be safe.
22448
22449         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
22450         generates the run-time check associated with null-excluding entities.
22451         (Expand_N_Return_Statement): Add tests to determine if the accessibility
22452         check on the level of the return expression of a class-wide function
22453         can be elided. The check usually isn't needed if the expression has a
22454         specific type (unless it's a conversion or a formal parameter). Also
22455         add a test for whether accessibility checks are suppressed. Augment
22456         the comments to describe the conditions for performing the check.
22457
22458 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
22459             Javier Miranda  <miranda@adacore.com>
22460             Gary Dismukes  <dismukes@adacore.com>
22461             Ed Schonberg  <schonberg@adacore.com>
22462
22463         * a-tags.adb (IW_Membership): Give support to
22464         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
22465         subprogram has been extended to look for the tag in the ancestors tag
22466         table.
22467         Update the structure of the GNAT Dispatch Table to reflect the
22468         additional two tables used in dispatching selects.
22469         Introduce appropriate array types and record components in
22470         Type_Specific_Data to reflect the two tables.
22471         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
22472         the TSD of a tag, indexed by position.
22473         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
22474         operation kind in the TSD of a tag, indexed by position.
22475
22476         * a-tags.ads: Introduce an enumeration type to capture different
22477         primitive operation kinds. Define a constant reflecting the number of
22478         predefined primitive operations.
22479         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
22480         of an entry wrapper.
22481         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
22482         callable entity of a primitive operation.
22483
22484         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
22485         primitive operations used in dispatching selects for limited
22486         interfaces, limited tagged, task and protected types what implement a
22487         limited interface.
22488         (Freeze_Type): Generate the bodies of the primitive operations used in
22489         dispatching selects for limited tagged, task and protected types that
22490         implement a limited interface. Generate statements to populate the two
22491         auxiliary tables used for dispatching in select statements.
22492         (Freeze_Record_Type): Add call to initialize the dispatch table entries
22493         associated with predefined interface primitive operations.
22494         (Build_Dcheck_Function): Change Set_Subtype_Mark to
22495         Set_Result_Definition.
22496         (Build_Variant_Record_Equality): Change Subtype_Mark to
22497         Result_Definition.
22498         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
22499         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
22500         (Build_Assignment): Simplify the code that adds the run-time-check.
22501         (Expand_N_Object_Declaration): Code cleanup.
22502
22503         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
22504         entries when there is a protected type that implements a limited
22505         interface.
22506
22507         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
22508         common routines used in expansion of dispatching selects.
22509         (Add_Private_Declarations): Select the appropriate protection type when
22510         there is a protected type that implements a limited interface.
22511         (Build_Parameter_Block): Generate a wrapped parameter block.
22512         (Build_Protected_Subprogram_Body): Select the appropriate type for
22513         locking entries when there is a protected type that implements a
22514         limited interface.
22515         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
22516         classified as entry wrappers.
22517         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
22518         asynchronous selects.
22519         (Expand_N_Conditional_Entry_Call): Add support for expansion of
22520         dispatching conditional selects.
22521         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
22522         protection when there is a protected type that implements limited
22523         interfaces.
22524         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
22525         timed selects.
22526         (Extract_Dispatching_Call): Extract the entity of the name of a
22527         dispatching call, the object parameter, actual parameters and
22528         corresponding formals.
22529         (Make_Initialize_Protection): Correct logic of protection initialization
22530         when there is a protected type that implements a limited interface.
22531         (Parameter_Block_Pack): Populate a wrapped parameter block with the
22532         values of actual parameters.
22533         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
22534         block and assign them to the original actual parameters.
22535
22536         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
22537         (Build_Protected_Sub_Specification): Change the type and name of the
22538         last formal to account for the increased variety of protection modes.
22539
22540         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
22541         entities. Used to save the value of the Is_Hidden attribute when the
22542         limited-view is installed.
22543         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
22544         the attribute of procedures classified as entry wrappers.
22545         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
22546         entity of a primitive wrapper.
22547         (Write_Entity_Flags): Output the name and value of the
22548         Is_Primitive_Wrapper attribute.
22549         (Write_Field27_Name): Output the name and entity of the field Wrapped_
22550         Entity.
22551         (Underlying_Type): If we have an incomplete entity that comes from
22552         the limited view then we return the Underlying_Type of its non-limited
22553         view if it is already available.
22554         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
22555         including operators.
22556         (Write_Field26_Name): Add entry for Overridden_Operation
22557         (Overridden_Operation): New attribute of functions and procedures.
22558
22559         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
22560         predefined position in the dispatch table for the primitive operations
22561         used in dispatching selects.
22562         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
22563         predefined primitive operations and replace it with
22564         Default_Prim_Op_Count.
22565         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
22566         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
22567         the names of the generated primitive operations used in dispatching
22568         selects.
22569         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
22570         case of abstract interface types. They will be inherit by the objects
22571         implementing the interface.
22572         (Make_DT): There is no need to inherit the dispatch table of the
22573         ancestor interface for the elaboration of abstract interface types.
22574         The dispatch table will be inherited by the object implementing the
22575         interface.
22576         (Copy_Secondary_DTs): Add documentation.
22577         (Validate_Position): Improve this static check in case of
22578         aliased subprograms because aliased subprograms must have
22579         the same position.
22580         (Init_Predefined_Interface_Primitives): New subprogram that initializes
22581         the entries associated with predefined primitives of all the secondary
22582         dispatch tables.
22583         (Build_Anonymous_Access_Type): Removed.
22584         (Expand_Interface_Actuals): With the previous cleanup there is no need
22585         to build an anonymous access type. This allows further cleanup in the
22586         code generated by the expander.
22587         (Expand_Interface_Conversion): If the actual is an access type then
22588         build an internal function to handle the displacement. If the actual
22589         is null this function returns null because no displacement is
22590         required; otherwise performs a type conversion that will be
22591         expanded in the code that returns the value of the displaced actual.
22592         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
22593         conversions that have no effect in the generated code because no
22594         displacement is required. Code cleanup; use local variables to
22595         avoid repeated calls to the subprogram directly_designated_type().
22596
22597         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
22598         Classify the primitive operations used in dispatching selects as
22599         predefined.
22600         (Implements_Limited_Interface): Determine whether some type either
22601         directly implements a limited interface or extends a type that
22602         implements a limited interface.
22603         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
22604         (Expand_Subtype_From_Expr): Do not build actual subtype if the
22605         expression is limited.
22606         (Find_Interface_Tag): Add code to handle class-wide types and
22607         entities from the limited-view.
22608
22609         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
22610         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
22611         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
22612         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
22613         Set_Prim_Op_Kind.
22614
22615         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
22616         of procedure name or prefix that appears as a trigger in a triggering
22617         alternative.
22618
22619         * uintp.ads: Introduce constants Uint_11 and Uint_13.
22620
22621 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22622
22623         * s-tataat.adb, a-tasatt.adb:
22624         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
22625
22626         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
22627         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
22628         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
22629         longer used.
22630
22631 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22632             Jose Ruiz  <ruiz@adacore.com>
22633
22634         * s-taprop-vxworks.adb:
22635         Move with clauses outside Warnings Off now that dependent units are
22636         Preelaborate.
22637         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
22638         initialization of this unit.
22639         (Specific): Add new procedures Initialize and Delete so that this
22640         package can be used for VxWorks 5.x and 6.x
22641         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
22642         differences between VxWorks 5.x and 6.x
22643         Minor reformatting.
22644         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
22645         caller.
22646         Use only Preelaborate-compatible constructs.
22647
22648         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
22649         Primitives.Operations.
22650         (Delete, Initialize): New procedures.
22651
22652         * s-osinte-vxworks.adb: Body used to handle differences between
22653         VxWorks 5.x and 6.x
22654         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
22655
22656         * s-osinte-vxworks.ads: Minor reformatting.
22657         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
22658         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
22659         and 6.
22660         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
22661         between Vxworks 5 and 6.
22662         (taskLock, taskUnlock): Removeed, no longer used.
22663
22664         * adaint.c: The wait.h header is not located in the sys directory on
22665         VxWorks when using RTPs.
22666         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
22667         using RTPs.
22668         (__gnat_dup): dup is available on Vxworks when using RTPs.
22669         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
22670
22671         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
22672
22673         * expect.c: The wait.h header is not located in the sys directory on
22674         VxWorks when using RTPs.
22675
22676 2005-09-01  Thomas Quinot  <quinot@adacore.com>
22677
22678         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
22679
22680         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
22681
22682         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
22683         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22684         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
22685         g-soccon-freebsd.ads: Add new constants:
22686          IP_MULTICAST_IF
22687          SO_RCVTIMEO/SO_SNDTIMEO
22688          IOV_MAX
22689
22690         * gen-soccon.c:
22691         Move all target-specific file inclusions and macro definitions to
22692         gsocket.h, in order to ensure that any C code in socket.c will see a
22693         set of constants that is consistent with the contents of g-soccon.ads.
22694
22695         * gsocket.h: Code imported from gen-soccon.c:
22696         Move all target-specific file inclusions and macro definitions to
22697         gsocket.h, in order to ensure that any C code in socket.c will see a set
22698         of constants that is consistent with the contents of g-soccon.ads.
22699         This change also makes gen-soccon self-contained (removing dependencies
22700         upon GCC internal headers).
22701
22702         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
22703         iovecs at a time.
22704         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
22705
22706         * socket.c: Minor reformatting.
22707
22708 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22709             Thomas Quinot  <quinot@adacore.com>
22710
22711         * fname-sf.adb, mlib-tgt.ads,
22712         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
22713         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
22714         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
22715         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
22716         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
22717         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
22718         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
22719         makegpr.adb: Remove redundant use_clauses.
22720
22721 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22722
22723         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
22724         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
22725         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
22726         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
22727         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
22728         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
22729         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
22730         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
22731         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22732         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
22733         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
22734         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
22735         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
22736         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
22737         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
22738         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
22739         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22740         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22741         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
22742         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
22743         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
22744         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
22745         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
22746         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
22747         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
22748         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
22749         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
22750         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
22751         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
22752         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
22753         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
22754         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
22755         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
22756         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
22757         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
22758         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
22759         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
22760         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
22761         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
22762         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
22763         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
22764         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
22765         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
22766         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
22767         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
22768         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
22769         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
22770         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
22771         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
22772         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
22773         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
22774         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
22775         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
22776         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
22777         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
22778         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
22779         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
22780         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
22781         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
22782         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
22783         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
22784         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
22785         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
22786         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
22787         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
22788         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
22789         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
22790         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
22791         and always use the no parameter form for consistency.
22792
22793         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
22794
22795 2005-09-01  Robert Dewar  <dewar@adacore.com>
22796
22797         * binde.adb: Minor reformatting
22798         (Find_Elab_Order): Output warning if -p used with static elab order
22799
22800 2005-09-01  Robert Dewar  <dewar@adacore.com>
22801
22802         * checks.adb (Check_Needed): New procedure, deals with removing checks
22803         based on analysis of short-circuited forms. Also generates warnings for
22804         improper use of non-short-circuited forms.
22805         Code clean ups.
22806
22807 2005-09-01  Robert Dewar  <dewar@adacore.com>
22808
22809         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
22810         with 'Valid tests.
22811
22812 2005-09-01  Robert Dewar  <dewar@adacore.com>
22813
22814         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
22815         spec.
22816         Implement new insertion char < (conditional warning)
22817         * errutil.adb, erroutc.adb: Implement new insertion char <
22818         (conditional warning).
22819         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
22820         (Error_Msg_Warn): New variable for < insertion char.
22821         * prj-nmsc.adb: Implement new errout insertion char < (conditional
22822         warning).
22823         (Check_For_Source): Change value of Source_Id only after the current
22824         source has been dealt with.
22825
22826 2005-09-01  Robert Dewar  <dewar@adacore.com>
22827             Doug Rupp  <rupp@adacore.com>
22828
22829         * exp_attr.adb: Handle vax fpt for 'Valid attribute
22830         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
22831         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
22832         (Valid_D, Valid_F, Valid_G): New functions
22833
22834 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22835             Hristian Kirtchev  <kirtchev@adacore.com>
22836             Javier Miranda  <miranda@adacore.com>
22837
22838         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
22839         from object notation, the original node is unanalyzed and carries no
22840         semantic information, so that accessiblity checks must be performed on
22841         the type of the actual itself.
22842         (Expand_N_Subprogram_Declaration): Change last actual parameter for
22843         compatibility with Build_Protected_Sub_Specification.
22844         (Check_Overriding_Inherited_Interfaces): Add suport to handle
22845         overloaded primitives.
22846         (Register_Interface_DT_Entry): Use the new name of the formal
22847         the the calls to Expand_Interface_Thunk
22848
22849         * exp_dbug.ads: Augment comments on encoding of protected types to
22850         include the generation of dispatching subprograms when the type
22851         implements at least one interface.
22852
22853         * lib.ads: Extend information in Load_Stack to include whether a given
22854         load comes from a Limited_With_Clause.
22855
22856         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
22857         whether a potential circularity is harmless, because it includes units
22858         loaded through a limited_with clause. Extends previous treatment which
22859         did not handle properly arbitrary combinations of limited and
22860         non-limited clauses.
22861
22862 2005-09-01  Nicolas Setton  <setton@adacore.com>
22863
22864         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
22865         to be encoded as typ___XBLU_lowerbound__upperbound instead of
22866         typ___XB_lowerbound__upperbound.
22867
22868 2005-09-01  Thomas Quinot  <quinot@adacore.com>
22869
22870         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
22871         dummy access formal for RACW/RAS TypeCode TSS.
22872         (Build_TypeCode_Call): Do not generate dummy null access actual for
22873         calls to the TypeCode TSS.
22874
22875 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22876
22877         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
22878         fully qualified name, to distinguish instances with the same local name.
22879
22880         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
22881         fully qualified.
22882
22883 2005-09-01  Robert Dewar  <dewar@adacore.com>
22884
22885         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
22886         packed arrays.
22887
22888 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
22889
22890         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
22891         (Free): New deallocation procedure for filter elements
22892         (Close): Deallocate any existing filter for the concerned connection
22893
22894 2005-09-01  Laurent Pautet  <pautet@adacore.com>
22895
22896         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
22897         position set is provided, we compute one in order to reduce the maximum
22898         length of the keys.  This computation first selects a character
22899         position between 1 and the minimum length of the keys in order to
22900         avoid reducing one of the keys to an empty string.
22901         (Initialize, Compute): When the ratio V to K is too low, the algorithm
22902         does not converge. The initialization procedure now comes with a
22903         maximum number of iterations such that when exceeded, an exception is
22904         raised in Compute. The user can initialize this ratio to another value
22905         and try again
22906         Reformating and updated headers.
22907
22908 2005-09-01  Javier Miranda  <miranda@adacore.com>
22909
22910         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
22911         that given an entity T creates and returns an Itype that duplicates the
22912         contents of T. The returned Itype has the null-exclusion
22913         attribute set to True, and its Etype attribute references T
22914         to keep the association between the two entities.
22915         Update copyright notice
22916
22917         * sem_aggr.adb (Check_Can_Never_Be_Null,
22918         Aggregate_Constraint_Checks, Resolve_Aggregate,
22919         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
22920
22921         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
22922
22923 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
22924             Robert Dewar  <dewar@adacore.com>
22925             Hristian Kirtchev  <kirtchev@adacore.com>
22926
22927         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
22928         Result_Definition.
22929
22930         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
22931         function specs.
22932         Call Set_Result_Definition instead of Set_Subtype_Mark.
22933         (P_Subprogram_Specification): Add parsing of anonymous access result
22934         plus null exclusions. Call Set_Result_Definition instead of
22935         Set_Subtype_Mark.
22936
22937         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22938         (P_Access_Type_Definition): Add parsing for an anonymous access result
22939         subtype, plus parsing for null exclusions. Call Set_Result_Definition
22940         instead of Set_Subtype_Mark.
22941
22942         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22943         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
22944         (Result_Definition): New function for N_Function_Specifications.
22945         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
22946         N_Function_Specification.
22947         (Set_Null_Exclusion_Present): Allow this flag for
22948         N_Function_Specification.
22949         (Set_Result_Definition): New procedure for N_Function_Specifications.
22950         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
22951         and N_Function_Specification.
22952
22953         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
22954         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
22955         Add support for LIMITED NEW for Ada 2005 AI-419
22956         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
22957         syntax for anonymous access results.
22958         Replace Subtype_Mark field by Result_Definition in
22959         N_Function_Specification and N_Access_Definition specs.
22960         Add Null_Exclusion_Present to spec of N_Function_Specification.
22961         (Result_Definition): New function for N_Function_Specification and
22962         N_Access_Function_Definition.
22963         (Set_Result_Definition): New procedure for N_Function_Specification and
22964         N_Access_Function_Definition.
22965
22966         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
22967         Result_Definition for cases of N_Access_Function_Definition and
22968         N_Function_Specification.
22969         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
22970
22971 2005-09-01  Vincent Celier  <celier@adacore.com>
22972
22973         * lib-writ.adb: Update Copyright notice
22974         (Write_With_Lines): On platforms where file names are case-insensitive,
22975         record the file names in lower case.
22976         (Write_ALI): For D lines, on platforms where file names are
22977         case-insensitive, record the file names in lower case.
22978
22979 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22980             Emmanuel Briot  <briot@adacore.com>
22981
22982         * lib-xref.adb (Output_Overridden_Op): Display information on
22983         overridden operation.
22984
22985         * lib-xref.ads: Add documentation on overridden operations.
22986
22987         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
22988         information.
22989
22990         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
22991         overriding entity information.
22992
22993 2005-09-01  Vincent Celier  <celier@adacore.com>
22994
22995         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
22996         including those that are inherited.
22997
22998 2005-09-01  Robert Dewar  <dewar@adacore.com>
22999
23000         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23001
23002         * par-prag.adb: Implement new pragma Debug_Policy
23003
23004         * sem_prag.adb Implement new pragma Debug_Policy
23005         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23006         Component_Size attribute specification. Give warning for ignored pragma
23007         Pack.
23008
23009         * snames.h, snames.ads, snames.adb: Introduce entries in
23010         Preset_Names for Name_Disp_Asynchronous_Select,
23011         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23012         Name_Disp_Timed_Select.
23013         New pragma Debug_Policy
23014
23015         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23016         explicitly.
23017         Switch -gnata also sets Debug_Pragmas_Enabled
23018
23019         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23020         handle an explicit -gnata when compiling predefined files.
23021
23022 2005-09-01  Vincent Celier  <celier@adacore.com>
23023
23024         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23025         directories of projects that have no Ada sources.
23026
23027 2005-09-01  Robert Dewar  <dewar@adacore.com>
23028
23029         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23030         (makes a difference for wide characters)
23031
23032         * widechar.adb, widechar.ads:
23033         Add Wide_Char_Byte_Count feature to count chars vs bytes
23034
23035 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23036             Ed Schonberg  <schonberg@adacore.com>
23037             Robert Dewar  <dewar@adacore.com>
23038
23039         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23040         'Address attribute reference with an overloaded prefix, use the
23041         location of the prefix (not the location of the attribute reference) as
23042         the error location.
23043         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23044         a function renaming thereof, is a valid prefix for 'Size (where it is
23045         intepreted as a function call).
23046         (Statically_Denotes_Entity): New predicate to determine whether the
23047         prefix of an array attribute can be considered static.
23048
23049         PR ada/9087
23050         (Eval_Attr): Fix failure to evaluate Component_Size for
23051         unconstrained arrays (resulted in wrong value in packed case, since
23052         back end cannot handle this case)
23053
23054 2005-09-01  Robert Dewar  <dewar@adacore.com>
23055
23056         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23057         error msgs for most common cases.
23058         Use new errout insertion char < (conditional warning)
23059
23060 2005-09-01  Javier Miranda  <miranda@adacore.com>
23061             Ed Schonberg  <schonberg@adacore.com>
23062
23063         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
23064         become local to the whole package.
23065         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
23066         the package was already analyzed the new algorithm "replaces" the
23067         real entities by the shadow ones. This is required to ensure that
23068         the order of these entities in the homonym chains does not change;
23069         otherwise we can have undefined references at linking time because
23070         in case of conflicts the external name of the entities will have
23071         a suffix that depends on the order of the entities in the chain.
23072         (Remove_Limited_With_Clause): Complementary code that completes the
23073         new algorithm and replaces the shadow entities by the real ones.
23074         (Install_Limited_Withed_Unit): When unchaining entities before the
23075         installation of the shadow entities, only regular entities of the
23076         public part must be taken into account. This is required to
23077         keep this routine in synch with the work done by Remove_Limited_
23078         With_Clause
23079         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
23080         even if unit is analyzed, because the analysis of the unit is
23081         idempotent in any case, and the limited view of the unit may have to
23082         be installed for proper visibility.
23083         (Expand_Limited_With_Clause): Even if the unit in the implicit
23084         with_clause has been analyzed already, a limited view of the package
23085         must be built for the current context, if it does not exist yet.
23086
23087 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23088             Javier Miranda  <miranda@adacore.com>
23089             Gary Dismukes  <dismukes@adacore.com>
23090
23091         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
23092         defining entity for the instance body, make a new defining identifier
23093         rather than copying the entity of the spec, to prevent accidental
23094         sharing of the entity list.
23095         (Check_Private_View): When exchanging views of private types, build the
23096         list of exchanged views as a stack, to ensure that on exit the exchanges
23097         are undone in the proper order.
23098         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
23099         Restore the compilation environment in case of instantiation_error.
23100         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
23101         for an anonymous access result.
23102         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
23103         (Formal_Entity): Handle properly the case of a formal package that
23104         denotes a generic package renaming.
23105
23106 2005-09-01  Thomas Quinot  <quinot@adacore.com>
23107
23108         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
23109         clause if the array aggregate is surrounded by parentheses.
23110
23111 2005-09-01  Cyrille Comar  <comar@adacore.com>
23112             Gary Dismukes  <dismukes@adacore.com>
23113             Ed Schonberg  <schonberg@adacore.com>
23114             Javier Miranda  <miranda@adacore.com>
23115
23116         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
23117         underlying type
23118         to check if a type is Constrained in cases related to code generation
23119         (rather than semantic checking) since otherwise we do not generate
23120         similar code for mutable private types depending if their
23121         discriminants are visible or not.
23122         (Check_Abstract_Overriding): Do not complain about failure to override
23123         the primitive operations used in dispatching selects since they will
23124         always be overriden at the freeze point of the type.
23125         (Access_Definition): Separate out handling for resetting the scope
23126         of an anonymous access function result type. Retrieve the scope
23127         of the associated function rather than using Current_Scope, which
23128         does not have a consistent value (depends on whether we're in the
23129         middle of analyzing formal parameters). Add ??? comment about
23130         finding a cleaner way to handle the special cases of scope setting.
23131         (Process_Incomplete_Dependents): A protected operation is never a
23132         dispatching operation (only its wrapper may be).
23133         (Build_Derived_Record_Type): In case of tagged private types that
23134         implement interfaces add derivation of predefined primitive
23135         operations.
23136         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
23137         by two parameters that are used in case of derivation from abstract
23138         interface types: No_Predefined_Prims is used to avoid the derivation
23139         of predefined primitives from the interface, and Predefined
23140         Prims_Only is used to complete the derivation predefined primitives
23141         in case of private tagged types implementing interfaces.
23142         Fix typo in comments
23143         (Find_Interface_In_Descendant): Protect the frontend against
23144         wrong code with large circularity chains.
23145         (Is_Private_Overriding): Add support for entities overriding interface
23146         subprograms. The test failed because Entities associated with overriden
23147         interface subprograms are always marked as hidden (and used to build
23148         the secondary dispatch table); in this case the overriden entity is
23149         available through the field abstract_interface_alias (cf. override_
23150         dispatching_operation)
23151         (Access_Definition): Set the scope of the type to Current_Scope for the
23152         case of a function with an anonymous access result type.
23153         (Access_Subprogram_Declaration): Handle creation of the type entity for
23154         an access-to-function type with an anonymous access result.
23155         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
23156         in handling for N_Access_Function_Definition.
23157         (Analyze_Subtype_Declaration): Modify the text of error message.
23158         (Derived_Type_Declaration): Modify the text of error message.
23159         (Process_Subtype): Modify the text of error message plus cleanup
23160         of one redundant error message.
23161         (Analyze_Component_Declaration): Code cleanup.
23162         (Analyze_Object_Declaration): Code cleanup.
23163         (Analyze_Subtype_Declaration): Propagate the null-exclusion
23164         attribute in case of access types. Code cleanup.
23165         (Array_Type_Declaration): Code cleanup.
23166         (Process_Discriminants): Create the new null-excluding itype
23167         if required. Code cleanup.
23168         (Process_Subtype): Create the new null-excluding itype if
23169         required. Code cleanup.
23170         (Build_Derived_Record_Type): Code cleanup to avoid calling
23171         twice the subprogram derive_subprograms in case of private
23172         types that implement interfaces. In this particular case the
23173         subprogram Complete_Subprograms_Derivation already does the
23174         job associated with the second call.
23175
23176         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
23177         conversion to the full view when generating an operation for a
23178         discriminant whose type may currently be private.
23179
23180 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23181             Javier Miranda  <miranda@adacore.com>
23182
23183         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
23184         V (Obj.F), the rewriting does not involve the indexed component, but
23185         only the selected component itself.
23186         Do not apply the transformation if the analyzed node is an actual of a
23187         call to another subprogram.
23188         (Complete_Object_Operation): Retain the entity of the
23189         dispatching operation in the selector of the rewritten node. The
23190         entity will be used in the expansion of dispatching selects.
23191         (Analyze_One_Call): Improve location of the error message associated
23192         with interface.
23193         (Analyze_Selected_Component): No need to resolve prefix when it is a
23194         function call, resolution is done when parent node is resolved, as
23195         usual.
23196         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
23197         when attempting to resolve a call transformed from its object notation.
23198         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
23199         of the argument list for each interpretation of the operation.
23200         (Try_Object_Operation): The designated type of an access parameter may
23201         be an incomplete type obtained through a limited_with clause, in which
23202         case the primitive operations of the type are retrieved from its full
23203         view.
23204         (Analyze_Call): If this is an indirect call, and the return type of the
23205         access_to_subprogram is incomplete, use its full view if available.
23206
23207 2005-09-01  Javier Miranda  <miranda@adacore.com>
23208             Gary Dismukes  <dismukes@adacore.com>
23209
23210         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
23211         access types the null-exclusion and access-to-constant attributes must
23212         also match.
23213         (Analyze_Return_Statement): When the result type is an anonymous access
23214         type, apply a conversion of the return expression to the access type
23215         to ensure that appropriate accessibility checks are performed.
23216         (Analyze_Return_Type): For the case of an anonymous access result type,
23217         generate the Itype and set Is_Local_Anonymous_Access on the type.
23218         Add ??? placeholder for check to disallow returning a limited object
23219         in Ada 2005 unless it's an aggregate or a result of a function call.
23220         Change calls from Subtype_Mark to Result_Definition.
23221         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
23222         Result_Definition in call to Make_Function_Specification.
23223         (Build_Body_To_Inline): Change Set_Subtype_Mark to
23224         Set_Result_Definition.
23225         (Make_Inequality_Operator): Change formal Subtype_Mark to
23226         Result_Definition in call to Make_Function_Specification.
23227         (Process_Formals): Create the new null-excluding itype if required.
23228         (New_Overloaded_Entity): For an entity overriding an interface primitive
23229         check if the entity also covers other abstract subprograms in the same
23230         scope. This is required to handle the general case, that is, overriding
23231         other interface primitives and overriding abstract subprograms inherited
23232         from some abstract ancestor type.
23233         (New_Overloaded_Entity): For an overriding entity that comes from
23234         source, note the operation that it overrides.
23235         (Check_Conformance, Type_Conformant): Addition of one new formal
23236         to skip controlling formals in the analysis. This is used to
23237         handle overloading of abstract interfaces.
23238         (Base_Types_Match): Add missing case for types imported from
23239         limited-with clauses
23240         (New_Overloaded_Entity): Add barrier to protect the use of
23241         the "alias" attribute.
23242
23243 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23244
23245         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
23246         verify that the procedure and the entry are mode conformant.
23247         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
23248         as a different operator, which is often a cut-and-paste error.
23249
23250 2005-09-01  Javier Miranda  <miranda@adacore.com>
23251             Ed Schonberg  <schonberg@adacore.com>
23252
23253         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
23254         used in controlling parameters exclude null because it is necessary to
23255         read the tag to dispatch, and null has no tag.
23256         (Override_Dispatching_Operation): If the previous operation is inherited
23257         from an interface, it becomes hidden  and does not participate in later
23258         name resolution.
23259
23260 2005-09-01  Javier Miranda  <miranda@adacore.com>
23261             Ed Schonberg  <schonberg@adacore.com>
23262             Gary Dismukes  <dismukes@adacore.com>
23263
23264         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
23265         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
23266         the expander will generate the corresponding run-time check to evaluate
23267         the expression.
23268         (Resolve_Call): Check for legal type of procedure name or prefix that
23269         appears as a trigger in a triggering alternative.
23270         (Valid_Conversion): If expression is ambiguous and the context involves
23271         an extension of System, remove System.Address interpretations.
23272         (Resolve_Qualified_Expression): Reject the case of a specific-type
23273         qualification applied to a class-wide argument. Enhance comment
23274         to explain checking of Original_Node.
23275         (Resolve_Type_Conversion): The location of the error message was not
23276         general enough to handle the general case and hence it has been removed.
23277         In addition, this patch improves the text of the message.
23278         (Resolve_Type_Conversion): Add missing support for access to interface
23279         types.
23280         (Resolve_Type_Conversion): If the target is a class-wide interface type,
23281         do not expand if the expression is the actual in a call, because proper
23282         expansion will take place when the call itself is expanded.
23283         (Resolve_Allocator): If the context is an unchecked conversion, the
23284         allocator inherits its storage pool, if any, from the target type of
23285         the conversion.
23286
23287 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23288             Javier Miranda  <miranda@adacore.com>
23289
23290         * sem_type.adb (Add_One_Interp): If a candidate operation is an
23291         inherited interface operation that has an implementation, use the
23292         implementation to avoid spurious ambiguities.
23293         (Interface_Present_In_Ancestor): In case of concurrent types we can't
23294         use the Corresponding_Record_Typ attribute to look for the interface
23295         because it is set by the expander (and hence it is not always
23296         available). For this reason we traverse the list of interfaces
23297         (available in the parent of the concurrent type).
23298         (Interface_Present_In_Ancestor): Handle entities from the limited view
23299
23300 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23301
23302         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
23303         from the list of required components.
23304         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
23305         primitive procedure of a limited interface with a controlling first
23306         parameter.
23307         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
23308         of an entry.
23309         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
23310         capture if it is generated in the second operand of a short-circuit
23311         operation.
23312         Do not capture values for variables with address clauses.
23313         (Is_Object_Reference): Treat a function call as an object reference only
23314         if its type is not Standard_Void_Type.
23315
23316 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
23317
23318         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
23319         to a variable that is statically known to be constant.
23320
23321 2005-09-01  Geert Bosch  <bosch@adacore.com>
23322             Robert Dewar  <dewar@adacore.com>
23323
23324         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
23325         (VAXGF_Safe_First): Idem.
23326
23327 2005-09-01  Robert Dewar  <dewar@adacore.com>
23328             Arnaud Charlet  <charlet@adacore.com>
23329
23330         * g-dirope.ads: Minor reformatting
23331         Document that bounds of result of Base_Name match the input index
23332         positions.
23333         Add documentation on environment variable syntax for Expand_Path
23334
23335         * gnat_ugn.texi: Update documentation to include mention of -m switches
23336         Document new treatment of wide characters in max line length
23337         style check.
23338         Remove -gnatL/-gnatZ switches, no longer used.
23339         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
23340         of -gnata switch.
23341
23342         * gnat_rm.texi: Add doc for two argument form of pragma
23343         Float_Representation.
23344         Add documentation for pragma No_Strict_Aliasing
23345         Add note that explicit component clause overrides pragma Pack.
23346         Add documentation of pragma Debug_Policy
23347
23348 2005-09-01  Matthew Heaney  <heaney@adacore.com>
23349
23350         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
23351         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
23352         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
23353         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
23354         draft (Draft 13, August 2005) of Ada Amendment 1.
23355
23356 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
23357
23358         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
23359         Note that the platform-specific version of g-soccon.ads for VMS is now
23360         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
23361         really is a package spec).
23362         Replace s-taspri-linux.ads by s-taspri-posix.ads
23363         Remove references to s-mastop-x86.adb
23364
23365         * system-vxworks-xscale.ads: Removed, no longer used.
23366         * s-vxwork-xscale.ads: Removed, no longer used.
23367
23368 2005-09-01  Robert Dewar  <dewar@adacore.com>
23369
23370         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
23371         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
23372         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
23373         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
23374         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
23375         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
23376         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
23377         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
23378         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
23379         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
23380         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
23381         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
23382         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
23383         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
23384         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
23385         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
23386         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
23387         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
23388         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
23389         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
23390         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
23391
23392 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
23393
23394         PR ada/23187
23395         * adaint.c
23396         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
23397
23398 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
23399             Doug Rupp  <rupp@adacore.com>
23400
23401         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
23402         when needed.
23403         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
23404         this code in the GNAT run-time.
23405
23406         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
23407
23408         PR ada/21053
23409         * init.c (__gnat_error_handler [many]): Mark "msg" as const
23410         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
23411
23412         (__gnat_inside_elab_final_code): Moved here from
23413         Standard_Library and only defined for the compiler.
23414         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
23415         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
23416         using RTPs because directly vectored Interrupt routines are not
23417         supported on this configuration.
23418         (getpid): Do not redefine this function on VxWorks when using RTPs
23419         because this primitive is well supported by the RTP libraries.
23420         (copy_msg): Correct the code that checks for buffer overflow.
23421         Discovered during code reading.
23422
23423 2005-08-29  Olivier Hainque  <hainque@adacore.com>
23424
23425         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
23426         a library level mutable variable with an initializer, tell
23427         build_allocator to ignore the initializer's size. It may not be large
23428         enough for all the values that might be assigned to the variable later
23429         on.
23430
23431 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
23432             Eric Botcazou  <ebotcazou@adacore.com>
23433
23434         * trans.c: Protect < in error msg with quote
23435         Replace GCC_ZCX by Back_End_Exceptions.
23436         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
23437         has been sufficiently aligned in the record.
23438
23439 2005-08-15  James E. Wilson  <wilson@specifix.com>
23440
23441         * system-linux-alpha.ads: Change ia64 to alpha.
23442
23443 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
23444
23445         * decl.c, utils.c: Fix comment typos.
23446
23447 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
23448
23449         * decl.c, init.c, initialize.c: Fix comment typos.
23450
23451 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
23452
23453         Make CONSTRUCTOR use VEC to store initializers.
23454         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
23455         CONSTRUCTOR_ELTS.
23456         * trans.c (extract_values): Likewise.
23457         * utils.c (convert, remove_conversions): Likewise.
23458         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
23459         gnat_build_constructor): Likewise.
23460
23461 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
23462
23463         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
23464         DECL_SECTION_NAME.
23465         (compare_field_bitpos): Likewise.
23466
23467 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
23468
23469         * utils.c (create_var_decl): Only set DECL_COMMON on
23470         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
23471         VAR_OR_FUNCTION_DECL_P.
23472
23473 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
23474
23475         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
23476         removed.
23477
23478 2005-07-07  Pascal Obry  <obry@adacore.com>
23479
23480         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
23481         returned type on Windows.
23482
23483         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
23484         routine.
23485
23486         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
23487         exception in this case.
23488         Simplify the code as "Image (Image'Range)" = "Image".
23489
23490 2005-07-07  Vincent Celier  <celier@adacore.com>
23491
23492         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
23493         the destructor/constructor attributes for <lib>final/<lib>init.
23494
23495         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
23496
23497 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
23498
23499         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
23500         type if the parameter is not passed by copy but reference by default.
23501
23502 2005-07-07  Javier Miranda  <miranda@adacore.com>
23503
23504         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
23505         Reimplementation of the support for abstract interface types in order
23506         to leave the code more clear and easy to maintain.
23507
23508         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
23509         abstract interface types in order to leave the code clearer and easier
23510         to maintain.
23511
23512         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
23513         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
23514         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
23515         appropriate entry of the secondary dispatch table.
23516         (Make_DT): Add code to inherit the secondary dispatch tables of
23517         the ancestors.
23518
23519         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
23520         implementing both functionalities by means of a common routine, each
23521         routine has its own code.
23522
23523 2005-07-07  Javier Miranda  <miranda@adacore.com>
23524
23525         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
23526
23527         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
23528         types:
23529         --
23530           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23531         --
23532
23533         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
23534         use of tag incomplete types.
23535
23536         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
23537         give support to tagged incomplete types.
23538
23539         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
23540         expression is a discriminant reference and its type is private, as can
23541         happen within a stream operation for a mutable record, use the full
23542         view of the type to resolve the case alternatives.
23543         (Analyze_Assignment): Check wrong dereference of incomplete types.
23544
23545         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
23546         types.
23547
23548         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
23549         incomplete types.
23550
23551         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
23552         N_Incomplete_Type_Declaration nodes.
23553
23554         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
23555         Tag_Present to give support to tagged incomplete types:
23556         --
23557           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23558         --
23559
23560 2005-07-07  Olivier Hainque  <hainque@adacore.com>
23561
23562         PR ada/22301
23563         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
23564         definitions for the Unwind wrappers in the compiler case.
23565
23566 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
23567             Javier Miranda  <miranda@adacore.com>
23568
23569         * par-load.adb (Load): If a child unit is loaded through a limited_with
23570         clause, each parent must be loaded as a limited unit as well.
23571
23572         * sem_ch10.adb (Previous_Withed_Unit): Better name for
23573         Check_Withed_Unit. Return true if there is a previous with_clause for
23574         this unit, whether limited or not.
23575         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
23576         the current unit.
23577         (Is_Visible_Through_Renamings): New local subprogram of install_limited
23578         _withed_unit that checks if some package installed through normal with
23579         clauses has a renaming declaration of package whose limited-view is
23580         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
23581         of the current Draft document for Ada 2005.
23582         (Analyze_Context): Complete the list of compilation units that
23583         are allowed to contain limited-with clauses. It also contains
23584         checks that were previously done by Install_Limited_Context_Clauses.
23585         This makes the code more clear and easy to maintain.
23586         (Expand_Limited_With_Clause) It is now a local subprogram of
23587         Install_Limited_Context_Clauses, and contains the code that adds
23588         the implicit limited-with clauses for parents of child units.
23589         This functionality was prevously done by Analyze_Context.
23590
23591         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
23592         incomplete type.
23593
23594         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
23595         been erroneously named in a limited-with clause of its own context.
23596         In this case the error has been previously notified by Analyze_Context.
23597
23598 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
23599
23600         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
23601         generic package that contains local declarations with the same name.
23602         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
23603
23604 2005-07-07  Bernard Banner  <banner@adacore.com>
23605
23606         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
23607         ia64 platform only on platforms that you the GCC unwind library
23608         rather than the system unwind library.
23609
23610 2005-07-07  Thomas Quinot  <quinot@adacore.com>
23611
23612         * expect.c: Minor reformatting
23613
23614 2005-07-07  Sergey Rybin  <rybin@adacore.com>
23615
23616         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
23617         --no-separate-is
23618
23619         * gnat_ugn.texi: Add description for new gnatpp option
23620         (--no-separate-is)
23621
23622 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23623
23624         * g-expect-vms.adb, g-expect.ads, g-expect.adb
23625         (Get_Command_Output): New subprogram to launch a process and get its
23626         standard output as a string.
23627
23628 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23629             Olivier Hainque  <hainque@adacore.com>
23630
23631         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
23632         fetch a code-range descriptor associated with the machine state. On
23633         failure set the machine state's PC to 0; on success, pass the
23634         descriptor to exc_virtual_unwind.
23635
23636         * init.c (Tru64 section): New function __gnat_set_code_loc.
23637
23638 2005-07-04  Vincent Celier  <celier@adacore.com>
23639
23640         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23641         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23642         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
23643         Remove all auto-initialization code, as this is now done through the
23644         constructor mechanism.
23645
23646         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
23647         __gnat_sals_init_using_constructors): New functions.
23648
23649         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
23650         Linker_Constructor and Linker_Destructor when switch -a is used.
23651
23652         * bindusg.adb: Add line for new switch -a
23653
23654         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
23655         (Gnatbind): When switch -a is used, check if it is allowed
23656
23657         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
23658
23659 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
23660
23661         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
23662         This prevents us from hitting a limitation during the debug info
23663         generation when using stabs.
23664         (Prims_Ptr): Likewise.
23665
23666 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
23667             Ed Schonberg  <schonberg@adacore.com>
23668             Javier Miranda  <miranda@adacore.com>
23669
23670         * checks.adb (Null_Exclusion_Static_Checks): In the case of
23671         N_Object_Declaration, only perform the checks if the Object_Definition
23672         is not an Access_Definition.
23673
23674         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
23675         where the parent of an the access definition is an N_Object_Declaration
23676         when determining the Associated_Node_For_Itype and scope of an
23677         anonymous access-to-subprogram type.
23678
23679         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
23680         Corresponding_Spec on the body created for a null procedure. Add ???
23681         comment. Remove New_Copy_Tree call on body argument to
23682         Set_Body_To_Inline.
23683
23684         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
23685         discriminants, use the type of the actual as well, because the
23686         discriminants may be read by the called subprogram.
23687
23688         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
23689         access type we do not need to handle non-limited views.
23690         (Build_Derived_Record_Type): Additional check to check that in case of
23691         private types, interfaces are only allowed in private extensions.
23692
23693 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23694
23695         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
23696         <Pragma_Linker_Destructor>: Likewise.
23697
23698         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
23699         Pragma_Linker_Destructor.
23700
23701         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
23702         ATTR_LINK_DESTRUCTOR.
23703         (static_ctors, static_dtors): New variables.
23704
23705         * misc.c (gnat_expand_body): Output current function as constructor
23706         and destructor if requested.
23707
23708         * par-prag.adb: Add processing for pragma Linker_Constructor and
23709         Linker_Destructor.
23710
23711         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
23712         extracted from Check_Interrupt_Or_Attach_Handler.
23713         (Check_Interrupt_Or_Attach_Handler): Invoke it.
23714         Implement pragma Linker_Constructor and Linker_Destructor with the
23715         help of Find_Unique_Parameterless_Procedure.
23716         Replace Name_Alias with Name_Target for pragma Linker_Alias.
23717
23718         * snames.h, snames.ads, snames.adb:
23719         Add Name_Linker_Constructor and Name_Linker_Destructor.
23720         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
23721         * snames.adb: Remove Name_Alias.
23722
23723         * trans.c: Include cgraph.h.
23724         (build_global_cdtor): New function.
23725         (Compilation_Unit_to_gnu): Build global constructor and destructor if
23726         needed.
23727         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
23728         of objects too.
23729         (addressable_p) <COMPONENT_REF>: Unconditionally test
23730         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
23731
23732         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
23733         variable if it is external.
23734
23735         (static_ctors, static_dtors): New global variables.
23736         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
23737         <ATTR_LINK_DESTRUCTOR>: Likewise.
23738         (end_subprog_body): Chain function as constructor and destructor
23739         if requested.
23740
23741         * exp_util.adb (Force_Evaluation): Unconditionally invoke
23742         Remove_Side_Effects with Variable_Ref set to true.
23743         (Remove_Side_Effects): Handle scalar types first. Use a renaming
23744         for non-scalar types even if Variable_Ref is true and for class-wide
23745         expressions.
23746
23747 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23748
23749         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
23750         to prevent spurious warnings.
23751
23752 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23753
23754         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
23755         Itypes. Itypes are really unexpected there.
23756         (Build_TypeCode_Function): Generalise special processing for Itypes to
23757         handle the case of numeric implicit base types as well as enumerated
23758         ones.
23759
23760 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23761
23762         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
23763         controlled, indicate the expected type of the dereference that is
23764         created for the call to Deep_Finalize, to prevent spurious errors when
23765         the designated type is private and completed with a derivation from
23766         another private type.
23767
23768 2005-07-04  Vincent Celier  <celier@adacore.com>
23769
23770         * make.adb (Change_To_Object_Directory): When unable to change the
23771         current dir to the object directory, output the full path of the
23772         directory.
23773
23774 2005-07-04  Matthew Gingell  <gingell@adacore.com>
23775
23776         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
23777
23778         * indepsw-linux.adb: Replace by...
23779
23780         * indepsw-gnu.adb: ...this new file
23781
23782 2005-07-04  Vincent Celier  <celier@adacore.com>
23783
23784         * mlib-prj.adb (Auto_Initialize): New constant String
23785         (SALs_Use_Constructors): New Boolean function
23786         (Build_Library): Call gnatbind with Auto_Initialize switch when
23787         SALs_Use_Constructors returns True.
23788
23789         * mlib-tgt.ads: Minor reformatting
23790
23791         * mlib-utl.ads: Minor reformatting
23792
23793         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
23794
23795 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23796
23797         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
23798         single protected declarations can have an interface list.
23799         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
23800         with seriously malformed entry declarations, and lead to compilation
23801         abandoned messages.
23802
23803 2005-07-04  Javier Miranda  <miranda@adacore.com>
23804
23805         * par-load.adb: Load the context items in two rounds.
23806
23807 2005-07-04  Robert Dewar  <dewar@adacore.com>
23808
23809         * scng.adb: Do not consider Mod used as an attribute to be a keyword
23810
23811 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23812             Javier Miranda  <miranda@adacore.com>
23813
23814         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
23815         type extension needs a limited view.
23816         Remove previous restriction on private types available through the
23817         limited-view (only tagged private types were previously allowed).
23818         (Install_Withed_Unit): In the code that implements the
23819         legality rule given in AI-377, exclude a child unit with the name
23820         Standard, because it is a homonym of the Standard environment package.
23821
23822 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23823
23824         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
23825         overloaded function call, carry interpretations from the original tree
23826         to the copy.
23827
23828 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23829
23830         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
23831         types check whether some designated type is a limited view, and use
23832         the non-limited view if available.
23833
23834 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
23835
23836         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
23837         constraint of full view of a private view T1 if present, when T2 is a
23838         discriminated full view.
23839
23840 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23841
23842         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
23843         actual that is a view conversion of a bit packed array reference.
23844
23845 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23846
23847         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
23848         present before checking whether an interface type covers a synchronized
23849         type.
23850
23851 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23852
23853         * sem_util.adb (Is_Object_Reference): An indexed or selected component
23854         whose prefix is an implicit dereference is an object reference. Removes
23855         spurious errors when compiling with -gnatc.
23856
23857 2005-07-04  Robert Dewar  <dewar@adacore.com>
23858
23859         PR ada/22039
23860         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
23861
23862 2005-07-04  Matthew Gingell  <gingell@adacore.com>
23863
23864         * tracebak.c: Enable tracebacks on ia64 platforms
23865
23866 2005-07-04  Vincent Celier  <celier@adacore.com>
23867
23868         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
23869         the GNAT BIND command, as gnatbind accepts multiples ALI files with
23870         the -L or -n switches.
23871
23872 2005-07-04  Vincent Celier  <celier@adacore.com>
23873
23874         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
23875         correctly computed and the main project data is not modified while
23876         doing so.
23877         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
23878         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
23879         c++linker as this does not work on some platforms.
23880
23881 2005-07-04  Matthew Heaney  <heaney@adacore.com>
23882
23883         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
23884         was changed.
23885         * a-coinve.adb: Perform constraint checks explicitly.
23886
23887 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23888             Thomas Quinot  <quinot@adacore.com>
23889
23890         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
23891         new target gen-soccon.
23892
23893 2005-07-04  Robert Dewar  <dewar@adacore.com>
23894
23895         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
23896
23897 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23898
23899         * g-socket.ads (Check_Selector): Minor rewording of comment.
23900
23901 2005-07-04  Vincent Celier  <celier@adacore.com>
23902
23903         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
23904
23905 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23906
23907         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
23908
23909 2005-07-04  Sergey Rybin  <rybin@adacore.com>
23910
23911         * gnat_ugn.texi: Add description of --eol gnatpp option
23912
23913 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23914             Thomas Quinot  <quinot@adacore.com>
23915
23916         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
23917         if the user wants all calls of a subprogram to be flagged,
23918         independently of whether they are made from within the same unit or
23919         another unit.
23920         Mention restriction for pragma Linker_Alias on some platforms.
23921         Document pragma Linker_Constructor and Linker_Destructor.
23922         Rewrite documentation of Weak_External, Linker_Section and
23923         Linker_Alias pragmas.
23924
23925 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
23926
23927         * s-stausa.ads, s-stausa.adb: New files.
23928
23929 2005-06-30  Kelley Cook
23930
23931         * all files:  Update FSF address in copyright headers.
23932         * gen-soccon.co (main): Output new FSF address in generated files.
23933
23934 2005-06-28  Paul Brook  <paul@codesourcery.com>
23935
23936         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
23937
23938 2005-06-14  Olivier Hainque  <hainque@adacore.com>
23939             Eric Botcazou  <ebotcazou@adacore.com>
23940
23941         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
23942         exc_unwind, now that we are generating proper .debug_frame output for
23943         that target.
23944
23945         * tracebak.c: Remove the mips-irix section, as we are now using the
23946         s-mastop based unwinder again.
23947         Under SPARC/Solaris, take into account the stack bias to compute the
23948         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
23949         ABI.
23950
23951 2005-06-14  Doug Rupp  <rupp@adacore.com>
23952
23953         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
23954
23955         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
23956
23957 2005-06-14  Pascal Obry  <obry@adacore.com>
23958
23959         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
23960         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
23961         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
23962         package name).
23963
23964         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
23965         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
23966         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
23967         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23968         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
23969         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
23970         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
23971         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
23972         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
23973         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
23974         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
23975         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
23976         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
23977         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
23978         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
23979         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
23980         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
23981         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
23982         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
23983         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
23984         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
23985         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
23986         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
23987         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
23988         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
23989         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
23990         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
23991         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
23992         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
23993         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
23994         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23995         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
23996         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
23997         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
23998         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
23999         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24000         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24001         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24002         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24003         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24004         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24005         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24006         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24007         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24008         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24009         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24010         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24011         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24012         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24013         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24014         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24015         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24016         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24017         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24018         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24019         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24020         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24021         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24022         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24023         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24024         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24025         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24026         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24027         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24028         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24029         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24030         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24031         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24032         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24033         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24034         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24035         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24036         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24037         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24038         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24039         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24040         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24041         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24042         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24043         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24044         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24045         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24046         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24047         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24048         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24049         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24050         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24051         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24052         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24053         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24054         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24055         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24056         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24057         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
24058         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
24059         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
24060         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
24061         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
24062         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
24063         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
24064         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
24065         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
24066         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
24067         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
24068         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
24069         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
24070         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
24071         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
24072         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
24073         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
24074         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
24075         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
24076         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24077         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
24078         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
24079         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
24080         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
24081         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
24082         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
24083         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
24084         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
24085         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
24086         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
24087         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
24088         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
24089         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
24090         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
24091         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
24092         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
24093         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
24094         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
24095         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
24096         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
24097
24098 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
24099             Arnaud Charlet  <charlet@adacore.com>
24100
24101         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
24102         longer protected objects. They have been replaced by lower-level
24103         suspension objects made up by a mutex and a condition variable (or
24104         their equivalent given a particular OS) plus some internal data to
24105         reflect the state of the suspension object.
24106         (Initialize, Finalize): Add this initialization procedure for
24107         Suspension_Object, which is a controlled type.
24108         (Finalize): Add the finalization procedure for Suspension_Object,
24109         which is a controlled type.
24110
24111         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
24112         Ada.Synchronous_Task_Control because there is no longer a need for a
24113         VxWorks specific version of this package. Target dependencies
24114         has been moved to System.Task_Primitives.Operations.
24115
24116         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
24117         longer needed.
24118         (InitializeCriticalSection, EnterCriticalSection,
24119         LeaveCriticalSection, DeleteCriticalSection): Replace the type
24120         pCriticalSection by an anonymous access type so that we avoid problems
24121         of accessibility to local objects.
24122
24123         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
24124         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24125         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
24126         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
24127         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
24128         set the environment task mask here.
24129         (Current_State): Add this function that returns the state of the
24130         suspension object.
24131         (Set_False): Add this procedure that sets the state of the suspension
24132         object to False.
24133         (Set_True): Add this procedure that sets the state of the suspension
24134         object to True, releasing the task that was suspended, if any.
24135         (Suspend_Until_True): Add this procedure that blocks the calling task
24136         until the state of the object is True. Program_Error is raised if
24137         another task is already waiting on that suspension object.
24138         (Initialize): Add this procedure for initializing the suspension
24139         object. It initializes the mutex and the condition variable which are
24140         used for synchronization and queuing, and it sets the internal state
24141         to False.
24142         (Finalize): Add this procedure for finalizing the suspension object,
24143         destroying the mutex and the condition variable.
24144
24145         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
24146         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
24147         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
24148         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
24149         which provides a low-level abstraction (using operating system
24150         primitives) for Ada.Synchronous_Task_Control.
24151         This object is made up by a mutex (for ensuring mutual exclusion), a
24152         condition variable (for queuing threads until the condition is
24153         signaled), a Boolean (State) indicating whether the object is open,
24154         and a Boolean (Waiting) reflecting whether there is a task already
24155         suspended on this object.
24156
24157         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
24158         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
24159         s-intman-vms.ads, s-intman-mingw.adb,
24160         (Initialize_Interrupts): Removed, no longer used.
24161
24162         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
24163         (Setup_Interrupt_Mask): New procedure.
24164
24165         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
24166
24167         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
24168
24169         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
24170         this is no longer done in the body of s-taprop
24171         (Server_Task): Explicitely test for Pending_Action in case
24172         System.Parameters.No_Abort is True.
24173
24174         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
24175         is no longer done in the body of s-taprop
24176
24177 2005-06-14  Robert Dewar  <dewar@adacore.com>
24178
24179         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24180         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24181         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24182         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24183         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24184         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
24185         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
24186         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24187         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
24188         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
24189         system-linux-hppa.ads, system-vms_64.ads,
24190         system-vxworks-alpha.ads: Minor comment update for
24191         AI-362 (unit is Pure).
24192
24193         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
24194         Add pragma Pure_05 for AI-362
24195         Make remaining conversion functions obsolescent in Ada 95
24196
24197         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24198         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
24199         Add entries for a-wichun and a-zchuni
24200         Add a-widcha a-zchara for AI-395
24201         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
24202
24203         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24204         Add entries for a-wichun.o and a-zchuni.o
24205         Entries for a-widcha.o and a-zchara.o
24206         Add entry for a-chacon.o
24207
24208         * a-ztenau.adb: Add with of Ada.Characters.Conversions
24209
24210         * a-chacon.ads, a-chacon.adb: New files.
24211
24212         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
24213         categorization violations.
24214
24215         * a-strmap.ads: Add pragma Pure_05 for AI-362
24216         * a-strmap.ads: Add note on implicit categorization for AI-362
24217
24218         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
24219
24220         * par-prag.adb: Dummy entry for pragma Persistent_BSS
24221         Set Ada_Version_Explicit, for implementation of AI-362
24222         Add processing for pragma Pure_05 and Preelaborate_05
24223         Add entry for Assertion_Policy pragma
24224
24225         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
24226         when needed for proper processing of categorization stuff
24227
24228         * sem_cat.adb:
24229         For several cases, make errors in preealborate units warnings,
24230         instead of errors, if GNAT_Mode is set. For AI-362.
24231
24232         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
24233         preelaborate unit is now warning if in GNAT mode
24234
24235         * s-stoele.ads: Document AI-362 for pragma preelaborate
24236
24237 2005-06-14  Doug Rupp  <rupp@adacore.com>
24238
24239         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
24240         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
24241         Default_Exception_Msg_Max_Length: new parameter.
24242
24243         * a-except.ads: (Exception_Msg_Max_Length): Set to
24244         System.Parameters.Default_Exception_Msg_Max_Length
24245         Add pragma Preelaborate_05 for AI-362
24246         Add warnings off to allow categorization violations for AI-362
24247
24248 2005-06-14  Vincent Celier  <celier@adacore.com>
24249
24250         * gnatsym.adb: Adapt to modification of package Symbols: procedure
24251         Process is now in package Processing.
24252
24253         * symbols.ads, symbols.adb:
24254         (Processing): New package, containing procedure Process
24255
24256         * symbols-vms-alpha.adb:
24257         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
24258
24259         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
24260         symbols-processing-vms-ia64.adb: New files.
24261
24262 2005-06-14  Pascal Obry  <obry@adacore.com>
24263
24264         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
24265         implementation. This new version generates the proper DllMain routine
24266         to initialize the SAL. The DllMain is generated in Ada and compiled
24267         before being added as option to the library build command.
24268
24269 2005-06-14  Doug Rupp  <rupp@adacore.com>
24270             Pascal Obry  <obry@adacore.com>
24271
24272         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
24273         call to decc$translate_vms.
24274         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
24275         need to remove those quotes before catenating the filename.
24276         (__gnat_locate_exec_on_path): improvements to the Win32 section:
24277         * avoid allocating the memory twice for better efficiency;
24278         * allocate 32K buffer for environment expansion as suggested by MSDN;
24279         * prepend ".;" to the path so that current directory is searched too.
24280
24281 2005-06-14  Robert Dewar  <dewar@adacore.com>
24282
24283         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
24284         instead of raising CE (AI-241)
24285         Add warnings off to allow categorization violations for AI-362
24286
24287 2005-06-14  Robert Dewar  <dewar@adacore.com>
24288
24289         * ali-util.adb, gnatbind.adb: Remove references to
24290         Force_RM_Elaboration_Order.
24291
24292         * switch-b.adb: Remove recognition of -f switch
24293
24294 2005-06-14  Pascal Obry  <obry@adacore.com>
24295
24296         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
24297         implementation which is slightly more efficient.
24298
24299 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
24300             Javier Miranda  <miranda@adacore.com>
24301             Ed Schonberg  <schonberg@adacore.com>
24302             Hristian Kirtchev  <kirtchev@adacore.com>
24303
24304         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
24305         allocator's designated type is a class-wide type, and compiling for
24306         Ada 2005, emit a run-time check that the accessibility level of the
24307         type given in the allocator's expression is not deeper than the level
24308         of the allocator's access type.
24309
24310         (Tagged_Membership): Modified to gives support to abstract interface
24311         types.
24312
24313         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
24314         Access_Level.
24315         (Descendant_Tag): New predefined function
24316         (Is_Descendant_At_Same_Level): New predefined function
24317         (Get_Access_Level): New private function
24318         (Set_Access_Level): New private procedure
24319         (IW_Membership): New function. Given the tag of an object and the tag
24320         associated with an interface, evaluate if the object implements the
24321         interface.
24322         (Register_Interface_Tag): New procedure used to initialize the table of
24323         interfaces used by the IW_Membership function.
24324         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
24325         of the dispatch table.
24326         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
24327         table of interfaces of the parent.
24328         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
24329         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
24330         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
24331         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
24332         Ada 2005 semantics for the new predefined function.
24333
24334         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
24335         call to Descendant_Tag rather than Internal_Tag.
24336         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
24337         the accessibility level of the attribute's Item parameter is not deeper
24338         than the level of the attribute's prefix type. Tag_Error is raised if
24339         the check fails. The check is only emitted for Ada_05.
24340         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
24341         requested stream attribute, use it.
24342         (Expand_N_Attribute_Reference): If the designated type is an interface
24343         then rewrite the referenced object as a conversion to force the
24344         displacement of the pointer to the secondary dispatch table.
24345         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
24346         is a dereference of an object with a constrained partial view.
24347
24348         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
24349         type is a class-wide type, emit a run-time check that the accessibility
24350         level of the returned object is not deeper than the level of the
24351         function's master (only when compiling for Ada 2005).
24352
24353         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
24354         Action_Nb_Arg): Add entries for new Get_Access_Level and
24355         Set_Access_Level routines in these tables.
24356         (Make_DT): Generate a call to set the accessibility level of the
24357         tagged type in its TSD.
24358         (Make_DT): Code cleanup. The functionality of generating all the
24359         secondary dispatch tables has been moved to freeze_record_type.
24360         (Make_Abstract_Interface_DT): Minor code cleanup.
24361         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
24362         this subprogram implements a new algorithm that provides the
24363         same functionality and it is more clear in case of primitives
24364         associated with abstract interfaces.
24365         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
24366         clean up, the functionality of this subprogram is now provided
24367         by Set_All_DT_Position.
24368         (Write_DT): New subprogram: a debugging procedure designed to be called
24369         within gdb to display the dispatch tables associated with a tagged
24370         type.
24371         (Collect_All_Interfaces): New subprogram that collects the whole list
24372         of interfaces that are directly or indirectly implemented by a tagged
24373         type.
24374         (Default_Prim_Op_Position): New subprogram that returns the fixed
24375         position in the dispatch table of the default primitive operations.
24376         (Expand_Interface_Actuals): New subprogram to generate code that
24377         displaces all the actuals corresponding to class-wide interfaces to
24378         reference the interface tag of the actual object.
24379         (Expand_Interface_Conversion): New subprogram. Reference the base of
24380         the object to give access to the interface tag associated with the
24381         secondary dispatch table.
24382         (Expand_Interface_Thunk): New subprogram that generates the code of the
24383         thunk. This is required for compatibility with the C+ ABI.
24384         (Make_Abstract_Interface_DT): New subprogram that generate the
24385         declarations for the secondary dispatch tables associated with an
24386         abstract interface.
24387         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
24388         attribute for each primitive operation covering interface subprograms
24389         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
24390         These subprograms were upgraded to give support to abstract interfaces
24391
24392         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
24393         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
24394         RE_Set_Access_Level.
24395         (RE_Unit_Table): Add entries for new Ada.Tags operations.
24396         Add support to call the followig new run-time subprograms:
24397         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
24398
24399         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
24400         match its full declaration when both have an access definition with
24401         statically matching designated subtypes.
24402         (Analyze_Component_Declaration): Delete commented out code that was
24403         incorrectly setting the scope of an anonymous access component's type.
24404         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
24405         an access discriminant when the containing type is nonlimited.
24406         (Make_Incomplete_Type_Declaration): Create an incomplete type
24407         declaration for a record type that includes self-referential access
24408         components.
24409         (Check_Anonymous_Access_Types): Before full analysis of a record type
24410         declaration, create anonymous access types for each self-referential
24411         access component.
24412         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
24413         an access component in this context is a Local_Anonymous_Access, for
24414         proper accessibility checks.
24415         (Access_Definition): Set properly the scope of the anonymous access type
24416         created for a stand-alone access object.
24417         (Find_Type_Of_Object): An object declaration may be given with an access
24418         definition.
24419         (Complete_Subprograms_Derivation): New subprogram used to complete
24420         type derivation of private tagged types implementing interfaces.
24421         In this case some interface primitives may have been overriden
24422         with the partial-view and, instead of re-calculating them, they
24423         are included in the list of primitive operations of the full-view.
24424         (Build_Derived_Record_Type): Modified to give support to private
24425         types implemening interfaces.
24426         (Access_Definition): Reject ALL on anonymous access types.
24427         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
24428         type derivation to occur at a deeper accessibility level than the
24429         parent type.
24430         For the case of derivation within a generic body however, disallow the
24431         derivation if the derived type has an ancestor that is a formal type
24432         declared in the formal part of an enclosing generic.
24433         (Analyze_Object_Declaration): For protected objects, remove the check
24434         that they cannot contain interrupt handlers if not declared at library
24435         level.
24436         (Add_Interface_Tag_Components): New subprogram to add the tag components
24437         corresponding to all the abstract interface types implemented by a
24438         record type or a derived record type.
24439         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24440         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24441         Process_Full_View, Record_Type_Declaration): Modified to give
24442         support to abstract interface types
24443         (Collect_Interfaces): New subprogram that collects the list of
24444         interfaces that are not already implemented by the ancestors
24445         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
24446         when partial view has no discriminants and full view has defaults.
24447         (Constrain_Access): Reject a constraint on a general access type
24448         if the discriminants of the designated type have defaults.
24449         (Access_Subprogram_Declaration): Associate the Itype node with the inner
24450         full-type declaration or subprogram spec. This is required to handle
24451         nested anonymous declarations.
24452         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24453         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24454         Process_Full_View, Record_Type_Declaration): Modified to give
24455         support to abstract interface types
24456         (Derive_Subprograms): Addition of a new formal to indicate if
24457         we are in the case of an abstact-interface derivation
24458         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
24459         to the specification because it is requied to analyze all the
24460         identifiers found in a list of interfaces
24461
24462         * debug.adb: Complete documentation of flag "-gnatdZ"
24463
24464         * exp_ch3.adb: Implement config version of persistent_bss pragma
24465         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
24466         testing for TSS presence to properly enforce visibility rules.
24467         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
24468         Make_Abstract_Interfaces_DT to generate the secondary tables
24469         associated with abstract interfaces.
24470         (Build_Init_Procedure): Modified to initialize all the tags
24471         corresponding.
24472         (Component_Needs_Simple_Initialization): Similar to other tags,
24473         interface tags do not need initialization.
24474         (Freeze_Record_Type): Modified to give support to abstract interface
24475         types.
24476         (Expand_N_Object_Declaration): Do not generate an initialization for
24477         a scalar temporary marked as internal.
24478
24479         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
24480         in-out parameter that is a component in an initialization procedure,
24481         whose constraint might depend on discriminants, and that may be
24482         misaligned because of packing or representation clauses.
24483         (Is_Legal_Copy): New predicate to determine whether a possibly
24484         misaligned in-out actual can actually be passed by copy/return. This
24485         is an error in case the type is by_reference, and a warning if this is
24486         the consequence of a DEC import pragma on the subprogram.
24487         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
24488         interface types
24489         (Expand_Inlined_Call): Mark temporary generated for the return value as
24490         internal, so that no useless scalar normalization is generated for it.
24491         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
24492         null procedure can always be inlined.
24493         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
24494         procedure, generate an explicit empty body for it.
24495
24496         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
24497         Given a type implementing an interface, returns the corresponding
24498         access_disp_table value.
24499         (Find_Interface_Tag): New subprogram. Given a type implementing an
24500         interface, returns the record component containing the tag of the
24501         interface.
24502         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
24503         previous ones that return the corresponding tag and access_disp_table
24504         entities.
24505         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
24506         is a predefined primitive operation.
24507         (Expand_Subtype_From_Expr): If the expression is a selected component
24508         within an initialization procedure, compute its actual subtype, because
24509         the component may depend on the discriminants of the enclosing record.
24510
24511         * i-cpp.ads, i-cpp.adb:
24512         This package has been left available for compatibility with previous
24513         versions of the frontend. As part of the new layout this is now a
24514         dummy package that uses declarations available at a-tags.ads
24515
24516         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
24517         "constant access" and "aliased [constant] access" when not compiling
24518         with -gnat05.
24519         Suppress Ada 2005 keyword warning if -gnatwY used
24520         (P_Identifier_Declarations): Add support for object declarations with
24521         access definitions.
24522         (Private_Extension_Declaration): Complete the documentation
24523         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
24524         attribute in case of private extension declaration
24525         (P_Type_Declaration): Mark as "abstract" the type declarations
24526         corresponding with protected, synchronized and task interfaces
24527         (P_Declarative_Items): "not" and "overriding" are overriding indicators
24528         for a subprogram or instance declaration.
24529
24530         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
24531         instantiation that is a dispatching operation has controlling access
24532         parameters that are null excluding.
24533         Save and restore Ada_Version_Explicit, for implementation of AI-362
24534         (Validate_Derived_Type_Instance): Add check for abstract interface
24535         types.
24536         (Analyze_Formal_Package): Establish Instantiation source for the copy of
24537         the generic that is created to represent the formal package.
24538         (Analyze_Package_Instantiation): Instantiate body immediately if the
24539         package is a predefined unit that contains inlined subprograms, and
24540         we are compiling for a Configurable_Run_Time.
24541         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
24542         If the program has a null default, generate an empty body for it.
24543
24544         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
24545         error message condition, null procedures are correctly detected now.
24546         (New_Overloaded_Entity): Bypass trivial overriding indicator check
24547         for subprograms in the context of protected types. Instead, the
24548         indicator is examined in Sem_Ch9 while analysing the subprogram
24549         declaration.
24550         (Check_Overriding_Indicator): Check consistency of overriding indicator
24551         on subprogram stubs as well.
24552         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
24553         the library level.
24554         (Analize_Subprogram_Specification): When analyzing a subprogram in which
24555         the type of the first formal is a concurrent type, replace this type
24556         by the corresponding record type.
24557         (Analyze_Subprogram_Body): Undo the previous work.
24558         (Analyze_Procedure_Call): If the call has the form Object.Op, the
24559         analysis of the prefix ends up analyzing the call itself, after which
24560         we are done.
24561         (Has_Interface_Formals): New subprogram subsidiary to analyze
24562         subprogram_specification that returns true if some non
24563         class-wide interface subprogram is found
24564         (New_Overloaded_Entity): Modified to give support to abstract
24565         interface types
24566         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
24567         access to subprograms must be recursive.
24568         (Is_Unchecked_Conversion): Improve the test that recognizes
24569         instantiations of Unchecked_Conversion, and allows them in bodies that
24570         are to be inlined by the front-end. When the body comes from an
24571         instantiation, a reference to Unchecked_Conversion will be an
24572         Expanded_Name, even though the body has not been analyzed yet.
24573         Replace Is_Overriding and Not_Overriding in subprogram_indication with
24574         Must_Override and Must_Not_Override, to better express intent of AI.
24575         (Analyze_Subprogram_Body): If an overriding indicator is given, check
24576         that it is consistent with the overrinding status of the subprogram
24577         at this point.
24578         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
24579         always inlined.
24580         If the subprogram is a null procedure, indicate that it does not need
24581         a completion.
24582
24583         * sem_disp.adb (Check_Controlling_Type): Give support to entities
24584         available through limited-with clauses.
24585         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
24586         allowed as the last primitive of a tagged type if it has no previous
24587         spec.
24588         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
24589         to give support to abstract interface types
24590
24591         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
24592         in the case where the target type is an anonymous access type of an
24593         object or component (that is, when Is_Local_Anonymous_Access is true).
24594         Prevent the special checks for conversions of access discriminants in
24595         the case where the discriminant belongs to a nonlimited type, since
24596         such discriminants have their accessibility level defined in the same
24597         way as a normal component of an anonymous access type.
24598         (Resolve_Allocator): When an allocator's designated type is a class-wide
24599         type, check that the accessibility level of type given in the
24600         allocator's expression or subtype indication is not statically deeper
24601         than the level of the allocator's access type.
24602         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
24603         name in a discriminant constraint of a record component.
24604         (Resolve_Explicit_Dereference): Do not check whether the type is
24605         incomplete when the dereference is a use of an access discriminant in
24606         an initialization procedure.
24607         (Resolve_Type_Conversion): Handle conversions to abstract interface
24608         types.
24609         (Valid_Tagged_Conversion): The conversion of a tagged type to an
24610         abstract interface type is always valid.
24611         (Valid_Conversion): Modified to give support to abstract interface types
24612         (Resolve_Actuals): Enable full error reporting on view conversions
24613         between unrelated by_reference array types.
24614         The rule for view conversions of arrays with aliased components is
24615         weakened in Ada 2005.
24616         Call to obsolescent subprogram is now considered to be a violation of
24617         pragma Restrictions (No_Obsolescent_Features).
24618         (Check_Direct_Boolean_Operator): If the boolean operation has been
24619         constant-folded, there is nothing to check.
24620         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
24621         check on possible violation of restriction No_Direct_Boolean_Operators
24622         until after expansion of operands, to prevent spurious errors when
24623         operation is constant-folded.
24624
24625         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
24626         Has_Compatible_Type): Modified to give support to abstract interface
24627         types.
24628         (Interface_Present_In_Ancestor): New function to theck if some ancestor
24629         of a given type implements a given interface
24630
24631         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
24632         prefix is a parameterless function that returns an access_to_procedure.
24633         (Transform_Object_Operation): Handle properly function calls of the
24634         form Obj.Op (X), which prior to analysis appear as indexed components.
24635         (Analyze_One_Call): Complete the error notification to help new Ada
24636         2005 users.
24637         (Analyze_Allocator): For an allocator without an initial value, where
24638         the designated type has a constrained partial view, a discriminant
24639         constraint is illegal.
24640
24641 2005-06-14  Robert Dewar  <dewar@adacore.com>
24642
24643         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
24644         do with treatment of Set_Col when positioned at end of line character.
24645
24646 2005-06-14  Robert Dewar  <dewar@adacore.com>
24647
24648         * atree.adb: (Elist*): Protect against uninitialized field
24649
24650 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24651
24652         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
24653         for an attribute reference that returns an access type.
24654         (Apply_Discriminant_Check): No need for check if (designated) type has
24655         constrained partial view.
24656
24657         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
24658         both bound checks, rather than a conjunction.
24659         (Insert_Valid_Check): If the expression is an actual that is an indexed
24660         component of a bit-packed array, force expansion of the packed element
24661         reference, because it is specifically inhibited elsewhere.
24662
24663 2005-06-14  Vincent Celier  <celier@adacore.com>
24664
24665         * clean.adb (Clean_Project): Correctly delete executable specified as
24666         absolute path names.
24667
24668         * make.adb (Gnatmake): Allow relative executable path names with
24669         directory information even when project files are used.
24670         (Change_To_Object_Directory): Fail gracefully when unable to change
24671         current working directory to object directory of a project.
24672         (Gnatmake): Remove exception handler that could no longer be exercized
24673         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
24674         may be deallocated by Normalize_Arguments.
24675         (Collect_Arguments): Eliminate empty arguments
24676
24677         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
24678         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
24679         (Check_Project): Return False when Project is No_Project. Return True
24680         when All_Projects is True.
24681         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
24682         All_Projects to True.
24683         Minor reformatting
24684
24685 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24686             Javier Miranda  <miranda@adacore.com>
24687             Thomas Quinot  <quinot@adacore.com>
24688             Robert Dewar  <dewar@adacore.com>
24689             Hristian Kirtchev  <kirtchev@adacore.com>
24690             Gary Dismukes  <dismukes@adacore.com>
24691
24692         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
24693         anonymous access types, to indicate that the accessibility level of
24694         the type is determined by that of the enclosing declaration.
24695         (Has_Persistent_BSS): New flag
24696         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
24697         of this attribute with functions.
24698         (Is_Primitive_Wrapper): Remove the barrier.
24699         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
24700         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
24701         New subprograms.
24702         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
24703         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
24704         New subprograms.
24705         (Is_Pure_Unit_Access_Type): New flag
24706         (Abstract_Interfaces): Complete the assertion to cover all usages.
24707         (Set_Is_Interface): Complete the assertion to cover all usages.
24708         (Is_Primitive_Wrapper): New attribute.
24709         (Is_Obsolescent): Now applies to all entities (though it is only set
24710         for subprograms currently)
24711         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
24712         which solves various problems concerning access subtypes.
24713         (Has_Persistent_BSS): New flag
24714         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
24715         Remove these subprograms because this attribute is currently
24716         not used.
24717         New entity flags:
24718         Has_Specified_Stream_Input (Flag190)
24719         Has_Specified_Stream_Output (Flag191)
24720         Has_Specified_Stream_Read (Flag192)
24721         Has_Specified_Stream_Write (Flag193)
24722         Present in all type and subtype entities. Set for a given view if the
24723         corresponding stream-oriented attribute has been defined by an
24724         attribute definition clause. When such a clause occurs, a TSS is set
24725         on the underlying full view; the flags are used to track visibility of
24726         the attribute definition clause for partial or incomplete views.
24727         (Is_Pure_Unit_Access_Type): New flag
24728         Clarify use of Is_Internal.
24729         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
24730         internally generated to wrap the invocation of tasks and protected
24731         types that implement interfaces.
24732         (Implementation_Base_Type): Documentation correction
24733         (Is_Obsolescent): Now applies to all entities (though it is only set
24734         for subprograms currently)
24735         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
24736         which solves various problems concerning access subtypes.
24737
24738         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
24739         for examined parameters. Identify unequal parameter list lengths as
24740         non-conformant parameters.
24741         (Overriding_Possible): Do not check for "All" qualifier in declaration
24742         of controlling access parameter, following prescription of AI-404.
24743         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
24744         that build the procedure body that wraps an entry invocation
24745         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
24746         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
24747         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
24748         give support to abstract interface types
24749
24750         * freeze.adb (Freeze_Entity): Issue error message if
24751         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
24752         type has no storage pool (Ada 2005) AI-366.
24753         Also modified to give support to abstract interface types
24754         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
24755         Inline_Always pragma.
24756
24757         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
24758         now begin an entry declaration.
24759         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
24760         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
24761         a subprogram declaration preceded by an overriding indicator.
24762         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
24763         declarations or subprogram declarations preceded by reserved words
24764         "not" or "overriding".
24765         (P_Entry_Declaration): Update comment. Parse and check overriding
24766         indicator, set semantic flags of entry declarations.
24767         (P_Task): New error message in case of private applied
24768         to a task type declaration.
24769         (P_Protected): New error message in case of private applied
24770         to a task type declaration.
24771
24772         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
24773         in which the full view of a type implementing an interface is a
24774         concurrent type.
24775         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
24776         Declare_Inherited_Private_Subprograms): If an explicit operation
24777         overrides an operation that is inherited in the private part, mark the
24778         explicit one as overriding, to enable overriding indicator checks.
24779         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
24780         full view to partial view, to simplify handling in back-end.
24781
24782         * sprint.adb: Print interface lists where needed: derived types,
24783         protected types, task types.
24784         output "is null" for null procedures. Part of implementation of
24785
24786         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
24787         relaxation of rules for access types in pure, shared passive partitions.
24788
24789         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
24790         first read discriminants into temporary objects, performing checks on
24791         the read values, then possibly performing discriminant checks on the
24792         actual (if it is constrained), and only finally reading the components
24793         into a constrained temporary object.
24794         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
24795         case of reading discriminants of a mutable record type to recognize
24796         the new form of the code generated by
24797         Build_Mutable_Record_Read_Procedure.
24798
24799         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
24800         of a simple call to Make_TSS_Name.
24801         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
24802         buffer, in order for Is_TSS to work correctly on local TSS names.
24803
24804         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
24805         Is_Local_Anonymous_Access to check legaliy of attributes in the
24806         context of  access components and stand-alone access objects.
24807         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
24808         treated as available for a limited private type if there is an
24809         attribute_definition_clause that applies to its full view, but not in
24810         other cases where the attribute is available for the full view
24811         (specifically, the sole fact that the full view is non-limited does not
24812         make the attribute available for the partial view).
24813         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
24814         non-overloaded intrinsic subprogram.
24815         (Check_Stream_Attribute): Reject an attribute reference for an
24816         unavailable stream attribute even if the prefix is not a limited type
24817         (case of a 'Input attribute reference for an abstract, non-classwide
24818         type)
24819         (Stream_Attribute_Available): New function to determine whether a stream
24820         attribute is available at a place.
24821         (Check_Attribute): Use Stream_Attribute_Available instead of just
24822         testing for TSS presence on the implementation base type.
24823         (Analyze_Attribute): Modified to give support to task interfaces.
24824         (Analyze_Access_Attribute): Add error check for use of an Access (or
24825         Unrestricted_Access) attribute with a subprogram marked as
24826         Inline_Always.
24827         (Analyze_Attribute, case Attribute_Address): Add error check for use of
24828         an Address attribute with a subprogram marked as Inline_Always.
24829         Update Eval_Attribute to handle new value of Width from AI-395
24830
24831         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
24832         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
24833         Factor common code across the stream-oriented attribute circcuits into
24834         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
24835         processing is functionally identical to the previous duplicated one,
24836         except that an expression that denotes an abstract subprogram will now
24837         be rejected, as mandated by AI-195 item 5.
24838
24839         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
24840         Is_Local_Anonymous_Access to apply accessibility checks to access
24841         components and stand-alone access objects.
24842         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
24843         elsewhere.
24844         (Is_Potentially_Persistent_Type): New function
24845         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
24846         a heap-object whose type has a constrained partial view, the object is
24847         unconstrained and the component may depend on a discriminant, making its
24848         renaming illegal.
24849
24850         * sinfo.ads, sinfo.adb
24851         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
24852         (Must_Override): Flag applicable to N_Entry_Declaration.
24853         Indicate that interface_list can appear in single task and single
24854         protected declarations.
24855         Replace Is_Overriding and Not_Overriding with Must_Override and
24856         Must_Not_Override, to better express intent of AI.
24857         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
24858         of an overriding indicator in a subprogram or instance.
24859         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
24860         Add the overriding indicator [[not] overriding] construct to the
24861         following grammar productions:
24862          ENTRY_DECLARATION
24863          GENERIC_INSTANTIATION
24864          SUBPROGRAM_SPECIFICATION
24865
24866         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
24867         can start with an overriding indicator.
24868
24869         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
24870         flags accordingly on subrogram specifications or instances.
24871
24872         * sem_ch8.adb:
24873         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
24874         overriding_indicator, if present, is consistent with status of spec.
24875         Improve error message for null-excluding checks on controlling access
24876         parameters.
24877         (Check_In_Previous_With_Clause): Protect the frontend against
24878         previously reported critical errors in the context clauses.
24879         Save and restore Ada_Version_Explicit, for implementation of AI-362
24880         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
24881         operation verify that controlling formals of the renamed entity that
24882         are access parameters are explicitly non-null.
24883         (Find_Expanded_Name): Improve error message when prefix is an illegal
24884         reference to a private child unit.
24885
24886         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
24887         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
24888         Rewrite to correspond to new wide character names in AI-395
24889
24890         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
24891         default procedures.
24892
24893 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24894             Robert Dewar  <dewar@adacore.com>
24895
24896         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
24897         code, not on the bodies of predefined operations, to cut down on
24898         spurious noise.
24899
24900 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24901
24902         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
24903         be expanded in place. The size computation does not require a
24904         subtraction, which would raise an exception on a compiler built with
24905         assertions when the upper bound is Integer'first.
24906         (Flatten): For an array of composite components, take into account the
24907         size of the components to determine whether it is safe to expand the
24908         array into a purely positional representation.
24909
24910 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24911
24912         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
24913         denoting a formal parameter into account.
24914
24915 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24916
24917         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
24918         the entry_call alternative of a conditional entry call, wrap the
24919         conditional entry call itself.
24920
24921 2005-06-14  Nicolas Setton  <setton@adacore.com>
24922             Ed Schonberg  <schonberg@adacore.com>
24923
24924         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
24925         the "simple_choice" member in a variant record, in accordance with the
24926         description in the package spec: the information output for a constant
24927         should be "S number", not "SS number".
24928         (Get_Encoded_Name): Return at once if not generating code. Avoids name
24929         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
24930
24931 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24932
24933         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
24934         RACW without any primitives, do not generate the if statement for
24935         dispatching by name in the PolyORB/DSA case, as it would be malformed
24936         (it would have an Elsif_Parts list that is not No_List, but with a
24937         length of 0).
24938
24939 2005-06-14  Robert Dewar  <dewar@adacore.com>
24940
24941         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
24942
24943 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
24944
24945         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
24946         can determine whether pragma Suppress_Exception_Locations is in effect.
24947
24948         * utils2.c (build_call_raise): Do not pass the file name to the
24949         exception handler if pragma Suppress_Exception_Locations is in effect.
24950         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
24951
24952 2005-06-14  Emmanuel Briot  <briot@adacore.com>
24953
24954         * g-debpoo.adb (Deallocate, Dereference): Improve output.
24955
24956 2005-06-14  Nicolas Roche  <roche@adacore.com>
24957
24958         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
24959         to ""
24960         (Next_Level): Fix minor bug in handling of ../dir case
24961         (Read): Add dir separator to Directory name so that "" is understood as
24962          "/"
24963
24964 2005-06-14  Pascal Obry  <obry@adacore.com>
24965
24966         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
24967         releasing the items.
24968
24969 2005-06-14  Vincent Celier  <celier@adacore.com>
24970             Cyrille Comar  <comar@adacore.com>
24971
24972         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
24973         with output file descriptor and with output file name.
24974         (Dup, Dup2): Now global procedures as they are used by two subprograms
24975         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
24976
24977 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24978
24979         PR ada/6717
24980         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
24981         broadcast address.
24982         (Create_Selector): Bind listening socket used to create the signalling
24983         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
24984         Set listen backlog to 1 to ensure that we detect socket theft by a
24985         failure of our own connect(2) call.
24986         (Check_Selector): Improve documentation of the selector mechanism.
24987         (Broadcast_Inet_Addr): New constant.
24988
24989 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
24990
24991         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
24992         type which turns out to be an incomplete and incorrect fix.
24993         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
24994         of the type is declared in a record (for determination of insertion
24995         type).
24996         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
24997         a private type and ensure that the primary entity is used for the type
24998         of the newly created function's V formal by taking the Etype of the
24999         view.
25000
25001 2005-06-14  Javier Miranda  <miranda@adacore.com>
25002             Jose Ruiz  <ruiz@adacore.com>
25003             Robert Dewar  <dewar@adacore.com>
25004             Ed Schonberg  <schonberg@adacore.com>
25005
25006         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25007         that indicates if we are parsing a compilation unit found in a
25008         limited-with clause.
25009         It is use to avoid the circularity check.
25010
25011         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25012         we are parsing a compilation unit found in a limited-with clause. This
25013         is use to avoid the circularity check.
25014
25015         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25016         unit as a consequence of parsing a limited-with clause. This is used
25017         to avoid the circularity check.
25018
25019         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25020         (Analyze_Context): Limited-with clauses are now allowed
25021         in more compilation units.
25022         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25023         againts previously reported critical errors in context clauses
25024         (Install_Limited_Withed_Unit): Code cleanup plus static detection
25025         of two further errors: renamed subprograms and renamed packages
25026         are not allowed in limited with clauses.
25027         (Install_Siblings): Do not install private_with_clauses on the package
25028         declaration for a non-private child unit.
25029         (Re_Install_Parents): When a parent of the subunit is reinstalled,
25030         reset visibility of child units properly.
25031         (Install_Withed_Unit): When a child unit appears in a with_clause of its
25032         parent, it is immediately visible.
25033
25034 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25035             Emmanuel Briot  <briot@adacore.com>
25036
25037         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25038         declared within an inlined body as referenced, to prevent spurious
25039         warnings.
25040         (Output_One_Ref): If an entity renames an array component, indicate in
25041         the ALI file that this aliases (renames) the array. Capture as well
25042         function renamings that rename predefined operations.
25043         Add information about generic parent for package and subprogram
25044         instances.
25045         (Get_Type_Reference): For a subtype that is the renaming of an actual in
25046         an instantiation, use the first_subtype to ensure that we don't generate
25047         cross-reference information for internal types.
25048         For objects and parameters of a generic private type, retain the '*'
25049         indicator to distinguish such an entity from its type.
25050
25051         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25052         to store information about instantiated entities.
25053
25054         * ali.adb (Scan_ALI): Add support for parsing the reference to the
25055         generic parent
25056
25057         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
25058         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
25059         information.
25060
25061 2005-06-10  Doug Rupp  <rupp@adacore.com>
25062             Arnaud Charlet  <charlet@adacore.com>
25063             Olivier Hainque  <hainque@adacore.com>
25064             Jose Ruiz  <ruiz@adacore.com>
25065
25066         * Make-lang.in: Add initialize.o when needed.
25067         Remove obsolete references to RT_FLAGS.
25068         Add missing dependencies for sdefault.o
25069
25070         * initialize.c: New file.
25071
25072         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
25073         [VMS] cond_signal_table: Fix problem in declaration.
25074         [VMS] __gnat_error_handler: rewrite.
25075         Move all __gnat_initialize() routines to initialize.c
25076         Specialize the former "hpux" section to "hppa hpux", as this is what the
25077         section really is here for and we now have other hpux ports that need
25078         different contents.
25079         (__gnat_adjust_context_for_raise) i386-linux: First version of this
25080         function for this target. Adjust PC by one in the machine context. This
25081         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
25082         it is more reliable to do that in the signal handler itself.
25083         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
25084         flags, so that the handler is passed the context structure to adjust
25085         prior to the raise.
25086         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
25087         SA_SIGINFO sigaction should look like. Call
25088         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
25089         Machine_State_Operations stuff.
25090         Add conditional code so that the x86_64 is also supported.
25091
25092 2005-06-14  Pascal Obry  <obry@adacore.com>
25093
25094         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
25095         the library name.
25096
25097 2005-06-14  Robert Dewar  <dewar@adacore.com>
25098
25099         * opt.ads, opt.adb: New flags for persistent_bss mode
25100         Add Ada_Version_Explicit, for implementation of AI-362
25101         Add Assertions_Enabled_Config and associated handling
25102         Needed since setting can be changed with Assertion_Policy pragma
25103         Add new flag Warn_On_Ada_2005_Compatibility
25104
25105         * switch-c.adb: Recognize -gnatwy/Y
25106         Set Ada_Version_Explicit, for implementation of AI-362
25107         The -gnatg switch now includes -gnatyu
25108
25109         * usage.adb: Add -gnatwy/Y
25110         Remove wrong asterisk on -gnatwX line
25111         Add line for -gnatyu switch
25112
25113 2005-06-14  Vincent Celier  <celier@adacore.com>
25114
25115         * osint.adb (Add_Default_Search_Dirs): Put source and object
25116         directories of project files before directories coming from
25117         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
25118
25119 2005-06-14  Robert Dewar  <dewar@adacore.com>
25120
25121         PR ada/15613
25122         * par-ch2.adb (Scan_Pragma_Argument): New procedure
25123         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
25124
25125 2005-06-14  Vincent Celier  <celier@adacore.com>
25126
25127         * prep.adb (Preprocess): Ignore error when scanning the first token of
25128         a line.
25129
25130 2005-06-14  Vincent Celier  <celier@adacore.com>
25131
25132         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
25133         (Check_Stand_Alone_Library): If the specified reference symbol file does
25134         not exist, only issue a warning when the symbol policy is not
25135         Controlled. And, when symbol policy is Compliant, set the symbol
25136         policy to Autonomous.
25137
25138 2005-06-14  Vincent Celier  <celier@adacore.com>
25139
25140         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
25141         when the project file in a with clause is not the last one, that is the
25142         project file name is followed by a comma.
25143         * prj-pp.adb: (First_With_In_List): New Boolean global variable
25144         (Print): Issue list of project files separated by commas in with clauses
25145         according to the values returned by Is_Not_Last_In_List.
25146         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
25147         (Set_Is_Not_Last_In_List): New procedure
25148
25149 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
25150
25151         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
25152
25153 2005-06-14  Robert Dewar  <dewar@adacore.com>
25154
25155         * scng.adb: Add call to new Check_EOF routine
25156         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
25157         Add some comments regarding wide character handling
25158
25159         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
25160
25161         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
25162
25163         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
25164         characters are now considered graphic characters and hence yield false
25165         in this call.
25166
25167         * nmake.adt: Modify header so that xnmake does not generate output
25168         files with multiple blank lines.
25169
25170         * treeprs.adt: Remove a blank line so that output from xtreeprs does
25171         not have an extra blank line
25172
25173 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25174
25175         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
25176         expression when the component type is an anonymous access type to
25177         ensure that appropriate accessibility checks are done.
25178
25179         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
25180         expression of an assignment when the target object is of an anonymous
25181         access type. This ensures that required accessibility checks are done.
25182         (One_Bound): Move the check for type Universal_Integer to
25183         Process_Bounds.
25184         (Process_Bounds): Check whether the type of the preanalyzed range is
25185         Universal_Integer, and in that case set Typ to Integer_Type prior
25186         to setting the type of the original range and the calls to One_Bound.
25187
25188 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25189
25190         * sem_case.adb (Expand_Others_Choice): Improve warning.
25191
25192 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25193
25194         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
25195         constraint of full view if present, when other type is discriminated.
25196         (Eval_Relational_Op): Recognize tests of pointer values against Null,
25197         when the pointer is known to be non-null, and emit appropriate warning.
25198
25199 2005-06-14  Robert Dewar  <dewar@adacore.com>
25200             Ed Schonberg  <schonberg@adacore.com>
25201
25202         PR ada/10671
25203         * sem_prag.adb: Implement pragma Persistent_BSS
25204         Remove obsolete pragma Persistent_Data, Persistent_Object
25205         Set Ada_Version_Explicit, for implementation of AI-362
25206         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
25207         Add processing for pragma Pure_05 and Preelaborate_05
25208         Add processing for Assertion_Policy pragma
25209         Add pragma identifiers for Assert
25210         (Analyze_Pragma, case Assert): Check number of arguments
25211         (Process_Inline): Additional guard against an illegal program, where the
25212         argument of the pragma is undefined, and warnings on redundant
25213         constructs are enabled.
25214         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
25215         Ada_05 to this pragma, specifying that the pragma is only active in
25216         Ada_05 mode.
25217         (Check_Arg_Order): New procedure
25218         Add appropriate calls to this procedure throughout
25219         Also throughout, check entity name before doing any other checks
25220
25221         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
25222         Remove obsolete pragma Persistent_Data, Persistent_Object
25223         Add entries for pragma Pure_05 and Preelaborate_05
25224         Add entries for Assertion_Policy pragma and associated names
25225         Add some names for pragma argument processing
25226
25227         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
25228
25229 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
25230
25231         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
25232         appears within a negation (either from source or as a rewriting of
25233         inequality) adjust text of warning accordingly.
25234
25235 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25236
25237         * s-strxdr.adb: Follow AI95-00132
25238
25239 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
25240
25241         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
25242
25243 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
25244             Jose Ruiz  <ruiz@adacore.com>
25245
25246         * s-tposen.adb, s-tpobop.adb
25247         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
25248         the exception id.
25249         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
25250         there is no violation of the Max_Entry_Queue_Length restriction (if it
25251         has been set); Program_Error is raised otherwise.
25252         (Requeue_Call): Before requeuing the task on the target entry queue we
25253         check that there is no violation of the Max_Entry_Queue_Length
25254         restriction (if it has been set); Program_Error is raised otherwise.
25255
25256 2005-06-14  Robert Dewar  <dewar@adacore.com>
25257
25258         * styleg.adb: Fix several remaining problems in -gnatyu switch
25259         Blank line count not reset at start
25260         Scanning outside source buffer in some cases
25261         Confusing message for blanks at end of file
25262         Non-empty blank lines not recognized
25263
25264         * nmake.adt: Modify header so that xnmake does not generate output
25265         files with multiple blank lines.
25266
25267         * treeprs.adt: Remove a blank line so that output from xtreeprs does
25268         not have an extra blank line
25269
25270 2005-06-14  Sergey Rybin  <rybin@adacore.com>
25271
25272         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
25273
25274 2005-06-14  Doug Rupp  <rupp@adacore.com>
25275             Vincent Celier  <celier@adacore.com>
25276
25277         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
25278         Update copyright.
25279
25280         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
25281         Remove "Library" command.
25282         Change keyword for style check -gnatyd from NOCRLF to
25283         DOS_LINE_ENDINGS.
25284         Remove useless second style check keyword NONE
25285         Remove help documentation for inexistent style check keyword
25286         RM_COLUMN_LAYOUT.
25287         Add help documentation for style check keywords DOS_LINE_ENDINGS,
25288         UNNECESSARY_BLANK_LINES and XTRA_PARENS
25289         Add UNNECESSARY_BLANK_LINES for -gnatyu
25290         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
25291
25292         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
25293
25294 2005-06-14  Vincent Celier  <celier@adacore.com>
25295
25296         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
25297         gprmake was invoked with -d.
25298         (Compile_Sources): If -d was used, output the "completed ..." message
25299         for each compilation.
25300         (Scan_Arg): Recognize new switch -d
25301         When -c and at least one main is specified, set
25302         Unique_Compile to True to guarantee that no other sources will be
25303         compiled.
25304
25305 2005-06-14  Matthew Heaney  <heaney@adacore.com>
25306
25307         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
25308         * a-swuwha.ads, a-swuwha.adb: New files
25309
25310         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
25311         * a-szuzha.ads, a-szuzha.adb: New files.
25312
25313         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
25314         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
25315         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
25316         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
25317         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
25318         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
25319         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
25320         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
25321         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
25322         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
25323         Ada 2005 RM.
25324
25325 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
25326             Olivier Hainque  <hainque@adacore.com>
25327             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25328             Pascal Obry  <obry@adacore.com>
25329
25330         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
25331
25332         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
25333         making a temporary around a procedure call because of non-addressable
25334         actual parameter.
25335         (process_freeze_entity): If entity is a private type, capture size
25336         information that may have been computed for the full view.
25337         (tree_transform, case N_Allocator): If have initializing expression,
25338         check type for Has_Constrained_Partial_View and pass that to
25339         build_allocator.
25340         (tree_transform, case N_Return_Statement): Pass extra arg to
25341         build_allocator.
25342
25343         * decl.c (annotate_value): Remove early return if -gnatR is not
25344         specified.
25345         (gnat_to_gnu_field): Don't make a packable type for a component clause
25346         if the position is byte aligned, the field is aliased, and the clause
25347         size isn't a multiple of the packable alignment. It serves no useful
25348         purpose packing-wise and would be rejected later on.
25349         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
25350
25351         PR ada/20515
25352         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
25353         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
25354         instead.
25355         (create_concat_name): Idem.
25356
25357 2005-06-10  Robert Dewar  <dewar@adacore.com>
25358             Eric Botcazou  <ebotcazou@adacore.com>
25359             Ben Brosgol  <brosgol@adacore.com>
25360             Cyrille Comar  <comar@adacore.com>
25361             Sergey Rybin  <rybin@adacore.com>
25362             Pascal Obry  <obry@adacore.com>
25363
25364         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
25365         Document second argument (Ada_05) of pragma Obsolescent
25366         Add note that call to subprogram marked with pragma Obsolescent
25367         is now considered to be a violation of program Restrictions
25368         (No_Obsolescent_Features).
25369         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
25370         that only machine-dependent attributes are supported.
25371
25372         * gnat_ugn.texi:
25373         Commented out menu lines and empty section for gnatclean examples
25374         Document -gnatwy/Y
25375         Fix some over long lines
25376         Clarify and enhance documentation of ADA_PROJECT_PATH.
25377         Rework section 2.11.2(3) about linking with a non-GNU compiler.
25378         Mention new switch -fcallgraph-info.
25379         Mention new switch -fstack-usage.
25380         For gnatpp, replace '-notab' with '-N' and add this option to Index
25381         Corrected VMS example.
25382         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
25383         Minor reformatting
25384         Add documentation for -gnatyu switch (unnecessary blank lines)
25385         Document new switch -U for GNAT PRETTY and GNAT METRIC
25386         Add note about Stdcall being handled as C convention on non Windows OS.
25387         Remove some junk typo in description of gnatbind -S switch
25388         Remove reference to Extensions_Allowed pragma
25389         Document the new order of the directories to be searched (source and
25390         object directories of project files before directories in ADA_*_PATH
25391         environment variables.
25392
25393         * g-trasym.ads: Document that IRIX is supported
25394
25395 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
25396
25397         * Makefile.in: Add initialize.o when needed.
25398         Adapt to new VMS package body Symbols and subunits
25399         No specialized version of a-sytaco is needed for VxWorks.
25400
25401         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
25402         * a-zchara.ads, a-widcha.ads: New files.
25403
25404         * system-hpux-ia64.ads: New file.
25405
25406         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
25407         is imported from the VxWorks kernel.
25408
25409 2005-06-14  Robert Dewar  <dewar@adacore.com>
25410
25411         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
25412         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
25413         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
25414         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
25415         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
25416         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
25417         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
25418         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
25419         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
25420         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
25421         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
25422         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
25423
25424 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25425
25426         * xeinfo.adb: Fix typo in comment
25427
25428 2005-06-14  Javier Miranda  <miranda@adacore.com>
25429
25430         * repinfo.ads: Fix typo in comment
25431
25432 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
25433
25434         * s-finimp.adb (Parent_Tag): Delete this imported function (function
25435         Parent_Tag is now in the visible part of Ada.Tags).
25436         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
25437         using imported function.
25438
25439 2005-06-14  Bernard Banner  <banner@adacore.com>
25440
25441         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
25442         also apply for handling support for VxSim 653.
25443
25444 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
25445
25446         * xsnames.adb: Add automatic generation of snames.h.
25447
25448 2005-06-14  Thomas Quinot  <quinot@adacore.com>
25449
25450         * gen-soccon.c: Add IP_MULTICAST_IF constant
25451         Minor reformatting and adjustments to prevent warnings.
25452
25453 2005-06-14  Pascal Obry  <obry@adacore.com>
25454
25455         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
25456
25457 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
25458
25459         * trans.c (gnat_gimplify_expr): Call
25460         recompute_tree_invarant_for_addr_expr when we change
25461         the operand of the ADDR_EXPR.
25462
25463 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25464
25465         * misc.c: Don't include errors.h.
25466
25467 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25468
25469         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
25470
25471 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
25472
25473         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
25474         comment typos.
25475         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
25476
25477 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
25478
25479         PR ada/20270
25480         * Makefile.in: Make TGT_LIB behave correctly.
25481
25482 2005-04-23  DJ Delorie  <dj@redhat.com>
25483
25484         * misc.c: Adjust warning() callers.
25485
25486 2005-04-16  Laurent Guerby  <laurent@guerby.net>
25487
25488         PR ada/18847
25489         * a-nudira.adb (Value): Check for valid string.
25490         * a-nuflra.adb (Value): Likewise.
25491
25492 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
25493
25494         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
25495
25496 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
25497
25498         * adaint.c, init.c, tracebak.c: Fix comment typos.
25499         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
25500
25501 2005-04-07  Laurent Guerby  <laurent@guerby.net>
25502             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25503
25504         * Makefile.in: Add make ifeq define for hppa linux tasking support.
25505         * system-hpux.ads: Define Signed_Zeros to be True.
25506         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
25507
25508 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
25509
25510         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
25511         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
25512         typos.
25513
25514 2005-03-30  Tom Tromey  <tromey@redhat.com>
25515
25516         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
25517
25518 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25519
25520         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
25521
25522 2005-03-29  Robert Dewar  <dewar@adacore.com>
25523
25524         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
25525         fixed-point expression has value that is not a multiple of the Small
25526         value.
25527
25528         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
25529
25530         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
25531         nanoseconds.
25532
25533         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
25534
25535 2005-03-29  Vincent Celier  <celier@adacore.com>
25536
25537         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
25538         (Build_Dynamic_Library.Version_String): Return the empty string when
25539         Lib_Version is empty or when the symbol policy is not Autonomous.
25540
25541         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
25542         a symbol is not in the reference symbol file, increase the Major ID
25543         and set the Minor ID to 0.
25544         Use gsmatch=lequal instead of gsmatch=equal
25545
25546 2005-03-29  Doug Rupp  <rupp@adacore.com>
25547
25548         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
25549         name and translate.
25550
25551 2005-03-29  Javier Miranda  <miranda@adacore.com>
25552
25553         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
25554         (Inherit_DT): The first formal has been redefined as a Tag.
25555         This allows us the removal of the subprogram Get_TSD.
25556         (TSD): Replace the call to Get_TSD by the actual code.
25557
25558         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
25559         (Make_DT): Upgrade the call to Inherit_TSD according to the
25560         new interface: the first formal is now a Tag.
25561
25562         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
25563         redefined as a Tag.
25564         This change allows us to remove the subprogram Get_TSD.
25565         (CPP_Get_TSD): Subprogram removed.
25566         (TSD): Replace the call to CPP_Get_TSD by the actual code.
25567
25568         * rtsfind.ads: Remove support to call the run-time
25569         subprogram Get_TSD
25570
25571 2005-03-29  Robert Dewar  <dewar@adacore.com>
25572
25573         * errutil.adb, errout.adb:
25574         Minor comment updates on Line_Terminator references
25575
25576         * par-ch10.adb: Add ??? comment about line terminator
25577
25578         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
25579         (check dos line terminator).
25580         (Check_Line_Max_Length): New procedure, split off from the existing
25581         Check_Line_Terminator routine. Separating this out allows -gnatyf to
25582         be properly recognized.
25583
25584         * styleg.adb: Add ??? comment for line terminator reference
25585
25586         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
25587         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
25588
25589         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
25590         (check dos line terminator).
25591         (Check_Line_Max_Length): New procedure, split off from the existing
25592         Check_Line_Terminator routine. Separating this out allows -gnatyf to
25593         be properly recognized.
25594
25595         * stylesw.ads, stylesw.adb:
25596         Add handling for new -gnatyd switch (check dos line terminator)
25597
25598         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
25599         Recognize -gnatwb/-gnatwB switches
25600         Include Warn_On_Bad_Fixed_Value for -gnatg
25601
25602         * usage.adb:
25603         Add line for new -gnatyd switch (check dos line terminator)
25604
25605         * usage.adb: Add lines for -gnatwb/-gnatwB
25606
25607         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
25608
25609         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
25610
25611         * gnat_ugn.texi: Fix overlong lines
25612         Document new -gnatyd switch
25613         Document new -gnatwb/-gnatwB switches
25614
25615 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25616
25617         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
25618         order to retrieve the component list of the type, before examining
25619         individual components.
25620
25621         * sem_type.adb (Covers): Types are compatible if one is the base type
25622         of the other, even though their base types might differ when private
25623         views are involved.
25624
25625 2005-03-29  Thomas Quinot  <quinot@adacore.com>
25626
25627         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
25628         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
25629         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
25630         analyzed if expansion is disabled (which could otherwise cause spurious
25631         error messages if expansion has been disabled due to previous
25632         (unrelated) errors).
25633
25634         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
25635         is disabled, the entity denoted by the argument is the access type
25636         itself, not an underlying record type, so there is no need to go back
25637         to the Corresponding_Remote_Type.
25638
25639 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
25640             Robert Dewar  <dewar@adacore.com>
25641
25642         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
25643         expand a call to an instance of
25644         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
25645         Constructor actual of the instance. A class-wide membership
25646         check is also generated, to ensure that the tag passed to the instance
25647         denotes a type in the class.
25648         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
25649         of Name_Generic_Dispatching_Constructor.
25650
25651         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
25652         05 unit for AI-260-02).
25653
25654         * a-tgdico.ads: New file.
25655
25656         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
25657         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
25658
25659         * snames.ads, snames.adb (Preset_Names): Add entry for
25660         Generic_Dispatching_Constructor.
25661
25662         PR ada/20300
25663         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
25664         character type cases.
25665         (Analyze_Subprogram_Renaming): Add special handling for
25666         the case of renaming of stream attributes when the renaming denotes a
25667         generic formal subprogram association for an abstract formal subprogram.
25668         Check that the attribute is a primitive stream attribute (and not
25669         a class-wide stream attribute) and then rewrite the attribute name
25670         as the name of the appropriate compiler-generated stream primitive.
25671
25672 2005-03-29  Robert Dewar  <dewar@adacore.com>
25673
25674         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
25675         recursive calls.
25676         (Is_Possibly_Unaligned_Object): Correct typo that
25677         resulted in inaccurate result for unaligned scalars within records.
25678
25679 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25680
25681         * freeze.adb (Freeze_Record_Type): If the type of the component is an
25682         itype whose parent is controlled and not yet frozen, do not create a
25683         freeze node for the itype if expansion is disabled.
25684
25685 2005-03-29  Vincent Celier  <celier@adacore.com>
25686
25687         * make.adb (Gnatmake): Don't fail if the main project file is declared
25688         as having no Ada sources. Do not display message "no sources to
25689         compile" in quiet output.
25690
25691 2005-03-29  Doug Rupp  <rupp@adacore.com>
25692
25693         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
25694         extra tools.
25695
25696 2005-03-29  Robert Dewar  <dewar@adacore.com>
25697
25698         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
25699         child.
25700
25701 2005-03-29  Robert Dewar  <dewar@adacore.com>
25702
25703         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
25704         missing TYPE Improve the error message generated when compiling a
25705         limited interface in Ada83 or Ada95 mode.
25706
25707 2005-03-29  Robert Dewar  <dewar@adacore.com>
25708
25709         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
25710         rather than proceed ahead using a junk attribute name.
25711
25712 2005-03-29  Vincent Celier  <celier@adacore.com>
25713
25714         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
25715
25716         * prj-part.adb (Parse_Single_Project): Set the location of a project
25717         on its defining identifier, rather than on the reserved word "project".
25718
25719         * prj-proc.adb (Expression): Adapt to the fact that default of external
25720         references may be string expressions, not always literal strings.
25721         (Recursive_Process): Set Display_Name equal to Name
25722         when Location is No_Location, that is when there is no actual file.
25723         Get the Display_Name of the project from the source, when it is not a
25724         virtual project.
25725         (Process): Use the Display_Name in error messages
25726
25727         * prj-strt.adb (External_Reference): Allow default to be string
25728         expressions, not only literal strings.
25729
25730 2005-03-29  Vincent Celier  <celier@adacore.com>
25731
25732         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
25733         file and the reference symbol file to be the same file.
25734
25735 2005-03-29  Thomas Quinot  <quinot@adacore.com>
25736
25737         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
25738         forbid conversion of a local access-to-subprogram type to a remote one.
25739
25740         * sem_util.adb (Wrong_Type): For a record type that is the expanded
25741         equivalent type for a remote access-to-subprogram type, go back to the
25742         original RAS entity when displaying an error message, so the casing is
25743         the original source casing.
25744
25745 2005-03-29  Robert Dewar  <dewar@adacore.com>
25746
25747         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
25748         on param update.
25749
25750 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25751
25752         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
25753         subtype if code is being pre-analyzed, to prevent un-expanded
25754         references to protected formals, among others.
25755         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
25756         interpretation that can be a call, include the result of the call as a
25757         possible interpretation of the dereference.
25758
25759         * sem_ch5.adb (Process_Bounds): Determine type of range by
25760         pre-analyzing a copy of the original range, and then analyze the range
25761         with the expected type.
25762
25763         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
25764         with an overloaded prefix where not all interpretations yield an
25765         access to subprogram, do not rewrite node as a call.
25766         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
25767         the node as a call once the context identifies the interpretation of
25768         the prefix whose call yields the context type.
25769         (Valid_Conversion): For the case of a conversion between
25770         local access-to-subprogram types, check subtype conformance using
25771         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
25772         detailed error message.
25773
25774 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25775
25776         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
25777         indicator, indicate that the formal can never be null.
25778         (Process_Formals): If a formal has a non_null indicator, insert the
25779         resulting subtype immediately before the enclosing subprogram decl,
25780         and not at the beginning of the corresponding declarative part, to
25781         prevent access before elaboration (Ada2005).
25782
25783 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25784
25785         PR ada/19956
25786         * utils.c (finish_record_type): Use variable_size when setting sizes.
25787
25788 2005-03-29  Robert Dewar  <dewar@adacore.com>
25789
25790         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
25791         guarantee Unix style line terminators for the output files, even when
25792         running on windows.
25793
25794 2005-03-29  Robert Dewar  <dewar@adacore.com>
25795
25796         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
25797         buffer if an exception is raised.
25798
25799 2005-03-29  Ed Falis  <falis@adacore.com>
25800
25801         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
25802         VxWorks 653 1.4
25803
25804 2005-03-29  Robert Dewar  <dewar@adacore.com>
25805
25806         * sem_util.ads: Minor reformatting
25807         * gnat_rm.texi: Minor editing.
25808
25809 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
25810
25811         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
25812         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
25813
25814 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25815
25816         * adaint.c (__gnat_portable_spawn): Adjust cast.
25817
25818 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
25819
25820         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
25821
25822 2005-03-17  Pascal Obry  <obry@adacore.com>
25823
25824         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
25825         used.
25826
25827         * expect.c (__gnat_waitpid): Moved here from adaint.c.
25828         Reimplement under Win32 using Win32 API.
25829
25830         (__gnat_kill) [Win32]: Properly close the process handle before leaving
25831         this routine.
25832
25833 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
25834
25835         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
25836         (DECL_RENAMED_OBJECT): New accessor macro.
25837         (SET_DECL_RENAMED_OBJECT): New setter macro.
25838
25839         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
25840         object in all cases.  Attach the renamed object to the VAR_DECL.
25841         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
25842         field is not prescribed.
25843
25844         * misc.c (gnat_handle_option): Handle -gnatO separately.
25845         (gnat_print_decl) <VAR_DECL>: New case.
25846         Print the DECL_RENAMED_OBJECT node.
25847
25848         * lang.opt:  Declare separate -gnatO option.
25849
25850         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
25851         pointer, replace it with the renamed object.
25852         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
25853         pointer type if the source is not a fat pointer type whose underlying
25854         array has the same non-zero alias set as that of the destination array.
25855
25856 2005-03-17  Javier Miranda  <miranda@adacore.com>
25857
25858         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
25859         (Get_Inheritance_Depth): Removed.
25860         (Set_Inheritance_Depth): Removed.
25861
25862         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
25863         subprogram Get_Expanded_Name because it is not referenced by the
25864         frontend.
25865
25866         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
25867         (CPP_Get_Inheritance_Depth): Removed.
25868         (CPP_Set_Inheritance_Depth): Removed.
25869
25870         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
25871
25872 2005-03-17  Robert Dewar  <dewar@adacore.com>
25873
25874         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
25875         3, since we now expect GCC 3 to do all the work.
25876
25877 2005-03-17  Javier Miranda  <miranda@adacore.com>
25878
25879         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
25880         of one barrier to avoid wrong usage of this attribute.
25881
25882         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
25883         First_Private_Entity.
25884
25885         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
25886         the subprogram against wrong usage.
25887         Adapt the code to traverse the entities in the
25888         scope of a record_type because in addition to its usage regarding
25889         packages, this subprogram is also called by Expand_N_Freeze_Entity
25890         to install the visible declarations of the enclosing scope of a
25891         record_type_with_private to establish the proper visibility before
25892         freezing the entity and related subprograms.
25893
25894 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
25895
25896         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
25897         entry formals.
25898
25899 2005-03-17  Thomas Quinot  <quinot@adacore.com>
25900
25901         * exp_ch3.adb (Check_Attr): New subprogram.
25902         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
25903         into a new Check_Attr subprogram, in order to provide a more
25904         explanatory error message (including the name of the missing attribute).
25905         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
25906         subprogram determines whether a default implementation exists for a
25907         given stream attribute.
25908         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
25909         Determine whether to generate a default implementation for each stream
25910         attribute separately, as this depends on the specific attribute.
25911
25912         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
25913         limited extension where a stream attribute is missing for a limited
25914         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
25915         generate a bogus reference to the missing attribute to prevent
25916         cascaded errors. Instead, generate a null statement.
25917
25918         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
25919         available for a limited type if it has been specified for an ancestor
25920         of the type.
25921
25922 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
25923
25924         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
25925         entity is an operator.
25926
25927 2005-03-17  Thomas Quinot  <quinot@adacore.com>
25928
25929         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25930         spec, to make this predicate available to other units.
25931
25932         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
25933         reimplementing it.
25934
25935         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
25936         when no distribution runtime library is available.
25937
25938         * sem_res.adb, sem_dist.adb: Disable expansion of remote
25939         access-to-subprogram types when no distribution runtime library is
25940         available.
25941         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
25942         predicate available to other units.
25943
25944         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25945         spec, to make this predicate available to other units.
25946
25947 2005-03-17  Vincent Celier  <celier@adacore.com>
25948
25949         * make.adb (Insert_Project_Sources): Make sure the Q is always
25950         initialized.
25951
25952         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
25953         the default for the tree, not the global default naming.
25954
25955         * prj-proc.adb (Recursive_Process): No need to put the default naming
25956         in the project data, it's already there.
25957
25958 2005-03-17  Doug Rupp  <rupp@adacore.com>
25959
25960         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
25961
25962         * 5xcrtl.ads: Renamed to...
25963         * s-crtl-vms64.ads: ...this new file
25964
25965 2005-03-17  Robert Dewar  <dewar@adacore.com>
25966
25967         PR ada/19519
25968         * namet.adb (Copy_One_Character): Set proper wide character encoding
25969         for upper half character if we have upper half encoding.
25970
25971 2005-03-17  Robert Dewar  <dewar@adacore.com>
25972
25973         * par.adb (Par): Improved msg for attempt to recompile predefined unit
25974
25975 2005-03-17  Thomas Quinot  <quinot@adacore.com>
25976
25977         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
25978         tagged limited type, the TSS is a newly built renaming declaration:
25979         insert it using Set_TSS, not Copy_TSS.
25980
25981 2005-03-17  Javier Miranda  <miranda@adacore.com>
25982
25983         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
25984         Try_Object_Operation): Analyze the object that is accessible
25985         through the prefix of the subprogram call before we apply
25986         the transformation of the object-operation notation.
25987
25988 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
25989
25990         * s-taprob.adb (Initialize_Protection): Initialize the protected
25991         object's owner to Null_Task.
25992         (Lock): If pragma Detect_Blocking is in effect and the caller of this
25993         procedure is already the protected object's owner then Program_Error
25994         is raised. In addition the protected object's owner is updated.
25995         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
25996         of this procedure is already the protected object's owner then
25997         Program_Error is raised.
25998         In addition the protected object's owner is updated.
25999         (Unlock): Remove the ownership of the protected object.
26000
26001         * s-taprob.ads (Protection): Add the field Owner, used to store the
26002         protected object's owner.
26003         This component is needed for detecting one type of potentially blocking
26004         operations (external calls on a protected subprogram with the same
26005         target object as that of the protected action). Document the rest of
26006         the components.
26007
26008         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26009         Initialize the protected object's owner to Null_Task.
26010         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26011         caller of this procedure is already the protected object's owner then
26012         Program_Error is raised.
26013         Do not raise Program_Error when this procedure is called from a
26014         protected action.
26015         (Unlock_Entries): Remove the ownership of the protected object.
26016         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26017         of this procedure is already the protected object's owner then
26018         Program_Error is raised.
26019         Do not raise Program_Error when this procedure is called from
26020         a protected action.
26021
26022         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26023         used to store the protected object's owner.
26024
26025         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26026         effect and this procedure (a potentially blocking operation) is called
26027         from whithin a protected action, Program_Error is raised.
26028         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26029         and this procedure (a potentially blocking operation) is called from
26030         whithin a protected action, Program_Error is raised.
26031
26032 2005-03-17  Vincent Celier  <celier@adacore.com>
26033             Nicolas Setton  <setton@adacore.com>
26034
26035         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26036         switch, not supported by the linker on Darwin. Add '_' before
26037         <library>init, as this character is added unconditionally by the
26038         compiler.
26039         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26040         correct one ".dylib". This fixes detection of the archive files when
26041         building library projects.
26042
26043 2005-03-17  Vincent Celier  <celier@adacore.com>
26044
26045         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26046         -gnat83, -gnat95 and -gnat05.
26047
26048 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
26049
26050         * gnat_ugn.texi: Document gnatmem restriction
26051
26052 2005-03-17  Thomas Quinot  <quinot@adacore.com>
26053
26054         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26055         cleanup
26056
26057 2005-03-17  Robert Dewar  <dewar@adacore.com>
26058
26059         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
26060         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
26061         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
26062
26063         * casing.adb: Comment improvements
26064
26065 2005-03-17  Pascal Obry  <obry@adacore.com>
26066
26067         * g-expect.adb: Minor reformatting.
26068
26069 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
26070
26071         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
26072         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
26073         to dependencies.
26074
26075 2005-03-15  Vincent Celier  <celier@adacore.com>
26076
26077         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
26078         Add new parameter In_Tree to specify the project tree: needed
26079         by the project manager. Adapt to changes in project manager
26080         using new parameter In_Tree.
26081
26082 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
26083
26084         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
26085         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
26086         ada/bldtools to avoid make -jN failures.
26087
26088 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26089
26090         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
26091         to NULL_TREE on entry.
26092
26093 2005-03-15  Robert Dewar  <dewar@adacore.com>
26094
26095         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26096         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26097         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26098         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26099         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26100         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
26101         system-interix.ads, system-solaris-sparc.ads,
26102         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26103         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
26104         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26105         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
26106         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
26107         Compiler_System_Version to be False.
26108
26109         * opt.ads: Add new flag Opt.Address_Is_Private
26110
26111         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
26112         Add new parameter Compiler_System_Version to avoid checking for
26113         completeness of parameters when compiler is compiling itself.
26114         Allows old versions of GNAT to be compiled with new compiler.
26115
26116 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26117
26118         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
26119         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
26120         calling thread.
26121         (Stack_Base_Available): New flag.
26122         (Get_Page_Size): New overloaded functions imported from C.
26123         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
26124         PROT_ON, PROT_OFF): New constants.
26125         (mprotect): New function imported from C.
26126         (pthread_teb_t): New record type.
26127
26128         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
26129         (Create_Task): Account for the Yellow Zone and the guard page.
26130
26131 2005-03-15  Vincent Celier  <celier@adacore.com>
26132
26133         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26134         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
26135         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
26136         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
26137         Library_File_Name_For): Add new parameter In_Tree
26138         to specify the project tree: needed by the project manager.
26139         Adapt to changes in project manager using new parameter In_Tree.
26140         Remove local imports, use functions in System.CRTL.
26141
26142         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
26143         to use the project manager.
26144
26145         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
26146         In_Tree to designate the project tree. Adapt to changes in the project
26147         manager, using In_Tree.
26148
26149         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
26150         Copy_Interface_Sources): Add new parameter In_Tree to specify the
26151         project tree: needed by the project manager.
26152         (Build_Library): Check that Arg'Length >= 6 before checking if it
26153         contains "--RTS=...".
26154
26155         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
26156         Library_File_Name_For): Add new parameter In_Tree to specify the
26157         project tree: needed by the project manager.
26158
26159         * prj.ads, prj.adb: Major modifications to allow several project trees
26160         in memory at the same time.
26161         Change tables to dynamic tables and hash tables to dynamic hash
26162         tables. Move tables and hash tables from Prj.Com (in the visible part)
26163         and Prj.Env (in the private part). Move some constants from the visible
26164         part to the private part. Make other constants deferred.
26165         (Project_Empty): Make it a variable, not a function
26166         (Empty_Project): Add parameter Tree. Returns the data with the default
26167         naming data of the project tree Tree.
26168         (Initialize): After updating Std_Naming_Data, copy its value to the
26169         component Naming of Project Empty.
26170         (Register_Default_Naming_Scheme): Use and update the default naming
26171         component of the project tree, instead of the global variable
26172         Std_Naming_Data.
26173         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
26174         Tree is not defaulted, return the default naming data of the Tree.
26175         (Initial_Buffer_Size): Constant moved from private part
26176         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
26177         variables initialized in procedure Initialize.
26178         (Add_To_Buffer): Add two in out parameters to replace global variables
26179         Buffer and Buffer_Last.
26180         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
26181         functions.
26182         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
26183         hash tables.
26184         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26185         for the project tree.
26186         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
26187         constant at the beginning of the package spec, so that they cane be used
26188         in subprograms before their full declarations.
26189         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
26190         (Empty_Project): Add parameter of type Project_Node_Ref
26191         (Private_Project_Tree_Data): Add component Default_Naming of type
26192         Naming_Data.
26193         (Buffer, Buffer_Last): remove global variables
26194         (Add_To_Buffer): Add two in out parameters to replace global variables
26195         Buffer and Buffer_Last.
26196         (Current_Packages_To_Check): Remove global variable
26197         (Empty_Name): Move to private part
26198         (No-Symbols): Make it a constant
26199         (Private_Project_Tree_Data): New type for the private part of the
26200         project tree data.
26201         (Project_Tree_Data): New type for the data of a project tree
26202         (Project_Tree_Ref): New type to designate a project tree
26203         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26204         for the project tree.
26205
26206         * prj-attr.ads: Add with Table; needed, as package Prj no longer
26207         imports package Table.
26208
26209         * prj-com.adb: Remove empty, no longer needed body
26210
26211         * prj-com.ads: Move most of the content of this package to package Prj.
26212
26213         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
26214         designate the project node tree and Packages_To_Check to replace
26215         global variable Current_Packages_To_Check.
26216         Add new parameters In_Tree and Packages_To_Check to local subprograms,
26217         when needed. Adapt to changes in project manager with project node tree
26218         In_Tree.
26219
26220         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
26221         project tree to most subprograms. Move tables and hash tables to
26222         private part of package Prj.
26223         Adapt to changes in project manager using project tree In_Tree.
26224
26225         * prj-makr.adb (Tree): New constant to designate the project node tree
26226         Adapt to change in project manager using project node tree Tree
26227
26228         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
26229         display the Library_Src_Dir and the Library_Dir.
26230         Add new parameter In_Tree to designate the project node tree to most
26231         subprograms. Adapt to changes in the project manager, using project tree
26232         In_Tree.
26233         (Check_Naming_Scheme): Do not alter the casing on platforms where
26234         the casing of file names is not significant.
26235         (Check): Add new parameter In_Tree to designate the
26236
26237         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
26238         designate the project tree.
26239         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
26240
26241         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
26242         to replace those that were in the private part of package Prj.
26243         Add new parameter In__Tree to designate the project node tree to most
26244         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
26245         (Post_Parse_Context_Clause): When specifying the project node of a with
26246         clause, indicate that it is a limited with only if there is "limited"
26247         in the with clause, not necessarily when In_Limited is True.
26248         (Parse): Add new parameter In_Tree to designate the project node tree
26249
26250         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
26251         designate the project node tree. Adapt to change in Prj.Tree with
26252         project node tree In_Tree.
26253
26254         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
26255         tree In_Tree in the call to function Empty_Process to give its initial
26256         value to the project data Processed_Data.
26257         Add new parameters In_Tree to designate the project tree and
26258         From_Project_Node_Tree to designate the project node tree to several
26259         subprograms. Adapt to change in project manager with project tree
26260         In_Tree and project node tree From_Project_Node_Tree.
26261
26262         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
26263         to replace those that were in the private part of package Prj.
26264         Add new parameter In_Tree to designate the project node tree to most
26265         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
26266
26267         * prj-tree.ads, prj-tree.adb: Add new parameter of type
26268         Project_Node_Tree_Ref to most subprograms.
26269         Use this new parameter to store project nodes in the designated project
26270         node tree.
26271         (Project_Node_Tree_Ref): New type to designate a project node tree
26272         (Tree_Private_Part): Change table to dynamic table and hash tables to
26273         dynamic hash tables.
26274
26275         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
26276         the project tree to most subprograms. Adapt to changes in project
26277         manager using project tree In_Tree.
26278
26279         * makegpr.adb (Project_Tree): New constant needed to use project
26280         manager.
26281
26282 2005-03-15  Olivier Hainque  <hainque@adacore.com>
26283
26284         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
26285         for sigactions with SA_SIGINFO set. Call
26286         __gnat_adjust_context_for_raise before raising, to perform the
26287         potentially required adjustments to the machine context for the GCC
26288         unwinder.
26289
26290         * raise.h (__gnat_adjust_context_for_raise): New prototype.
26291
26292         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
26293         Adjust PC by one in the provided machine context.
26294         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
26295         so that the handler is passed the context structure to adjust prior to
26296         the raise.
26297         (__gnat_error_handler) HPUX: Adjust the signature to match what an
26298         SA_SIGINFO sigaction should look like. Call
26299         __gnat_adjust_context_for_raise before actually raising.
26300         (__gnat_adjust_context_for_raise): Default noop to help PC
26301         adjustments before raise from signal handlers.
26302         (__gnat_error_handler): Indirectly call a predicate function to
26303         determine if a condition should be resignaled or not.
26304         (__gnat_set_resignal_predicate): User interface to modify the predicate.
26305         (__gnat_default_resignal_p): Default GNAT predicate.
26306
26307 2005-03-15  Doug Rupp  <rupp@adacore.com>
26308
26309         * adaint.c: Prefix #include of VMS system header files with vms/
26310         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
26311         Do not define a dummy function "convert_addresses" under Darwin,
26312         not needed.
26313
26314         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
26315         with vms/
26316
26317 2005-03-15  Nicolas Setton  <setton@adacore.com>
26318
26319         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
26320         PPC/AIX.
26321
26322 2005-03-15  Robert Dewar  <dewar@adacore.com>
26323
26324         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
26325         AI-386.
26326
26327         * a-retide.ads: Minor comment changes
26328
26329 2005-03-15  Robert Dewar  <dewar@adacore.com>
26330
26331         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
26332         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
26333         Realloc_For_Chunk to private part of package.
26334         New subprograms for AI-301
26335
26336         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
26337         Get_Line procedure.
26338         Avoid unnecessary use of Get/Set_Wide_String
26339
26340 2005-03-15  Robert Dewar  <dewar@adacore.com>
26341
26342         PR ada/13470
26343         * a-stunau.ads, a-stunau.adb:
26344         Change interface to allow efficient (and correct) implementation
26345         The previous changes to allow extra space in unbounded strings had
26346         left this interface a bit broken.
26347
26348         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
26349
26350         * g-spipat.ads, g-spipat.adb: New interface for Get_String
26351         Minor reformatting (function specs)
26352
26353         * g-spitbo.adb: New interface for Get_String
26354
26355         * g-spitbo.ads: Minor reformatting
26356
26357         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
26358
26359         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
26360
26361 2005-03-15  Javier Miranda  <miranda@adacore.com>
26362             Robert Dewar  <dewar@adacore.com>
26363             Thomas Quinot  <quinot@adacore.com>
26364             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26365
26366         * atree.ads, atree.adb: Add support for Elist24 field
26367
26368         * atree.h: Fix wrong definition of Field27
26369         Add support for Elist16 field
26370         Add support for Elist24 field
26371
26372         * einfo.ads, einfo.adb (Abstract_Interfaces,
26373         Set_Abstract_Interfaces): New subprograms.
26374         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
26375         subprograms.
26376         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
26377         entities rather than a single node.
26378         (Is_Interface, Set_Is_Interface): New subprogram
26379         (First_Tag_Component): New syntesized attribute
26380         (Next_Tag_Component): New synthesized attribute
26381         (Write_Entity_Flags): Upgraded to write Is_Interface
26382         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
26383         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
26384         (Task_Body_Procedure): New subprogram to read this attribute.
26385         (Set_Task_Body_Procedure): New subprogram to set this attribute.
26386         (Has_Controlled_Component): Now applies to all entities.
26387         This is only a documentation change, since it always worked to apply
26388         this to other than composite types (yielding false), but now this is
26389         official.
26390         Update documentation on Must_Be_Byte_Aligned for new spec
26391
26392         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
26393         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
26394         uses of the Access_Disp_Table attribute to reference the first dispatch
26395         table associated with a tagged type. As
26396         part of the implementation of abstract interface types,
26397         Access_Disp_Table has been redefined to contain a list of dispatch
26398         tables (rather than a single dispatch table).
26399         Similarly, upgrade all the references to Tag_Component by the
26400         new attribute First_Tag_Component.
26401         (Find_Inherited_TSS): Moved to exp_tss.
26402         Clean up test in Expand_N_Object_Declaration for cases
26403         where we need to do a separate assignment of the initial value.
26404         (Expand_N_Object_Declaration): If the expression in the
26405         declaration of a tagged type is an aggregate, no need to generate an
26406         additional tag assignment.
26407         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
26408         is to be deleted.
26409         Bit packed array ops are only called if operands are known to be
26410         aligned.
26411         (Component_Equality): When returning an N_Raise_Program_Error statement,
26412         ensure that its Etype is set to Empty to avoid confusing GIGI (which
26413         expects that only expressions have a bona fide type).
26414         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
26415         determine the amount of data to be copied.
26416
26417         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
26418         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
26419             INTERFACE_TYPE_DEFINITION ::=
26420               [limited | task | protected | synchronized] interface
26421                 [AND interface_list]
26422
26423         * par-ch3.adb (P_Type_Declaration): Modified to give support to
26424         interfaces.
26425         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
26426         interfaces.
26427         (P_Interface_Type_Definition): New subprogram that parses the new
26428         syntax rule of Ada 2005 interfaces
26429         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
26430         messages by the correct RENAMES (quotes removed).
26431
26432         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
26433         attribute First_Tag_Component.
26434
26435         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
26436         (Interface_List, Set_Interface_List): New subprograms.
26437         (Interface_Present, Set_Interface_Present): New subprograms.
26438         (Limited_Present, Set_Limited_Present): Available also in derived
26439         type definition nodes.
26440         (Protected_Present, Set_Protected_Present): Available also in
26441         record type definition and
26442         derived type definition nodes.
26443         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
26444         (Task_Present, Set_Task_Present): New subprogram.
26445         (Task_Body_Procedure): Removed.
26446         (Set_Task_Body_Procedure): Removed.
26447         These subprogram have been removed because the attribute
26448         Task_Body_Procedure has been moved to the corresponding task type
26449         or task subtype entity to leave a field free to store the list
26450         of interfaces implemented by a task (for AI-345)
26451         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
26452         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
26453         expression flag Do_Range_Check
26454         (Exception_Junk): Change to Flag7 to accomodate above change
26455         (Box_Present, Default_Name, Specification, Set_Box_Present,
26456         Set_Default_Name, Set_Specification): Expand the expression
26457         "X in N_Formal_Subprogram_Declaration" into the corresponding
26458         two comparisons. Required to use the csinfo tool.
26459
26460         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
26461         "with string" given.
26462
26463         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
26464         expression given.
26465
26466         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
26467         in 2005 mode
26468
26469         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
26470         attribute Task_Body_Procedure rather than the old semantic field that
26471         was available in the task_type_declaration node.
26472
26473         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
26474         interface type definitions.
26475         (P_Formal_Derived_Type_Definition): Modified to handle the list of
26476         interfaces.
26477
26478         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
26479         task type declaration.
26480         (P_Protected): Modified to handle the list of interfaces in a
26481         protected type declaration.
26482
26483 2005-03-15  Doug Rupp  <rupp@adacore.com>
26484             Vincent Celier  <celier@adacore.com>
26485
26486         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
26487         (Gen_Output_File_C): Likewise.
26488         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
26489
26490 2005-03-15  Thomas Quinot  <quinot@adacore.com>
26491
26492         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
26493         is an N_Raise_Constraint_Error node, create a new copy of it without
26494         going through a call to Duplicate_Subexpr.
26495
26496 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26497             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26498             Nicolas Setton  <setton@adacore.com>
26499             Ed Schonberg  <schonberg@adacore.com>
26500
26501         PR ada/19900
26502         PR ada/19408
26503         PR ada/19140
26504         PR ada/20255
26505         * decl.c (gnat_to_gnu_field): Reject aliased components with a
26506         representation clause that prescribes a size not equal to the rounded
26507         size of their types.
26508         (gnat_to_gnu_entity, case E_Component): Always look at
26509         Original_Record_Component if Present and not the entity.
26510         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
26511         of tagged extension types by not making field for components that are
26512         inside the parent.
26513         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
26514         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
26515         expression to the type of the object when the object is constant.
26516         Reverse defer_debug_incomplete_list before traversing it, so that trees
26517         are processed in the order at which they were added to the list. This
26518         order is important when using the stabs debug format.
26519         If we are deferring the output of debug information, also defer this
26520         output for a function return type.
26521         When adding fields to a record, prevent emitting debug information
26522         for incomplete records, emit the information only when the record is
26523         complete.
26524         (components_to_record): New parameter defer_debug.
26525         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
26526         (gnat_to_gnu_field_decl): New function.
26527         (substitution_list, annotate_rep): Call it.
26528         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
26529         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
26530         No longer update discriminants to not be a COMPONENT_REF.
26531         (copy_alias_set): Strip padding from input type; also handle
26532         unconstrained arrays properly.
26533
26534         * gigi.h (write_record_type_debug_info): New function.
26535         Convert to use ANSI-style prototypes. Remove unused
26536         declarations for emit_stack_check, elab_all_gnat and
26537         set_second_error_entity.
26538         (gnat_to_gnu_field_decl): New decl.
26539
26540         * utils.c (write_record_type_debug_info): New function.
26541         (finish_record_type): Delegate generation of debug information to
26542         write_record_type_debug_info.
26543         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
26544         (update_pointer_to): Fix pasto.
26545         (convert) <UNION_TYPE>: Accept slight type variations when
26546         converting to an unchecked union type.
26547
26548         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
26549         replace the N_Freeze_Entity with a null statement.
26550
26551         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
26552         within a constrained subcomponent of an enclosing record, place the
26553         freeze nodes in the scope stack entry for the enclosing record.
26554         (Undelay_Type): New Subprogram.
26555         (Set_Small_Size): Pass T, the type to modify; all callers changed.
26556         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
26557         within records; allow them to have freeze nodes if their base types
26558         aren't frozen yet.
26559
26560         * exp_util.adb (Remove_Side_Effects): Properly test for
26561         Expansion_Delayed and handle case when it's inside an
26562         N_Qualified_Expression.
26563
26564         * sem_ch3.adb (Derived_Type_Declaration): New predicate
26565         Comes_From_Generic, to recognize accurately that the parent type in a
26566         derived type declaration can be traced back to a formal type, because
26567         it is one or is derived from one, or because its completion is derived
26568         from one.
26569         (Constrain_Component_Type): If component comes from source and has no
26570         explicit constraint, no need to constrain in in a subtype of the
26571         enclosing record.
26572         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
26573         Minor change to propagate Is_Ada_2005 flag
26574
26575         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
26576         Expansion_Delayed is False.
26577         (assoc_to_constructor): Ignore fields that have a
26578         Corresponding_Discriminant.
26579         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
26580         function returns "by target", dereference the target pointer using the
26581         type of the actual return value.
26582         <all>: Be prepared for a null gnu_result.
26583         (processed_inline_subprograms): Check flag_really_no_inline
26584         instead of flag_no_inline.
26585         (set_second_error_entity): Remove unused function.
26586         (gnat_to_gnu, case N_Selected_Component): Call
26587         gnat_to_gnu_field_decl.
26588         (assoc_to_constructor): Likewise.
26589
26590 2005-03-15  Robert Dewar  <dewar@adacore.com>
26591             Ed Schonberg  <schonberg@adacore.com>
26592             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26593
26594         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
26595         Must_Be_Byte_Aligned for cases where we do not need to use a
26596         System.Pack_nn unit.
26597
26598         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
26599         as procedures.
26600         Needed now that we do some processing for IN parameters as well. This
26601         may well fix some unrelated errors.
26602         (Expand_Call): Handle case of unaligned objects (in particular those
26603         that come from packed arrays).
26604         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
26605         renamed entity is an inherited operation, re-expand the call using the
26606         original operation, which is the one to call.
26607         Detect attempt to inline parameterless recursive subprogram.
26608         (Represented_As_Scalar): Fix to work properly with private types
26609         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
26610         accurate estimate. Yields True in far fewer cases than before,
26611         improving the quality of code that depends on this test.
26612
26613         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
26614         over both visible and private declarations to remove them from tree,
26615         and mark subprograms declared in package as eliminated, to prevent
26616         spurious use in subsequent compilation of generic units in the context.
26617
26618         * exp_util.ads: Minor cleanup in variable names
26619
26620         * sem_eval.ads, sem_eval.adb: Minor reformatting
26621         (Compile_Time_Known_Bounds): New function
26622
26623 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26624
26625         * exp_ch7.adb (Convert_View): Use base types of underlying types when
26626         determining whether an unchecked conversion is needed for the argument
26627         of an initialization call.
26628
26629 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26630
26631         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
26632         that appears in the instantiation rather than the internal subtype
26633         generated in the wrapper package, to avoid anomalies in gigi when the
26634         target is derived from a private type whose full view is an access type.
26635
26636 2005-03-15  Robert Dewar  <dewar@adacore.com>
26637
26638         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
26639         not needed.
26640         Add documentation to replace the use of this flag
26641         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
26642         the x86_64.
26643
26644 2005-03-15  Thomas Quinot  <quinot@adacore.com>
26645
26646         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
26647         here from exp_attr so it can be shared between exp_attr and exp_dist.
26648         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
26649         all TSS names, not a subset thereof, and the previous name introduced
26650         an unnecessarily confusion that a distinction might exist between
26651         "OK" TSS names and some "not OK" TSS names.
26652
26653 2005-03-15  Doug Rupp  <rupp@adacore.com>
26654
26655         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
26656         Command_Name.
26657
26658 2005-03-15  Pascal Obry  <obry@adacore.com>
26659             Eric Botcazou  <ebotcazou@adacore.com>
26660
26661         PR ada/20226
26662         PR ada/20344
26663         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
26664         when IN_RTS. This is to work around a bootstrap path problem.
26665
26666         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
26667         table and pass it to __gnat_install_SEH_handler().
26668         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
26669
26670         * lang.opt: Fix specification of -fRTS=.
26671
26672 2005-03-15  Doug Rupp  <rupp@adacore.com>
26673             Bernard Banner  <banner@adacore.com>
26674             Vincent Celier  <celier@adacore.com>
26675             Arnaud Charlet  <charlet@adacore.com>
26676
26677         PR ada/6852
26678         This change works fine when gnatlib is built from the gcc directory,
26679         but does not work when using the libada Makefile, since GCC_FOR_TARGET
26680         is not passed to ada/Makefile.in, so more work is needed by a
26681         Makefile/configure expert.
26682
26683         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
26684         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
26685         Setup gnatlink switch -M for x86_64 linux, as it is already setup
26686         for Linux x86.
26687         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
26688         Run ranlib on libgccprefix.a
26689         Define PREFIX_OBJS for Darwin, to build libgccprefix.
26690         (ADA_INCLUDE_SRCS): Split Ada packages.
26691
26692 2005-03-15  Robert Dewar  <dewar@adacore.com>
26693
26694         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
26695
26696         * impunit.adb: Add GNAT.UTF_32
26697
26698         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
26699
26700         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
26701         now uses GNAT.UTF_32).
26702
26703         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
26704         capabilities for categorizing characters using Unicode categories
26705
26706 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26707
26708         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
26709         instantiation that has been rewritten as a package body, retrieve spec
26710         to generate proper name for implicit_with_clause.
26711         (Install_Parents): Recognize a parent that is an instantiation but has
26712         been rewritten as a package declaration during analysis.
26713
26714 2005-03-15  Javier Miranda  <miranda@adacore.com>
26715             Ed Schonberg  <schonberg@adacore.com>
26716
26717         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
26718         parameter reported some error we immediately return. This improves the
26719         behaviour of the frontend in case of errors.
26720         (Install_Parent, Remove_Parent): Introduce new flag
26721         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
26722         ancestor of a generic child unit, when the child is being instantiated.
26723         (Inline_Instance_Body): If we are compiling the private
26724         part or the body of a child unit, restore the proper visibility of the
26725         parents after compiling the instance body.
26726
26727 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26728             Javier Miranda  <miranda@adacore.com>
26729
26730         PR ada/15608
26731         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
26732         of a private type, in which case it is underlying_type that denotes
26733         the proper task. Also modified to use the new entity attribute
26734         that is directly available in the task type and task subtype entities
26735         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
26736         arrays when other dimensions than the first are constrained by
26737         discriminants of an enclosing record.
26738         (Insert_Explicit_Dereference): If the prefix is an indexed component or
26739         a combination of indexed and selected components, find ultimate entity
26740         and generate the appropriate reference for it, to suppress spurious
26741         warnings.
26742         (Note_Possible_Modification): If an entity name has no entity, return.
26743         (Is_Variable): A function call never denotes a variable.
26744         (Requires_Transient_Scope): For record types, recurse only on
26745         components, not on internal subtypes that may have been generated for
26746         constrained components.
26747
26748 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26749
26750         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
26751         Eliminated as candidates for resolution. Both efficient, and avoids
26752         anomalies with operators declared in deleted code.
26753         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
26754         expansion is disabled (as when compiling a generic) to prevent spurious
26755         warnings on prefixes of selected components.
26756
26757 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26758
26759         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
26760         attached to a list before checking whether it appears in the private
26761         declarations of the current package.
26762         (Make_Inequality_Operator): Insert declaration in proper declarative
26763         list rather than just setting the Parent field, so that
26764         Is_Private_Declaration can handle it properly.
26765
26766 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26767
26768         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
26769         a renaming a body, check that the renamed subprogram in not intrinsic.
26770         (Find_Direct_Name): If several use_visible entities hide
26771         each other, and the context is a predefined file compiled through
26772         rtsfind, keep only the entity that comes from a predefined file.
26773
26774 2005-03-15  Geert Bosch  <bosch@adacore.com>
26775
26776         * s-fatgen.adb (Valid): Extend special exceptions to account for long
26777         long float padding to also cover AMD64 and IA64.
26778
26779 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
26780
26781         * s-imgwch.adb: Add with and use of Interfaces.
26782         (Img_Wide_Character): Change type of Val to Unsigned_16.
26783         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
26784
26785 2005-03-15  Matthew Gingell  <gingell@adacore.com>
26786
26787         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
26788
26789 2005-03-15  Robert Dewar  <dewar@adacore.com>
26790
26791         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
26792
26793         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
26794
26795         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
26796
26797 2005-03-15  Robert Dewar  <dewar@adacore.com>
26798
26799         * s-bitops.adb, s-bitops.ads,
26800         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
26801         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
26802         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
26803         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
26804         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
26805         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
26806         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
26807         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
26808         reformatting.
26809
26810 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26811
26812         * utils2.c (build_binary_op): Fix typo.
26813
26814 2005-03-15  Doug Rupp  <rupp@adacore.com>
26815
26816         * s-crtl.ads (popen,pclose): New imports.
26817
26818 2005-03-15  Cyrille Comar  <comar@adacore.com>
26819
26820         * comperr.adb (Compiler_Abort): remove references to obsolete
26821         procedures in the bug boxes for various GNAT builds.
26822
26823 2005-03-15  Vincent Celier  <celier@adacore.com>
26824
26825         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
26826
26827 2005-03-15  Geert Bosch  <bosch@adacore.com>
26828             Arnaud Charlet  <charlet@adacore.com>
26829             Robert Dewar  <dewar@adacore.com>
26830             Cyrille Comar  <comar@adacore.com>
26831             Sergey Rybin  <rybin@adacore.com>
26832
26833         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
26834         too specific and long-winded to be appropriate for the GNAT User's
26835         Guide.
26836         Warn about use of GCC switches not documented in the GNAT User's Guide,
26837         as these may cause generated code to not conform to Ada semantics.
26838         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
26839         Add documentation for -gnat95 and -gnat05 switches
26840         Remove paragraph documenting obsolete way to refer to third party
26841         libraries.
26842         Add a few references to Ada_05 that were missing.
26843         Update documentation on -gnatZ/-gnatL.
26844         Document limitation when using -m64 under Solaris.
26845         Change the "Name Casing" subsection of the pretty-printer section
26846         according to the changes in the dictionary processing.
26847
26848         * gnat_rm.texi: Document the Ada_05 pragma.
26849         Section on record representation clauses describes the new more
26850         relaxed rules about placement of large packed bit array components.
26851         Add documentation of GNAT.UTF_32
26852
26853 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
26854
26855         * misc.c (gnat_post_options): Turn off structural
26856         aliasing for now.
26857
26858 2005-03-08  Laurent Guerby  <laurent@guerby.net>
26859
26860         * system-linux-sparc.ads: Fix typo in previous commit.
26861
26862 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
26863             Laurent Guerby  <laurent@guerby.net>
26864
26865         PR ada/20035
26866         * system-linux-sparc.ads: New.
26867         * Makefile.in: Add sparc linux entry.
26868
26869 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
26870
26871         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
26872         parameters as unused.
26873
26874 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
26875         Partial merge from libada-gnattools-branch:
26876
26877         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
26878         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
26879         into code in gnattools/Makefile.in.  Remove direct dependencies on
26880         stamp-tools by tools clauses.
26881         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
26882         * config-lang.in: Add gnattools to $lang_dirs.
26883
26884 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
26885
26886         PR ada/19942
26887         * utils.c (gnat_type_for_mode): Return null instead of ICE because
26888         we asked for an unknown mode.
26889
26890 2005-02-12  Richard Henderson  <rth@redhat.com>
26891
26892         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
26893         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
26894
26895 2005-02-10  Andreas Jaeger  <aj@suse.de>
26896
26897         * init.c (__gnat_initialize): Mark parameter as unused.
26898
26899 2005-02-09  Doug Rupp  <rupp@adacore.com>
26900
26901         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
26902         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
26903
26904 2005-02-09  Doug Rupp  <rupp@adacore.com>
26905
26906         * gnatchop.adb (dup, dup2),
26907         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
26908
26909         * gnatlbr.adb (mkdir),
26910         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
26911
26912         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
26913
26914 2005-02-09  Doug Rupp  <rupp@adacore.com>
26915
26916         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
26917
26918 2005-02-09  Robert Dewar  <dewar@adacore.com>
26919             Thomas Quinot  <quinot@adacore.com>
26920             Javier Miranda  <miranda@adacore.com>
26921             Pascal Obry  <obry@adacore.com>
26922             Ed Schonberg  <schonberg@adacore.com>
26923             Doug Rupp  <rupp@adacore.com>
26924             Gary Dismukes  <dismukes@adacore.com>
26925             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26926
26927         * g-zstspl.ads: New file.
26928
26929         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
26930
26931         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
26932         Ada 95 mode
26933         Add definition of Wide_Wide_Space for AI-285
26934
26935         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
26936         interface (to support Ada 95 and Ada 2005 units).
26937         Add Unbounded_IO files
26938         Add entries for Wide_Wide packages for AI-285
26939         Add list of containers packages to Ada 2005 unit list
26940
26941         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
26942         support new Unbounded_IO package cleanly.
26943
26944         * g-utf_32.ads, g-utf_32.adb: New files.
26945
26946         * Makefile.rtl: Add entry for g-utf_32
26947         Add new files for Unbounded_IO
26948         Adjust make file for new AI-285 wide wide packages
26949         Add AI-302 containers to the run time.
26950
26951         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
26952         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
26953         subprograms for AI-301.
26954
26955         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
26956
26957         * a-stunau.ads: Minor comment correction
26958
26959         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
26960         etc.
26961         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
26962         (Check_RPC): Update to match changes in expanded code.
26963         Clean up unused entity.
26964
26965         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
26966         was not taken into account.
26967         This includes proper initialization with Normalize_Scalars.
26968         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
26969         normalize scalars cases (particularly the latter) to do a better job
26970         of finding invalid representations.
26971
26972         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
26973
26974         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
26975         used
26976
26977         * exp_dist.adb: Add support for wide wide character type
26978         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
26979         private part, generate stub bodies at the end of the private part,
26980         not the visible part.
26981         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
26982         PolyORB support.
26983         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
26984         generic wrapper to execute final processing after completing the
26985         expansion of the RPC receiver for an RACW.
26986
26987         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
26988         packages and attributes.
26989         (Preset_Names): Addition of the new reserved words of Ada 2005,
26990         that is interface, overriding and synchronized.
26991         (Get_Pragma_Id): Give support to the use of the new reserved word
26992         "interface" as a pragma name.
26993         (Is_Pragma_Name): Give support to the use of the new reserved word
26994         "interface" as a pragma name.
26995         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
26996         attribute implementation.
26997
26998         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
26999         checks to entities that are output parameters of Asm operations.
27000         Handle the Stream_Size attribute.
27001         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27002
27003         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27004
27005         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27006         for second parameter being 0.0.
27007         Add support for wide wide character type.
27008         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27009
27010         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27011         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27012         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27013         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27014         for wide wide character cases.
27015
27016         * cstand.adb: Create entities for Wide_Wide_Character and
27017         Wide_Wide_String.
27018
27019         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27020         accordance with AI-258.
27021         Add new declarations for 16/32 bit C character types (Part of AI285)
27022
27023         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27024         (Obsolescent_Warning): New field
27025         (Rep_Clause): New local subprogram used to share code. Returns the rep
27026         clause for which the name is given in parameter.
27027         (Has_Stream_Size_Clause): New routine.
27028         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27029         (Address_Clause): Implementation is now using Rep_Clause.
27030         (Alignment_Clause): Idem.
27031         (Size_Clause): Idem.
27032
27033         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27034         entity in non-Ada 2005 mode and generate warning.
27035
27036         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27037         (Prag): Code cleanup. Remove old gnat pragma "overriding"
27038
27039         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27040         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27041         on the named unit if the pragma is not in the current compilation unit,
27042         so that elaboration calls in the current unit can set up an elaboration
27043         dependency on the named unit, as needed.
27044         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27045         subprogram as well as for subprograms declared within a package.
27046         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27047         pragma overriding.
27048
27049         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27050         to z) to avoid some instances of duplication for Wide_Wide packages.
27051
27052         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27053         characters.
27054
27055         * scn.adb: Char_Literal_Value field is now a Uint
27056
27057         * scng.adb: Significant rewrite to handle new Ada 2005 features
27058         allowing wide and wide wide characters in program text, e.g. for
27059         identifiers, as described in AI-285.
27060         (Set_Reserved): New procedure, makes setting up keywords cleaner.
27061         (Initialize_Scanner): Register the new reserved words of Ada 2005.
27062         (Scan): Give support to the new reserved words.
27063
27064         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
27065         warning notifying that interface, overriding, and synchronized are
27066         new reserved words.
27067         (P_Pragma): Allow the use of the new reserved word "interface" as
27068         a pragma name.
27069
27070         * gnatls.adb, gnatbind.adb,
27071         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
27072         identifiers named "interface" to "SAL_Interface".
27073
27074         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
27075         (Structured Exception handling).
27076         (Gen_Main_C): Idem.
27077
27078         * bindgen.adb:
27079         (Gen_Main_Ada): Set the default exit code if specified.
27080         (Gen_Main_C): Likewise.
27081         Part of *DC20-006.
27082         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
27083         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
27084
27085         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
27086         new -Xnnn switch.
27087
27088         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
27089         has a collision with the new Ada 2005 "interface" reserved word.
27090
27091         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
27092         generate a warning notifying that interface, overriding, and
27093         synchronized are new reserved words.
27094
27095         * scans.ads (Token_Type): Addition of the tokens corresponding to the
27096         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
27097         and Tok_Synchronized.
27098
27099         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
27100         "dispatching" rather than "primitive" operations, since dispatching
27101         calls are now allowed to abstract formal subprograms (which are not
27102         primitive).
27103         Char_Literal_Value field is now a Uint
27104         (Resolve_Slice): If the prefix is an access to an unconstrained array,
27105         compute the actual subtype of the designated object to impose the proper
27106         index constraints.
27107         (Resolve_Selected_Component): Do not insert an access check if the
27108         prefix is an access type: such a node is expanded into an explicit
27109         dereference, on which the access check is performed anyway. Removes
27110         expensive duplicate checks.
27111         (Resolve_Call): Use new flag Is_Obsolescent and field
27112         Obsolescent_Warning so that pragma Obsolescent works on library
27113         subprograms.
27114         Add support for wide wide character type
27115         (Resolve_Allocator): Replace the error message on wrong null-exclusion
27116         value by a warning message.
27117         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
27118         as fixed-point, and one of the operands is non-static and universal, it
27119         can only be an illegal exponentiation operation, in which case there is
27120         no real value to retrieve.
27121
27122         * exp_strm.adb: Add support for wide wide character type
27123         (Build_Elementary_Input_Call): Compute the size of the stream element by
27124         querying the rep chain to find the Stream_Attribute attribute value.
27125         (Build_Elementary_Write_Call): Ditto.
27126
27127         * sem_aggr.adb: Char_Literal_Value field is now a Uint
27128         Add support for wide wide character type
27129         Replace the error messages on wrong null-exclusion value by warnings
27130         as described in Ada 2005.
27131         (Resolve_Extension_Aggregate): Document the fact that the error
27132         message on class-wide expressions in extensions aggregates.
27133
27134         * sem_case.adb: Add support for wide wide character type
27135
27136         * sem_ch13.adb: Add support for wide wide character type
27137         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
27138
27139         * sem_ch3.adb: Add support for wide wide character type
27140         (Process_Subtype): If constraint is illegal for the type, set Ekind of
27141         now-useless Itype, to prevent cascaded errors on a compiler built
27142         without -gnatp.
27143
27144         * sem_ch8.adb: Add with and use of Sem_Disp.
27145         (Analyze_Subprogram_Renaming): Replace unclean uses of
27146         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
27147         of Corresponding_Spec to Empty).
27148         (Attribute_Renaming): Replace use of Corresponding_Spec with
27149         Corresponding_ Formal_Spec and simplify condition.
27150         (Use_One_Package): Check that scope of homonym of identifier is defined,
27151         before checking whether it is a wrapper package.
27152         Add support for wide wide character type
27153
27154         * sem_eval.adb: Add support for wide wide character type.
27155         (Eval_Arithmetic_Op): Check for compile time known signed integer
27156         overflow in the non-static case.
27157         (Subtypes_Statically_Match): A formal scalar type and its base type do
27158         not statically match.
27159
27160         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
27161         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
27162         subtype).
27163         (Unit_Declaration_Node): Ditto.
27164         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
27165         has a packed array type, the prefix has been rewritten into a type
27166         conversion. Determine variable-ness from the converted expression.
27167         Handle wide wide character cases.
27168
27169         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
27170
27171         * stringt.ads, stringt.adb: Handle full UTF-32 range.
27172         Remove ["0A"] from comment, since it can look like a line terminator.
27173         Currently we don't permit this, but this is under discussion by the
27174         ARG, and it is easy enough to use a different example.
27175
27176         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
27177         handling UTF-32 encoding for wide wide character.
27178         Implement new brackets coding ["hhhhhhhh"]
27179         Add UTF-8 encodings for full UTF-32 range
27180
27181         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
27182
27183         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
27184         bit range Add full UTF-32 support.
27185         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
27186         notify that constraint error will be raised at run-time
27187         because a null value is assigned to a null-excluding object.
27188         Remove some obsolete declarations and make Char_Code
27189         unsigned.
27190
27191         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
27192         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
27193         Rcheck subprograms.
27194
27195         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
27196         wrong null-exclusion value by a warning message.
27197         (Enable_Range_Check): Do range check if the prefix is an
27198         explicit dereference whose designated object is an unconstrained array.
27199         Current algorithm for removing duplicate checks is over-eager in this
27200         case.
27201
27202         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
27203         null-exclusion value by a warning message
27204
27205         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
27206         completely. Add support for Uint2 field
27207
27208         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
27209         exp_prag.adb: Char_Literal_Value field is now a Uint.
27210
27211         * exp_util.adb (Insert_Actions): Replace
27212         N_Formal_Subprogram_Declaration by
27213         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
27214         Char_Literal_Value field is now a Uint.
27215
27216         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
27217         defined for subprogram renaming declarations. When set, the field
27218         indicates the defining entity of a corresponding formal subprogram
27219         when the renaming corresponds to a formal subprogram association in an
27220         instantiation.
27221         (Set_Corresponding_Formal_Spec): New procedure to return
27222         Corresponding_Formal_Spec field.
27223         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
27224         (which is now a subtype).
27225         Char_Literal_Value field is now a Uint
27226
27227         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
27228         pointer to the base of the dispatch table.
27229         Minor changes to comments.
27230         (Controlling_Type): New function for determining the tagged type
27231         associated with a tagged primitive subprogram.
27232         (Expand_Dispatching_Call): Add support for a controlling actual that is
27233         directly a value of type Ada.Tag rather than a tagged object.
27234
27235         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
27236         describing the new layout.
27237         (Dispatch_Table): The expander computes the actual array size, allocates
27238         the Dispatch_Table record accordingly, and generates code that displaces
27239         the base of the record after the Typeinfo_Ptr component. The access to
27240         these components is done by means of local functions.
27241         (Offset_To_Top): New function.
27242         (Typeinfo_Ptr): New function.
27243         (Get_TSD): Modified to access the new position of the TSD.
27244         (Set_TSD): Modified to save the TSD in its new position.
27245
27246         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
27247         case of formal abstract subprograms. Add check and message for -gnat05.
27248         Update comments.
27249
27250         * sem_ch12.adb: Add with and use for Sem_Disp.
27251         (Analyze_Associations): Minor change from "=" to "in" for use of
27252         N_Formal_Subtype_Declaration (which is now a subtype).
27253         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
27254         N_Formal_Subtype_Declaration (which is now a subtype).
27255         (Analyze_Formal_Subprogram): Add handling for
27256         N_Formal_Abstract_Subprogram, marking the formal as abstract and
27257         dispatching, setting the controlling status of the formal parameters
27258         and result, and issuing an error if there is no controlling type for
27259         the formal subprogram.
27260         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
27261         which is an unclean use of that field, we set the new field
27262         Corresponding_Formal_Spec to make the formal subprogram available to
27263         processing in Analyze_Subprogram_Declaration.
27264         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
27265         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
27266         Constrained, so that it is is does not statically match its anonymous
27267         base type.
27268
27269         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
27270         abstract formal subprograms in error check for functions returning
27271         abstract types. Set scope of new designator for
27272         a parameterless subprogram, so that it is available when checking the
27273         body for nested subprograms, before full analysis of said body.
27274         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
27275         subprogram only if inner one comes from source.
27276         (Analyze_Function_Call): If the call is given in object notation, the
27277         analysis of the name rewrites the node and analyzes it with the proper
27278         argument list. After analyzing the name, if the call has been rewritten
27279         and the result type is set, no further analysis is needed.
27280         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
27281         mark in function specification, in a context where the formals are
27282         visible and hide outer homographs.
27283
27284         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
27285         as the tagged type for the cases of abstract formal subprograms and
27286         renamings of those.  Clean up spec comments.
27287         (Check_Dispatching_Context): Add error message to indicate "abstract
27288         procedure", covering the case of a call to a formal abstract procedure
27289         that has statically tagged operands.
27290         (Check_Dispatching_Call): Check for the case of an actual given by
27291         a tag-indeterminate function call whose type is an ancestor of the
27292         containing call's associated tagged type. This situation can occur
27293         for inherited primitives with function defaults. In this case we
27294         use the tagged type's tag directly as the controlling argument for
27295         the calls.
27296         (Expand_Call): Name change on call to Expand_Dispatch_Call.
27297
27298         * sprint.adb (Sprint_Node_Actual): Split
27299         N_Formal_Subprogram_Declaration into two alternatives for the new
27300         cases N_Formal_Abstract_Subprogram_Declaration and
27301         N_Formal_Concrete_Subprogram_Declaration.
27302         Char_Literal_Value field is now a Uint.
27303
27304         * trans.c: Get rid of junk Uint2 reference.
27305         Char_Literal_Value field is now a Uint.
27306         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
27307         (gigi): Correct third arg to gimplify_body.
27308
27309         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
27310         (TYPE_LANG_FLAG_0): Check for record or union.
27311
27312         * treepr.adb: Char_Literal_Value field is now a Uint
27313
27314         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
27315         UI_From_CC.
27316
27317         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
27318         Add full UTF-32 support
27319         Char_Code is now 32 bits
27320
27321         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
27322         wide character UTF_32 line terminators.
27323         Initialize Main_Source_File to avoid error when no main
27324         source is loaded.
27325
27326         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
27327         (Main_Source_File) when no main source has been loaded, to avoid
27328         potential crash.
27329
27330 2005-02-09  Robert Dewar  <dewar@adacore.com>
27331
27332         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
27333         Fix name of Set routine
27334
27335         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
27336         fixed packages.
27337
27338         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
27339         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
27340         fixed packages
27341
27342         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
27343         forms of Get_Line subprograms for AI-301.
27344
27345         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
27346         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
27347         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
27348         a-stwima.ads: Minor reformatting.
27349
27350 2005-02-09  Doug Rupp  <rupp@adacore.com>
27351             Thomas Quinot  <quinot@adacore.com>
27352
27353         * adaint.c, adaint.h
27354         [VMS] (to_ptr32): New function.
27355         (MAYBE_TO_PTR32): New macro.
27356         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
27357         for pointer size.
27358         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
27359         [VMS] (#define fork()): Remove since unneccessary.
27360         (__gnat_set_close_on_exec): New routine to support
27361         GNAT.OS_Lib.Set_Close_On_Exec.
27362
27363         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
27364         the parent side as close-on-exec so that they are not inherited by the
27365         child.
27366
27367         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
27368         set or clear the FD_CLOEXEC flag on a file descriptor.
27369
27370 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
27371             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27372
27373         PR ada/19386
27374         * decl.c:
27375         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
27376         on the field if Pragma Component_Alignment (Storage_Unit).
27377         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
27378         side-effects as if it were a constant; also make SAVE_EXPR to protect
27379         side-effects.
27380         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
27381         UNION_TYPE.
27382         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
27383         (components_to_record): Test it.
27384         Fix improper usage of REFERENCE_CLASS_P.
27385
27386         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
27387         RECORD_TYPE.
27388
27389         * utils2.c: Minor reformatting.
27390
27391         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
27392         handle other cases like RECORD_TYPE.
27393
27394         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
27395
27396 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27397
27398         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
27399         component of an array of arrays in an assignment context, and the
27400         aggregate has component associations that require sliding on
27401         assignment, force reanalysis of the aggregate to generate a temporary
27402         before the assignment.
27403         (Must_Slide): Make global to the package, for use in Gen_Assign.
27404
27405 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27406
27407         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
27408         unchecked union with no inferable discriminants, return a
27409         Raise_Program_Error node, rather than inserting it at the point the
27410         type is frozen.
27411         (Expand_Record_Equality, Component_Equality): Handle properly the case
27412         where some subcomponent is an unchecked union whose generated equality
27413         code raises program error.
27414
27415 2005-02-09  Doug Rupp  <rupp@adacore.com>
27416
27417         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
27418         [VMS] (#define exit hack): Remove.
27419
27420 2005-02-09  Pascal Obry  <obry@adacore.com>
27421             Arnaud Charlet  <charlet@adacore.com>
27422
27423         * init.c (__gnat_initialize): Add a new parameter eh which contains the
27424         address of the exception registration. The Win32 version of this
27425         routine calls __gnat_install_SEH_handler() to initialize the SEH
27426         (Structured Exception Handling) handler.
27427         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
27428         SEH (Structured Exception Handling) now.
27429         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
27430         (__gnat_initialize for ppc-vxworks): Adjust comments and the
27431         preprocessor condition protecting the call to the extra eh setup
27432         subprogram, which is only available for the ppc target.
27433         (__gnat_clear_exception_count): replaced reference to
27434         variable taskIdCurrent by call to taskIdSelf(), cleaner.
27435
27436         * seh_init.c: New file.
27437
27438         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
27439         (GNATBIND_OBJS): Idem.
27440
27441         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
27442         routine takes a new parameter (a pointer to the exception registration
27443         for the SEH (Structured Exception Handling) support.
27444
27445         * raise.h: (__gnat_install_SEH_handler): New prototype.
27446         Update copyright notice.
27447
27448         * s-tassta.adb (Task_Wrapper): Declare the exception registration
27449         record and initialize it by calling __gnat_install_SEH_handler.
27450
27451 2005-02-09  Vincent Celier  <celier@adacore.com>
27452
27453         * make.adb (Gnatmake): Do not fail when the main project has no object
27454         directory.
27455
27456 2005-02-09  Doug Rupp  <rupp@adacore.com>
27457
27458         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
27459         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
27460         [VMS]: Add translations for g-enblsp.adb.
27461
27462         * s-asthan-vms.adb: Removed.
27463         * s-asthan-vms-alpha.adb: Added.
27464
27465 2005-02-09  Pascal Obry  <obry@adacore.com>
27466
27467         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
27468         (LIBGNAT_OBJS): Add seh_init.o.
27469
27470 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27471
27472         PR ada/16592
27473         * Makefile.in: Link all gnat tools with -static-libgcc, since
27474         -shared-libgcc is now used by default on some systems (e.g. linux with
27475         recent binutils).
27476         Remove references to Makefile.prolog/generic, no longer used.
27477
27478 2005-02-09  Vincent Celier  <celier@adacore.com>
27479
27480         * prj-makr.adb (Process_Directory): Put file name in canonical case
27481         before matching against the patterns.
27482         If gnatname has been invoked as <prefix>-gnatname
27483         then invoke the compiler as <prefix>-gcc, not just "gcc".
27484
27485 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27486
27487         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
27488         with expansion disabled. The actual subtype is needed among other
27489         places when the selected component appears in the context of a loop
27490         bound, and denotes a packed array.
27491         (Operator_Check): Always use the first subtype in the
27492         error message, to avoid the appearance of internal base types.
27493         (Transform_Object_Operation): Copy each actual in full
27494         to the parameter associations of the constructed call, rather than
27495         using the shallow copy mechanism of New_Copy_List. This ensures that
27496         the chaining of named associations is done properly.
27497         (Complete_Object_Operation): Rewrite node, rather than
27498         replacing it, so that we can trace back to the original selected
27499         component.
27500
27501         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
27502         and calls that use object notation, if the called function is not
27503         declared  in a withed unit, place the elaboration constraint on the
27504         unit in the context that makes the function accessible.
27505         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
27506         imposes an elaboration constraint between two packages.
27507
27508 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27509
27510         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
27511         views of a private type after handling its private dependents, to
27512         maintain proper stack discipline between entry and exit from the
27513         package.
27514
27515 2005-02-09  Cyrille Comar  <comar@adacore.com>
27516
27517         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
27518         Minor reformatting.
27519
27520 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27521
27522         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
27523         fields for foreign threads.
27524
27525 2005-02-09  Doug Rupp  <rupp@adacore.com>
27526
27527         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
27528         recursion warnings when compiled with -gnatdm.
27529
27530 2005-02-09  Robert Dewar  <dewar@adacore.com>
27531
27532         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
27533         Slight fix to documentation of -gnaty with no parameters
27534
27535         * xr_tabls.ads: Add ??? comment for missing overall comment
27536
27537         * xsinfo.adb: Make default file name be sinfo.h, since this is what
27538         we now use by default.
27539
27540         * xsnames.adb: Adjust end of file test to look for five space followed
27541         by '#' instead of six spaces. The format of xsnames.adb was modified
27542         in the last update.
27543
27544         * a-numeri.ads: Add reference to AI-388 for greek letter pi
27545         identifier.
27546
27547         * clean.adb: Minor reformatting.
27548
27549         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
27550         gnatname.adb: Minor reformatting
27551         Add 2005 to copyright output when utility is run
27552
27553         * csets.adb: Eliminate obsolete comment
27554
27555         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
27556         Update comments.
27557
27558         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
27559
27560 2005-02-09  Sergey Rybin  <rybin@adacore.com>
27561
27562         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
27563         the difference between compact and incompact layout and add the record
27564         representation clause to the example illustrating different layouts.
27565         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
27566         component clauses").
27567
27568 2005-02-09  Florian Villoing  <villoing@adacore.com>
27569
27570         * gnat_ugn.texi: Fix typos.
27571         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
27572         @file.
27573         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
27574         in the generated documentation.
27575
27576 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27577
27578         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
27579         longer supported.
27580         Update linker wrapper when linking with non GNU C++.
27581
27582 2005-02-09  Pascal Obry  <obry@adacore.com>
27583
27584         * gnat_ugn.texi:
27585         Document the procedure to debug the DllMain routine on Windows.
27586         Add note about -funwind-tables and mixed Ada and C/C++ programming in
27587         ZCX mode.
27588         Document new BIND qualifer /RETURN_CODES=VMS.
27589
27590 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
27591
27592         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
27593         Edited gnatmetric chapter
27594
27595 2005-02-09  Robert Dewar  <dewar@adacore.com>
27596
27597         * gnat_rm.texi:
27598         Changes to document new wide wide character support
27599         For AI-285
27600         Update documentation on Normalize_Scalars and Initialize_Scalars
27601
27602 2005-02-09  Pascal Obry  <obry@adacore.com>
27603
27604         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
27605
27606 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
27607
27608         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
27609         from the VxWorks kernel) that is needed for getting the active
27610         priority of the different tasks.
27611
27612         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
27613         Use a pragma Elaborate_Body in the spec file instead.
27614         Noticed by code reading.
27615
27616 2005-02-09  Thomas Quinot  <quinot@adacore.com>
27617
27618         * exp_util.ads: Minor correction in comment.
27619
27620 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27621
27622         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
27623         since this procedure is now too complex to be worth inlining.
27624
27625 2005-02-09  Richard Henderson  <rth@redhat.com>
27626
27627         * utils.c (gnat_define_builtin): Remove.
27628         (gnat_install_builtins): Use build_common_builtin_nodes.
27629
27630 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27631
27632         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
27633         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
27634         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
27635         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
27636         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
27637         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
27638         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
27639         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
27640         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
27641         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
27642         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
27643         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
27644         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
27645         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
27646         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
27647         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
27648         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
27649         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
27650         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
27651         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
27652         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
27653         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
27654         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
27655         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
27656         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
27657         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
27658         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
27659         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
27660         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
27661         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
27662         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
27663         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
27664         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
27665         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
27666         library.
27667
27668 2005-01-27  Laurent Guerby  <laurent@guerby.net>
27669
27670         * Makefile.in: Fix a-intnam.ads from previous commit,
27671         add 2005 to copyright.
27672         * a-intman-rtems.ads: Renamed to...
27673         * a-intnam-rtems.ads:
27674
27675 2005-01-27  Laurent Guerby  <laurent@guerby.net>
27676
27677         * Makefile.in: Rename GNAT RTEMS specific files.
27678         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
27679         5rosinte.ads, 5rparame.adb: Replaced by files below.
27680         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
27681         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
27682
27683 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
27684             Laurent Guerby  <laurent@guerby.net>
27685
27686         PR ada/19488
27687         * 5rosinte.ads: Add No_Key constant.
27688         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
27689         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
27690
27691 2005-01-26  Laurent Guerby  <laurent@guerby.net>
27692
27693         PR ada/19414
27694         * i-cobol.adb (Valid_Numeric): Handle zero length case.
27695
27696 2005-01-20  Richard Henderson  <rth@redhat.com>
27697
27698         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
27699         a-intnam-linux.ads and system-linux-alpha.ads.
27700         * a-intnam-linux-alpha.ads: Remove file.
27701         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
27702         * system-linux-alpha.ads: New file.
27703
27704 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
27705
27706         PR ada/13470
27707         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
27708         set to the new string.
27709
27710 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
27711
27712         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
27713         to True.
27714
27715 2005-01-18  Richard Henderson  <rth@redhat.com>
27716
27717         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
27718         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
27719         for alpha-linux.
27720         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
27721
27722 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
27723
27724         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
27725         (GCC_ZCX_Support): Likewise.
27726
27727 2005-01-11  Bastian Blank  <waldi@debian.org>
27728
27729         * system-linux-s390.ads: Define Preallocated_Stacks.
27730         * system-linux-s390x.ads: Likewise.
27731
27732 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
27733
27734         * gnat_ugn.texi: Fix texi errors with null variables.
27735
27736 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27737
27738         * gen-soccon.c: New utility program to generate g-soccon.ads
27739         automatically.
27740
27741         * socket.c, gsocket.h: Split inclusion of system header files into a
27742         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
27743
27744         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
27745         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27746         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
27747         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27748         should not be edited by hand anymore, but should be regenerated using
27749         gen-soccon.
27750
27751 2005-01-03  Robert Dewar  <dewar@adacore.com>
27752             Ed Schonberg  <schonberg@adacore.com>
27753             Vincent Celier  <celier@adacore.com>
27754
27755         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
27756         on/off, since this is an obsolescent feature, for which we now generate
27757         a warning.
27758
27759         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
27760         warning mode is set and obsolescent usage of this attribute occurs.
27761         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
27762         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
27763         predates, and partly motivates, the adoption of the AI.
27764         Implement new Ada 2005 attribute Mod
27765
27766         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
27767         attribute Mod.
27768
27769         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
27770
27771         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
27772         pragma restrictions.
27773         New entry for Ada 2005 attribute Mod.
27774
27775         * par-prag.adb:
27776         Add recognition of new pragma Restrictions No_Dependence
27777         Recognize restriction No_Obsolescent_Features at parse time
27778
27779         * bcheck.adb: Add circuitry for checking for consistency of
27780         No_Dependence restrictions.
27781
27782         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
27783         restrictions.
27784
27785         * restrict.ads, restrict.adb: Add subprograms to deal with
27786         No_Dependence restrictions.
27787
27788         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
27789         restrictions.
27790
27791         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
27792         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
27793
27794         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
27795         dummy parameter to scng instantiation.
27796         Needed for new restriction No_Obsolescent_Features
27797
27798         * scn.adb: (Obsolescent_Check): New procedure
27799         Needed for new restriction No_Obsolescent_Features
27800
27801         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
27802         specified by AI-285, needed for implementation of AI-388 (adding greek
27803         pi to Ada.Numerics).
27804         Add new generic formal to scng, needed for new restriction
27805         No_Obsolescent_Features.
27806
27807         * s-rident.ads: Add new restriction No_Obsolescent_Features.
27808
27809         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
27810         restrictions lines.
27811         (Scan_ALI): When finding an unexpected character on an R line, raise
27812         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
27813         Ignore_Errors is True, default restrictions are set and scanning of the
27814         ALI file continues with the next line. Also, when Bad_R_Line is raised
27815         and Ignore_Errors is True, skip to the end of le line.
27816
27817         * sem_ch10.adb: Check that explicit with's do not violate
27818         No_Dependence restrictions.
27819         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
27820         illegal context clauses containing child units of instance.
27821
27822         * sem_prag.adb: Processing and checking for new No_Dependence
27823         restrictions.
27824         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
27825         analyze and check the External argument.
27826
27827         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
27828
27829 2005-01-03  Robert Dewar  <dewar@adacore.com>
27830
27831         * atree.adb: Add a fifth component to entities
27832         This allows us to add 32 flags and four new fields
27833
27834         * atree.ads: Add a fifth component to entities
27835         This allows us to add 32 flags and four new fields
27836
27837         * einfo.ads, einfo.adb: Document new fields and new flags now available
27838         Add routines for printing new fields
27839
27840         * treepr.adb: Call routines to print out additional fields if present
27841
27842 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27843
27844         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
27845         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
27846
27847         * Makefile.in: Add support to build shared Ada libraries on solaris x86
27848         Remove gpr2make, replaced by gprmake.
27849         Remove references to gnatmem and libaddr2line.
27850         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
27851         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
27852         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
27853         a-numaux-darwin.ads and a-numaux-darwin.adb
27854         Enable mlib-tgt-lynxos.adb on lynxos.
27855
27856         * Make-lang.in: Remove rules for gpr2make.
27857         When generating sdefault.adb, do not call Relocate_Path
27858         on S3 for function Target_Name, as it is not a path.
27859         Remove references to gnatmem and libaddr2line.
27860
27861         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
27862         files.
27863
27864 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
27865
27866         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
27867         address is incompatible with its base type alignment constraints when
27868         this can be decided statically.
27869
27870 2005-01-03  Olivier Hainque  <hainque@adacore.com>
27871
27872         * decl.c (compatible_signatures_p): New function. The intended purpose
27873         is to check if two function signatures for a call-site and a callee are
27874         compatible enough for the call to be valid. The underlying purpose is
27875         to check if a call to a mapped builtin is using the right interface.
27876         The current code actually does not check antyhing - this a placeholder
27877         for future refinements.
27878         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
27879         builtin calls for convention Intrinsic.
27880
27881         * gigi.h (builtin_decl_for): Declare (new function).
27882
27883         * utils.c (gnat_install_builtins): Install the target specific builtins.
27884         (builtin_decl_for): New function, provide a dummy body for now.
27885
27886 2005-01-03  Geert Bosch  <bosch@adacore.com>
27887
27888         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
27889         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27890         (Pred): Implement in terms of Succ.
27891
27892         * trans.c (convert_with_check): Reimplement conversion of float to
27893         integer.
27894
27895 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27896             Vincent Celier  <celier@adacore.com>
27897
27898         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
27899         bounds can be negative, and must be declared Int, not Nat.
27900
27901         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
27902         array is checked after using the index in the array.
27903
27904         * makegpr.adb (Add_Switches): Check if there is a package for the
27905         processor. If there is no package, do not look for switches.
27906
27907 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27908
27909         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
27910         generation of predefined stream operations (specs and bodies) should
27911         proceed. Under various restrictions these subprograms must not be
27912         generated.
27913
27914 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27915
27916         * exp_dist.adb:
27917         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
27918         amount of PCS-specific code in RACW stubs generation.
27919         (Copy_Specification): Set Etype on copied formal parameter entities, as
27920         this information is needed for PolyORB stubs generation.
27921         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
27922         variable Dynamic_Async.
27923         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
27924         (Build_RPC_Receiver_Specification): Make generic again, as recent
27925         changes have allowed RPC receivers to have the same profile for both
27926         variants of the PCS.
27927         Reorganise RPC receiver generation to reduce differences between the
27928         structure of GARLIC and PolyORB RPC receivers.
27929         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
27930         PCS-specific.
27931         Simplify elaboration code for RCI packages.
27932
27933         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
27934         generation to reduce differences between the structure of GARLIC and
27935         PolyORB RPC receivers.
27936
27937         * s-stratt.adb: Fix typo in comment.
27938
27939 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27940
27941         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
27942         copied from Make_Init_Call).
27943
27944         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
27945         reads and assignments on a temporary variable declared with appropriate
27946         discriminants.
27947
27948 2005-01-03  Robert Dewar  <dewar@adacore.com>
27949
27950         * i-c.adb (To_C): Raise CE if string is null and Append_Null
27951
27952 2005-01-03  Robert Dewar  <dewar@adacore.com>
27953
27954         * i-cstrin.adb (Update): Do not append a null in form called with a
27955         String. This avoids unintended behavior.
27956
27957 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27958
27959         PR ada/17527
27960         * init.c: Fix warnings on Free BSD section.
27961
27962 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27963
27964         PR ada/16949
27965         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
27966         xsinfo.adb).
27967
27968 2005-01-03  Vincent Celier  <celier@adacore.com>
27969
27970         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
27971         libraries when Unique_Compile is True (-u switch).
27972         (Gnatmake): ditto.
27973
27974 2005-01-03  Robert Dewar  <dewar@adacore.com>
27975
27976         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
27977         upper case letter or underscore after W, as allowed by spec.
27978
27979 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27980
27981         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
27982         darwin port by using proper type definitions from header files.
27983         Use SIGTERM instead of SIGABRT for SIGADAABORT.
27984
27985 2005-01-03  Robert Dewar  <dewar@adacore.com>
27986
27987         * par.adb: Enhance error message handling for configuration file
27988         pragmas.
27989
27990 2005-01-03  Robert Dewar  <dewar@adacore.com>
27991
27992         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
27993         removed during the previous update (test properly for case of dividing
27994         largest negative number by -1, which generates overflow).
27995
27996 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27997             Sergey Rybin  <rybin@adacore.com>
27998
27999         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28000         to use as the defining identifier for a formal package.
28001         (Remove_Parent): If the instance takes place within (an instance of)
28002         a sibling, preserve private declarations of common parent.
28003
28004 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28005
28006         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28007         to determine whether one of the operands is a fixed-point type for
28008         which a user-defined multiplication or division operation might be
28009         defined.
28010
28011         * sem_res.adb (Valid_Conversion): The legality rules for conversions
28012         of access types are symmetric in Ada 2005: either designated type can
28013         be unconstrained.
28014
28015 2005-01-03  Vincent Celier  <celier@adacore.com>
28016
28017         * s-fileio.adb (Temp_File_Record): Change length of string component
28018         Name from L_tmpnam + 1 to max_path_len + 1.
28019
28020 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
28021
28022         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28023         Self_Id.Deferral_Level = 0.
28024         (Do_Pending_Action): Move this function to the spec.
28025
28026         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28027         Do_Pending_Action explicitely when needed, in case we're using
28028         No_Abort restrictions.
28029
28030         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28031         deferral level since it will not get changed by the generated code.
28032         Keeping a default value of 1 would prevent some operations (e.g.
28033         select or delay) to proceed successfully.
28034
28035 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
28036             Robert Dewar  <dewar@adacore.com>
28037             Cyrille Comar  <comar@adacore.com>
28038
28039         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28040         porting guide chapter (vms version).
28041         Revised doc title (removed "for native platforms") and subtitle.
28042         Add discussion on warning flag for obsolescent features. First we
28043         note that it applies to obsolete GNAT features, which was previously
28044         omitted. Second we contrast the behavior with that of the new
28045         Ada 2005 AI-368 restriction No_Obsolescent_Features.
28046         Preliminary rewriting of GNAT & libraries chapter in order to take
28047         into account default project locations & new project manager
28048         capabilities.
28049
28050 2005-01-03  Robert Dewar  <dewar@adacore.com>
28051
28052         * cstand.adb (Create_Operators): Clean up format and documentation of
28053         unary and binary operator result tables. No change in code, just
28054         reformatting and addition of comments.
28055
28056         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28057         sem_ch2.adb: Minor reformatting
28058
28059         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
28060         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
28061         comments for Tree_Read and Tree_Write.
28062
28063 2005-01-03  Pascal Obry  <obry@adacore.com>
28064
28065         * exp_attr.ads: Minor reformatting.
28066
28067 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
28068
28069         * comperr.adb (Compiler_Abort): Add specialized message for GAP
28070         versions.
28071
28072 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
28073
28074         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
28075         whether the ancestor type is private, as may be the case with nested
28076         instantiations.
28077
28078 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
28079
28080         PR ada/19128
28081         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
28082
28083 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
28084
28085         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
28086         * utils2.c (build_unary_op): Likewise.
28087
28088 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28089
28090         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
28091
28092 2004-12-19  Richard Henderson  <rth@redhat.com>
28093
28094         * trans.c (gigi): Update gimplify_body call.
28095
28096 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
28097
28098         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
28099
28100 2004-12-07  Ed Falis  <falis@adacore.com>
28101
28102         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
28103         current task being suspended.
28104
28105         * init.c (__gnat_clear_exception): added to reset VxWorks exception
28106         count.
28107         (__gnat_map_signal): removed test for current task being suspended.
28108
28109 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28110
28111         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
28112         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
28113         targets (such as AAMP).
28114
28115 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28116
28117         * atree.adb (Visit_Itype): Create a new name for the generated itype,
28118         because the back-end may otherwise treat it as a redefinition of the
28119         old symbol.
28120
28121 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
28122
28123         * back_end.adb (Scan_Back_End_Switches): Accept --param.
28124
28125         * lang-specs.h: Accept --param.
28126
28127 2004-12-07  Vincent Celier  <celier@adacore.com>
28128
28129         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
28130         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
28131         Current_Body_Suffix => Ada_Body_Suffix).
28132         Take into account Externally_Built attribute.
28133
28134         * clean.adb (In_Extension_Chain): Always return False when one of the
28135         parameter is No_Project.
28136         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
28137         Ada_Language_Index).
28138         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
28139         Process_Languages for procedure Parse).
28140
28141         * gnatcmd.adb (Carg_Switches): New table.
28142         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
28143         Adapt to name changes in package Prj (Current_Spec_Suffix =>
28144         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
28145
28146         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
28147         Header_Num and function Hash are now declared in package Prj,
28148         not Prj.Com.
28149
28150         * prj.adb (Suffix_Of): New function.
28151         (Set (Suffix)): New procedure.
28152         (Hash): One function moved from Prj.Com
28153         (Is_Present, Language_Processing_Data_Of): New functions
28154         (Set): Two new procedures
28155         (Add_Language_Name, Display_Language_Name): New procedures
28156
28157         * prj.ads: (Suffix_Of): New function
28158         (Set (Suffix)): New procedure
28159         Add several types and tables for multi-language support.
28160         (Header_Num): Type moved from Prj.Com
28161         (Hash): Two functions moved from Prj.Com
28162         (Is_Present, Language_Processing_Data_Of): New functions
28163         (Set): Two new procedures
28164         (Add_Language_Name, Display_Language_Name): New procedures
28165         (Naming): Component name changes:
28166         Current_Spec_Suffix => Ada_Spec_Suffix,
28167         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
28168         Impl_Suffixes, Supp_Suffixes.
28169         (Project_Data): New components: Externally_Built, Supp_Languages,
28170         First_Language_Processing, Supp_Language_Processing, Default_Linker,
28171         Default_Linker_Path.
28172
28173         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
28174         new package Language_Processing with its attributes (Compiler_Driver,
28175         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
28176         Binder_Driver, Default_Linker).
28177
28178         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
28179         (Header_Num): Type moved to package Prj
28180
28181         * prj-env.adb: Adapt to name changes in package Prj
28182         (Current_Spec_Suffix => Ada_Spec_Suffix,
28183         Current_Body_Suffix => Ada_Body_Suffix).
28184
28185         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
28186         default to the project path, except the "-" is one of the directories
28187         in env var ADA_PROJECT_PATH.
28188         (Current_Project_Path): Global variable, replacing Project_Path
28189         that was in the body of Prj.Part.
28190         (Project_Path): New function
28191         (Set_Project_Path): New procedure
28192         Initialize Current_Project_Path during elaboration of the package
28193         Remove dependency on Prj.Com, no longer needed
28194
28195         * prj-ext.ads (Project_Path): New function
28196         (Set_Project_Path): New procedure
28197
28198         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
28199         suffix is defined for language <lang>.
28200         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
28201         accessing directly the components of Naming.
28202         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
28203         Reorganise of this package.
28204         Break procedure Check in several procedures.
28205
28206         * prj-nmsc.ads: Replace all procedures (Ada_Check,
28207         Other_Languages_Check and Language_Independent_Check) with a single
28208         procedure Check.
28209
28210         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
28211         Process_Languages, no longer needed.
28212
28213         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
28214         Current_Project_Path.
28215         Remove elaboration code, moved to the body of Prj.Ext
28216         Use new function Prj.Ext.Project_Path instead of old variable
28217         Project_Path.
28218         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
28219         When comparing with project paths on the stack, first put the resolved
28220         path in canonical case.
28221         (Parse_Single_Project): Set the path name of the project file in the
28222         tree to the normalized path.
28223
28224         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
28225         parameter Process_Languages, no longer needed.
28226         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
28227         Other_Languages_Check.
28228
28229         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
28230         to store the resolved canonical path of the project file.
28231         Remove dependency to Prj.Com, no longer needed
28232
28233         * prj-util.adb: Adapt to name changes in package Prj
28234         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
28235         Ada_Body_Suffix).
28236
28237         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
28238         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
28239         Externally_Built, Include_Option, Language_Processing.
28240
28241         * makegpr.adb: Numerous changes due to changes in packages
28242         Prj and Prj.Nmsc.
28243
28244         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
28245         default to the project path, except whe "-" is one of the directories
28246         in env var ADA_PROJECT_PATH.
28247         (Gnatls): In verbose mode, add the new section "Project Search Path:"
28248
28249 2004-12-07  Robert Dewar  <dewar@adacore.com>
28250
28251         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
28252
28253         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
28254         set -gnatR3m mode.
28255
28256         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
28257         flag. No longer needed now that we handle this in gnat1drv.adb.
28258
28259         * repinfo.ads: Minor reformatting
28260
28261 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28262             Olivier Hainque  <hainque@adacore.com>
28263             Eric Botcazou  <ebotcazou@adacore.com>
28264
28265         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
28266         TYPE_SIZE_UNIT of result type if SIZE is not specified.
28267         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
28268         of a bitfield, which we know is useless and causes trouble because of
28269         alignment implications.
28270
28271         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
28272         BSS sections.
28273         (process_attributes): Clear DECL_COMMON again when a section attribute
28274         is present.
28275         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
28276         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
28277         (create_field_decl): Special case ADDRESSABLE negative to mean
28278         "no bitfield creation", to be used by make_aligning_type. Don't
28279         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
28280         fields claimed addressable still have to be bitfields. Use
28281         value_factor_p instead of a raw binop construction to check for the
28282         position's alignment.
28283
28284 2004-12-07  Geert Bosch  <bosch@adacore.com>
28285
28286         * eval_fat.adb: Revert previous change.
28287
28288 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28289             Ed Schonberg  <schonberg@adacore.com>
28290
28291         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
28292         with an implicit dereference as its prefix, use
28293         Insert_Explicit_Dereference instead of merely rewriting the prefix into
28294         an explicit dereference. This ensures that a reference to the original
28295         prefix is generated, if appropriate.
28296
28297         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
28298         dereference is rewritten to an explicit one, generate a reference to
28299         the entity denoted by its prefix using the original prefix node, so
28300         the dereference can be properly recorded as a read of the denoted
28301         access value, if appropriate.
28302
28303         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
28304         emitting 'assigned but never read' warning on a variable on the basis
28305         that it has an access type.
28306         (Check_References): Emit unreferenced warning when the scope is a
28307         subprogram body.
28308
28309 2004-12-07  Robert Dewar  <dewar@adacore.com>
28310             Ed Schonberg  <schonberg@adacore.com>
28311
28312         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
28313         intrinsic
28314
28315         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
28316         leaving call unchanged.
28317         This deals with the case where the pragma Import specified
28318         an external name, to be handled by the back end.
28319
28320         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
28321         subprogram which is Imported with convention Intrinsic if an
28322         External_Name argument is specified.
28323         (Process_Import_Or_Interface): Properly diagnose link name argument.
28324         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
28325         with Sem_Ch6.Cannot_Inline.
28326         (Process_Inline): Provide separate warning for inapplicable inline
28327         pragma.
28328         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
28329         treatment is uniform on different targets.
28330
28331 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28332
28333         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
28334         construct is rewritten, preserve end label to permit source navigation.
28335
28336 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28337
28338         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
28339         Specific_Build_Stub_Target): New subprograms.
28340         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
28341         the PCS implementation used, using the above PCS-customized subprograms.
28342         Minor reformatting.
28343         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
28344         for generation of DSA code targeted to the PolyORB PCS.
28345         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
28346         implementation of the partition communication subsystem in ancillary
28347         subprograms.
28348         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
28349         PolyORB_Support.Build_Stub_Type): New subrograms containing the
28350         PCS-specific part of Add_Stub_Type.
28351         (Insert_Partition_Check): Use runtime library function to perform
28352         E.4(19) check.
28353
28354         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
28355         (RE_Same_Partition): New entity, from s-parint.
28356
28357         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
28358
28359 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28360
28361         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
28362         Output the copyright message on a separate line from the version
28363         message.
28364
28365 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
28366
28367         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
28368         compile-time warning.
28369
28370 2004-12-07  Robert Dewar  <dewar@adacore.com>
28371
28372         * g-regpat.adb: (Match): Change a misuse of or to or else
28373
28374 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28375
28376         * lib-xref.adb:
28377         (Generate_Reference): Handle properly a reference to an entry formal,
28378          when an accept statement has a pragma Unreferenced for it.
28379
28380         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
28381         and the Has_Pragma_Unreferenced flag for each formal before analyzing
28382         the body, to ensure that warnings are properly emitted for each accept
28383         statement of a given task entry.
28384
28385 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
28386
28387         * Makefile.in: Add support for foreign threads on VMS.
28388
28389 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28390
28391         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
28392         Remove.
28393         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
28394
28395         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
28396
28397         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
28398         exception.
28399         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
28400
28401 2004-12-07  Robert Dewar  <dewar@adacore.com>
28402
28403         * nlists.adb (Prepend_Debug): Remove parameters and nest within
28404         Prepend.
28405         (Remove_Next_Debug): Same fix
28406
28407         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
28408         maintain back pointers now, though we did not used to, and comments
28409         were out of date).
28410         (Prepend): Remove pragma Inline.
28411         (Remove_Next): Same cleanup
28412
28413 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28414
28415         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
28416         used to record an implicit dereference as a read operation on its
28417         prefix when operating under -gnatc. Necessary to avoid spurious
28418         'variable assigned but never read' warnings in that mode.
28419         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
28420         is a non-overloaded implicit dereference, call the above subprogram to
28421         ensure proper recording of references.
28422
28423 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
28424
28425         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
28426         to be resolved later as part of Analyze_Iteration_Scheme's call to
28427         Make_Index.
28428
28429 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
28430
28431         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
28432         prefix is not a scalar type, place error message on prefix, not on
28433         type entity.
28434
28435 2004-12-07  Bernard Banner  <banner@adacore.com>
28436
28437         * vxaddr2line.adb: Add support for x86 vxworks
28438
28439 2004-12-07  Thomas Quinot  <quinot@adacore.com>
28440
28441         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
28442         documentation of the behaviour of these functions when passed an IP
28443         address that has no record in the system hosts database and no reverse
28444         record in the DNS.
28445
28446         * cstand.adb, a-tags.ads: Fix typos in comment.
28447
28448 2004-12-07  Robert Dewar  <dewar@adacore.com>
28449
28450         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
28451         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
28452         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
28453         s-poosiz.ads: Minor reformatting
28454
28455         * make.adb: Minor reformatting
28456         Add some ??? comments asking for more comments
28457
28458         * s-poosiz.adb: Minor reformatting
28459         Add comments on alignment requirement
28460
28461         * sinfo.ads: Remove obsolete comment and fix typo.
28462
28463 2004-12-07  Vincent Celier  <celier@adacore.com>
28464             Sergey Rybin  <rybin@adacore.com>
28465
28466         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
28467         Files" with the new tool and package names.
28468         Reformatting to suppress most of the warnings for line too long
28469         Document the new section "Project Search Path:" in the output of
28470         gnatls -v.
28471         Add gnatmetric section
28472
28473 2004-12-07  Vincent Celier  <celier@adacore.com>
28474
28475         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
28476         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
28477         and -eit to -ept. Added qualifier
28478         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
28479
28480 2004-11-27  Andreas Schwab  <schwab@suse.de>
28481
28482         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
28483
28484 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
28485
28486         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
28487         internal implementation unit GNAT.Sockets.Thin,
28488         as their usage for sockets is non-portable (using the read and write
28489         functions from the system runtime library is fine on UNIX but won't
28490         work under Windows).
28491
28492         * mingw32.h: Update copyright notice.
28493
28494 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
28495
28496         * ada-tree.h: Minor reformatting of previous change to avoid lines
28497         longer than 79 characters.
28498
28499 2004-11-25  Olivier Hainque  <hainque@adacore.com>
28500
28501         * tb-gcc.c: GCC infrastructure based implementation of
28502         __gnat_backtrace.
28503
28504 2004-11-24  Steven Bosscher  <stevenb@suse.de>
28505
28506         * misc.c (gnat_post_options): Don't clear
28507         flag_inline_functions.
28508
28509 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
28510
28511         PR ada/17986
28512         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
28513         tree.
28514
28515 2004-11-21  Andreas Jaeger  <aj@suse.de>
28516
28517         * stylesw.adb: Change Style_Check_Subprogram_Order to
28518         Style_Check_Order_Subprograms.
28519
28520 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
28521
28522         * adaint.h, adaint.c
28523         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
28524         to avoid warnings.
28525         Add also a cast to kill another warning.
28526         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
28527         parameter with the priority class of the parent process instead of
28528         always using the NORMAL_PRIORITY_CLASS.
28529         (__gnat_dup): New function.
28530         (__gnat_dup2): New function.
28531         (__gnat_is_symbolic_link): Enable the effective body of this
28532         function when __APPLE__ is defined.
28533
28534         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
28535         Update comments.
28536
28537 2004-11-18  Olivier Hainque  <hainque@adacore.com>
28538
28539         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
28540         address of which may be used to represent "others" and "all others"
28541         choices in exception tables, instead of the current harcoded
28542         (void *)0 and (void *)1.
28543         (Setup_Exception): Do nothing in the GNAT SJLJ case.
28544
28545         * gigi.h (others_decl, all_others_decl): New decls representing the
28546         new Others_Value and All_Others_Value objects.
28547         (struct attrib): Rename "arg" component as "args", since GCC expects a
28548         list of arguments in there.
28549
28550         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
28551         corresponding objects exported by a-exexpr, instead of hardcoded dummy
28552         addresses.
28553
28554         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
28555         others_decl and all_others_decl instead of hardcoded dummy addresses
28556         to represent "others" and "all others" choices, which is cleaner and
28557         more flexible with respect to the possible eh pointer encoding policies.
28558
28559         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
28560         (process_attributes): Account for the naming change of the "args"
28561         attribute list entry component.
28562
28563         * decl.c (build_attr_list): Rename into prepend_attributes to allow
28564         cumulating attributes for different entities into a single list.
28565         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
28566         attributes for the current entity and propagate first subtype
28567         attributes to other subtypes.
28568         <E_Procedure>: Attribute arguments are attr->args and not
28569         attr->arg any more.
28570         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
28571         argument provided, as this is what GCC expects. Use NULL_TREE instead
28572         of 0 for trees.
28573
28574 2004-11-18  Robert Dewar  <dewar@adacore.com>
28575
28576         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
28577         Minor reformatting througout (including new function specs)
28578         Add ??? comments asking for clarification.
28579
28580 2004-11-18  Thomas Quinot  <quinot@adacore.com>
28581
28582         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
28583         incomplete duplicate implementation of this subprogram from butil.
28584
28585 2004-11-18  Thomas Quinot  <quinot@adacore.com>
28586
28587         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
28588         procedures factors the common processing for building an RPC receiver
28589         for an RCI package or an RACW type.
28590         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
28591         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
28592         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
28593         in use.
28594         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
28595         Add_RACW_Features.
28596         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
28597         Add_RAST_Features.
28598         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
28599         distribution subprogram identifiers that are either subprogram numbers
28600         or strings.
28601         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
28602         string distribution identifiers assigned to a given subprogram.
28603         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
28604         (Add_RAS_Dereference_TSS): Add comments.
28605         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
28606         is not referenced yet because it will be used by the PolyORB DSA
28607         implementation.
28608         (Insert_Partition_Check): Remove fossile code.
28609         (First_RCI_Subprogram_Id): Document this constant.
28610         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
28611         RAS_Access TSS.
28612         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
28613         replaced with calls to Get_Library_Unit_Name_String. Previously there
28614         were several instances of the same code in different locations in the
28615         compiler; this checkin completes the replacement of all of these
28616         instances with calls to a common subprogram.
28617         Minor reformatting.
28618
28619         * sem_dist.adb: Remove comment noting that RPC receiver generation
28620         should be disabled for RACWs that implement RASs.
28621         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
28622
28623         * sem_util.ads, sem_util.adb (Has_Stream): New function
28624         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
28625         qualified name of a library unit into the name buffer.
28626         (Note_Possible_Modification): Generate a reference only
28627         if the context comes from source.
28628
28629         * snames.ads (PCS_Names): New subtype corresponding to names of
28630         supported implementations of the Partition Communication Subsystem
28631         (PCS) (i.e. the runtime library support modules for the distributed
28632         systems annex).
28633
28634 2004-11-18  Robert Dewar  <dewar@adacore.com>
28635             Ed Schonberg  <schonberg@adacore.com>
28636
28637         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
28638         (Has_Rep_Pragma): New function
28639         (Has_Attribute_Definition_Clause): New function
28640         (Record_Rep_Pragma): Moved here from sem_ch13.adb
28641         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
28642
28643         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
28644
28645         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
28646         (Expand_Pragma_Psect_Object): New procedure
28647         These procedures contain the revised and cleaned up processing for
28648         these two pragmas. This processing was formerly in Sem_Prag, but
28649         is more appropriately moved here. The cleanup involves making sure
28650         that the pragmas are properly attached to the tree, and that no
28651         nodes are improperly shared.
28652
28653         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
28654         pragmas to Exp_Prag, which is more appropriate.
28655         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
28656         check for duplicates Remove use of Is_Psected flag, no longer needed.
28657         Use new Make_String_Literal function with string.
28658
28659         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
28660         that are functions return universal values, that have to be converted
28661         to the context type.
28662         Use new Make_String_Literal function with string.
28663         (Get_Stream_Convert_Pragma): New function, replaces the use of
28664         Get_Rep_Pragma, which had to be kludged to work in this case.
28665
28666         * freeze.adb: Use new Has_Rep_Pragma function
28667
28668         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
28669         function with string.
28670         Use new Has_Rep_Pragma function.
28671
28672         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
28673         string argument.
28674
28675 2004-11-18  Robert Dewar  <dewar@adacore.com>
28676
28677         * errout.ads, errout.adb: (First_Sloc): New function
28678
28679         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
28680         check (-gnatyx) instead of being included as a redundant construct
28681         warning.
28682
28683         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
28684         Style_Check_Order_Subprograms.
28685
28686         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
28687         stylesw.adb: Add Style_Check_Xtra_Parens
28688
28689         * usage.adb: Add line for -gnatyx (check extra parens)
28690
28691         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
28692
28693 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28694             Robert Dewar  <dewar@adacore.com>
28695
28696         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
28697         discriminant of a constrained subtype, analyze the copy of the
28698         corresponding constraint, because in some cases it may be only
28699         partially analyzed.
28700         Removes long-lived ??? comments.
28701
28702         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
28703         handled controlled or secondary-stack expressions within the
28704         iteration_scheme of a loop.
28705
28706         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
28707         bounds that may contain functions calls, to prevent memory leaks when
28708         the bound contains a call to a function that uses the secondary stack.
28709         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
28710         generate temporaries for loop bounds that might contain function calls
28711         that require secondary stack and/or finalization actions.
28712
28713         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
28714         selected component and the selector is overloadable (not just a
28715         function) treat as function call, Analyze_Call will disambiguate if
28716         necessary.
28717         (Analyze_Selected_Component): Do not generate an actual subtype for the
28718         selected component if expansion is disabled. The actual subtype is only
28719         needed for constraint checks.
28720         (Analyze_Allocator): If restriction No_Streams is set, then do
28721         not permit objects to be declared of a stream type, or of a
28722         composite type containing a stream.
28723
28724         * restrict.ads: Remove the a-stream entry from Unit_Array, since
28725         No_Streams no longer prohibits with'ing this package.
28726
28727         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
28728         discriminants, but the parent base has unknown discriminants, there is
28729         no discriminant constraint to inherit. Such a discrepancy can arise
28730         when the actual for a formal type with unknown discriminants is a
28731         similar private type whose full view has discriminants.
28732         (Analyze_Object_Declaration): If restriction No_Streams is set, then
28733         do not permit objects to be declared of a stream type, or of a
28734         composite type containing a stream.
28735
28736 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28737
28738         * exp_dbug.ads: Update documentation to reflect simpler encoding for
28739         protected operations.
28740
28741         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
28742         generated name, it complicates decoding in gdb and hinders debugging
28743         of protected operations.
28744         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
28745         flag for the protected entry barrier function.
28746         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
28747         flag for the protected entry function.
28748
28749 2004-11-18  Nicolas Setton  <setton@adacore.com>
28750
28751         * expect.c: Define __unix__ when __APPLE__ is defined.
28752
28753         * Makefile.in: Inform the value of the variable GMEM_LIB in the
28754         Darwin-specific section.
28755
28756         * lang-specs.h: Change the placement of the %1 marker.
28757         Works around the fact that gcc adds -fPIC by default under Darwin.
28758
28759 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28760
28761         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
28762         type of the object with the packed array type, set the Analyzed flag
28763         on the object if it is an entity or simple indexed component, to avoid
28764         spurious type errors.
28765
28766 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
28767
28768         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
28769         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
28770         separate line from the version message.
28771
28772 2004-11-18  Ed Falis  <falis@adacore.com>
28773
28774         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
28775         vthreads.
28776         (init_float): Eliminate initialization of floating point status for
28777         AE653. The instructions have no effect for vThreads.
28778
28779 2004-11-18  Vincent Celier  <celier@adacore.com>
28780
28781         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
28782         gnatbind is invoked with -shared.
28783
28784 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
28785
28786         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
28787         for Detect_Blocking which is redundant with the check done within the
28788         procedure Protected_Single_Entry_Call.
28789         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
28790         Detect_Blocking which is redundant with the check done within the
28791         procedure Protected_Single_Entry_Call.
28792
28793 2004-11-18  Vincent Celier  <celier@adacore.com>
28794
28795         * makegpr.adb (Compile): Put the compiling switches (in package
28796         Compiler and on the command line) immediately after "-c", instead of
28797         at the end of the command line invocation of the compiler, when
28798         compiling a non-Ada file.
28799         (Build_Global_Archive): When there is no need to rebuild the archive,
28800         set Global_Archive_Exists, so that the archive is passed to the linker
28801         if one is needed.
28802
28803 2004-11-18  Robert Dewar  <dewar@adacore.com>
28804             Sergey Rybin  <rybin@adacore.com>
28805
28806         * gnat_ugn.texi:
28807         Remove extra paren check from list of checks for redundant constructs
28808         Add documentation of new -gnatyx style check (check extra parens)
28809         Remove paragraph about gnatelim debug options.
28810
28811         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
28812         objects rather than forbidding dependencies on the package Ada.Streams.
28813
28814         * sinfo.ads: Add ??? note that we should document pragmas passed to
28815         back end.
28816
28817         * g-expect.ads: Fix a few typos in the comments.
28818
28819 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
28820
28821         * misc.c (gnat_handle_option): Use %< and %> for quoting in
28822         warning message.
28823
28824 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28825
28826         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
28827
28828 2004-11-07  Andreas Schwab  <schwab@suse.de>
28829
28830         * Makefile.in (install-gnatlib): Remove spurious hyphen.
28831
28832 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
28833
28834         PR ada/18228
28835         * Makefile.in (darwin): Set soext to .dylib.
28836
28837 2004-10-26  Vincent Celier  <celier@gnat.com>
28838             Thomas Quinot   <quinot@act-europe.fr>
28839
28840         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
28841         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
28842         there is no use of GNAT.Sockets.Constants.
28843         Remove remaining pragma Import for C_Write
28844         Remove C_Read and C_Write from internal implementation unit
28845         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
28846         the read and write functions from the system runtime library is fine
28847         on UNIX but won't work under Windows).
28848
28849         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
28850         (Check_Selector): Use C_Recv instead of C_Read.
28851         Selectors are the GNAT.Sockets abstraction to perform a select()
28852         call on a set of descriptors. To allow abortion of an ongoing
28853         select operation, some data is written to a dedicated socket that
28854         is always monitored.
28855         Under Windows, the write and read library functions cannot operate
28856         on sockets, so we need to use send and recv instead, which is portable
28857         across all supported platforms.
28858
28859         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
28860         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
28861         (using the read and write functions from the system runtime library is
28862         fine on UNIX but won't work under Windows).
28863
28864 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
28865
28866         * mlib-tgt-darwin.adb: New file.
28867
28868         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28869         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28870         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
28871         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
28872         subprogram body.
28873
28874         * Makefile.in: Add support for building shared libraries under Darwin.
28875         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
28876         the low level EH init subprogram to be called from __gnat_initialize.
28877
28878         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
28879         indicates which options to pass to the archive indexer.
28880
28881         * mlib-utl.adb: Add support for calling ranlib with additional
28882         options. This is needed for instance under Mac OS X.
28883         (Ranlib_Options): New global variable, used to store the potential
28884         options to pass to ranlib.
28885         (Ar): Use Ranlib_Options when spawning ranlib.
28886         (Initialize): Set the value of ranlib option.
28887
28888 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
28889
28890         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
28891         instead of 8K, to reflect the real potential needs for stack-checking
28892         in the ZCX case.
28893
28894 2004-10-26  Pascal Obry  <obry@gnat.com>
28895
28896         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
28897
28898         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
28899         Windows only the initial thread stack size can be set so it is good to
28900         start we a low stack size.
28901         The OS will adjust the size as needed.
28902
28903 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
28904             Nicolas Setton  <setton@act-europe.fr>
28905
28906         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
28907         "__unix__" instead of "unix".
28908         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
28909         sections were just mistakenly ignored. The former is
28910         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
28911         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
28912         of hpux. This prevents an unwanted definition of the symbol
28913         convert_addresses in adaint.o.
28914
28915 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
28916
28917         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
28918         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
28919
28920 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
28921
28922         * a-filico.ads, a-filico.adb: fix incorrect header.
28923
28924 2004-10-26  Javier Miranda  <miranda@gnat.com>
28925
28926         * a-ststio.ads: Fix typo in identifier
28927
28928 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
28929
28930         * sem_ch4.adb: Minor reformatting.
28931
28932 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28933
28934         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
28935         enabled, check the result of unary and binary operations when the
28936         expression is the right-hand side of an assignment.
28937
28938 2004-10-26  Vincent Celier  <celier@gnat.com>
28939
28940         * clean.adb (Delete): Do not output warnings when in quiet output and
28941         not in verbose mode.
28942         (Force_Deletions): New Boolean flag, defaulted to False
28943         (Delete): Only delete a file if it is writable, and when
28944         Force_Deletions is True.
28945         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
28946         (Usage): Line for new switch -f
28947         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
28948         own.
28949
28950 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
28951
28952         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
28953         JM type only if its size matches that of the wrapper.  When a size is
28954         prescribed and the field is not aliased, remove the wrapper of a JM
28955         type only if the size is not greater than that of the packed array.
28956         (gnat_to_gnu_entity): Change the extension of packed array wrappers
28957         from LJM to JM.
28958
28959 2004-10-26  Geert Bosch  <bosch@gnat.com>
28960
28961         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
28962         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28963         (Pred): Implement in terms of Succ.
28964
28965 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28966
28967         * exp_aggr.adb (Safe_Component): An aggregate component that is an
28968         unchecked conversion is safe for in-place use if the expression of the
28969         conversion is safe.
28970         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
28971         be expandable in place even if the aggregate does not come from source.
28972         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
28973         designated object of an allocator in place, rather than building it
28974         first on the stack. The previous scheme forces a full copy of the array,
28975         and may be altogether unsusable if the size of the array is too large
28976         for stack allocation.
28977
28978 2004-10-26  Robert Dewar  <dewar@gnat.com>
28979
28980         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
28981         compares if the component is atomic.
28982
28983         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
28984         array assignment if the component type is atomic.
28985
28986 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28987             Eric Botcazou  <ebotcazou@act-europe.fr>
28988
28989         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
28990         is aliased and is a by_reference type, do not pass by copy.
28991         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
28992         detect whether the call is in the right side of an assignment or
28993         the expression of an object declaration.  Recurse on component
28994         association within aggregates.
28995         Call it in the condition that determines whether the temporary is
28996         necessary for correct stack-checking.
28997
28998 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
28999
29000         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29001         RACW_Type, used in the PolyORB version.
29002         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29003         version and the GARLIC version.
29004
29005         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29006         Rename RCI_Info to RCI_Locator for better consistency between the
29007         GARLIC and PolyORB versions of the distributed systems annex.
29008         (DSA_Implementation_Name): This enumeration lists the possible
29009         implementations of the Partition Communication Subsystem for the
29010         Distributed Systems Annex (DSA). The three available implementations
29011         are the dummy stub implementation (No_DSA), and two versions based on
29012         two different distribution runtime libraries: GARLIC and PolyORB. Both
29013         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29014         technology.
29015         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29016         that organization.
29017
29018         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29019         between the GARLIC and PolyORB versions of the distributed systems
29020         annex.
29021         Remove RE_Unbounded_Reclaim_Pool since it is unused.
29022
29023 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
29024
29025         * gnat1drv.adb: Suppress calling the back end when
29026         Frontend_Layout_On_Target is true.
29027
29028 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29029
29030         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29031         Set_Read_Only): New subprograms.
29032         These new routines allow the user to set or unset the Owner execute
29033         and Owner write permission flags on a file.
29034
29035         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29036         GNAT.OS_Lib.Set_Executable instead of rolling our own.
29037
29038 2004-10-26  Matthew Gingell  <gingell@gnat.com>
29039
29040         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29041
29042 2004-10-26  Pascal Obry  <obry@gnat.com>
29043
29044         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29045         memory before the faulting page we properly test the process read
29046         access for this address using appropriate Win32 routine.
29047         (HPUX sections): guard with "__hpux__" instead of "hpux".
29048
29049 2004-10-26  Robert Dewar  <dewar@gnat.com>
29050
29051         * lib-xref.adb (Generate_Reference): Don't complain about reference to
29052         entry parameter if pragma Unreferenced set, since we do not properly
29053         handle the case of multiple parameters.
29054
29055 2004-10-26  Vincent Celier  <celier@gnat.com>
29056
29057         * prj-env.adb: (Contains_ALI_Files): New Boolean function
29058         (Ada_Objects_Path.Add): For a library project, add to the object path
29059         the library directory only if there is no object directory or if the
29060         library directory contains ALI files.
29061         (Set_Ada_Paths.Add.Recursive_Add): Ditto
29062
29063 2004-10-26  Vincent Celier  <celier@gnat.com>
29064
29065         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
29066         extension of library projects.
29067
29068         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
29069         path defaults to ".:<prefix>/lib/gnat".
29070         (Parse): For an extending all project, allow direct import of a project
29071         that is virtually extended.
29072
29073         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
29074         the specified name is directly imported, return its ID. Otherwise, if
29075         an extension of this project is imported, return the ID of the
29076         extension.
29077
29078 2004-10-26  Robert Dewar  <dewar@gnat.com>
29079
29080         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
29081         (Sub3): New procedure, used by Scaled_Divide
29082         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
29083         correct more than one instance of failure to propagate carries
29084         correctly.
29085         (Double_Divide): Handle overflow case of largest negative number
29086         divided by minus one.
29087
29088         * s-arit64.ads (Double_Divide): Document that overflow can occur in
29089         the case of a quotient value out of range.
29090         Fix comments.
29091
29092 2004-10-26  Robert Dewar  <dewar@gnat.com>
29093
29094         * s-bitops.adb (Bit_Eq): Remove redundant check.
29095
29096         * s-bitops.ads: Minor comment updates
29097         Change some occurrences of Address to System.Address
29098
29099         * s-carsi8.ads: Fix minor cut-and-paste error in comments
29100
29101 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29102
29103         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
29104         accessibility check to prefix that is a protected operation.
29105
29106 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29107
29108         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
29109         empty, post message on stub.
29110
29111 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29112             Javier Miranda  <miranda@gnat.com>
29113
29114         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
29115         current instance appears within a unit that is directly in the context
29116         of the main unit.
29117         Used to determine whether the body of the instance should be analyzed
29118         immediately after its spec, to make its subprogram bodies available
29119         for front-end inlining.
29120         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
29121         constraint is not allowed on the component type (AARM 12.5.3(3))
29122
29123 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
29124
29125         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
29126         'Storage_Pool): enhance, document & limit detection of non-sharable
29127         internal pools.
29128
29129         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
29130
29131         * s-pooglo.ads: Add more documentation now that this pool is properly
29132         documented.
29133
29134 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29135
29136         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
29137         or protected type with discriminants, do not constrain the
29138         corresponding record type if the subtype declaration has no
29139         discriminant constraints. This can be the case in source code, or in
29140         the subtype declaration created to rename an actual type within an
29141         instantiation.
29142
29143 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29144
29145         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
29146         different kind of stub (possibly wrong name for file), do not check
29147         for conformance.
29148         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
29149         includes call to some function that returns an unconstrained type, do
29150         not inline.
29151
29152 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
29153
29154         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
29155         appear in the code for the main unit. Dependencies among units in the
29156         context of the main unit are established when those other units are
29157         compiled. Otherwise spurious elaboration constraints can generate
29158         incorrect elaboration circularities.
29159
29160 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
29161             Ed Schonberg   <schonberg@gnat.com>
29162
29163         * sem_util.adb (Is_Aliased_View): Defend against the case where this
29164         subprogram is called with a parameter that is not an object name. This
29165         situation arises for some cases of illegal code, which is diagnosed
29166         later, and in this case it is wrong to call Is_Aliased, as that might
29167         cause a compiler crash.
29168         (Explain_Limited_Type): Refine previous fix to include
29169         inherited components of derived types, to provide complete information.
29170
29171         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
29172         is the prival for a protected object.
29173         It is necessary to mark this entity as a variable, in addition to
29174         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
29175         modified to avoid checking the Aliased flag on entities that are not
29176         objects. (Checking that flag for non-objects is erroneous and could
29177         lead to a compiler crash).
29178
29179 2004-10-26  Robert Dewar  <dewar@gnat.com>
29180
29181         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
29182         X_Frac = 0.5, then we know that the number X must be positive.
29183         (Succ): Remove the same redundant test, and also fix the primary test
29184         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
29185         Minor reformatting
29186         (Decompose): Add fuller comments to spec
29187
29188 2004-10-26  Pascal Obry  <obry@gnat.com>
29189
29190         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
29191         validity (process must have read access). Set to 0 in all other cases.
29192         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
29193         violation on Win32.
29194         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
29195         segmentation violation.
29196
29197 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
29198
29199         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
29200         whose type is a constructed subtype of an aliased object with an
29201         unconstrained nominal subtype, convert the actual to the constructed
29202         subtype before taking its address.
29203
29204 2004-10-26  Vincent Celier  <celier@gnat.com>
29205
29206         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
29207         (Is_Path_Name_Case_Sensitive): New function
29208
29209         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
29210         (Base_Name, Simple_Name, Current_Directory, Compose,
29211         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
29212         the result.
29213
29214 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
29215             Vasiliy Fofanov  <fofanov@act-europe.fr>
29216             Vincent Celier   <celier@gnat.com>
29217
29218         * gnat_ugn.texi: Generalize "finding memory problems" section into a
29219         "memory management issues" section and document some of the useful
29220         memory pools provided as part of the GNAT library.
29221         Remove "virtual" from declaration of A::method2 in
29222         the simple example of Ada/C++ mixed system.
29223         Library Projects may be virtually extended: their virtual extensions
29224         are not Library Projects.
29225         Added section on extending project hierarchies.
29226
29227 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
29228
29229         * adaint.c (__gnat_get_libraries_from_registry): Cast value
29230         to LPBYTE.
29231         (__gnat_portable_spawn): Remove const.
29232
29233         * mingw32.h (MAXPATHLEN): Check for previous definition.
29234
29235 2004-10-17  Matthias Klose  <doko@debian.org>
29236
29237         * gnatvsn.ads: Set gnat library version to 4.0.
29238
29239 2004-10-05  Vincent Celier  <celier@gnat.com>
29240
29241         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
29242
29243 2004-10-04  Laurent Guerby  <laurent@guerby.net>
29244
29245         PR ada/15156
29246         * Makefile.in: Define and use RANLIB_FLAGS.
29247
29248 2004-10-04  Pascal Obry  <obry@gnat.com>
29249
29250         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
29251         other x86 platforms).
29252
29253 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
29254
29255         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
29256         in general and triggers stack alignment adjustment for thread entry
29257         points on targets where this is necessary.
29258
29259 2004-10-04  Bernard Banner  <banner@gnat.com>
29260
29261         PR ada/13897
29262         * Makefile.in: Add section for powerpc linux
29263         Add variant i-vxwork-x86.ads
29264
29265         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
29266
29267 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
29268
29269         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
29270         table registration calls when need be. Ensures no reference to the crt
29271         ctors symbol are issued in the SJLJ case, which avoids possible
29272         undefined symbol errors in the case of modules to be statically linked
29273         with the kernel.
29274
29275 2004-10-04  Javier Miranda  <miranda@gnat.com>
29276
29277         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
29278         in-line the code corresponding to subprogram Analyze_Actuals. In
29279         addition, analyze the actuals only in case of subprogram call.
29280
29281 2004-10-04  Ed Falis  <falis@gnat.com>
29282
29283         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
29284
29285 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
29286
29287         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
29288         in the documentation.
29289
29290 2004-10-04  Robert Dewar  <dewar@gnat.com>
29291
29292         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
29293         IF and CASE.
29294         (Analyze_Block_Statement): Add circuitry to detect following dead code
29295         (Check_Unreachable_Code): Handle case of block exit
29296
29297 2004-10-04  Robert Dewar  <dewar@gnat.com>
29298
29299         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
29300         (XMatchD): Avoid warning for Logic_Error call
29301
29302 2004-10-04  Robert Dewar  <dewar@gnat.com>
29303
29304         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
29305         consider expressions buried within a procedure actual to be an actual.
29306         This caused some blowups with uses of packed slices within a procedure
29307         actual.
29308
29309 2004-10-04  Robert Dewar  <dewar@gnat.com>
29310
29311         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
29312         longer need to be initialized to zero.
29313         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
29314         initialized to zero.
29315
29316         * checks.adb (Expr_Known_Valid): Packed arrays are now always
29317         considered valid, even if the representation is modular. That's correct
29318         now that we no longer initialize packed modular arrays to zero.
29319
29320         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
29321         suffixes. These are now documented as the only cases in which the
29322         debugger ignores outer records.
29323         Previously, the spec allowed arbitrary suffixes for this purpose.
29324         Change name of LJM to JM for packed array pad records
29325         Create separate section on packed array handling, and add a whole new
29326         set of comments to this section describing the situation with packed
29327         modular types and justification requirements depending on endianness.
29328
29329 2004-10-04  Robert Dewar  <dewar@gnat.com>
29330
29331         * a-except.adb: Add a comment for last change
29332
29333         * einfo.ads: Minor spelling correction in comment
29334
29335         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
29336
29337         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
29338         messages.
29339
29340         * sem_util.ads: Minor comment update
29341
29342 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29343
29344         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
29345         Inline_Always when in Configurable_Run_Time mode.
29346
29347         * sem_prag.adb (Process_Convention): If entity is an inherited
29348         subprogram, apply convention to parent subprogram if in same scope.
29349         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
29350         when in Configurable_Run_Time mode.
29351
29352 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29353
29354         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
29355         class_wide type after component list has been inherited.
29356
29357 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29358
29359         * sem_ch12.adb (Check_Generic_Actuals): New predicate
29360         Denotes_Previous_Actual, to handle properly the case of a private
29361         actual that is also the component type of a subsequent array actual.
29362         The visibility status of the first actual is not affected when the
29363         second is installed.
29364         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
29365         make fully recursive the treatment of formals of packages declared
29366         with a box.
29367         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
29368         the above on exit from an instantiation.
29369         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
29370         current instantiation which is now complete.
29371         (Analyze_Package_Instantiation): No instantiated body is needed if the
29372         main unit is generic. Efficient, and avoid anomalies when a instance
29373         appears in a package accessed through rtsfind.
29374
29375 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29376
29377         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
29378         do not generate a declaration for a temporary if the call is part of a
29379         library-level instantiation.
29380
29381 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
29382
29383         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
29384         searching for a limited component to flag.
29385
29386         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
29387         expansion of Input, to account for the fact that the implicit call
29388         generated by the attribute reference must freeze the user-defined
29389         stream subprogram. This is only relevant to 'Input, because it can
29390         appear in an object declaration, prior to the body of the subprogram.
29391
29392         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
29393         expansion can proceed and further errors uncovered.
29394         (Minor clean up): Fix cases of using | instead of \ for continuation
29395         messages.
29396
29397 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29398
29399         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
29400
29401         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
29402         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
29403         Use gcc_assert and gcc_unreachable.
29404
29405         * decl.c (gnat_to_gnu_entity, case object): Check and process a
29406         specified alignment before validating size.
29407         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
29408         stripped-down declaration for the type of the inner field when making
29409         a JM type.
29410
29411         * utils.c (finish_record_type): Do not compute the size in units
29412         incrementally. Instead compute it once for the rep clause case.
29413         Use gcc_assert and gcc_unreachable.
29414
29415 2004-10-04  Vincent Celier  <celier@gnat.com>
29416
29417         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
29418         in file name.
29419         (Is_Valid_Path_Name): Take '/' as a directory separator.
29420
29421 2004-10-04  Vincent Celier  <celier@gnat.com>
29422
29423         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
29424         (Extended_Project) only if Extended_Project is defined, to avoid
29425         assertion error.
29426         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
29427         resolved path.
29428         (Parse_Single_Project): Ditto.
29429
29430         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
29431         Add_To_Project_Path for virtual projects.
29432
29433 2004-10-04  Vincent Celier  <celier@gnat.com>
29434
29435         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29436         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29437         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
29438         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
29439         parameter Options_2.
29440
29441         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
29442         Build_Dynamic_Library with an empty Options_2.
29443
29444         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
29445         default anymore.
29446
29447         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
29448         directory separator, if any.
29449         (Gprmake): Do not allow mains on the command line for library projects.
29450         Do not attempt to link when the project is a library project.
29451         (Library_Opts): New table to store Library_Options.
29452         (Build_Library): If Library_Options is specified, pass these options
29453         when building a shared library.
29454
29455 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
29456
29457         * s-tposen.adb (Service_Entry): The object must be always unlocked at
29458         the end of this procedure now that the unlock operation was inserted
29459         by the expander.
29460
29461 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
29462
29463         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
29464         corresponding to the Preallocated_Stacks flags in System.
29465         (Get_Target_Parameters): Including the processing for
29466         Preallocated_Stacks.
29467
29468         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
29469         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
29470         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29471         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
29472         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
29473         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
29474         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
29475         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
29476         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
29477         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
29478         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
29479         used to signal whether the compiler creates the required stacks and
29480         descriptors for the different tasks (when True) or it is done by the
29481         underlying operating system at run time (when False).
29482         It is initially set to False in all targets.
29483
29484         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
29485         if it is supported by the target.
29486         (Make_Task_Create_Call): Pass the stack address if it has been
29487         previously created. Otherwise pass a Null_Address.
29488
29489         * snames.adb: Add _stack.
29490
29491         * snames.ads: Add Name_uStack. Required to allow the expander to
29492         statically allocated task stacks.
29493
29494         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
29495         Stack_Address argument.
29496         Check that its value is equal to Null_Address because this target does
29497         not support the static stack allocation.
29498
29499 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29500
29501         * usage.adb: Change "pragma inline" to "pragma Inline" in information
29502         and error messages
29503
29504 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29505
29506         * exp_dist.adb: Split declaration of asynchronous flag out of
29507         Add_RACW_Read_Attribute.
29508         Minor reformatting for better alignment with PolyORB version.
29509         Store the entity for the asynchronous flag of an RACW, rather than the
29510         expression, in the asynchronous flags table. This will allow this flag
29511         to be used in other subprograms beside Add_RACW_Read_Attribute.
29512
29513 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29514
29515         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
29516         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
29517         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
29518         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
29519         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
29520         sockets constant MSG_NOSIGNAL (Linux-specific).
29521         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
29522         all Send operations.
29523         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
29524         from trigerring SIGPIPE.
29525         Rename components to avoid clash with Ada 2005 possible reserved
29526         word 'interface'.
29527         (Check_Selector): When the select system call returns with an error
29528         condition, propagate Socket_Error to the caller.
29529
29530 2004-10-01  Jan Hubicka  <jh@suse.cz>
29531
29532         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
29533
29534 2004-09-23  Robert Dewar  <dewar@gnat.com>
29535
29536         PR ada/17540
29537         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
29538         instead do this at freeze time (we won't do it if there is an address
29539         clause).
29540         Change "pragma inline" to "pragma Inline" in information and error
29541         messages.
29542         Minor reformatting.
29543
29544         * freeze.adb (Check_Address_Clause): Remove previous change, not the
29545         right way of doing things after all.
29546         (Freeze_Entity): For object, set Is_Public for imported entities
29547         unless there is an address clause present.
29548
29549 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
29550
29551         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
29552         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
29553         ensures proper handling of types with rep clauses, which might have
29554         their TYPE_SIZE set already.
29555
29556 2004-09-21  Robert Dewar  <dewar@gnat.com>
29557
29558         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
29559         packed array types in both little- and big-endian cases. This change
29560         ensures that we no longer count on the unused bits being initialized
29561         for such types (and in particular ensures that equality testing will
29562         only read the relevant bits).
29563         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29564         These changes mean that we no longer need to initialize small packed
29565         arrays.
29566         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
29567         optimization to an LJM field as to its parent field.
29568
29569         * ada-tree.h, trans.c, utils.c, utils2.c:
29570         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29571
29572 2004-09-20  Jan Hubicka  <jh@suse.cz>
29573
29574         * utils.c (gnat_finalize): Remove.
29575         (end_subprog_body): Directly call cgraph_finalize_function;
29576         do not lower the nested functions.
29577
29578 2004-09-20  Robert Dewar  <dewar@gnat.com>
29579
29580         PR ada/17540
29581         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
29582         if an address clause is present, since that means that the Import
29583         should be ignored.
29584
29585 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
29586
29587         * 5tsystem.ads: Removed, no longer used.
29588
29589 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
29590             Zack Weinberg  <zack@codesourcery.com>
29591
29592         * ada-tree.def: Use tree_code_class enumeration constants
29593         instead of code letters.
29594         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
29595         Update for new tree-class enumeration constants.
29596
29597 2004-09-17  Vincent Celier  <celier@gnat.com>
29598
29599         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
29600         capabilities of the general project manager.
29601
29602 2004-09-09  Vincent Celier  <celier@gnat.com>
29603
29604         * a-direct.ads: Add pragma Ada_05
29605         (Directory_Entry_Type): Give default value to component Kind to avoid
29606         not initialized warnings.
29607
29608         * a-direct.adb (Current_Directory): Remove directory separator at the
29609         end.
29610         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
29611         an existing directory.
29612         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
29613         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
29614         Convert the result to File_Size.
29615
29616         * prj.ads: (Project_Error): New exception
29617
29618         * prj-attr.adb: Except in procedure Initialize, Fail comes from
29619         Prj.Com, not from Osint.
29620         (Attrs, Package_Attributes): Tables moved to private part of spec
29621         (Add_Attribute, Add_Unknown_Package): Moved to new child package
29622         Prj.Attr.PM.
29623         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
29624         Prj.Project_Error after call to Fail.
29625         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
29626         Fail. Check that package name is not already in use.
29627
29628         * prj-attr.ads: Comment updates to indicate that all subprograms may be
29629         used by tools, not only by the project manager, and to indicate that
29630         exception Prj.Prj_Error may be raised in case of problem.
29631         (Add_Unknown_Package, Add_Attribute): Moved to new child package
29632         Prj.Attr.PM.
29633         (Attrs, Package_Attributes): Table instantiations moved from the body to
29634         the private part to be accessible from Prj.Attr.PM body.
29635
29636         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
29637         from new package Prj.Attr.PM.
29638         (Parse_Attribute_Declaration): Call Add_Attribute from new package
29639         Prj.Attr.PM.
29640
29641         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
29642
29643         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
29644         instead of Elaboration_Checks).
29645
29646         * a-calend.adb: Minor reformatting
29647
29648 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29649
29650         * gigi.h (maybe_pad_type): New declaration.
29651         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
29652
29653         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
29654
29655         * cuintp.c: Convert to use buildN.
29656
29657         * decl.c (maybe_pad_type): No longer static.
29658         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
29659         target pointer.
29660         Convert to use buildN.
29661
29662         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
29663         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
29664         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
29665         RHS.
29666         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
29667         (gnat_gimplify_expr, case ADDR_EXPR): New case.
29668         Convert to use buildN.
29669
29670         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
29671         TREE_READONLY for const.
29672         Convert to use buildN.
29673
29674         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
29675         (create_var_decl): Refine when TREE_STATIC is set.
29676         Convert to use buildN.
29677
29678 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
29679
29680         * gnat_ugn.texi: Delete text relating to checking of ali and object
29681         consistency.
29682
29683         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
29684         routines.
29685
29686 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
29687
29688         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
29689         pragmas recognized by GNAT.
29690
29691         * gnat_rm.texi: Document pragma Detect_Blocking.
29692
29693         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
29694         raise Program_Error if called from a protected operation.
29695
29696         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
29697         the protected action nesting level.
29698         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
29699         protected action nesting level.
29700         (Unlock): When pragma Detect_Blocking is active decrease the protected
29701         action nesting level.
29702
29703         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
29704         Protected_Action_Nesting.
29705
29706         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
29707         Common_ATCB record. It contains the dynamic level of protected action
29708         nesting for each task. It is needed for checking whether potentially
29709         blocking operations are called from protected operations.
29710         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
29711         Detect_Blocking is active or not in the partition.
29712
29713         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
29714         raise Program_Error if called from a protected operation.
29715         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
29716         Program_Error if called from a protected operation.
29717         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
29718         Program_Error if called from a protected operation.
29719
29720         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
29721         raise Program_Error if called from a protected operation.
29722
29723         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
29724         raise Program_Error if called from a protected operation, and increase
29725         the protected action nesting level.
29726         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
29727         Program_Error if called from a protected operation, and increase the
29728         protected action nesting level.
29729         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
29730         protected action nesting level.
29731
29732         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
29733         raise Program_Error if called from a protected operation, and increase
29734         the protected action nesting level.
29735         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
29736         Program_Error if called from a protected operation, and increase the
29737         protected action nesting level.
29738         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
29739         raise Program_Error if called from a protected operation.
29740         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
29741         active, raise Program_Error if called from a protected operation.
29742         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
29743         protected action nesting level.
29744
29745         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
29746         insertion of the statement raising Program_Error. The run time
29747         contains the required machinery for handling that.
29748
29749         * sem_util.ads: Change comment associated to procedure
29750         Check_Potentially_Blocking_Operation.
29751         This procedure does not insert a call for raising the exception because
29752         that is currently done by the run time.
29753
29754         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
29755
29756         * init.c: Add the global variable __gl_detect_blocking that indicates
29757         whether pragma Detect_Blocking is active (1) or not (0). Needed for
29758         making the pragma available at run time.
29759         (__gnat_set_globals): Pass and update the detect_blocking parameter.
29760
29761         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
29762         pragma Detect_Blocking is active.
29763
29764         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
29765
29766         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
29767         DB is found in the ali file. Any unit compiled with pragma
29768         Detect_Blocking active forces its effect in the whole partition.
29769
29770         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
29771         Detect_Blocking is active and delay is called from a protected
29772         operation.
29773
29774         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
29775         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
29776         Detect_Blocking is active (0 otherwise).
29777         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
29778         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
29779         otherwise).
29780
29781 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
29782
29783         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
29784         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
29785         package.
29786
29787         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
29788         (Register_Receiving_Stub): Add Subp_Info formal parameter.
29789         Update API in placeholder implemetation of s-parint to reflect changes
29790         in distribution runtime library.
29791
29792         * sem_ch3.adb (Expand_Derived_Record): Rename to
29793         Expand_Record_Extension.
29794
29795         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
29796         primitive operations of potentially distributed object types that have
29797         non-controlling anonymous access formals.
29798
29799         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
29800         subprogram.
29801         New implementation of expansion for remote access-to-subprogram types,
29802         based on the RACW infrastructure.
29803         This version of sem_dist is compatible with PolyORB/DSA as well as
29804         GLADE.
29805
29806         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
29807         Asynchrronous that applies to a remote access-to-subprogram type, mark
29808         the underlying RACW type as asynchronous.
29809
29810         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
29811          __gnat_using_gnu_linker to 1.
29812
29813         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
29814         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
29815         GNAT.Perfect_Hash_Generators, and remove the empty
29816         GNAT.Perfect_Hash package.
29817
29818         * atree.adb: Minor reformatting
29819
29820         * exp_ch3.adb (Expand_Derived_Record): Rename to
29821         Expand_Record_Extension.
29822         (Build_Record_Init_Proc.Build_Assignment): The default expression in
29823         a component declaration must remain attached at that point in the
29824         tree so New_Copy_Tree copies it if the enclosing record type is derived.
29825         It is therefore necessary to take a copy of the expression when building
29826         the corresponding assignment statement in the init proc.
29827         As a side effect, in the case of a derived record type, we now see the
29828         original expression, without any rewriting that could have occurred
29829         during expansion of the ancestor type's init proc, and we do not need
29830         to go back to Original_Node.
29831
29832         * exp_ch3.ads (Expand_Derived_Record): Rename to
29833         Expand_Record_Extension.
29834
29835         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
29836         Returns the RACW type used to implement a remote access-to-subprogram
29837         type.
29838         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
29839         New subprograms. Used to create a proxy tagged object for a remote
29840         subprogram. The proxy object is used as the designated object
29841         for RAS values on the same partition (unless All_Calls_Remote applies).
29842         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
29843         System.Partition_Interface.Get_Unique_Remote_Pointer.
29844         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
29845         Renamed from Add_RAS_*_Attribute.
29846         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
29847         subprograms.
29848         New implementation of expansion for remote access-to-subprogram types,
29849         based on the RACW infrastructure.
29850
29851         * exp_dist.ads (Copy_Specification): Update comment to note that this
29852         function can copy the specification from either a subprogram
29853         specification or an access-to-subprogram type definition.
29854
29855 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
29856
29857         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
29858         in an instance, between an explicit subprogram an one inherited from a
29859         type derived from an actual.
29860
29861         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
29862         add a polling call if the subprogram is to be inlined by the back-end,
29863         to avoid repeated calls with multiple inlinings.
29864
29865         * checks.adb (Apply_Alignment_Check): If the expression in the address
29866         clause is a call whose name is not a static entity (e.g. a dispatching
29867         call), treat as dynamic.
29868
29869 2004-09-09  Robert Dewar  <dewar@gnat.com>
29870
29871         * g-trasym.ads: Minor reformatting
29872
29873         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
29874         packed arrays, since unused bits are expected to be zero for a
29875         comparison.
29876
29877 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
29878
29879         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
29880         comment.
29881
29882 2004-09-09  Pascal Obry  <obry@gnat.com>
29883
29884         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
29885         enable map file generation. Add the right option to generate the map
29886         file if Map_File is set to True.
29887
29888         * gnatdll.adb (Gen_Map_File): New variable.
29889         (Syntax): Add info about new -m (Map_File) option.
29890         (Parse_Command_Line): Add support for -m option.
29891         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
29892         Minor reformatting.
29893
29894 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
29895
29896         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
29897         new gnatdist implementation.
29898         Define a subpackage isolating the output routines specific to this
29899         verbose mode.
29900
29901 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
29902
29903         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
29904
29905         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
29906
29907 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
29908
29909         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
29910         internal unit.
29911
29912         * opt.ads: Add Ada_Version_Runtime constant used to decide which
29913         version of the language is used to compile the run time.
29914
29915 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
29916
29917         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
29918         of variable length temporaries for function return now that the
29919         back-end and gigi support it.
29920
29921 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29922
29923         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
29924
29925         * trans.c (struct stmt_group): Delete field GLOBAL.
29926         (gnat_init_stmt_group): Do not initialize it.
29927         (call_to_gnu): Use save_expr, not protect_multiple_eval.
29928         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
29929         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
29930         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
29931         (start_stmt_group): Likewise.
29932         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
29933
29934         * utils2.c (ggc.h): Include.
29935         (build_call_raise): Call build_int_cst, not build_int_2.
29936
29937         * utils.c (gnat_init_decl_processing): Fix arg to
29938         build_common_tree_nodes.
29939         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
29940         (gnat_define_builtin): Set built_in_decls.
29941         (init_gigi_decls): Call build_int_cst, not build_int_2.
29942
29943         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
29944         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
29945         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
29946         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
29947         SET_TYPE_MODULE): Use them.
29948         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
29949         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
29950         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
29951         SET_TYPE_ADA_SIZE): Likewise.
29952         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
29953         (DECL_CONST_CORRESPONDING_VAR,
29954         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
29955         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
29956         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
29957         (TYPE_RM_SIZE_NUM): New macro.
29958         (TYPE_RM_SIZE): Modified to use above.
29959
29960         * cuintp.c: (build_cst_from_int): New function.
29961         (UI_To_gnu): Use it.
29962
29963         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
29964         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
29965         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
29966         MIN_EXPR for the size, copy it into new.
29967
29968 2004-09-01  Robert Dewar  <dewar@gnat.com>
29969
29970         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
29971         packed indexed component where array is an IN OUT formal. This
29972         generated garbage code previously.
29973
29974         * gnat_ugn.texi: Document -fverbose-asm
29975
29976         * gnat-style.texi: Minor updates (note that boolean constants and
29977         variables are joined with AND/OR rather than short circuit forms).
29978
29979 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
29980
29981         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
29982         it is an upward conversion of an untagged type with no representation
29983         change.
29984
29985 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
29986
29987         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
29988         System.Partition_Interface.
29989
29990         * checks.adb (Apply_Access_Checks): Do not generate checks when
29991         expander is not active (but check for unset reference to prefix of
29992         dereference).
29993
29994         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
29995         pragma Debug as an if statement with a constant condition, for
29996         consistent treatment of entity references contained within the
29997         enclosed procedure call.
29998
29999 2004-09-01  Vincent Celier  <celier@gnat.com>
30000
30001         * bindgen.adb: (Set_EA_Last): New procedure
30002         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30003         Set_EA_Last.
30004         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30005         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30006         linked without errors.
30007         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30008         ST and EA.
30009         (Gen_Exception_Table_C): Correct same bugs
30010
30011         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30012
30013         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30014         on Windows, make sure that the drive letter is in upper case.
30015
30016         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30017         Windows, when the drive letter is added and Case_Sensitive is True, the
30018         drive letter is forced to upper case.
30019
30020         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30021         to Options_2 for the call to MLib.Utl.Gcc.
30022
30023         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30024         directory separator when defining BASE_DIR.
30025
30026 2004-09-01  Pascal Obry  <obry@gnat.com>
30027
30028         * gprcmd.adb (Extend): Do not output trailing directory separator. This
30029         is not needed and it confuses Windows GNU/make which does not report
30030         directory terminated by a slash as a directory.
30031         (gprcmd): Idem for "pwd" internal command.
30032
30033         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30034         target names rewrite to fix regressions with recent version of
30035         GNU/make. Starting with GNU/make 3.80 the pipe character was not
30036         handled properly anymore.
30037
30038 2004-09-01  Andreas Schwab  <schwab@suse.de>
30039
30040         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30041         * raise.c [!IN_RTS]: Undef abort.
30042
30043 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
30044
30045         * utils2.c (build_allocator): Use ssize_int.
30046
30047         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30048
30049 2004-08-27  Andreas Schwab  <schwab@suse.de>
30050
30051         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30052
30053 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30054             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30055
30056         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30057
30058 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
30059
30060         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
30061         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30062         * utils.c (init_gigi_decls): Likewise.
30063         * utils2.c (build_call_raise, build_allocator): Likewise.
30064
30065 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
30066
30067         * utils.c (gnat_init_decl_processing): Adjust
30068         build_common_tree_nodes call.
30069
30070 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
30071
30072         * utils2.c (build_allocator): Use build_int_cst for negative
30073         size types.
30074
30075 2004-08-18  Richard Henderson  <rth@redhat.com>
30076
30077         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
30078
30079 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
30080
30081         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
30082         call.s
30083         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
30084         (gnat_to_gnu): Likewise.
30085
30086 2004-08-16  Pascal Obry  <obry@gnat.com>
30087
30088         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
30089         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
30090         option and not mdll anymore. Update comment.
30091
30092 2004-08-16  Pascal Obry  <obry@gnat.com>
30093
30094         * bld.adb (Put_Include_Project): Properly handle directory separators
30095         on Windows.
30096
30097 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
30098
30099         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
30100         decreasing the number of allocated junk nodes while searching for the
30101         appropriate subprogram.
30102
30103 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
30104
30105         * cuintp.c (UI_To_gnu): Use build_int_cst..
30106         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30107         * utils.c (init_gigi_decls): Likewise.
30108         * utils2.c (build_call_raise): Likewise.
30109
30110 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
30111
30112         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
30113         for a global aliased object with a variable size and an unconstrained
30114         nominal subtype, pretend there is no initializer if the one we have is
30115         incomplete, and avoid referencing an inexistant component in there. The
30116         part we have will be rebuilt anyway and the reference may confuse
30117         further operations.
30118
30119 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
30120
30121         * einfo.ads: Minor reformatting
30122
30123         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
30124         restrictions in the ALI if we only want to warn about violations.
30125
30126 2004-08-13  Vincent Celier  <celier@gnat.com>
30127
30128         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
30129         when creating a new Unit_Record in table Units.
30130
30131         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
30132         that are violated, if any.
30133
30134         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
30135         add directory separator if path already ends with a directory separator.
30136
30137 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30138
30139         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
30140         unit, this is an attempt to inline a construct that is not available in
30141         the current restricted mode, so abort rather than trying to continue.
30142
30143         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
30144         discriminants that rename those of the parent, recover names of
30145         original discriminants for the constraint on the full view of the
30146         parent.
30147         (Complete_Private_Subtype): Do not create a subtype declaration if the
30148         subtype is an itype.
30149
30150         * gnat_rm.texi: Added section on implementation of discriminated
30151         records with default values for discriminants.
30152
30153 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
30154
30155         PR ada/15601
30156         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
30157         the second operand is overloaded.
30158
30159 2004-08-10  Richard Henderson  <rth@redhat.com>
30160
30161         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
30162         add __builtin_alloca.
30163
30164 2004-08-10  Richard Henderson  <rth@redhat.com>
30165
30166         * config-lang.in (boot_language): Yes.
30167
30168 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
30169
30170         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
30171         from complaining on potential uninitialized reference.
30172         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
30173         new specification and test explicitly for non-zero return value.
30174
30175         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
30176         returning C.int, to avoid using a derived boolean type.
30177
30178         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
30179         Duplicate_Subexpr_No_Checks in preference to direct use of
30180         Remove_Side_Effects and New_Copy_Tree.
30181         Clear Comes_From_Source on prefix of 'Size attribute reference.
30182
30183         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
30184         g-socthi-vxworks.adb: Change calls to
30185         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
30186         and test explicitly for non-zero return value.
30187
30188         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
30189         (Is_Socket_In_Set): Declare imported function as returning C.int, to
30190         avoid using a derived boolean type.
30191
30192 2004-08-09  Albert Lee  <lee@gnat.com>
30193
30194         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
30195
30196 2004-08-09  Pascal Obry  <obry@gnat.com>
30197
30198         * gnat_ugn.texi: Document new way to build DLLs on Windows using
30199         GCC's -shared option.
30200
30201         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
30202         Options_2 parameter (options put after object files).
30203
30204 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
30205
30206         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
30207         ignore overflows on low and high bounds of an index to also account for
30208         differences in signedness between sizetype and gnu_index_subtype.
30209         These are as legitimate as the ones caused by a lower TYPE_PRECISION
30210         on sizetype.
30211
30212 2004-08-09  Robert Dewar  <dewar@gnat.com>
30213
30214         * s-solita.ads, s-solita.adb: Minor reformatting
30215
30216         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
30217         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
30218         obsolescent section
30219         Add note that No_Implicit_Conditionals does not suppress
30220         run time constraint checks.
30221
30222         * vms_conv.ads: Minor reformatting
30223
30224         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
30225         and necessary for following change).
30226         (Mark): Return new format Mark_Id containing sec stack address
30227         (Release): Use sec stack address from Mark_Id avoiding Self call
30228
30229         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
30230         pointer (cleanup and necessary for following change).
30231         Define Mark_Id as record containing address of secondary stack, that way
30232         Release does not need to find the stack again, decreasing the number of
30233         calls to Self and improving efficiency.
30234
30235         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
30236
30237         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
30238         case variable into the individual case branches when possible.
30239
30240         * sem_ch11.adb: Minor reformatting
30241
30242         * prj.ads: Correct spelling of suffixs
30243
30244         * prj-nmsc.adb: Minor reformatting
30245         Correct spelling suffixs throughout (also in identifiers)
30246
30247         * freeze.adb: Minor spelling correction
30248
30249         * exp_ch2.adb: Cleanups to handling of Current_Value
30250         (no functional effect).
30251
30252         * bld.adb: Correct spelling of suffixs
30253
30254         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
30255
30256 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
30257
30258         PR ada/15408
30259         * sem_ch7.adb (Install_Private_Declarations): In the body of the
30260         package or of a child, private entities are both immediately_visible
30261         and not hidden.
30262
30263 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
30264
30265         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
30266         there are no range checks on the value of the literal.
30267
30268         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
30269         wrapped is the triggering alternative of an asynchronous select, action
30270         statements mustbe inserted before the select itself.
30271
30272         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
30273         case where the prefix is a protected function call.
30274         (Resolve_Attribute, case 'Access): The attribute reference on a
30275         subprogram is legal in a generic body if the subprogram is declared
30276         elsewhere.
30277
30278 2004-08-09  Vincent Celier  <celier@gnat.com>
30279
30280         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
30281         languages, otherwise building the library may fail with unresolved
30282         symbols.
30283         (Compile_Sources): Do not build libraries if -c switch is used
30284
30285         * gnatlink.adb (Process_Args): New switches -M and -Mmap
30286         (Write_Usage): If map file creation is supported, output new switches
30287         -M and -Mmap.
30288         (Gnatlink): When -M is specified, add the necessary switch(es) to the
30289         gcc call, when supported.
30290
30291         * Makefile.in: Added indepsw.o to the object list for gnatlink
30292         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
30293
30294         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
30295         indepsw.adb, indepsw.ads: New files.
30296
30297 2004-08-09  Bernard Banner  <banner@gnat.com>
30298
30299         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
30300
30301         * Makefile.in: add section for vxworks x86
30302
30303 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
30304
30305         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
30306         per-object constrained components where the discriminant is of an
30307         Access type.
30308         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
30309         the parent initialization procedure for derived Unchecked_Unions.
30310         Instead, derived Unchecked_Unions build their own initialization
30311         procedure.
30312         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
30313         Check the body of the subprogram for details.
30314         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
30315         functions for derived Unchecked_Union types by introducing a condition.
30316         Allow the creation of TSS equality functions for Unchecked_Unions.
30317         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
30318         Add formal parameter Discr to function signature. Discr is used to
30319         control the generated case statement for Unchecked_Union types.
30320         (Make_Eq_If): Rename formal parameter Node to E in function signature.
30321
30322         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
30323         Unchecked_Unions.
30324         Check the body of the subprogram for details.
30325         (Expand_Composite_Equality): Augment composite type equality to include
30326         correct handling of Unchecked_Union components.
30327         (Expand_N_In): Add condition to detect illegal membership tests when the
30328         subtype mark is a constrained Unchecked_Union and the expression lacks
30329         inferable discriminants, and build a Raise_Program_Error node.
30330         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
30331         to detect types that contain components of unconstrained Unchecked_Union
30332         subtype. Add condition to detect equality between types that have an
30333         unconstrained Unchecked_Union component, and build a Raise_Program_Error
30334         node. Add condition to detect equality between Unchecked_Union types
30335         that lack inferable discriminants, and build a Raise_Program_Error node.
30336         Otherwise build a TSS equality function call.
30337         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
30338         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
30339         with the operand lacking inferable discriminants, and build a Raise_
30340         Program_Error node.
30341         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
30342         composite equality.
30343         (Has_Inferable_Discriminants): Implement new predicate for objects and
30344         expressions of Unchecked_Union type. Check the body of subprogram for
30345         details.
30346         (Has_Unconstrained_UU_Components): Add function
30347         Component_Is_Unconstrained_UU. It is used to detect whether a single
30348         component is of an unconstrained Unchecked_Union subtype. Add function
30349         Variant_Is_Unconstrained_UU. It is used to detect whether a single
30350         component inside a variant is of an unconstrained Unchecked_Union type.
30351
30352         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
30353         inferred discriminant values. Add condition to generate a case
30354         statement with an inferred discriminant as the switch.
30355         (Make_Component_List_Assign): Introduce a Boolean flag that determines
30356         the behaviour of the subprogram in the presence of an Unchecked_Union.
30357         Add condition to trigger the usage of the inferred discriminant value
30358         as the generated case statement switch.
30359         (Make_Field_Assign): Introduce a Boolean flag that determines the
30360         behaviour of the subprogram in the presence of an Unchecked_Union. Add
30361         condition to trigger the usage of the inferred discriminant value as
30362         the right-hand side of the generated assignment.
30363
30364         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
30365         parameter generation when dealing with Unchecked_Unions.
30366
30367         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
30368         checks for Unchecked_Unions.
30369
30370         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
30371
30372         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
30373         Raise_Program_Error nodes for the execution of Read and Write
30374         attributes of Unchecked_Union types and the execution of Input and
30375         Output attributes of Unchecked_Union types that lack default
30376         discriminant values.
30377
30378         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
30379         Unchecked_Union. Add procedure Check_Component. It is used to inspect
30380         per-object constrained components of Unchecked_Unions for being
30381         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
30382         check individual components withing a variant.
30383
30384         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
30385         comparison of Unchecked_Unions.
30386         (Resolve_Equality_OP): Remove guard that prevents equality between
30387         Unchecked_Unions.
30388
30389         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
30390         of component subtypes for Unchecked_Union components.
30391         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
30392         since it is the actual subtype.
30393
30394         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
30395         pass of Unchecked_Union subtypes as generic actuals to formal types
30396         that lack known_discriminant_parts or that are derived Unchecked_Union
30397         types, and do nothing. In any other case, produce an error message.
30398
30399         * sem_ch3.adb (Analyze_Component_Declaration): Add function
30400         Contains_POC. It determines whether a constraint uses the discriminant
30401         of an enclosing record type.
30402         Add condition to detect per-object constrained component and set the
30403         appropriate flag.
30404         (Derived_Type_Declaration): Remove guard that prevents derivation from
30405         Unchecked_Union types.
30406         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
30407         Union subtypes.
30408
30409         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
30410         references to Unchecked_Union discriminants.
30411
30412         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
30413         formal generation when dealing with Unchecked_Unions.
30414         (Set_Actual_Subtypes): Add condition to prevent generation of actual
30415         subtypes for Unchecked_Unions.
30416
30417         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
30418         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
30419         completions of discriminated partial views by Unchecked_Unions and
30420         produce an error message.
30421
30422 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30423
30424         * trans.c (struct stmt_group): New field, GLOBAL.
30425         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
30426         (struct elab_info): New struct.
30427         (elab_info_list, gnu_elab_proc_stack): New variables.
30428         (Compilation_Unit_to_gnu): New procedure.
30429         (gigi): Call it and also handle elaboration procs we've saved.
30430         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
30431         global field from parent.
30432         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
30433         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
30434         (start_stmt_group): Initialize global field from parent.
30435         (add_decl_expr): Set to global for current statement group.
30436         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
30437         post.
30438
30439         * utils.c (global_bindings_p): True when no current_function_decl; no
30440         longer check current_binding_level.
30441
30442 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
30443
30444         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
30445         choice.
30446
30447         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
30448
30449 2004-08-06  Andreas Schwab  <schwab@suse.de>
30450
30451         * utils.c (gnat_define_builtin): Remove second parameter of
30452         make_decl_rtl.
30453         (begin_subprog_body): Likewise.
30454
30455 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
30456
30457         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
30458         optimization, not supported by the tree-ssa back-end.
30459
30460 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
30461
30462         * s-mastop-irix.adb: Update comments.
30463
30464         * a-except.adb (Exception_Information): Raise Constraint_Error if
30465         exception Id is Null_Id.
30466         This is required behavior, which is more reliably and clearly checked
30467         at the top level interface level.
30468
30469 2004-07-26  Javier Miranda  <miranda@gnat.com>
30470
30471         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
30472         call if a component has no default_expression and the box is used.
30473
30474         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
30475         default_expression and you use box, it behaves as if you had declared a
30476         stand-alone object.
30477         (Resolve_Record_Aggregate): If a component has no default_expression and
30478         you use box, it behaves as if you had declared a stand-alone object.
30479
30480         * sem_ch10.adb (Install_Siblings): Do not make visible the private
30481         entities of private-with siblings.
30482
30483 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30484
30485         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
30486         for a component of an itype, set the parent pointer for analysis,
30487         there is no list in which to insert it.
30488
30489         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
30490         bona-fide renamings, not for inherited operations.
30491
30492         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
30493         actual for a formal that is an access parameter, create local
30494         finalization list even if the expression is not an aggregate.
30495
30496 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30497
30498         PR ada/16213
30499         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
30500         Diagnose properly illegal subprogram renamings that are library units.
30501
30502 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30503
30504         PR ada/15588
30505         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
30506         conversion rewritten as an unchecked conversion, check that original
30507         expression is a variable.
30508
30509         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
30510         unchecked_conversion, create new node rather than rewriting in place,
30511         to preserve original construct.
30512
30513 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30514
30515         * gigi.h (gnat_expand_body): Deleted.
30516
30517         * Make-lang.in: (trans.o): Depends on function.h.
30518
30519         * misc.c: (gnat_expand_body): Moved to here.
30520
30521         * trans.c (gnat_expand_body_1): Deleted.
30522         (gnat_expand_body): Moved from here.
30523         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
30524         (add_stmt): Check for marked visited with global_bindings_p.
30525         (gnat_gimplify_expr, case COMPONENT_REF): New case.
30526         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
30527
30528         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
30529         VIEW_CONVERT_EXPR if not operation type.
30530
30531         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
30532         fat pointer.
30533
30534         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
30535         changes: reformatting of negation operators, removing unneeded
30536         inequality comparison with zero, converting equality comparisons with
30537         zero to negations, changing int/0/1 to bool/false/true, replace calls
30538         to gigi_abort with abort, and various other similar changes.
30539
30540 2004-07-26  Vincent Celier  <celier@gnat.com>
30541
30542         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
30543         "setup".
30544
30545         * make.adb (Gnatmake): Fail when a library is not present and there is
30546         no object directory.
30547
30548         * mlib-prj.adb (Check_Library): No need to check if the library needs
30549         to be rebuilt if there is no object directory, hence no object files
30550         to build the library.
30551
30552         * opt.ads (Setup_Projects): New Boolean flag.
30553
30554         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
30555         Location.
30556         Create directory when Kind /= "" and in "gnat setup". Report error if
30557         directory cannot be created.
30558         (Ada_Check): Create library interface copy dir if it does not exist
30559         and we are in "gnat setup".
30560         (Find_Sources): No error if in "gnat setup" and no Ada sources were
30561         found.
30562         (Language_Independent_Check): Create object directory, exec directory
30563         and/or library directory if they do not exist and we are in
30564         "gnat setup".
30565
30566         * vms_conv.ads: (Command_Type): New command Setup.
30567
30568         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
30569
30570         * vms_data.ads: Add qualifiers/switches for new built-in command
30571         "setup".
30572
30573 2004-07-25  Richard Henderson  <rth@redhat.com>
30574
30575         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
30576         DECL_IGNORED_P on RESULT_DECL.
30577
30578 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
30579
30580         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
30581         allocation and potentially overflowing update with
30582         Tailored_Exception_Information. Use the sec-stack free procedural
30583         interface to output Exception_Information instead.
30584
30585         * a-except.adb (To_Stderr): New subprogram for character, and string
30586         version moved from a-exextr to be visible from other separate units.
30587         (Tailored_Exception_Information): Remove the procedural version,
30588         previously used by the default Last_Chance_Handler and not any more.
30589         Adjust various comments.
30590
30591         * a-exexda.adb: Generalize the exception information procedural
30592         interface, to minimize the use of secondary stack and the need for
30593         local buffers when the info is to be output to stderr:
30594         (Address_Image): Removed.
30595         (Append_Info_Character): New subprogram, checking for overflows and
30596         outputing to stderr if buffer to fill is of length 0.
30597         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
30598         (Append_Info_Address, Append_Info_Exception_Name,
30599         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
30600         Append_Info_Basic_Exception_Traceback,
30601         Append_Info_Exception_Information): New subprograms.
30602         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
30603         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
30604         Exception_Info_Maxlength, Exception_Name_Length,
30605         Exception_Message_Length): New subprograms.
30606         (Exception_Information): Use Append_Info_Exception_Information.
30607         (Tailored_Exception_Information): Use
30608         Append_Info_Basic_Exception_Information.
30609         Export services for the default Last_Chance_Handler.
30610
30611         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
30612         other separate units.
30613
30614 2004-07-20  Vincent Celier  <celier@gnat.com>
30615
30616         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
30617
30618 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30619
30620         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
30621         emit itype references for the designated types of component types that
30622         are declared outside of the full record declaration, and that may
30623         denote a partial view of that record type.
30624
30625 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30626
30627         PR ada/15607
30628         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
30629         which is the designated type in an access component declaration, to the
30630         list of incomplete dependents of the parent type, to avoid elaboration
30631         issues with out-of-scope subtypes.
30632         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
30633         full view of the parent.
30634
30635 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30636
30637         PR ada/15610
30638         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
30639         entities that are hidden, such as references to generic actuals
30640         outside an instance.
30641
30642 2004-07-20  Javier Miranda  <miranda@gnat.com>
30643
30644         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
30645         support to the new notation.
30646         (Analyze_Selected_Component): Add call to Try_Object_Operation.
30647
30648 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
30649
30650         * s-taprob.adb: Adding the elaboration code required for initializing
30651         the tasking soft links that are common to the full and the restricted
30652         run times.
30653
30654         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
30655         restricted run time has been moved to the package
30656         System.Soft_Links.Tasking.
30657
30658         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
30659         restricted run time has been moved to the package
30660         System.Soft_Links.Tasking.
30661
30662         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
30663
30664         * s-solita.ads, s-solita.adb: New files.
30665
30666 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30667
30668         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
30669         Case_Statement_to_gnu): Split off from gnat_to_gnu.
30670         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
30671         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
30672         Exception_Handler_to_gnu_zcx): Likewise.
30673
30674 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
30675
30676         * gigi.h (builtin_function): Declare.
30677
30678 2004-07-15  Robert Dewar  <dewar@gnat.com>
30679
30680         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
30681         reformatting
30682
30683         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
30684         access values as an example of a warning.
30685
30686         * gnat_rm.texi: Document new attribute Has_Access_Values
30687
30688         * gnat-style.texi: Document that box comments belong on nested
30689         subprograms
30690
30691         * sem_util.ads (Has_Access_Values): Improved documentation
30692
30693         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
30694
30695         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
30696         (Process_Interface_Name): Call to this new procedure
30697         (Set_Extended_Import_Export_External_Name): Call to this new procedure
30698
30699         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
30700
30701         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
30702
30703         * einfo.ads: Minor comment typo fixed
30704
30705 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
30706
30707         * snames.adb: Add _atcb.
30708
30709         * snames.ads: Add Name_uATCB.
30710
30711         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
30712         (in the expanded code) when using the restricted run time.
30713
30714         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
30715         a in parameter in order to allow ATCBs to be preallocated (in the
30716         expanded code).
30717
30718         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
30719         order to allow ATCBs to be preallocated. In case of error, the ATCB is
30720         deallocated in System.Tasking.Stages.
30721
30722         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
30723         order to allow ATCBs to be preallocated.
30724
30725         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
30726         here. It was previously done in Initialize_ATCB.
30727
30728         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
30729
30730         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
30731         Restricted run time.
30732
30733         * exp_ch3.adb: When using the Restricted run time, pass the
30734         preallocated Ada_Task_Control_Block when creating a task.
30735
30736 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
30737
30738         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
30739         function call that is itself an actual in an enclosing call, diagnose
30740         problem here rather than assuming that resolution will catch it.
30741
30742         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
30743         the local copy of a generic unit for a formal package, and the generic
30744         is a child unit, install private part of ancestors before compiling
30745         private part of spec.
30746
30747         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
30748         use scope entities rather than tree structures, to handle properly
30749         parent units that are instances rewritten as bodies for inlining
30750         purposes.
30751
30752         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
30753         Remove_Parents): Handle properly a parent unit that is an
30754         instantiation, when the unit has been rewritten as a body for inlining
30755         purposes.
30756
30757         * par.adb (Goto_List): Global variable to collect goto statements in a
30758         given unit, for use in detecting natural loops.
30759
30760         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
30761         use in detecting natural loops.
30762
30763         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
30764         backwards goto's, and rewrite as a infinite loop, to improve locality
30765         of temporaries.
30766
30767         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
30768         subcomponent that includes an indexed reference, to prevent the
30769         generation of copies that would miscompile the desired assignment
30770         statement.
30771         (Build_Task_Image_Decls): Add a numeric suffix to
30772         generated name for string variable, to avoid spurious conflicts with
30773         the name of the type of a single protected object.
30774
30775         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
30776         loop with an explicit exit statement, to avoid generating an
30777         out-of-range value with 'Succ leading to spurious constraint_errors
30778         when compiling with -gnatVo.
30779
30780 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
30781
30782         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
30783         might not be analyzed yet, even if its Etype is already set (case of an
30784         unchecked conversion built using Unchecked_Convert_To, for example).
30785         If the prefix has already been analyzed, this will be a nop anyway.
30786
30787         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
30788         controller type, or an assignment of a record type with controlled
30789         components, copy only user data, and leave the finalization chain
30790         pointers untouched.
30791
30792 2004-07-15  Vincent Celier  <celier@gnat.com>
30793
30794         * make.adb (Collect_Arguments): Improve error message when attempting
30795         to compile a source not part of any project, when -x is not used.
30796
30797         * prj.ads: (Defined_Variable_Kind): New subtype
30798
30799         * prj-attr.adb (Register_New_Package): Two new procedures to register
30800         a package with or without its attributes.
30801         (Register_New_Attribute): Mew procedure to register a new attribute in a
30802         package.
30803         New attribute oriented subprograms: Attribute_Node_Id_Of,
30804         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30805         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30806         Next_Attribute.
30807         New package oriented subprograms: Package_Node_Id_Of,
30808         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30809
30810         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
30811         type.
30812         (Package_Node_Id): Now a private, self initialized type
30813         (Register_New_Package): New procedure to register a package with its
30814         attributes.
30815         New attribute oriented subprograms: Attribute_Node_Id_Of,
30816         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30817         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30818         Next_Attribute.
30819         New package oriented subprograms: Package_Node_Id_Of,
30820         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30821
30822         * prj-dect.adb (Parse_Attribute_Declaration,
30823         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
30824
30825         * prj-makr.adb (Make): Parse existing project file before creating
30826         other files. Fail if there was an error during parsing.
30827
30828         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
30829         new spec of Prj.Attr.
30830
30831         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
30832         to new spec of Prj.Attr.
30833
30834 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30835
30836         * utils2.c: Fix typo in comment.
30837
30838 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30839
30840         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
30841         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
30842
30843 2004-07-14  Andreas Schwab  <schwab@suse.de>
30844
30845         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
30846
30847 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30848
30849         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
30850         object type.
30851         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
30852         TYPE_STUB_DECL.
30853
30854         * misc.c (gnat_types_compatible_p): New function.
30855         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
30856         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
30857
30858         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
30859         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
30860         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
30861         (mark_visited): Don't mark dummy type.
30862         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
30863         parameter, we must remove any LJM building from GNU_NAME.
30864         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
30865         (pos_to_constructor): Use int_const_binop.
30866         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
30867         PARM_DECL.
30868
30869         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
30870         (gnat_pushlevel): Set TREE_USE on BLOCK node.
30871         (gnat_install_builtins): Add __builtin_memset.
30872
30873 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
30874
30875         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
30876         for a renaming, stabilize the initialization expression if we are at a
30877         local level.  At the local level, uses of the renaming may be performed
30878         by a direct dereference of the initializing expression, and we don't
30879         want possible variables there to be evaluated for every use.
30880
30881         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
30882         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
30883         them on the way.  Account for the fact that we may introduce side
30884         effects in the process.
30885
30886 2004-07-13  Richard Henderson  <rth@redhat.com>
30887
30888         * misc.c (default_pass_by_ref): Use pass_by_reference.
30889
30890 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
30891
30892         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
30893         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
30894
30895 2004-07-08  Richard Henderson  <rth@redhat.com>
30896
30897         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
30898         commentary.
30899
30900 2004-07-06  Vincent Celier  <celier@gnat.com>
30901
30902         * vms_conv.ads: Minor reformatting.
30903         Alphabetical order for enumerated values of type Command_Type, to have
30904         the command in alphabetical order for the usage.
30905
30906         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
30907         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
30908
30909         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
30910
30911         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
30912         (Add_Archive_Path): Only add the global archive if there is one.
30913         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
30914         or not any object file to put in the global archive, and don't build
30915         a global archive if there is none.
30916         (X_Switches): New table
30917         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
30918         in the X_Switches table, if any.
30919         (Initialize): Make sure the X_Switches table is empty
30920         (Scan_Arg): Record -X switches in table X_Switches
30921
30922         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
30923
30924         * make.adb: Minor comment fix
30925
30926         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
30927         invoked with directory information, add the directory in front of the
30928         path.
30929
30930         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
30931         invoked with directory information, add the directory in front of the
30932         path.
30933
30934         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
30935         when Keep_Temporary_Files is False.
30936         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
30937         directory information, add the directory in front of the path.
30938         When not on VMS, handle new switch -dn before the command to set
30939         Keep_Temporary_Files to True.
30940         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
30941         everywhere.
30942
30943         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
30944         invoked with directory information, add the directory in front of the
30945         path.
30946
30947 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
30948
30949         * snames.ads, snames.adb (Name_Stub): New name for the distributed
30950         systems annex.
30951
30952         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
30953         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
30954
30955         * g-socket.adb (To_Timeval): Fix incorrect conversion of
30956         Selector_Duration to Timeval for the case of 0.0.
30957
30958         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
30959         documentation from Evolve_And_Then.
30960
30961 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
30962
30963         * s-taprop-tru64.adb, s-taprop-os2.adb,
30964         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
30965
30966 2004-07-06  Robert Dewar  <dewar@gnat.com>
30967
30968         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
30969         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
30970         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
30971         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
30972         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
30973         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
30974         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
30975         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
30976         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
30977         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
30978         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
30979         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
30980         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
30981         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
30982         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
30983         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
30984         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
30985         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
30986         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
30987         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
30988         vms_data.ads: Minor reformatting,
30989         Fix bad box comment format.
30990
30991         * gnat_rm.texi: Fix minor grammatical error
30992
30993         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
30994
30995         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
30996         more cases of discriminated records to be recognized as not needing a
30997         secondary stack.
30998         (Has_Access_Values): New function.
30999
31000         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31001
31002         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31003         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31004         with LRM terminology).
31005         Change terminology in comments primitive type => elementary type.
31006
31007 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31008
31009         PR ada/15602
31010         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31011         parameters do not impose any requirements on the presence of a body.
31012
31013 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31014
31015         PR ada/15593
31016         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31017         compilation unit and is in an open scope at the point of instantiation,
31018         assume that a body may be present later.
31019
31020 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
31021
31022         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31023         Improve error message when specified size is not supported.
31024
31025         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31026         is never a primitive operation.
31027
31028 2004-07-05  Andreas Schwab  <schwab@suse.de>
31029
31030         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31031         RECORD_OR_UNION_CHECK.
31032         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31033
31034 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
31035
31036         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31037         dependency on xgnatugn, instead build it via a submake.
31038         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31039
31040 2004-07-04  Richard Henderson  <rth@redhat.com>
31041
31042         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31043
31044 2004-07-01  Richard Henderson  <rth@redhat.com>
31045
31046         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31047         * utils.c (max_size): Likewise.
31048
31049 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31050
31051         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31052         and rest_of_type_compilation; add arg to create_*_decl.
31053         (annotate_decl_with_node): Deleted.
31054         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31055         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31056         (get_current_block_context, gnat_pushdecl): New declarations.
31057         (gnat_init_stmt_group): Likewise.
31058         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
31059         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
31060         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
31061         (gnat_init): Call gnat_init_stmt_group.
31062         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
31063         (gnu_pending_elaboration_list): Deleted.
31064         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
31065         (gigi): Rearrange initialization calls and move some to last above.
31066         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
31067         Delete calls to add_decl_expr; add arg to create_*_decl.
31068         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
31069         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
31070         begin_subprog_body and call it.
31071         Don't push and pop ggc context.
31072         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
31073         (add_stmt): Remove handling of DECL_EXPR from here.
31074         If not in function, mark visited.
31075         (add_decl_expr): Put global at top level.
31076         Check for cases of DECL_INITIAL we have to handle here.
31077         (process_type): Add extra arg to create_type_decl.
31078         (build_unit_elab): Rework to just gimplify.
31079         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
31080         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
31081         (get_pending_elaborations, pending_elaborations_p): Likewise.
31082         (push_pending_elaborations, pop_pending_elaborations): Likewise.
31083         (get_elaboration_location, insert_elaboration_list): Likewise.
31084         (gnat_binding_level): Renamed from ada_binding_level.
31085         (init_gnat_to_gnu): Don't clear pending_elaborations.
31086         (global_bindings_p): Treat as global if no current_binding_level.
31087         (set_current_block_context): New function.
31088         (gnat_pushdecl): Renamed from pushdecl; major rework.
31089         All callers changed.
31090         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
31091         (finish_record_type): Call call pushdecl for stub decl.
31092         (function_nesting_depth): Deleted.
31093         (begin_subprog_body): Delete obsolete code.
31094         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
31095
31096 2004-06-28  Robert Dewar  <dewar@gnat.com>
31097
31098         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31099         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
31100         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
31101         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
31102         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
31103
31104         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
31105         deal with problem of inefficient slices on machines with strict
31106         alignment, when the slice is a component of a composite.
31107
31108         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
31109         machines, we need the check there as well.
31110
31111 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31112
31113         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
31114         determine safe copying direction for overlapping slice assignments
31115         when component is controlled.
31116
31117         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
31118         formal derived type in the actual for a formal package are visible in
31119         the enclosing instance.
31120
31121 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
31122
31123         PR ada/15600
31124         * sem_util.adb (Trace_Components): Diagnose properly an illegal
31125         circularity involving a private type whose completion includes a
31126         self-referential component.
31127         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
31128         renaming or an instantiation from an implicit derived operation.
31129
31130 2004-06-28  Pascal Obry  <obry@gnat.com>
31131
31132         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
31133         DLL.
31134         (Library_File_Name_For): Idem.
31135
31136 2004-06-28  Matthew Gingell  <gingell@gnat.com>
31137
31138         * g-traceb.ads: Add explanatory note on the format of addresses
31139         expected by addr2line.
31140
31141 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
31142
31143         * Makefile.in: Force debugging information on s-tasdeb.adb,
31144         a-except.adb and s-assert.adb needed by the debugger.
31145
31146 2004-06-28  Vincent Celier  <celier@gnat.com>
31147
31148         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
31149         Need_To_Build_Lib.
31150         (Gnatmake): Ditto.
31151
31152         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
31153
31154         * prj.adb: Minor reformatting
31155         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
31156
31157         * prj.ads: Comment updates
31158         Minor reformatting
31159         (Project_Data): Change Flag1 to Need_To_Build_Lib.
31160         Remove Flag2: not used.
31161
31162         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
31163         declaration.
31164
31165         * gnat_ugn.texi: Put a "null;" declaration in one project file example
31166
31167         * gnat_rm.texi: Document Empty declarations "null;".
31168
31169         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
31170         front of the linker options.
31171         (Link_Foreign): Put the global archives and the libraries in front of
31172         the linker options.
31173
31174 2004-06-28  Javier Miranda  <miranda@gnat.com>
31175
31176         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
31177         (RTU_Loaded): Code cleanup
31178         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
31179         withed predefined units.
31180
31181         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
31182         explicitly withed predefined units.
31183         Fix typo in comment
31184
31185         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
31186         explicitly withed predefined units.
31187
31188 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31189
31190         * ada-tree.def (DECL_STMT): Deleted.
31191         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
31192         (DECL_STMT_VAR): Deleted.
31193         * decl.c: add_decl_stmt now add_decl_expr.
31194         * gigi.h: Likewise.
31195         * trans.c: Likewise.
31196         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31197         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
31198         (add_stmt): Only handle padded type here.
31199         (add_stmt_with_node): Allow gnat_node to not be present.
31200         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
31201         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
31202         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
31203         make a SAVE_EXPR for the entire fat pointer.
31204         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
31205         (create_index_type): Make a DECL_EXPR.
31206         (end_subprog_body): Don't call allocate_struct_function here but
31207         do clear cfun.
31208
31209 2004-06-25  Pascal Obry  <obry@gnat.com>
31210
31211         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
31212         Relocatable from Build_Dynamic_Library call.
31213
31214         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
31215         Relocatable are now synonym.
31216
31217         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
31218
31219         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
31220         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
31221         call.
31222
31223         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
31224         Lib_Address and Relocatable.
31225         (Default_DLL_Address): Removed.
31226
31227         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31228         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31229         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
31230         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
31231         (Default_DLL_Address): Removed.
31232
31233         * mlib-tgt-mingw.adb: Ditto.
31234         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
31235
31236         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
31237         the initial thread stack size.
31238
31239         * a-strmap.ads: Move package L to private part as it is not used in
31240         the spec. Found while reading code.
31241
31242 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
31243
31244         * tracebak.c: Introduce support for a GCC infrastructure based
31245         implementation of __gnat_backtrace.
31246
31247         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
31248         any more. Use accessors instead. This eases maintenance and relaxes
31249         some alignment constraints.
31250         (_GNAT_Exception structure): Remove the Ada specific fields
31251         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
31252         a-exexpr.adb.
31253         (is_handled_by, __gnat_eh_personality): Replace component references to
31254         exception structure by use of the new accessors.
31255
31256         * init.c (__gnat_initialize): Adjust comments to match the just
31257         reverted meaning of the -static link-time option.
31258
31259         * adaint.c (convert_addresses): Arrange not to define a stub for
31260         mips-irix any more, as we now want to rely on a real version from a
31261         recent libaddr2line.
31262
31263         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
31264         the personality routine can use them and not have to rely on a C
31265         counterpart of the record anymore. This simplifies maintenance and
31266         relaxes the constraint of having Standard'Maximum_Alignment match
31267         BIGGEST_ALIGNMENT.
31268         Update comments, and add a section on the common header alignment issue.
31269
31270 2004-06-25  Geert Bosch  <bosch@gnat.com>
31271
31272         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
31273         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
31274
31275 2004-06-25  Robert Dewar  <dewar@gnat.com>
31276
31277         * gnat_rm.texi: Fix section on component clauses to indicate that the
31278         restriction on byte boundary placement still applies for bit packed
31279         arrays.
31280         Add comment on stack usage from Initialize_Scalars
31281
31282         * gnat_ugn.texi: Add documentation for -gnatyLnnn
31283
31284         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
31285         limiting nesting level.
31286
31287         * usage.adb: Add line for -gnatyLnnn switch
31288
31289         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
31290         sem_ch13.adb, exp_aggr.adb: Minor reformatting
31291
31292         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
31293         type as well as on the subtype. This corrects a problem in freeze in
31294         setting alignments of atomic types.
31295
31296         * sem_eval.ads: Minor comment typo fixed
31297
31298         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
31299         level.  Minor reformatting.
31300
31301         * fname.adb (Is_Predefined_File_Name): Require a letter after the
31302         minus sign. This means that file names like a--b.adb will not be
31303         considered predefined.
31304
31305         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
31306         record Test new flag and give diagnostic for bad component clause.
31307         (Freeze_Entity): Set alignment of array from component alignment in
31308         cases where this is safe to do.
31309
31310         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
31311         arrays.
31312
31313         * cstand.adb: (Create_Standard): Set alignment of String to 1
31314
31315         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
31316
31317         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
31318         code in the common constrained array cases.
31319
31320         * a-storio.adb: Change implementation to avoid possible alignment
31321         problems on machines requiring strict alignment (data should be moved
31322         as type Buffer, not type Elmt).
31323
31324         * checks.adb (Apply_Array_Size_Check): Improve these checks by
31325         killing the overflow checks which we really do not need (64-bits is
31326         enough).
31327
31328 2004-06-25  Vincent Celier  <celier@gnat.com>
31329
31330         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
31331         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
31332         inconditionally for the main project.
31333         (Recursive_Add_Archives.Add_Archive_Path): New procedure
31334         (Link_Executables.Check_Time_Stamps): New procedure
31335         (Link_Executables.Link_Foreign): New procedure
31336         Changes made to reduce nesting level of this package
31337         (Check): New procedure
31338         (Add_Switches): When not in quiet output, check that a switch is not
31339         the concatenation of several valid switches. If it is, issue a warning.
31340         (Build_Global_Archive): If the global archive is rebuilt, linking need
31341         to be done.
31342         (Compile_Sources): Rebuilding a library archive does not imply
31343         rebuilding the global archive.
31344         (Build_Global_Archive): New procedure
31345         (Build_Library): New name for Build_Archive, now only for library
31346         project
31347         (Check_Archive_Builder): New procedure
31348         (Create_Global_Archive_Dependency_File): New procedure
31349         (Gprmake): Call Build_Global_Archive before linking
31350         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
31351         throughout.
31352         (Scan_Arg): Display the Copyright notice when -v is used
31353
31354         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
31355         for gnatls.
31356
31357         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
31358         COMPILE.
31359         Add new GNAT LIST qualifier /FILES=
31360         Added qualifier /DIRECTORY= to GNAT METRIC
31361         Added qualifier /FILES= to GNAT METRIC
31362         Added qualifier /FILES to GNAT PRETTY
31363
31364         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
31365         to take into account both versions of the switch.
31366
31367         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
31368         always be the last switch to the gcc driver. Disable switch storing so
31369         that switches automatically added by the gcc driver are not put in the
31370         ALI file.
31371
31372         * prj.adb (Project_Empty): Take into account changes in components of
31373         Project_Data.
31374
31375         * prj.ads (Languages_Processed): New enumaration value All_Languages.
31376
31377         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
31378         used. Split Boolean component Ada_Sources_Present in two Boolean
31379         components Ada_Sources_Present and Other_Sources_Present.
31380         Minor reformatting
31381
31382         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
31383         instead of Sources_Present.
31384         (Set_Ada_Paths.Add.Recursive_Add): Ditto
31385
31386         * prj-nmsc.adb: Minor reformatting
31387         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
31388         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
31389         Check_Ada_Naming_Scheme.
31390         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
31391         throughout.
31392
31393         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
31394         In_Limited.
31395         Make sure that all cycles where there is at least one "limited with"
31396         are detected.
31397         (Parse_Single_Project): New Boolean parameter In_Limited
31398
31399         * prj-proc.adb (Recursive_Check): When Process_Languages is
31400         All_Languages, call first Prj.Nmsc.Ada_Check, then
31401         Prj.Nmsc.Other_Languages_Check.
31402
31403         * prj-proc.adb (Process): Use Ada_Sources_Present or
31404         Other_Sources_Present (instead of Sources_Present) depending on
31405         Process_Languages.
31406
31407         * lang-specs.h: Keep -g and -m switches in the same order, and as the
31408         last switches.
31409
31410         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
31411         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
31412         False.
31413         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
31414         False.
31415
31416         * lib.ads (Disable_Switch_Storing): New procedure.
31417
31418         * make.adb: Modifications to reduce nesting level of this package.
31419         (Check_Standard_Library): New procedure
31420         (Gnatmake.Check_Mains): New procedure
31421         (Gnatmake.Create_Binder_Mapping_File): New procedure
31422         (Compile_Sources.Compile): Add switch -gnatez as the last option
31423         (Display): Never display -gnatez
31424
31425         * Makefile.generic:
31426         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
31427
31428         * gnatcmd.adb (Check_Project): New function
31429         (Process_Link): New procedure to reduce nesting depth
31430         (Check_Files): New procedure to reduce the nesting depth.
31431         For GNAT METRIC, include the inherited sources in extending projects.
31432         (GNATCmd): When GNAT LS is invoked with a project file and no files,
31433         add the list of files from the sources of the project file. If this list
31434         is too long, put it in a temp text files and use switch -files=
31435         (Delete_Temp_Config_Files): Delete the temp text file that contains
31436         a list of source for gnatpp or gnatmetric, if one has been created.
31437         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
31438         in the project file is too large, create a temporary text file that
31439         list them and pass it to the tool with "-files=<temp text file>".
31440         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
31441
31442         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
31443         generated file is in not in Ada.
31444
31445         * gnatls.adb: Remove all parameters And_Save that are no longer used.
31446         (Scan_Ls_Arg): Add processing for -files=
31447         (Usage): Add line for -files=
31448
31449         * g-os_lib.adb (On_Windows): New global constant Boolean flag
31450         (Normalize_Pathname): When on Windows and the path starts with a
31451         directory separator, make sure that the resulting path will start with
31452         a drive letter.
31453
31454         * clean.adb (Clean_Archive): New procedure
31455         (Clean_Project): When there is non-Ada code, delete the global archive,
31456         the archive dependency files, the object files and their dependency
31457         files, if they exist.
31458         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
31459
31460 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
31461
31462         * sinfo.ads: Fix typo in comment.
31463
31464         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
31465         the TSS for remote access-to-subprogram types, since these TSS are
31466         always present once the type has been analyzed.
31467         (RAS_E_Dereference): Same.
31468
31469         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
31470         reference raises Bad_Attribute, mark the reference as analyzed so the
31471         node (and any children resulting from rewrites that could have occurred
31472         during the analysis that ultimately failed) is not analyzed again.
31473
31474         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
31475
31476         * exp_dist.adb: Minor comment fix.
31477
31478         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
31479         type is an anonymous access type, no unchecked deallocation of the
31480         allocated object can occur. If the object is controlled, attach it with
31481         a count of 1. This allows attachment to the Global_Final_List, if
31482         no other relevant list is available.
31483         (Get_Allocator_Final_List): For an anonymous access type that is
31484         the type of a discriminant or record component, the corresponding
31485         finalisation list is the one of the scope of the type.
31486
31487 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
31488
31489         * sem_ch3.adb (Replace_Type): When computing the signature of an
31490         inherited subprogram, use the first subtype if the derived type
31491         declaration has no constraint.
31492
31493         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
31494         before applying previous optimization. Minor code cleanup.
31495
31496         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
31497         placed at the beginning of an unpacked record without explicit
31498         alignment, a slice of it will be aligned and does not need a copy when
31499         used as an actual.
31500
31501 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
31502
31503         PR ada/15591
31504         PR ada/15592
31505         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
31506         reference is written with expressions mimicking parameters.
31507
31508 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
31509
31510         PR ada/15589
31511         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
31512         STEP 2a. The constraints of a full type declaration of a derived record
31513         type are checked for conformance with those declared in the
31514         corresponding private extension declaration. The message
31515         "not conformant with previous declaration" is emitted if an error is
31516         detected.
31517
31518 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
31519
31520         * g-traceb.ads: Document the need for -E binder switch in the spec.
31521
31522         * g-trasym.ads: Document the need for -E binder switch in the spec.
31523
31524 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
31525
31526         * sem_prag.adb: Add handling of pragma Detect_Blocking.
31527
31528         * snames.h, snames.ads, snames.adb: Add entry for pragma
31529         Detect_Blocking.
31530
31531         * s-rident.ads: Change reference to pragma Detect_Blocking.
31532
31533         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
31534         system.ads.
31535
31536         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
31537         to indicate whether pragma Detect_Blocking is active.
31538
31539         * par-prag.adb: Add entry for pragma Detect_Blocking.
31540
31541         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
31542         of not handling WITH.
31543         Note that this replaces the previous update which was incorrect.
31544
31545 2004-06-25  Javier Miranda  <miranda@gnat.com>
31546
31547         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
31548         use-clauses to have a clean environment.
31549
31550         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
31551         the installation of the use-clauses to stablish a clean environment in
31552         case of compilation of a separate unit; otherwise the call to
31553         use_one_package is protected by the barrier Applicable_Use.
31554
31555         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
31556         the installation of the use-clauses to stablish a clean environment in
31557         case of compilation of a separate unit.
31558         (End_Use_Clauses): Minor comment cleanup.
31559
31560 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
31561
31562         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
31563
31564 2004-06-23  Richard Henderson  <rth@redhat.com>
31565
31566         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
31567
31568 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31569
31570         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
31571         now bool instead of int.
31572         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
31573         * trans.c (gnu_switch_label_stack): New function.
31574         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
31575         elaboration of renamed entity returns.
31576         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
31577         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
31578         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
31579         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
31580         DECL_SIZE_UNIT and simplify variable-sized case.
31581         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31582         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
31583         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
31584         (build_unit_elab): Disable for now.
31585         * utils.c (mark_visited): New function.
31586         (pushdecl): Walk tree to call it for global decl.
31587         (update_pointer_to): Update all variants of pointer and ref types.
31588         Add arg to COMPONENT_REF.
31589         (convert): Likewise.
31590         Move check for converting between variants lower down.
31591         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
31592         (build_allocator): Don't force type of MODIFY_EXPR.
31593         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
31594         put_var_into_stack.
31595
31596 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31597
31598         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
31599         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
31600         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
31601         subprograms.
31602         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
31603         all callers changed.
31604         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
31605         the way that EXIT_STMT finds the loop label.
31606         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
31607         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
31608         (add_stmt): Use annotate_with_locus insted of setting directly.
31609         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
31610         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
31611         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
31612         (build_vms_descriptor): Add extra args to ARRAY_REF.
31613         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
31614         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
31615         New cases.
31616         (build_binary_op): Don't make explicit CONVERT_EXPR.
31617         Add extra rgs to ARRAY_REF.
31618
31619 2004-06-14  Pascal Obry  <obry@gnat.com>
31620
31621         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
31622         Windows.  Fix minor typo.
31623
31624         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
31625         which is now supported on Windows. With this implementation using the
31626         Library Project feature is no different on Windows than on UNIX.
31627
31628 2004-06-14  Vincent Celier  <celier@gnat.com>
31629
31630         * makegpr.adb (Compile_Sources): Nothing to do when there are no
31631         non-Ada sources.
31632
31633         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
31634
31635         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
31636         found, show the project name and the path of the previously parsed
31637         project file.
31638
31639 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
31640
31641         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
31642         array, avoid copying the actual before the call.
31643
31644 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
31645
31646         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
31647         Instead, allocate memory on worst-case alignment assumptions, and then
31648         return an aligned address within the allocated zone.
31649
31650 2004-06-14  Robert Dewar  <dewar@gnat.com>
31651
31652         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
31653         elab entities in predefined units in No_Run_Time_Mode.
31654         (Gen_Adainit_C): Same fix
31655         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
31656         units in No_Run_Time_Mode
31657         (Gen_Elab_Calls_C): Same fix
31658
31659         * symbols-vms-alpha.adb: Minor reformatting
31660
31661         * g-debpoo.ads: Minor reformatting
31662
31663         * lib.adb (In_Same_Extended_Unit): Version working on node id's
31664
31665         * lib.ads (In_Same_Extended_Unit): Version working on node id's
31666
31667         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
31668         working on nodes.
31669
31670         * make.adb: Minor reformatting
31671
31672         * par-ch12.adb: Minor reformatting
31673
31674         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
31675
31676         * prj-strt.adb: Minor reformatting
31677
31678         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
31679         be more general.
31680
31681         * sem_attr.adb: Minor reformatting
31682
31683         * sem_ch7.adb: Minor reformatting
31684
31685         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
31686         for type in the same unit as the object declaration.
31687
31688         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
31689         static string expressions and not just string literals.
31690         Minor reformatting
31691         (Set_Warning): Reset restriction warning flag for restriction pragma
31692         Implement pragma Profile_Warnings
31693         Implement pragma Profile (Restricted)
31694         Give obolescent messages for old restrictions and pragmas
31695
31696         * snames.h, snames.ads, snames.adb: Add new entry for pragma
31697         Profile_Warnings.
31698
31699         * s-rident.ads: Add declarations for restrictions required by profile
31700         Restricted and profile Ravenscar.
31701
31702         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
31703
31704         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
31705         configuration pragmas.
31706
31707 2004-06-11  Vincent Celier  <celier@gnat.com>
31708
31709         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
31710         gnatsym, when symbol policy is Restricted.
31711
31712         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
31713         gnatsym, when symbol policy is Restricted.
31714
31715         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
31716         read the symbol file.
31717         (Finalize): Fail in symbol policy Restricted if a symbol in the original
31718         symbol file is not in the object files. Do not create a new symbol file
31719         when symbol policy is Restricted.
31720
31721         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
31722         in Scng.
31723
31724         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
31725         Restricted.
31726         (Usage): Line for new switch -R
31727
31728         * make.adb (Initialize): When the platform is not VMS, add the
31729         directory where gnatmake is invoked in the front of the path, if
31730         gnatmake is invoked with directory information.  Change the Scan_Args
31731         while loop to a for loop.
31732         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
31733         if Depth is equal or greater than the proposed depth, there is nothing
31734         to do.
31735         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
31736         instead of 0.
31737
31738         * prj.ads: Add new symbol policy Restricted.
31739
31740         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
31741         with the new parameters Check_All_Labels and Case_Location.
31742
31743         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
31744         (Library_Symbol_File needs to be defined).
31745
31746         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
31747         and Case_Location If Check_All_Labels is True, check that all values of
31748         the string type are used, and output warning(s) if they are not.
31749
31750         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
31751         and Case_Location.
31752
31753         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
31754
31755         * gnat_ugn.texi: Update documentation about the library directory in
31756         Library Projects.
31757
31758         * makegpr.adb (Display_Command): In verbose mode, also display the
31759         value of the CPATH env var, when the compiler is gcc.
31760         (Initialize): Change the Scan_Args while loop to a for loop
31761         (Compile_Individual_Sources): Change directory to object directory
31762         before compilations.
31763
31764         * symbols.ads: New symbol policy Restricted.
31765
31766 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
31767
31768         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
31769         is now taken care of internally in the Exception_Propagation package
31770         and does not require clients assistance any more.
31771
31772         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
31773         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
31774         functions. Helpers to maintain a predicate required in the handling of
31775         occurrence transfer between tasks.
31776         This is now handled internally and does not require clients assistance
31777         for the setup/propagate separation anymore.
31778         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
31779         allocation strategy, handle the Setup_And_Not_Propagated predicate and
31780         document.
31781
31782         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
31783         raise_after_setup, now that everything is handled internally within the
31784         setup/propagation engine.
31785
31786 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
31787
31788         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
31789         Add additional conditions for the case of an actual being a simple
31790         name or literal. Improve inlining by preventing the generation
31791         of temporaries with a short lifetime (one use).
31792
31793 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
31794
31795         PR ada/15587
31796         * einfo.ads: Minor comment updates for Has_Completion and
31797         E_Constant list of flags.
31798
31799         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
31800         and constant redeclarations now set the Has_Completion flag of their
31801         defining identifiers.
31802
31803         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
31804         Inspect_Deferred_Constant_Completion.
31805         Used to detect private deferred constants that have not been completed
31806         either by a constant redeclaration or pragma Import. Emits error message
31807         "constant declaration requires initialization expression".
31808
31809         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
31810         completes a deferred constant.
31811
31812 2004-06-11  Geert Bosch  <bosch@gnat.com>
31813
31814         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
31815
31816         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
31817         calculating exponent for scaling denormal numbers.
31818         (Leading_Part): Properly raise Constraint_Error for zero or negative
31819         Adjustment.
31820         (Remainder): Properly raise Constraint_Error for zero divisor.
31821
31822 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
31823
31824         * sem_util.adb: Minor reformatting.
31825
31826         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
31827         dereference when accessing the entry parameter record.
31828         (Check_Array_Type): Always check for possible implicit dereference.
31829         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31830         Abort if a pointer is still present (denoting that an implicit
31831         dereference was left in the tree by the front-end).
31832
31833         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
31834         dereference when accessing the entry parameter record.
31835         (Check_Array_Type): Always check for possible implicit dereference.
31836         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31837         Abort if a pointer is still present (denoting that an implicit
31838         dereference was left in the tree by the front-end).
31839
31840 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
31841
31842         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
31843         message, like the compiler itself does. Easier to parse the output.
31844
31845         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
31846
31847         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
31848         be base names, and not includes directories.
31849
31850 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
31851
31852         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
31853         so that dependencies are properly taken into account by make.
31854
31855 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
31856
31857         PR ada/15622
31858         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
31859         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
31860
31861 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
31862
31863         * Makefile.in (install-gnatlib): install target-specific run-time files.
31864
31865         * Make-lang.in: Remove obsolete targets.
31866
31867 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
31868
31869         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
31870         specification, to catch misuses of program unit names.
31871
31872         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
31873         superfluous conversions in an instance.
31874
31875 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
31876
31877         PR ada/15403
31878         * sem_ch12.adb (Save_References): If operator node has been folded to
31879         enumeration literal, associated_node must be discarded.
31880
31881 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
31882
31883         * s-stchop-vxworks.adb: Add required pragma Convention to
31884         Task_Descriptor because it is updated by a C function.
31885
31886 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
31887
31888         PR ada/15568
31889         * Makefile.in: Remove target specific SO_OPT on IRIX
31890
31891 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31892
31893         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
31894         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
31895         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
31896         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
31897         (STMT_STMT, USE_STMT): New statement codes.
31898         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
31899         * ada-tree.h: Reflect above changes.
31900         (struct tree_loop_id): Deleted.
31901         (union lang_tree_node, struct lang_decl, struct lang_type):
31902         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
31903         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
31904         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
31905         (IS_ADA_STMT): New macro.
31906         * decl.c (annotate_decl_with_node): New function.
31907         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
31908         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
31909         Call add_stmt_with_node to do needed assignments.
31910         Add call to update setjmp buffer directly, not via EXPR_STMT.
31911         (maybe_variable): Argment GNAT_NODE deleted.
31912         * gigi.h (maybe_variable): Likewise.
31913         (make_transform, add_stmt_with_node, set_block_for_group): New.
31914         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
31915         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
31916         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
31917         (set_lineno, set_lineno_from_sloc): Likewise.
31918         (record_code_position, insert_code_for): Likewise.
31919         (gnat_poplevel): Now returns void.
31920         (end_subprog_body): Now takes argument.
31921         * misc.c (cgraph.h, tree-inline.h): New includes.
31922         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
31923         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
31924         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
31925         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
31926         (gnat_parse_file): Don't set immediate_size_expand.
31927         Call cgraph functions.
31928         (gnat_expand_expr): Remove most cases.
31929         (record_code_position, insert_code_for): Remove from here.
31930         * trans.c (toplev.h, tree-gimple.h): Now included.
31931         (discard_file_names): Deleted.
31932         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
31933         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
31934         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
31935         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
31936         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
31937         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
31938         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
31939         (set_block_for_group, add_stmt_list): Likewise.
31940         (start_stmt_group): Renamed from start_block_stmt.
31941         (end_stmt_group): Likewise, from end_block_stmt.
31942         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
31943         (gigi): Don't set discard_file_names or call set_lineno.
31944         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
31945         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
31946         Numerous changes throughout to reflect new names and complete
31947         function-at-a-time implementation.
31948         (gnat_expand_stmt): Delete or comment out all cases.
31949         (process_inlined_subprograms): Use add_stmt.
31950         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
31951         call set_lineno; also remove unneeded block handling.
31952         (process_type): Remove unneeded block handling.
31953         (build_unit_elab): Remove calls to deleted functions.
31954         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
31955         (tree-dump.h): Likewise.
31956         (struct ada_binding_level): Add field jmpbuf_decl.
31957         (gnat_define_builtin, gnat_install_builtins): New.
31958         (gnat_gimplify_function, gnat_finalize): Likewise.
31959         (gnat_poplevel): No longer return BLOCK, set it instead.
31960         Remove code dealing with nested functions.
31961         (gnat_init_decl_processing): Also set size_type_node.
31962         Call gnat_install_builtins.
31963         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
31964         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
31965         Remove special-case for "main".
31966         (end_subprog_body): Add arg and rework for tree-ssa.
31967         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
31968         Add case for BOOLEAN_TYPE.
31969         * utils2.c (rtl.h): Now include.
31970         (build_call_raise): Test Debug_Flag_NN directly.
31971         (build_call_alloc_dealloc): Don't use local stack allocation for now.
31972         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
31973         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
31974
31975 2004-06-07  Robert Dewar  <dewar@gnat.com>
31976
31977         * a-direct.ads, einfo.ads: Minor comment updates
31978
31979         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
31980         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31981         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
31982         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
31983         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
31984
31985         * s-interr-sigaction.adb: Remove unreferenced variable
31986         (Attached_Interrupts).  Minor reformatting.
31987         Avoid use of variable I (replace by J).
31988
31989         * par-ch10.adb: Fix text of one error message
31990
31991         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
31992         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
31993         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
31994         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
31995         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
31996         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
31997         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
31998         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
31999         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32000         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32001         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32002         2005 support.
32003
32004 2004-06-07  Doug Rupp  <rupp@gnat.com>
32005
32006         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32007
32008         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32009
32010         * mlib-tgt-vms-ia64.adb: New file.
32011
32012         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32013         Add mlib-tgt-vms-ia64.adb
32014         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32015         Move to alpha specific ifeq section.
32016         Add VMS specific versions of symbols.adb
32017         Renaming of 5q vms files.
32018
32019         * 5qsystem.ads renamed to system-vms_64.ads.
32020
32021 2004-06-07  Vincent Celier  <celier@gnat.com>
32022
32023         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32024         explain that when a time of day corresponding to the non existing hour
32025         on the day switching to DST is specified, Split may return a different
32026         value for Seconds.
32027
32028         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32029         to GNAT PRETTY.
32030
32031         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32032         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32033
32034         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32035         to False.
32036         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32037         the linking options.
32038         (Build_Library.Check_Libs): On VMS, if there is a dependency on
32039         g-trasym.ads, set Gtrasymobj_Needed to True.
32040
32041         * prj-attr.adb: Add new package Metrics for gnatmetric
32042
32043         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32044         canonical case to take into account files with upper case characters on
32045         Windows.
32046         (Ada_Check): Load the reference symbol file name in the name buffer to
32047         check it, not the symbol file name.
32048
32049         * snames.ads, snames.adb: Add standard name Metrics (name of project
32050         file package for gnatmetric).
32051
32052         * vms_conv.ads: Add Metric to Comment_Type
32053
32054         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32055
32056         * vms_data.ads: Add qualifiers for GNAT METRIC
32057
32058         * makegpr.adb (Link_Executables): Take into account the switches
32059         specified in package Linker of the main project.
32060
32061 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
32062
32063         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
32064         the index of the last element is Units.Last, not Units.Table'Last
32065         (which is usually not a valid index within the actually allocated
32066         storage for the table).
32067
32068         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
32069         determines whether to generate a call to a checked storage pool
32070         Dereference action.
32071         Generate such a call only for a dereference that either comes from
32072         source, or is the result of rewriting a dereference that comes from
32073         source.
32074
32075 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
32076
32077         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
32078
32079 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
32080
32081         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
32082         file level, elaborate the stride for inner dimensions in alignment
32083         units, not bytes.
32084
32085         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
32086         in a comment.
32087
32088 2004-06-07  Javier Miranda  <miranda@gnat.com>
32089
32090         * exp_ch6.adb: Correct wrong modification in previous patch
32091
32092 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
32093
32094         * g-trasym.ads: Corrected comment to properly reflect level of support
32095         on VMS.
32096
32097 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
32098
32099         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
32100         includes case of a variable referenced on the left hand side of an
32101         assignment, therefore remove redundant code. Variables and prefixes of
32102         indexed or selected components are now marked as referenced on left
32103         hand side. Warnings are now properly emitted when variables or prefixes
32104         are assigned but not read.
32105
32106         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
32107         left hand side referenced variables. Private access types do not
32108         produce the warning "variable ... is assigned but never read".
32109         Add also additional checks to left hand side referenced variables.
32110         Aliased, renamed objects and access types do not produce the warning
32111         "variable ... is assigned but never read" since other entities may read
32112         the memory location.
32113
32114 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
32115
32116         * Makefile.in: In the powerpc/vxworks-specific section, restore
32117         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
32118         by mistake).
32119
32120 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
32121
32122         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
32123         predefined operators.
32124         Removes spurious type errors from g-trasym-vms.adb.
32125
32126         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
32127         distinct from the operator appearing in the source, call appropriate
32128         routine to insert conversions when needed, and complete resolution of
32129         node.
32130         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
32131         interpretations for rewritten right operand.
32132         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
32133         the other operand is overloaded and the context is a type conversion.
32134
32135 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32136
32137         * ada-tree.def (BLOCK_STMT): Now has two operands.
32138         (BREAK_STMT): New.
32139
32140         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
32141
32142         * gigi.h: (gnat_poplevel): Now returns a tree.
32143
32144         * trans.c (end_block_stmt): Add arg; all callers changed.
32145         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
32146         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
32147         (add_stmt): Set TREE_TYPE.
32148         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
32149         (gnat_expand_stmt, case BREAK_STMT): New case.
32150
32151         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
32152
32153 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
32154
32155         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
32156         procedure Set_Stack_Size that is not needed.
32157
32158 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
32159
32160         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
32161         used for gnatpp input file and for the files upon which it depends
32162
32163 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
32164
32165         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
32166
32167 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
32168
32169         * gnatvsn.ads: Bump version numbers appropriately.
32170         Add new build type.
32171
32172 2004-06-07  Pascal Obry  <obry@gnat.com>
32173
32174         * gnat_ugn.texi: Improve comments about imported names and link names
32175         on Windows. Add a note about the requirement to use -k gnatdll's option
32176         when working with a DLL which has stripped stdcall symbols (no @nn
32177         suffix).
32178
32179 2004-05-27  Vincent Celier  <celier@gnat.com>
32180
32181         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
32182         COMMENTS_LAYOUT=UNTOUCHED
32183
32184         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
32185         symbols-vms-alpha.adb
32186
32187 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
32188
32189         * sem.ads: Clarify documentation on checks suppression.
32190
32191         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
32192
32193 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
32194
32195         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
32196         the case of multiple derivations.
32197         (Is_Object_Reference): For a selected component, verify that the prefix
32198         is itself an object and not a value.
32199
32200         * sem_ch12.adb (Same_Instantiated_Constant): New name for
32201         Same_Instantiated_Entity.
32202         (Same_Instantiated_Variable): Subsidiary to
32203         Check_Formal_Package_Instance, to recognize actuals for in-out generic
32204         formals that are obtained from a previous formal package.
32205         (Instantiate_Subprogram_Body): Emit proper error when
32206         generating code and the proper body of a stub is missing.
32207
32208         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
32209         has a universal interpretation, do the disambiguation here.
32210
32211         * exp_ch4.adb (Expand_N_Type_Conversion,
32212         Expand_N_Unchecked_Type_Conversion): Special handling when target type
32213         is Address, to avoid typing anomalies when Address is a visible integer
32214         type.
32215
32216         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
32217         to determine whether a subprogram should not be marked Pure, even when
32218         declared in a pure package.
32219
32220 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
32221
32222         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
32223
32224         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
32225         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
32226         Update the documentation about the Ravenscar profile, following the
32227         definition found in AI-249.
32228
32229         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
32230         setting the Profile (Ravenscar). This must be done in addition to
32231         setting the required restrictions.
32232
32233         * rtsfind.ads: Add the set of operations defined in package
32234         Ada.Interrupts.
32235
32236         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
32237         restriction.
32238
32239 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
32240
32241         lang-specs.h: Always require -c or -S and always redirect to /dev/null
32242         if -gnatc or -gnats is passed.
32243
32244 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
32245
32246         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
32247         a significant reference. Warnings are now properly emitted when a
32248         discriminated type is not referenced.
32249
32250         * lib-xref.adb (Generate_Reference): A deferred constant completion,
32251         record representation clause or record type discriminant does not
32252         produce a reference to its corresponding entity. Warnings are now
32253         properly emitted when deferred constants and record types are not
32254         referenced.
32255
32256 2004-05-27  Geert Bosch  <bosch@gnat.com>
32257
32258         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
32259         Fixes ACATS Annex G tests.
32260
32261 2004-05-27  Robert Dewar  <dewar@gnat.com>
32262
32263         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
32264         handling WITH
32265
32266 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
32267
32268         * s-interr.adb (Server_Task): Take into account case of early return
32269         from sigwait under e.g. linux.
32270
32271 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
32272
32273         * gnat_ugn.texi: Add description for the new gnatpp options:
32274          -rnb - replace the original source without creating its backup copy
32275          -c0 - do not format comments
32276
32277 2004-05-24  Geert Bosch  <bosch@gnat.com>
32278
32279         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
32280         with 192 bits of precision, sufficient to reduce a double-extended
32281         arguments X with a maximum relative error of T'Machine_Epsilon, for X
32282         in -2.0**32 .. 2.0**32.
32283         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
32284         reduction by the processor, which only uses a 68-bit approximation of
32285         Pi.
32286         (Tan): Always reduce arguments and compute function either using
32287         the processor's fptan instruction, or by dividing sin and cos as needed.
32288
32289 2004-05-24  Doug Rupp  <rupp@gnat.com>
32290
32291         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
32292         gcc error on 32/64 bit VMS.
32293
32294 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
32295
32296         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
32297         since this is what we get for stack overflows although not documented
32298         as such.
32299         Document the issues which may require adjustments to our signal
32300         handlers.
32301
32302 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
32303
32304         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
32305         enclosing dynamic scope if the instantiation is within a generic unit.
32306
32307 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
32308
32309         * exp_dbug.ads: Fix typo.
32310
32311         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
32312         Rename it to its proper name: system-linux-ia64.ads
32313         (stamp-gnatlib1): Remove extra target specific run time files when
32314         setting up the rts directory.
32315
32316 2004-05-24  Javier Miranda  <miranda@gnat.com>
32317
32318         * einfo.ads, einfo.adb (Limited_Views): Removed.
32319         (Limited_View): New attribute that replaces the previous one. It is
32320         now a bona fide package with the limited-view list through the
32321         first_entity and first_private attributes.
32322
32323         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
32324         limited-private-with clause.
32325         (Install_Limited_Withed_Unit): Install the private declarations of a
32326         limited-private-withed package. Update the installation of the shadow
32327         entities according to the new structure (see Build_Limited_Views)
32328         (Build_Limited_Views): Replace the previous implementation of the
32329         limited view by a package entity that references the first shadow
32330         entity plus the first shadow private entity (required for limited-
32331         private-with clause)
32332         (New_Internal_Shadow_Entity): Code cleanup.
32333         (Remove_Limited_With_Clause): Update the implementation to undo the
32334         new work carried out by Build_Limited_Views.
32335         (Build_Chain): Complete documentation.
32336         Replace Ada0Y by Ada 0Y in comments
32337         Minor reformating
32338
32339         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
32340         types the level of accessibility depends on the enclosing type
32341         declaration.
32342
32343         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
32344         entities. Complete documentation of previous change.
32345
32346 2004-05-24  Robert Dewar  <dewar@gnat.com>
32347
32348         * namet.adb: Minor reformatting
32349         Avoid use of name I (replace by J)
32350         Minor code restructuring
32351
32352         * sem_ch6.adb: Minor reformatting
32353
32354         * lib-writ.adb: Do not set restriction as active if this is a
32355         Restriction_Warning case.
32356
32357         * sem_prag.adb: Reset restriction warning flag if real pragma
32358         restriction encountered.
32359
32360         * s-htable.adb: Minor reformatting
32361         Change rotate count to 3 in Hash (improves hash for small strings)
32362
32363         * 5qsystem.ads: Add comments for type Address (no literals allowed).
32364
32365         * gnat_ugn.texi: Add new section of documentation "Code Generation
32366         Control", which describes the use of -m switches.
32367
32368 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
32369
32370         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
32371         through the DECL_INITIAL for renamed variables.
32372
32373 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
32374
32375         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
32376
32377 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
32378
32379         * exp_dbug.ads: Correct comments concerning handling of overloading,
32380         since we no longer use $ anymore.
32381
32382 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
32383
32384         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
32385         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
32386         with illegal subunits.
32387
32388 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
32389
32390         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
32391         body with front-end inlining enabled, check whether an inline pragma
32392         appears immediately after the body and applies to it.
32393
32394         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
32395         enabled and the pragma appears after the body of the subprogram.
32396
32397 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32398
32399         Part of function-at-a-time conversion
32400
32401         * misc.c (adjust_decl_rtl): Deleted.
32402         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
32403         Define.
32404
32405         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
32406         (add_decl_stmt, add_stmt, block_has_vars): New functions.
32407         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
32408
32409         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
32410         when making a decl.
32411         (gnat_to_gnu_entity): Likewise.
32412         Use add_stmt to update setjmp buffer.
32413         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
32414         flush_addressof.
32415         No longer call adjust_decl_rtl.
32416         (DECL_INIT_BY_ASSIGN_P): New macro.
32417         (DECL_STMT_VAR): Likewise.
32418
32419         * trans.c (gigi): Call start_block_stmt to make the outermost
32420         BLOCK_STMT.
32421         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
32422         Call start_block_stmt and end_block_stmt temporarily.
32423         Use gnat_expand_stmt instead of expand_expr_stmt.
32424         (add_decl_stmt): New function.
32425         (tree_transform): Call it.
32426         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
32427         (end_block_stmt): Set type and NULL_STMT.
32428         (gnat_expand_stmt): Make recursize call instead of calling
32429         expand_expr_stmt.
32430         (gnat_expand_stmt, case DECL_STMT): New case.
32431         (set_lineno_from_sloc): Do nothing if global.
32432         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
32433         (start_block_stmt, add_stmt, end_block_stmt): New functions.
32434         (build_block_stmt): Call them.
32435         (gnat_to_code): Don't expand NULL_STMT.
32436         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
32437         args.
32438         (tree_transform): Likewise.
32439         (tree_transform, case N_Null_Statement): Return NULL_STMT.
32440         (gnat_expand_stmt, case NULL_STMT): New case.
32441         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
32442         IF_STMT_TRUE.
32443
32444         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
32445         TREE_ADDRESSABLE.
32446
32447         * utils.c (create_var_decl): Do not call expand_decl or
32448         expand_decl_init.
32449         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
32450         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
32451         here.
32452         (struct e_stack): Add chain_next to GTY.
32453         (struct binding_level): Deleted.
32454         (struct ada_binding_level): New struct.
32455         (free_block_chain): New.
32456         (global_binding_level, clear_binding_level): Deleted.
32457         (global_bindings_p): Rework to see if no chain.
32458         (kept_level_p, set_block): Deleted.
32459         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
32460         new data structure and work directly on BLOCK node.
32461         (gnat_poplevel): Similarly.
32462         (get_decls): Look at BLOCK_VARS.
32463         (insert_block): Work directly on BLOCK node.
32464         (block_has_var): New function.
32465         (pushdecl): Rework for new binding structures.
32466         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
32467         poplevel.
32468         (build_subprog_body): Likewise.
32469         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
32470
32471         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
32472
32473         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
32474         (DECL_STMT_VAR): Likewise.
32475
32476 2004-05-17  Robert Dewar  <dewar@gnat.com>
32477
32478         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
32479         procedure
32480
32481         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
32482         of restriction synonyums by using
32483         Restrict.Process_Restriction_Synonyms.
32484
32485         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
32486
32487         * s-restri.ads (Tasking_Allowed): Correct missing comment
32488
32489         * s-rident.ads: Add entries for restriction synonyms
32490
32491         * ali.adb: Fix some problems with badly formatted ALI files that can
32492         result in infinite loops.
32493
32494         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
32495         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
32496         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32497         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
32498         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
32499         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
32500         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
32501         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
32502         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
32503         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
32504         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
32505         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
32506         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
32507         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32508         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32509         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32510         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32511         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32512         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
32513         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
32514         to Task_Id (minor cleanup).
32515
32516 2004-05-17  Vincent Celier  <celier@gnat.com>
32517
32518         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
32519         directory separator.
32520
32521         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
32522         project being extended, if Languages is not declared in extending
32523         project.
32524
32525 2004-05-17  Javier Miranda  <miranda@gnat.com>
32526
32527         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
32528         limited view of a visible sibling.
32529
32530 2004-05-14  Robert Dewar  <dewar@gnat.com>
32531
32532         * gnat_ugn.texi: Minor change to -gnatS documentation
32533
32534         * sprint.adb: Remove some instances of Assert (False) and for this
32535         purpose replace them by output of a ??? string.
32536
32537         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
32538         Assert (False).
32539
32540         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
32541         flag processing. This was suppressing required dependencies in
32542         No_Run_Time mode and is not needed since the binder does not generate
32543         references for things in libgnat anyway.
32544
32545         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
32546         warning.
32547
32548 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
32549
32550         * gnat_ugn.texi: Document AIX-specific issue with initialization of
32551         resolver library.
32552
32553         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
32554         action for the case of an actual parameter in an init proc call.
32555
32556 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
32557
32558         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
32559         subtype, check visible entities in base type.
32560
32561         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
32562         actions if the object is a renaming.
32563
32564         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
32565         Check_Formal_Package_Instance, to determine more precisely when the
32566         formal and the actual denote the same entity.
32567
32568 2004-05-14  Javier Miranda  <miranda@gnat.com>
32569
32570         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
32571
32572         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
32573         corresponding to a private_with must be removed from visibility; it
32574         will be made visible later, just before we analyze the private part of
32575         the package.
32576         (Check_Private_Child_Unit): Allow private_with clauses in public
32577         siblings.
32578         (Install_Siblings): Make visible the private entities of private-withed
32579         siblings.
32580         (Install_Withed_Unit): Do not install the private withed unit if we
32581         are compiling a package declaration and the Private_With_OK flag was
32582         not set by the caller. These declarations will be installed later,
32583         just before we analyze the private part of the package.
32584
32585         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
32586         during the evaluation of the expression that initializes the object,
32587         decorate it with the expected type to avoid cascade errors.
32588         Code cleanup.
32589
32590         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
32591         subprogram we have to install the private_with clauses after its
32592         specification has been analyzed (as documented in AI-262.TXT).
32593
32594         * sem_ch8.adb (Has_Private_With): New function. Determines if the
32595         current compilation unit has a private with on a given entity.
32596         (Find_Direct_Name): Detect the Beaujolais problem described in
32597         AI-262.TXT
32598
32599         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
32600         provides the functionality of the function Is_Ancestor that was
32601         previously available in sem_ch10. It has been renamed to avoid
32602         overloading.
32603
32604         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
32605
32606 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32607
32608         * utils.c (build_vms_descriptor): Use SImode pointers.
32609
32610 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
32611
32612         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
32613
32614 2004-05-14  GNAT Script  <nobody@gnat.com>
32615
32616         * Make-lang.in: Makefile automatically updated
32617
32618 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
32619
32620         Renaming of target specific files for clarity
32621
32622         * Makefile.in: Rename GNAT target specific files.
32623
32624         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
32625         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
32626         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
32627         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
32628         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
32629         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
32630         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
32631         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
32632         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
32633         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
32634         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
32635         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
32636         51osinte.adb, 51osinte.ads, 51system.ads,
32637         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
32638         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
32639         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
32640         56tpopsp.adb, 57system.ads, 58system.ads,
32641         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
32642         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32643         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
32644         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
32645         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
32646         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32647         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
32648         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32649         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32650         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
32651         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
32652         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
32653         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
32654         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
32655         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
32656         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32657         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32658         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32659         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
32660         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
32661         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
32662         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
32663         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
32664         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32665         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
32666         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
32667         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32668         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
32669         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32670         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
32671         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
32672         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
32673         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
32674         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
32675         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
32676         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
32677         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
32678         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
32679         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
32680         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
32681
32682         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
32683         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
32684         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
32685         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
32686         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
32687         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
32688         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
32689         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
32690         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
32691         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
32692         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
32693         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
32694         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
32695         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
32696         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
32697         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
32698         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
32699         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
32700         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
32701         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
32702         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
32703         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
32704         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
32705         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
32706         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
32707         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
32708         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
32709         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
32710         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
32711         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
32712         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
32713         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
32714         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
32715         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
32716         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
32717         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
32718         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
32719         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
32720         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
32721         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
32722         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
32723         s-osinte-vms.ads, s-osinte-vxworks.adb,
32724         s-osinte-vxworks.ads, s-osprim-mingw.adb,
32725         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
32726         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
32727         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
32728         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
32729         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
32730         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
32731         s-stchop-vxworks.adb, s-taprop-dummy.adb,
32732         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
32733         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
32734         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
32735         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32736         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
32737         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
32738         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
32739         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
32740         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
32741         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
32742         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
32743         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
32744         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
32745         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
32746         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
32747         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
32748         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
32749         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
32750         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
32751         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
32752         system-irix-o32.ads, system-linux-x86_64.ads,
32753         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32754         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
32755         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
32756         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
32757         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
32758         system-vxworks-mips.ads, system-vxworks-ppc.ads,
32759         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
32760         above.
32761
32762 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
32763
32764         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
32765
32766 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
32767
32768         Merge from tree-ssa-20020619-branch.
32769
32770         * config-lang.in (boot_language, build_by_default): Set
32771         to no.
32772         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
32773         (max_size): Add static chain op for call_expr.
32774
32775 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
32776
32777         PR target/15331
32778         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
32779
32780 2004-05-11  Roger Sayle  <roger@eyesopen.com>
32781
32782         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
32783         COND_EXPR.
32784
32785 2004-05-10  Doug Rupp  <rupp@gnat.com>
32786
32787         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
32788         system.aux_dec.
32789
32790         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
32791
32792         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
32793
32794         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
32795         Fixes undefined symbols in IA64 gnatlib.
32796
32797         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
32798
32799         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
32800         Short_Address). This will be moved to system.auxdec.
32801
32802 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
32803
32804         * sem_util.adb: Replace test for presence of a node that is always
32805         present with a call to Discard_Node.
32806
32807         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
32808         Analyze on the library unit node after generation of distribution stub
32809         constructs.  The call was a no-op because Unit_Node has already been
32810         Analyzed, and the tree fragments for the distribution stubs are
32811         analyzed as they are inserted in Exp_Dist.
32812         Update comment regarding to distribution stubs to reflect that we
32813         do not generate stub in separate files anymore.
32814
32815         * einfo.ads: Clarify the fact that a tagged private type has the
32816         E_Record_Type_With_Private Ekind.
32817
32818         * erroutc.adb: Minor reformatting
32819
32820         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
32821         values if line length is increased using -gnatyM (noticed during code
32822         reading).
32823
32824         * eval_fat.adb: Minor reformatting
32825         Put spaces around exponentiation operator
32826
32827 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
32828
32829         PR ada/15005
32830         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
32831         has been rewritten as an explicit dereference, retrieve type of
32832         original node to check for possibly unconstrained record type.
32833
32834 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
32835
32836         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
32837         overriding, use the operation of the parent unconditionally.
32838
32839         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
32840         operation when either operand is a literal, to avoid further
32841         ambiguities.
32842
32843         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
32844         overridden by a previous explicit declaration, mark the previous entity
32845         as overriding.
32846
32847         * sem_disp.adb (Check_Dispatching_Operation): New predicate
32848         Is_Visibly_Controlled, to determine whether a declaration of a
32849         primitive control operation for a derived type overrides an inherited
32850         one. Add warning if the explicit declaration does not override.
32851
32852 2004-05-10  Vincent Celier  <celier@gnat.com>
32853
32854         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
32855         some cases when the sources are no longer present.
32856
32857         * make.adb (Collect_Arguments): Fail if an external source, not part
32858         of any project need to be compiled, when switch -x has not been
32859         specified.
32860
32861         * makeusg.adb: Document new switch -x
32862
32863         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
32864         defaulted to False.
32865
32866         * switch-m.adb (Scan_Make_Switches): New switch -x
32867
32868         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
32869         gnatmake switch -x.
32870
32871         * gnat_ugn.texi: Document new gnatmake switch -x
32872
32873 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
32874
32875         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
32876
32877         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
32878         (process_attributes): Likewise.
32879
32880 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
32881
32882         * s-inmaop.ads: Fix spelling mistake in one of the comments.
32883
32884 2004-05-10  Robert Dewar  <dewar@gnat.com>
32885
32886         * gnat_ugn.texi: Document that for config pragma files, the maximum
32887         line length is always 32767.
32888
32889         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
32890         literals is now allowed.
32891
32892         * gnat-style.texi: Remove statement about splitting long lines before
32893         an operator rather than after, since we do not follow this rule at all.
32894         Clarify rule (really lack of rule) for spaces around exponentiation
32895
32896         * sem_elim.adb: Allow concatenation of string literals as well as a
32897         single string literal for pragma arguments.
32898
32899         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
32900
32901         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
32902         written for append case.
32903
32904         * frontend.adb: Changes to avoid checking max line length in config
32905         pragma files.
32906
32907         * g-os_lib.ads: Minor reformatting
32908
32909         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
32910         wrong in any case. Instead use standard value. Noticed during code
32911         reading.
32912
32913         * opt.ads (Max_Line_Length): New field, used to implement removal of
32914         limitation on length of lines when scanning config pragma files.
32915
32916         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
32917         makeutl.ads, makeutl.adb: Minor reformatting
32918
32919         * scn.adb: Do not check line length while scanning config pragma files
32920         Do not check line length while scanning out license information
32921
32922         * scng.adb: Changes to avoid line length checks while parsing config
32923         pragma files.
32924
32925 2004-05-10  GNAT Script  <nobody@gnat.com>
32926
32927         * Make-lang.in: Makefile automatically updated
32928
32929 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
32930
32931         * osint.adb (Find_Program_Name): Fix handling of VMS version
32932         number.
32933
32934 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
32935
32936         * g-os_lib.ads (Invalid_Time): New constant
32937
32938         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
32939         return OS_Time instead of time_t to match what is imported by Ada.
32940         Now return -1 if the file doesn't exist, instead of a random value
32941
32942 2004-05-05  Robert Dewar  <dewar@gnat.com>
32943
32944         * usage.adb: Add line for -gnatR?s switch
32945
32946         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
32947
32948         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
32949         and for Match (Data_First, Data_last)
32950
32951         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
32952         written when we are dealing with multi-unit files.
32953
32954 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
32955
32956         * Makefile.in: Remove unused targets and variables.
32957
32958 2004-05-05  Vincent Celier  <celier@gnat.com>
32959
32960         * switch-m.adb: New gnatmake switch -eI
32961
32962         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
32963         of new gnatmake switch -eInnn.
32964
32965         * makegpr.adb: Take into account new parameters Index and Src_Index in
32966         Prj.Util.
32967
32968         * clean.adb: Implement support for multi-unit sources, including new
32969         switch -i.
32970
32971         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
32972         Src_Index.
32973
32974         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
32975         (Extract_From_Q): New out parameter Index
32976         (Mark, Is_Marked): Subprograms moved to Makeutl
32977         (Switches_Of): New parameter Source_Index
32978         (Add_Switch): New parameter Index
32979         (Check): New parameter Source_Index
32980         (Collect_Arguments): New parameter Source_Index
32981         (Collect_Arguments_And_Compile): New parameter Source_Index
32982         (Compile): New parameter Source_Index
32983         Put subprograms in alphabetical order
32984         Add support for multi-source sources, including in project files.
32985
32986         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
32987         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
32988         Make.
32989
32990         * makeusg.adb: New gnatmake switch -eInnn
32991
32992         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
32993         Prj.Util.Value_Of.
32994
32995         * opt.ads (Main_Index): New variable, defaulted to 0.
32996
32997         * osint.ads, osinte.adb (Add_File): New parameter Index
32998         (Current_Source_Index): New function
32999
33000         * prj.adb: Take into account new components Index and Src_Index
33001
33002         * prj.ads (String_Element): New component Index
33003         (Variable_Value): New component Index
33004         (Array_Element): New component Src_Index
33005
33006         * prj-attr.adb: Indicate that optional index may be specified for
33007         attributes Main, Executable, Spec, Body and some of Switches.
33008
33009         * prj-attr.ads (Attribute_Kind): New values for optional indexes
33010         (Attribute_Record): New component Optional_Index
33011
33012         * prj-com.ads (File_Name_Data): New component Index
33013
33014         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33015
33016         * prj-env.adb (Put): Output optional index
33017
33018         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33019         attributes Spec and Body.
33020
33021         * prj-nmsc.adb: Process optional indexes
33022
33023         * prj-pp.adb: Ouput "at" for optional indexes
33024
33025         * prj-proc.adb: Take into account optional indexes
33026
33027         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33028         Optional_Index. For string literal,
33029         process optional index when Optional_Index is True.
33030         (Parse_Expresion): New Boolean parameter Optional_Index
33031
33032         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33033         (Set_Source_Index_Of): New procedure
33034
33035         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33036         index.
33037
33038         * prj-util.ads (Executable_Of): New parameter Index
33039         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33040         New parameter Src_Index, defaulted to 0.
33041
33042 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33043
33044         PR ada/15257
33045         * sem_ch3.adb (Access_Definition): If this is an access parameter
33046         whose designated type is imported through a limited_with clause, do
33047         not add the enclosing subprogram to the list of private dependents of
33048         the type.
33049
33050 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
33051
33052         PR ada/15258
33053         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33054         a limited_with clause, and the other is its non-limited view.
33055
33056 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
33057
33058         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
33059
33060         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
33061         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
33062         Stand.Boolean_Literals to produce references to entities
33063         Standard_False and Standard_True from compile-time computed boolean
33064         values.
33065
33066         * stand.ads (Boolean_Literals): New variable, provides the entity
33067         values for False and True, for use by the expander.
33068
33069 2004-05-05  Doug Rupp  <rupp@gnat.com>
33070
33071         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
33072         5vinmaop.adb: Unchecked convert Short_Address vice Address
33073
33074         * adaint.c, raise.c: Caste CRTL function return value
33075         to avoid gcc error on 32/64 bit IVMS.
33076
33077         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
33078         target = IA64/VMS.
33079
33080         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
33081
33082         * 5qsystem.ads (Address): Declare as Long_Integer
33083         (Short_Address): Declare as 32 bit subtype of Address
33084         Declare  abstract address operations to avoid gratuitous ambiguities.
33085
33086 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
33087
33088         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
33089         instead of the old Boolean_Entry_Barriers.
33090         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
33091
33092 2004-05-05  GNAT Script  <nobody@gnat.com>
33093
33094         * Make-lang.in: Makefile automatically updated
33095
33096 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33097
33098         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
33099
33100 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
33101
33102         PR ada/15152
33103         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
33104         alone. Replacing object references by literals is inappropriate in a
33105         so low level context.
33106
33107 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
33108
33109         * a-exexpr.adb: Add comments
33110
33111 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
33112
33113         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
33114         declare the Ancestor_Tags array in Type_Specific_Data with a small size
33115         without risking a bounds check error when accessing one of its
33116         components.
33117         (Type_Specific_Data): Define Ancestor_Tags as a small array.
33118         This prevents us from hitting a limitation during the debug info
33119         generation when using stabs.
33120
33121         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
33122         small array.
33123         This prevents us from hitting a limitation during the debug info
33124         generation when using stabs.
33125
33126 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
33127
33128         lang-specs.h: Remove -gnatz* from specs.
33129
33130 2004-05-03  Vincent Celier  <celier@gnat.com>
33131
33132         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
33133
33134         * Make-lang.in, Makefile.in: Add gprmake
33135
33136 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
33137
33138         * sem_aggr.adb: Fix typo in comment.
33139
33140 2004-05-03  Robert Dewar  <dewar@gnat.com>
33141
33142         * make.adb: Minor reformatting
33143
33144         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
33145
33146         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
33147         so that it works when address is not a private type.
33148
33149         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
33150         properly with rewritten unchecked conversions. This prevents
33151         order-of-elaboration issues that can otherwise arise.
33152         (Minimum_Size): Don't check size of access types under VMS
33153
33154         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
33155         interpretations of integer literals as type System.Address.
33156
33157         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
33158         (Is_Descendent_Of): New function
33159
33160 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
33161
33162         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33163         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
33164         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
33165
33166         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
33167         of the old Max_Entry_Queue_Depth.
33168
33169         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33170         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
33171         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
33172
33173         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
33174         New entry for proper handling of Max_Entry_Queue_Depth.
33175         New entry for proper handling of No_Dynamic_Interrupts.
33176
33177         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
33178         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33179         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
33180         the GNAT specific restriction Max_Entry_Queue_Depth.
33181         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
33182         the GNAT specific restriction No_Dynamic_Interrupts.
33183
33184         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
33185         instead of the old Boolean_Entry_Barriers.
33186         Use the new restriction No_Dynamic_Attachment instead of the old
33187         No_Dynamic_Interrupts.
33188
33189         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
33190         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33191
33192         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
33193         of the old Max_Entry_Queue_Depth.
33194
33195 2004-05-03  GNAT Script  <nobody@gnat.com>
33196
33197         * Make-lang.in: Makefile automatically updated
33198
33199 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
33200
33201         * checks.adb (Enable_Range_Check): If the prefix of an index component
33202         is an access to an unconstrained array, perform check unconditionally.
33203
33204 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33205
33206         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
33207         Component_Clause.
33208
33209 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
33210
33211         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
33212         alternate stack setting. There was no support for the tasking cases
33213         and the changes eventually caused a number of side-effect failures in
33214         the non-tasking case too.
33215
33216 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
33217
33218         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
33219         -gnats is passed.
33220
33221 2004-04-29  Vincent Celier  <celier@gnat.com>
33222
33223         * make.adb (Gnatmake): Increase max size of argument array for
33224         gnatbind for the potential addition of -F.
33225         If there are Stand-Alone Library projects, invoke gnatbind with -F to
33226         be sure that elaboration flags will be checked.
33227
33228         * switch-c.adb: Correct call to Scan_Pos for -gnateI
33229
33230 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
33231
33232         * sem_warn.adb (Check_References): Move '<access-variable> may be
33233         null' warning out of under Warn_On_No_Value_Assigned.
33234
33235 2004-04-29  Ed Falis  <falis@gnat.com>
33236
33237         * gnat_ugn.texi: Fixed texi error
33238
33239 2004-04-29  Robert Dewar  <dewar@gnat.com>
33240
33241         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
33242         abstract operations if they come from predefined files.
33243
33244         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
33245         Dynamic, not RM).
33246
33247         * s-addope.adb: Correct obvious error in mod function
33248
33249 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
33250
33251         * Makefile.in: Add target pairs for powerpc darwin*
33252         tasking support.
33253
33254         * a-intnam-darwin.ads, s-osinte-darwin.adb,
33255         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
33256
33257 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
33258
33259         * Makefile.in: Add target macro definitions for s390*-linux*.
33260         * system-linux-s390.ads: New file.
33261         * system-linux-s390x.ads: New file.
33262
33263 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
33264
33265         * gnat_ugn.texi: Correct argument to @setfilename.
33266
33267 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
33268
33269         * a-exexpr.adb (Unwind_Word): New data type.
33270         (Unwind_Exception): Use it as type of Private1 and Private2.
33271
33272         * raise.c (db_action_for): Fix debug printf.
33273
33274 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
33275
33276         * a-wtmoio.ads: Formal type must be a modular type, not a signed
33277         integer type.
33278
33279 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33280
33281         * decl.c (gnat_to_gnu_entity, case object): Call
33282         __builtin_update_setjmp_buf.
33283
33284         * gigi.h (update_setjmp_buf): Deleted.
33285         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
33286
33287         * misc.c: (update_setjmp_buf): Deleted.
33288
33289         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
33290         around block of RTL.
33291
33292         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
33293
33294 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
33295
33296         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
33297         subprogram for which no pragma All_Calls_Remote applies, store the
33298         address of the real subprogram in the underlying record type, so local
33299         dereferences do not go through the PCS.
33300
33301 2004-04-26  Robert Dewar  <dewar@gnat.com>
33302
33303         * i-c.ads: Add some type qualifications to avoid ambiguities when
33304         compiling with s-auxdec.ads and a non-private address type.
33305
33306 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
33307
33308         * Makefile.rtl: Fix error in previous check-in:
33309         Add s-addope.o to non tasking object list (rather than tasking object
33310         list).
33311
33312 2004-04-26  Javier Miranda  <miranda@gnat.com>
33313
33314         * sem_aggr.adb: Fix typo in comments
33315         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
33316         Required to check the null-exclusion attribute.
33317
33318         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
33319         case of anonymous access types in record and array components. For a
33320         component definition the level is the same of the enclosing composite
33321         type.
33322
33323         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
33324         that are anonymous access types the level of accessibility depends on
33325         the enclosing type declaration. In order to have this information, set
33326         the scope of the anonymous access type to the enclosing record type
33327         declaration.
33328         (Array_Type_Declaration): In case of components that are anonymous
33329         access types the level of accessibility depends on the enclosing type
33330         declaration. In order to have this information, set the scope of the
33331         anonymous access type to the enclosing array type declaration.
33332
33333         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
33334         access type.
33335
33336         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
33337         renaming of anonymous access-to-constant types allowed if and only if
33338         the renamed object is access-to-constant.
33339
33340         * sem_util.adb (Type_Access_Level): In case of anonymous access types
33341         that are component_definition or discriminants of a nonlimited type,
33342         the level is the same as that of the enclosing component type.
33343
33344 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
33345
33346         * sem_elim.adb: Some minor code reorganization from code reading. Fix
33347         misprint in the function name (File_Name_Match).
33348
33349 2004-04-23  Laurent Guerby  <laurent@guerby.net>
33350
33351         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
33352         install.
33353
33354 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33355
33356         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
33357
33358 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
33359
33360         * adaint.c (__gnat_try_lock): No longer requires that the parent
33361         directory be writable, the directory itself is enough.
33362         (gnat_is_absolute_path): Change profile, so that the call from
33363         GNAT.OS_Lib can be made more efficient.
33364
33365         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
33366         from GNAT.OS_Lib can be made more efficient.
33367
33368         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
33369         one copy of the file name. Found by code reading.
33370
33371 2004-04-23  Vincent Celier  <celier@gnat.com>
33372
33373         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
33374         Correct documentation on gnatmake switches transmitted to the compiler
33375
33376         * ali.ads: Minor comment fix
33377
33378 2004-04-23  Javier Miranda  <miranda@gnat.com>
33379
33380         * sem_ch6.adb: (Confirming Types): Code cleanup
33381
33382         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
33383         subprogram types: E_Anonymous_Access_Subprogram_Type and
33384         E_Anonymous_Access_Protected_Subprogram_Type.
33385
33386 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
33387
33388         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33389         whether a pragma All_Calls_Remote applies to the subprogram on which
33390         'Access is taken.
33391         No functional change is introduced by this revision; the new parameter
33392         will be used to allow calls to local RCI subprograms to be optimized
33393         to not use the PCS in the case where no pragma All_Calls_Remote applies,
33394         as is already done in the PolyORB implementation of the DSA.
33395
33396         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33397         whether a pragma All_Calls_Remote applies to the subprogram on which
33398         'Access is taken.
33399         No functional change is introduced by this revision; the new parameter
33400         will be used to allow calls to local RCI subprograms to be optimized
33401         to not use the PCS in the case where no pragma All_Calls_Remote applies,
33402         as is already done in the PolyORB implementation of the DSA.
33403
33404 2004-04-23  Robert Dewar  <dewar@gnat.com>
33405
33406         * Makefile.rtl: Add entry for s-addope.o in run time library list
33407         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
33408         * s-addope.ads, s-addope.adb: New files.
33409
33410         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
33411         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
33412         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
33413         System.Address to be non-private and signed.
33414
33415         * sem_elim.adb: Minor reformatting (fairly extensive)
33416         Some minor code reorganization from code reading
33417         Add a couple of ??? comments
33418
33419 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33420
33421         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
33422         (tree_transform, case N_If_Statement): Remove non-determinism.
33423
33424         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
33425
33426 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
33427
33428         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
33429         Eliminate' section.
33430
33431         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
33432         no longer used as a parameter name for Eliminate pragma).
33433
33434 2004-04-22  Laurent Guerby  <laurent@guerby.net>
33435
33436         PR optimization/14984
33437         PR optimization/14985
33438         * trans.c (gigi): Fix non determinism leading to bootstrap
33439         comparison failures.
33440
33441 2004-04-21  Pascal Obry  <obry@gnat.com>
33442
33443         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
33444         passed to spawnvp() to properly handle program pathname with spaces on
33445         Win32.
33446
33447 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
33448
33449         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
33450         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
33451         unlocked in case of exceptions.
33452
33453 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
33454
33455         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
33456         This function does not exist anymore.
33457
33458 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
33459
33460         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
33461
33462         * link.c: Move variables to the __gnat name space.
33463
33464         * Makefile.in: list link.o explicitly when needed.
33465
33466         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
33467
33468 2004-04-21  Javier Miranda  <miranda@gnat.com>
33469
33470         * einfo.adb (Original_Access_Type): New subprogram
33471         (Set_Original_Access_Type): New subprogram
33472         (Write_Field21_Name): Write the name of the new field
33473
33474         * einfo.ads (Original_Access_Type): New field present in access to
33475         subprogram types.
33476         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
33477         E_Anonymous_Access_Protected_Subprogram_Type.
33478
33479         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
33480         subprogram types.
33481
33482         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
33483         to anonymous access to subprogram types.
33484
33485         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
33486         to subprogram types.
33487
33488         * sem_ch3.adb (Access_Definition): Complete decoration of entities
33489         corresponding to anonymous access to subprogram types.
33490         (Analyze_Component_Declaration): Add new actual to the call to
33491         subprogram replace_anonymous_access_to_protected_subprogram.
33492         (Array_Type_Declaration): Add new actual to the call to subprogram
33493         replace_anonymous_access_to_protected_subprogram.
33494         (Process_Discriminants): Add new actual to the call to subprogram
33495         replace_anonymous_access_to_protected_subprogram.
33496         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
33497
33498         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33499         formal.
33500
33501         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
33502         access to subprogram types.
33503
33504         * sem_util.adb (Has_Declarations): Addition of package_specification
33505         nodes.
33506
33507 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
33508
33509         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
33510         inlined flags to renamed entity only if in current unit.
33511
33512 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
33513
33514         * s-parint.ads: Add DSA implementation marker.
33515
33516         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
33517         value of System.Partition_Interface.DSA_Implementation to determine
33518         what version of the distributed systems annex is available (no
33519         implementation, GLADE, or PolyORB).
33520
33521 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
33522
33523         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
33524
33525 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33526
33527         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
33528         with new type if alias sets differ.
33529         Fixes ACATS c41103b.
33530
33531 2004-04-21  Vincent Celier  <celier@gnat.com>
33532
33533         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
33534         Add array Lang_Args for the language specific compiling argument
33535         switches.
33536
33537         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
33538
33539 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
33540
33541         * gnat_rm.texi: Update the descripton of the Eliminate pragma
33542         according to the recent changes in the format of the parameters of the
33543         pragma (replacing Homonym_Number with Source_Location).
33544
33545 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
33546
33547         * 5isystem.ads: Removed, unused.
33548
33549         * gnat_rm.texi: Redo 1.13 change.
33550
33551 2004-04-19  Robert Dewar  <dewar@gnat.com>
33552
33553         * s-stoele.ads: Clean up definition of Storage_Offset (the new
33554         definition is cleaner, avoids the kludge of explicit Standard operator
33555         references, and also is consistent with a visible System.Address with
33556         no visible operations.
33557
33558         * s-geveop.adb: Add declarations to avoid assumption of visible
33559         operations on type System.Address (since these might not be available
33560         if Address is a non-private type for which the operations
33561         are made abstract).
33562
33563         * sem_eval.adb: Minor reformatting
33564
33565         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
33566         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
33567         reformatting (new function spec format).
33568
33569         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
33570         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
33571         s-caun64.adb: Add declarations to avoid assumption of visible
33572         operations on type System.Address (since these might not be available
33573         if Address is a non-private type for which the operations are made
33574         abstract).
33575
33576         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
33577
33578         * exp_intr.adb: Minor comment update
33579
33580         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
33581
33582         * 5omastop.adb: Add declarations to avoid assumption of visible
33583         operations on type System.Address (since these might not be available
33584         if Address is a non-private type for which the operations
33585         are made abstract).
33586
33587 2004-04-19  Vincent Celier  <celier@gnat.com>
33588
33589         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
33590
33591         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
33592         defaulted to Ada.
33593
33594         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
33595         defaulted to Ada.
33596         Call Check with Process_Languages.
33597         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
33598         with Process_Languages.
33599         (Recursive_Check): New Boolean parameter Process_Languages. Call
33600         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
33601         Process_Languages.
33602
33603         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
33604
33605         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
33606         parameter Ada_Main, defaulted to True.
33607         Check for Ada specific characteristics only when Ada_Main is True.
33608
33609         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
33610
33611         * prj.adb: (Project_Empty): Add new Project_Data components.
33612
33613         * prj.ads: New types and tables for non Ada languages.
33614         (Project_Data): New components Languages, Impl_Suffixes,
33615         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
33616         Include_Path, Include_Data_Set.
33617
33618         * prj-env.ads, prj-env.adb: Minor reformatting
33619
33620         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
33621         Put subprograms in alphabetical order
33622
33623         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
33624         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
33625         Opt.Follow_Links.
33626
33627         * mlib-prj.adb: Back out modification in last version, as they are
33628         incorrect.
33629         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
33630
33631         * make.adb: (Mains): Moved to package Makeutl
33632         (Linker_Opts): Moved to package Makeutl
33633         (Is_External_Assignment): Moved to package Makeutl
33634         (Test_If_Relative_Path): Moved to package Makeutl
33635         (Gnatmake): Move sorting of linker options to function
33636         Makeutl.Linker_Options_Switches.
33637
33638         * makeutl.ads, makeutl.adb: New files.
33639
33640         * Makefile.in: Add makeutl.o to the object files for gnatmake
33641
33642         * makeusg.adb: Add line for new switch -eL.
33643
33644         * gnatls.adb (Image): New function.
33645         (Output_Unit): If in verbose mode, output the list of restrictions
33646         specified by pragmas Restrictions.
33647
33648         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
33649         Text_IO.
33650
33651         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
33652         needed, to put it in the range 1970 (included) - 2026 (excluded).
33653         (Time_Of): Do not shift Unix_Min_Year (1970).
33654         Shift the date by multiple of 56 years, if needed, to put it in the
33655         range 1970 (included) - 2026 (excluded).
33656
33657         * adaint.h, adaint.c (__gnat_set_executable): New function.
33658
33659 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33660
33661         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
33662         and pop GC context.
33663         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
33664         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
33665         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
33666         (tree_transform, case N_Code_Statement): Likewise.
33667         (gnat_expand_stmt, case LABEL_STMT): Don't look at
33668         LABEL_STMT_FIRST_IN_EH.
33669         (gnat_expand_stmt, case ASM_STMT): New case.
33670
33671         * utils2.c (build_unary_op): Properly set TREE_READONLY of
33672         UNCONSTRAINED_ARRAY_REF.
33673
33674         * utils.c (poplevel): Temporarily push/pop GC context around inline
33675         function expansion.
33676
33677         * decl.c (maybe_variable): Properly set TREE_READONLY of
33678         UNCONSTRAINED_ARRAY_REF.
33679         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
33680
33681         * ada-tree.def: (ASM_STMT): New.
33682
33683         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
33684         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
33685         ASM_STMT_INPUT): New.
33686         (ASM_STMT_CLOBBER): Likewise.
33687
33688 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
33689
33690         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
33691         general rcheck mechanism to raise Program_Error for E.4(18), instead
33692         of a custom raiser in System.Partition_Interface.
33693         Part of general cleanup work before PolyORB integration.
33694
33695         * snames.ads, snames.adb: Add new runtime library entities and names
33696         for PolyORB DSA.
33697
33698         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33699         exp_dist.
33700         (Build_Subprogram_Id): New subprogram provided by exp_dist
33701         Code reorganisation in preparation for PolyORB integration.
33702
33703         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33704         exp_dist.
33705         (Build_Subprogram_Id): New subprogram provided by exp_dist
33706
33707         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
33708         actual parameter types for call to dereference of an
33709         access-to-subprogram type.
33710
33711         * rtsfind.ads: Add new runtime library entities and names for PolyORB
33712         DSA.
33713
33714         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
33715         instead, which has the same behaviour here since we never pass it a
33716         NULL pointer.
33717
33718         * link.c (run_path_option, Solaris case): Use -Wl, as for other
33719         platforms.
33720
33721         * Makefile.in: adjust object file lists for gnatlink and gnatmake
33722         to account for new dependency upon Interfaces.C.Strings + link.o
33723         For x86 FreeBSD, use 86numaux.
33724
33725         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
33726         from Mlib.Tgt to Mlib.
33727
33728         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
33729         target-independent.
33730
33731         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
33732         target-specific versions of this subprogram, now implemented as a
33733         target-independent function in Mlib.
33734
33735         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
33736         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
33737         (Linker_Library_Path_Option): Remove target-specific versions of this
33738         subprogram, now implemented as a target-independent function in Mlib.
33739
33740         * atree.adb: (Allocate_Initialize_Node): New subprogram.
33741         Factors out node table slots allocation.
33742         (Fix_Parents): New subprogram.
33743         Encapsulate the pattern of fixing up parent pointers for syntactic
33744         children of a rewritten node.
33745         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
33746         (Rewrite): Use New_Copy when creating saved copy of original node.
33747         (Replace): Use Copy_Node to copy nodes.
33748
33749 2004-04-19  Javier Miranda  <miranda@gnat.com>
33750
33751         * sprint.adb (Sprint_Node_Actual): Give support to the new
33752         Access_To_Subprogram node available in Access_Definition nodes. In
33753         addition, give support to the AI-231 node fields: null-exclusion,
33754         all-present, constant-present.
33755
33756         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
33757
33758         * sinfo.ads, sinfo.adb:
33759         New field Access_To_Subprogram_Definition in Access_Definition nodes
33760
33761         * sem_ch6.adb (Process_Formals): Move here the code that creates and
33762         decorates internal subtype declaration corresponding to the
33763         null-excluding formal. This code was previously in Set_Actual_Subtypes.
33764         In addition, carry out some code cleanup on this code. In case of
33765         access to protected subprogram call
33766         Replace_Anonymous_Access_To_Protected_Subprogram.
33767         (Set_Actual_Subtypes): Code cleanup.
33768
33769         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
33770         Find_Type in case of anonymous access renamings. Add warning in case of
33771         null-excluding attribute used in anonymous access renaming.
33772
33773         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33774         subprogram
33775
33776         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
33777         subprogram.
33778         (Access_Definition): In case of anonymous access to subprograms call
33779         the corresponding semantic routine to decorate the node.
33780         (Access_Subprogram_Declaration): Addition of some comments indicating
33781         some code that probably should be added here. Detected by comparison
33782         with the access_definition subprogram.
33783         (Analyze_Component_Declaration): In case of access to protected
33784         subprogram call Replace_Anonymous_Access_To_Protected.
33785         (Array_Type_Declaration): In case of access to protected subprogram call
33786         Replace_Anonymous_Access_To_Protected_Subprogram.
33787         (Process_Discriminants): In case of access to protected subprogram call
33788         Replace_Anonymous_Access_To_Protected_Subprogram.
33789
33790         * par.adb (P_Access_Definition): New formal that indicates if the
33791         null-exclusion part was present.
33792         (P_Access_Type_Definition): New formal that indicates if the caller has
33793         already parsed the null-excluding part.
33794
33795         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
33796         (P_Identifier_Declarations): Code cleanup and give support to renamings
33797         of anonymous access to subprogram types.
33798         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
33799         (P_Array_Type_Definition): Give support to AI-254.
33800         (P_Component_Items): Give support to AI-254.
33801         (P_Access_Definition): New formal that indicates if the header was
33802         already parsed by the caller.
33803         (P_Access_Type_Definition): New formal that indicates if the caller has
33804         already parsed the null-excluding part.
33805
33806         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
33807         call to P_Access_Definition.
33808
33809 2004-04-19  Geert Bosch  <bosch@gnat.com>
33810
33811         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
33812         the delicate semantics of floating-point to integer conversion.
33813         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
33814
33815         * eval_fat.adb (Machine_Mantissa): Moved to spec.
33816         (Machine_Radix): New function.
33817
33818         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
33819         conversion checks.
33820         (Machine_Radix): New function also for use in conversion checks.
33821
33822 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
33823
33824         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
33825
33826         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
33827         to decorate the access-to-protected subprogram and the equivalent type.
33828
33829         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
33830         to anonymous access to subprogram types.
33831
33832         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
33833         constant-folding, for legality checks in contexts that require an RM
33834         static expression.
33835
33836         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
33837         temporary but stack checking is not enabled, increment serial number
33838         to so that symbol generation is consistent with and without stack
33839         checking.
33840
33841         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
33842         independent on whether stack checking is enabled, caller must check
33843         the corresponding flag.
33844
33845         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
33846         range checks.
33847         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
33848         parent if it has discriminants.
33849         (Build_Derived_Private_Type): Constructed full view does
33850         not come from source.
33851         (Process_Discriminants): Default discriminants on a tagged type are
33852         legal if this is the internal completion of a private untagged
33853         derivation.
33854
33855         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
33856         no constraint checks, because it corresponds to an existing object.
33857
33858         * sem_prag.adb (Process_Convention): Pragma applies
33859         only to subprograms in the same declarative part, i.e. the same unit,
33860         not the same scope.
33861
33862         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
33863         ignore type mismatch on a numeric conversion if expression comes from
33864         expansion.
33865
33866 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
33867
33868         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
33869         Homonym_Number parameter, add processing for Source_Location parameter
33870         corresponding.
33871         (Check_Eliminated): Remove the check for homonym numbers, add the check
33872         for source location traces.
33873
33874         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
33875         with Arg_Source_Location corresponding to the changes in the format of
33876         the pragma.
33877
33878         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
33879         Eliminate pragma corresponding to the changes in the format of the
33880         pragma: Homonym_Number is replaced with Source_Location, two ways of
33881         distinguishing homonyms are mutially-exclusive.
33882
33883 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
33884
33885         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
33886
33887         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
33888         No_Dollar_In_Label, no longer necessary, as it is always True.
33889         (Strip_Suffixes): Likewise.
33890
33891 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
33892
33893         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
33894         modulus for compatibility with size clause on targets with 16-bit
33895         Integer.
33896
33897         * layout.adb (Discrimify): In the case of private types, set Vtyp to
33898         full type to fix type mismatches on calls to size functions for
33899         discriminant-dependent array components.
33900
33901 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
33902
33903         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
33904         lib.
33905
33906 2004-04-19  Pascal Obry  <obry@gnat.com>
33907
33908         * mdll-utl.adb (Locate): New version is idempotent.
33909
33910 2004-04-17  Laurent Guerby  <laurent@guerby.net>
33911
33912         PR ada/14988 (partial)
33913         * impunit.adb: Fix typo.
33914
33915 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
33916
33917         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
33918         and install-rts-cert targets.  Remove all gnatlib and gnattools
33919         targets and all other rts-* targets (moved to libada).  Remove (now)
33920         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
33921         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
33922
33923 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33924
33925         * trans.c (tree_transform): Shortcut returning error_mark_node for
33926         statements in annotate_only_mode.
33927         (tree_transform, case N_Label, case N_Return_Statement,
33928         N_Goto_Statement): Make statement tree instead of generating code.
33929         (tree_transform, case N_Assignment_Statement): No longer check
33930         type_annotate_only.
33931         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
33932         RETURN_STMT): New.
33933         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
33934         New fcns.
33935         (gnat_to_gnu): Collect any RTL generated and deal with it.
33936         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
33937         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
33938         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
33939
33940         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
33941
33942         * ada-tree.def (EXPR_STMT): Fix typo in name.
33943         (BLOCK_STMT, IF_STMT): New nodes.
33944
33945         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
33946         LABEL_STMT_FIRST_IN_EH): New macros.
33947         (RETURN_STMT_EXPR): Likewise.
33948
33949         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
33950         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
33951
33952 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
33953
33954         * atree.ads: Correct documentation on extended nodes.
33955
33956         * link.c: Set run_path_option for FreeBSD.
33957
33958 2004-04-08  Vincent Celier  <celier@gnat.com>
33959
33960         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
33961         one of the ALI file, do not link with DEC lib.
33962
33963         * par.adb Remove the last two characters ("%s" or "%b") when checking
33964         if a language defined unit may be recompiled.
33965
33966 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
33967
33968         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
33969         removal of abstract operation leaves no possible interpretation for
33970         expression.
33971
33972         * sem_eval.adb (Eval_Qualified_Expression): Use
33973         Set_Raises_Constraint_Error on node when needed, so that it does not
33974         get optimized away by subsequent optimizations.
33975
33976         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
33977         operands even when they are not wrapped in a type conversion.
33978
33979 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
33980
33981         * sem_prag.adb (Set_Exported): Warn about making static as result of
33982         export only when the export is coming from source. This may be not
33983         be true e.g. on VMS where we expand export pragmas for exception codes
33984         together with imported or exported exceptions, and we don't want the
33985         user to be warned about something he didn't write.
33986
33987 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
33988
33989         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
33990         duplication between normal entities and those declared as renamings.
33991         No functional change.
33992
33993         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
33994         inline functions returning an unconstrained result.
33995
33996 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
33997
33998         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
33999         conform to what other front-ends do.
34000
34001 2004-04-08  Doug Rupp  <rupp@gnat.com>
34002
34003         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34004         libraries.
34005
34006 2004-04-06  Pascal Obry  <obry@gnat.com>
34007
34008         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34009
34010         * osint.adb (Program_Name): Do not look past a directory separator.
34011
34012 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
34013
34014         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34015
34016         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34017         requirement for preserving a copy of the original assignment node.
34018
34019         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34020
34021 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
34022
34023         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34024         when supported.
34025
34026 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
34027
34028         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34029         operator calls in functional notation, and apply
34030         Universal_Interpretation to operands, not to their type.
34031
34032 2004-04-06  Robert Dewar  <dewar@gnat.com>
34033
34034         * 5wdirval.adb: Minor reformatting
34035
34036 2004-04-06  Ed Falis  <falis@gnat.com>
34037
34038         * gnat_rm.texi: Improve a reference to the GCC manual
34039
34040 2004-04-05  Vincent Celier  <celier@gnat.com>
34041
34042         * adaint.h, adaint.c: Add function __gnat_named_file_length
34043
34044         * impunit.adb: Add Ada.Directories to the list
34045
34046         * Makefile.in: Add VMS and Windows versions of
34047         Ada.Directories.Validity package body.
34048
34049         * Makefile.rtl: Add a-direct and a-dirval
34050
34051         * mlib-tgt.ads: Minor comment update.
34052
34053         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34054         a-direct.ads, a-direct.adb: New files.
34055
34056 2004-04-05  Vincent Celier  <celier@gnat.com>
34057
34058         PR ada/13620
34059         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
34060         just to the compiler.
34061
34062 2004-04-05  Robert Dewar  <dewar@gnat.com>
34063
34064         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
34065         returned string is 1.
34066
34067         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
34068
34069         * eval_fat.ads: Minor reformatting
34070
34071         * g-curexc.ads: Document that lower bound of returned string values
34072         is always one.
34073
34074         * gnatlink.adb: Add ??? comment for previous change
34075         (need to document why this is VMS specific)
34076
34077         * s-stoele.ads: Minor reformatting
34078
34079         * tbuild.ads: Minor reformatting throughout (new function specs)
34080
34081         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
34082         after WITH.
34083
34084         * scng.adb: Minor reformatting
34085
34086 2004-04-05  Geert Bosch  <bosch@gnat.com>
34087
34088         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
34089         (Leading_Part): Still perform truncation to machine number if the
34090         specified radix_digits is greater or equal to machine_mantissa.
34091
34092 2004-04-05  Javier Miranda  <miranda@gnat.com>
34093
34094         * par-ch3.adb: Complete documentation of previous change
34095         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
34096         (aliased must appear before constant).
34097
34098         * par-ch4.adb: Complete documentation of previous change.
34099
34100         * par-ch6.adb: Complete documentation of previous change.
34101
34102         * sinfo.ads: Fix typo in commment.
34103
34104 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
34105
34106         * sem_ch3.adb (Inherit_Components): If derived type is private and has
34107         stored discriminants, use its discriminants to constrain parent type,
34108         as is done for non-private derived record types.
34109
34110         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
34111         Ada 2005 AI-310: an abstract non-dispatching operation is not a
34112         candidate interpretation in an overloaded call.
34113
34114         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
34115         expression is Null and target type is not an access type (e.g. a
34116         non-private address type).
34117
34118 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
34119
34120         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
34121         statement whose right-hand side is an inlined call, save a copy of the
34122         original assignment subtree to preserve enough consistency for
34123         Analyze_Assignment to proceed.
34124
34125         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
34126         complete assignment subtree which is now unnecessary, as the expansion
34127         of inlined call has been improved to preserve a consistent assignment
34128         tree.  Note_Possible_Modification must be called only
34129         after checks have been applied, or else unnecessary checks will
34130         be generated.
34131
34132         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
34133         of explicit dereferences that do not Come_From_Source:
34134          - be selective on cases where we must go back to the dereferenced
34135            pointer (an assignment to an implicit dereference must not be
34136            recorded as modifying the pointer);
34137          - do not rely on Original_Node being present (Analyze_Assignment
34138            calls Note_Possible_Modification on a copied tree).
34139
34140         * sem_warn.adb (Check_References): When an unset reference to a pointer
34141         that is never assigned is encountered, prefer '<pointer> may be null'
34142         warning over '<pointer> is never assigned a value'.
34143
34144 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
34145
34146         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
34147         the ABI.
34148
34149 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
34150
34151         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
34152         libexc. We currently don't reference anything in this library and
34153         linking it in triggers linker warnings we don't want to see.
34154
34155         * init.c: Update comments.
34156
34157 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34158
34159         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
34160         * utils.c (create_field_decl): Likewise.
34161         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
34162
34163 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
34164
34165         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
34166         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
34167         Add info directory entry and category.
34168
34169 2004-04-02  Jan Hubicka  <jh@suse.cz>
34170
34171         * utils.c: Include function.h
34172         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
34173
34174 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
34175
34176         PR ada/14150
34177         * Make-lang.in: Clean up generation of documentation
34178
34179         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
34180
34181         * xgnatug.adb: Removed, replaced by xgnatugn.adb
34182
34183         * xgnatugn.adb: Replaces xgnatug.adb
34184
34185         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
34186
34187         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
34188
34189         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34190         gnat_ug_wnt.texi: Removed.
34191
34192 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
34193
34194         * utils2.c: Update copyright notice.
34195
34196 2004-04-01  Robert Dewar  <dewar@gnat.com>
34197
34198         * checks.adb: Minor reformatting throughout
34199         Note that prev checkin added RM reference to alignment warning
34200
34201 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
34202
34203         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
34204         non-static when building aggregate for bit-packed array.
34205
34206         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
34207         function call that is itself the actual in a procedure call, build
34208         temporary for it.
34209
34210         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
34211         a string literal, create a temporary for it, constant folding only
34212         handles scalars here.
34213
34214 2004-04-01  Vincent Celier  <celier@gnat.com>
34215
34216         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
34217         Error_Msg_SP): New empty procedures to instantiate the Scanner.
34218         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
34219         tokens.
34220         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
34221         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
34222         and get the checksum.
34223
34224         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
34225         already in the Q.
34226         Increase the Marking_Label at the end of the Multiple_Main_Loop,
34227         instead of at the beginning.
34228
34229         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
34230         directly.
34231         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
34232         on VMS.
34233
34234         * osint.ads (Multi_Unit_Index_Character): New Character global variable
34235
34236         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
34237         not '~' directly.
34238
34239         * par.adb: Remove test on file name to detect language defined units.
34240         Add test on unit name, after parsing, to detect language defined units
34241         that are not compiled with -gnatg (except System.RPC and its children)
34242
34243         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
34244         following units without style checking.
34245
34246         * switch-c.adb: Change -gnatC to -gnateI
34247
34248         * usage.adb: Document new switch -gnateInnn
34249
34250         * scng.adb (Accumulate_Token_Checksum): New procedure
34251         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
34252         word or literal number.
34253         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
34254         numbers.
34255
34256 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
34257
34258         * a-tasatt.adb,
34259         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
34260         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
34261         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
34262         5vtpopde.adb: Add missing 'constant' keywords.
34263
34264 2004-04-01  Javier Miranda  <miranda@gnat.com>
34265
34266         * par-ch4.adb: (P_Allocator): Code cleanup
34267
34268         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
34269         attribute.
34270
34271         * sinfo.ads: Complete documentation of previous change
34272
34273 2004-04-01  Pascal Obry  <obry@gnat.com>
34274
34275         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
34276         only on VMS.  This special handling was done because an old GNU/ld bug
34277         on Windows which has been fixed.
34278
34279 2004-04-01  GNAT Script  <nobody@gnat.com>
34280
34281         * Make-lang.in: Makefile automatically updated
34282
34283 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34284
34285         * decl.c (gnat_to_gnu_entity, make_type_from_size):
34286         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
34287         * trans.c (tree_transform, convert_with_check): Likewise.
34288         * utils.c (gnat_signed_or_unsigned_type): Likewise.
34289         (build_vms_descriptor, unchecked_convert): Likewise.
34290         * utils2.c (nonbinary_modular_operation): Likewise.
34291
34292 2004-03-29  Javier Miranda  <miranda@gnat.com>
34293
34294         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
34295         (Install_Null_Excluding_Check): Local subprogram that determines whether
34296         an access node requires a runtime access check and if so inserts the
34297         appropriate run-time check.
34298         (Apply_Access_Check): Call Install_Null_Excluding check if required
34299         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
34300
34301         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
34302
34303         * einfo.ads: Fix typo in comment
34304
34305         * exp_ch3.adb (Build_Assignment): Generate conversion to the
34306         null-excluding type to force the corresponding run-time check.
34307         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
34308         type to force the corresponding run-time check.
34309
34310         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
34311         the null-excluding type to force the corresponding run-time check.
34312
34313         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
34314         case of access types unless they have the null-excluding attribute.
34315
34316         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
34317         part.
34318
34319         * exp_util.ads: Fix typo in comment
34320
34321         * par.adb (P_Null_Exclusion): New subprogram
34322         (P_Subtype_Indication): New formal that indicates if the null-excluding
34323         part has been scanned-out and it was present
34324
34325         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
34326
34327         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
34328         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
34329         type to force the corresponding run-time check
34330         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
34331         components
34332         (Resolve_Array_Aggregate): Carry out some static checks
34333         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
34334
34335         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
34336         attribute must be set only if specified by means of the null-excluding
34337         part. In addition, we must also propagate the access-constant attribute
34338         if present.
34339         (Access_Subprogram_Declaration, Access_Type_Declaration,
34340         Analyze_Component_Declaration, Analyze_Object_Declaration,
34341         Array_Type_Declaration, Process_Discriminants,
34342         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
34343         and carry out some static checks.
34344         (Build_Derived_Access_Type): Set the null-excluding attribute
34345         (Derived_Type_Declaration, Process_Subtype): Carry out some static
34346         checks.
34347
34348         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
34349
34350         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
34351
34352         * sem_ch6.adb (Process_Formals): Carry out some static checks.
34353         (Set_Actual_Subtypes): Generate null-excluding subtype if the
34354         null-excluding part was present; it is not required to be done here in
34355         case of anonymous access types.
34356         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
34357         value.
34358
34359         * sem_res.adb (Resolve_Actuals): Carry out some static check
34360         (Resolve_Null): Allow null in anonymous access
34361
34362         * sinfo.adb: New subprogram Null_Exclusion_Present
34363         All_Present and Constant_Present available on access_definition nodes
34364
34365         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
34366         object_declaration, derived_type_definition, component_definition,
34367         discriminant_specification, access_to_object_definition,
34368         access_function_definition, allocator, access_procedure_definition,
34369         access_definition, parameter_specification, All_Present and
34370         Constant_Present flags available on access_definition nodes.
34371
34372 2004-03-29  Robert Dewar  <dewar@gnat.com>
34373
34374         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
34375         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
34376         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
34377         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
34378         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
34379         sem_prag.adb: Updates to handle multiple units/file
34380
34381         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
34382
34383         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
34384         sem_util.adb: Minor reformatting
34385
34386         * sem_ch12.adb: Add comment for previous change
34387
34388 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
34389
34390         * osint.adb (Executable_Prefix): Set Exec_Name to the current
34391         executable name when not initialized. Otherwise, use its current value.
34392
34393         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
34394         initialize it to another executable name than the current one. This
34395         allows to configure paths for an executable name (gnatmake) different
34396         from the current one (gnatdist).
34397
34398 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
34399
34400         * exp_ch6.adb (Expand_Call): A call to a function declared in the
34401         current unit cannot be inlined if it appears in the body of a withed
34402         unit, to avoid order of elaboration problems in gigi.
34403
34404         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
34405         information for protected (wrapper) operation as well, to simplify gdb
34406         use.
34407
34408         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
34409         protected body, indicate that the entity for the generated spec comes
34410         from source, to ensure that references are properly generated for it.
34411         (Build_Body_To_Inline): Do not inline a function that returns a
34412         controlled type.
34413
34414         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
34415         apply convention to homonyms that are declared explicitly.
34416
34417         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
34418         that renames an equality operator and the operands are overloaded,
34419         resolve them with the declared formal types, before rewriting as an
34420         operator.
34421
34422 2004-03-29  GNAT Script  <nobody@gnat.com>
34423
34424         * Make-lang.in: Makefile automatically updated
34425
34426 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
34427
34428         * memtrack.adb: Log realloc calls, which are treated as free followed
34429         by alloc.
34430
34431 2004-03-25  Vincent Celier  <celier@gnat.com>
34432
34433         * prj-makr.adb (Process_Directories): Detect when a file contains
34434         several units. Do not include such files in the config pragmas or
34435         in the naming scheme.
34436
34437         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
34438         Resolve links only when not in Trusted_Mode.
34439         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
34440         Do not resolve links for the display names.
34441
34442         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
34443         resolve links when computing the display names.
34444
34445 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
34446
34447         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
34448         attribute reference does not denote a subtype, it can be any
34449         expression that has a classwide type, potentially after an implicit
34450         dereference.  In particular, the prefix can be a view conversion for
34451         a classwide type (for which Is_Object_Reference holds), but it can
34452         also be a value conversion for an access-to-classwide type. In the
34453         latter case, there is an implicit dereference, and the original node
34454         for the prefix does not verify Is_Object_Reference.
34455
34456         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
34457         conversion of a discriminant-dependent component of a mutable object
34458         is one itself.
34459
34460 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
34461
34462         * freeze.adb (Freeze_Entity): When an inherited subprogram is
34463         inherited, has convention C, and has unconstrained array parameters,
34464         place the corresponding warning on the derived type declaration rather
34465         than the original subprogram.
34466
34467         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
34468         indication on renaming declaration, if formal has a box and actual
34469         is absent.
34470
34471         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
34472         determine whether to generate an implicit or explicit reference to
34473         the renamed entity.
34474
34475         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
34476         subprogram renaming comes from a defaulted formal subprogram in an
34477         instance.
34478
34479 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
34480
34481         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
34482         value expressions to ensure that calls within a component definition
34483         will be checked (since those are evaluated during the record type's
34484         elaboration).
34485
34486 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
34487
34488         * s-tpobop.adb: Code clean up:
34489         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
34490         code.
34491         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
34492
34493 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
34494
34495         * Makefile.in: Clean up in the ravenscar run time.
34496
34497 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34498
34499         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
34500         of No_Strict_Aliasing to build_pointer_type_for_mode.
34501         * utils.c (update_pointer_to): Walk pointer and ref chains.
34502
34503 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
34504
34505         * ali.ads: Fix Comment about Dynamic_Elab.
34506
34507         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
34508         Has_RACW, Is_Generic, etc.)
34509         (Output_Object, Gnatls): Take into account ALI files not attached to
34510         an object.
34511
34512 2004-03-22  Vincent Celier  <celier@gnat.com>
34513
34514         * gprep.adb: Change all String_Access to Name_Id
34515         (Is_ASCII_Letter): new function
34516         (Double_File_Name_Buffer): New procedure
34517         (Preprocess_Infile_Name): New procedure
34518         (Process_Files): New procedure
34519         (Gnatprep): Check if output and input are existing directories.
34520         Call Process_Files to do the real job.
34521
34522 2004-03-22  Robert Dewar  <dewar@gnat.com>
34523
34524         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
34525         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
34526
34527 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
34528
34529         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
34530         case when the source contains only comments.
34531
34532 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
34533
34534         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
34535         declaration for a child subprogram body that acts as a spec, indicate
34536         that the entity in the declaration needs debugging information.
34537
34538         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
34539         full view if the subtype is created for a constrained record component;
34540         gigi has enough information to construct the record, and there is no
34541         place in the tree for the declaration.
34542
34543         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
34544         serial number for the dummy body that is built for analysis, to avoid
34545         inconsistencies in the generation of internal names when compiling
34546         with -gnatN.
34547
34548 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
34549
34550         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
34551         object.
34552
34553 2004-03-22  GNAT Script  <nobody@gnat.com>
34554
34555         * Make-lang.in: Makefile automatically updated
34556
34557 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34558
34559         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34560         * trans.c (tree_transform, emit_index_check): Likewise.
34561         * utils.c (build_template): Likewise.
34562         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
34563         (maybe_unconstrained_array, unchecked_convert): Likewise.
34564         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
34565         (build_unary_op): Likewise.
34566         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34567         (fill_vms_descriptor): Likewise.
34568         (build_call_alloc_dealloc): Likewise.
34569         ALIGN is unsigned.
34570         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
34571
34572 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
34573
34574         PR other/14630
34575         * gnat_ug.texi: Add info directory category and entry.
34576         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34577         gnat_ug_wnt.texi: Regenerate.
34578
34579 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
34580
34581         * ada-tree.h: Update copyright notice.
34582         Minor reformatting.
34583
34584 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
34585
34586         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
34587         as regular exception objects and not as mere integers representing the
34588         condition code.  The latter approach required some dynamics to mask off
34589         severity bits, which did not fit well into the GCC table based model.
34590         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
34591         exception data objects. We don't it and it would conflict with the other
34592         external symbol we have to generate for such exceptions.
34593
34594         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
34595         the special code for VMS exceptions, since these are now represented
34596         as regular exceptions objects.
34597
34598 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34599
34600         * decl.c (debug_no_type_hash): Remove.
34601         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
34602         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
34603
34604 2004-03-19  Laurent Guerby  <laurent@guerby.net>
34605
34606         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
34607         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
34608
34609 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34610
34611         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
34612         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
34613         (TYPE_RM_SIZE_INT): Directly use type.values.
34614         (TREE_LOOP_ID): Clean up check.
34615         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
34616         TYPE_VALUES, not TYPE_FIELDS.
34617         * trans.c (convert_with_check): Delay access of bounds of basetype
34618         until sure is numeric.
34619
34620 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
34621
34622         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
34623
34624         Code clean up:
34625         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
34626         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
34627         Specific.Set instead of direct call to e.g pthread_setspecific.
34628
34629 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
34630
34631         * adaint.c: Update comments.
34632
34633         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
34634         GNATLIB_SHARED for FreeBSD.
34635
34636 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
34637
34638         * init.c [VxWorks]: Do not fix the stack size for the environment task.
34639         When needed (stack checking) the stack size is retrieved
34640         from the VxWorks kernel.
34641
34642         * Makefile.in: Flag -nostdinc is required when building the run time
34643         for avoiding looking for files in the base compiler.
34644         Add the VxWorks specific version of the package body for
34645         System.Stack_checking.Operations (5zstchop.adb).
34646
34647         * Make-lang.in: Add the object file for
34648         System.Stack_Checking.Operations.
34649
34650         * Makefile.rtl: Add object file for the package
34651         System.Stack_Checking.Operations.
34652
34653         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
34654
34655         * s-stache.ads, s-stache.adb: Move the operations related to stack
34656         checking from this package to package System.Stack_Checking.Operations.
34657         This way, stack checking operations are only linked in the final
34658         executable when using the -fstack-check flag.
34659
34660 2004-03-18  Doug Rupp  <rupp@gnat.com>
34661
34662         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
34663         Reorganize ifeq's.
34664
34665         * 5qsystem.ads, 5xcrtl.ads: New files.
34666
34667 2004-03-18  Vincent Celier  <celier@gnat.com>
34668
34669         * prj.adb (Reset): Reset hash table Files_Htable
34670
34671         * prj-env.adb (Source_Paths, Object_Paths): New tables.
34672         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
34673         the procedures Add_To_Path_File.
34674         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
34675         making sure that each directory is present only once and, for object
34676         dirs, when a directory already present is added, the duplicate is
34677         removed and the directory is always put as the last in the table.
34678         Write the path files at the end of these accumulations.
34679
34680         * prj-nmsc.adb (Record_Source): Add source file name in hash table
34681         Files_Htable for all sources.
34682
34683         * prj-proc.adb (Process): Remove restrictions between not directly
34684         related extending projects.
34685
34686 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
34687
34688         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
34689         (Find_Sources): Minor speed optimization.
34690
34691         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
34692         parameter Trusted_Mode.
34693
34694 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
34695
34696         * scn.adb (Determine_License): Take into account a degenerated case
34697         when the source contains only comments.
34698
34699 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
34700
34701         * sem_warn.adb (Check_References): For a warning on a selected
34702         component that does not come from source, locate an uninitialized
34703         component of the record type to produce a more precise error message.
34704
34705 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
34706
34707         * 3zsoccon.ads: Fix multicast options.
34708
34709         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
34710         in the spec.
34711
34712 2004-03-15  Robert Dewar  <dewar@gnat.com>
34713
34714         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
34715         pragma used for a private type.
34716
34717         * lib-xref.adb (Generate_Reference): Do not generate warning if
34718         reference is in a different unit from the pragma Unreferenced.
34719
34720         * 5vtpopde.adb: Minor reformatting
34721         Fix casing of To_Task_ID
34722
34723         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
34724         flag if we have an unchecked conversion to an access type in the same
34725         unit.
34726
34727 2004-03-15  Geert Bosch  <bosch@gnat.com>
34728
34729         * a-ngcoty.adb (Modulus): In alternate formula for large real or
34730         imaginary parts, use Double precision throughout.
34731
34732         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
34733         we want to be able to compile run-time with -gnata for testing, but
34734         this may also be instantiated in user code that is compiled with -gnata.
34735
34736 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
34737
34738         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
34739         codes. Having a separate type for this is useful to enforce consistency
34740         throughout the various run-time units.
34741         (Exception_Data): Use Exception_Code for Import_Code.
34742
34743         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
34744         Natural and Integer in various places.
34745         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
34746         with the severity bits masked off.
34747         (Register_VMS_Exception): Handle the additional exception data pointer
34748         argument.
34749
34750         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
34751         component, now reflected by an exported accessor.
34752         (is_handled_by): New routine to compute whether the propagated
34753         occurrence matches some handler choice specification. Extracted out of
34754         get_action_description_for, and expanded to take care of the VMS
34755         specifities.
34756         (get_action_description_for): Use is_handled_by instead of an explicit
34757         complex condition to decide if the current choice at hand catches the
34758         propagated occurrence.
34759
34760         * raise.h (Exception_Code): New type for C.
34761
34762         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
34763         System.Standard_Library.Exception_Code, to allow references from the
34764         pragma import/export expander.
34765
34766         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
34767         New accessors to allow easy access to GNAT exception data
34768         characteristics.
34769         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
34770         redundant Handled_By_Others component, helper for the personality
34771         routine which will now be able to call the appropriate exception data
34772         accessor instead.
34773
34774         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
34775         component of Standard_Exception_Type to be the closest possible to
34776         Exception_Code in System.Standard_Library, that we cannot get at this
34777         point. Expand a ??? comment to notify that this type node should
34778         probably be rewritten later on.
34779
34780         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
34781         registration call to include a pointer to the exception object in the
34782         arguments.
34783
34784         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
34785         instead of int and explicit bitmasks.
34786
34787 2004-03-15  Vincent Celier  <celier@gnat.com>
34788
34789         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
34790         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
34791
34792         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
34793         longer needed now that it is in the spec of
34794         System.Tasking.Task_Attributes.
34795
34796         * adaint.h, adaint.c: (__gnat_create_output_file): New function
34797
34798         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
34799
34800         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
34801
34802         * make.adb (Gnatmake): Do not check the executable suffix; it is being
34803         taken care of in Scan_Make_Arg.
34804         (Scan_Make_Arg): Add the executable suffix only if the argument
34805         following -o, in canonical case, does not end with the executable
34806         suffix.  When in verbose mode and executable file name does not end
34807         with executable suffix, output the executable name, in canonical case.
34808
34809         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
34810         to avoid warnings when instantiating Ada.Task_Attributes.
34811         Minor reformating.
34812
34813         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
34814         in the correct order.
34815
34816         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
34817         redirect standard output and error to a file for the invocation of the
34818         compiler, then read the file.
34819
34820         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
34821         directory, instead of the Value.
34822         (Find_Source_Dirs): Remove useless code & comments.
34823
34824 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
34825
34826         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
34827         tagged type is inherited, and the parent operation is not frozen yet,
34828         force generation of a freeze node for the inherited operation, so the
34829         corresponding dispatch entry is properly initialized.
34830         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
34831         when looking for user-defined equality operation.
34832
34833         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
34834         boolean when locating primitive equality of tagged component.
34835
34836         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
34837         bit-aligned field and the right-hand side a string literal, introduce
34838         a temporary before expanding assignment into a loop.
34839
34840         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
34841         priority in full, to ensure that any expanded subepxressions of it are
34842         elaborated in the scope of the init_proc.
34843
34844         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
34845         after object declaration, skipping over code that may have been
34846         generated for validity checks.
34847
34848         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
34849         discriminants, ignore the known discriminants of its full view, if
34850         any, to check legality.
34851
34852         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
34853         component if type has unknown discriminants.
34854         (Analyze_Private_Extension_Declaration): Discriminant constraint is
34855         null if type has unknown discriminants.
34856
34857         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
34858         for end label when present.
34859
34860         * s-fileio.adb (Open): When called with a C_Stream, use given name for
34861         temporary file, rather than an empty string.
34862
34863 2004-03-15  Ed Falis  <falis@gnat.com>
34864
34865         * s-thread.adb: Removed, no longer used.
34866
34867 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34868
34869         * decl.c (target.h): Now include.
34870         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
34871         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
34872         (validate_size): For POINTER_TYPE, get smallest size permitted on
34873         machine.
34874
34875         * fe.h: Sort Einfo decls and add Set_Mechanism.
34876
34877         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
34878         (ada/decl.o): Depends on target.h.
34879
34880         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
34881         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
34882
34883 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
34884
34885         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
34886
34887         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
34888         Insert_Dereference_Action when rewriting an implicit dereference into
34889         an explicit one, this will be taken care of during expansion of the
34890         explicit dereference.
34891         (Expand_N_Slice): Same. Always do the rewriting, even for the case
34892         of non-packed slices, since the dereference action generated by
34893         expansion of the explicit dereference is needed in any case.
34894         (Expand_N_Selected_Component): When rewriting an implicit dereference,
34895         analyze and resolve the rewritten explicit dereference so it is seen
34896         by the expander.
34897         (Insert_Dereference_Action): This procedure is now called only for the
34898         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
34899         dereferences that do not come from source (including explicit
34900         dereferences resulting from rewriting implicit ones), but do not
34901         recursively insert a check for the dereference nodes contained within
34902         the check.
34903         (Insert_Dereference_Action): Clarify and correct comment.
34904
34905 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
34906
34907         PR ada/14131
34908         Move language detection to the top level.
34909         * config-lang.in: Build by default.
34910
34911 2004-03-05  Robert Dewar  <dewar@gnat.com>
34912
34913         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
34914
34915         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
34916         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
34917         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
34918         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
34919         unchecked conversion to spec to avoid warnings.
34920
34921         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
34922         to Task_ID
34923
34924         * 7stpopsp.adb: Correct casing in To_Task_ID call
34925
34926         * a-strsea.ads, a-strsea.adb: Minor reformatting
34927
34928         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
34929
34930         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
34931         Adjust Max_Msg_Length to be clearly large enough.
34932
34933         * fe.h: Define In_Same_Source_Unit
34934
34935         * osint.adb: Add pragma Warnings Off to suppress warnings
34936         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
34937         aliasing warnings.
34938
34939         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
34940
34941         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
34942
34943         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
34944
34945         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
34946
34947         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
34948
34949         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
34950         node. We now do generate them for gcc back end.
34951
34952         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
34953         warning.
34954
34955         * sinput-c.adb: Fix bad name in header.
34956         Add pragma Warnings Off to suppress aliasing warning.
34957
34958         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
34959
34960         * snames.h, snames.ads, snames.adb: Add entry for pragma
34961         No_Strict_Aliasing.
34962
34963 2004-03-05  Vincent Celier  <celier@gnat.com>
34964
34965         * prj-com.ads: Add hash table Files_Htable to check when a file name
34966         is already a source of another project.
34967
34968         * prj-nmsc.adb (Record_Source): Before recording a new source, check
34969         if its file name is not already a source of another project. Report an
34970         error if it is.
34971
34972         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
34973         source file name, call gnatpp with all the sources of the main project.
34974
34975         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
34976         of file names.
34977
34978         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
34979         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
34980         /RUNTIME_SYSTEM=, converted to --RTS=
34981         /NOTABS, converted to -notabs
34982
34983 2004-03-05  Pascal Obry  <obry@gnat.com>
34984
34985         * make.adb: Minor reformatting.
34986
34987 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
34988
34989         Part of implemention of AI-262.
34990         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
34991
34992         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
34993         procedure.
34994
34995         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
34996         when component type is a partially constrained class-wide subtype.
34997         (Constrain_Discriminated_Type): If parent type has unknown
34998         discriminants, a constraint is illegal, even if full view has
34999         discriminants.
35000         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35001         with unknown discriminants whose full view is a discriminated record.
35002
35003         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35004         flag, to handle properly derivations of tagged types with unknown
35005         discriminants.
35006         (Analyze_Package_Spec, Analyze_Package_Body): Install
35007         Private_With_Clauses before analyzing private part or body.
35008
35009         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35010         Has_Discriminants can be true for a given type (documentation).
35011
35012 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
35013
35014         * s-restri.ads: Fix license (GPL->GMGPL).
35015
35016         * s-tassta.adb: Minor reformatting.
35017
35018         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35019         by calls to Exit_One_ATC_Level, since additional clean up is performed
35020         by this function.
35021
35022         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35023         by calls to Exit_One_ATC_Level, since additional clean up is performed
35024         by this function.
35025
35026 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35027
35028         * trans.c: Reflect GCC changes to fix bootstrap problem.
35029         Add warning for suspicious aliasing unchecked conversion.
35030
35031 2004-03-05  GNAT Script  <nobody@gnat.com>
35032
35033         * Make-lang.in: Makefile automatically updated
35034
35035 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
35036
35037         * ali.adb (Read_Instantiation_Instance): Do not modify the
35038         current_file_num when reading information about instantiations, since
35039         this corrupts files in later references.
35040
35041 2004-03-02  Vincent Celier  <celier@gnat.com>
35042
35043         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35044         before checking if it is read-only.
35045
35046         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35047         of SRC_DIRS and eliminate duplicates.
35048
35049         * gprcmd.adb: Replace command "path" with command "path_sep" to return
35050         the path separator.
35051         (Usage): Document path_sep
35052
35053         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35054         C++ compiler. No need for a script.
35055         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35056         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35057         subst.
35058
35059         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
35060         where there are Ada sources.
35061         (Set_Ada_Paths): Only add to the include path the source dirs of project
35062         with Ada sources.
35063         (Add_To_Path): Add the Display_Values of the directories, not their
35064         Values.
35065
35066         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
35067         data.
35068
35069         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
35070         is not No_Name.
35071         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
35072         Value is canonicalized.
35073         (Language_Independent_Check): Do not copy Value to Display_Value when
35074         canonicalizing Value.
35075
35076         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
35077         path to find limited with cycles.
35078         (Parse_Single_Project): Use canonical cased path to find the end of a
35079         with cycle.
35080
35081 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
35082
35083         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
35084         and not a child unit.
35085
35086         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
35087         appear in a with_clause.
35088
35089         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
35090         only happen in type_annotate mode, do not try to elaborate it.
35091
35092         * exp_util.adb (Force_Evaluation): If expression is a selected
35093         component on the left of an assignment, use a renaming rather than a
35094         temporary to remove side effects.
35095
35096         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
35097         inlined instance body, which is analyzed before the end of the
35098         enclosing scope.
35099
35100 2004-03-02  Robert Dewar  <dewar@gnat.com>
35101
35102         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
35103         sem_ch4.adb: Use new feature for substitution of keywords in VMS
35104
35105         * errout.ads, errout.adb: Implement new circuit for substitution of
35106         keywords in VMS.
35107
35108         * sem_case.adb (Analyze_Choices): Place message properly when case is
35109         a subtype reference rather than an explicit range.
35110
35111         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
35112
35113 2004-03-02  Doug Rupp  <rupp@gnat.com>
35114
35115         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
35116
35117 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
35118
35119         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
35120
35121 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35122
35123         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
35124         BLKmode bitfield.
35125
35126 2004-02-25  Robert Dewar  <dewar@gnat.com>
35127
35128         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
35129         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
35130         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
35131         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
35132         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
35133         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
35134         the defining instance of the type to avoid aliasing problems.
35135         Fix copyright header.  Fix bad comments in package header.
35136
35137         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
35138
35139 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
35140
35141         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
35142         rewritten as references when aliased through an address clause.
35143
35144         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
35145         whether call can be interpreted as an indirect call to the result of a
35146         parameterless function call returning an access subprogram.
35147
35148 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
35149
35150         Code clean up:
35151         * exp_ch7.adb (Make_Clean): Remove generation of calls to
35152         Unlock[_Entries], since this is now done by Service_Entries directly.
35153
35154         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
35155
35156         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
35157         Requeue_Call for better code readability. Change spec and update calls:
35158         PO_Service_Entries now unlock the PO on exit.
35159         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
35160         PO_Service_Entries.
35161
35162         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
35163
35164         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
35165
35166 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
35167
35168         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
35169         protected subprogram call and analyzing the result of such expanding
35170         in case when the called protected subprogram is eliminated.
35171
35172         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
35173         names.
35174
35175 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
35176
35177         * Makefile.in: Clean ups.
35178
35179 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
35180
35181         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
35182         protected operations if original subprogram is flagged as eliminated.
35183         (Expand_N_Subprogram_Body): For a protected operation, create
35184         discriminals for next operation before checking whether the operation
35185         is eliminated.
35186
35187         * exp_ch9.adb (Expand_N_Protected_Body,
35188         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
35189         for internal protected operations if the original subprogram is
35190         eliminated.
35191
35192         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
35193         declared in a single protected object.
35194
35195 2004-02-23  Vincent Celier  <celier@gnat.com>
35196
35197         * prj-attr.adb: Make attribute Builder'Executable an associative array,
35198         case insensitive if file names are case insensitive, instead of a
35199         standard associative array.
35200
35201         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
35202         them as case insensitive on platforms where the file names are case
35203         sensitive.
35204
35205         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
35206         project file has already been parsed that canonical path are compared.
35207
35208 2004-02-23  Robert Dewar  <dewar@gnat.com>
35209
35210         * sinput-c.ads: Correct bad unit title in header
35211
35212         * freeze.adb: Minor reformatting
35213
35214 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35215
35216         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
35217         nonaddressable COMPONENT_REF that is removing padding that we are
35218         taking the address of, take the address of the padded record instead
35219         if item is variable size.
35220
35221 2004-02-20  Robert Dewar  <dewar@gnat.com>
35222
35223         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
35224
35225 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
35226
35227         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
35228         itype references for the constrained designated type of a component
35229         whose base type is already frozen.
35230
35231 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
35232
35233         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
35234         avoid GCC warnings.
35235
35236 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
35237
35238         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
35239         identifier for a phantom package that rewrites the formal package
35240         declaration with a box. The Add semantic decorations for the defining
35241         identifier from the original node (that represents the formal package).
35242
35243 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
35244
35245         * Make-lang.in (ada/stamp-sdefault): Use the top level
35246         move-if-change.
35247
35248 2004-02-19  Richard Henderson  <rth@redhat.com>
35249
35250         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
35251
35252 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
35253
35254         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
35255         Scan_ALI can be used for multiple ALI files without reinitializing
35256         between calls.
35257
35258 2004-02-18  Robert Dewar  <dewar@gnat.com>
35259
35260         * debug.adb: Minor reformatting.
35261
35262 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35263
35264         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
35265         to zero if there is an address clause.
35266
35267 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
35268
35269         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
35270
35271 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
35272
35273         * layout.adb (Layout_Component_List): Revise generation of call to
35274         discriminant-checking function to pass selections of all of the type's
35275         discriminants rather than just the variant-controlling discriminant.
35276
35277 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
35278
35279         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
35280         fail in the current setup and triggers spurious system error messages.
35281         Pretend it occurred and failed instead.
35282
35283 2004-02-18  Vincent Celier  <celier@gnat.com>
35284
35285         * bld.adb: Mark FLDFLAGS as saved
35286         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
35287         it is not the root project.  Put each directory to be
35288         extended between double quotes to prevent it to be expanded on Windows.
35289         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
35290         the project file. Set them back to their initial values if they have not
35291         been set in the project file.
35292
35293         * gprcmd.adb: (Gprdebug, Debug): New global variables
35294         (Display_Command): New procedure
35295         (Usage): Document new command "linkopts"
35296         Call Display_Command when env var GPRDEBUG has the value "TRUE"
35297         Implement new command "linkopts"
35298         Remove quotes that may be around arguments for "extend"
35299         Always call Normalize_Pathname with arguments formatted for the platform
35300
35301         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
35302         Change @echo to @$(display) in target clean to be able to clean silently
35303
35304         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
35305
35306         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
35307         canonical case.
35308
35309         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
35310         = Extending_All when current project is an extending all project.
35311
35312         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
35313         set to True only for LINK command, after Unix switch -o.
35314         (Process_Arguments): Set Output_File_Expected to True for LINK command
35315         after Unix switch -o. When Output_File_Expected is True, never add an
35316         extension to a file name.
35317
35318         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
35319         option file name, only to the --for-linker= switch.
35320         (Option_File_Name): If option file name do not end with ".opt", append
35321         "/OPTIONS".
35322
35323 2004-02-18  GNAT Script  <nobody@gnat.com>
35324
35325         * Make-lang.in: Makefile automatically updated
35326
35327 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
35328
35329         * Make-lang.in (stamp-sdefault): Do not depend on
35330         move-if-change.
35331
35332 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
35333
35334         * config-lang.in: Disable Ada by default until probe logic for
35335         a bootstrap Ada compiler can be moved to the top level configure
35336         script.
35337
35338 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
35339
35340         * decl.c (components_to_record): Don't claim that the internal fields
35341         we make to hold the variant parts are semantically addressable, because
35342         they are not.
35343
35344         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
35345         adjust the comment describing the modular type form when we can use it.
35346         (Install_PAT): Account for the Esiz renaming.
35347
35348         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
35349         sc_onstack context indication before raising the exception to which
35350         the signal is mapped. Allows better handling of later signals possibly
35351         triggered by the resumed user code if the exception is handled.
35352
35353 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
35354
35355         * 5zinit.adb: Removed, no longer used.
35356
35357 2004-02-12  Robert Dewar  <dewar@gnat.com>
35358
35359         * ali.adb: Remove separating space between parameters on R line. Makes
35360         format consistent with format used by the binder for Set_Globals call.
35361
35362         * atree.ads, atree.adb: Minor reformatting (new function header format)
35363
35364         * bindgen.adb: Add Run-Time Globals documentation section containing
35365         detailed documentation of the globals passed from the binder file to
35366         the run time.
35367
35368         * gnatls.adb: Minor reformatting
35369
35370         * init.c (__gnat_set_globals): Add note pointing to documentation in
35371         bindgen.
35372
35373         * lib-writ.ads, lib-writ.adb: Remove separating space between
35374         parameters on R line.
35375         Makes format consistent with format used by the binder for Set_Globals
35376         call.
35377
35378         * osint.ads: Add 2004 to copyright notice
35379         Minor reformatting
35380
35381         * snames.ads: Correct capitalization of FIFO_Within_Priorities
35382         Noticed during code reading, documentation issue only
35383
35384         * usage.adb: Remove junk line for obsolete C switch
35385         Noticed during code reading
35386
35387 2004-02-12  Vincent Celier  <celier@gnat.com>
35388
35389         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
35390         extend for each directory, so that multiple /** directories are
35391         extended individually.
35392         (Recursive_Process): Set the default for LANGUAGES to ada
35393
35394         * gprcmd.adb: Define new command "ignore", to do nothing.
35395         Implement new comment "path".
35396
35397         * Makefile.generic: Suppress output when SILENT is set
35398         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
35399         used, so that the correct compiler is invoked.
35400         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
35401         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
35402
35403 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
35404
35405         * Makefile.in: Clean ups and remove obsolete targets.
35406
35407 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
35408
35409         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
35410         predicate declared in exp_util.
35411
35412         * exp_util.adb: Add comments.
35413
35414         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
35415         visibility before compiling context of the subunit.
35416
35417         * sem_res.adb (Check_Parameterless_Call): If the context expects a
35418         value but the name is a procedure, do not attempt to analyze as a call,
35419         in order to obtain more telling diagnostics.
35420
35421         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
35422         'Access on parameterless function calls.
35423         (Normalize_Actuals): For a parameterless function call with missing
35424         actuals, defer diagnostic until resolution of enclosing call.
35425
35426         * sem_util.adb (Wrong_Type): If the context type is an access to
35427         subprogram and the expression is a procedure name, suggest a missing
35428         'attribute.
35429
35430 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
35431             Nathanael Nerode  <neroden@gcc.gnu.org>
35432
35433         PR ada/6637
35434         PR ada/5911
35435         Merge with libada-branch:
35436         * config-lang.in: Build libada only when ada is built.
35437
35438 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
35439
35440         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
35441         for a tagged type, verify that both formals have the same type.
35442
35443         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
35444         temporary when the formal is an in-parameter and the actual a possibly
35445         unaligned slice.
35446
35447         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
35448         when expansion is disabled, to ensure proper name capture with
35449         overloaded literals.  Condition can be of any boolean type, resolve
35450         accordingly.
35451
35452         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
35453         renaming is for a formal subprogram with a default operator name, and
35454         there is a usable operator that is visible at the point of
35455         instantiation.
35456
35457 2004-02-09  Robert Dewar  <dewar@gnat.com>
35458
35459         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
35460         rewrite to ignore errors in ali files, intended to allow tools downward
35461         compatibility with new versions of ali files.
35462
35463         * ali.ads: Add new parameter Ignore_Errors
35464
35465         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
35466         duplicating the error message giving the file with restrictions.
35467
35468         * debug.adb: Add debug flag I for gnatbind
35469
35470         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
35471         operators for the case where the operator is a defining operator.
35472
35473         * exp_ch3.adb: Minor reformatting (new function spec format).
35474
35475         * exp_ch4.adb: Add comment for previous change, and make minor
35476         adjustment to loop to always check for improper loop termination.
35477         Minor reformatting throughout (new function spec format).
35478
35479         * gnatbind.adb: Implement -di debug flag for gnatbind
35480
35481         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
35482
35483         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
35484
35485         * lib-load.adb: Fix bad assertion.
35486         Found by testing and code reading.
35487         Minor reformatting.
35488
35489         * lib-load.ads: Minor reformatting.
35490
35491         * lib-writ.adb: There is only one R line now.
35492
35493         * lib-writ.ads: Add documentation on making downward compatible changes
35494         to ali files so old tools work with new ali files.
35495         There is only one R line now.
35496         Add documentation on format incompatibilities (with special GPS note)
35497
35498         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
35499
35500         * par-load.adb: Minor reformatting
35501
35502         * sem_ch8.adb: Fix to error message from last update
35503         Minor reformatting and restructuring of code from last update
35504
35505         * par-prag.adb, snames.adb, snames.ads, snames.h,
35506         sem_prag.adb: Implement pragma Profile.
35507
35508         * stylesw.adb: Implement -gnatyN switch to turn off all style check
35509         options.
35510
35511         * usage.adb: Add line for -gnatyN switch
35512
35513         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
35514
35515 2004-02-09  Albert Lee  <lee@gnat.com>
35516
35517         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
35518
35519 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
35520
35521         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
35522         slices.
35523
35524         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
35525         is nested in an instance that is not frozen yet, to avoid
35526         order-of-elaboration problems in gigi.
35527
35528         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
35529         body the attribute is legal.
35530
35531 2004-02-09  Robert Dewar  <dewar@gnat.com>
35532
35533         * s-rident.ads: Minor comment correction
35534
35535         * targparm.adb: Remove dependence on uintp completely. There was
35536         always a bug in Make in that it called Targparm before initializing
35537         the Uint package. The old code appeared to get away with this, but
35538         the new code did not! This caused an assertion error in gnatmake.
35539
35540         * targparm.ads: Fix bad comment, restriction pragmas with parameters
35541         are indeed fully supported.
35542
35543 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
35544
35545         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
35546
35547 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
35548
35549         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
35550         with targetm.calls.promote_prototypes.
35551
35552 2004-02-04  Robert Dewar  <dewar@gnat.com>
35553
35554         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
35555         ali.ads, gprcmd.adb: Minor reformatting
35556
35557         * bindgen.adb: Output restrictions string for new style restrictions
35558         handling
35559
35560         * impunit.adb: Add s-rident.ads (System.Rident) and
35561         s-restri (System.Restrictions)
35562
35563         * lib-writ.adb: Fix bug in writing restrictions string (last few
35564         entries wrong)
35565
35566         * s-restri.ads, s-restri.adb: Change name Restrictions to
35567         Run_Time_Restrictions to avoid conflict with package name.
35568         Add circuit to read and acquire run time restrictions.
35569
35570 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
35571
35572         * restrict.ads, restrict.adb: Use the new restriction
35573         No_Task_Attributes_Package instead of the old No_Task_Attributes.
35574
35575         * sem_prag.adb: No_Task_Attributes is a synonym of
35576         No_Task_Attributes_Package.
35577
35578         * snames.ads, snames.adb: New entry for proper handling of
35579         No_Task_Attributes.
35580
35581         * s-rident.ads: Adding restriction No_Task_Attributes_Package
35582         (AI-00249) that supersedes the GNAT specific restriction
35583         No_Task_Attributes.
35584
35585 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
35586
35587         * sem_prag.adb:
35588         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
35589          body, an identifier may be wrapped in an unchecked conversion.
35590
35591 2004-02-04  Vincent Celier  <celier@gnat.com>
35592
35593         * lib-writ.ads: Comment update for the W lines
35594
35595         * bld.adb: (Expression): An empty string list is static
35596
35597         * fname-uf.adb: Minor comment update
35598
35599         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
35600
35601         * gnatbind.adb: Initialize Cumulative_Restrictions with the
35602         restrictions on the target.
35603
35604 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
35605
35606         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
35607         gen_rtx.
35608
35609 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
35610
35611         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
35612
35613 2004-02-02  Vincent Celier  <celier@gnat.com>
35614
35615         * gprcmd.adb (Check_Args): If condition is false, print the invoked
35616         comment before the usage.
35617         Gprcmd: Fail when command is not recognized.
35618         (Usage): Document command "prefix"
35619
35620         * g-md5.adb (Digest): Process last block.
35621         (Update): Do not process last block. Store remaining characters and
35622         length in Context.
35623
35624         * g-md5.ads (Update): Document that several call to update are
35625         equivalent to one call with the concatenated string.
35626         (Context): Add fields to allow new Update behaviour.
35627
35628         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
35629         defaulted to False.
35630         When May_Fail is True and no existing file can be found, return No_File.
35631
35632         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
35633         functions.
35634
35635         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
35636         spec file name instead on the W line.
35637
35638 2004-02-02  Robert Dewar  <dewar@gnat.com>
35639
35640         * ali.adb: Read and acquire info from new format restrictions lines
35641
35642         * bcheck.adb: Add circuits for checking restrictions with parameters
35643
35644         * bindgen.adb: Output dummy restrictions data
35645         To be changed later
35646
35647         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
35648         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
35649         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
35650         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
35651         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
35652
35653         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
35654         the warning message on access to possibly uninitialized variable S)
35655         Minor changes for new restrictions handling.
35656
35657         * gnatbind.adb: Minor reformatting
35658         Minor changes for new restrictions handling
35659         Move circuit for -r processing here from bcheck (cleaner)
35660
35661         * gnatcmd.adb, gnatlink.adb: Minor reformatting
35662
35663         * lib-writ.adb: Output new format restrictions lines
35664
35665         * lib-writ.ads: Document new R format lines for new restrictions
35666         handling.
35667
35668         * s-restri.ads/adb: New files
35669
35670         * Makefile.rtl: Add entry for s-restri.ads/adb
35671
35672         * par-ch3.adb: Fix bad error messages starting with upper case letter
35673         Minor reformatting
35674
35675         * restrict.adb: Major rewrite throughout for new restrictions handling
35676         Major point is to handle restrictions with parameters
35677
35678         * restrict.ads: Major changes in interface to handle restrictions with
35679         parameters. Also generally simplifies setting of restrictions.
35680
35681         * snames.ads/adb: New entry for proper handling of No_Requeue
35682
35683         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
35684         restriction counting.
35685         Other minor changes for new restrictions handling
35686
35687         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
35688         Restriction_Warnings now allows full parameter notation
35689         Major rewrite of Restrictions for new restrictions handling
35690
35691 2004-02-02  Javier Miranda  <miranda@gnat.com>
35692
35693         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
35694         syntax rule for object renaming declarations.
35695         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
35696         component definitions.
35697
35698         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
35699         components.
35700         (Array_Type_Declaration): Give support to access components. In addition
35701         it was also modified to reflect the name of the object in anonymous
35702         array types. The old code did not take into account that it is possible
35703         to have an unconstrained anonymous array with an initial value.
35704         (Check_Or_Process_Discriminants): Allow access discriminant in
35705         non-limited types.
35706         (Process_Discriminants): Allow access discriminant in non-limited types
35707         Initialize the new Access_Definition field in N_Object_Renaming_Decl
35708         node.  Change Ada0Y to Ada 0Y in comments
35709
35710         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
35711         equality operators.
35712         Change Ada0Y to Ada 0Y in comments
35713
35714         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
35715         renamings Change Ada0Y to Ada 0Y in comments
35716
35717         * sem_type.adb (Find_Unique_Type): Give support to the equality
35718         operators for universal access types
35719         Change Ada0Y to Ada 0Y in comments
35720
35721         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
35722
35723         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
35724         field.
35725         (N_Object_Renaming_Declaration): Addition of Access_Definition field
35726         Change Ada0Y to Ada 0Y in comments
35727
35728         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
35729         component definition and object renaming nodes
35730         Change Ada0Y to Ada 0Y in comments
35731
35732 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
35733
35734         * restrict.adb: Use the new restriction identifier
35735         No_Requeue_Statements instead of the old No_Requeue for defining the
35736         restricted profile.
35737
35738         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
35739         No_Requeue_Statements.
35740
35741         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
35742         that supersedes the GNAT specific restriction No_Requeue. The later is
35743         kept for backward compatibility.
35744
35745 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
35746
35747         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
35748         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
35749         pragma and fix incorrect ones.
35750
35751         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
35752         warning if the pragma is redundant.
35753
35754 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
35755
35756         * 5staprop.adb: Add missing 'constant' keywords.
35757
35758         * Makefile.in: use consistent value for SYMLIB on
35759         platforms where libaddr2line is supported.
35760
35761 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35762
35763         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
35764         annotating types.
35765
35766 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
35767
35768         * init.c (__gnat_install_handler): Setup an alternate stack for signal
35769         handlers in the environment thread. This allows proper propagation of
35770         an exception on stack overflows in this thread even when the builtin
35771         ABI stack-checking scheme is used without support for a stack reserve
35772         region.
35773
35774         * utils.c (create_field_decl): Augment the head comment about bitfield
35775         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
35776         here, because the former is not accurate enough at this point.
35777         Let finish_record_type decide instead.
35778         Don't make a bitfield if the field is to be addressable.
35779         Always set a size for the field if the record is packed, to ensure the
35780         checks for bitfield creation are triggered.
35781         (finish_record_type): During last pass over the fields, clear
35782         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
35783         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
35784         from DECL_BIT_FIELD.
35785
35786 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
35787
35788         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
35789         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
35790         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
35791
35792 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35793
35794         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
35795
35796         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
35797         (ZCX_By_Default): Likewise.
35798         (Front_End_ZCX_Support): Likewise.
35799
35800         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
35801         (Initialize_Lock): Mark Level unreferenced.
35802         (Sleep): Mark Reason unreferenced.
35803         (Timed_Sleep): Likewise.
35804         (Wakeup): Likewise.
35805         (Exit_Task): Use Result.
35806         (Check_No_Locks): Mark Self_ID unreferenced.
35807
35808         * 5gtasinf.adb (New_Sproc): Make Attr constant.
35809         (Bound_Thread_Attributes): Make Sproc constant.
35810         (New_Bound_Thread_Attributes): Likewise.
35811
35812 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
35813
35814         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
35815         one-dimensional array an slice assignments, when component type is
35816         controlled.
35817
35818         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
35819         component type is controlled, and control_actions are in effect, use
35820         TSS procedure rather than generating inline code.
35821
35822         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
35823         arrays with controlled components.
35824
35825 2004-01-26  Vincent Celier  <celier@gnat.com>
35826
35827         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
35828         command line for the non VMS case.
35829
35830         * gnatlink.adb (Process_Binder_File): When building object file, if
35831         GNU linker is used, put all object paths between quotes, to prevent ld
35832         error when there are unusual characters (such as '!') in the paths.
35833
35834         * Makefile.generic: When there are sources in Ada and the main is in
35835         C/C++, invoke gnatmake with -B, instead of -z.
35836
35837         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
35838         from VMS_Conversion.
35839         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
35840         specification of argument file on the command line.
35841
35842 2004-01-26  Bernard Banner  <banner@gnat.com>
35843
35844         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
35845
35846 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
35847
35848         * snames.adb: Update copyright notice.
35849         Add info on slice assignment for controlled arrays.
35850
35851 2004-01-23  Robert Dewar  <dewar@gnat.com>
35852
35853         * exp_aggr.adb: Minor reformatting
35854
35855         * exp_ch9.adb: Minor code clean up
35856         Minor reformatting
35857         Fix bad character in comment
35858
35859         PR ada/13471
35860         * targparm.adb (Get_Target_Parameters): Give clean abort error on
35861         unexpected end of file, along with more detailed message.
35862
35863 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35864
35865         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
35866         PAT.
35867
35868         * decl.c (copy_alias_set): New function.
35869         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
35870
35871 2004-01-23  Doug Rupp  <rupp@gnat.com>
35872
35873         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
35874         lib$${file} in case subsequent character is not a separator.
35875
35876 2004-01-23  Vincent Celier  <celier@gnat.com>
35877
35878         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
35879         when the GCC version is at least 3.
35880
35881         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
35882         Remove all "Opt.", to prepare for opt split
35883
35884         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
35885         Extends_All. Set to True when the project parsed is an extending all
35886         project. Fails for importing an extending all project only when the
35887         imported project is an extending all project.
35888         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
35889         depending on the value of Extends_All returned.
35890
35891         * prj-proc.adb (Process): Check that no project shares its object
35892         directory with a project that extends it, directly or indirectly,
35893         including a virtual project.
35894         Check that no project extended by another project shares its object
35895         directory with another also extended project.
35896
35897         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
35898         Kind = N_With_Clause
35899
35900         * prj-tree.ads: Minor reformatting
35901         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
35902
35903 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
35904
35905         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
35906         applies to a type with an incomplete view, use full view in Name of
35907         clause, for consistency with uses of Get_Attribute_Definition_Clause.
35908
35909 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
35910
35911         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
35912         SCHED_RR, since other values are not supported by this policy.
35913         (Initialize): Move initialization of mutex attribute to package
35914         elaboration, to prevent early access to this variable.
35915
35916         * Makefile.in: Remove mention of Makefile.adalib, unused.
35917
35918         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35919         1ssecsta.ads: Removed, unused.
35920
35921 2004-01-21  Javier Miranda  <miranda@gnat.com>
35922
35923         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
35924         entity if already built in the current scope.
35925
35926         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
35927         reminder in internal scopes. Required for nested limited aggregates.
35928
35929 2004-01-21  Doug Rupp  <rupp@gnat.com>
35930
35931         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
35932         VMS. Replace all occurences of libgnat- and libgnarl- with
35933         libgnat$(hyphen) and libgnarl$(hyphen).
35934         Fixed shared library build problem on VMS.
35935
35936 2004-01-21  Robert Dewar  <dewar@gnat.com>
35937
35938         * mlib-prj.adb: Minor reformatting
35939
35940 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
35941
35942         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
35943         'constant' keywords for declaration of pointers that are not modified.
35944
35945         * exp_pakd.adb: Fix English in comment.
35946
35947 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
35948
35949         PR ada/10889
35950         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
35951         copy all attributes of the parent, including the foreign language
35952         convention.
35953
35954 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
35955
35956         PR ada/10565
35957         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
35958         for 'delay until' statement.
35959
35960 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
35961
35962         * Make-lang.in: Replace $(docdir) with doc.
35963         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
35964         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
35965         to use consistent MAKEINFO rule.
35966         (ada.man, ada.srcman): Dummy entry.
35967         (ADA_INFOFILES): Define.
35968         (ada.info, ada.srcinfo): New rules.
35969
35970 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
35971
35972         * utils.c: Update copyright notice, missed in previous change.
35973
35974 2004-01-19  Vincent Celier  <celier@gnat.com>
35975
35976         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
35977         args if Bind is True. Set First_ALI, if not already done.
35978         (Build_Library): For Stand Alone Libraries, extract from one ALI file
35979         an eventual --RTS switch, for gnatbind, and all backend switches +
35980         --RTS, for linking.
35981
35982 2004-01-19  Robert Dewar  <dewar@gnat.com>
35983
35984         * sem_attr.adb, memtrack.adb: Minor reformatting
35985
35986 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
35987
35988         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
35989         that rename enumeration literals. This is properly done in sem_eval.
35990
35991         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
35992         to functions that rename enumeration literals.
35993
35994         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
35995         functions that rename enumeration literals.
35996
35997 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
35998
35999         * Make-lang.in (utils.o): Depend on target.h.
36000         * utils.c: Include target.h.
36001         (process_attributes): Use targetm.have_named_sections instead
36002         of ASM_OUTPUT_SECTION_NAME.
36003
36004 2004-01-16  Andreas Jaeger  <aj@suse.de>
36005
36006         * Makefile.in: Add $(DESTDIR).
36007
36008 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
36009
36010         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36011         also when not defining if a Size clause applies. That information is
36012         not to be ignored.
36013
36014 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
36015
36016         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36017         symbolic links for the shared gnat run time when needed.
36018
36019 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
36020
36021         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36022         for writing, and terminate with an error message if not.
36023
36024 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
36025
36026         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36027         warning on an access to subprogram in an instance, when the target
36028         type is declared in the same generic unit.
36029         (Eval_Attribute): If 'access is known to fail accessibility check,
36030         rewrite as a raise statement.
36031
36032 2004-01-15  GNAT Script  <nobody@gnat.com>
36033
36034         * Make-lang.in: Makefile automatically updated
36035
36036 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
36037
36038         * Make-lang.in (ada.srcextra): Dummy entry.
36039
36040 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
36041
36042         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36043
36044 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
36045
36046         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36047         components that are initialized with aggregates.
36048
36049 2004-01-13  Vincent Celier  <celier@gnat.com>
36050
36051         * gnatlink.adb (Process_Binder_File): To find directory of shared
36052         libgcc, if "gcc-lib" is not a subdirectory, look for the last
36053         subdirectory "lib" in the path of the shared libgnat or libgnarl.
36054
36055         * make.adb (Gnatmake): If GCC version is at least 3, link with
36056         -shared-libgcc, when there is at least one shared library project.
36057
36058         * opt.ads (GCC_Version): New integer constant.
36059
36060         * adaint.c (get_gcc_version): New function.
36061
36062 2004-01-13  Robert Dewar  <dewar@gnat.com>
36063
36064         * sem_dist.adb, sem_res.adb, sem_util.adb,
36065         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
36066         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
36067
36068 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
36069
36070         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
36071         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
36072         declarations.
36073
36074 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
36075
36076         * misc.c: Remove trailing spaces.
36077         Update copyright notice missed in previous change.
36078
36079         PR ada/13572
36080         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
36081         prefix/share/make
36082
36083         * Makefile.generic: Update copyright.
36084         Add license notice.
36085
36086         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
36087         of prefix/share/make.
36088
36089         * Makefile.prolog: Update copyright.
36090         Add license notice.
36091
36092 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
36093
36094         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
36095         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
36096         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
36097         instead of String.
36098
36099         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
36100         signature.
36101
36102 2004-01-12  Javier Miranda  <miranda@gnat.com>
36103
36104         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
36105         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
36106         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
36107         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
36108         Component_Definition node.
36109
36110 2004-01-12  Ed Falis  <falis@gnat.com>
36111
36112         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
36113
36114 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
36115
36116         * link.c: Change default libgnat kind to STATIC for FreeBSD.
36117
36118 2004-01-12  Bernard Banner  <banner@gnat.com>
36119
36120         * Makefile.in: map 86numaux to a-numaux for x86_64
36121
36122 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
36123
36124         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
36125         generated to rename a generic actual, go to the actual itself, the
36126         subtype is not a user-visible entity.
36127
36128         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
36129         part is a private subtype, reset the visibility of its full view, if
36130         any, to be consistent.
36131
36132         PR ada/13417
36133         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
36134         to use a generic package G as a formal package for another generic
36135         declared within G.
36136
36137 2004-01-12  Robert Dewar  <dewar@gnat.com>
36138
36139         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
36140
36141         * usage.adb: Remove mention of obsolete -gnatwb switch
36142         Noticed during code reading
36143
36144 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
36145
36146         * 1ssecsta.adb: Minor changes for -gnatwa warnings
36147
36148 2004-01-12  GNAT Script  <nobody@gnat.com>
36149
36150         * Make-lang.in: Makefile automatically updated
36151
36152 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
36153
36154         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
36155
36156 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36157
36158         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
36159
36160 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
36161
36162         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
36163         Update comment and copyright date.
36164         * stamp-xgnatug: Delete.
36165
36166 2004-01-05  Robert Dewar  <dewar@gnat.com>
36167
36168         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
36169         be modified by the binder generated main program if the -D switch is
36170         used.
36171
36172         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
36173         imported functions (since now we expect this to be done for imported
36174         functions)
36175
36176         * 5vtaprop.adb: Add several ??? for sections requiring more comments
36177         Minor reformatting throughout
36178
36179         * 5zinit.adb: Minor reformatting
36180         Add 2004 to copyright date
36181         Minor changes to avoid -gnatwa warnings
36182         Correct some instances of using OR instead of OR ELSE (noted while
36183         doing reformatting)
36184
36185         * sprint.adb: Minor updates to avoid -gnatwa warnings
36186
36187         * s-secsta.ads, s-secsta.adb:
36188         (SS_Get_Max): New function to obtain high water mark for ss stack
36189         Default_Secondary_Stack is not a constant since it may be modified by
36190         the binder generated main program if the -D switch is used.
36191
36192         * switch-b.adb: New -Dnnn switch for binder
36193
36194         * switch-c.adb:
36195         Make -gnatg imply all warnings currently in -gnatwa
36196
36197         * vms_conv.adb: Minor reformatting
36198         Add 2004 to copyright notice
36199         Add 2004 to printed copyright notice
36200
36201         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
36202         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
36203         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
36204         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
36205         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
36206         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
36207         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
36208         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
36209         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
36210         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
36211         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
36212         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
36213         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
36214         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
36215         checks.adb, clean.adb, cstand.adb, einfo.ads,
36216         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
36217         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
36218         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
36219         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
36220         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
36221         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
36222         Minor reformatting and code clean ups.
36223         Minor changes to prevent -gnatwa warnings
36224
36225         * ali.adb: Minor reformatting and cleanup of code
36226         Acquire new SS indication of secondary stack use from ali files
36227
36228         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
36229         (since now we expect this to be done for imported functions)
36230
36231         * bindgen.adb: Generate call to modify default secondary stack size if
36232         -Dnnn switch given
36233
36234         * bindusg.adb: Add line for new -D switch
36235
36236         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
36237         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
36238         Add circuitry for both records and arrays to avoid gigi
36239         processing if the type involved has non-bit-aligned components
36240
36241         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
36242         N_String_Literal node always references an E_String_Literal_Subtype
36243         entity. This may not be true in the future.
36244         (Possible_Bit_Aligned_Component): Move processing of
36245         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
36246
36247         * exp_ch6.adb (Expand_Thread_Body): Pick up
36248         Default_Secondary_Stack_Size as variable so that we get value modified
36249         by possible -Dnnn binder parameter.
36250
36251         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
36252         (Type_May_Have_Bit_Aligned_Components): New function.
36253
36254         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
36255         (Type_May_Have_Bit_Aligned_Components): New function.
36256
36257         * fe.h: (Set_Identifier_Casing): Fix prototype.
36258         Add declaration for Sem_Elim.Eliminate_Error_Msg.
36259         Minor reformatting.
36260
36261         * freeze.adb (Freeze_Entity): Add RM reference to error message about
36262         importing constant atomic/volatile objects.
36263         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
36264         unless explicit Pure_Function pragma given, to avoid insidious bug of
36265         call to non-pure imported function getting eliminated.
36266
36267         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
36268         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
36269         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
36270         Add 2004 to printed copyright notice
36271
36272         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
36273         stack used.
36274
36275         * Makefile.rtl: Add entry for g-sestin.o
36276         g-sestin.ads: New file.
36277
36278         * mdll.adb: Minor changes to avoid -gnatwa warnings
36279
36280         * mlib-tgt.adb: Minor reformatting
36281
36282         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
36283         New switch Sec_Stack_Used (GNAT, GNATBIND)
36284         Make Default_Secondary_Stack_Size a variable instead of a constant,
36285         so that it can be modified by the new -Dnnn bind switch.
36286
36287         * rtsfind.adb (Load_Fail): Give full error message in configurable
36288         run-time mode if all_errors mode is set. This was not done in the case
36289         of a file not found, which was an oversight.
36290         Note if secondary stack unit is used by compiler.
36291
36292         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
36293         ineffective elaborate all pragmas on non-visible packages (this
36294         happened when a renamed subprogram was called). Now the elaborate all
36295         always goes on the package containing the renaming rather than the one
36296         containing the renamed subprogram.
36297
36298         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
36299         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
36300
36301         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
36302         has an Etype that references an E_String_Literal.
36303         (Eval_String_Literal): Avoid assumption that N_String_Literal node
36304         always references an E_String_Literal_Subtype entity. This may not
36305         be true in the future.
36306
36307         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
36308         pragma location.
36309
36310         * sem_res.adb (Resolve): Specialize msg for function name used in proc
36311         call.
36312
36313 2004-01-05  Ed Falis  <falis@gnat.com>
36314
36315         * g-debuti.adb: Replaced direct boolean operator with short-circuit
36316         form.
36317
36318 2004-01-05  Vincent Celier  <celier@gnat.com>
36319
36320         * bld.adb: Minor comment updates
36321         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
36322         of Item_Name).
36323
36324         * make.adb (Gnatmake): Special process for files to compile/check when
36325         -B is specified. Fail when there are only foreign mains in attribute
36326         Main of the project file and -B is not specified. Do not skip bind/link
36327         steps when -B is specified.
36328
36329         * makeusg.adb: Document new switch -B
36330
36331         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
36332
36333         * switch-m.adb: (Scan_Make_Switches): Process -B switch
36334
36335         * vms_data.ads: Add new GNAT PRETTY qualifier
36336         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
36337
36338 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36339
36340         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
36341         case.
36342
36343         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
36344         Set_Identifier_Casing.
36345
36346         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
36347         has size that overflows.
36348
36349 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
36350
36351         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
36352         -gnatwa warning on static condition.
36353
36354 2004-01-05  Doug Rupp  <rupp@gnat.com>
36355
36356         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
36357
36358 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
36359
36360         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
36361         all attributes, including read-only attribute.
36362
36363 2004-01-05  Pascal Obry  <obry@gnat.com>
36364
36365         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
36366         library naming scheme.
36367
36368         * mlib-prj.adb (Build_Library): Generate different names for the static
36369         or dynamic version of the GNAT runtime. This is needed to support the
36370         new shared library naming scheme.
36371         (Process_Binder_File): Add detection of shared library in binder file
36372         based on the new naming scheme.
36373
36374         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
36375         scheme for the shared runtime libraries.
36376
36377         * Makefile.in:
36378         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
36379         scheme.
36380         (install-gnatlib): Do not create symlinks for shared libraries.
36381         (gnatlib-shared-default): Idem.
36382         (gnatlib-shared-dual-win32): New target. Not used for now as the
36383         auto-import feature does not support arrays/records.
36384         (gnatlib-shared-win32): Do not create copy for the shared libraries.
36385         (gnatlib-shared-vms): Fix shared runtime libraries names.
36386
36387         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
36388         dependent runtime shared library name.
36389
36390 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
36391
36392         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
36393         than the object.
36394
36395 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
36396
36397         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
36398         protected objects when allocator has a subtype indication, not a
36399         qualified expression. Note that qualified expressions may have to be
36400         checked when limited aggregates are implemented.
36401
36402         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
36403         pure, emit warning.
36404         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
36405         subprogram is imported, remove warning.
36406
36407 2004-01-05  Geert Bosch  <bosch@gnat.com>
36408
36409         * s-poosiz.adb: Update copyright notice.
36410         (Allocate): Use Task_Lock to protect against concurrent access.
36411         (Deallocate): Likewise.
36412
36413 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
36414
36415         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
36416         comment.
36417
36418 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
36419
36420         * gnat_ug.texi: Force a CVS commit by updating copyright.
36421         * gnat_ug_vxw.texi: Regenerate.
36422         * gnat_ug_wnt.texi: Regenerate.
36423         * gnat_ug_vms.texi: Regenerate.
36424         * gnat_ug_unx.texi: Regenerate.
36425
36426 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
36427
36428         * trans.c: Remove uses of "register" specifier in
36429         declarations of local variables.
36430
36431 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
36432
36433         * stamp-xgnatug: New stamp file.
36434         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
36435         (ada/doctools/xgnatug): Add $(build_exeext).
36436         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
36437         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
36438
36439 2003-12-17  Ed Falis  <falis@gnat.com>
36440
36441         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
36442         eliminate warning.
36443
36444         * a-exextr.adb: Add context clause for
36445         Ada.Exceptions.Last_Chance_Handler.
36446
36447 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
36448
36449         * cstand.adb (Create_Standard): Change the way how the declaration of
36450         the Duration type is created (making it the same way as it is for all
36451         the other standard types).
36452
36453 2003-12-17  Robert Dewar  <dewar@gnat.com>
36454
36455         * s-crtl.ads: Fix header format
36456         Change Pure to Preelaborate
36457
36458 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
36459
36460         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
36461         the expression type only if it is declared in the current unit.
36462
36463         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
36464         are universal and already analyzed, as can occur in constrained
36465         subcomponents that depend on discriminants, when one constraint is a
36466         subtype mark.
36467
36468         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
36469         type Any_Fixed is legal as the argument of a conversion, if only one
36470         fixed-point type is in context.
36471
36472 2003-12-17  GNAT Script  <nobody@gnat.com>
36473
36474         * Make-lang.in: Makefile automatically updated
36475
36476 2003-12-15  Robert Dewar  <dewar@gnat.com>
36477
36478         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
36479         sec stack size.
36480
36481 2003-12-15  Vincent Celier  <celier@gnat.com>
36482
36483         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
36484         (Gnatchop): Do not set failure status when reporting the number of
36485         warnings.
36486
36487 2003-12-15  Doug Rupp  <rupp@gnat.com>
36488
36489         * s-ctrl.ads: New file.
36490
36491         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
36492
36493         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
36494         (GNATBIND_OBJS): Add ada/s-crtl.o.
36495
36496         * Makefile.in [VMS]: Clean up ifeq rules.
36497
36498         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
36499         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
36500         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
36501         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
36502         s-tasdeb.adb: Update copyright.
36503         Import System.CRTL.
36504         Make minor modifications to use System.CRTL declared functions instead
36505         of importing locally.
36506
36507 2003-12-15  GNAT Script  <nobody@gnat.com>
36508
36509         * Make-lang.in: Makefile automatically updated
36510
36511 2003-12-11  Ed Falis  <falis@gnat.com>
36512
36513         * 5zinit.adb: Clean up.
36514
36515         * 5zintman.adb (Notify_Exception): replaced case statement with a call
36516         to __gnat_map_signal, imported from init.c to support
36517         signal -> exception mappings that depend on the vxWorks version.
36518
36519         * init.c:
36520         Created and exported __gnat_map_signal to support signal -> exception
36521         mapping that is dependent on the VxWorks version.
36522         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
36523
36524 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
36525
36526         * 5wosinte.ads: Link with -mthreads switch.
36527
36528 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
36529
36530         * init.c (__gnat_install_handler [NetBSD]): Set
36531         __gnat_handler_installed, as done on all other platforms.
36532         Remove duplicated code.
36533
36534 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
36535
36536         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
36537
36538 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
36539
36540         * sinfo.ads: Fix inconsistent example code in comment.
36541
36542 2003-12-11  Robert Dewar  <dewar@gnat.com>
36543
36544         * a-tiinau.adb: Add a couple of comments
36545
36546         * sem_ch3.adb: Minor reformatting
36547
36548         * sem_prag.adb:
36549         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
36550         Minor reformatting throughout
36551
36552 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
36553
36554         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
36555         bounds of a loop, create a separate block in order to generate proper
36556         cleanup actions to prevent memory leaks.
36557
36558         * sem_res.adb (Resolve_Call): After a call to
36559         Establish_Transient_Scope, the call may be rewritten and relocated, in
36560         which case no further processing is needed.
36561
36562         * sem_util.adb: (Wrong_Type): Refine previous fix.
36563          Fixes ACATS regressions.
36564
36565         PR ada/13353
36566         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
36567         be inlined.
36568
36569 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
36570
36571         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
36572         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
36573         obsolete files.
36574
36575         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
36576         (rts-zfp): Ditto.
36577
36578 2003-12-08  Robert Dewar  <dewar@gnat.com>
36579
36580         * 7sintman.adb: Minor reformatting
36581
36582         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
36583         standard linker options to get standard libraries linked. We now plan
36584         to provide dummy versions of these libraries to match the appropriate
36585         configurable run-time (e.g. if a library is not needed at all, provide
36586         a dummy empty library).
36587
36588         * targparm.ads: Configurable_Run_Time mode no longer affects linker
36589         options (-L parameters and standard libraries). What we plan to do is
36590         to provide dummy libraries where the libraries are not required.
36591
36592         * gnatbind.adb: Minor comment improvement
36593
36594 2003-12-08  Javier Miranda  <miranda@gnat.com>
36595
36596         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
36597         aggregate in the parent. Otherwise constants with limited aggregates
36598         are not supported. Add new formal to pass the component type (Ctype).
36599         It is required to call the corresponding IP subprogram in case of
36600         default initialized components.
36601         (Gen_Assign): In case of default-initialized component, generate a
36602         call to the IP subprogram associated with the component.
36603         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
36604         of aggregate with default initialized components.
36605         (Has_Default_Init_Comps): Improve implementation to recursively check
36606         all the present expressions.
36607
36608         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
36609         to indicate that the initialization call corresponds to a
36610         default-initialized component of an aggregate.
36611         In case of default initialized aggregate with tasks this parameter is
36612         used to generate a null string (this is just a workaround that must be
36613         improved later). In case of discriminants, this parameter is used to
36614         generate a selected component node that gives access to the discriminant
36615         value.
36616
36617         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
36618         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
36619         allocated aggregates with default-initialized components.
36620
36621         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
36622         the box notation is used in positional aggregates.
36623
36624 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
36625
36626         * lib.ads: Fix typo in comment
36627
36628 2003-12-08  Vincent Celier  <celier@gnat.com>
36629
36630         * prj.adb (Project_Empty): New component Unkept_Comments
36631         (Scan): Remove procedure; moved to Prj.Err.
36632
36633         * prj.ads (Project_Data): New Boolean component Unkept_Comments
36634         (Scan): Remove procedure; moved to Prj.Err.
36635
36636         * prj-dect.adb: Manage comments for the different declarations.
36637
36638         * prj-part.adb (With_Record): New component Node
36639         (Parse): New Boolean parameter Store_Comments, defaulted to False.
36640         Set the scanner to return ends of line and comments as tokens, if
36641         Store_Comments is True.
36642         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
36643         comments are associated with these nodes. Store the node IDs in the
36644         With_Records.
36645         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
36646         With_Records.
36647         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
36648         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
36649         current project. Call Tree.Restore afterwards. Set the various nodes
36650         for comment storage (Next_End, End_Of_Line, Previous_Line,
36651         Previous_End).
36652
36653         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
36654         defaulted to False.
36655
36656         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
36657         to False. When Truncated is True, truncate the string, never go to the
36658         next line.
36659         (Write_End_Of_Line_Comment): New procedure
36660         (Print): Process comments for nodes N_With_Clause,
36661         N_Package_Declaration, N_String_Type_Declaration,
36662         N_Attribute_Declaration, N_Typed_Variable_Declaration,
36663         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
36664         Process nodes N_Comment.
36665
36666         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
36667         without comments and there are some comments, set the flag
36668         Unkept_Comments to True.
36669         (Scan): If there are comments, set the flag Unkept_Comments to True and
36670         clear the comments.
36671         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
36672         (Next_End_Nodes: New table
36673         (Comment_Zones_Of): New function
36674         (Scan): New procedure; moved from Prj. Accumulate comments in the
36675         Comments table and set end of line comments, comments after, after end
36676         and before end.
36677         (Add_Comments): New procedure
36678         (Save, Restore, Seset_State): New procedures
36679         (There_Are_Unkept_Comments): New function
36680         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
36681         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
36682         procedures.
36683         (First_Comment_After, First_Comment_After_End): New functions
36684         (First_Comment_Before, First_Comment_Before_End): New functions
36685         (Next_Comment): New function
36686         (End_Of_Line_Comment, Follows_Empty_Line,
36687         Is_Followed_By_Empty_Line): New functions
36688         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
36689         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
36690         (Set_Next_Comment): New procedure
36691         (Default_Project_Node): Associate comment before if the node can store
36692         comments.
36693
36694         * scans.ads (Token_Type): New enumeration value Tok_Comment
36695         (Comment_Id): New global variable
36696
36697         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
36698         defaulted to False.
36699         (Scan): Store position of start of comment. If comments are tokens, set
36700         Comment_Id and set Token to Tok_Comment when scanning a comment.
36701         (Set_Comment_As_Token): New procedure
36702
36703         * sinput-p.adb: Update Copyright notice
36704         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
36705         that no longer exists.
36706
36707 2003-12-08  Javier Miranda  <miranda@gnat.com>
36708
36709         * sem_aggr.adb: Add dependence on Exp_Tss package
36710         Correct typo in comment
36711         (Resolve_Aggregate): In case of array aggregates set the estimated
36712         type of the aggregate before calling resolve. This is needed to know
36713         the name of the corresponding IP in case of limited array aggregates.
36714         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
36715         in case of default initialized array components.
36716
36717         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
36718         types. Required to give support to limited aggregates in generic
36719         formals.
36720
36721 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
36722
36723         * sem_ch3.adb (Check_Initialization): For legality purposes, an
36724         inlined body functions like an instantiation.
36725         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
36726         until bounds are analyzed, to diagnose premature use of type.
36727
36728         * sem_util.adb (Wrong_Type): Improve error message when the type of
36729         the expression is used prematurely.
36730
36731 2003-12-08  GNAT Script  <nobody@gnat.com>
36732
36733         * Make-lang.in: Makefile automatically updated
36734
36735 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
36736
36737         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
36738         they are automatically generated by Make-lang.in and cause nothing but
36739         maintenance troubles.
36740
36741 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
36742
36743         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
36744         version of this unit).
36745
36746 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
36747
36748         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
36749         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
36750         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
36751         the body of System.Interrupt_Management common to several targets.
36752         Update copyright notice when appropriate.
36753
36754         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
36755         constant.
36756
36757         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
36758         to ensure that the kernel fills in the interrupted context structure
36759         before calling a signal handler, which is necessary to be able to
36760         unwind past it. Update the copyright notice.
36761
36762 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
36763
36764         * a-elchha.ads: New file.
36765
36766         * a-elchha.adb: New default last chance handler. Contents taken from
36767         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
36768
36769         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
36770         is moved to a-elchha.adb to provide a target-independent default last
36771         chance handler.
36772
36773         * Makefile.rtl: Add a-elchha.o
36774
36775         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
36776
36777 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
36778
36779         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
36780         declared in an instance, do not inline the call if the instance is not
36781         frozen yet, to prevent order of elaboration problems.
36782
36783         * sem_prag.adb: Add comments for previous fix.
36784
36785 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
36786
36787         * g-table.adb: Use the right variable in Set_Item.
36788         Update copyright notice.
36789
36790 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
36791
36792         * Makefile.in: Remove unused rules.
36793
36794 2003-12-05  Vincent Celier  <celier@gnat.com>
36795
36796         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
36797         -nostdlib. Not needed here after all.
36798
36799 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
36800
36801         PR ada/11724
36802         * adaint.h, adaint.c, g-os_lib.ads:
36803         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
36804         on some platforms (including FreeBSD), it is a 64 bit value.
36805         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
36806
36807 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
36808
36809         * gnatvsn.ads (Library_Version): Now contain only the relevant
36810         version info.
36811         (Verbose_Library_Version): New constant.
36812
36813         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
36814         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
36815         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
36816
36817         * gnatlbr.adb: Clean up: replace Library_Version by
36818         Verbose_Library_Version.
36819
36820         * make.adb, lib-writ.adb, exp_attr.adb:
36821         Clean up: replace Library_Version by Verbose_Library_Version.
36822
36823         * 5lintman.adb: Removed.
36824
36825         * Makefile.in:
36826         Update and simplify computation of LIBRARY_VERSION.
36827         Fix computation of GSMATCH_VERSION.
36828         5lintman.adb is no longer used: replaced by 7sintman.adb.
36829
36830 2003-12-03  Robert Dewar  <dewar@gnat.com>
36831
36832         * exp_ch5.adb:
36833         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
36834         name. Modified to consider small non-bit-packed arrays as troublesome
36835         and in need of component-by-component assigment expansion.
36836
36837 2003-12-03  Vincent Celier  <celier@gnat.com>
36838
36839         * lang-specs.h: Process nostdlib as nostdinc
36840
36841         * back_end.adb: Update Copyright notice
36842         (Scan_Compiler_Arguments): Process -nostdlib directly.
36843
36844 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
36845
36846         * Makefile.in:
36847         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
36848         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
36849         included in HIE_NONE_TARGET_PAIRS.
36850
36851 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
36852
36853         * sem_attr.adb:
36854         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
36855         is legal in an instance, because legality is cheched in the template.
36856
36857         * sem_prag.adb:
36858         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
36859         appplied to an unchecked conversion of a formal parameter.
36860
36861         * sem_warn.adb:
36862         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
36863         variables.
36864
36865 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
36866
36867         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
36868         routines. The second one is new functionality to deal with backtracing
36869         through signal handlers.
36870         (unwind): Split into the two separate subroutines above.
36871         Update the documentation, and deal properly with sizeof (REG) different
36872         from sizeof (void*).
36873
36874 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
36875
36876         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
36877         so that the debugger can reliably access the value of the parameter,
36878         and therefore is able to display the exception name when an exception
36879         breakpoint is reached.
36880
36881 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
36882
36883         * fmap.adb: Fix typo in warning message.
36884
36885         * g-socket.ads, g-socket.adb: Make Free a visible instance of
36886         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
36887
36888 2003-12-01  Vincent Celier  <celier@gnat.com>
36889
36890         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
36891         ther is no Afile.
36892         (Build_Library): Get the switches only if Default_Switches is declared
36893         in package Binder.
36894
36895 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
36896
36897         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
36898         actuals that are indexed components, reanalyze actual to ensure that
36899         packed array references are properly expanded.
36900
36901         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
36902         attempted assignment to a discriminant.
36903
36904 2003-12-01  Robert Dewar  <dewar@gnat.com>
36905
36906         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
36907         reformatting.
36908
36909         * switch-c.adb: Minor reformatting of comments
36910
36911 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
36912
36913         * Makefile.in: Clean ups.
36914
36915 2003-12-01  GNAT Script  <nobody@gnat.com>
36916
36917         * Make-lang.in: Makefile automatically updated
36918
36919 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
36920
36921         * 5wsystem.ads: Disable zero cost exception, not ready yet.
36922
36923 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
36924
36925         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
36926         to force serialization.
36927
36928 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
36929
36930         * g-socket.ads, g-socket.adb:
36931         Clarify documentation of function Stream. Introduce a Free procedure
36932         to release the returned Stream once it becomes unused.
36933
36934         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
36935
36936 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
36937
36938         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
36939         since NT 4 cannot handle timeout values that are too large,
36940         e.g. DWORD'Last - 1.
36941
36942 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
36943
36944         * exp_ch4.adb:
36945         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
36946         in procedure calls and whose expansion must be deferred.
36947
36948         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
36949         is in exp_ch4.
36950
36951         * sem_ch3.adb:
36952         (Build_Derived_Array_Type): Create operator for unconstrained type
36953         if ancestor is unconstrained.
36954
36955 2003-11-26  Vincent Celier  <celier@gnat.com>
36956
36957         * make.adb (Project_Object_Directory): New global variable
36958         (Change_To_Object_Directory): New procedure
36959         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
36960         of Change_Dir directly. Do not change working directory to object
36961         directory of main project after each compilation.
36962         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
36963         directly.
36964         Change to object directory of main project before binding step.
36965         (Initialize): Initialize Project_Object_Directory to No_Project
36966
36967         * mlib-prj.adb:
36968         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
36969         binding a Stand-Alone Library.
36970
36971         * output.adb: Update Copyright notice
36972         (Write_Char): Output buffer when full
36973
36974 2003-11-26  Robert Dewar  <dewar@gnat.com>
36975
36976         * sem_ch13.adb: (Check_Size): Reset size if size is too small
36977
36978         * sem_ch13.ads:
36979         (Check_Size): Fix documentation to include bit-packed array case
36980
36981         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
36982
36983         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
36984
36985         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
36986
36987 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
36988
36989         PR ada/13142
36990         * utils.c (init_gigi_decls): Change name of built-in setjmp to
36991         __builtin_setjmp, since this is apparently needed by recent
36992         non Ada changes.
36993
36994 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36995
36996         * adadecode.c: Only include ctype.h if not IN_GCC.
36997         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
36998
36999 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
37000
37001         * Makefile.in:
37002         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37003         signals and interrupts.
37004
37005         * 5zintman.ads: New File.
37006
37007         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37008         add exception signals to the set of unmasked signals.
37009
37010         * 5ztaprop.adb:
37011         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37012         between signals and interrupts.
37013         Add to Unblocked_Signal_Mask the set of signals that are in
37014         Keep_Unmasked.
37015
37016         * 7sinmaop.adb:
37017         Adding a check to see whether the Interrupt_ID we want to unmask is in
37018         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37019         reason is that the index type of the Keep_Unmasked array is not always
37020         Interrupt_ID; it may be a subtype of Interrupt_ID.
37021
37022 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
37023
37024         * exp_util.adb:
37025         (Remove_Side_Effects): Condition constantness of object created for a
37026          an unchecked type conversion on the constantness of the expression
37027          to ensure the correct value for 'Constrained when passing components
37028          of view-converted class-wide objects.
37029
37030 2003-11-24  Robert Dewar  <dewar@gnat.com>
37031
37032         * par-load.adb (Load): Improve handling of misspelled and missing units
37033         Removes several cases of compilation abandoned messages
37034
37035         * lib.adb: (Remove_Unit): New procedure
37036
37037         * lib.ads: (Remove_Unit): New procedure
37038
37039         * lib-load.adb: Minor reformatting
37040
37041 2003-11-24  Vincent Celier  <celier@gnat.com>
37042
37043         * make.adb:
37044         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37045         (Marking_Label): Label to mark processed source files. Incremented for
37046         each executable.
37047         (Gnatmake): Increase Marking_Labet for each executable
37048         (Is_Marked): Compare against marking label
37049         (Mark): Mark with marking label
37050
37051 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
37052
37053         * s-thread.ads:
37054         Move the declaration of the TSD for System.Threads to System.Soft_Links.
37055         Add some comments.
37056
37057         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
37058         (rts-cert): build a single relocatable object for the run-time lib.
37059         Fix perms.
37060
37061 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
37062
37063         * Make-lang.in:
37064         Use gnatls rather than gcc to obtain the location of GNAT RTL for
37065         crosstools build.
37066
37067 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
37068
37069         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
37070         can not use it as before (that is, as a variable) when dumping it into
37071         the tree file. Add a local variable to store the result of this
37072         function and to be used as the string to be written into the tree.
37073
37074         * scn.adb (Initialize_Scanner): Add comments explaining the recent
37075         changes.
37076
37077         * sinput.adb (Source_First, Source_Last): In case of
37078         Internal_Source_File, replace returning attributes of
37079         Internal_Source_Ptr (which is wrong) with returning attributes of
37080         Internal_Source.
37081
37082 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
37083
37084         * sem_ch3.adb:
37085         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
37086         used for implicit concatenation operators.
37087         Code cleanup.
37088
37089         * sem_elab.adb:
37090         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
37091         task bodies that are in the scope of a Suppress pragma.
37092         (Check_A Call): Use the flag to prevent spurious elaboration checks.
37093
37094         * sinfo.ads, sinfo.adb:
37095         New flag No_Elaboration_Check on function/procedure calls, to properly
37096         suppress checks on calls in task bodies that are within a local suppress
37097         pragma.
37098
37099         * exp_ch4.adb:
37100         (Expand_Concatenate_Other): Use the proper integer type for the
37101         expression for the upper bound, to avoid universal_integer computations
37102         when possible.
37103
37104 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
37105
37106         * .cvsignore: Delete.
37107
37108 2003-11-21  Andreas Schwab  <schwab@suse.de>
37109
37110         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
37111
37112 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
37113
37114         * 5wsystem.ads: Enable zero cost exception.
37115
37116 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
37117
37118         * 5ztiitho.adb: Remove an unreferenced variable.
37119
37120 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
37121
37122         * adaint.c: For FreeBSD, use mkstemp.
37123
37124 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
37125
37126         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
37127
37128 2003-11-21  Robert Dewar  <dewar@gnat.com>
37129
37130         * bld.adb: Remove useless USE of gnatvsn
37131
37132         * gnatchop.adb: Minor reformatting
37133         Clean up version handling to be more consistent
37134
37135         * gnatxref.adb: Minor reformatting
37136
37137         * gprcmd.adb: Minor reformatting
37138         Fix output of copyright to be more consistent with other tools
37139
37140 2003-11-21  Vincent Celier  <celier@gnat.com>
37141
37142         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
37143
37144 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
37145
37146         * atree.adb (Initialize): Add initializations for global variables
37147         used in New_Copy_Tree.
37148
37149         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
37150         Internal_Source_File as the actual).
37151         Put the set of statements creating Any_Character before the set of
37152         statements creating Any_Array to have Any_Character fully initialized
37153         when it is used in creating Any_Array.
37154
37155         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
37156         not call Scan in case if the actual is Internal_Source_File
37157         Add 2003 to copyright note.
37158
37159         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
37160         processing Internal_Source_File.
37161
37162         * types.ads: Add the constant Internal_Source_File representing the
37163         source buffer for artificial source-code-like strings created within
37164         the compiler (the definition of Source_File_Index is changed).
37165
37166 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
37167
37168         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
37169         56system.ads: New file, FreeBSD version.
37170
37171 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
37172
37173         * Make-lang.in (ada.extraclean): Delete.
37174
37175 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
37176
37177         * gnatmem.adb: Clean up verbose output.
37178
37179         * gprcmd.adb: Change copyright to FSF.
37180
37181 2003-11-19  Vincent Celier  <celier@gnat.com>
37182
37183         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
37184         and Version (ignored).
37185
37186         * symbols.ads: (Policy): New type
37187         (Initialize): New parameter Reference, Symbol_Policy and
37188         Library_Version.
37189         Remove parameter Force.
37190         Minor reformatting.
37191
37192         * snames.ads, snames.adbadb: New standard names
37193         Library_Reference_Symbol_File and Library_Symbol_Policy
37194
37195         * mlib-prj.adb:
37196         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
37197         project.
37198
37199         * mlib-tgt.adb:
37200         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
37201
37202         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
37203
37204         * prj.adb: (Project_Empty): New component Symbol_Data
37205
37206         * prj.ads: (Policy, Symbol_Record): New types
37207         (Project_Data): New component Symbol_Data
37208
37209         * prj-attr.adb:
37210         New attributes Library_Symbol_File, Library_Symbol_Policy and
37211         Library_Reference_Symbol_File.
37212
37213         * prj-nmsc.adb:
37214         (Ada_Check): When project is a Stand-Alone library project, process
37215         attribute Library_Symbol_File, Library_Symbol_Policy and
37216         Library_Reference_Symbol_File.
37217
37218         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37219         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
37220         5sml-tgt.adb (Build_Dynamic_Library): New parameter
37221         Symbol_Data (ignored).
37222
37223         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
37224         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
37225         functions Option_File_Name and Version_String. Set new options of
37226         gnatsym related to symbol file, symbol policy and reference symbol
37227         file.
37228
37229         * 5vsymbol.adb:
37230         Extensive modifications to take into account the reference symbol file,
37231         the symbol policy, the library version and to put in the symbol file the
37232         minor and major IDs.
37233
37234         * bld.adb (Process_Declarative_Items): Put second argument of
37235         gprcmd to_absolute between single quotes, to avoid problems with
37236         Windows.
37237
37238         * bld-io.adb: Update Copyright notice.
37239         (Flush): Remove last character of a line, if it is a back slash, to
37240         avoid make problems.
37241
37242         * gnatsym.adb:
37243         Implement new scheme with reference symbol file and symbol policy.
37244
37245         * g-os_lib.ads: (Is_Directory): Clarify comment
37246
37247 2003-11-19  Robert Dewar  <dewar@gnat.com>
37248
37249         * atree.adb: Move New_Copy_Tree global variables to head of package
37250
37251         * errout.adb: Minor reformatting
37252
37253 2003-11-19  Javier Miranda  <miranda@gnat.com>
37254
37255         * sem_ch4.adb: (Diagnose_Call): Improve error message.
37256         Add reference to Ada0Y (AI-50217)
37257
37258         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
37259         sem_util.adb: Add reference to AI-50217
37260
37261         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
37262
37263         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
37264
37265         * sem_aggr.adb: Complete documentation of AI-287 changes
37266
37267         * par-ch4.adb: Document previous changes.
37268
37269         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
37270         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
37271         Ada0Y (AI-50217)
37272
37273         * exp_aggr.adb: Add references to AI-287 in previous changes
37274
37275 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
37276
37277         * exp_ch6.adb:
37278         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
37279         in the rewriting is the result of an inlined call.
37280
37281         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
37282         parameter is a type conversion, use original node to construct the
37283         post-call assignment, because expression may have been rewritten, e.g.
37284         if it is a packed array.
37285
37286         * sem_attr.adb:
37287         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
37288         body, just as it is in an instance.
37289         Categorization routines
37290
37291         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
37292         Instantiate_Object): Set proper sloc reference for message on missing
37293         actual.
37294
37295 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
37296
37297         * Makefile.in: Add FreeBSD libgnat pairs.
37298
37299         * usage.adb: Fix typo in usage message.
37300
37301 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
37302
37303         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
37304         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
37305         pragma Thread_Body.
37306         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
37307
37308         * s-thread.adb: This file is now a dummy implementation of
37309         System.Thread.
37310
37311 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
37312
37313         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
37314
37315 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
37316
37317         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
37318         instanciation references in the parent type description.
37319
37320 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37321
37322         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
37323
37324         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
37325         TYPE_PRECISION directly from esize.
37326
37327 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
37328
37329         * cstreams.c:
37330         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
37331
37332         * init.c: Initialization routines for FreeBSD
37333
37334         * link.c: Link info for FreeBSD
37335
37336         * sysdep.c: Add the case of FreeBSD
37337
37338 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
37339
37340         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
37341         already called in System.Threads.
37342
37343         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
37344         environment task, as it has been moved to System.Threads.Initialization.
37345
37346 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
37347
37348         * adaint.c (__gnatlib_install_locks): Only reference
37349         __gnat_install_locks on VMS, since other platforms can avoid using
37350         --enable-threads=gnat
37351
37352 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37353
37354         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
37355
37356         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
37357         TYPE_PACKED_ARRAY_TYPE_P.
37358         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
37359
37360         Part of PR ada/12806
37361         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
37362         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
37363
37364 2003-11-17  Vincent Celier  <celier@gnat.com>
37365
37366         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
37367         to False.
37368         Do not set exit status to Failure when Warning is True.
37369         (Gnatchop): Make errors "no compilation units found" and
37370         "no source files written" warnings only.
37371
37372         * make.adb (Gnatmake): When using a project file, set
37373         Look_In_Primary_Dir to False.
37374         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
37375         and Local_Configuration_Pragmas in the project where they are declared
37376         not an extending project which might have inherited them.
37377
37378         * osint.adb (Locate_File): If Name is already an absolute path, do not
37379         look for a directory.
37380
37381         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
37382         -gnats (Check_Syntax) is used, issue only a warning, not an error.
37383
37384         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
37385         in objects of type Variable_Value.
37386
37387         * prj.ads: (Variable_Value): New component Project
37388
37389         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
37390         is in a project extended by Project.
37391
37392         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
37393         Project of Variable_Values to this new parameter value.
37394         (Expression): Set component Project of Variable_Values.
37395         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
37396         Set the component Project in array elements.
37397
37398 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
37399
37400         * errout.adb: (Initialize): Add initialization for error nodes.
37401
37402         * sem_ch12.adb (Initialize): Add missing initializations for
37403         Exchanged_Views and Hidden_Entities.
37404
37405 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
37406
37407         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
37408         already instantiated tree for use in subsequent inlining.
37409         (Analyze_Associations, Instantiate_Formal_Subprogram,
37410         Instantiate_Object): improve error message for mismatch in
37411         instantiations.
37412
37413         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
37414         instantiations of subprograms declared in instances.
37415
37416 2003-11-17  Javier Miranda  <miranda@gnat.com>
37417
37418         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
37419         executed only under the Extensions_Allowed flag.
37420
37421 2003-11-17  Robert Dewar  <dewar@gnat.com>
37422
37423         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
37424         zeroes suppressed.
37425         (Address_Image): Fix bug of returning 0x instead of 0x0
37426         Minor reformatting (function specs).
37427
37428         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
37429         (missed case of 33-63)
37430
37431         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
37432
37433         * s-thread.adb: Add comments for pragma Restriction
37434
37435         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
37436         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
37437
37438 2003-11-17  Ed Falis  <falis@gnat.com>
37439
37440         * s-thread.adb: Added No_Tasking restriction for this implementation.
37441
37442 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
37443
37444         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
37445         instanciation references in the parent type description.
37446
37447 2003-11-17  GNAT Script  <nobody@gnat.com>
37448
37449         * Make-lang.in: Makefile automatically updated
37450
37451 2003-11-16  Jason Merrill  <jason@redhat.com>
37452
37453         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
37454         and TAGS files that include them for each front end.
37455
37456 2003-11-14  Andreas Jaeger  <aj@suse.de>
37457
37458         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
37459         is the canonical version.
37460         * misc.c (gnat_handle_option): Likewise.
37461
37462         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
37463
37464         * 5nsystem.ads: New file for x86_64-linux-gnu.
37465
37466 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
37467
37468         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
37469
37470         * comperr.adb: Fix logic in previous change.
37471
37472 2003-11-13  Vincent Celier  <celier@gnat.com>
37473
37474         * 5bml-tgt.adb (Build_Dynamic_Library): Use
37475         Osint.Include_Dir_Default_Prefix instead of
37476         Sdefault.Include_Dir_Default_Name.
37477
37478         * gnatlbr.adb: Update Copyright notice
37479         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
37480         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
37481         instead of Sdefault.Object_Dir_Default_Name
37482
37483         * gnatlink.adb:
37484         (Process_Binder_File): Never suppress the option following -Xlinker
37485
37486         * mdll-utl.adb:
37487         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
37488         Sdefault.Object_Dir_Default_Name.
37489
37490         * osint.ads, osint.adb:
37491         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
37492         Minor reformatting.
37493
37494         * vms_conv.ads: Minor reformating
37495         Remove GNAT STANDARD and GNAT PSTA
37496
37497         * vms_conv.adb:
37498         Allow GNAT MAKE to have several files on the command line.
37499         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
37500         Sdefault.Object_Dir_Default_Name.
37501         Minor Reformating
37502         Remove data for GNAT STANDARD
37503
37504         * vms_data.ads:
37505         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
37506         Remove data for GNAT STANDARD
37507         Remove options and documentation for -gnatwb/-gnatwB: these warning
37508         options no longer exist.
37509
37510 2003-11-13  Ed Falis  <falis@gnat.com>
37511
37512         * 5zthrini.adb: (Init_RTS): Made visible
37513
37514         * 5zthrini.adb:
37515         (Register): Removed unnecessary call to taskVarGet that checked whether
37516          an ATSD was already set as a task var for the argument thread.
37517
37518         * s-thread.adb:
37519         Updated comment to reflect that this is a VxWorks version
37520         Added context clause for System.Threads.Initialization
37521         Added call to System.Threads.Initialization.Init_RTS
37522
37523 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
37524
37525         * 5zthrini.adb:
37526         (Init_RTS): New procedure, for the initialization of the run-time lib.
37527
37528         * s-thread.adb:
37529         Remove dependancy on System.Init, so that this file can be used in the
37530         AE653 sequential run-time lib.
37531
37532 2003-11-13  Robert Dewar  <dewar@gnat.com>
37533
37534         * bindgen.adb: Minor reformatting
37535
37536 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
37537
37538         * checks.adb:
37539         (Apply_Discriminant_Check): Do no apply check if target type is derived
37540         from source type with no applicable constraint.
37541
37542         * lib-writ.adb:
37543         (Ensure_System_Dependency): Do not apply the style checks that may have
37544         been specified for the main unit.
37545
37546         * sem_ch8.adb:
37547         (Find_Selected_Component): Further improvement in error message, with
37548         RM reference.
37549
37550         * sem_res.adb:
37551         (Resolve): Handle properly the case of an illegal overloaded protected
37552         procedure.
37553
37554 2003-11-13  Javier Miranda  <miranda@gnat.com>
37555
37556         * exp_aggr.adb:
37557         (Has_Default_Init_Comps): New function to check the presence of
37558         default initialization in an aggregate.
37559         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
37560         extension aggregate of a limited record. In addition, a new formal
37561         was added to do not initialize the record controller (if any) during
37562         this recursive expansion of ancestors.
37563         (Init_Controller): Add support for limited record components.
37564         (Expand_Record_Aggregate): In case of default initialized components
37565         convert the aggregate into a set of assignments.
37566
37567         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
37568         describing the new syntax.
37569         Nothing else needed to be done because this subprogram delegates part of
37570         its work to P_Precord_Or_Array_Component_Association.
37571         (P_Record_Or_Array_Component_Association): Give support to the new
37572         syntax for default initialization of components.
37573
37574         * sem_aggr.adb:
37575         (Resolve_Aggregate): Relax the strictness of the frontend in case of
37576         limited aggregates.
37577         (Resolve_Record_Aggregate): Give support to default initialized
37578         components.
37579         (Get_Value): In case of default initialized components, duplicate
37580         the corresponding default expression (from the record type
37581         declaration). In case of default initialization in the *others*
37582         choice, do not check that all components have the same type.
37583         (Resolve_Extension_Aggregate): Give support to limited extension
37584         aggregates.
37585
37586         * sem_ch3.adb:
37587         (Check_Initialization): Relax the strictness of the front-end in case
37588         of aggregate and extension aggregates. This test is now done in
37589         Get_Value in a per-component manner.
37590
37591         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
37592         expression corresponds to a limited aggregate. This test is now done
37593         in Get_Value.
37594
37595         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
37596         Box_Present flag.
37597
37598         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
37599         present in an N_Component_Association node
37600
37601 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
37602
37603         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
37604         type-conformant entry only if they are homographs.
37605
37606 2003-11-13  GNAT Script  <nobody@gnat.com>
37607
37608         * Make-lang.in: Makefile automatically updated
37609
37610 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37611
37612         * adadecode.c: Use <> form of include for ctype.h.
37613         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
37614
37615 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37616
37617         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
37618         Works around PR middle-end/6552.
37619
37620 2003-11-10  Ed Falis  <falis@gnat.com>
37621
37622         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
37623
37624         * 5zinit.adb: (Install_Handler): Moved back to spec
37625         (Install_Signal_Handlers): Deleted
37626
37627         * 5zthrini.adb: Added context clause for System.Storage_Elements
37628         (Register): Only handles creation of taskVar; initialization moved to
37629         Thread_Body_Enter.
37630         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
37631         Added declaration of environment task secondary stack and
37632         initialization.
37633
37634         * s-thread.adb: Implement bodies for thread body processing
37635
37636         * s-thread.ads:
37637         Added comment identifying supported targets for pragma Thread_Body.
37638
37639 2003-11-10  Pascal Obry  <obry@gnat.com>
37640
37641         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
37642         GNAT_MAX_PATH_LEN.
37643
37644         * s-fileio.adb:
37645         (Open): Properly check for string length before copying into the buffer.
37646         Raises Name_Error if buffer is too small. Note that this was a potential
37647         buffer overflow.
37648
37649 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
37650
37651         * bindgen.adb, comperr.adb: Code clean ups.
37652         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
37653
37654 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
37655
37656         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
37657
37658 2003-11-10  Vincent Celier  <celier@gnat.com>
37659
37660         * gprcmd.adb:
37661         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
37662         installation.
37663
37664         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
37665
37666         * prj.adb: (Project_Empty): Add new boolean component Virtual
37667
37668         * prj.ads: (Virtual_Prefix): New constant string
37669         (Project_Data): New boolean component Virtual
37670
37671         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
37672         a library project is extended by a virtual extending project.
37673
37674         * prj-part.adb:
37675         Modifications throughout to implement extending-all project, including:
37676         (Virtual_Hash, Processed_Hash): New hash tables
37677         (Create_Virtual_Extending_Project): New procedure
37678         (Look_For_Virtual_Projects_For): New procedure
37679
37680         * prj-proc.adb:
37681         (Process): After checking the projects, if main project is an
37682         extending-all project, set the object directory of all virtual extending
37683         project to the object directory of the main project.
37684         Adjust error message when a virtual extending project has the same
37685         object directory as an project being extended.
37686         (Recursive_Process): If name starts with the virtual prefix, set Virtual
37687         to True in the project data.
37688
37689         * prj-tree.adb:
37690         (Default_Project_Node): Add new boolean component Extending_All
37691         (Is_Extending_All): New function
37692         (Set_Is_Extending_All): New procedure
37693
37694         * prj-tree.ads: (Is_Extending_All): New function
37695         (Set_Is_Extending_All): New procedure
37696         (Project_Node_Record): New boolean component Extending_All
37697
37698         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
37699
37700         * vms_data.ads:
37701         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
37702
37703         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
37704         "gprcmd prefix" to define it.
37705
37706 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
37707
37708         * einfo.ads: Fix a typo and remove an extraneous word in comments.
37709
37710         * lib-load.adb:
37711         (Create_Dummy_Package_Unit): Set the scope of the entity for the
37712         created dummy package to Standard_Standard, not to itself, to
37713         defend other parts of the front-end against encoutering a cycle in
37714         the scope chain.
37715
37716         * sem_ch10.adb:
37717         (Analyze_With_Clause): When setting the entities for the successive
37718         N_Expanded_Names that constitute the name of a child unit, do not
37719         attempt to go further than Standard_Standard in the chain of scopes.
37720         This case arises from the placeholder units created by
37721         Create_Dummy_Package_Unit in the case of a with_clause for a
37722         nonexistent child unit.
37723
37724 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
37725
37726         * exp_ch6.adb:
37727         (Expand_Thread_Body): Place subprogram on scope stack, so that new
37728         declarations are given the proper scope.
37729
37730         * sem_ch13.adb:
37731         (Check_Expr_Constants): Reject an expression that contains a constant
37732         created during expansion, and that appears after the object to which
37733         the address clause applies.
37734
37735         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
37736         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
37737         that uses 'Range of a function call with controlled components, so
37738         that the function result can be finalized before starting the loop.
37739
37740         * sem_ch8.adb:
37741         (Find_Selected_Component): Improve error message when prefix is
37742         an implicit dereference of an incomplete type.
37743
37744 2003-11-10  Robert Dewar  <dewar@gnat.com>
37745
37746         * opt.ads: New Print_Standard flag for -gnatS switch
37747
37748         * sem_ch13.adb: Remove some additional checks for unaligned arrays
37749
37750         * cstand.adb (Create_Standard): Print out package standard if -gnatS
37751         switch set
37752
37753         * debug.adb: Update doc for -gnatds to discuss relationship with new
37754         -gnatS flag
37755
37756         * sinfo.adb: Add new field Entity_Or_Associated_Node
37757
37758         * sinfo.ads: Add new field Entity_Or_Associated_Node
37759         Update documentation for Associated_Node and Entity fields to clarify
37760         relationship and usage.
37761
37762         * sprint.adb:
37763         (Write_Id): Properly process Associated_Node field in generic template
37764
37765         * switch-c.adb:
37766         Recognize new -gnatS switch for printing package Standard
37767         This replaces gnatpsta
37768
37769         * usage.adb:
37770         Add line for  new -gnatS switch for printing package Standard
37771         This replaces gnatpsta
37772
37773 2003-11-10  Andreas Jaeger  <aj@suse.de>
37774
37775         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
37776         integer.
37777
37778 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37779
37780         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
37781         by gnat1.
37782
37783 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37784
37785         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
37786         no longer needed.
37787
37788         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
37789
37790         * sysdep.c: Add handling of cygwin.
37791
37792 2003-11-10  GNAT Script  <nobody@gnat.com>
37793
37794         * Make-lang.in: Makefile automatically updated
37795
37796 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37797
37798         PR 12950
37799         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
37800         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
37801         Replace GNAT_ROOT by GCC_ROOT.
37802
37803         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
37804
37805 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
37806
37807         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
37808         and update for changed meaning of GET_MODE_BITSIZE.
37809
37810 2003-11-04  Doug Rupp  <rupp@gnat.com>
37811
37812         * sysdep.c: Problem discovered during IA64 VMS port.
37813         [VMS] #include <unixio.h> to get proper prototypes.
37814
37815         * adaint.c:
37816         Issues discovered/problems fixed during IA64 VMS port.
37817         [VMS] #define _POSIX_EXIT for proper semantics.
37818         [VMS] #include <unixio.h> for proper prototypes.
37819         [VMS] (fork): #define IA64 version.
37820         (__gnat_os_exit): Remove unnecessary VMS specific code.
37821
37822 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37823
37824         Part of PR ada/12806
37825         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
37826         tree, not integer.
37827
37828         * decl.c:
37829         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
37830         not integer.
37831
37832         * targtyps.c, decl.c, misc.c,
37833         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
37834         routines to work around change in FP sizing semantics in GCC.
37835
37836         * utils.c:
37837         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
37838
37839         * gigi.h: (enumerate_modes): New function.
37840
37841         * Make-lang.in: (ada/misc.o): Add real.h.
37842
37843         * misc.c: (enumerate_modes): New function.
37844
37845 2003-11-04  Robert Dewar  <dewar@gnat.com>
37846
37847         * 3vtrasym.adb: Minor reformatting
37848         Use terminology encoded/decoded name, rather than C++ specific notion
37849         of mangling (this is the terminology used throughout GNAT).
37850
37851         * einfo.h: Regenerated
37852
37853         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
37854
37855         * exp_ch6.adb:
37856         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
37857
37858         * par-prag.adb: Add dummy entry for Thread_Body pragma
37859
37860         * rtsfind.ads:
37861         Add entries for System.Threads entities for thread body processing
37862
37863         * sem_attr.adb:
37864         (Analyze_Pragma, Access attributes): Check these are not applied to a
37865         thread body, since this is not permitted
37866
37867         * sem_prag.adb: Add processing for Thread_Body pragma.
37868         Minor comment fix.
37869
37870         * sem_res.adb:
37871         (Resolve_Call): Check for incorrect attempt to call a thread body
37872          procedure with a direct call.
37873
37874         * snames.ads, snames.adb: Add entry for Thread_Body pragma
37875         Add names associated with thread body expansion
37876
37877         * snames.h: Add entry for Thread_Body pragma
37878
37879         * s-thread.adb: Add entries for thread body processing
37880         These are dummy bodies so far
37881
37882         * s-thread.ads: Add documentation on thread body handling.
37883         Add entries for thread body processing.
37884
37885 2003-11-04  Javier Miranda  <miranda@gnat.com>
37886
37887         * sem_ch10.adb:
37888         (Build_Limited_Views): Return after posting an error in case of limited
37889         with_clause on subprograms, generics, instances or generic renamings
37890         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
37891         on subprograms, generics, instances or generic renamings
37892
37893 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
37894
37895         * raise.c (setup_to_install): Correct mistake in last revision; two
37896         arguments out of order.
37897
37898         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
37899         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
37900         notice, missed in previous change.
37901         Remove trailing blanks and other style errors introduced in previous
37902         change.
37903
37904 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
37905
37906         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
37907         rid of the wrapper for a LJM type, ensuring we don't do that if the
37908         field is addressable.  This avoids potential low level type view
37909         mismatches later on, for instance in a by-reference argument passing
37910         process.
37911
37912 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37913
37914         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
37915         aligned at byte boundary.
37916
37917 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
37918
37919         * decl.c (components_to_record): Do not delete the empty variants from
37920         the end of the union type.
37921
37922 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
37923
37924         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
37925         operation for a derived type, an explicit declaration may use a local
37926         subtype of Boolean.
37927
37928 2003-11-04  Vincent Celier  <celier@gnat.com>
37929
37930         * make.adb (Gnatmake): Allow main sources on the command line with a
37931         library project when it is only for compilation (no binding or
37932         linking).
37933
37934 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37935
37936         * Makefile.in: Remove many duplicate variables.
37937
37938 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
37939
37940         * Make-lang.in (dvi): Move targets to $(docobjdir).
37941         (gnat_ug_vms.dvi): Simplify rule and adjust target.
37942         (gnat_ug_wnt.dvi): Likewise.
37943         (gnat_ug_unx.dvi): Likewise.
37944         (gnat_ug_vxw.dvi): Likewise.
37945         (gnat_rm.dvi): Likewise.
37946         (gnat-style.dvi): Likewise.
37947
37948 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
37949
37950         * gigi.h: Missed commit from update for C90.
37951
37952 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
37953
37954         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
37955
37956 2003-10-31  Andreas Schwab  <schwab@suse.de>
37957
37958         * raise.c (get_action_description_for): Fix typo in last change.
37959
37960 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
37961
37962         PR ada/12761
37963         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
37964         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
37965
37966 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
37967
37968         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
37969         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
37970         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
37971         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
37972         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
37973
37974 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
37975
37976         * 3vtrasym.adb:
37977         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
37978         numbers when symbol name is too long.
37979
37980 2003-10-30  Ed Falis  <falis@gnat.com>
37981
37982         * g-signal.ads, g-signal.adb: New files
37983
37984         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
37985
37986         * Makefile.rtl: Introduce GNAT.Signals
37987
37988 2003-10-30  Robert Dewar  <dewar@gnat.com>
37989
37990         * freeze.adb: Minor reformatting
37991
37992         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
37993
37994         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
37995         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
37996         New handling of Id_Check parameter to improve recognition of keywords
37997         used as identifiers.
37998         Update copyright notice to include 2003
37999
38000 2003-10-29  Robert Dewar  <dewar@gnat.com>
38001
38002         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38003         sem_ch10.adb: Minor reformatting
38004
38005         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38006         (Expand_Assign_Record): Test right hand side for bit unaligned as well
38007
38008 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
38009
38010         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38011         Support for TBK$SYMBOLIZE-based symbolic traceback.
38012
38013 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
38014
38015         * exp_disp.adb:
38016         Revert previous change, that did not work well when pragma No_Run_Time
38017         was used in conjunction with a run-time other than ZFP.
38018
38019 2003-10-29  Vincent Celier  <celier@gnat.com>
38020
38021         * make.adb:
38022         (Gnatmake): When there are no Ada mains in attribute Main, disable the
38023          bind and link steps only is switch -z is not used.
38024
38025 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
38026
38027         * Makefile.generic: Remove duplicated setting of CC.
38028
38029         * Makefile.prolog: Set CC to gcc by default, to override make's
38030         default (cc).
38031
38032         * einfo.h: Regenerated.
38033
38034 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
38035
38036         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38037         current body, after compiling subunit.
38038
38039         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38040         when in deleted code, because gigi needs properly ordered freeze
38041         actions to annotate types.
38042
38043         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38044         prevent the premature freezing of record type that contains
38045         subcomponents with a private type that does not yet have a completion.
38046
38047 2003-10-29  Javier Miranda  <miranda@gnat.com>
38048
38049         * sem_ch12.adb:
38050         (Analyze_Package_Instantiation): Check that instances can not be used in
38051         limited with_clauses.
38052
38053         * sem_ch8.adb:
38054         (Analyze_Package_Renaming): Check that limited withed packages cannot
38055         be renamed. Improve text on error messages related to limited
38056         with_clauses.
38057
38058         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
38059
38060         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
38061         Update copyright notice.
38062
38063         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
38064         (Install_Limited_Context_Clauses): New subprogram that isolates all the
38065         checks required for limited context_clauses and installs the limited
38066         view.
38067         (Install_Limited_Withed_Unit): Complete its documentation.
38068         (Analyze_Context): Check that limited with_clauses are only allowed in
38069         package specs.
38070         (Install_Context): Call Install_Limited_Context_Clauses after the
38071         parents have been installed.
38072         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
38073         package as 'From_With_Type'; this mark indicates that the limited view
38074         is installed. Used to check bad usages of limited with_clauses.
38075         (Build_Limited_Views): Do not add shadow entities to the scope's list
38076         of entities. Do not add real entities to the Non_Limited_Views chain.
38077         Improve error notification.
38078         (Remove_Context_Clauses): Remove context clauses in two phases:
38079         limited views first and regular views later (to maintain the
38080         stack model).
38081         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
38082         its visible entities.
38083
38084 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
38085
38086         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
38087         with any type that Is_Fixed_Point_Type.
38088
38089         * sinfo.ads: Fix documentation for Associated_Node attribute.
38090
38091 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
38092
38093         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
38094         both '-gnatc' and '-gnatt' are specified.
38095
38096         * atree.adb (Initialize): Add initialization for Node_Count (set to
38097         zero).
38098
38099 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38100
38101         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
38102         do not consider as Pure.
38103
38104         Part of implementation of function-at-a-time:
38105
38106         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
38107         (tree_transform): Add new argument to build_component_ref.
38108         (tree_transform, case N_Assignment_Statement): Make and return an
38109         EXPR_STMT.
38110         (tree_transform): If result IS_STMT, set flags and return it.
38111         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38112
38113         * utils2.c (build_simple_component_ref, build_component_ref): Add new
38114         arg, NO_FOLD_P.
38115         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
38116         (build_allocator): Likewise.
38117
38118         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
38119         Add new arg to build_component_ref.
38120         (maybe_unconstrained_array, unchecked_convert): Likewise.
38121
38122         * ada-tree.def (EXPR_STMT): New code.
38123
38124         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
38125
38126         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
38127         build_component_ref calls.
38128
38129         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
38130
38131         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38132         (build_component_ref): Add new argument, NO_FOLD_P.
38133
38134 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
38135
38136         * Makefile.generic: Add missing substitution on object_deps handling.
38137
38138         PR ada/5909
38139         * Make-lang.in (check-ada): Enable ACATS test suite.
38140
38141 2003-10-27  Robert Dewar  <dewar@gnat.com>
38142
38143         * exp_ch3.adb:
38144         (Freeze_Array_Type): We do not need an initialization routine for types
38145         derived from String or Wide_String. They should be treated the same
38146         as String and Wide_String themselves. This caused problems with the
38147         use of Initialize_Scalars.
38148
38149         * exp_ch5.adb:
38150         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
38151         composites. This allows use of component clauses that are not byte
38152         aligned.
38153
38154         * sem_prag.adb:
38155         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
38156         is an attempt to pack an array of atomic objects.
38157
38158         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
38159
38160 2003-10-27  Pascal Obry  <obry@gnat.com>
38161
38162         * g-dirope.adb:
38163         (Basename): Check for drive letters in a pathname only on DOS based OS.
38164
38165 2003-10-27  Vincent Celier  <celier@gnat.com>
38166
38167         * make.adb:
38168         (Gnatmake): When unable to change dir to the object dir, display the
38169         content of the parent dir of the obj dir, to try to understand why this
38170         happens.
38171
38172 2003-10-27  GNAT Script  <nobody@gnat.com>
38173
38174         * Make-lang.in: Makefile automatically updated
38175
38176 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
38177
38178         * sem_ch12.adb:
38179         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
38180         should not be done in Save/Restore_Scope_Stack, because it is performed
38181         locally.
38182
38183         * sem_ch8.adb:
38184         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38185         whether use clauses should be removed/restored.
38186
38187         * sem_ch8.ads:
38188         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38189         whether use clauses should be removed/restored.
38190
38191 2003-10-26  Andreas Jaeger  <aj@suse.de>
38192
38193         * Makefile.in: Remove duplicated lines.
38194
38195 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38196
38197         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
38198         minimize the differences with ACT tree.
38199
38200         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
38201         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
38202         Gnatvsn.Gnat_Static_Version_String to reduce differences between
38203         ACT and FSF trees.
38204
38205 2003-10-24  Pascal Obry  <obry@gnat.com>
38206
38207         PR ada/12014
38208         * adadecode.c (ostrcpy): New function.
38209         (__gnat_decode): Use ostrcpy of strcpy.
38210         (has_prefix): Set first parameter a const.
38211         (has_suffix): Set first parameter a const.
38212         Update copyright notice. Fix source name in header.
38213         Removes a trailing space.
38214
38215 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
38216
38217         * exp_disp.adb:
38218         Remove the test against being in No_Run_Time_Mode before generating a
38219         call to Register_Tag. It is redundant with the test against the
38220         availability of the function Register_Tag.
38221
38222 2003-10-24  Vincent Celier  <celier@gnat.com>
38223
38224         * g-catiio.adb: (Month_Name): Correct spelling of February
38225
38226         * make.adb: (Mains): New package
38227         (Initialize): Call Mains.Delete
38228         (Gnatmake): Check that each main on the command line is a source of a
38229         project file and, if there are several mains, each of them is a source
38230         of the same project file.
38231         (Gnatmake): When a foreign language is specified in attribute Languages,
38232         no main is specified on the command line and attribute Mains is not
38233         empty, only build the Ada main. If there is no Ada main, just compile
38234         the Ada sources and their closure.
38235         (Gnatmake): If a main is specified on the command line with directory
38236         information, check that the source exists and, if it does, that the path
38237         is the actual path of a source of a project.
38238
38239         * prj-env.adb:
38240         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
38241         Full_Path is True, return the full path instead of the simple file name.
38242         (Project_Of): New function
38243
38244         * prj-env.ads:
38245         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
38246         defaulted to False.
38247         (Project_Of): New function
38248
38249 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38250
38251         * Makefile.generic:
38252         Ensure objects of main project are always checked and rebuilt if needed.
38253         Set CC to gcc by default.
38254         Prepare new handling of link by creating a global archive (not activated
38255         yet).
38256
38257         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
38258         stringt.h: Update copyright notice. Remove trailing blanks.
38259         Fix source name in header.
38260
38261 2003-10-24  Robert Dewar  <dewar@gnat.com>
38262
38263         * sem_ch12.adb: Minor reformatting
38264
38265         * sem_ch3.adb:
38266         Minor reformatting (including new function return style throughout)
38267
38268         * sem_ch3.ads:
38269         Minor reformatting (including new function return style throughout)
38270
38271 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
38272
38273         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
38274         stringt.h: Update copyright notice. Remove trailing blanks.
38275         Fix source name in header.
38276
38277 2003-10-24  GNAT Script  <nobody@gnat.com>
38278
38279         * Make-lang.in: Makefile automatically updated
38280
38281 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
38282
38283         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
38284         stringt.h: Convert to ISO C90 declarations and definitions.
38285
38286 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
38287
38288         PR ada/11978
38289         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
38290         External_Tag attribute definition clauses.
38291
38292 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
38293
38294         PR ada/7613
38295         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
38296         child unit, generate a fully qualified name to avoid spurious errors
38297         when the context contains renamings of different child units with
38298         the same simple name.
38299
38300         * exp_dbug.ads: Add documentation on name qualification for renamings
38301         of child units.
38302
38303 2003-10-23  Robert Dewar  <dewar@gnat.com>
38304
38305         * g-regpat.ads, g-regpat.adb: Minor reformatting
38306
38307 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
38308
38309         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
38310
38311 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38312
38313         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
38314         Machine call.
38315
38316         * urealp.h: (Machine): Update to proper definition.
38317
38318 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
38319
38320         * init.c, adaint.c: Minor reformatting.
38321
38322 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
38323
38324         * adaint.c (w32_epoch_offset): Define static const at file level.
38325         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
38326         rather than t_create, t_access in call to GetFileTime. Use union
38327         to convert between FILETIME and  unsigned long long.
38328         (__gnat_file_time_name): Test for invalid file handle.
38329         (__gnat_set_filetime_name): Support win32 targets using
38330         w32api SetFileTime.
38331
38332 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
38333
38334         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
38335
38336         * ctrl_c.c (__gnat_int_handler): Remove declaration.
38337
38338         * decl.c (creat_concat_name):  Const-ify prefix.
38339
38340         * adaint.c: Include ctype.h if __MINGW32__.
38341         (__gnat_readlink): Mark arguments as possibly unused.
38342         (__gnat_symlink): Likewise.
38343         (__gnat_is_symbolic_link): Likewise.
38344         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
38345         declaration
38346         (__gnat_file_time_name): Don't declare struct stat statbuf when
38347         not needed.
38348         (__gnat_is_absolute_path): Add parenthesis around condition of
38349         'if' statement to avoid warning.
38350         (__gnat_plist_init): Specify void as parameter.
38351         (plist_enter): Likewise.
38352         (plist_leave): Likewise.
38353         (remove_handle): Make static. Initialize prev.
38354
38355 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
38356
38357         PR ada/10110
38358         * Makefile.in: Disable build of gnatpsta.
38359         * cstreams.c (__gnat_full_name): Minor improvements and clean up
38360         of previous change.
38361
38362 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38363
38364         * tracebak.c (MAX): Avoid redefinition warning.
38365
38366         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
38367         Change msg to const char *.
38368         (__gnat_install_handler): Remove ss, unused.
38369         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
38370         to const char *.
38371         * cstreams.c (__gnat_full_name): Declare p only when used.
38372         (__gnat_full_name) [sgi] Return buffer.
38373
38374 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
38375
38376         * mingw32.h: New file.
38377         * gnat_wrapper.adb: New file.
38378
38379 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
38380
38381         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
38382         string match a pre compiled regular expression (the corresponding
38383         version of the function working on a raw regular expression)
38384         Fix typos in various comments
38385         Update copyright notice in spec
38386
38387 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
38388
38389         * exp_ch3.adb:
38390         (Component_Needs_Simple_Initialization): Return False when the type is a
38391         packed bit array. Revise spec comments to document this case.
38392
38393         * exp_prag.adb:
38394         (Expand_Pragma_Import): Set any expression on the imported object to
38395         empty to avoid initializing imported objects (in particular this
38396         covers the case of zero-initialization of bit arrays).
38397         Update copyright notice.
38398
38399 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
38400
38401         * sem_ch12.adb:
38402         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
38403         a subunit is missing.
38404         (Instantiate_Subprogram_Body): If body of function is missing, set type
38405         of return expression explicitly in dummy body, to prevent cascaded
38406         errors when a subunit is missing.
38407         Fixes PR 5677.
38408
38409         * sem_ch3.adb:
38410         (Access_Subprogram_Declaration): Verify that return type is valid.
38411         Fixes PR 8693.
38412
38413         * sem_elab.adb:
38414         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
38415         generic.
38416         Fixes PR 12318.
38417
38418         * sem_util.adb:
38419         (Corresponding_Discriminant): If the scope of the discriminant is a
38420         private type without discriminant, use its full view.
38421         Fixes PR 8247.
38422
38423 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
38424
38425         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
38426         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
38427         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
38428         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
38429         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
38430         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
38431         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38432         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
38433         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
38434         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
38435         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
38436         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
38437         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
38438         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
38439         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
38440         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
38441         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
38442         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
38443         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
38444         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
38445         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
38446         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
38447         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
38448         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
38449         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
38450         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
38451         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
38452         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
38453         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
38454         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
38455         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
38456         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
38457         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
38458         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
38459         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
38460         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
38461         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
38462         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
38463         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
38464         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
38465         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
38466         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
38467         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
38468         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
38469         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
38470         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
38471         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
38472         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
38473         vms_conv.ads, vms_conv.adb, vms_data.ads,
38474         vxaddr2line.adb: Files added. Merge with ACT tree.
38475
38476         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
38477         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
38478         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
38479         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
38480         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
38481         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
38482         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38483         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
38484         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
38485         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
38486
38487         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38488         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38489         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38490         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38491         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
38492         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
38493         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38494         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
38495         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
38496         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
38497         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
38498         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
38499         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
38500         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
38501         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
38502         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
38503         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
38504         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38505         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
38506         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
38507         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
38508         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
38509         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
38510         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
38511         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
38512         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
38513         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
38514         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
38515         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
38516         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
38517         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
38518         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
38519         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38520         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
38521         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
38522         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
38523         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
38524         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
38525         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
38526         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
38527         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
38528         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
38529         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
38530         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
38531         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
38532         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
38533         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
38534         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
38535         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
38536         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
38537         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
38538         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
38539         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
38540         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
38541         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
38542         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
38543         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
38544         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
38545         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
38546         checks.adb, checks.ads, cio.c, comperr.adb,
38547         comperr.ads, csets.adb, cstand.adb, cstreams.c,
38548         debug_a.adb, debug_a.ads, debug.adb, decl.c,
38549         einfo.adb, einfo.ads, errout.adb, errout.ads,
38550         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
38551         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
38552         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
38553         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38554         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
38555         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
38556         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
38557         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
38558         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
38559         fe.h, fmap.adb, fmap.ads, fname.adb,
38560         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
38561         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
38562         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
38563         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38564         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38565         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38566         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
38567         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
38568         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
38569         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
38570         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
38571         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
38572         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
38573         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
38574         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
38575         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
38576         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
38577         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
38578         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
38579         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
38580         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
38581         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
38582         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
38583         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
38584         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
38585         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
38586         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
38587         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
38588         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
38589         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
38590         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
38591         layout.adb, lib.adb, lib.ads, lib-list.adb,
38592         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
38593         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38594         link.c, live.adb, make.adb, make.ads,
38595         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
38596         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
38597         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
38598         misc.c, mkdir.c, mlib.adb, mlib.ads,
38599         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
38600         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
38601         namet.adb, namet.ads, namet.h, nlists.ads,
38602         nlists.h, nmake.adt, opt.adb, opt.ads,
38603         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
38604         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
38605         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38606         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
38607         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
38608         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
38609         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
38610         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
38611         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
38612         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
38613         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
38614         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
38615         prj-util.adb, prj-util.ads, raise.c, raise.h,
38616         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
38617         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
38618         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
38619         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
38620         scans.ads, scn.adb, scn.ads, s-crc32.adb,
38621         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
38622         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38623         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
38624         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
38625         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
38626         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38627         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38628         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
38629         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
38630         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
38631         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
38632         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
38633         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
38634         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
38635         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38636         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
38637         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
38638         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
38639         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
38640         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
38641         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
38642         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
38643         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
38644         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
38645         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
38646         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
38647         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
38648         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
38649         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
38650         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
38651         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
38652         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
38653         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
38654         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
38655         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
38656         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
38657         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
38658         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
38659         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
38660         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
38661         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38662         stringt.adb, stringt.ads, stringt.h, style.ads,
38663         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
38664         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
38665         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
38666         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
38667         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
38668         table.adb, table.ads, targparm.adb, targparm.ads,
38669         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
38670         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
38671         ttypes.ads, types.ads, types.h, uintp.adb,
38672         uintp.ads, uintp.h, uname.adb, urealp.adb,
38673         urealp.ads, urealp.h, usage.adb, utils2.c,
38674         utils.c, validsw.adb, validsw.ads, widechar.adb,
38675         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
38676         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
38677         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
38678         gnatvsn.ads: Merge with ACT tree.
38679
38680         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
38681
38682 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
38683
38684         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
38685         (gnat_ug_vmx.info): Likewise.
38686         (gnat_ug_vxw.info): Likewise.
38687         (gnat_ug_wnt.info): Likewise.
38688         (gnat_rm.info): Likewise.
38689         (gnat-style.info): Likewise.
38690
38691         * Make-lang.in (ada.install-info): Remove target.
38692         (info): New target.
38693         (install-info): Likewise.
38694         (gnat_ug_unx.info): Simplify rule.
38695         (gnat_ug_vmx.info): Likewise.
38696         (gnat_ug_vxw.info): Likewise.
38697         (gnat_ug_wnt.info): Likewise.
38698         (gnat_rm.info): Likewise.
38699         (gnat-style.info): Likewise.
38700
38701 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
38702
38703         * Make-lang.in: Replace uses of $(target_alias) with
38704         $(target_noncanonical).
38705         * ada/Makefile.in: Remove unused mention of $(target_alias).
38706
38707 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
38708
38709         * Make-lang.in (ada.info): Replace with ...
38710         (info): ... this.
38711         (ada.dvi): Replace with ...
38712         (dvi): ... this.
38713
38714 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
38715
38716         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
38717         initialize dconstp5 and dconstmp5.
38718
38719 2003-09-28  Richard Henderson  <rth@redhat.com>
38720
38721         * trans.c (tree_transform): Update call to expand_asm_operands.
38722
38723 2003-09-21  Richard Henderson  <rth@redhat.com>
38724
38725         * trans.c, utils.c: Revert.
38726
38727 2003-09-21  Richard Henderson  <rth@redhat.com>
38728
38729         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
38730         change to const.
38731
38732 2003-09-04  Michael Matz  <matz@suse.de>
38733
38734         * misc.c: Include "target.h".
38735         * Make-lang.in (misc.o): Add dependency on target.h.
38736
38737 2003-09-03  DJ Delorie  <dj@redhat.com>
38738
38739         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
38740         hook.
38741
38742 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
38743
38744         * Makefile.in: Update substitutions to match changes to
38745         configure.  Use include directives instead of @-insertions
38746         to read in host and target fragments.  Add a rule to
38747         regenerate ada/Makefile.
38748
38749 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
38750
38751         * lang-options.h: Remove.
38752         * lang.opt: Add help text.
38753
38754 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
38755
38756         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
38757         calls.
38758
38759 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
38760
38761         * misc.c (gnat_handle_option): Don't handle filenames.
38762
38763 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
38764
38765         * Make-lang.in: Replace PWD with PWD_COMMAND.
38766         * Makefile.adalib: Likewise.
38767         * Makefile.in: Likewise.
38768
38769 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
38770
38771         * misc.c (gnat_argv): Revert last change.
38772         (gnat_handle_option, gnat_init_options): Copy arguments.
38773
38774 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
38775
38776         * misc.c (gnat_argv): Make const.
38777
38778 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
38779
38780         * misc.c (save_argc, save_argv): Keep non-static!
38781
38782 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
38783
38784         * misc.c (save_argc, save_argv): Make static.
38785         (gnat_init_options): New prototype.
38786         (gnat_init_options): Update.
38787
38788 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
38789
38790         * gnat_ug.texi: Remove unlikely characters from @vars.
38791         * gnat_ug_vms.texi: Regenerate.
38792
38793 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
38794
38795         * misc.c (record_code_position): Adjust emit_note call.
38796
38797 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
38798
38799         * misc.c (gnat_handle_option): Don't check for missing arguments.
38800
38801 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
38802
38803         * utils.c (end_subprog_body): Adjust expand_function_end call.
38804
38805 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
38806
38807         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
38808         Bind_Main_Program.
38809
38810 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
38811
38812         * lang.opt: Declare Ada.
38813         * misc.c (gnat_init_options): Update.
38814
38815 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
38816
38817         * utils.c (begin_subprog_body): Adjust init_function_start call.
38818
38819 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
38820
38821         * Make-lang.in: Update to use options.c and options.h.
38822         * misc.c: Include options.h not aoptions.h.
38823         (gnat_handle_option): Abort on unrecognized switch.
38824         (gnat_init_options): Request Ada switches.
38825
38826 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
38827
38828         * lang.opt: Add -Wall.
38829         * misc.c (gnat_handle_option): Handle it.
38830
38831 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
38832
38833         * misc.c (gnat_handle_option): Fix warnings.
38834
38835 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
38836
38837         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
38838
38839 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
38840
38841         * Make-lang.in: Update to handle command-line options.
38842         * lang.opt: New file.
38843         * misc.c: Include aoptions.h.
38844         (cl_options_count, cl_options): Remove.
38845         (gnat_handle_option): New.
38846         (gnat_decode_option): Remove.
38847         (LANG_HOOKS_DECODE_OPTION): Remove.
38848         (LANG_HOOKS_HANDLE_OPTION): Override.
38849
38850 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
38851
38852         * init.c, misc.c, trans.c, utils.c: Remove dead code.
38853
38854 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
38855
38856         * Makefile.in: Replace "host_canonical" with "host" for autoconf
38857         substitution.
38858
38859 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
38860
38861         * Make-lang.in: Update.
38862         * misc.c: Include opts.h. Define cl_options_count and cl_options.
38863
38864 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
38865
38866         * misc.c (gnat_init_options): Update.
38867
38868 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
38869
38870         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
38871         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
38872         __attribute__ ((__unused__)).
38873
38874 2003-06-05  Jan Hubicka  <jh@suse.cz>
38875
38876         * Make-lang.in:  Add support for stageprofile and stagefeedback
38877
38878 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
38879
38880         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
38881         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
38882
38883 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
38884
38885         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
38886         Remove non-VMS directive.
38887         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
38888         alternatives.
38889         (Examples of gnatls Usage): Remove VMS alternative.
38890
38891 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
38892
38893         PR ada/9953
38894         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
38895         and turn ZCX_By_Default back to False since the underlying support
38896         is not quite there yet.
38897
38898 2003-06-01  Andreas Jaeger  <aj@suse.de>
38899
38900         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
38901         and ROUND_TYPE_SIZE_UNIT.
38902
38903 2003-05-22   Geert Bosch  <bosch@gnat.com>
38904
38905         * gnat_rm.texi : Remove reference to Ada Core Technologies.
38906
38907 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
38908
38909         * trans.c (tree_transform): Use location_t and input_location
38910         directly.
38911         (build_unit_elab): Likewise.
38912         * utils.c (create_label_decl): Likewise.
38913
38914 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
38915
38916         * trans.c (tree_transform, build_unit_elab,
38917         set_lineno): Rename lineno to input_line.
38918         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
38919         end_subprog_body): Likewise.
38920         * utils2.c (build_call_raise): Likewise.
38921
38922 2003-05-01  Laurent Guerby  <guerby@acm.org>
38923
38924         PR ada/10546
38925         * 5iosinte.ads: Increase pthread_cond_t size to match recent
38926         LinuxThread and NPTL version, merge from ACT.
38927
38928 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
38929
38930         * utils.c (convert): No need to clear TREE_CST_RTL.
38931
38932 2003-04-23   Geert Bosch  <bosch@gnat.com>
38933
38934         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
38935         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38936         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38937         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38938         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38939         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
38940         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
38941         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
38942         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38943         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
38944         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
38945         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
38946         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
38947         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
38948         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
38949         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
38950         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
38951         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
38952         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
38953         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38954         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38955         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
38956         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38957         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
38958         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
38959         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
38960         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
38961         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
38962         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
38963         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
38964         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
38965         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
38966         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
38967         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
38968         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
38969         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
38970         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
38971         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
38972         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
38973         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
38974         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
38975         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
38976         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
38977         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
38978         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
38979         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
38980         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
38981         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
38982         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
38983         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
38984         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
38985         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
38986         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
38987         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
38988         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
38989         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
38990         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
38991         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
38992         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
38993         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
38994         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
38995         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
38996         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
38997         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
38998         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
38999         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39000         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39001         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39002         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39003         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39004         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39005         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39006         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39007         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39008         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39009         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39010         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39011         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39012         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39013         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39014         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39015         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39016         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39017         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39018         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39019         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39020         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39021         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39022         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39023         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39024         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39025         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39026         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39027         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39028         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39029         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39030         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39031         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39032         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39033         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39034         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39035         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39036         ali.adb, ali.ads, alloc.ads, argv.c,
39037         atree.adb, atree.ads, atree.h, aux-io.c,
39038         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39039         binde.adb, binde.ads, binderr.adb, binderr.ads,
39040         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39041         butil.adb, butil.ads, cal.c, calendar.ads,
39042         casing.adb, casing.ads, ceinfo.adb, checks.adb,
39043         checks.ads, cio.c, comperr.adb, comperr.ads,
39044         config-lang.in, csets.adb, csets.ads, csinfo.adb,
39045         cstand.adb, cstand.ads, cuintp.c, debug.adb,
39046         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39047         dec-io.ads, dec.ads, deftarg.c, directio.ads,
39048         einfo.adb, einfo.ads, elists.adb, elists.ads,
39049         elists.h, errno.c, errout.adb, errout.ads,
39050         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39051         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39052         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39053         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39054         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39055         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39056         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39057         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
39058         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
39059         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
39060         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
39061         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
39062         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
39063         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
39064         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
39065         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
39066         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
39067         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
39068         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
39069         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
39070         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39071         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39072         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39073         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
39074         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
39075         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
39076         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
39077         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
39078         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
39079         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
39080         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
39081         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
39082         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
39083         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
39084         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
39085         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
39086         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
39087         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
39088         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
39089         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
39090         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
39091         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
39092         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
39093         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
39094         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
39095         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
39096         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
39097         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
39098         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
39099         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
39100         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
39101         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
39102         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
39103         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
39104         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
39105         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
39106         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
39107         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
39108         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
39109         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39110         lib.adb, lib.ads, live.adb, live.ads,
39111         machcode.ads, make.adb, make.ads, makeusg.adb,
39112         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
39113         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
39114         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
39115         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
39116         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
39117         mlib.ads, namet.adb, namet.ads, nlists.adb,
39118         nlists.ads, opt.adb, opt.ads, osint-b.adb,
39119         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
39120         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
39121         osint.ads, output.adb, output.ads, par-ch10.adb,
39122         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
39123         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39124         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
39125         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
39126         par-tchk.adb, par-util.adb, par.adb, par.ads,
39127         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
39128         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
39129         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
39130         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
39131         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
39132         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
39133         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
39134         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
39135         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
39136         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
39137         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
39138         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
39139         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
39140         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
39141         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
39142         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
39143         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
39144         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39145         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
39146         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
39147         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
39148         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
39149         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39150         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
39151         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
39152         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
39153         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
39154         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
39155         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
39156         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
39157         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
39158         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
39159         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
39160         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
39161         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
39162         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
39163         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
39164         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
39165         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
39166         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
39167         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
39168         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
39169         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
39170         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
39171         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
39172         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
39173         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
39174         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
39175         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
39176         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
39177         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
39178         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
39179         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
39180         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
39181         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
39182         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
39183         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
39184         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
39185         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
39186         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
39187         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
39188         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
39189         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
39190         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
39191         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
39192         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
39193         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
39194         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
39195         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
39196         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
39197         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
39198         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
39199         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
39200         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
39201         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
39202         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
39203         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
39204         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
39205         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
39206         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
39207         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
39208         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
39209         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
39210         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39211         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
39212         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
39213         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
39214         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
39215         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
39216         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
39217         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
39218         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
39219         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
39220         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
39221         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
39222         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
39223         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
39224         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
39225         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
39226         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
39227         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
39228         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
39229         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
39230         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
39231         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
39232         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
39233         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
39234         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
39235         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
39236         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
39237         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39238         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39239         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
39240         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
39241         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
39242         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
39243         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
39244         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
39245         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
39246         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
39247         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
39248         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
39249         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
39250         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
39251         snames.ads, sprint.adb, sprint.ads, stand.adb,
39252         stand.ads, stringt.adb, stringt.ads, style.adb,
39253         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
39254         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
39255         switch-m.ads, switch.adb, switch.ads, system.ads,
39256         table.adb, table.ads, targparm.adb, targparm.ads,
39257         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
39258         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
39259         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
39260         ttypef.ads, ttypes.ads, types.adb, types.ads,
39261         uintp.adb, uintp.ads, uname.adb, uname.ads,
39262         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
39263         usage.adb, usage.ads, validsw.adb, validsw.ads,
39264         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
39265         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
39266         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
39267         formatting and other trivial changes from ACT.
39268
39269 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
39270
39271         * gigi.h, utils2.c (build_constructor):
39272         Rename gnat_build_constructor. Use build_constructor.
39273         * decl.c (gnat_to_gnu_entity)
39274         * trans.c (tree_transform, pos_to_constructor, extract_values)
39275         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
39276         (unchecked_convert)
39277         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
39278         (fill_vms_descriptor):
39279         Update to match.
39280
39281 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
39282
39283         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
39284         * misc.c (gnat_tree_size): New function.
39285         (LANG_HOOKS_TREE_SIZE): Override.
39286
39287 2003-04-03  Jason Merrill  <jason@redhat.com>
39288
39289         * misc.c (gnat_adjust_rli): #if 0.
39290
39291 2003-03-31   Geert Bosch  <bosch@gnat.com>
39292
39293         PR ada/10020
39294         * link.c : Fix misspelled "const" keyword
39295
39296 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
39297
39298         PR c++/7086
39299         * utils2.c: Adjust calls to put_var_into_stack.
39300
39301 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
39302
39303         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
39304
39305 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
39306
39307         * misc.c (gnat_init): Update for new prototype.
39308
39309 2003-03-05  Olivier Hainque  <hainque@gnat.com>
39310
39311         ada/9961
39312         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
39313         warning, and fix return type for the IN_RTS && !SJLJ case.
39314
39315 2003-03-04  Tom Tromey  <tromey@redhat.com>
39316
39317         * Make-lang.in (ada.tags): New target.
39318
39319 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
39320
39321         ada/9911
39322         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
39323         wrapper, which name remains constant whatever underlying GCC
39324         scheme.
39325
39326         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
39327         the stable interface needed for a-except.
39328
39329 2003-03-02  Andreas Jaeger  <aj@suse.de>
39330
39331         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39332         gnat_ug_wnt.texi: Regenerate.
39333
39334 2003-03-02  Laurent Guerby  <guerby@acm.org>
39335
39336         * Makefile.in (install-gnatlib): Match previous change there
39337         so it works.
39338
39339 2003-02-28  Andreas Schwab  <schwab@suse.de>
39340
39341         * Make-lang.in (install-gnatlib): Change to ada directory before
39342         running make instead of using ada/Makefile directly.
39343
39344 2003-02-18  Ben Elliston  <bje@redhat.com>
39345
39346         Part of PR ada/9406
39347         * gnat_ug.texi (Binder output file): Grammar fix.
39348
39349 2003-02-18  Ben Elliston  <bje@redhat.com>
39350
39351         PR other/7350
39352         * 5qtaprop.adb (Sleep): Fix typo in comment.
39353
39354 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
39355
39356         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
39357         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39358         gnat_ug_wnt.texi: Regenerate.
39359
39360 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
39361
39362         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
39363         be created if necessary.
39364         (ada.install-common): Let $(DESTDIR)$(bindir) be created
39365         if necessary.  Remove erroneous and redundant gnatchop
39366         installation commands.  Test for gnatdll before attempting
39367         to install it.
39368         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
39369         and gnatdll from all plausible locations.
39370
39371 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
39372
39373         * utils2.c (build_unary_op): Don't check flag_volatile.
39374         * gnat_ug.texi: Remove -fvolatile from example.
39375         * gnat_ug_vxw.texi: Likewise.
39376
39377 2003-01-29  Laurent Guerby  <guerby@acm.org>
39378
39379         PR ada/8344
39380         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
39381         * Makefile.in: match previous change.
39382         * Make-lang.in: match previous change.
39383
39384 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
39385
39386         * 5rosinte.ads: Add SIGXCPU.
39387         * 5rtpopsp.adb: New file.
39388         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
39389         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
39390         specific file 5rtpopsp.adb.
39391         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
39392         is likely needed for all newlib targets.
39393         * init.c: Add RTEMS specific version of __gnat_initialize().
39394
39395 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39396
39397         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
39398
39399 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39400
39401         * init.c (__gnat_error_handler): Make msg const.
39402
39403         * gmem.c (convert_addresses): Move declaration ...
39404         * adaint.h: ... here.
39405         * adaint.c (convert_addresses): Adapt addrs type to match
39406         prototype.
39407
39408         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
39409
39410 2003-01-24  Andreas Schwab  <schwab@suse.de>
39411
39412         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
39413         size_t to avoid warning.
39414
39415 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
39416
39417         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
39418
39419 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
39420
39421         * gnat_rm.texi: Remove RCS version number.
39422
39423         * ada-tree.h (union lang_tree_node): Add chain_next option.
39424
39425 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
39426
39427         * Make-lang.in (ada.install-info, ada.install-common,
39428         ada.uninstall): Prepend $(DESTDIR) to the destination
39429         directory in all (un)installation commands.
39430         * Makefile.in (install-gnatlib, install-rts): Ditto.
39431
39432 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
39433
39434         * gnat_rm.texi, gnat_ug.texi: Use @copying.
39435         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39436         gnat_ug_wnt.texi: Regenerate.
39437
39438 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
39439
39440         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
39441         only.
39442         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
39443         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
39444         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
39445         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
39446         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
39447         $(srcdir)/doc/include/gcc-common.texi.
39448
39449 2002-12-15   Geert Bosch  <bosch@gnat.com>
39450
39451         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
39452
39453 2002-12-14   Geert Bosch  <bosch@gnat.com>
39454
39455         PR ada/5690
39456         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
39457         case of a body created for a Renaming_As_Body, on which
39458         conformance checks are not performed.
39459
39460 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
39461
39462         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
39463         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
39464         not already included.
39465         * Make-lang.in: Update dependencies.
39466
39467 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
39468         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
39469         solution to buffer overflow bug on GNU/Linux.
39470
39471 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
39472
39473         PR ada/5856
39474         PR ada/6919
39475         * bindgen.adb: Remove all references to Public_Version.
39476         * comperr.adb: Remove all references to Public_Version and
39477         GNATPRO_Version; correct bug reporting instructions.
39478         * comperr.ads: Change to match bug box.
39479         * gnatvsn.ads: Remove all references to Public version and
39480         GNATPRO version.
39481
39482 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
39483
39484         PR ada/6919
39485         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
39486         GNU/Linux.
39487
39488         PR ada/6558
39489         * config-lang.in: Remove diff_excludes.
39490
39491 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
39492
39493         PR ada/8358
39494         * trans.c (gnu_pending_elaboration_lists): New GC root.
39495         (build_unit_elab): Use..
39496
39497 2002-10-30   Geert Bosch  <bosch@gnat.com>
39498
39499         PR ada/6558
39500         * misc.c : Include optabs.h
39501
39502         * Make-lang.in (misc.o): Add dependency on optabs.h
39503
39504 2002-10-29   Geert Bosch  <bosch@gnat.com>
39505
39506         PR ada/6558
39507         * Make-lang.in (gnatbind): Depend on CONFIG_H
39508
39509 2002-10-29  Geert bosch  <bosch@gnat.com>
39510
39511         PR ada/6558
39512         * misc.c: Unrevert misc.c (1.13)
39513
39514 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
39515
39516         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
39517         maintainership comments.
39518
39519 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
39520
39521         PR ada/5904
39522         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
39523         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
39524         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
39525         7staprop.adb: Correct statements in comments about
39526         maintainership of GNAT.
39527
39528         PR ada/5904
39529         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
39530         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
39531         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
39532         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
39533         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
39534         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
39535         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
39536         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
39537         comments about maintainership of GNAT.
39538
39539         PR ada/6919 (forward port of patch for PR ada/5904)
39540         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
39541         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
39542         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
39543         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
39544         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
39545         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
39546         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
39547         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
39548         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
39549         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
39550         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
39551         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
39552         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
39553         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
39554         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
39555         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
39556         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
39557         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
39558         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
39559         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
39560         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
39561         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
39562         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
39563         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
39564         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
39565         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
39566         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
39567         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
39568         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
39569         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
39570         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
39571         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
39572         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
39573         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
39574         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
39575         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
39576         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
39577         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
39578         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
39579         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
39580         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
39581         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
39582         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
39583         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
39584         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
39585         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
39586         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
39587         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
39588         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
39589         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
39590         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
39591         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
39592         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
39593         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
39594         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
39595         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
39596         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
39597         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
39598         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
39599         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
39600         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
39601         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
39602         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
39603         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
39604         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
39605         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
39606         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
39607         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
39608         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
39609         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
39610         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
39611         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
39612         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
39613         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
39614         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
39615         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
39616         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
39617         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
39618         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
39619         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
39620         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
39621         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
39622         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
39623         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
39624         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
39625         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
39626         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
39627         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
39628         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
39629         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
39630         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
39631         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
39632         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
39633         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
39634         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
39635         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
39636         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
39637         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
39638         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
39639         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
39640         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
39641         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
39642         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
39643         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
39644         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
39645         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
39646         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
39647         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
39648         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
39649         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
39650         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
39651         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
39652         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
39653         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
39654         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
39655         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
39656         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
39657         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
39658         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
39659         par-endh.adb par-labl.adb par-load.adb par-prag.adb
39660         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
39661         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
39662         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
39663         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
39664         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
39665         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
39666         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
39667         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
39668         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
39669         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
39670         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
39671         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
39672         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
39673         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
39674         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
39675         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
39676         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
39677         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
39678         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
39679         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
39680         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
39681         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
39682         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
39683         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
39684         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
39685         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
39686         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
39687         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
39688         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
39689         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
39690         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
39691         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
39692         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
39693         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
39694         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
39695         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
39696         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
39697         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
39698         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
39699         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
39700         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
39701         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
39702         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
39703         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
39704         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
39705         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
39706         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
39707         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
39708         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
39709         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
39710         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
39711         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
39712         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
39713         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
39714         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
39715         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
39716         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
39717         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
39718         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
39719         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
39720         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
39721         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
39722         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
39723         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
39724         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
39725         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
39726         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
39727         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
39728         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
39729         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
39730         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
39731         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
39732         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
39733         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
39734         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
39735         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
39736         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
39737         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
39738         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
39739         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
39740         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
39741         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
39742         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
39743         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
39744         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
39745         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
39746         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
39747         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
39748         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
39749         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
39750         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
39751         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
39752         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
39753         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
39754         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
39755         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
39756         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
39757         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
39758         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
39759         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
39760         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
39761         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
39762         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
39763         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
39764         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
39765         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
39766         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
39767         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
39768         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
39769         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
39770         stringt.ads stringt.h style.adb style.ads stylesw.adb
39771         stylesw.ads switch.adb switch.ads sysdep.c system.ads
39772         table.adb table.ads targparm.adb targparm.ads targtyps.c
39773         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
39774         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
39775         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
39776         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
39777         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
39778         usage.ads utils.c utils2.c validsw.adb validsw.ads
39779         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
39780         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
39781         xtreeprs.adb: Correct statements in comments about maintainership
39782         of GNAT.
39783
39784 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
39785
39786         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
39787         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
39788         * gnatvsn.ads: Gnat_Version_String is now a function.
39789         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
39790         copy the C version_string into a String and return it.
39791         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
39792         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
39793         Remove pragma Ident (Gnat_Version_String).  If this was the
39794         sole use of package Gnatvsn, remove the with statement too.
39795         * gnat1drv.adb: Tweak -gnatv output.
39796
39797 2002-09-17  Richard Henderson  <rth@redhat.com>
39798
39799         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
39800         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
39801         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
39802         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
39803         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
39804         and real_2expN instead of a loop.
39805         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
39806         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
39807
39808 2002-08-25  Andre Leis  <a.leis@gmx.net>
39809             David Billinghurst  <David.Billinghurst@riotinto.com>
39810
39811         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
39812
39813 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39814
39815         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
39816         Remove $(CONFIG_H) dependency.
39817
39818 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
39819
39820         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
39821
39822 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39823
39824         * adadecode.c (ada_demangle): Use xstrdup in lieu of
39825         xmalloc/strcpy.
39826         * misc.c (gnat_decode_option): Likewise.
39827
39828 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
39829
39830         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
39831         function approach did not work well because of a side effect (the
39832         function call could reallocate the table which was being indexed
39833         using its result). Fixes ada/4851. [RESURRECTED]
39834
39835 2002-07-01  Roger Sayle  <roger@eyesopen.com>
39836
39837         * ada/utils.c (builtin_function): Accept an additional parameter.
39838
39839 2002-06-28  Andreas Jaeger  <aj@suse.de>
39840
39841         PR ada/7144
39842         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
39843         <adi@thur.de>.
39844
39845 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39846
39847         * Makefile.in (SHELL): Set to @SHELL@.
39848
39849 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39850
39851         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
39852         array size calculation.
39853
39854 2002-06-04  Andreas Jaeger  <aj@suse.de>
39855
39856         * Make-lang.in (gnatbind): Readd rule that has been lost in last
39857         patch.
39858
39859 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
39860
39861         Merge from pch-branch:
39862
39863         * config-lang.in (gtfiles): Add ada-tree.h.
39864         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
39865         (SET_TYPE_MODULUS): New.
39866         (SET_TYPE_INDEX): New.
39867         (SET_TYPE_DIGITS_VALUE): New.
39868         (SET_TYPE_RM_SIZE): New.
39869         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
39870         (SET_TYPE_ADA_SIZE): New.
39871         (SET_TYPE_ACTUAL_BOUNDS): New.
39872         (SET_DECL_CONST_CORRESPONDING_VAR): New.
39873         (SET_DECL_ORIGINAL_FIELD): New.
39874         (TREE_LOOP_ID): Correct typo.
39875         * decl.c: Use new macros.
39876         * utils.c: Include debug.h, use new macros.
39877         * utils2.c: Use new macros.
39878
39879         * ada-tree.h: Update all macros for new tree description.
39880         (struct tree_loop_id): New.
39881         (union lang_tree_node): New.
39882         (struct lang_decl): New.
39883         (struct lang_type): New.
39884         * misc.c (gnat_mark_tree): Delete.
39885         (LANG_HOOKS_MARK_TREE): Delete.
39886         * trans.c (tree_transform): No longer any need to cast
39887         for TREE_LOOP_ID.
39888
39889         * utils.c (struct language_function): New dummy structure.
39890
39891         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
39892         (misc.o): Likewise.
39893         (utils.o): Likewise; also gtype-ada.h.
39894         * Make-lang.in (gnat1): Add dependency on s-gtype.
39895         (gnatbind): Add dependency on $(CONFIG_H).
39896         * utils.c: Correct last #include.
39897         (stuct e_stack): Remove unnecessary 'static'.
39898         (mark_e_stack): Remove unused prototype.
39899
39900         * scn-nlit.adb: Remove whitespace after version number to
39901         keep lines under 80 chars.
39902         * snames.adb: Likewise.
39903         * treepr.ads: Likewise.
39904
39905         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
39906         (misc.o): Likewise.
39907         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
39908         * config-lang.in (gtfiles): New.
39909         * decl.c: Use gengtype for roots.
39910         * gigi.h: Use gengtype for roots.
39911         * trans.c: Use gengtype for roots.
39912         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
39913
39914 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
39915
39916         * misc.c (gnat_init): Adjust setting of internal_error_function.
39917
39918 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
39919
39920         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
39921         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39922         gnat_ug_wnt.texi: Regenerate.
39923
39924 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
39925
39926         * 5ntaprop.adb (with System.OS_Primitives): Remove.
39927
39928         * cstreams.c (max_path_len): Move from here ...
39929         * adaint.c (__gnat_max_path_len): ... to here.
39930         * adaint.c (__gnat_max_path_len): Declare.
39931         * g-dirope.adb (Max_Path): Adjust.
39932         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
39933         * i-cstrea.ads (max_path_len): Adjust.
39934         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
39935         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
39936
39937         * Makefile.in, Make-lang.in: Documentation is now built in
39938         Make-lang.in.  Store Info and generated Texinfo files in the
39939         source directory.
39940         * gnat_ug.texi: Remove CVS keywords, correct version number.
39941         Set file name correctly.
39942
39943         * gnat_ug_*.texi: Add.
39944         * .cvsignore: Ignore generated Texinfo files.
39945
39946 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
39947
39948         * ada.h: Add MI guard macro.
39949         (SUBTYPE): Define constants with an anonymous enum, not static
39950         const variables.
39951         (IN): Cast constants to appropriate type before use.
39952
39953 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
39954
39955         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
39956         (experimental)".
39957
39958 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39959
39960         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
39961         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
39962         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
39963         (ALL_ADA_CFLAGS): Likewise.
39964         (ADA_INCLUDES): Likewise.
39965         Adapt for new working dir.
39966         (GNATBIND): Use Makefile.in version.
39967         (.SUFFIXES): Copy from Makefile.in.
39968         (ada-warn): Define.
39969         (.adb.o, .ads.o): Copy from Makefile.in.
39970         Added $(OUTPUT_OPTION).
39971         (GNAT1_C_OBJS): Moved from Makefile.in.
39972         Prefix with ada subdir.
39973         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
39974         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
39975         Adapt for new working dir.
39976         (EXTRA_GNATBIND_OBJS): Likewise.
39977         (ADA_BACKEND): Moved from Makefile.in.
39978         Renamed to avoid conflict with global BACKEND.
39979         Use that one.
39980         (TARGET_ADA_SRCS): Moved from Makefile.in.
39981         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
39982         Use ADA_BACKEND.
39983         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
39984         (ada_extra_files): Moved from Makefile.in.
39985         Prefix with ada subdir.
39986         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
39987         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
39988         (ada/nmake.ads): Likewise.
39989         (update-sources): Moved from Makefile.in.
39990         Prefix with ada subdir.
39991         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
39992         (ADA_TREE_H): Likewise.
39993         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
39994         (ada/memtrack.o): Likewise.
39995         (ada/adadecode.o): Likewise.
39996         Update dependencies.
39997         (ada/adaint.o): New.
39998         (ada/argv.o): Moved from Makefile.in.
39999         Prefix with ada subdir.
40000         Update dependencies.
40001         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40002         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40003         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40004         Prefix with ada subdir.
40005         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40006         (GNAT DEPENDENCIES): Regenerate.
40007         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40008         toplevel Makefile.in.
40009         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40010         (TARGET_ADA_SRCS): Removed.
40011         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40012         (GNATBIND_OBJS): Likewise.
40013         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40014         (BACKEND): Removed.
40015         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40016         (TREE_H): Likewise.
40017         (ada_extra_files): Likewise.
40018         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40019         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40020         (update-sources): Likewise.
40021         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40022         (ADA_TREE_H): Likewise.
40023         (adadecoce.o): Likewise.
40024         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40025         (GNAT DEPENDENCIES): Likewise.
40026
40027 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40028
40029         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40030         * Makefile.in: Likewise.
40031
40032 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
40033
40034         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40035         Restore $(CONFIG_H) and prefix.o dependencies.
40036         (ada.stage[1-4]): Depend on stage?-start.
40037
40038         * Makefile.in (b_gnatb.c): Depend on interfac.o.
40039
40040 2002-05-02  Jim Wilson  <wilson@redhat.com>
40041
40042         * utils.c (finish_record_type): Change record_size to record_type.
40043
40044 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
40045
40046         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40047         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40048         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40049
40050 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40051
40052         * misc.c (gnat_parse_file): Update.
40053
40054 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40055
40056         * misc.c (gnat_init): Don't set lang_attribute_common.
40057
40058 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
40059
40060         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
40061
40062 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
40063
40064         * gnat_ug.texi: New file.
40065
40066         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
40067         instead of gfdl.texi
40068
40069         * xgnatug.adb, ug_words: New files.
40070
40071         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
40072         gnat_rm and gnat-style manuals.
40073
40074 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
40075
40076         * gigi.h (incomplete_type_error): Remove.
40077         * utils.c (incomplete_type_error): Remove.
40078
40079 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
40080
40081         * trans.c (tree_transform): Add has_scope argument to
40082         expand_start_stmt_expr.
40083
40084 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40085
40086         * gigi.h (truthvalue_conversion): Rename.
40087         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
40088         * trans.c (tree_transform): Update.
40089         * utils2.c (truthvalue_conversion): Rename, update.
40090         (build_binary_op, build_unary_op): Update.
40091
40092 2002-04-04  Laurent Guerby  <guerby@acm.org>
40093
40094         * make.adb: Implement -margs, remove restriction about file name placement.
40095         * makeusg.adb: Documentation update.
40096         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
40097         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
40098
40099 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
40100
40101         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
40102         (builtin_function): Similarly.
40103
40104 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40105
40106         * decl.c (gnat_to_gnu_entity): Update.
40107         * gigi.h (mark_addressable): Rename.
40108         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
40109         * trans.c (tree_transform): Update.
40110         * utils.c (create_var_decl): Update.
40111         * util2.c (build_binary_op, build_unary_op,
40112         fill_vms_descriptor): Update.
40113         (mark_addressable): Rename, update.
40114
40115 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
40116
40117         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
40118         Rename.
40119         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
40120         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
40121         * trans.c (tree_transform, convert_with_check): Update.
40122         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
40123         Rename.
40124
40125 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
40126
40127         * gigi.h (finish_incomplete_decl): Rename.
40128         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
40129         * utils.c (gnat_init_decl_processing): Don't set hook.
40130         (finish_incomplete_decl): Rename.
40131
40132 2002-03-29  Andreas Schwab  <schwab@suse.de>
40133
40134         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
40135         directory.
40136
40137 2001-03-28  Robert Dewar  <dewar@gnat.com>
40138
40139         * checks.ads:
40140         (Remove_Checks): New procedure
40141
40142         * checks.adb:
40143         (Remove_Checks): New procedure
40144
40145         * exp_util.adb:
40146         Use new Duplicate_Subexpr functions
40147         (Duplicate_Subexpr_No_Checks): New procedure
40148         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40149         (Duplicate_Subexpr): Restore original form (checks duplicated)
40150         (Duplicate_Subexpr): Call Remove_Checks
40151
40152         * exp_util.ads:
40153         (Duplicate_Subexpr_No_Checks): New procedure
40154         (Duplicate_Subexpr_No_Checks_Orig): New procedure
40155         Add 2002 to copyright notice
40156
40157         * sem_util.adb: Use new Duplicate_Subexpr functions
40158
40159         * sem_eval.adb:
40160         (Eval_Indexed_Component): This is the place to call
40161         Constant_Array_Ref and to replace the value. We simply merge
40162         the code of this function in here, since it is now no longer
40163         used elsewhere. This fixes the problem of the back end not
40164         realizing we were clever enough to see that this was
40165         constant.
40166         (Expr_Val): Remove call to Constant_Array_Ref
40167         (Expr_Rep_Val): Remove call to Constant_Array_Ref
40168         Minor reformatting
40169         (Constant_Array_Ref): Deal with string literals (patch
40170         suggested by Zack Weinberg on the gcc list)
40171
40172 2001-03-28  Ed Schonberg  <schonber@gnat.com>
40173
40174         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
40175         Duplicate_Subexpr_Move_Checks.
40176
40177         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
40178         Duplicate_Subexpr_Move_Checks.
40179
40180         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
40181         value of array exists before retrieving it (it may a private
40182         protected component in a function).
40183
40184 2002-03-28   Geert Bosch  <bosch@gnat.com>
40185
40186         * prj-pp.adb : New file.
40187
40188         * prj-pp.ads : New file.
40189
40190 2002-03-28  Andreas Jaeger  <aj@suse.de>
40191
40192         * Makefile.in (stamp-sdefault): Fix path for Makefile.
40193
40194 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
40195
40196         * misc.c (gnat_expand_expr): Move prototype.
40197
40198 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40199
40200         * misc.c (insert_default_attributes): Remove.
40201
40202 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40203
40204         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
40205         (gnat_init): Don't set hook.
40206         (gnat_expand_expr): Fix prototype.
40207
40208 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
40209
40210         * misc.c (ggc_p): Remove.
40211
40212 2002-03-27  Geert Bosch  <bosch@gnat.com>
40213
40214         * prj-makr.ads, prj-makr.adb : New files.
40215
40216 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
40217
40218         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
40219         (lang_mark_tree): Make static, rename.
40220
40221 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
40222
40223         * misc.c (maybe_build_cleanup): Remove.
40224
40225 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
40226
40227         * gigi.h (yyparse): Remove.
40228
40229 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
40230
40231         From Ben Brosgol  <brosgol@gnat.com>
40232         * gnat_rm.texi: Sync with ACT version.
40233
40234 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
40235
40236         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
40237         (gnat_init): Remove old hook.
40238
40239 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
40240
40241         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
40242         (yyparse): Rename gnat_parse_file.
40243
40244 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
40245
40246         Delete all lines containing "$Revision:".
40247         * xeinfo.adb: Don't look for revision numbers.
40248         * xnmake.adb: Likewise.
40249         * xsinfo.adb: Likewise.
40250         * xsnames.adb: Likewise.
40251         * xtreeprs.adb: Likewise.
40252
40253 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40254
40255         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
40256         gnat_tree_code_name): Delete.
40257         (tree_code_type, tree_code_length, tree_code_name): Define.
40258         (gnat_init): Don't try to copy into the various tree_code
40259         arrays.
40260
40261 2002-03-11  Richard Henderson  <rth@redhat.com>
40262
40263         * Makefile.in (.NOTPARALLEL): Add fake tag.
40264
40265 2002-03-07  Geert Bosch  <bosch@gnat.com>
40266
40267         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
40268         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
40269         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
40270         switch-m.adb, switch-m.ads : New files.
40271
40272 2002-03-07  Geert Bosch  <bosch@gnat.com>
40273
40274         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
40275         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
40276         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
40277         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
40278         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
40279         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
40280         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
40281         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
40282         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
40283         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
40284         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
40285         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
40286         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
40287         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
40288         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
40289         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
40290         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
40291         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
40292         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
40293         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
40294         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
40295         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
40296         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
40297         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
40298         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
40299         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
40300         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
40301         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
40302         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
40303         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
40304         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
40305         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
40306         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
40307         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
40308         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
40309         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
40310         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
40311         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
40312         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
40313         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
40314         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
40315         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
40316         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
40317         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
40318         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
40319         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
40320         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
40321         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
40322         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
40323         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
40324         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
40325         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
40326         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
40327         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
40328         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
40329         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
40330         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
40331         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
40332         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
40333         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
40334         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
40335         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
40336         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
40337         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
40338         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
40339         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
40340         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
40341         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
40342         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
40343         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
40344         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
40345         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
40346         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
40347         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
40348         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
40349         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40350         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
40351         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
40352         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
40353         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
40354         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
40355         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
40356         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
40357         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
40358         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
40359         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
40360         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
40361         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
40362         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
40363         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
40364         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
40365         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
40366         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
40367         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
40368         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
40369         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
40370         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
40371
40372         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
40373         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
40374         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
40375         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
40376
40377         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
40378         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
40379
40380         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
40381         to mdll-fil.ad[bs] and mdll-util.ad[bs]
40382
40383         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
40384         from mdllfile.ad[bs] and mdlltool.ad[bs]
40385
40386 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40387
40388         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
40389         lieu of explicit sizeof/sizeof.
40390
40391 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
40392
40393         * misc.c (copy_lang_decl): Remove.
40394
40395 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
40396
40397         * misc.c: Delete traditional-mode-related code copied from the
40398         C front end but not used, or used only to permit the compiler
40399         to link.
40400
40401 2002-02-07  Richard Henderson  <rth@redhat.com>
40402
40403         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
40404         * adaint.h (__gnat_to_gm_time): Update prototype.
40405
40406 2002-01-30  Richard Henderson  <rth@redhat.com>
40407
40408         * trans.c (tree_transform) [N_Loop_Statement]: Use
40409         expand_exit_loop_top_cond.
40410
40411 2001-12-23  Richard Henderson  <rth@redhat.com>
40412
40413         * utils.c (end_subprog_body): Push GC context around
40414         rest_of_compilation for nested functions.
40415
40416 2001-12-23  Richard Henderson  <rth@redhat.com>
40417
40418         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
40419
40420 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
40421
40422         * gnat-style.texi (Declarations and Types): Remove ancient style
40423         rule which was mandated by code generation issues.
40424
40425         * gnat-style.texi (header): Add @dircategory, @direntry.
40426         (title page): Remove date.
40427         (general) Add @./@: where approriate, and two spaces after the
40428         full stop at the end of a sentence.  Use @samp markup when
40429         referring concrete lexical entities (keywords, attribute names
40430         etc.), and @syntax for ARM grammar elements. Use @r for English
40431         text in comments.  Use @emph for emphasis.  Change "if-statements"
40432         etc. to "if statements" (without @samp). Break long lines.  Make
40433         casing of section names consistent.
40434         (Identifiers): Use @samp markup for variable names.
40435         (Comments): Use @samp markup for comment characters. Line-end
40436         comments may follow any Ada code, not just statements.  Fix
40437         misspelling of "Integer" as "integer".
40438         (Loop statements): Do not use variable name "I", use "J".
40439         (Subprogram Declarations): Document alignment.
40440         (Subprogram Bodies, Block statements): Document empty line before
40441         "begin".
40442
40443 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
40444
40445         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
40446         function approach did not work well because of a side effect (the
40447         function call could reallocate the table which was being indexed
40448         using its result). Fixes ada/4851.
40449
40450 2001-12-19  Robert Dewar  <dewar@gnat.com>
40451
40452         * bindgen.adb: Minor reformatting
40453
40454         * cstand.adb: Minor reformatting
40455
40456         * fmap.adb: Minor reformatting
40457         Change name from Add for Add_To_File_Map (Add is much too generic)
40458         Change Path_Name_Of to Mapped_Path_Name
40459         Change File_Name_Of to Mapped_File_Name
40460         Fix copyright dates in header
40461
40462         * fmap.ads:
40463         Change name from Add for Add_To_File_Map (Add is much too generic)
40464         Change Path_Name_Of to Mapped_Path_Name
40465         Change File_Name_Of to Mapped_File_Name
40466         Fix copyright dates in header
40467
40468         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
40469         Add use clause for Fmap.
40470
40471         * make.adb: Minor reformatting
40472
40473         * osint.adb: Minor reformatting.  Change of names in Fmap.
40474         Add use clause for Fmap.
40475
40476         * prj-env.adb: Minor reformatting
40477
40478         * prj-env.ads: Minor reformatting
40479
40480         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
40481         error found (there were odd exceptions to this general rule in
40482         -gnatec/-gnatem processing)
40483
40484 2001-12-19  Olivier Hainque  <hainque@gnat.com>
40485
40486         * raise.c (__gnat_eh_personality): Exception handling personality
40487         routine for Ada.  Still in rough state, inspired from the C++ version
40488         and still containing a bunch of debugging artifacts.
40489         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
40490         inspired from the C++ library.
40491
40492         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
40493         exception handling integration.
40494
40495 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
40496
40497         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
40498         (HIE_SOURCES): Add s-secsta.ad{s,b}.
40499         (HIE_OBJS): Add s-fat*.o
40500         (RAVEN_SOURCES): Remove files that are no longer required. Add
40501         interrupt handling files.
40502         (RAVEN_MOD): Removed, no longer needed.
40503
40504 2001-12-19  Robert Dewar  <dewar@gnat.com>
40505
40506         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
40507         Add 2001 to copyright date
40508
40509         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
40510         need to force universal inlining for these cases.
40511
40512 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
40513
40514         * s-taprob.adb: Minor clean ups so that this unit can be used in
40515         Ravenscar HI.
40516
40517         * exp_ch7.adb: Allow use of secondary stack in HI mode.
40518         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
40519
40520 2001-12-19  Vincent Celier  <celier@gnat.com>
40521
40522         * prj-tree.ads (Project_Node_Record): Add comments for components
40523         Pkg_Id and Case_Insensitive.
40524
40525 2001-12-19  Pascal Obry  <obry@gnat.com>
40526
40527         * g-socket.adb: Minor reformatting. Found while reading code.
40528
40529 2001-12-19  Robert Dewar  <dewar@gnat.com>
40530
40531         * prj-tree.ads: Minor reformatting
40532
40533 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
40534
40535         * config-lang.in (diff_excludes): Remove.
40536
40537 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40538
40539         * sem_res.adb (Resolve_Selected_Component): do not generate a
40540         discriminant check if the selected component is a component of
40541         the argument of an initialization procedure.
40542
40543         * trans.c (tree_transform, case of arithmetic operators): If result
40544         type is private, the gnu_type is the base type of the full view,
40545         given that the full view itself may be a subtype.
40546
40547 2001-12-17  Robert Dewar  <dewar@gnat.com>
40548
40549         * sem_res.adb: Minor reformatting
40550
40551         * trans.c (tree_transform, case N_Real_Literal): Add missing third
40552         parameter in call to Machine (unknown horrible effects from this
40553         omission).
40554
40555         * urealp.h: Add definition of Round_Even for call to Machine
40556         Add third parameter for Machine
40557
40558 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40559
40560         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
40561         predefined units in No_Run_Time mode.
40562
40563 2001-12-17  Richard Kenner  <kenner@gnat.com>
40564
40565         * misc.c (insn-codes.h): Now include.
40566
40567 2001-12-17  Olivier Hainque  <hainque@gnat.com>
40568
40569         * a-except.adb: Preparation work for future integration of the GCC 3
40570         exception handling mechanism
40571         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
40572         to factorize previous code sequences and make them externally callable,
40573         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
40574         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
40575         Use the new notification routines.
40576
40577 2001-12-17  Emmanuel Briot  <briot@gnat.com>
40578
40579         * prj-tree.ads (First_Choice_Of): Document the when others case
40580
40581 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40582
40583         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
40584         HI-E mode, in order to support Ravenscar profile properly.
40585
40586         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
40587         mode on 32 bits targets.
40588
40589 2001-12-17  Vincent Celier  <celier@gnat.com>
40590
40591         * fmap.adb: Initial version.
40592
40593         * fmap.ads: Initial version.
40594
40595         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
40596         If search is successfully done, add to mapping.
40597
40598         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
40599
40600         * make.adb:
40601         (Gnatmake): Add new local variable Mapping_File_Name.
40602          Create mapping file when using project file(s).
40603          Delete mapping file before exiting.
40604
40605         * opt.ads (Mapping_File_Name): New variable
40606
40607         * osint.adb (Find_File): Use path name found in mapping, if any.
40608
40609         * prj-env.adb (Create_Mapping_File): New procedure
40610
40611         * prj-env.ads (Create_Mapping_File): New procedure.
40612
40613         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
40614         (Mapping_File)
40615
40616         * usage.adb: Add entry for new switch -gnatem.
40617
40618         * Makefile.in: Add dependencies for fmap.o.
40619
40620 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40621
40622         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
40623         is a package instantiation rewritten as a package body.
40624         (Install_Withed_Unit): Undo previous change, now redundant.
40625
40626 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
40627
40628         * layout.adb:
40629         (Compute_Length): Move conversion to Unsigned to callers.
40630         (Get_Max_Size): Convert Len expression to Unsigned after calls to
40631         Compute_Length and Determine_Range.
40632         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
40633         Compute_Length and Determine_Range.
40634         Above changes fix problem with length computation for supernull arrays
40635         where Max (Len, 0) wasn't getting applied due to the Unsigned
40636         conversion used by Compute_Length.
40637
40638 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40639
40640         * rtsfind.ads:
40641         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
40642          System.Secondary_Stack.
40643         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
40644          in HI-E mode.
40645         Remove unused entity RE_Exception_Data.
40646
40647         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
40648
40649         * rident.ads (No_Secondary_Stack): New restriction.
40650
40651 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
40652
40653         * gnat_rm.texi: Fix minor typos. Found while reading the section
40654         regarding "Bit_Order Clauses" that was sent to a customer.
40655         Very interesting documentation!
40656
40657 2001-12-17  Robert Dewar  <dewar@gnat.com>
40658
40659         * sem_case.adb (Choice_Image): Avoid creating improper character
40660         literal names by using the routine Set_Character_Literal_Name. This
40661         fixes bombs in certain error message cases.
40662
40663 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40664
40665         * a-reatim.adb: Minor reformatting.
40666
40667 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40668
40669         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
40670         case where the formal is an extension of another formal in the current
40671         unit or in a parent generic unit.
40672
40673 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40674
40675         * s-tposen.adb: Update comments.  Minor reformatting.
40676         Minor code clean up.
40677
40678         * s-tarest.adb: Update comments.  Minor code reorganization.
40679
40680 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
40681
40682         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
40683         when Java_VM.
40684
40685 2001-12-17  Robert Dewa  <dewar@gnat.com>
40686
40687         * exp_attr.adb: Minor reformatting
40688
40689 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40690
40691         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
40692         derivations nested within a child unit: verify that the parent
40693         type is declared in an outer scope.
40694
40695 2001-12-17  Robert Dewar  <dewar@gnat.com>
40696
40697         * sem_ch12.adb: Minor reformatting
40698
40699 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40700
40701         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
40702         warning if current unit is a predefined one, from which bodies may
40703         have been deleted.
40704
40705 2001-12-17  Robert Dewar  <dewar@gnat.com>
40706
40707         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
40708         Fix header format. Add 2001 to copyright date.
40709
40710         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
40711         which caused CE during compilation if checks were enabled.
40712
40713 2001-12-17  Vincent Celier  <celier@gnat.com>
40714
40715         * make.adb:
40716         (Switches_Of): New function
40717         (Test_If_Relative_Path): New procedure
40718         (Add_Switches): Use new function Switches_Of
40719         (Collect_Arguments_And_Compile): Use new function Switches_Of.
40720         When using a project file, test if there are any relative
40721         search path. Fail if there are any.
40722         (Gnatmake): Only add switches for the primary directory when not using
40723         a project file. When using a project file, change directory to the
40724         object directory of the main project file. When using a project file,
40725         test if there are any relative search path. Fail if there are any.
40726         When using a project file, fail if specified executable is relative
40727         path with directory information, and prepend executable, if not
40728         specified as an absolute path, with the exec directory.  Make sure
40729         that only one -o switch is transmitted to the linker.
40730
40731         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
40732
40733         * prj-nmsc.adb:
40734         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
40735         when using a non standard naming scheme.
40736         (Check_Ada_Naming_Scheme): Make sure that error messages
40737         do not raise exceptions.
40738         (Is_Illegal_Append): Return True if there is no dot in the suffix.
40739         (Language_Independent_Check): Check the exec directory.
40740
40741         * prj.adb (Project_Empty): Add new component Exec_Directory
40742
40743         * prj.ads:
40744         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
40745         (Project_Data): Add component Exec_Directory
40746
40747         * snames.adb: Updated to match snames.ads revision 1.215
40748
40749         * snames.ads: Added Exec_Dir
40750
40751 2001-12-17  Robert Dewar  <dewar@gnat.com>
40752
40753         * make.adb: Minor reformatting
40754
40755         * prj-nmsc.adb: Minor reformatting
40756
40757         * snames.adb: Updated to match snames.ads
40758
40759         * snames.ads: Alphebetize entries for project file
40760
40761 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40762
40763         * trans.c (process_freeze_entity): Do nothing if the entity is a
40764         subprogram that was already elaborated.
40765
40766 2001-12-17  Richard Kenner  <kenner@gnat.com>
40767
40768         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
40769         and Esize if object is referenced via pointer.
40770
40771 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40772
40773         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
40774         is discrete before analyzing choices.
40775
40776 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
40777
40778         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
40779         containing the name of the Ada Main Program. This string is mainly
40780         intended for the debugger.
40781         (Gen_Output_File_C): Do the equivalent change when generating a C file.
40782
40783 2001-12-17  Robert Dewar  <dewar@gnat.com>
40784
40785         * ali.adb: Set new Dummy_Entry field in dependency entry
40786
40787         * ali.ads: Add Dummy_Entry field to source dependency table
40788
40789         * bcheck.adb (Check_Consistency): Ignore dummy D lines
40790
40791         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
40792
40793         * lib-writ.ads: Document dummy D lines for missing files.
40794
40795         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
40796
40797 2001-12-17  Robert Dewar  <dewar@gnat.com>
40798
40799         * ali.adb: Type reference does not reset current file.
40800
40801         * ali.adb: Recognize and scan renaming reference
40802
40803         * ali.ads: Add spec for storing renaming references.
40804
40805         * lib-xref.ads: Add documentation for handling of renaming references
40806
40807         * lib-xref.adb: Implement output of renaming reference.
40808
40809         * checks.adb:
40810         (Determine_Range): Document local variables
40811         (Determine_Range): Make sure Hbound is initialized. It looks as though
40812          there could be a real problem here with an uninitialized reference
40813          to Hbound, but no actual example of failure has been found.
40814
40815 2001-12-17  Laurent Pautet  <pautet@gnat.com>
40816
40817         * g-socket.ads:
40818         Fix comment of Shutdown_Socket and Close_Socket. These functions
40819         should not fail silently because if they are called twice, this
40820         probably means that there is a race condition in the user program.
40821         Anyway, this behaviour is consistent with the rest of this unit.
40822         When an error occurs, an exception is raised with the error message
40823         as exception message.
40824
40825 2001-12-17  Robert Dewar  <dewar@gnat.com>
40826
40827         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
40828         that it happens before modification of Sloc values for -gnatD.
40829
40830         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
40831         so that it happens before modification of Sloc values for -gnatD.
40832
40833         * switch.adb: Minor reformatting
40834
40835 2001-12-15  Richard Henderson  <rth@redhat.com>
40836
40837         * sem_ch7.adb: Wrap comment.
40838
40839 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
40840
40841         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
40842         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
40843         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
40844         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
40845         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
40846         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
40847         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
40848         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
40849         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
40850         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
40851         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
40852         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
40853         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
40854         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
40855         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
40856         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
40857         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
40858         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
40859         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
40860         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
40861         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
40862         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
40863         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
40864         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
40865         spelling errors.
40866
40867 2001-12-14  Vincent Celier  <celier@gnat.com>
40868
40869         * osint.adb(Create_Debug_File): When an object file is specified,
40870         put the .dg file in the same directory as the object file.
40871
40872 2001-12-14  Robert Dewar  <dewar@gnat.com>
40873
40874         * osint.adb: Minor reformatting
40875
40876         * lib-xref.adb (Output_Instantiation): New procedure to generate
40877         instantiation references.
40878
40879         * lib-xref.ads: Add documentation of handling of generic references.
40880
40881         * ali.adb (Read_Instantiation_Ref): New procedure to read
40882         instantiation references
40883
40884         * ali.ads: Add spec for storing instantiation references
40885
40886         * bindusg.adb: Minor reformatting
40887
40888         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40889
40890         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40891
40892         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40893
40894         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40895
40896         * csets.ads:
40897         Fix header format
40898         Add 2001 to copyright date
40899         Add entry for Latin-5 (Cyrillic ISO-8859-5)
40900
40901 2001-12-14  Matt Gingell  <gingell@gnat.com>
40902
40903         * adaint.c: mktemp is a macro on Lynx and can not be used as an
40904         expression.
40905
40906 2001-12-14  Richard Kenner  <kenner@gnat.com>
40907
40908         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
40909         if operand is CONSTRUCTOR.
40910
40911 2001-12-14  Ed Schonberg  <schonber@gnat.com>
40912
40913         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
40914         before emiting check on right-hand side, so that exception information
40915         is correct.
40916
40917 2001-12-14  Richard Kenner  <kenner@gnat.com>
40918
40919         * utils.c (create_var_decl): Throw away initializing expression
40920         if just annotating types and non-constant.
40921
40922 2001-12-14  Vincent Celier  <celier@gnat.com>
40923
40924         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
40925         Default_Ada_...
40926
40927         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40928         Remove functions.
40929         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
40930
40931         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40932         Remove functions.
40933         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
40934
40935 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
40936
40937         * ChangeLog: Remove piece of diff output.
40938
40939 2001-12-14  Geert Bosch  <bosch@gnat.com>
40940
40941         * config-lang.in: Update copyright notice
40942
40943         * layout.adb: Remove commented out code.
40944
40945         * mdllfile.ads: Update copyright notice. Fix header format.
40946
40947         * sem_case.ads: Likewise.
40948
40949         * sem_ch3.adb: Minor reformatting.
40950
40951 2001-12-12  Geert Bosch  <bosch@gnat.com>
40952
40953         * freeze.ads: Update copyright date.
40954
40955         * g-comlin.ads: Minor reformatting.
40956
40957         * gnat-style.texi: Fix typo.
40958
40959 2001-12-12  Geert Bosch  <bosch@gnat.com>
40960
40961         *  einfo.h: Regenerate.
40962
40963 2001-12-12  Ed Schonberg  <schonber@gnat.com>
40964
40965         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
40966         on known node types, rather than untyped fields. Further cleanups.
40967
40968 2001-12-12  Robert Dewar  <dewar@gnat.com>
40969
40970         * sem_ch12.adb:
40971         (Save_Entity_Descendant): Minor comment update.
40972         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
40973          of an N_Attribute_Reference node. As per note below, this does not
40974         eliminate need for Associated_Node in attribute ref nodes.
40975         (Associated_Node): Documentation explicitly mentions attribute
40976         reference nodes, since this field is used in such nodes.
40977
40978         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
40979
40980 2001-12-12  Robert Dewar  <dewar@gnat.com>
40981
40982         * s-stalib.adb: Add more comments on with statements being needed
40983
40984         * par-ch12.adb: Minor reformatting
40985
40986         * prj-dect.ads: Fix copyright header
40987
40988         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
40989         inputs fit in 32 bits, but the result still overflows.
40990
40991         * s-fatgen.ads: Minor comment improvement
40992
40993 2001-12-12  Ed Schonberg  <schonber@gnat.com>
40994
40995         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
40996         formal derived type, look for an inherited component from the full
40997         view of the parent, if any.
40998
40999 2001-12-12  Robert Dewar  <dewar@gnat.com>
41000
41001         * checks.ads (Apply_Alignment_Check): New procedure.
41002
41003         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41004         ensure that the alignment of objects with address clauses is
41005         appropriate, and raise PE if not.
41006
41007         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41008         Exp_Pakd.Known_Aligned_Enough
41009
41010         * mdllfile.ads: Minor reformatting
41011
41012         * mlib-fil.ads: Minor reformatting
41013
41014 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41015
41016         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41017         fix to any component reference if enclosing record has non-standard
41018         representation.
41019
41020 2001-12-12  Vincent Celier  <celier@gnat.com>
41021
41022         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41023         Iteration
41024
41025 2001-12-12  Ed Schonberg  <schonber@gnat.com>
41026
41027         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41028         sem_attr.
41029
41030 2001-12-12  Robert Dewar  <dewar@gnat.com>
41031
41032         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41033
41034 2001-12-12  Emmanuel Briot  <briot@gnat.com>
41035
41036         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41037         and it adds dependencies to system.io.
41038
41039 2001-12-12  Pascal Obry  <obry@gnat.com>
41040
41041         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41042         variable name.
41043
41044 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41045
41046         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41047         that is the parent of other generics, the instance body replaces the
41048         instance node.  Retrieve the instance of the spec, which is the one
41049         that is visible in clients and within the body.
41050
41051 2001-12-11  Vincent Celier  <celier@gnat.com>
41052
41053         * gnatmain.adb: Initial version.
41054
41055         * gnatmain.ads: Initial version.
41056
41057         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
41058
41059         * snames.adb: Updated to match snames.ads.
41060
41061         * snames.ads: Added Gnatstub.
41062
41063 2001-12-11  Vincent Celier  <celier@gnat.com>
41064
41065         * prj-attr.adb (Initialization_Data): Change name from
41066         Initialisation_Data.
41067
41068 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41069
41070         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
41071         + and * applied to backslashed expressions like \r.
41072
41073 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
41074
41075         * g-os_lib.ads: String_List type added, Argument_List type is now
41076         subtype of String_List.
41077
41078 2001-12-11  Robert Dewar  <dewar@gnat.com>
41079
41080         * g-os_lib.ads: Change copyright to FSF
41081         Add comments for String_List type
41082
41083 2001-12-11  Vincent Celier  <celier@gnat.com>
41084
41085         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
41086         string to the buffer).
41087
41088 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41089
41090         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
41091         sem_attr.
41092
41093         * sem_attr.adb: Simplify previous fix for Address.
41094         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
41095         to avoid anomalies where the bound of the type appears to raise
41096         constraint error.
41097
41098 2001-12-11  Robert Dewar  <dewar@gnat.com>
41099
41100         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
41101         handled.
41102
41103 2001-12-11  Ed Schonber   <schonber@gnat.com>
41104
41105         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
41106         renamed unit before checking for recursive instantiations.
41107
41108 2001-12-11  Emmanuel Briot  <briot@gnat.com>
41109
41110         * prj.ads: Add comments for some of the fields.
41111
41112 2001-12-11  Robert Dewar  <dewar@gnat.com>
41113
41114         * lib-xref.adb (Output_Refs): Don't output type references outside
41115         the main unit if they are not otherwise referenced.
41116
41117 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41118
41119         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
41120         code and diagnose additional illegal uses
41121
41122         * sem_util.adb (Is_Object_Reference): An indexed component is an
41123         object only if the prefix is.
41124
41125 2001-12-11  Vincent Celier  <celier@gnat.com>
41126
41127         * g-diopit.adb: Initial version.
41128
41129         * g-diopit.ads: Initial version.
41130
41131         * g-dirope.adb:
41132         (Expand_Path): Avoid use of Unbounded_String
41133         (Find, Wildcard_Iterator): Moved to child package Iteration
41134
41135         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
41136
41137 2001-12-11  Robert Dewar  <dewar@gnat.com>
41138
41139         * sem_attr.adb: Minor reformatting
41140
41141 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41142
41143         * sem_ch3.adb: Clarify some ???.
41144
41145 2001-12-11  Robert Dewar  <dewar@gnat.com>
41146
41147         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
41148         Exp_Pakd.Known_Aligned_Enough
41149
41150         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
41151         version is moved to Exp_Ch13.
41152
41153 2001-12-11  Robert Dewar  <dewar@gnat.com>
41154
41155         * einfo.ads: Minor reformatting
41156
41157         * exp_ch5.adb: Add comment for previous.change
41158
41159         * ali.adb: New interface for extended typeref stuff.
41160
41161         * ali.ads: New interface for typeref stuff.
41162
41163         * checks.adb (Apply_Alignment_Check): New procedure.
41164
41165         * debug.adb: Add -gnatdM for modified ALI output
41166
41167         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
41168
41169         * lib-xref.adb: Extend generation of <..> notation to cover
41170         subtype/object types. Note that this is a complete rewrite,
41171         getting rid of the very nasty quadratic algorithm previously
41172         used for derived type output.
41173
41174         * lib-xref.ads: Extend description of <..> notation to cover
41175         subtype/object types. Uses {..} for these other cases.
41176         Also use (..) for pointer types.
41177
41178         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
41179
41180         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
41181         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
41182
41183 2001-12-11  Vincent Celier  <celier@gnat.com>
41184
41185         * gnatcmd.adb:
41186         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
41187         Changed /BIND_ONLY to /ACTIONS=BIND
41188         Changed /LINK_ONLY to /ACTIONS=LINK
41189
41190 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41191
41192         * sem_ch8.adb (Find_Selected_Component): improved search for a
41193         candidate package in case of error.
41194
41195         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
41196         chain back on scope stack before reinstalling use clauses.
41197
41198         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
41199         is enabled, do not kill the code for the condition, to preserve
41200         warning.
41201
41202 2001-12-11  Robert Dewar  <dewar@gnat.com>
41203
41204         * checks.adb (Insert_Valid_Check): Apply validity check to expression
41205         of conversion, not to result of conversion.
41206
41207 2001-12-11  Ed Schonberg  <schonber@gnat.com>
41208
41209         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
41210         before freezing parent. If the declarations are mutually recursive,
41211         an access to the current record type may be frozen before the
41212         derivation is complete.
41213
41214 2001-12-05  Vincent Celier  <celier@gnat.com>
41215
41216         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
41217         -c /COMPILE_ONLY, -l /LINK_ONLY
41218
41219         * opt.ads:
41220         (Bind_Only): New Flag
41221         (Link_Only): New flag
41222
41223         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
41224         and -l (Link_Only)
41225
41226         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
41227
41228         * make.adb:
41229         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
41230         (Gnatmake): Set the step flags. Only perform a step if the
41231         corresponding step flag is True.
41232         (Scan_Make_Arg): Reset the bind and link step flags when -u
41233         or -gnatc has been specified.
41234
41235 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41236
41237         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
41238         get bounds from right operand.
41239
41240         * sem_eval.adb: Minor reformatting
41241
41242         * exp_util.adb (Make_Literal_Range): use bound of literal rather
41243         than Index'First, its lower bound may be different from 1.
41244
41245         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
41246         and C48009J
41247
41248 2001-12-05  Vincent Celier  <celier@gnat.com>
41249
41250         * prj-nmsc.adb Minor reformatting
41251
41252         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
41253         set and libraries are not supported.
41254
41255 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41256
41257         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
41258         private view explicitly, so the back-end can treat as a global
41259         when appropriate.
41260
41261 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41262
41263         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
41264          unit, always replace instance node with new body, for ASIS use.
41265
41266 2001-12-05  Vincent Celier  <celier@gnat.com>
41267
41268         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
41269         libraries are not supported and both attributes Library_Name and
41270         Library_Dir are specified.
41271
41272         * prj-proc.adb (Expression): Set location of Result to location of
41273         first term.
41274
41275         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
41276         (prj-nmsc is now importing MLib.Tgt)
41277
41278         * prj-proc.adb: Put the change indicated above that was forgotten.
41279
41280 2001-12-05  Robert Dewar  <dewar@gnat.com>
41281
41282         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
41283
41284 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41285
41286         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
41287         constraint, introduce explicit subtype declaration and derive from it.
41288
41289         * sem_ch3.adb: Minor reformatting
41290
41291 2001-12-05  Robert Dewar  <dewar@gnat.com>
41292
41293         * checks.adb (Determine_Range): Increase cache size for checks.
41294         Minor reformatting
41295
41296         * exp_ch6.adb: Minor reformatting
41297         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
41298         a parameter whose root type is System.Address, since treating such
41299         subprograms as pure in the code generator is almost surely a mistake
41300         that will lead to unexpected results.
41301
41302         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
41303         change handling of conversions.
41304
41305         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
41306
41307 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41308
41309         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
41310         aggregate with static wrong size, attach generated Raise node to
41311         declaration.
41312
41313 2001-12-05  Robert Dewar  <dewar@gnat.com>
41314
41315         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
41316         Fixes compilation abandoned bomb in B24009B.
41317
41318 2001-12-05  Ed Schonberg  <schonber@gnat.com>
41319
41320         * sem_ch12.adb:
41321         Document use of Associated_Node on Selected_Components.
41322         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
41323         to clarify use of untyped descendant fields.
41324
41325 2001-12-05  Robert Dewar  <dewar@gnat.com>
41326
41327         * prj-dect.ads: Add ??? comment
41328         Add 2001 to copyright notice (was not done in after all)
41329
41330         * prj-part.adb: Minor reformatting. Reword one awkward error message.
41331
41332         * prj.ads: Minor reformatting throughout, and add some ??? comments
41333
41334         * snames.ads: Minor reformatting
41335
41336 2001-12-05  Geert Bosch  <bosch@gnat.com>
41337
41338         * snames.adb: Autoupdate
41339
41340 2001-12-05  Vincent Celier  <celier@gnat.com>
41341
41342         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
41343
41344         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
41345
41346         * prj-env.adb: Minor comment changes (modifying -> extends).
41347
41348         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
41349
41350         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
41351         Tok_Extends.
41352
41353         * prj.adb (Initialize): Change Modifying to Extends.
41354
41355         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
41356
41357         * prj.ads: Minor comment change (Modifying -> extending).
41358
41359         * snames.ads: Change modifying to extends.
41360
41361 2001-12-05  Robert Dewar  <dewar@gnat.com>
41362
41363         * sem_warn.adb: Remove stuff for conditionals, we are not going to
41364         do this after all.
41365
41366         * sem_warn.ads: Remove stuff for conditionals, we are not going to
41367         do this after all.  Add 2001 to copyright notice
41368
41369 2001-12-04  Geert Bosch  <bosch@gnat.com>
41370
41371         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
41372
41373 2001-12-04  Robert Dewar  <dewar@gnat.com>
41374
41375         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
41376         location if we already have errors. Stops some cases of cascaded
41377         errors.
41378
41379         * errout.adb: Improve comment.
41380
41381 2001-12-04  Robert Dewar  <dewar@gnat.com>
41382
41383         * sem_ch12.adb:
41384         (Analyze_Formal_Type_Definition): Defend against Error.
41385         (Analyze_Formal_Subprogram): Defend against Error.
41386
41387         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
41388         remove following semicolon if present. Removes cascaded error.
41389
41390 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
41391
41392         * bindgen.adb:
41393         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
41394          exceptions equals 0.
41395         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
41396         Fixes PIWG E tests (which have to be run with -gnatL).
41397
41398 2001-12-04  Robert Dewar  <dewar@gnat.com>
41399
41400         * einfo.ads: Minor reformatting
41401
41402 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41403
41404         * einfo.ads: Block_Node points to the identifier of the block, not to
41405         the block node itself, to preserve the link when the block is
41406         rewritten, e.g. within an if-statement with a static condition.
41407
41408         * inline.adb (Cleanup_Scopes): recover block statement from block
41409         entity using new meaning of Block_Node.
41410
41411         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
41412         identifier of block node, rather than to node itself.
41413
41414 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
41415
41416         * layout.adb:
41417         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
41418         (Discrimify): Go back to setting the Etypes of the selected component
41419         because the Vname component does not exist at this point and will
41420         fail name resolution. Also set Analyzed.
41421         Remove with and use of Sem_Res.
41422
41423 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
41424
41425         * Makefile.in: (HIE_SOURCES): add s-fat*.
41426
41427 2001-12-04  Robert Dewar  <dewar@gnat.com>
41428
41429         * sem_attr.adb:
41430         (Compile_Time_Known_Attribute): New procedure.
41431         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
41432          proper range check.
41433
41434 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41435
41436         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
41437         processing discriminants to diagnose illegal default values.
41438
41439 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41440
41441         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
41442         access discriminant within a type extension that constrains its
41443         parent discriminants.
41444
41445 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41446
41447         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
41448         is malformed, use instance of Any_Id to allow analysis to proceed.
41449
41450         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
41451         type definition is illegal.
41452         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
41453         misplaced.
41454
41455 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41456
41457         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
41458         constants.
41459
41460 2001-12-04  Robert Dewar  <dewar@gnat.com>
41461
41462         * errout.adb: Minor reformatting
41463
41464 2001-12-04  Robert Dewar  <dewar@gnat.com>
41465
41466         * exp_util.adb: Minor reformatting from last change
41467
41468         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
41469         which is a rewriting of an expression, traverse the original
41470         expression to remove warnings that may have been posted on it.
41471
41472 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41473
41474         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
41475         record that has other packed components.
41476
41477 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
41478
41479         * adaint.c: Minor cleanups.
41480
41481 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
41482
41483         * adaint.c: Do not use utime.h on vxworks.
41484
41485 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
41486
41487         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
41488         more confusion than it solves.
41489
41490 2001-12-04  Geert bosch  <bosch@gnat.com>
41491
41492         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
41493
41494 2001-12-04  Geert Bosch  <bosch@gnat.com>
41495
41496         * Makefile.in (update-sources): New target.
41497         For use by gcc_release script.
41498
41499 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41500
41501         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
41502         a configuration pragma, it is now legal wherever a pragma can appear.
41503
41504 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
41505
41506         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
41507         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
41508         is now @CROSS@ -DIN_GCC; update comment.
41509
41510 2001-12-04  Robert Dewar  <dewar@gnat.com>
41511
41512         * einfo.adb (Has_Pragma_Pure_Function): New flag.
41513         Fix problem that stopped ceinfo from working
41514
41515         * einfo.ads (Has_Pragma_Pure_Function): New flag.
41516
41517         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
41518
41519 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
41520
41521         * gnatchop.adb:
41522         (File_Time_Stamp): New procedure.
41523         (Preserve_Mode): New boolean.
41524         (Write_Unit): Pass time stamp.
41525         Implement -p switch (preserve time stamps).
41526
41527         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
41528
41529         * gnatchop.adb: Do usage info for -p switch
41530
41531         * adaint.h (__gnat_set_file_time_name): New function
41532
41533         * adaint.c (__gnat_set_file_time_name): Implement
41534
41535         * adaint.h: Fix typo
41536
41537 2001-12-03  Robert Dewar  <dewar@gnat.com>
41538
41539         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
41540         have Associated_Node.
41541
41542 2001-12-03  Robert Dewar  <dewar@gnat.com>
41543
41544         * prj-proc.adb: Minor reformatting
41545
41546         * make.adb: Minor reformatting
41547
41548 2001-12-03  Geert Bosch  <bosch@gnat.com>
41549
41550         * make.adb: Minor reformatting.
41551
41552 2001-12-03 Robert Dewar  <dewar@gnat.com>
41553
41554         * sem_ch12.adb: Minor reformatting
41555
41556 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41557
41558         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
41559         push Standard on the stack before analyzing the instance body,
41560         in order to have a clean visibility environment.
41561
41562         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
41563
41564 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41565
41566         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
41567         instantiation of a body that contains an inlined body.
41568
41569 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41570
41571         * sem_ch12.adb:
41572         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
41573         to prevent freezing within formal packages.
41574         (Freeze_Subprogram_Body): If body comes from another instance that
41575         appeared before its own body, place freeze node at end of current
41576         declarative part, to prevent a back-end crash.
41577         (Inline_Instance_Body): Handle properly a package instance within
41578         a subprogram instance that is a child unit.
41579
41580 2001-12-01  Graham Stott  <grahams@redhat.com>
41581
41582         * Makefile.in (misc.o): Add missing $(srcdir) prefix
41583         and add optabs.h dependency.
41584
41585         * misc.c: Include optabs.h
41586         (gnat_tree_code_type): Make static and const.
41587         (gnat_tree_code_length): Likewise.
41588         (gnat_tree_code_name): Likewise.
41589         (update_setjmp_buf): Obtain operands mode from insn_data.
41590
41591 2001-11-29  Richard Henderson  <rth@redhat.com>
41592
41593         * init.c: Remove obsolete dwarf2 frame.h section.
41594
41595 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
41596
41597         * Make-lang.in (ada.generated-manpages): New dummy target.
41598
41599 2001-11-29  Ed Schonberg  <schonber@gnat.com>
41600
41601         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
41602         into Command, an array conversion is illegal here. Uncovered by
41603         ACATS B460005.
41604
41605 2001-11-28  Geert Bosch  <bosch@gnat.com>
41606
41607         * init.c: Minor whitespace changes.
41608
41609 2001-11-28  Doug Rupp  <rupp@gnat.com>
41610
41611         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
41612         signal stack.
41613
41614 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
41615
41616         * misc.c (gnat_expand_constant): Move declaration above
41617         definition of lang_hooks.
41618         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
41619         (gnat_init): lang_expand_constant no longer exists.
41620
41621         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
41622         always have vprintf.
41623         (gnat_init): Always call set_internal_error_function.
41624
41625 2001-11-27  Andreas Jaeger  <aj@suse.de>
41626
41627         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
41628
41629 2001-11-27  Laurent Guerby  <guerby@acm.org>
41630
41631         * Makefile.in: Regenerate Ada dependencies.
41632
41633 2001-11-26  Richard Henderson  <rth@redhat.com>
41634
41635         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
41636         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
41637         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
41638
41639 2001-11-25  Laurent Guerby  <guerby@acm.org>
41640
41641         * sysdep.c (rts_get_*): Fix style.
41642
41643 2001-11-19  Laurent Guerby  <guerby@acm.org>
41644
41645         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
41646         since it is of no apparent use and cause warnings.
41647
41648 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
41649
41650         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
41651         static too.
41652         (gnat_init): Don't return NULL.
41653         (finish_parse): Remove.
41654
41655 2001-11-17  Laurent Guerby  <guerby@acm.org>
41656
41657         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
41658         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
41659         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
41660         * lang-spec.h: Add missing struct field to silence warnings.
41661         * sysdep.c (rts_get_*): Provide K&R prototype.
41662         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
41663         * traceback.c (Unlock_Task, Lock_Task): Likewise.
41664         * tracebak.c (__gnat_backtrace): Remove unused variable.
41665         * utils.c (end_subprog_body): Move to K&R style.
41666
41667 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41668
41669         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
41670
41671 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
41672
41673         * misc.c (gnat_init): Change prototype.  Include the
41674         functionality of the old init_parse and init_decl_processing.
41675         (gnat_init_decl_processing): New prototype.
41676         (init_parse): Remove.
41677         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
41678
41679 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
41680
41681         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
41682         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
41683         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
41684         set_yydebug): Remove.
41685
41686 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
41687
41688         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
41689         (struct lang_hooks): Constify.
41690         (language_string, lang_identify): Remove.
41691         * utils.c (init_decl_processing): Update.
41692
41693 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
41694
41695         * misc.c: Include langhooks-def.h.
41696         * Makefile.in: Update.
41697
41698 2001-10-30  Robert Dewar  <dewar@gnat.com>
41699
41700         * style.adb:
41701         (Check_Identifier): Rewrite circuit to be compatible with use of letters
41702         in the upper half of ASCII.
41703         (Check_Identifier): Minor reformatting
41704
41705 2001-10-30  Geert Bosch  <bosch@gnat.com>
41706
41707         * (Associated_Node, Set_Associated_Node): Do not check for
41708         Freeze_Entity.
41709
41710 2001-10-30  Robert Dewar  <dewar@gnat.com>
41711
41712         * a-reatim.ads: Minor reformatting
41713
41714 2001-10-30  Robert Dewar  <dewar@gnat.com>
41715
41716         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
41717         undocumented declarations.
41718
41719 2001-10-30  Pascal Obry  <obry@gnat.com>
41720
41721         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
41722         to the binder and linker.
41723         Minor style fix.
41724
41725         * mdll.ads: Fix layout.  Update copyright notice.
41726
41727         * mdll.adb: Fix layout.  Update copyright notice.
41728
41729 2001-10-30  Robert Dewar  <dewar@gnat.com>
41730
41731         * usage.adb: Minor fix to output for -gnaty.
41732
41733 2001-10-30  Ed Schonberg  <schonber@gnat.com>
41734
41735         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
41736         to accommodate all its possible values.
41737
41738         * a-reatim.adb (Split): Special-case handling of Time_Span_First
41739         and of small absolute values of T.
41740
41741 2001-10-30  Richard Kenner  <kenner@gnat.com>
41742
41743         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
41744         set_mem_attributes since not needed and wrong if RESULT if a REG;
41745         fixes ACATS failures.
41746
41747 2001-10-30  Geert Bosch  <bosch@gnat.com>
41748
41749         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
41750         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
41751
41752 2001-10-30  Robert Dewar  <dewar@gnat.com>
41753
41754         * bindusg.adb: Undocument -f switch.
41755
41756         * gnatcmd.adb: Remove /FULL_ELABORATION.
41757
41758         * opt.ads (Force_RM_Elaboration_Order): Document that this is
41759         obsolescent.
41760
41761         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
41762
41763         * gnatbind.adb: Minor update of warning msg.
41764
41765 2001-10-30  Vincent Celier  <celier@gnat.com>
41766
41767         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
41768         for project file switches (-P (/PROJECT_FILE=),
41769          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
41770         or MEDIUM or HIGH)
41771
41772 2001-10-30  Geert Bosch  <bosch@gnat.com>
41773
41774         * decl.c: Minor whitespace fixes.
41775
41776 2001-10-30  Richard Kenner  <kenner@gnat.com>
41777
41778         * utils2.c (build_allocator): Test for SIZE overflow in array case too
41779
41780 2001-10-30  Geert Bosch  <bosch@gnat.com>
41781
41782         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
41783         Found due to GCC 3.0 warning of using uninitialized value.
41784
41785         * layout.adb:
41786         (Get_Max_Size): Use variant record for tracking value/expression.
41787          Makes logic clearer and prevents warnings for uninitialized variables.
41788         (Layout_Array_Type): Use variant record for tracking value/expression.
41789          Makes logic clearer and prevents warnings for uninitialized variables.
41790
41791 2001-10-30  Robert Dewar  <dewar@gnat.com>
41792
41793         * lib.adb: Minor reformatting
41794
41795         * s-taprop.ads: Minor reformatting
41796
41797 2001-10-29  Laurent Guerby  <guerby@acm.org>
41798
41799         * init.c:
41800         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
41801         const.
41802         (_gnat_error_handler): Make MSG const.
41803
41804 2001-10-29  Richard Kenner  <kenner@gnat.com>
41805
41806         * sysdep.c: Fix localtime_r problem on LynxOS.
41807         Also remove #elif to avoid warnings.
41808
41809         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
41810         used by this.
41811
41812         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
41813
41814 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
41815
41816         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
41817         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
41818         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
41819         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
41820         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
41821         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
41822         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
41823         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
41824         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
41825         types.ads, urealp.adb: Fix spelling errors.
41826
41827 2001-10-27  Laurent Guerby  <guerby@acm.org>
41828
41829         * trans.c (gigi): Fix non determinism leading to bootstrap
41830         comparison failures for debugging information.
41831
41832 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
41833
41834         * gnat_rm.texi: Use @./@: where appropriate.
41835
41836 2001-10-26  Robert Dewar  <dewar@gnat.com>
41837
41838         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
41839
41840 2001-10-26  Richard Kenner  <kenner@gnat.com>
41841
41842         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
41843
41844 2001-10-26  Richard Kenner  <kenner@gnat.com>
41845
41846         * decl.c (validate_size): Modify message for bad size to avoid
41847         implication that compiler is modifying the size.
41848
41849 2001-10-26  Robert Dewar  <dewar@gnat.com>
41850
41851         * prj-util.adb: Minor reformatting. Fix bad header format.
41852
41853 2001-10-26  Robert Dewar  <dewar@gnat.com>
41854
41855         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
41856
41857         * sinfo.ads: Clarify use of Associated_Node (documentation only).
41858
41859         * sem_ch12.adb: Change Node4 to Associated_Node. Change
41860         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
41861         much more narrowly in places where needed. These are cleanups.
41862
41863 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
41864
41865         * 5zosinte.ads (null_pthread): new constant.
41866
41867         * 5ztaprop.adb:
41868         (Initialize_TCB): Initialize thread ID to null, to be able to verify
41869          later that this field has been set.
41870         (Finalize_TCB): ditto.
41871         (Suspend_Task): Verify that the thread ID is not null before using it.
41872         (Resume_Task): ditto.
41873
41874         * s-tasdeb.adb:
41875         (Resume_All_Tasks): Lock the tasks list before using it.
41876         (Suspend_All_Tasks): ditto.
41877
41878 2001-10-26  Richard Kenner  <kenner@gnat.com>
41879
41880         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
41881         Make constant variant of designated type for Is_Access_Constant.
41882         Call update_pointer_to with main variant.
41883
41884         * trans.c (process_freeze_entity, process_type):
41885         Call update_pointer_to on main variant.
41886
41887         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
41888         If main variant, update all other variants.
41889
41890         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
41891         TREE_STATIC.
41892
41893 2001-10-26  Robert Dewar  <dewar@gnat.com>
41894
41895         * prj-util.adb: Minor reformatting
41896
41897 2001-10-26  Robert Dewar  <dewar@gnat.com>
41898
41899         * prj-util.adb: Minor reformatting
41900
41901 2001-10-26  Robert Dewar  <dewar@gnat.com>
41902
41903         * prj-attr.adb: Minor reformatting throughout
41904
41905 2001-10-26  Robert Dewar  <dewar@gnat.com>
41906
41907         * prj-attr.ads: Minor reformatting
41908         Add ??? comment (this whole spec has almost no comments)
41909
41910 2001-10-26  Vincent Celier  <celier@gnat.com>
41911
41912         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
41913         ("//") that precede the drive letter on Interix.
41914
41915 2001-10-26  Geert Bosch  <bosch@gnat.com>
41916
41917         * gnat_rm.texi: Add GNAT Reference Manual.
41918
41919 2001-10-25  Robert Dewar  <dewar@gnat.com>
41920
41921         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
41922         is Error. Similar change for other renaming cases.
41923
41924 2001-10-25  Robert Dewar  <dewar@gnat.com>
41925
41926         * s-atacco.ads: Add pragma Inline_Always for functions.
41927         Fix header format. Add copyright 2001
41928
41929 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41930
41931         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
41932         return Error rather than Empty so that analysis can proceed.
41933
41934 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41935
41936         * sem_util.adb (Enter_Name): better handling of cascaded error
41937         messages when a unit appears in its own context.
41938
41939 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41940
41941         * sem_util.adb (Defining_Entity): in case of error, attach created
41942         entity to specification, so that semantic analysis can proceed.
41943
41944 2001-10-25  Robert Dewar  <dewar@gnat.com>
41945
41946         * sem_util.adb
41947         (Defining_Entity): Deal with Error.
41948         (Process_End_Label): Deal with bad end label for.
41949
41950 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41951
41952         * sem_elab.adb (Check_A_Call): refine message when call is in an
41953         instance but callee is not declared in the generic unit.
41954
41955 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41956
41957         * sem_elab.adb (Check_A_Call): check for renaming before finding the
41958         enclosing unit, which may already be different from the calling unit.
41959
41960 2001-10-25  Geert Bosch  <bosch@gnat.com>
41961
41962         * 4gintnam.ads: fix header format.
41963
41964 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41965
41966         * sem_res.adb (Resolve_Call): if the call is actually an indexing
41967         operation on the result of a parameterless call, perform elaboration
41968         check after the node has been properly rewritten.
41969
41970         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
41971         inlined within the generic tree, the defining identifier is not a
41972         compilation_unit.
41973
41974 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41975
41976         * sem_res.adb (Resolve): special-case resolution of Null in an
41977          instance or an inlined body to avoid view conflicts.
41978
41979         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
41980          compatibility by retrieving the access type of the generic copy.
41981
41982 2001-10-25  Robert Dewar  <dewar@gnat.com>
41983
41984         * sem_ch3.adb:
41985         (Analyze_Number_Declaration): Handle error expression.
41986         (Signed_Integer_Type_Declaration): Handle error bound.
41987         (Analyze_Subtype_Indication): Handle error range.
41988
41989         * sem_util.adb (Get_Index_Bounds): Check for Error.
41990
41991 2001-10-25  Robert Dewar  <dewar@gnat.com>
41992
41993         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
41994         in no run time mode.
41995
41996 2001-10-25  Pascal Obry  <obry@gnat.com>
41997
41998         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
41999         mode case for ALLOC case.
42000
42001         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42002         all platforms. Improvement of last change.
42003
42004 2001-10-25  Robert Dewar  <dewar@gnat.com>
42005
42006         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42007
42008 2001-10-25  Geert Bosch  <bosch@gnat.com>
42009
42010         * osint.adb (Is_Relative): Remove duplicate.
42011
42012 2001-10-25  Pascal Obry  <obry@gnat.com>
42013
42014         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42015         pathnames in UNIX and DOS style with drive letter.
42016         (Is_Relative): new routine.
42017
42018         * osint.adb: Minor reformatting
42019
42020         * osint.adb (Is_Relative): implementation using
42021         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42022
42023 2001-10-25  Pascal Obry  <obry@gnat.com>
42024
42025         * g-dirope.adb (Basename): correctly compute offset between the
42026         original Path and the translated one.
42027
42028         * g-dirope.adb: (Base_Name): add some comments.
42029
42030 2001-10-25  Robert Dewar  <dewar@gnat.com>
42031
42032         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42033         in HIE mode, avoids compilation abandoned message
42034
42035         * exp_imgv.adb: Correct typo in previous change
42036
42037         * exp_imgv.adb: Correct typo in previous change (not my day!)
42038
42039 2001-10-25  Robert Dewar  <dewar@gnat.com>
42040
42041         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42042
42043 2001-10-25  Pascal Obry  <obry@gnat.com>
42044
42045         * g-awk.ads: Move all pragma inlines next to the routine
42046          declarations. This is more uniform with other GNAT spec.
42047
42048 2001-10-22  Geert Bosch  <bosch@gnat.com>
42049
42050         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42051
42052 2001-10-19  Geert Bosch  <bosch@gnat.com>
42053
42054         * Makefile.in (tools, gnattools): Remove gnatmem.
42055
42056 2001-10-17  Richard Henderson  <rth@redhat.com>
42057
42058         * Makefile.in (misc.o): Depend on langhooks.h.
42059         * misc.c: Include it.
42060         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
42061         (LANG_HOOKS_DECODE_OPTION): New.
42062         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
42063
42064 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
42065
42066         * trans.c (tree_transform): Adjust to recent change in
42067         expand_asm_operands to implement named asm operands.
42068
42069 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42070
42071         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
42072         renaming of discriminant for mutable record type.
42073
42074 2001-10-11  Robert Dewar  <dewar@gnat.com>
42075
42076         * validsw.adb: Properly save -gnatVn status.
42077
42078 2001-10-11  Robert Dewar  <dewar@gnat.com>
42079
42080         * usage.adb: Add lines for V switch.
42081
42082         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
42083         (/VALIDITY_CHECKING).
42084
42085 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42086
42087         * sem_type.adb (Add_One_Interp): an operator for a type declared in
42088         an extension of System is known to be visible.
42089
42090 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42091
42092         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
42093         properly. Fixes regression on ACATS C34005G.
42094
42095 2001-10-11  Robert Dewar  <dewar@gnat.com>
42096
42097         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
42098         loop in generic instance, since this is likely not very useful.
42099
42100 2001-10-11  Robert Dewar  <dewar@gnat.com>
42101
42102         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
42103         the error message for high integrity mode.
42104
42105         * rtsfind.adb (RTE): Give message if we try to find an entity that
42106         is not available in high integrity mode.
42107
42108         * rtsfind.ads:
42109         (OK_To_Use_In_HIE_Mode): New array.
42110         (RTE): May return Empty in high integrity mode.
42111
42112         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
42113         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
42114
42115         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
42116         unit if not inlined always and in no runtime mode. Fixes problem
42117         caused by new Rtsfind changes.
42118
42119         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
42120         body is deleted.
42121
42122         * rtsfind.adb (RTE): Make sure we do not try to load unit after
42123         giving message for entity not available in high integrity mode.
42124
42125 2001-10-11  Pascal Obry  <obry@gnat.com>
42126
42127         * impunit.adb: Add GNAT.CRC32.
42128
42129 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42130
42131         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
42132         properly the case where one universal operand in a non-static
42133         exponentiation of a real literal.
42134
42135 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42136
42137         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
42138         clause, return the gobal finalization list, for lack of anthing else.
42139
42140 2001-10-11  Ed Schonberg  <schonber@gnat.com>
42141
42142         * exp_ch7.adb (Make_Transient_Block): if statement is within
42143         exception handler, always use new transient scope to place Clean
42144         procedure.
42145
42146 2001-10-11  Pascal Obry  <obry@gnat.com>
42147
42148         * Makefile.in:
42149         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42150         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42151         (GNATLS_RTL_OBJS): add g-crc32.o
42152         (GNATMAKE_RTL_OBJS): add g-crc32.o
42153
42154         * ali-util.adb:
42155         (CRC_Match): new function.
42156         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
42157         instead of the previous simple checksum algorithm.
42158         (Time_Stamp_Mismatch): use CRC_Match for comparison.
42159         (Set_Source_Table): idem.
42160
42161         * ali-util.ads:
42162         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
42163         instead of simple checksum.
42164         (CRC_Match): new function.
42165         (CRC_Error): new constant.
42166
42167         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
42168         a CRC now and not a simple checksum. A CRC uses lower-case hex
42169         letters, fixes ambiguity in parsing.
42170
42171         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
42172         is what this variable will store.
42173
42174         * bcheck.adb: Change reference to chechsum in comments by CRC.
42175         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
42176         rename All_Checksum_Match to All_CRC_Match. Change due to API
42177         renaming since now GNAT does not use a simple checksum but a
42178         CRC using GNAT.CRC32.
42179
42180         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
42181         now and not anymore a simple checksum.
42182
42183         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
42184         places.
42185
42186         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
42187
42188         * scans.adb:
42189         (Restore_Scan_State): rename Checksum to CRC.
42190         (Save_Scan_State): idem.
42191
42192         * scans.ads:
42193         With GNAT.CRC32.
42194         (Checksum): rename to CRC.
42195         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
42196
42197         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
42198         GNAT.CRC32).  Update copyright notice.
42199
42200         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
42201         GNAT.CRC32).  Update copyright notice.
42202
42203         * scn.adb:
42204         (Accumulate_Checksum): removed.
42205         (Update): new procedure. Add a wide-character into the CRC.
42206
42207         * sinput-l.adb:
42208         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
42209         (Load_File): fix initialization of S (change Source_Checksum to
42210         Source_CRC)
42211
42212         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
42213         Source_CRC in S initialization.
42214
42215         * sinput.adb (Source_Checksum): renamed to Source_CRC.
42216
42217         * sinput.ads (Source_Checksum): renamed to Source_CRC.
42218         Update comments for the CRC.
42219
42220         * types.adb (Hex): Use lowercase for the letter part.
42221
42222         * types.ads (Get_Hex_String): Returns the hexadecimal representation
42223         for a word. This is currently used only for CRC. In previous version,
42224         the checksum was using a representation with all letter being
42225         upper-case. With the new implementation (using CRC) we do not remove
42226         the 32th bit of the CRC, so we can have an upper-case starting letter
42227         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
42228         It is ambigous since the CRC was optional and could be followed by
42229         options like EB, EE. So now this routines uses lower-case letter for
42230         the hexadecimal representation. Strange enough only lower case letters
42231         where checked in Scan_ALI (even if this was not a possible case).
42232
42233         * gnatvsn.ads (Library_Version): changed to 3.15a.
42234
42235         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
42236         for the compiler.
42237
42238         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
42239         for the compiler.
42240
42241         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
42242         Add 2001 to copyright notice
42243         (Accumulate_Checksum): Modify to use System.CRC32.
42244
42245         * ali-util.ads: Redo changes of previous revision to continue to use
42246         the word Checksum. Add 2001 to copyright notice.
42247
42248         * ali.adb: Undo some of previous changes, not needed.
42249         Keep the change for lower case letters in the checksum.
42250
42251         * ali.ads: Undo previous change not needed.
42252
42253         * bcheck.adb: Undo most of previous change, not needed.
42254         But do use Checksums_Match for checksum comparison.
42255
42256         * gnatls.adb: Undo most of previous change, not needed.
42257         But do use Checksums_Match for comparing checksums.
42258
42259         * lib-load.adb: Undo previous change, not needed.
42260
42261         * lib-writ.adb: Undo previous change, not needed.
42262
42263         * lib-writ.ads: Document that checksums use lower case,
42264         not upper case letters.
42265
42266         * scans.adb: Undo previous change, not needed
42267
42268         * scans.ads: Undo previous change, not needed.
42269
42270         * scn-nlit.adb: Undo previous changes, not needed.
42271
42272         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
42273
42274         * scn.adb:
42275         (Accumulate_Checksum): Use System.CRC32.
42276         (Initialize_Checksum): New procedure.
42277         Remove other changes of previous revision.
42278
42279         * sinput-p.adb: Undo previous change, not needed.
42280
42281         * sinput.adb: Undo previous change, not needed.
42282
42283         * sinput-l.adb: Undo previous change, not needed.
42284
42285         * sinput.ads: Undo previous change, not needed.  Keep only comment
42286         on new checksum algorithm
42287
42288         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
42289         Also remove a-tags and a-stream from GNAT sources.
42290
42291         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
42292
42293         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
42294
42295 2001-10-11  Geert Bosch  <bosch@gnat.com>
42296
42297         * einfo.h: Regenerate.
42298
42299         * nmake.ads: Regenerate.
42300
42301         * nmake.adb: Regenerate.
42302
42303         * sinfo.h: Regenerate.
42304
42305         * treeprs.adb: Regenerate.
42306
42307 2001-10-10  Geert Bosch  <bosch@gnat.com>
42308
42309         * gnat-style.texi: New file describing coding guidelines for Ada.
42310
42311 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42312
42313         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
42314         is Flag174.
42315
42316 2001-10-10  Geert Bosch  <bosch@gnat.com>
42317
42318         * snames.ads: Add new names for project facility.
42319
42320         * snames.adb: Update to reflect snames.ads changes.
42321
42322         * snames.h: Update to reflect snames.ads changes.
42323
42324 2001-10-10  Vincent Celier  <celier@gnat.com>
42325
42326         * make.adb:
42327         (Add_Switches): reflect the changes for the switches attributes
42328         Default_Switches indexed by the programming language,
42329         Switches indexed by the file name.
42330         (Collect_Arguments_And_Compile): Idem.
42331         Reflect the attribute name changes.
42332
42333         * prj-attr.adb:
42334         (Initialisation_Data): Change the names of some packages and
42335         attributes.
42336         (Initialize): process case insensitive associative arrays.
42337
42338         * prj-attr.ads:
42339         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
42340
42341         * prj-dect.adb:
42342         (Parse_Attribute_Declaration): For case insensitive associative
42343          arrays, set the index string to lower case.
42344
42345         * prj-env.adb:
42346         Reflect the changes of the project attributes.
42347
42348         * prj-nmsc.adb:
42349         Replace Check_Naming_Scheme by Ada_Check and
42350         Language_Independent_Check.
42351
42352         * prj-nmsc.ads:
42353         Replaced Check_Naming_Scheme by 2 procedures:
42354         Ada_Check and Language_Independent_Check.
42355
42356         * prj-proc.adb:
42357         (Process_Declarative_Items): For case-insensitive associative
42358         arrays, set the index string to lower case.
42359         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
42360         Prj.Nmsc.Check_Naming_Scheme.
42361
42362         * prj-tree.adb:
42363         (Case_Insensitive): New function
42364         (Set_Case_Insensitive): New procedure
42365
42366         * prj-tree.ads:
42367         (Case_Insensitive): New function
42368         (Set_Case_Insensitive): New procedure
42369         (Project_Node_Record): New flag Case_Insensitive.
42370
42371         * prj-util.adb:
42372         (Value_Of): new function to get the string value of a single
42373         string variable or attribute.
42374
42375         * prj-util.ads:
42376         (Value_Of): new function to get the string value of a single
42377         string variable or attribute.
42378
42379         * prj.adb:
42380         (Ada_Default_Spec_Suffix): New function
42381         (Ada_Default_Impl_Suffix): New function
42382         Change definitions of several constants to reflect
42383         new components of record types.
42384
42385         * prj.ads:
42386         (Naming_Data): Change several components to reflect new
42387         elements of naming schemes.
42388         (Project_Data): New flags Sources_Present and
42389         Language_Independent_Checked.
42390         (Ada_Default_Spec_Suffix): New function.
42391         (Ada_Default_Impl_Suffix): New function.
42392
42393         * snames.ads:
42394         Modification of predefined names for project manager: added
42395         Implementation, Specification_Exceptions, Implementation_Exceptions,
42396         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
42397         Default_Switches, _Languages, Builder, Cross_Reference,
42398         Finder. Removed Body_Part, Specification_Append, Body_Append,
42399         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
42400         Gnatlink.
42401
42402         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42403         Add comments.
42404
42405         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
42406         not that it is Nil_Variable_Value.
42407
42408         * prj.ads: Add ??? for uncommented declarations
42409
42410 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42411
42412         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
42413         constant, do not indicate possible modification, so that gigi can
42414         treat it as a bona fide constant.
42415
42416 2001-10-10  Robert Dewar  <dewar@gnat.com>
42417
42418         * sem_prag.adb: Add processing for pragma External.
42419
42420         * snames.ads: Add entry for pragma External.
42421
42422         * par-prag.adb: Add pragma External.
42423
42424         * snames.adb: Updated to match snames.ads.
42425
42426 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42427
42428         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
42429         a dynamic task if the allocator appears in an indexed assignment
42430         or selected component assignment.
42431
42432         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
42433         For a dynamic task in an assignment statement, use target of
42434         assignment to generate meaningful name.
42435
42436 2001-10-10  Ed Schonberg  <schonber@gnat.com>
42437
42438         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
42439         a generic package.
42440
42441         * einfo.ads: Body_Entity is also defined for generic package.
42442         Documentation change only
42443
42444         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
42445         others_choice for a discriminated component initialization,
42446         convert discriminant references into the corresponding discriminals.
42447
42448         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
42449         only if original type is private and expression has to be wrapped
42450         in a conversion.
42451
42452         * checks.adb:
42453         (Apply_Constraint_Check): Do not perform length check
42454         if expression is an aggregate with only an others_choice.
42455         (Length_N_Cond): two references to the same in_parameter
42456         (typically the discriminal in an init_proc) denote the same value.
42457         Two useful optimization uncovered by bugfixes above.
42458
42459 2001-10-10  Robert Dewar  <dewar@gnat.com>
42460
42461         * xeinfo.adb: Change int to char in translation of enumeration types.
42462         This fixes a problem in the C representation of component alignment.
42463         Add 2001 to copyright notice
42464
42465 2001-10-10  Richard Kenner  <kenner@gnat.com>
42466
42467         * decl.c: (validate_size): Do check size of object of integral type
42468         if it is a packed array type.
42469
42470 2001-10-10  Richard Kenner  <kenner@gnat.com>
42471
42472         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
42473         VAR_DECL for constant if not Is_Public but -O0.
42474
42475 2001-10-10  Richard Kenner  <kenner@gnat.com>
42476
42477         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
42478
42479 2001-10-10  Geert Bosch  <bosch@gnat.com>
42480
42481         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
42482         use '/' as switch character, allowing for absolute file names.
42483
42484 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
42485
42486         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
42487         FSF address.
42488
42489 2001-10-08  Geert Bosch  <bosch@gnat.com>
42490
42491         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
42492         Automatically build utilities when files need to be regenerated.
42493
42494 2001-10-08  Geert Bosch  <bosch@gnat.com>
42495
42496         * xsnames.adb: New utility for updating snames.ads and snames.adb
42497
42498 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
42499
42500         * Make-lang.in (ADAFLAGS): Add -W -Wall.
42501         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
42502         (gnat1): Also depend on attribs.o.
42503         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
42504         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
42505         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
42506         (ADAFLAGS): Add -W -Wall.
42507         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
42508         take out CFLAGS.
42509
42510         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
42511         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
42512         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
42513         Use $(ADAC), not $(CC), as compilation command.
42514
42515         (gnattools): Depend directly on tools to build, don't use
42516         recursive make.
42517         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
42518
42519         * einfo.h, sinfo.h: New files (autogenerated).
42520
42521 2001-10-08  Richard Henderson  <rth@redhat.com>
42522
42523         * comperr.adb (Abort_In_Progress): New.
42524         (Compiler_Abort): Use it to prevent recursion.
42525
42526 2001-10-08  Robert Dewar  <dewar@gnat.com>
42527
42528         * atree.adb: Set Error_Posted in Error node, helps error recovery.
42529
42530         * par-endh.adb (Output_End_Expected): We should also not test
42531         Error_Posted on the Error node, since now it is always set.
42532
42533         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
42534         to help error recovery. Part of general work on 9407-004.
42535
42536         * par.adb: Add ??? for misuse of error
42537
42538         * sem_res.adb:
42539         (Resolve): Defend against Error, fixes 9407-003.
42540         (Resolve_Discrete_Subtype_Indication): Defend against Error.
42541
42542         * sinfo.ads (N_Error): Now has Etype field (which will be set
42543         to Any_Type to help error recovery).
42544
42545 2001-10-08  Richard Kenner  <kenner@gnat.com>
42546
42547         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
42548         Consistently set MEM attributes from expression; fixes
42549         bootstrap failure on x86.
42550
42551 2001-10-08  Geert Bosch  <bosch@gnat.com>
42552
42553         * 5oosinte.adb: Add 2001 to copyright notice.
42554
42555 2001-10-08  Geert Bosch  <bosch@gnat.com>
42556
42557         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
42558
42559         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
42560
42561 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
42562
42563         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
42564
42565 2001-10-05  Geert Bosch  <bosch@gnat.com>
42566
42567         * adaint.h: Small formatting fix.
42568
42569 2001-10-04  Geert Bosch  <bosch@gnat.com>
42570
42571         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
42572         Arg is int, not FILE *, in dummy version of functions.
42573
42574         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
42575         Arg is int, not FILE *.
42576
42577 2001-10-04  Geert Bosch  <bosch@gnat.com>
42578
42579         * 3lsoccon.ads: Added file, missed with initial check ins.
42580
42581         * 4lintnam.ads: Fix header format.
42582         Change Linux to GNU/Linux.
42583
42584         * 5iosinte.adb: Change Linux to GNU/Linux.
42585
42586         * 5iosinte.ads: Change Linux to GNU/Linux.
42587
42588         * 5itaprop.adb: Change Linux to GNU/Linux.
42589
42590         * 5itaspri.ads: Change Linux to GNU/Linux.
42591         Update copyright notice.
42592
42593         * 5lintman.adb: Change Linux to GNU/Linux.
42594
42595         * 5lml-tgt.adb: Change Linux to GNU/Linux.
42596
42597         * 5losinte.ads: Change Linux to GNU/Linux.
42598
42599         * 5lsystem.ads: Change Linux to GNU/Linux.
42600
42601         * 5qosinte.adb: Change Linux to GNU/Linux.
42602
42603         * 5qosinte.ads: Change Linux to GNU/Linux.
42604
42605         * 5qparame.ads: Change Linux to GNU/Linux.
42606
42607         * 5qtaprop.adb: Change Linux to GNU/Linux.
42608
42609         * 5qtaspri.ads: Change Linux to GNU/Linux.
42610         Add 2001 to copyright notice.
42611
42612         * 5vintman.ads: Change Linux to GNU/Linux.
42613         Fix header format.  Add 2001 to copyright notice.
42614
42615         * g-soccon.ads: Change Linux to GNU/Linux.
42616
42617         * g-trasym.ads: Change Linux to GNU/Linux.
42618         Add 2001 to copyright notice.
42619
42620         * memtrack.adb: Change Linux to GNU/Linux.
42621
42622         * s-intman.ads: Change Linux to GNU/Linux.
42623         Add 2001 to copyright notice.  Fix header format.
42624
42625         * s-stache.adb: Change Linux to GNU/Linux.
42626
42627         * adaint.c: Change Linux to GNU/Linux.
42628
42629         * cio.c: Change Linux to GNU/Linux.
42630
42631         * cstreams.c: Change Linux to GNU/Linux.
42632
42633         * init.c: Change Linux to GNU/Linux.
42634
42635         * gmem.c: Change Linux to GNU/Linux.
42636
42637         * tracebak.c: Change Linux to GNU/Linux.
42638
42639
42640 2001-10-02  Geert Bosch  <bosch@gnat.com>
42641
42642         * misc.c (insert_default_attributes): Add dummy version.