OSDN Git Service

2008-08-04 Pascal Obry <obry@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-08-04  Pascal Obry  <obry@adacore.com>
2
3         * adaint.h: Add missing prototype.
4
5         * adaint.c: Refine support for Windows file attributes.
6
7 2008-08-04  Robert Dewar  <dewar@adacore.com>
8
9         * sem_res.adb:
10         (Valid_Conversion): Catch case of designated types having different
11         sizes, even though they statically match.
12
13 2008-08-04  Javier Miranda  <miranda@adacore.com>
14
15         * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
16         added in previous patch to handle access to subprograms.
17
18 2008-08-04  Robert Dewar  <dewar@adacore.com>
19
20         * freeze.adb:
21         (Freeze_Entity): Only check No_Default_Initialization restriction for
22         constructs that come from source
23
24 2008-08-04  Thomas Quinot  <quinot@adacore.com>
25
26         * exp_ch6.adb: Minor comment fix.
27
28         * sem_ch4.adb: Minor reformatting.
29
30 2008-08-04  Robert Dewar  <dewar@adacore.com>
31
32         * sem_res.adb: (Large_Storage_Type): Improve previous change.
33
34 2008-08-04  Pascal Obry  <obry@adacore.com>
35
36         * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
37         file attributes.
38
39 2008-08-04  Javier Miranda  <miranda@adacore.com>
40
41         * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
42         for N_Formal_Object_Declaration nodes. Adding kludge required by
43         First_Formal to provide its functionality with access to functions.
44         (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
45         for anonymous access types returned by functions.
46
47         * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
48         conversion of null-excluding access types (required only once to force
49         the generation of the required runtime check).
50
51         * sem_type.adb (Covers): minor reformating
52
53         * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
54         with internally generated nodes. Avoid generating the error inside init
55         procs.
56
57         * sem_res.adb (Resolve_Membership_Test): Minor reformating.
58         (Resolve_Null): Generate the null-excluding check in case of assignment
59         to a null-excluding object.
60         (Valid_Conversion): Add missing support for anonymous access to
61         subprograms.
62
63         * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
64         anonymous access types whose designated type is an itype. This case
65         occurs with anonymous access to protected subprograms types.
66         (Analyze_Return_Type):  Add missing support for anonymous access to
67         protected subprogram.
68
69         * sem_eval.adb (Subtypes_Statically_Match): In case of access to
70         subprograms addition of missing check on matching convention. Required
71         to properly handle access to protected subprogram types.
72
73         * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
74         null excluding access types.
75
76 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
77
78         * sem_ch12.adb: Add comments
79
80         * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
81         access type and the allocator is not initialized, warn rather than
82         reporting an error.
83
84 2008-08-04  Robert Dewar  <dewar@adacore.com>
85
86         * exp_ch4.adb: Minor reformatting
87
88         * exp_dist.adb: Minor reformatting
89
90         * g-comlin.adb: Minor reformatting
91
92 2008-08-04  Gary Dismukes  <dismukes@adacore.com>
93
94         * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
95         target to the type of the aggregate in the case where the target object
96         is class-wide.
97
98         * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
99         result type is class-wide and inherently limited, and the expression
100         has a specific type, create a return object of the specific type, for
101         more efficient handling of returns of build-in-place aggregates (avoids
102         conversions of the class-wide return object to the specific type on
103         component assignments).
104
105         * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
106         about a type mismatch for a class-wide function with a return object
107         having a specific type when the object declaration doesn't come from
108         source. Such an object can result from the expansion of a simple return.
109
110 2008-08-04  Vasiliy Fofanov  <fofanov@adacore.com>
111
112         * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
113
114         * gcc-interface/Makefile.in: Use 64bit-specific system files when
115         compiling for 64bit windows.
116
117 2008-08-04  Jerome Lambourg  <lambourg@adacore.com>
118
119         * g-comlin.adb (Group_Switches): Preserve the switch order when
120         grouping and allow switch grouping of switches with more than one
121         character extension (e.g. gnatw.x).
122         (Args_From_Expanded): Remove this now obsolete method.
123
124 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
125
126         * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
127         chain at once, to ensure that type is properly decorated for back-end,
128         when allocator appears within a loop.
129
130 2008-08-04  Kevin Pouget  <pouget@adacore.com>
131
132         * snames.h, snames.adb, snames.ads:
133         Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
134
135         * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
136         Build_To_Any_Call and Build_TypeCode_Call procedures.
137
138         * exp_attr.adb, sem_attr.adb: Add corresponding cases.
139
140         * rtsfind.ads: Add corresponding names.
141
142         * tbuild.adb: Update prefix restrictions to allow '_' character.
143
144 2008-08-04  Doug Rupp  <rupp@adacore.com>
145
146         * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
147         * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
148         * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
149         use it.  Calculate pointer range overflow using 64bit types.
150
151 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
152
153         * sem_ch3.adb (Access_Definition): A formal object declaration is a
154         legal context for an anonymous access to subprogram.
155
156         * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
157         indirect call, report success to the caller to include possible
158         interpretation.
159
160         * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
161         check when the type
162         of the extended return is an anonymous access_to_subprogram type.
163
164         * sem_res.adb:
165         (Resolve_Call): Insert a dereference if the type of the subprogram is an
166         access_to_subprogram and the context requires its return type, and a
167         dereference has not been introduced previously.
168
169 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
170
171         * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
172         gnatcheck support in GPS.
173
174 2008-08-04  Vincent Celier  <celier@adacore.com>
175
176         * mlib.adb (Create_Sym_Links): Create relative symbolic links when
177         requested
178
179 2008-08-04  Vincent Celier  <celier@adacore.com>
180
181         * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
182         variable, but don't check the resulting value as it has no impact on
183         the processing.
184         
185         * opt.ads:
186         (Generate_Processed_File): New Boolean flag, set to True in the compiler
187         when switch -gnateG is used.
188         
189         * prep.adb:
190         (Preprocess): new Boolean out parameter Source_Modified. Set it to True
191         when the source is modified by the preprocessor and there is no
192         preprocessing errors.
193         
194         * prep.ads (Preprocess): new Boolean out parameter Source_Modified
195         
196         * sinput-l.adb:
197         (Load_File): Output the result of preprocessing if the source text was
198         modified.
199         
200         * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
201         
202         * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
203         
204         * ug_words: Add VMS equivalent for -gnateG
205         
206         * vms_data.ads:
207         Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
208
209 2008-08-04  Doug Rupp  <rupp@adacore.com>
210
211         * gcc-interface/utils2.c:
212         (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
213         in 32bit descriptor.
214
215 2008-08-04  Robert Dewar  <dewar@adacore.com>
216
217         * par-ch10.adb: Minor reformatting
218
219         * i-cobol.adb: Minor reformatting.
220
221 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
222
223         * sem_ch3.adb (Access_Definition): Create an itype reference for an
224         anonymous access return type of a regular function that is not a
225         compilation unit.
226
227 2008-08-04  Vincent Celier  <celier@adacore.com>
228
229         * prj-attr.adb: New Builder attribute Global_Compilation_Switches
230         
231         * snames.adb: New standard name Global_Compilation_Switches
232         
233         * snames.ads: New standard name Global_Compilation_Switches
234
235         * make.adb: Correct spelling error in comment
236
237 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
238
239         * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
240         target.
241
242 2008-08-04  Thomas Quinot  <quinot@adacore.com>
243
244         * sem_ch10.adb: Minor comment fix.
245
246 2008-08-04  Robert Dewar  <dewar@adacore.com>
247
248         * restrict.adb: Improved messages for restriction warnings
249
250         * restrict.ads: Improved messages for restriction messages
251
252         * s-rident.ads (Profile_Name): Add No_Profile
253
254 2008-08-04  Robert Dewar  <dewar@adacore.com>
255
256         * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
257
258 2008-08-04  Robert Dewar  <dewar@adacore.com>
259
260         * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
261
262 2008-08-04  Vincent Celier  <celier@adacore.com>
263
264         * prj-proc.adb:
265         (Copy_Package_Declarations): When inheriting package Naming from a
266         project being extended, do not inherit source exception names.
267
268 2008-08-04  Ed Schonberg  <schonberg@adacore.com>
269
270         * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
271         list of declaration to find previous subprogram, do not go to the
272         original node of a generic unit.
273
274 2008-08-02  Eric Botcazou  <ebotcazou@adacore.com>
275
276         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
277         New case.  Convert BOOLEAN_TYPE operation to the default integer type.
278
279 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
280
281         * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
282         * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
283         and adjust for above renaming.
284         * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
285         gnu_expr_alt_type parameter.  Convert the expression to it instead
286         of changing its type in place.
287         (build_function_stub): Adjust call to above function.
288
289 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
290
291         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
292         code.  Do not get full definition of deferred constants with address
293         clause for a use.  Do not ignore deferred constant definitions with
294         address clause.  Ignore constant definitions already marked with the
295         error node.
296         <object>: Remove obsolete comment.  For a deferred constant with
297         address clause, get the initializer from the full view.
298         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
299         Rework and remove obsolete comment.
300         <N_Object_Declaration>: For a deferred constant with address clause,
301         mark the full view with the error node.
302         * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
303         formatting nits.
304
305 2008-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
306
307         * rtsfind.ads: Add block IO versions of stream routines for Strings.
308         
309         * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
310         sem_prag.adb, snames.adb, snames.ads, snames.h,
311         par-prag.adb: Undo previous stream related changes.
312         
313         * s-rident.ads: Add new restriction No_Stream_Optimizations.
314         
315         * s-ststop.ads, s-ststop.adb: Comment reformatting.
316         Define enumeration type to designate different IO mechanisms.
317         Enchance generic package Stream_Ops_Internal to include an
318         implementation of Input and Output.
319
320         * exp_attr.adb (Find_Stream_Subprogram): If restriction
321         No_Stream_Optimization is active, choose the default byte IO
322         implementations of stream attributes for Strings.
323         Otherwise use the corresponding block IO version.
324
325 2008-08-01  Olivier Hainque  <hainque@adacore.com>
326         
327         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
328         turn Ada Pure into GCC const, now implicitely implying nothrow as well.
329
330 2008-08-01  Robert Dewar  <dewar@adacore.com>
331
332         * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
333         convert plain identifier into defining identifier.
334
335 2008-08-01  Robert Dewar  <dewar@adacore.com>
336
337         * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
338         warnings
339
340         * lib-xref.adb: Add error defense.
341
342 2008-08-01  Bob Duff  <duff@adacore.com>
343
344         * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
345
346 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
347
348         * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
349         correct accessibility levels. In the "when others" case, retrieve the
350         access level of the Etype of Prev rather than Prev_Orig, because the
351         original exression has not always been analyzed.
352
353 2008-08-01  Robert Dewar  <dewar@adacore.com>
354
355         * prj-nmsc.adb: Minor reformatting
356
357         * sem_ch4.adb: Minor reformatting
358         Minor code reorganization
359
360         * prj.ads: Minor reformatting
361
362         * s-os_lib.adb: Minor reformatting
363
364         * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
365         half encodings
366
367         * scans.ads: Minor reformatting.
368
369         * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
370         (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
371
372         * sem_res.adb:
373         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
374
375         * sem_ch12.adb: Minor comment reformatting
376
377         * par-ch3.adb (P_Type_Declaration): Properly handle missing type
378         keyword
379
380 2008-08-01  Robert Dewar  <dewar@adacore.com>
381
382         * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
383         generating code
384
385 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
386
387         * checks.adb (Apply_Float_Conversion_Check): If the expression to be
388         converted is a real literal and the target type has static bounds,
389         perform the conversion exactly to prevent floating-point anomalies on
390         some targets.
391
392 2008-08-01  Vincent Celier  <celier@adacore.com>
393
394         * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
395         
396         * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
397         
398         * prj.adb (Object_Exist_For): Use Object_Generated, not
399         Objects_Generated that is removed and was never modified anyway.
400
401         * prj.ads:
402         (Path_Syntax_Kind): New enumeration type
403         (Language_Config): New component Path_Syntax, defaulted to Host.
404         Components PIC_Option and Objects_Generated removed, as they are not
405         used.
406
407         * snames.adb: New standard name Path_Syntax
408         
409         * snames.ads: New standard name Path_Syntax
410
411 2008-08-01  Vincent Celier  <celier@adacore.com>
412
413         * mlib-utl.adb:
414         (Adalib_Path): New variable to store the path of the adalib directory
415         when procedure Specify_Adalib_Dir is called.
416         (Lib_Directory): If Adalib_Path is not null, return its value
417         (Specify_Adalib_Dir): New procedure
418         
419         * mlib-utl.ads (Specify_Adalib_Dir): New procedure
420
421 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
422
423         * sem_prag.adb:
424         (Check_Precondition_Postcondition): If not generating code, analyze the
425         expression in a postcondition that appears in a subprogram body, so that
426         it is properly decorated for ASIS use.
427
428 2008-08-01  Gary Dismukes  <dismukes@adacore.com>
429
430         * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
431         Orig_Prev to Prev in the case where the actual is N_Function_Call or
432         N_Identifier. This was interfering with other cases that are rewritten
433         as N_Identifier, such as allocators, resulting in passing of the wrong
434         accessibility level, and based on testing this code is apparently no
435         longer needed at all.
436
437 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
438
439         * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
440         procedure call whose prefix
441         is a parameterless function call that returns an access_to_procedure.
442
443 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
444
445         * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
446         for RTX. Adding a suffix that is incremented at each iteration.
447
448 2008-08-01  Robert Dewar  <dewar@adacore.com>
449
450         * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
451         Raise_Exception
452
453 2008-08-01  Jerome Lambourg  <lambourg@adacore.com>
454
455         * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
456         paths, which are authorized by Windows but can lead to errors when used
457         elsewhere.
458
459 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
460
461         * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
462         a pending instantiation for the body of a subprogram that is to be
463         inlined.
464
465         * sem_ch12.adb:
466         (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
467
468         * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
469         create a pending instance for its body, so that calls to the subprogram
470         can be inlined by the back-end.
471
472 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
473
474         * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
475         rts-rtx-w32).
476
477 2008-08-01  Robert Dewar  <dewar@adacore.com>
478
479         * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
480
481 2008-08-01  Doug Rupp  <rupp@adacore.com>
482
483         * gnat_rm.texi: Document new mechanism Short_Descriptor.
484         
485         * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
486         mechanism values.
487
488         * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
489         mechanism and Short_Descriptor mechanism values.
490
491         * snames.adb (preset_names): Add short_descriptor entry.
492
493         * snames.ads: Add Name_Short_Descriptor.
494
495         * types.h: Add new By_Short_Descriptor mechanism values.
496
497         * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
498         mechanism and Short_Descriptor mechanism values.
499
500         * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
501         values.
502         (Descriptor_Codes): Modify range for new mechanism values.
503
504         * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
505         mechanism values.
506
507         * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
508         (gnat_to_gnu_param): Handle By_Short_Descriptor.
509
510         * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
511         (build_vms_descriptor32): New prototype.
512         (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
513
514         * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
515         argument in call fill_vms_descriptor.
516
517         * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
518         build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
519         (build_vms_descriptor): Renamed from build_vms_descriptor64. 
520         (convert_vms_descriptor32): New function.
521         (convert_vms_descriptor64): New function.
522         (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
523         descriptors.
524
525         * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
526         no longer needed.
527
528 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
529
530         * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
531         nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
532         name.
533
534 2008-08-01  Jose Ruiz  <ruiz@adacore.com>
535
536         * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
537         current directory so only fully qualified names are allowed.
538
539 2008-08-01  Robert Dewar  <dewar@adacore.com>
540
541         * gnat_ugn.texi:
542         Minor editing, remove uncomfortable use of semicolon
543
544         * s-ststop.adb: Add some ??? comments
545
546         * sem_ch10.adb: Minor reformatting
547
548         * snames.ads:
549         Minor comment fixes, some pragmas were not properly
550         categorized in the comments, documentation change only
551
552         * xref_lib.adb: Minor reformatting
553
554         * sinput.adb: Minor reformatting
555
556         * gnatchop.adb: Minor reformatting
557
558         * sem_util.ads: Minor reformatting.
559
560         * opt.ads: Minor documentation fix
561
562         * scng.adb: Minor reformatting
563
564         * prj-part.adb: Update comments
565
566 2008-08-01  Ed Schonberg  <schonberg@adacore.com>
567
568         * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
569         tagged synchronized type, use corresponding record type.
570
571 2008-08-01  Doug Rupp  <rupp@adacore.com>
572
573         * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
574         dummy transfer address for debugging.
575         
576         * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
577
578         * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
579
580 2008-07-31  Eric Botcazou  <ebotcazou@adacore.com>
581
582         * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
583         * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
584
585 2008-07-31  Pascal Obry  <obry@adacore.com>
586
587         * prj-nmsc.adb: Keep Object and Exec directory casing.
588
589 2008-07-31  Jose Ruiz  <ruiz@adacore.com>
590
591         * system-rtx-rtss.ads
592         Change the default stack size. It is important to set the commit part.
593         
594         * s-taprop-rtx.adb
595         (Initialize): Get the clock resolution.
596         (RT_Resolution): Return the clock resolution that is indicated by the
597         system.
598
599         * s-parame-vxworks.adb
600         Document that this body is used for RTX in RTSS (kernel) mode.
601
602         * gcc-interface/Makefile.in
603         (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
604         s-parame-vxworks.adb body in order to have reasonable stack sizes in
605         RTX RTSS kernel mode. Virtual memory is not used in that case, so we
606         cannot ask for too big values.
607
608 2008-07-31  Robert Dewar  <dewar@adacore.com>
609
610         * exp_aggr.adb: Minor reformatting
611
612         * makeutl.adb: Minor reformatting
613
614         * prj-env.adb: Minor reformatting
615
616 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
617
618         * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
619         tagged type is completed by a concurrent type.
620
621 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
622
623         * sem_aggr.adb:
624         (Resolve_Record_Aggregate): Bypass error that a type without
625         components must have a "null record" aggregate when compiling for Ada
626         2005, since it's legal to give an aggregate of form (others => <>)
627         for such a type.
628
629 2008-07-31  Javier Miranda  <miranda@adacore.com>
630
631         * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
632         handle synchronized types. Required to handle well the object.operation
633         notation applied to synchronized types.
634
635 2008-07-31  Quentin Ochem  <ochem@adacore.com>
636
637         * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
638         anymore - just used internally.
639         Added handling of very small tasks - when the theoretical size is
640         already full at the point of the call.
641         (Report_Result): Fixed result computation, Stack_Used_When_Filling does
642         not need to be added to the result.
643
644 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
645
646         * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
647         corresponding spec is a primitive wrapper. Update comment.
648
649 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
650
651         * bindgen.adb Comment reformatting. Update the list of run-time globals.
652         (Gen_Adainit_Ada): Add the declaration, import and value set for
653         configuration flag Canonical_Streams.
654         (Gen_Adainit_C): Add the declaration and initial value of external
655         symbol __gl_canonical_streams.
656         
657         * init.c: Update the list of global values computed by the binder.
658         
659         * opt.ads: Add flag Canonical_Streams.
660         
661         * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
662         semantically handled pragmas.
663         
664         * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
665         (Analyze_Pragma): Add case for pragma Canonical_Streams.
666         
667         * snames.adb: Add character value for name Canonical_Streams.
668         
669         * snames.ads:
670         Add Name_Canonical_Streams to the list of configuration pragmas.
671         Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
672         
673         * snames.h: Add a definition for Pragma_Canonical_Streams.
674         
675         * s-ststop.adb:
676         Add a flag and import to seize the value of external symbol
677         __gl_canonical_streams. Update comment and initial value of constant
678         Use_Block_IO.
679         
680         * gnat_rm.texi: Add section of pragma Canonical_Streams.
681         
682         * gnat_ugn.texi:
683         Add pragma Canonical_Streams to the list of configuration pragmas.
684
685 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
686
687         * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
688         has the form A.B.C and B is a unit renaming, analyze its compilation
689         unit and add a with_clause on A.b to the context.
690
691 2008-07-31  Vincent Celier  <celier@adacore.com>
692
693         * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
694         return the empty string, instead of raising Constraint_Error.
695
696 2008-07-31  Gary Dismukes  <dismukes@adacore.com>
697
698         * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
699         
700         * checks.adb (Apply_Accessibility_Check): Insert the check on
701         Insert_Node.
702         
703         * exp_attr.adb:
704         (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
705         to new parameter Insert_Node on call to Apply_Accessibility_Check.
706         Necessary to distinguish the insertion node because the dereferenced
707         formal may come from a rename, but the check must be inserted in
708         front of the attribute.
709         
710         * exp_ch4.adb:
711         (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
712         call to Apply_Accessibility_Check.
713         (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
714         on call to Apply_Accessibility_Check.
715         Minor reformatting
716
717 2008-07-31  Javier Miranda  <miranda@adacore.com>
718
719         * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
720         types when the candidate type is a synchronized type.
721         
722         * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
723         types, and complete management of synchronized types adding missing
724         code to handle formal that is a synchronized type.
725         
726         * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
727         are not available and cause the compiler to blowup. Found compiling
728         test with switch -gnatc
729         
730         * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
731         Has_Correct_Formal_Mode plus code cleanup.
732
733 2008-07-31  Bob Duff  <duff@adacore.com>
734
735         * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
736         recognized as two end-of-lines, but it should be just one.
737
738 2008-07-31  Thomas Quinot  <quinot@adacore.com>
739
740         * exp_ch9.adb: Minor reformatting
741
742         * tbuild.ads: Fix several occurrences of incorrectly referring to
743         Name_Find as Find_Name.
744
745 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
746
747         * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
748         and the context is an object declaration with non-static bounds, treat
749         the aggregate as non-static.
750
751 2008-07-31  Vincent Celier  <celier@adacore.com>
752
753         * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
754         Move back spec of Parse_Single_Project to body, as it is not called
755         outside of package Prj.Part.
756         (Project_Data): Remove components Linker_Name, Linker_Path and
757         Minimum_Linker_Options as they are no longer set.
758         Remove function There_Are_Ada_Sources from package Prj and move code
759         in the only place it was used, in Prj.Env.Set_Ada_Paths.
760
761 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
762
763         * mlib-utl.ads: Fix typo.
764
765 2008-07-31  Robert Dewar  <dewar@adacore.com>
766
767         * sem_ch12.adb: Minor reformatting
768
769 2008-07-31  Sergey Rybin  <rybin@adacore.com>
770
771         * gnat_ugn.texi: Change the description of the
772         Overly_Nested_Control_Structures: now the rule always requires a
773         positive parameter for '+R' option
774
775 2008-07-31  Thomas Quinot  <quinot@adacore.com>
776
777         * g-pehage.adb: Minor reformatting
778
779 2008-07-31  Pascal Obry  <obry@adacore.com>
780
781         * s-finimp.ads: Minor reformatting.
782
783 2008-07-31  Vincent Celier  <celier@adacore.com>
784
785         * s-regexp.ads: Minor comment fix
786
787 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
788
789         * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
790         so that we can compile this file successfully with -gnatc.
791
792 2008-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
793
794         * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
795         of the type when looking for stream subprograms for type String,
796         Wide_String and Wide_Wide_String.
797         
798         * s-ststop.adb: Change the initialization expression of constant
799         Use_Block_IO.
800
801 2008-07-31  Geert Bosch  <bosch@adacore.com>
802
803         * arit64.c:
804         New file implementing __gnat_mulv64 signed integer multiplication with
805         overflow checking
806
807         * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
808
809         * gcc-interface/gigi.h:
810         (standard_types): Add ADT_mulv64_decl
811         (mulv64_decl): Define subprogram declaration for __gnat_mulv64
812
813         * gcc-interface/utils.c:
814         (init_gigi_decls): Add initialization of mulv64_decl
815
816         * gcc-interface/trans.c:
817         (build_unary_op_trapv): New function
818         (build_binary_op_trapv): New function
819         (gnat_to_gnu): Use the above functions instead of
820         build_{unary,binary}_op
821
822         * gcc-interface/Makefile.in
823         (LIBGNAT_SRCS): Add arit64.c
824         (LIBGNAT_OBJS): Add arit64.o
825
826 2008-07-31  Vincent Celier  <celier@adacore.com>
827
828         * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
829         Linker'Default_Switches are declared. Warn if they are declared.
830
831 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
832
833         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
834         Insert_Actions to place the pointer declaration in the code, rather
835         than Insert_Before_And_Analyze, so that insertions of temporaries are
836         kept in the proper order when transient scopes are present.
837
838
839 2008-07-31  Robert Dewar  <dewar@adacore.com>
840
841         * einfo.adb (Spec_PPC): Now defined for generic subprograms
842         
843         * einfo.ads (Spec_PPC): Now defined for generic subprograms
844         
845         * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
846         subprogram case
847
848 2008-07-31  Vincent Celier  <celier@adacore.com>
849
850         * s-os_lib.adb: Minor comment fix
851
852 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
853
854         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
855         transfer pre/postconditions from generic copy to original tree, so that
856         they will appear in each instance.
857         (Process_PPCs): Do not transform postconditions into a procedure in a
858         generic context, to prevent double expansion of check pragmas.
859         
860         * sem_attr.adb: In an instance, the prefix of the 'result attribute
861         can be the renaming of the
862         current instance, so check validity of the name accordingly.
863
864 2008-07-31  Robert Dewar  <dewar@adacore.com>
865
866         * mlib-utl.ads: Minor reformatting
867
868 2008-07-31  Ed Schonberg  <schonberg@adacore.com>
869
870         sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
871         from context. This attribute must be usable in Ada95 mode.
872         The attribute can appear in the body of a function marked
873         Inline_Always, but in this case the postocondition is not enforced.
874         
875         sem_prag.adb (Check_Precondition_Postcondition): within the expansion
876         of an inlined call pre- and postconditions are legal
877
878 2008-07-31  Vincent Celier  <celier@adacore.com>
879
880         * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
881         were for gprmake only
882
883 2008-07-31  Robert Dewar  <dewar@adacore.com>
884
885         * gnat_ugn.texi: Update -gnatN documentation.
886
887         * gnat_rm.texi: Add note about pre/postcondition
888         pragmas not checked in conjunction with front-end inlining.
889
890 2008-07-31  Robert Dewar  <dewar@adacore.com>
891
892         * g-pehage.adb, g-pehage.ads: Minor reformatting
893
894 2008-07-31  Arnaud Charlet  <charlet@adacore.com>
895
896         * mlib-utl.ads, prj-makr.ads: Add comments.
897
898 2008-07-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
899
900         * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) 
901         [WINDOWS]: Add s-winext.o.
902
903 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
904
905         PR ada/36554
906         * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
907         * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
908         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
909         Set precision to 1 for subtype of BOOLEAN_TYPE.
910         (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
911         (make_type_from_size): Deal with BOOLEAN_TYPE.
912         * gcc-interface/misc.c (gnat_print_type): Likewise.
913         * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
914         Set boolean_type_node as its translation in the table, as well
915         as boolean_false_node for False and boolean_true_node for True.
916         * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
917         8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
918         (create_param_decl): Deal with BOOLEAN_TYPE.
919         (build_vms_descriptor): Likewise.
920         (build_vms_descriptor64): Likewise.
921         (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
922
923 2008-07-30  Robert Dewar  <dewar@adacore.com>
924
925         * exp_ch9.adb: Minor reformatting
926
927         * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
928         if no primitive operation is found.
929
930         * exp_util.adb: (Find_Prim_Op): Add comments for previous change
931
932         * sem_ch8.adb: Minor reformatting
933
934 2008-07-30  Laurent Pautet  <pautet@adacore.com>
935
936         * g-pehage.adb:
937         Remove a limitation on the length of the words handled by the minimal
938         perfect hash function generator.
939
940         * g-pehage.ads:
941         Detail the use of subprograms Insert, Initialize, Compute and Finalize.
942         Fix some typos.
943
944 2008-07-30  Robert Dewar  <dewar@adacore.com>
945
946         * gnatlink.adb: Minor reformatting
947
948 2008-07-30  Thomas Quinot  <quinot@adacore.com>
949
950         * rtsfind.adb (Check_RPC): Check version consistency even when not
951         generating RCI stubs. Provide more detailed error message in case of
952         mismatch.
953
954 2008-07-30  Ed Schonberg  <schonberg@adacore.com>
955
956         * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
957         as a actual in an instance, check for a missing attribute to prevent
958         program_error on an illegal program.
959         
960         * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
961         error if primitive is not found, so that exception can be handled
962         elsewhere on illegal programs.
963
964 2008-07-30  Robert Dewar  <dewar@adacore.com>
965
966         * uintp.adb (UI_GCD): Fix potential overflow
967
968 2008-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
969
970         * einfo.adb: Flag245 is now used.
971         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
972         check to include functions.
973         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
974         (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
975         include functions.
976         (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
977         to the list of displayed flags.
978
979         * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
980         Wrapped_Entity. These two flags are now present in functions.
981         New flag Is_Private_Primitive.
982         (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
983
984         * exp_ch9.adb:
985         (Build_Wrapper_Bodies): New subprogram.
986         (Build_Wrapper_Body): The spec and body have been moved to in
987         Build_Wrapper_ Bodies. Code cleanup.
988         (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
989         Wrappers are now generated for primitives declared between the private
990         and full view of a concurrent type that implements an interface.
991         (Build_Wrapper_Specs): New subprogram.
992         (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
993         creation mechanism with a call to Build_Wrapper_Bodies.
994         (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
995         wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
996         (Expand_N_Task_Body): Replace the wrapper body creation
997         mechanism with a call to Build_Wrapper_Bodies.
998         (Expand_N_Task_Type_Declaration): Replace the wrapper spec
999         creation mechanism with a call to Build_Wrapper_Specs.
1000         (Is_Private_Primitive_Subprogram): New subprogram.
1001         (Overriding_Possible): Code cleanup.
1002         (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
1003
1004         * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
1005
1006         * sem_ch3.adb: Add with and use clause for Exp_Ch9.
1007         (Process_Full_View): Build wrapper specs for all primitives
1008         that belong to a private view completed by a concurrent type
1009         implementing an interface.
1010         
1011         * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
1012         is a primitive of a
1013         concurrent type with a private view that implements an interface, try to
1014         find the proper spec.
1015         (Analyze_Subprogram_Declaration): Mark a subprogram as a private
1016         primitive if the type of its first parameter is a non-generic tagged
1017         private type.
1018         (Analyze_Subprogram_Specification): Code reformatting.
1019         (Disambiguate_Spec): New routine.
1020         (Find_Corresponding_Spec): Add a flag to controll the output of errors.
1021         (Is_Private_Concurrent_Primitive): New routine.
1022
1023         * sem_ch6.ads:
1024         (Find_Corresponding_Spec): Add a formal to control the output of errors.
1025
1026 2008-07-30  Doug Rupp  <rupp@adacore.com>
1027
1028         * gigi.h (build_vms_descriptor64): New function prototype.
1029         (fill_vms_descriptor): Modified function prototype.
1030
1031         * utils.c (build_vms_descriptor64): New function.
1032
1033         * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
1034
1035         * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
1036         argument.
1037
1038         * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
1039         64bit and 32bit descriptor and save the 64bit version as an alternate
1040         TREE_TYPE in the parameter.
1041         (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
1042         thin pointer.
1043
1044         * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
1045
1046 2008-07-30  Robert Dewar  <dewar@adacore.com>
1047
1048         * make.adb: Minor reformatting
1049
1050         * mlib-utl.adb: Minor reformatting
1051
1052         * osint.ads: Minor reformatting
1053
1054 2008-07-30  Jose Ruiz  <ruiz@adacore.com>
1055
1056         * adaint.c
1057         (__gnat_file_exists): Do not use __gnat_stat for RTX.
1058         (__main for RTX in RTSS mode): Create this dummy procedure symbol to
1059         avoid the use of this symbol from libgcc.a in RTX kernel mode.
1060
1061         * cio.c
1062         (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
1063         the function RtPrintf for console output.
1064         
1065         * argv.c Do not use the environ variable for RTX.
1066         
1067         * gnatlink.adb (gnatlink): The part that handles the --RTS option has
1068         been moved before the call to Osint.Add_Default_Search_Dirs in order
1069         to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
1070         from the appropriate run time.
1071         
1072         * targparm.ads
1073         (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
1074         target is a RTSS module for RTX.
1075         
1076         * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
1077         RTX_RTSS_Kernel_Module
1078         (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
1079
1080         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
1081         exception handling mechanism for Windows and RTX in Win32 mode, but
1082         not for RTX in kernel mode (RTSS).
1083         (LIBGNAT_SRCS): Remove ada.h
1084
1085 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
1086
1087         * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
1088         T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1089         (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
1090         * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
1091         X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
1092         ALL_ADA_CFLAGS): Remove.
1093         (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
1094         replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1095         (GCC_CFLAGS): Remove X_CFLAGS.
1096         (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
1097         (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
1098         (ADA_CFLAGS): Substitute.
1099
1100 2008-07-30  Laurent Guerby  <laurent@guerby.net>
1101
1102         PR ada/5911
1103         * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
1104         Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
1105         Replace stamp-gnatlib* by stamp-gnatlib*-rts.
1106         * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
1107         by stamp-gnatlib2-rts.
1108         
1109 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1110
1111         PR documentation/15479
1112         * gnat-style.texi: Remove AdaCore copyright statement and GPL
1113         statement for GNAT.  Add @copying stanza, use it.  Update to
1114         GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
1115         title as Front-Cover Text.
1116         * gnat_rm.texi: Likewise.
1117         * gnat_ugn.texi: Likewise.
1118
1119 2008-07-29  Jan Hubicka  <jh@suse.cz>
1120
1121         * trans.c (process_inlined_subprograms): Remove tree_really_inline
1122         check.
1123
1124 2008-07-29  Arnaud Charlet  <charlet@adacore.com>
1125
1126         * gcc-interface: New directory.
1127
1128         * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
1129         utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
1130         config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
1131         to gcc-interface subdirectory.
1132
1133 2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1134
1135         * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
1136
1137 2008-07-28  Jan Hubicka  <jh@suse.cz>
1138
1139         * misc.c (gnat_post_options): Do not set flag_no_inline.
1140
1141 2008-07-28  Richard Guenther  <rguenther@suse.de>
1142
1143         Merge from gimple-tuples-branch.
1144
1145         2008-07-22  Olivier Hainque  <hainque@adacore.com>
1146
1147         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
1148         this is called for an elab proc to be discarded if empty.
1149         * utils.c (end_subprog_body): Honor ELAB_P.
1150         (build_function_stub): Adjust call to end_subprog_body.
1151         * trans.c (Subprogram_Body_to_gnu): Likewise.
1152         (gigi): Reorganize processing of elab procs to prevent
1153         gimplifying twice, using the new end_subprog_body argument.
1154
1155         2008-07-19  Richard Guenther  <rguenther@suse.de>
1156
1157         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
1158         (utils.o): Likewise.
1159         * trans.c: Include tree-iterator.h.
1160         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
1161         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
1162         (set_expr_location_from_node): Likewise.
1163         (gigi): Tuplify.
1164         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
1165         of GENERIC_NEXT.
1166         * utils.c: Include tree-iterator.h.
1167         * gigi.h (gnat_gimplify_expr): Adjust prototype.
1168
1169         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
1170
1171         * trans.c: Include gimple.h instead of tree-gimple.h.
1172         * utils.c: Same.
1173
1174         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
1175
1176         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
1177
1178 2008-07-25  Jan Hubicka  <jh@suse.cz>
1179
1180         * utils.c (end_subprog_body): Remove inline trees check.
1181         * misc.c (gnat_post_options): Do not set flag_inline_trees.
1182
1183 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1184
1185         * raise-gcc.c: Move tsystem.h before tm.h.
1186
1187 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
1188
1189         * gnathtml.pl: New file.
1190
1191 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1192
1193         * targtyps.c (get_target_default_allocator_alignment): Use
1194         MALLOC_ABI_ALIGNMENT.
1195
1196 2008-07-17  Olivier Hainque  <hainque@adacore.com>
1197
1198         * adaint.c (__MINGW32__ section): Include ctype.h and define
1199         a fallback ISALPHA if IN_RTS.
1200         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha. 
1201
1202 2008-07-17  Olivier Hainque  <hainque@adacore.com>
1203
1204         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
1205         argument, to apply to references in addition to definitions.  Prevent
1206         setting TREE_STATIC on externals.
1207         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
1208
1209 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1210
1211         PR documentation/15479
1212         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
1213         Replace backets around optional parameters with @ovar
1214         where possible, use @r{[}, @r{]} otherwise.
1215         Replace some @r, @i, and @emph with @var where appropriate.
1216
1217 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1218
1219         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
1220
1221 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1222
1223         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
1224         -Wc++-compat warnings.
1225         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
1226         __gnat_locate_exec_on_path): Likewise.
1227         * decl.c (annotate_value): Likewise.
1228         * misc.c (gnat_handle_option): Likewise.
1229         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
1230         post_error_ne_tree): Likewise.
1231
1232 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
1233
1234         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
1235         version of its type, attempt to first convert its elements.
1236
1237 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
1238
1239         * Makefile.in: Fix *86 kfreebsd target specific pairs.
1240
1241 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
1242
1243         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
1244
1245 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1246
1247         * utils2.c (known_alignment): Derive the alignment from pointed-to
1248         types only if it is otherwise unknown.
1249         <INTEGER_CST>: Tidy.
1250         <MULT_EXPR>: Likewise.
1251         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
1252         that of the base.
1253
1254 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1255
1256         PR ada/36573
1257         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
1258
1259 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1260
1261         * gnat_rm.texi (Implementation Defined Characteristics)
1262         (Standard Library Routines): Use @smallexample for indented
1263         text.  Drop Indentation outside examples.
1264         * gnat_ugn.texi: Likewise.
1265
1266 2008-06-13  Olivier Hainque  <hainque@adacore.com>
1267
1268         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
1269         if undefined.
1270         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
1271         realignment with force_align_arg_pointer attribute on foreign
1272         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1273         
1274 2008-06-13  Olivier Hainque  <hainque@adacore.com>
1275
1276         * utils.c (rest_of_record_type_compilation): When computing
1277         encodings for the components of a variable size type, early
1278         strip conversions on the current position expression to make
1279         sure it's shape is visible.  Use remove_conversions for this
1280         purpose.
1281
1282 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1283
1284         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
1285         constrained subtype of a discriminated type, discard the fields that
1286         are beyond its limits according to its size.
1287
1288 2008-06-10  Olivier Hainque  <hainque@adacore.com>
1289
1290         * utils.c (create_subprog_decl): If this is for the 'main' entry
1291         point according to the asm name, redirect main_identifier_node.
1292
1293 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1294
1295         * decl.c (components_to_record): Adjust the packedness for the
1296         qualified union as well.
1297
1298 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
1299
1300         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
1301         checks non fatal.
1302
1303 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
1304
1305         * sem_res.adb (Large_Storage_Type): A type is large if it
1306         requires as many bits as Positive to store its values and its
1307         bounds are known at compile time.
1308         * sem_ch13.adb (Minimum_Size): Note that this function returns
1309         0 if the size is not known at compile time.
1310
1311 2008-06-06  Nicolas Setton  <setton@adacore.com>
1312             Olivier Hainque  <hainque@adacore.com>
1313
1314         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
1315         attribute, parallel descriptive type attached to another
1316         type for debug info generation purposes.
1317         * utils.c (add_parallel_type): New function, register
1318         parallel type to be attached to a type.
1319         (get_parallel_type): New function, fetch a registered
1320         parallel type, if any.
1321         (rest_of_record_type_compilation): Register the parallel
1322         type we make for variable size records.
1323         * gigi.h (add_parallel_type, get_parallel_type): Declare.
1324         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
1325         parallel debug types we make.
1326         * trans.c (extract_encoding, decode_name): New functions.
1327         (gigi): If the DWARF attribute extensions are available, setup
1328         to use them.
1329         * lang.opt: Register language specific processing request
1330         for -gdwarf+.
1331         * misc.c (gnat_dwarf_extensions): New global variable. How much
1332         do we want of our DWARF extensions. 0 by default.
1333         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
1334         (gnat_post_options): Map gnat_dwarf_extensions to the
1335         commonuse_gnu_debug_info_extensions for later processing.
1336         
1337 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
1338
1339         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
1340
1341 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1342
1343         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
1344         * gnat_ugn.texi (Style Checking)
1345         (Adding the Results of Compiler Checks to gnatcheck Output)
1346         (Example of Binder Output File): Fix typos.
1347         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
1348         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
1349         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
1350         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
1351         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
1352         sinfo.ads, utils.c: Fix typos in comments.
1353         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
1354
1355 2008-05-29  Thomas Quinot  <quinot@adacore.com>
1356
1357         * sem_eval.adb: Minor reformatting
1358
1359 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
1360
1361         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
1362         is abstract, do not apply abstractness check on subprogram if this is
1363         a renaming declaration.
1364
1365 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
1366
1367         PR ada/864
1368         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
1369         allow recognition of program suffix in addition to prefix.
1370         
1371         * gnatchop.adb (Locate_Executable): Add support for prefix.
1372         
1373         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
1374         mlib-utl.adb: Adjust calls to Program_Name.
1375
1376 2008-05-29  Robert Dewar  <dewar@adacore.com>
1377
1378         * sem_ch3.adb: Minor reformatting
1379         * sem_prag.adb: Minor reformatting
1380         * sem_res.adb: Minor reformatting
1381         * sinput-p.ads: Minor reformatting
1382
1383 2008-05-29  Javier Miranda  <miranda@adacore.com>
1384
1385         * sem_util.adb:
1386         (Abstract_Interface_List): Add missing support for full type-declaration
1387         associated with synchronized types.
1388
1389 2008-05-29  Robert Dewar  <dewar@adacore.com>
1390
1391         * sem_eval.adb (Is_Same_Value): Take care of several more cases
1392
1393 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
1394
1395         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
1396         access type, wrap the expression in a conversion to force an
1397         accessibility check.
1398
1399         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
1400         accessibility checks even when expansion is disabled in order to
1401         generate messages in the presence of previous errors or in
1402         semantics-only mode.
1403
1404 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
1405
1406         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
1407         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
1408
1409 2008-05-28  Vincent Celier  <celier@adacore.com>
1410
1411         PR ada/34446
1412         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
1413         preprocessing expressions
1414
1415 2008-05-28  Vincent Celier  <celier@adacore.com>
1416
1417         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
1418         for preprocessing
1419         
1420         * sinput-p.ads: Minor comment update and reformatting
1421
1422 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
1423
1424         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
1425         type has a deeper level than any master only when it is the type of an
1426         access parameter.
1427
1428 2008-05-28  Javier Miranda  <miranda@adacore.com>
1429
1430         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
1431
1432 2008-05-28  Javier Miranda  <miranda@adacore.com>
1433
1434         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
1435         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
1436         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
1437         Add code that was previously located in
1438         Find_Overridden_Synchronized_Primitive because it is only used here.
1439
1440 2008-05-28  Sergey Rybin  <rybin@adacore.com>
1441
1442         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
1443         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
1444
1445 2008-05-28  Robert Dewar  <dewar@adacore.com>
1446
1447         * restrict.ads:
1448         Add missing restrictions, and properly label all GNAT defined ones
1449         
1450         * rtsfind.ads:
1451         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
1452         Add entry for Ada.Task_Termination.Set_Specific_Handler
1453         Add entry for Ada.Task_Termination.Specific_Handler
1454         
1455         * s-rident.ads:
1456         Add missing restrictions and properly mark all gnat defined ones
1457         
1458         * sem_ch3.adb:
1459         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
1460         
1461         * sem_res.adb:
1462         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1463
1464         * gnat_rm.texi: Add missing restrictions, and properly label all
1465         GNAT defined ones
1466
1467 2008-05-28  Robert Dewar  <dewar@adacore.com>
1468
1469         * restrict.adb:
1470         (Check_Restriction): violation of restriction No_Finalization is
1471         treated as a serious error to stop expansion
1472
1473 2008-05-28  Robert Dewar  <dewar@adacore.com>
1474
1475         * exp_util.adb: Minor reformatting
1476         * exp_util.ads: Minor reformatting.
1477
1478 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
1479
1480         * Make-lang.in: Remove gprmake.
1481
1482         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
1483
1484 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
1485
1486         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
1487         improper progenitor names, and avoid cascaded errors.
1488
1489 2008-05-28  Robert Dewar  <dewar@adacore.com>
1490
1491         * gnat_rm.texi: Add note on Old giving warning when applied to constant
1492
1493         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
1494         a constant
1495
1496 2008-05-28  Robert Dewar  <dewar@adacore.com>
1497
1498         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
1499         size
1500
1501 2008-05-28  Robert Dewar  <dewar@adacore.com>
1502
1503         * exp_ch5.adb:
1504         (Expand_Simple_Function_Return): Copy unaligned result into temporary
1505
1506 2008-05-28  Javier Miranda  <miranda@adacore.com>
1507
1508         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
1509         for user-defined predefined primitives.
1510         
1511         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
1512         (Find_Overridden_Synchronized_Primitive): Ditto.
1513
1514         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
1515
1516 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
1517
1518         * a-ststio.adb, s-direio.adb:
1519         Further code clean up of previous change.
1520         Update comments.
1521
1522 2008-05-27  Vincent Celier  <celier@adacore.com>
1523
1524         * prj-nmsc.adb: Minor reformatting
1525
1526 2008-05-27  Bob Duff  <duff@adacore.com>
1527
1528         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
1529         untagged private type with a tagged full type, where the full type has
1530         a self reference, create the corresponding class-wide type early, in
1531         case the self reference is "access T'Class".
1532
1533 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
1534
1535         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
1536         tasks and context is an object declaration. create master entity before
1537         expansion.
1538
1539 2008-05-27  Robert Dewar  <dewar@adacore.com>
1540
1541         * mlib-prj.adb: Minor reformatting
1542
1543         * prj-part.adb: Minor reformatting
1544
1545         * prj.ads: Minor reformatting
1546
1547         * exp_ch3.adb: Minor reformatting.
1548
1549         * sem_ch3.ads: Minor reformatting
1550
1551         * sem_eval.adb: Minor reformatting
1552
1553 2008-05-27  Vincent Celier  <celier@adacore.com>
1554
1555         * gnatcmd.adb:
1556         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
1557
1558 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
1559
1560         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
1561         tasks, create an activation chain now, before the expansion into
1562         assignments and build-in-place calls that require the presence of an
1563         activation chain.
1564         (Backend_Processing_Possible): If the component type is inherently
1565         limited, the aggregate must be expanded into individual built-in-place
1566         assignments.
1567
1568         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
1569         determine whether an allocation extra parameter must be built, to
1570         handle case of a private type whose full type is a discriminated type
1571         with defaults.
1572
1573 2008-05-27  Bob Duff  <duff@adacore.com>
1574
1575         * gnat_rm.texi:
1576         Document the new behavior regarding trampolines.
1577
1578 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
1579
1580         * a-direio.adb, a-sequio.adb: Replace address clause by
1581         unrestricted_access, simpler and compatible with .NET.
1582
1583 2008-05-27  Vincent Celier  <celier@adacore.com>
1584
1585         * prj-part.adb:
1586         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
1587         a project file, so that symbolic links are not resolved.
1588
1589 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
1590
1591         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
1592         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
1593         portable across GNAT targets, since this kind of address clause is not
1594         supported by VM back-ends (.NET/JGNAT).
1595
1596 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
1597
1598         * bindgen.adb: Update comments.
1599         
1600         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
1601
1602 2008-05-27  Vincent Celier  <celier@adacore.com>
1603
1604         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
1605         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
1606         mlib-tgt.adb, prj-env.adb, prj-env.ads:
1607         (Path_Information): New record type
1608         Use component of type Path_Information when there are two paths, one in
1609         canonical format and one in display format.
1610         Update the project manager to these new components.
1611
1612 2008-05-27  Robert Dewar  <dewar@adacore.com>
1613
1614         * makeutl.adb: Minor reformatting
1615         * prj-nmsc.adb: Minor reformatting
1616         * s-stausa.adb: Minor reformatting
1617         * s-stausa.ads: Minor reformatting
1618         * sem_ch6.adb: Minor reformatting
1619
1620 2008-05-27  Thomas Quinot  <quinot@adacore.com>
1621
1622         * sem_res.adb: Minor comment fixes
1623
1624 2008-05-27  Thomas Quinot  <quinot@adacore.com>
1625
1626         * makeutl.adb: Minor code reorganization
1627
1628         * exp_aggr.adb: Add ??? comment
1629         Fix typo
1630
1631         * exp_ch6.adb: Minor reformatting
1632
1633 2008-05-27  Quentin Ochem  <ochem@adacore.com>
1634
1635         * s-stausa.adb (Initialize): Updated result initialization, and
1636         initialization of environment stack.
1637         (Fill_Stack): Improved computation of the pattern zone, taking into
1638         account already filled at the calling point.
1639         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
1640         Measure and Overflow_Guard.
1641         (Report_Result): Fixed computation of the result using new fields of
1642         Stack_Analyzer.
1643         
1644         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
1645         params by more explicit Stack_Size / Max_Pattern_Size params.
1646         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
1647         Added Stack_Used_When_Filling field.
1648         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
1649         Min_Measure and Max_Measure fields.
1650         
1651         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
1652
1653 2008-05-27  Vincent Celier  <celier@adacore.com>
1654
1655         * prj-nmsc.adb:
1656         (Check_File): Make sure that a unit that replaces the same unit in a
1657          project being extended is properly processed.
1658
1659 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
1660
1661         * sem_ch3.adb:
1662         (Get_Discr_Value): Remove obsolete code that failed to find the value
1663         of a discriminant for an inherited task component appearing in a type
1664         extension.
1665
1666 2008-05-27  Thomas Quinot  <quinot@adacore.com>
1667
1668         (System.File_IO.{Close, Delete, Reset}):
1669         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
1670         
1671         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
1672         Pass File parameter by reference.
1673
1674 2008-05-27  Vincent Celier  <celier@adacore.com>
1675
1676         * prj-nmsc.adb:
1677         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
1678         sources of the same project that have the same object file name.
1679         (Find_Explicit_Sources): Always remove a source exception that was not
1680         found.
1681
1682 2008-05-27  Thomas Quinot  <quinot@adacore.com>
1683
1684         * sem_ch3.adb: Minor reformatting
1685
1686 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
1687
1688         * sem_ch6.adb:
1689         (Is_Interface_Conformant): Handle properly a primitive operation that
1690         overrides an interface function with a controlling access result.
1691         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
1692         inherited and overriding operations, omit as well the conformance check
1693         on result types, to prevent spurious errors.
1694
1695 2008-05-27  Vincent Celier  <celier@adacore.com>
1696
1697         * makeutl.ads, makeutl.adb:
1698         (Set_Location): New procedure
1699         (Get_Location): New function
1700         (Update_Main): New procedure
1701
1702 2008-05-27  Vincent Celier  <celier@adacore.com>
1703
1704         * prj-nmsc.adb:
1705         (Check_Library): Allow standard project to be extended as a static
1706         library project.
1707         (Get_Mains): Do not inherit attribute Main in an extending library
1708         project.
1709
1710 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
1711
1712         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
1713         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
1714         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
1715         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
1716         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
1717         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
1718         * system-mingw.ads (Always_Compatible_Rep): Likewise.
1719         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
1720         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
1721         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
1722         
1723 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
1724
1725         * sem_attr.adb: add guard to previous patch.
1726
1727 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
1728
1729         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
1730         a synchronized tagged type, do not attempt to build dispatch table for
1731         full view. The table is built for the corresponding record type, which
1732         has its own declaration.
1733
1734 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
1735
1736         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
1737         to the known type entity E, rather than setting it to Any_Type. Fixes
1738         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
1739         for objects whose type had an illegal constraint.
1740
1741 2008-05-27  Vincent Celier  <celier@adacore.com>
1742
1743         * gnat_ugn.texi:
1744         Add succinct documentation for attribute Excluded_Source_List_File
1745
1746 2008-05-27  Vincent Celier  <celier@adacore.com>
1747
1748         * prj-attr.adb: Add new project level attribute Map_File_Option
1749         
1750         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
1751         
1752         * prj.ads: Minor reformatting and comment update
1753         (Project_Configuration): New component Map_File_Option
1754         
1755         * snames.adb: New standard name Map_File_Option
1756         
1757         * snames.ads: New standard name Map_File_Option
1758
1759 2008-05-27  Vincent Celier  <celier@adacore.com>
1760
1761         * xsnames.adb: Remove unused variable Oname
1762
1763 2008-05-27  Doug Rupp  <rupp@adacore.com>
1764
1765         * exp_ch6.adb:
1766         (Expand_N_Function_Call): Fix comments. Minor reformatting.
1767
1768         * exp_vfpt.ads:
1769         (Expand_Vax_Foreign_Return): Fix comments.
1770
1771 2008-05-27  Thomas Quinot  <quinot@adacore.com>
1772
1773         * exp_dist.adb: Minor reformating
1774
1775 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
1776
1777         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
1778         No_Default_Initialization, which is now delayed until the freeze point
1779         of the object. Add a comment about deferral of the check.
1780         
1781         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
1782         on objects is moved here.
1783
1784 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1785
1786         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
1787         (Compare_Array_S16): Adjust for above change.
1788         * s-casi32.adb (Uword): Likewise.
1789         (Compare_Array_S32): Likewise.
1790         * s-casi64.adb (Uword): Likewise.
1791         (Compare_Array_S64): Likewise.
1792         * s-caun16.adb (Uhalf): Likewise.
1793         (Compare_Array_U16): Likewise.
1794         * s-caun32.adb (Uword): Likewise.
1795         (Compare_Array_U32): Likewise.
1796         * s-caun64.adb (Uword): Likewise.
1797         (Compare_Array_U64): Likewise.
1798         
1799 2008-05-26  Robert Dewar  <dewar@adacore.com>
1800
1801         * exp_ch6.adb: Add ??? comment for previous change
1802
1803         * exp_vfpt.adb: Minor reformatting
1804
1805         * exp_vfpt.ads: Add ??? comment for last change
1806
1807         * sem_attr.adb: Add some ??? comments for previous change
1808
1809         * s-vaflop.ads: Add comments for previous change
1810
1811 2008-05-26  Doug Rupp  <rupp@adacore.com>
1812
1813         * s-vaflop-vms-alpha.adb:
1814         Remove System.IO use clause, to prevent spurious ambiguities when
1815         package is access through rtsfind.
1816
1817 2008-05-26  Sergey Rybin  <rybin@adacore.com>
1818
1819         * tree_io.ads (ASIS_Version_Number): Update because of the changes
1820         made in front-end
1821
1822 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
1823
1824         * sem_attr.adb:
1825         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
1826         converted to S (A)'address only if A .. B is known to be a non-null
1827         range.
1828
1829 2008-05-26  Doug Rupp  <rupp@adacore.com>
1830
1831         * s-vaflop.adb:
1832         (Return_D, Return_F, Return_G): New functions.
1833
1834         * s-vaflop.ads:
1835         (Return_D, Return_F, Return_G): New functions.
1836
1837         * exp_vfpt.adb:
1838         (Expand_Vax_Foreign_Return): New procedure
1839
1840         * exp_vfpt.ads:
1841         (Expand_Vax_Foreign_Return): New procedure
1842
1843         * rtsfind.ads:
1844         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
1845         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
1846
1847         * exp_ch6.adb:
1848         Import Exp_Vfpt
1849         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
1850
1851         * s-vaflop-vms-alpha.adb:
1852         (Return_D, Return_F, Return_G): New functions.
1853
1854 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
1855
1856         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
1857         init proc entity when there is actual default initialization associated
1858         with the component type, to avoid spurious errors on objects of scalar
1859         array types that are marked Is_Public when No_Default_Initialization
1860         applies.
1861
1862 2008-05-26  Thomas Quinot  <quinot@adacore.com>
1863
1864         * rtsfind.ads, rtsfind.adb:
1865         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
1866         (Check_RPC): Support per-PCS-kind API versioning.
1867         
1868         exp_dist.ads, exp_dist.adb:
1869         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
1870         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
1871          library function Get_RACW.
1872         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
1873         library function Get_Reference.
1874         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
1875         through an intermediate Any.
1876         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
1877         going through an intermediate Any.
1878         
1879         * sem_dist.adb: Minor reformatting.
1880
1881 2008-05-26  Javier Miranda  <miranda@adacore.com>
1882
1883         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
1884         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1885         (Is_Internal): Adding documentation on internal entities that have
1886         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
1887
1888         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
1889         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1890         Added assertion to force entities with this attribute to have
1891         attribute Is_Internal set to True.
1892         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
1893
1894         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
1895         renamed as Derive_Progenitor_Subprograms. In addition, its code is
1896         a new implementation.
1897         (Add_Interface_Tag_Components): Remove special management of
1898         synchronized interfaces.
1899         (Analyze_Interface_Declaration): Minor reformating
1900         (Build_Derived_Record_Type): Minor reformating
1901         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
1902         predefined primitive inherited from interface type because the body of
1903         internally generated predefined primitives of tagged types are generated
1904         later by Freeze_Type
1905         (Derive_Subprogram): Avoid generating an internal name if the parent
1906         subprogram overrides an interface primitive.
1907         (Derive_Subprograms): New implementation that keeps separate the
1908         management of tagged types not implementing interfaces, from tagged
1909         types that implement interfaces.
1910         (Is_Progenitor): New implementation.
1911         (Process_Full_View): Add documentation
1912         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
1913         by call to Derive_Progenitor_Subprograms.
1914
1915         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
1916         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1917         Skip_Controlling_Formals.
1918
1919         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
1920         (Check_Conventions): New implementation. Remove local subprogram
1921         Skip_Check. Remove formal Search_From of routine Check_Convention.
1922         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1923         Skip_Controlling_Formals.
1924         (New_Overloaded_Entity): Enable addition of predefined dispatching
1925         operations.
1926
1927         * sem_disp.ads
1928         (Find_Primitive_Covering_Interface): New subprogram.
1929
1930         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
1931         the task body procedure as a primitive of the corresponding tagged
1932         type.
1933         (Check_Operation_From_Private_Type): Avoid adding twice an entity
1934         to the list of primitives.
1935         (Find_Primitive_Covering_Interface): New subprogram.
1936         (Override_Dispatching_Operation): Add documentation.
1937
1938         * sem_type.adb (Covers): Minor reformatings
1939
1940         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
1941         Collect_Interfaces.
1942         Rename formal.
1943         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
1944         (Implements_Interface): New subprogram.
1945         (Is_Parent): Removed.
1946         (Primitive_Names_Match): New subprogram.
1947         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1948         (Ultimate_Alias): New subprogram.
1949
1950         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
1951         Collect_Interfaces.
1952         Remove special management for synchronized types. Rename formal. Remove
1953         internal subprograms Interface_Present_In_Parent and Add_Interface.
1954         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
1955         on non-record types by code to return false in such case.
1956         (Implements_Interface): New subprogram.
1957         (Is_Parent): Removed. No special management is now required for
1958         synchronized types covering interfaces.
1959         (Primitive_Names_Match): New subprogram.
1960         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1961         (Ultimate_Alias): New subprogram.
1962
1963         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
1964         Add internal entities associated with secondary dispatch tables to
1965         the list of tagged type primitives that are not interfaces.
1966         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
1967         (Make_Predefined_Primitive_Specs): Code reorganization to improve
1968         the management of predefined equality operator. In addition, if
1969         the type has an equality function corresponding with a primitive
1970         defined in an interface type, the inherited equality is abstract
1971         as well, and no body can be created for it.
1972
1973         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
1974         exp_util to exp_disp.
1975         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
1976         an entity corresponds with one of the predefined primitives required
1977         to implement interfaces.
1978         Update copyright notice.
1979
1980         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
1981         final check on abstract subprograms all the primitives associated with
1982         interface primitives because they must be visible in the public and
1983         private part.
1984         (Write_DT): Use Find_Dispatching_Type to locate the name of the
1985         interface type. This allows the use of this routine, for debugging
1986         purposes, when the tagged type is not fully decorated.
1987         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
1988         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
1989         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
1990         entity corresponds with one of the predefined primitives required to
1991         implement interfaces.
1992
1993         * exp_util.adb (Find_Interface_ADT): New implementation
1994         (Find_Interface): Removed.
1995
1996         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
1997         list of interfaces associated with nodes
1998         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
1999
2000 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2001
2002         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
2003         condition for assignment to temporary.
2004
2005 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2006
2007         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
2008         checks on the upper bound if the index type is a modular type, to
2009         prevent wrap-around computations when size is close to upper bound of
2010         type.
2011
2012 2008-05-26  Robert Dewar  <dewar@adacore.com>
2013
2014         * sem_ch3.adb: Minor reformatting
2015
2016 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2017
2018         * sem_ch12.adb (Remove_Parent): Use specification of instance
2019         to retrieve generic parent,
2020         to handle properly the case where the instance is a child unit.
2021         Add guard to handle properly wrapper packages.
2022         Minor reformatting
2023
2024 2008-05-26  Thomas Quinot  <quinot@adacore.com>
2025
2026         * sinfo.ads: Minor reformatting
2027
2028 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
2029
2030         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
2031         Generate a tag check when the result subtype of a function, defined by
2032         an access definition, designates a specific tagged type.
2033         (Make_Tag_Check): New routine.
2034
2035 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
2036
2037         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
2038
2039 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2040
2041         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
2042         (builtin_decl_for): Likewise.
2043         * trans.c (gigi): Likewise.
2044         * utils.c (def_builtin_1): Fix formatting.
2045
2046 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
2047
2048         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
2049         Create the statements which map a string name to protected or task
2050         entry indix.
2051
2052         * exp_ch9.adb: Add with and use clause for Stringt.
2053         Minor code reformatting.
2054         (Build_Entry_Names): New routine.
2055         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
2056         for flag Build_Entry_Names which controls the allocation of the data
2057         structure for the string names of entries.
2058
2059         * exp_ch9.ads (Build_Entry_Names): New subprogram.
2060
2061         * exp_util.adb (Entry_Names_OK): New function.
2062
2063         * exp_util.ads (Entry_Names_OK): New function.
2064
2065         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
2066         enumerations RE_Id and RE_Unit_Table.
2067
2068         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
2069         (Free_Entry_Names_Array): New routine.
2070
2071         * s-taskin.ads: Comment reformatting.
2072         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
2073         Add component Entry_Names to record Ada_Task_Control_Block.
2074         (Free_Entry_Names_Array): New routine.
2075
2076         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
2077         dynamically allocate an array
2078         of string pointers. This structure holds string entry names.
2079         (Free_Entry_Names): New routine.
2080         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
2081         (Set_Entry_Names): New routine.
2082
2083         * s-tassta.ads:
2084         (Create_Task): Add formal Build_Entry_Names. The flag is used to
2085         control the allocation of the data structure which stores entry names.
2086         (Set_Entry_Name): New routine.
2087
2088         * s-tpoben.adb:
2089         Add with and use clause for Ada.Unchecked_Conversion.
2090         (Finalize): Deallocate the entry names array.
2091         (Free_Entry_Names): New routine.
2092         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
2093         create an array of string pointers to hold the entry names.
2094         (Set_Entry_Name): New routine.
2095
2096         * s-tpoben.ads:
2097         Add field Entry_Names to record Protection_Entries.
2098         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
2099         (Set_Entry_Name): New routine.
2100
2101 2008-05-26  Vincent Celier  <celier@adacore.com>
2102
2103         * prj-nmsc.adb:
2104         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
2105
2106         * prj.ads:
2107         (Project_Configuration): New component Shared_Lib_Driver
2108
2109 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2110
2111         * inline.adb:
2112         (Cleanup_Scopes): For a protected operation, transfer finalization list
2113         to protected body subprogram, to force cleanup actions when needed.
2114
2115 2008-05-26  Robert Dewar  <dewar@adacore.com>
2116
2117         * sem_cat.adb: Minor reformatting
2118
2119         * gnatname.adb: Minor reformatting
2120
2121         * osint.ads: Minor reformatting
2122
2123         * s-carun8.ads: Minor reformatting
2124
2125         * g-heasor.ads: Minor comment fix (unit is now pure)
2126
2127 2008-05-26  Robert Dewar  <dewar@adacore.com>
2128
2129         * exp_ch2.adb:
2130         (Expand_Current_Value): Properly type generated integer literal
2131
2132 2008-05-26  Sergey Rybin  <rybin@adacore.com>
2133
2134         * gnat_ugn.texi: Add description for the new gnatcheck rule -
2135         Separate_Numeric_Error_Handlers.
2136
2137 2008-05-26  Pascal Obry  <obry@adacore.com>
2138
2139         * sem_aggr.adb: Minor reformatting.
2140
2141 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
2142
2143         * s-osinte-aix.adb:
2144         (To_Target_Priority): Setting the time slice value to 0 or greater sets
2145         the scheduling policy to FIFO within priorities or round-robin
2146         respectively.
2147         Hence, the priority must be set in this case to the one selected by the
2148         user.
2149         
2150 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
2151
2152         * sem_ch12.adb:
2153         (Remove_Parent): If the enclosing scope is an instance whose generic
2154         parent is declared within some parent scope of the just completed
2155         instance, make full views of the entities in that parent visible, when
2156         applicable.
2157         
2158 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
2159
2160         * mingw32.h (STD_MINGW): Set to true for target w64.
2161
2162 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2163
2164         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
2165         instead of TREE_STATIC on the ADDR_EXPR.
2166
2167 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2168
2169         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
2170         (Sloc_to_locus): Do not overwrite known GCC locations when translating
2171         GNAT standard locations.
2172
2173 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2174
2175         * gigi.h (mark_visited): Declare.
2176         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
2177         only the topmost node of expressions.
2178         (elaborate_expression_1): Look deeper for read-only variables.
2179         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
2180         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
2181         (mark_visited_r): New function.
2182
2183 2008-05-23  Vincent Celier  <celier@adacore.com>
2184
2185         * snames.adb: New standard name Excluded_Source_List_File.
2186
2187         * snames.ads: New standard name Excluded_Source_List_File.
2188
2189         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
2190
2191         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
2192         Get excluded sources from
2193         file indicated by attribute Excluded_Source_List_File, when present and
2194         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
2195
2196 2008-05-23  Robert Dewar  <dewar@adacore.com>
2197
2198         * exp_dist.adb: Minor reformatting
2199
2200 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
2201
2202         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
2203         slice, convert it to an indexed component, which is equivalent, more
2204         efficient, and usable even if the slice itself is not addressable.
2205
2206 2008-05-23  Olivier Hainque  <hainque@adacore.com>
2207
2208         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
2209         convention also allows access to named compiler built-in subprograms
2210         such as the GCC __builtin family.
2211
2212 2008-05-23  Vincent Celier  <celier@adacore.com>
2213
2214         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
2215         sep. If there are several possibilities, choose the one with the
2216         longer prefix.
2217
2218 2008-05-23  Vincent Celier  <celier@adacore.com>
2219
2220         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
2221         back end switches when executable specified with --GCC= is same as
2222         default, even if there are additional options.
2223
2224         * gnat_ugn.texi:
2225         Document when the back end switches from the ALI file are taken into
2226         account when gnatlink is invoked with --GCC=
2227
2228 2008-05-23  Thomas Quinot  <quinot@adacore.com>
2229
2230         * s-os_lib.adb:
2231         (copy_File): Do not open destination file if source file is unreadable.
2232
2233 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2234
2235         * utils.c (handle_type_generic_attribute): Adjust to accept
2236         fixed arguments before an elipsis.
2237
2238 2008-05-21  Thomas Quinot  <quinot@adacore.com>
2239
2240         * g-sothco.ads, g-sothco.adb: New files.
2241
2242 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2243
2244         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
2245
2246         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
2247         Add missing "with" of Ada.Unchecked_Conversion
2248
2249         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, 
2250         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, 
2251         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, 
2252         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, 
2253         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, 
2254         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: 
2255         Move common code out of GNAT.Sockets.Thin implementations and into
2256         Thin_Common.
2257         New constant SIZEOF_fd_set
2258         New flag Has_Sockaddr_Len
2259         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2260
2261         * g-stsifd-sockets.adb
2262         (Create): Remove call to Set_Length; use Set_Family to set the family
2263         and (on appropriate platforms) length fields in struct sockaddr.
2264
2265         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, 
2266         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, 
2267         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
2268         Move common code out of GNAT.Sockets.Thin implementations and into
2269         Thin_Common.
2270
2271         * g-socket.ads, g-socket.adb: 
2272         Move common code out of GNAT.Sockets.Thin implementations and into
2273         Thin_Common.
2274         (Connect_Socket, Accept_Socket): Provide new versions of these two
2275         routines that operate with a user specified timeout.
2276         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
2277         this is now handled automatically by Set_Family on platforms that
2278         require it.
2279
2280         * gen-soccon.c: 
2281         Move common code out of GNAT.Sockets.Thin implementations and into
2282         Thin_Common.
2283         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
2284         this constant to 0 (not -1) because we use it to initialize an
2285         unsigned_char value.
2286         Align values for numeric constants only.
2287         Handle the case of systems that do not support AF_INET6.
2288         New constant SIZEOF_fd_set
2289         New flag Has_Sockaddr_Len
2290         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2291
2292         * gsocket.h: New flag Has_Sockaddr_Len
2293         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2294
2295 2008-05-20  Santiago Uruena  <uruena@adacore.com>
2296
2297         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
2298
2299 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
2300
2301         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
2302         the underlying issue with malloc/free has been fixed. Remove associated
2303         comments.
2304         Minor reformatting.
2305         Related to PR ada/24533
2306
2307 2008-05-20  Robert Dewar  <dewar@adacore.com>
2308
2309         * ali.adb: Correct casing of ASCII.NUL
2310
2311         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
2312         properly.
2313
2314 2008-05-20  Robert Dewar  <dewar@adacore.com>
2315             Gary Dismukes  <dismukes@adacore.com>
2316
2317         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
2318         overflow if result converted to wider integer type.
2319         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
2320         discriminated types when discriminant checks are suppressed.
2321
2322 2008-05-20  Vincent Celier  <celier@adacore.com>
2323
2324         * cstand.adb (Print_Standard): Issue the correct Size clause for type
2325         Wide_Wide_Character.
2326
2327 2008-05-20  Tristan Gingold  <gingold@adacore.com>
2328
2329         * decl.c: Do not emit a variable for a object that has an address
2330         representation clause whose value is known at compile time.
2331         When a variable has an address clause whose value is known at compile
2332         time, refer to this variable by using directly the address instead of
2333         dereferencing a pointer.
2334
2335 2008-05-20  Robert Dewar  <dewar@adacore.com>
2336
2337         PR ada/30740
2338         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
2339         subtypes, always False for non-modular types.
2340         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
2341         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
2342         for Shared_Storage package.
2343         (Is_RACW_Stub_Type): New entity flag.
2344
2345         * exp_ch4.adb
2346         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
2347         case where we have a modular type with a non-binary modules.
2348         Comments reformattings.
2349
2350         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
2351         all types.
2352
2353 2008-05-20  Javier Miranda  <miranda@adacore.com>
2354
2355         * exp_aggr.adb
2356         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
2357         tests did not covered the case in which the type of the aggregate has
2358         no progenitors but some its parents has progenitors.
2359
2360 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
2361             Hristian Kirtchev  <kirtchev@adacore.com>
2362
2363         * exp_ch3.adb
2364         (Expand_N_Object_Declaration): Correct the condition which triggers the
2365         generation of a call to Displace when initializing a class-wide object.
2366         (Build_Dcheck_Functions): Build discriminant-checking for null variants
2367         when Frontend_Layout_On_Target is true to ensure that they're available
2368         for calling when a record variant size function is built in Layout.
2369
2370 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2371
2372         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2373         procedure for a derived type retrieve the discriminant values from the
2374         parent using the corresponding discriminant.
2375         (Expand_N_Assignment_Statement): Skip generation of implicit
2376         if-statement associated with controlled types if we are
2377         compiling with restriction No_Finalization.
2378
2379 2008-05-20  Vincent Celier  <celier@adacore.com>
2380
2381         * prj.adb (Hash (Project_Id)): New function
2382         (Project_Empty): Add new component Interfaces_Defined
2383
2384         * prj.ads (Source_Data): New component Object_Linked
2385         (Language_Config): New components Object_Generated and Objects_Linked
2386         (Hash (Project_Id)): New function
2387         (Source_Data): New Boolean components In_Interfaces and
2388         Declared_In_Interfaces.
2389         (Project_Data): New Boolean component Interfaces_Defined
2390
2391         * prj-attr.adb: 
2392         New project level attribute Object_Generated and Objects_Linked
2393         Add new project level attribute Interfaces
2394
2395         * prj-dect.adb: Use functions Present and No throughout
2396         (Parse_Variable_Declaration): If a string type is specified as a simple
2397         name and is not found in the current project, look for it also in the
2398         ancestors of the project.
2399
2400         * prj-makr.adb: 
2401         Replace procedure Make with procedures Initialize, Process and Finalize
2402         to implement H414-023: process different directories with different
2403         patterns.
2404         Use functions Present and No throughout
2405
2406         * prj-makr.ads: 
2407         Replace procedure Make with procedures Initialize, Process and Finalize
2408
2409         * prj-nmsc.adb
2410         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
2411         the language configuration.
2412         (Process_Project_Level_Array_Attributes): Process new attributes
2413         Object_Generated and Object_Linked.
2414         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
2415         False, to indicate that the erreor/warning is a continuation.
2416         (Check): Call Report_No_Sources with Contnuation = True after the first
2417         call.
2418         (Error_Msg): Process successively contnuation character and warning
2419         character.
2420         (Find_Explicit_Sources): Check that all declared sources have been found
2421         (Check_File): Indicate in hash table Source_Names when a declared source
2422         is found.
2423         (Check_File): Set Other_Part when found
2424         (Find_Explicit_Sources): In multi language mode, check if all exceptions
2425         to the naming scheme have been found. For Ada, report an error if an
2426         exception has not been found. Otherwise, disregard the exception.
2427         (Check_Interfaces): New procedure
2428         (Add_Source): When Other_Part is defined, set mutual pointers in spec
2429         and body.
2430         (Check): In multi-language mode, call Check_Interfaces
2431         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
2432         for an excluded source.
2433         (Remove_Source): A source replacing a source in the interfaces is also
2434         in the interfaces.
2435
2436         * prj-pars.adb: Use function Present
2437
2438         * prj-part.adb: Use functions Present and No throughout
2439         (Parse_Single_Project): Set the parent project for child projects
2440         (Create_Virtual_Extending_Project): Register project with no qualifier
2441         (Parse_Single_Project): Allow an abstract project to be extend several
2442         times. Do not allow an abstract project to extend a non abstract
2443         project.
2444
2445         * prj-pp.adb: Use functions Present and No throughout
2446         (Print): Take into account the full associative array attribute
2447         declarations.
2448
2449         * prj-proc.adb: Use functions Present and No throughout
2450         (Expression): Call itself with the same From_Project_Node for the
2451         default value of an external reference.
2452
2453         * prj-strt.adb: Use functions Present and No throughout
2454         (Parse_Variable_Reference): If a variable is specified as a simple name
2455         and is not found in the current project, look for it also in the
2456         ancestors of the project.
2457
2458         * prj-tree.ads, prj-tree.adb (Present): New function
2459         (No): New function
2460         Use functions Present and No throughout
2461         (Parent_Project_Of): New function
2462         (Set_Parent_Project_Of): New procedure
2463
2464         * snames.ads, snames.adb: 
2465         Add new standard names Object_Generated and Objects_Linked
2466
2467 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
2468
2469         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
2470         and the derived type are of the same kind.
2471         (Expand_Call): Generate type conversions for actuals of
2472         record or array types when the parent and the derived types differ in
2473         size and/or packed status.
2474
2475 2008-05-20  Javier Miranda  <miranda@adacore.com>
2476             Ed Schonberg  <schonberg@adacore.com>
2477
2478         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
2479         generating dispatch tables of locally defined tagged types statically.
2480         Remove implicit if-statement that is no longer required.
2481         (Expand_Dispatching_Call): If this is a call to an instance of the
2482         generic dispatching constructor, the type of the first argument may be
2483         a subtype of Tag, so always use the base type to recognize this case.
2484
2485 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2486
2487         * exp_dist.adb
2488         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
2489         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
2490         assigning NULL into the result, to avoid a spurious warning.
2491         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
2492         is not frozen.
2493         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
2494         type.
2495         (Build_From_Any_Function, Build_To_Any_Function,
2496         Build_TypeCode_Function): For a type that has user-specified stream
2497         attributes, use an opaque sequence of octets as the representation.
2498
2499 2008-05-20  Kevin Pouget  <pouget@adacore.com>
2500
2501         * exp_smem.ads, exp_smem.adb: Construction of access and assign
2502         routines has been replaced by an instantiation of
2503         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
2504         shared variable declaration.
2505         Calls to access and assign routines have been replaced by calls to
2506         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
2507         instantiated package.
2508         
2509         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
2510         It identifies the new generic package added in s-shasto.
2511
2512         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
2513         is instantiated for each shared passive variable. It provides
2514         supporting procedures called upon each read or write access by the
2515         expanded code.
2516
2517         * sem_attr.adb:
2518         For this runtime unit (always compiled in GNAT mode), we allow
2519         stream attributes references for limited types for the case where
2520         shared passive objects are implemented using stream attributes,
2521         which is the default in GNAT's persistent storage implementation.
2522
2523 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2524
2525         * freeze.adb
2526         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
2527         convention from its base type, do not set the type to that of integer,
2528         because it may inherit a size clause.
2529         Warn on a size clause with a size different
2530         from that of Integer, if the type has convention C.
2531
2532 2008-05-20  Vincent Celier  <celier@adacore.com>
2533
2534         * gnatname.adb
2535         (Scan_Args): Rewrite to take into account new switch --and to separate
2536         arguments into sections.
2537         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
2538         section, then Finalize.
2539
2540 2008-05-20  Tristan Gingold  <gingold@adacore.com>
2541
2542         * init.c: Enable stack probing on ppc-linux.
2543
2544         * tracebak.c: Add symbolic traceback for ppc-linux.
2545
2546         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
2547
2548 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
2549
2550         * Makefile.in
2551         (common-tools): New rule, to avoid parallel build failure on gnat tools.
2552         Reenable parallel builds on this Makefile.
2553
2554         * Make-lang.in: Update dependencies.
2555
2556 2008-05-20  Robert Dewar  <dewar@adacore.com>
2557
2558         * opt.ads (Treat_Restrictions_As_Warnings): New switch
2559
2560         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
2561         Treat_Restrictions_As_Warnings.
2562
2563         * switch-c.adb: Recognize new switch -gnatr
2564
2565         * usage.adb: Add line for -gnatr
2566
2567 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
2568
2569         * par-ch3.adb
2570         (P_Access_Definition): Change the error message when parsing "access
2571         all" in Ada 95 mode. The message no longer forces the user to recompile
2572         in 05 mode only to discover that anonymous access types are not allowed
2573         to have "all".
2574
2575 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
2576
2577         * par-ch9.adb
2578         (P_Protected): Update the error message on missing "-gnat05" switch when
2579         using interfaces in conjunction with protected types. Remove the
2580         incorrect error message associated with the presence of "private" after
2581         a "with".
2582
2583 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2584
2585         * sem_aggr.adb: Update comments.
2586         Improve previous change for PR ada/17985
2587
2588 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2589
2590         * sem_cat.adb
2591         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
2592         the visible part of the spec of a remote types unit.
2593         (Validate_Remote_Access_Object_Type_Declaration):
2594         New local subprogram Is_Valid_Remote_Object_Type, replaces
2595         Is_Recursively_Limited_Private.
2596         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
2597         non-controlling formals (and the return type, even though this is not
2598         explicit in the standard) must support external streaming.
2599         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
2600         as above for of RAS types and RCI subprograms. (The return type is not
2601         checked yet).
2602         Update comments related to RACWs designating limited interfaces per
2603         ARG ruling on AI05-060.
2604
2605         * sem_util.ads, sem_util.adb
2606         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
2607         Is_Remote_Call_Interface to identify RACW types in a stable and
2608         consistent way. We used to rely in this predicate on the privateness of
2609         the designated type and its ancestors, but depending on the currently
2610         visible private parts, this caused false negatives. We now uniformly
2611         rely on checks made at the point where the RACW type is declared.
2612         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
2613
2614 2008-05-20  Javier Miranda  <miranda@adacore.com>
2615             Ed Schonberg  <schonberg@adacore.com>
2616             Hristian Kirtchev  <kirtchev@adacore.com>
2617
2618         * sem_ch3.adb
2619         (Analyze_Object_Declaration): Fix over-conservative condition
2620         restricting use of predefined assignment with tagged types that have
2621         convention CPP.
2622         (Analyze_Object_Declaration): Relax the check regarding deferred
2623         constants declared in scopes other than packages since they can be
2624         completed with pragma Import.
2625         Add missing escaping of all-caps word 'CPP' in error messages.
2626         (Build_Discriminated_Subtype): Do not inherit representation clauses
2627         from parent type if subtype already carries them, because they are
2628         inherited earlier during derivation and already include those that may
2629         come from a partial view.
2630
2631         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
2632         Check the declarations of a subprogram body for proper deferred
2633         constant completion.
2634
2635         * sem_ch7.ads, sem_ch7.adb
2636         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
2637
2638 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2639             Thomas Quinot  <quinot@adacore.com>
2640
2641         * sem_ch4.adb
2642         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
2643         F is a parameterless function that returns an array, and S is a subtype
2644         mark.
2645         (Analyze_Call): Insert dereference when the prefix is a parameterless
2646         function that returns an access to subprogram and the call has
2647         parameters.
2648         Reject a non-overloaded call whose name resolves to denote
2649         a primitive operation of the stub type generated to support a remote
2650         access-to-class-wide type.
2651
2652 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2653
2654         * sem_ch8.adb
2655         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
2656         when there is a use clause for the same entity in the context.
2657         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
2658         created for a stream attribute of an abstract type or interface type.
2659
2660 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2661
2662         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
2663         subprogram.
2664
2665         * sem_type.adb
2666         (Add_One_Interp): Ignore any interpretation that is a primitive
2667         operation of an RACW stub type (these primitives are only executed
2668         through dispatching, never through static calls).
2669         (Collect_Interps): When only one interpretation has been found, set N's
2670         Entity and Etype to that interpretation, otherwise Entity and Etype may
2671         still refer to an interpretation that was ignored by Add_One_Interp,
2672         in which case would end up with being marked as not overloaded but with
2673         an Entity attribute not pointing to its (unique) correct interpretation.
2674
2675 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2676
2677         * sem_eval.adb
2678         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
2679         denotes the whole array of its prefix.
2680
2681 2008-05-20  Robert Dewar  <dewar@adacore.com>
2682
2683         * sem_res.adb (Resolve_Op_Not): Warn on double negation
2684
2685 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2686
2687         * sprint.adb
2688         (Print_Itype): Do not modify the sloc of the component type of a
2689         (packed) array itype, because it is an unrelated type whose source
2690         location is independent of the point of creation of the itype itself.
2691
2692 2008-05-20  Thomas Quinot  <quinot@adacore.com>
2693
2694         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
2695         Append.
2696
2697 2008-05-20  Robert Dewar  <dewar@adacore.com>
2698             Vincent Celier  <celier@adacore.com>
2699
2700         * vms_data.ads: Add entry for -gnatr
2701         Put GNAT SYNC section in proper alpha order
2702         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
2703
2704         * gnat_ugn.texi: Add documentation for new gnatname switch --and
2705         Update the style checks section
2706         Add documentation of -gnatr
2707         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
2708         subsection the explanation how compiler checks should be disabled for
2709         gnatcheck.
2710         Update the list of Ada 95 reserved words used by in the project language
2711         Add documentation for project qualifiers.
2712         Document that abstract projects may be extended by different projects in
2713         the same project tree.
2714         Add documentation for gnatmake switch -d
2715
2716         * ug_words: Add -gnatyy VMS equivalence string.
2717         Add entry for -gnatr
2718
2719 2008-05-20  Bob Duff  <duff@adacore.com>
2720
2721         * a-rttiev.adb
2722         (Set_Handler): Remove code from both of these that implements
2723         RM-D.15(15/2), because it causes a race condition and potential
2724         deadlock.
2725         (Process_Queued_Events): Add comment explaining "exception when others
2726         => null". Add clarifying ".all", even though implicit .all is legal
2727         here.
2728
2729 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
2730
2731         * s-winext.ads: Replace representation clause by pragma Pack. Gives
2732         equivalent representation, but has the advantage of allowing
2733         compilation of this file under 64 bits platforms.
2734
2735         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
2736
2737         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
2738
2739         * adaint.c: 
2740         Don't define dummy implementation of convert_addresses on ppc-linux.
2741
2742 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
2743
2744         * exp_ch7.adb
2745         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
2746         if expression is aggregate component.
2747
2748 2008-05-20  Robert Dewar  <dewar@adacore.com>
2749
2750         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
2751         sem_ch12.adb: Update comments. Minor reformatting.
2752
2753         * exp_ch2.adb: Typo
2754
2755         * s-unstyp.ads: Fixed some typos in comments.
2756
2757 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
2758
2759         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
2760         type/constant.
2761
2762         * g-socthi-vxworks.ads: Update to latest socket changes.
2763
2764         * a-caldel-vms.adb: Resync with a-caldel spec.
2765
2766         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
2767         Update comments.
2768
2769 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
2770
2771         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
2772         for dummy types pointed to by the converted pointer types.
2773
2774 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
2775
2776         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
2777         of records and unions.
2778         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
2779
2780 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
2781             Robert Dewar <dewar@adacore.com>
2782
2783         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
2784         restrictions to the prefix of 'Old.
2785         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
2786         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
2787         variables.
2788
2789 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
2790
2791         PR ada/24880
2792         PR ada/26635
2793         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
2794         expression to an integral type with lower precision, use NOP_EXPR
2795         directly in a couple of special cases.
2796
2797 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
2798             Ed Schonberg <schonberg@adacore.com>
2799
2800         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
2801         constraint expressions.
2802
2803 2008-05-12  Tomas Bily  <tbily@suse.cz>
2804
2805         * utils2.c (known_alignment, contains_save_expr_p)
2806         (gnat_mark_addressable): Use CASE_CONVERT.
2807         * decl.c (annotate_value): Likewise.
2808         * trans.c (maybe_stabilize_reference): Likewise.
2809         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
2810         * utils.c (rest_of_record_type_compilation): Likewise.
2811         * trans.c (protect_multiple_eval, Attribute_to_gnu)
2812         (protect_multiple_eval): Likewise.
2813
2814 2008-05-08  Andreas Schwab  <schwab@suse.de>
2815
2816         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
2817         DECL_IS_PURE to DECL_PURE_P.
2818
2819 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2820
2821         * decl.c (maybe_pad_type): Add ??? comment.
2822
2823 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2824
2825         * decl.c (components_to_record): Zero the alignment of the qualified
2826         union built for the variant part upon creating it.
2827
2828 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2829
2830         * decl.c (maybe_pad_type): Try to get a form of the type with integral
2831         mode even if the alignment is not a factor of the original size.  But
2832         make sure to create the inner field with the original size.  Reorder.
2833         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
2834         record as always addressable.
2835         * utils.c (convert): Deal specially with conversions between original
2836         and packable versions of a record type.
2837         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
2838         recognizing an assignment between padded objects.
2839
2840 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
2841
2842         * decl.c (make_packable_type): Resize the last component to its RM size
2843         only if it is of an aggregate type.
2844         * trans.c (call_to_gnu): Fix nit in comment.
2845         (gnat_to_gnu): Likewise.
2846
2847 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
2848
2849         * Makefile.in: Adapt sh4-linux target.
2850
2851 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
2852
2853         PR ada/35792
2854         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
2855         tagged type by an untagged protected or task type.
2856
2857 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
2858             Tristan Gingold  <gingold@adacore.com>
2859
2860         PR ada/36007
2861         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
2862         of aliased objects with an unconstrained nominal subtype.
2863         Cap the promotion to the effective alignment of the word mode.
2864
2865 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2866
2867         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
2868         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
2869         Use '&&' instead of ';'.
2870
2871 2008-04-24  Olivier Hainque  <hainque@adacore.com>
2872
2873         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
2874         doesn't require signed arithmetic anymore.
2875
2876 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
2877
2878         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
2879         (call_to_gnu): Don't set TREE_INVARIANT.
2880         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
2881
2882 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
2883
2884         * s-osinte-rtems.adb: Add sigalstack function.
2885         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
2886         function. Add Alternate_Stack and Alternate_Stack_Size.
2887         Add missing process_shared field to pthread_condattr_t
2888         and change ss_low_priority to int from timespec.
2889
2890 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
2891
2892         * i-forbla.adb: Link against -llapack and -lblas by default
2893         instead of the private -lgnalasup.
2894
2895 2008-04-21  Olivier Hainque  <hainque@adacore.com>
2896
2897         Access to most C builtins from Ada
2898         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
2899         (handle_pure_attribute, handle_novops_attribute,
2900         handle_nonnull_attribute, handle_sentinel_attribute,
2901         handle_noreturn_attribute, handle_malloc_attribute,
2902         handle_type_generic_attribute): New attribute handlers, from C fe.
2903         (gnat_internal_attribute_table): Map the new handlers.
2904         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
2905         (init_gigi_decls): ... here.
2906         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
2907         Move to a section dedicated to builtins processing.
2908         (build_void_list_node, builtin_type_for_size): New functions.
2909         (def_fn_type, get_nonnull_operand): Likewise.
2910         (install_builtin_elementary_type, install_builtin_function_types,
2911         install_builtin_attributes): Likewise.
2912         (fake_attribute_handler): Fake handler for attributes we don't
2913         support in Ada.
2914         (def_builtin_1): New function, worker for DEF_BUILTIN.
2915         (install_builtin_functions): New function.
2916         (gnat_install_builtins): Move to the builtins processing section.
2917         Now calling the newly introduced installers.
2918
2919 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2920
2921         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
2922         constant objects, but not exceptions.
2923         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
2924         compatibility test.
2925         * utils.c (create_var_decl_1): Likewise.
2926         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
2927         the type when copying to padded object and the source is a constructor.
2928
2929 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2930
2931         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
2932         alignment, reset it to zero if it would end up not being greater
2933         than that of the type.
2934
2935 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2936
2937         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
2938         the padded type has a variable size.
2939
2940 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2941
2942         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
2943         target pointer mechanism as soon as the size is not constant.
2944
2945 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2946
2947         * gigi.h (create_var_decl_1): Declare.
2948         (create_var_decl): Turn into a macro invoking create_var_decl_1.
2949         (create_true_var_decl): Likewise.
2950         * utils.c (create_var_decl_1): Make global and reorder parameters.
2951         (create_var_decl): Delete.
2952         (create_true_var_decl): Likewise.
2953
2954 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2955
2956         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
2957         objects by default.
2958         * fe.h (Debug_Flag_Dot_A): Delete.
2959         * debug.adb (-gnatd.a): Update documentation.
2960
2961 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
2962
2963         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
2964         "not null" parameter.
2965
2966 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
2967
2968         * g-socket.adb: Add a message "IPv6 not supported" to the
2969         Socket_Error exception.
2970
2971 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
2972
2973         PR ada/29015
2974         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
2975         the type is known instead of the underlying type.
2976
2977 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
2978
2979         PR ada/22387
2980         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2981         procedure for a derived type retrieve the discriminant values from
2982         the parent using the corresponding discriminant.
2983
2984 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
2985             Gary Dismukes  <dismukes@adacore.com>
2986
2987         PR ada/28733
2988         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
2989         which is not an entity (and hence not a package).
2990         (End_Use_Package): Ditto.
2991
2992 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
2993
2994         PR ada/16086
2995         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
2996         protected operation that matches the signature, not only an entry, a
2997         regular subprogram or a literal.
2998
2999 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3000
3001         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
3002         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
3003         if a size or alignment is specified.  Do not take into account
3004         alignment promotions for the computation of the object's size.
3005         <type>: Call maybe_pad_type only if a size or alignment is specified.
3006         (maybe_pad_type): Really reuse the RM_Size of the original type if
3007         requested.
3008         * trans.c (Attribute_to_gnu): Fix a couple of nits.
3009         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
3010         statements.  Use the padded view of the type when copying between
3011         padded objects of the same underlying type.
3012
3013 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3014
3015         * vms_data.ads: Fix typo in constant.
3016         * gen-soccon.c: Fix typo in error string.
3017         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
3018         Fix typos.
3019         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
3020         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
3021         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
3022         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
3023         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
3024         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
3025         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
3026         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
3027         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
3028         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
3029         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
3030         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
3031         sinfo.ads: Fix typos in comments.
3032
3033 2008-04-14  Robert Dewar  <dewar@adacore.com>
3034
3035         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
3036         to every non-object and change error message.
3037
3038 2008-04-14  Robert Dewar  <dewar@adacore.com>
3039
3040         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
3041         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
3042         directly.
3043
3044 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3045
3046         PR ada/18680
3047         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
3048         apply pragma Linker_Section on type.
3049
3050 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3051
3052         PR ada/16098
3053         * sem_prag.adb (Error_Pragma_Ref): New.
3054         (Process_Convention): Specialized message for non-local
3055         subprogram renaming. Detect the problem in homonyms as well.
3056
3057 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3058
3059         PR ada/15915
3060         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
3061         * sem_ch12.adb (Instantiate_Object): Use it.
3062         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
3063         storage pool denotes a variable as per RM 13.11(15).
3064
3065 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3066
3067         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
3068         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
3069
3070 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
3071
3072         PR ada/20822
3073         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
3074         line endings even on non-Unix platforms.
3075
3076 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
3077
3078         PR ada/35050
3079         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
3080         renaming information.
3081
3082 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
3083
3084         PR ada/17985
3085         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
3086         itself.
3087
3088 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3089
3090         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
3091         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
3092         snames.ads, sprint.adb, stand.ads, stringt.ads,
3093         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
3094         switch.ads, sysdep.c, table.adb, table.ads,
3095         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
3096         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
3097         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
3098         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
3099         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
3100         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
3101         Fix comment typos.
3102
3103         * sem_ch10.adb, sem_ch10.ads,
3104         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
3105         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3106         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
3107         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
3108         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
3109         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
3110         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
3111         sem_warn.ads: Fix comment typos.
3112
3113         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
3114         s-soflin.ads, s-stalib.ads, s-stausa.adb,
3115         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
3116         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3117         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
3118         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3119         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
3120         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
3121         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
3122         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
3123         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
3124         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
3125         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
3126         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
3127         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
3128         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
3129         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
3130         sem_cat.adb, sem_cat.ads: Fix comment typos.
3131
3132 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
3133
3134         PR ada/35825
3135         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
3136
3137 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
3138
3139         * s-linux-hppa.ads: Fix syntax errors.
3140
3141 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3142
3143         * gnat_ugn.texi: Fix typos.
3144         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
3145         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
3146         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
3147         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
3148         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
3149         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
3150         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
3151         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
3152         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
3153         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
3154         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
3155         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
3156         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
3157         s-osinte-darwin.ads, s-osinte-freebsd.ads,
3158         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
3159         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3160         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
3161         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
3162         s-parame-hpux.ads, s-parame-vms-alpha.ads,
3163         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
3164         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
3165         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
3166         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
3167         s-rident.ads: Fix comment typos.
3168
3169 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
3170
3171         PR ada/28305
3172         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
3173         environment if generic instance is a top-level one.
3174
3175 2008-04-09  Doug Rupp  <rupp@adacore.com>
3176
3177         * decl.c (validate_size): Set minimum size for fat pointers same as
3178         access types. Code clean ups.
3179
3180         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
3181         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
3182
3183         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
3184
3185         * s-crtl.ads (malloc32) New function, alias for malloc
3186         (realloc32) New function, alias for realloc
3187
3188         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
3189
3190         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
3191         allocator size is 32 and default pointer size is 64.
3192         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
3193         lhs type if smaller, whatever the modes.
3194
3195         * gigi.h (malloc32_decl): New macro definition
3196
3197         * utils.c (init_gigi_decls): New malloc32_decl
3198         Various code clean ups.
3199
3200         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3201         Task_Address vice System.Address.
3202
3203         * s-taspri-vms.ads: Import System.Aux_DEC
3204         (Task_Address): New subtype of System.Aux_DEC.Short_Address
3205         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
3206
3207         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3208         Task_Address vice System.Address.
3209
3210         * s-inmaop-vms.adb: Import System.Task_Primitives
3211         (To_Address): Unchecked convert to Task_Address vice System.Address
3212
3213         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
3214         expires now.
3215         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
3216         (To_Address) Unchecked convert to Task_Address vice System.Address
3217
3218         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
3219
3220         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
3221
3222 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3223
3224         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
3225         (fdesc_type_node): Define.
3226         (null_fdesc_node): Likewise.
3227         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
3228         uses descriptors for vtables and the type comes from a dispatch table,
3229         return the descriptor type.
3230         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
3231         uses descriptors for vtables and the type comes from a dispatch table,
3232         build a descriptor in the static case and copy the existing one in the
3233         non-static case.
3234         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
3235         the type is a pointer-to-subprogram coming from a dispatch table,
3236         return the null descriptor.
3237         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
3238         vtables, the source type is the descriptor type and the target type
3239         is a pointer type, first build the pointer.
3240         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
3241         build the descriptor type and the null descriptor.
3242
3243 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3244
3245         * decl.c (prepend_attributes): Fix typo.
3246         * trans.c (Pragma_to_gnu): Likewise.
3247         * utils.c (gnat_genericize): Likewise.
3248
3249 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3250             Richard Kenner  <kenner@adacore.com>
3251
3252         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
3253         * decl.c (gnat_to_gnu_entity): Adjust for above change.
3254         <E_Record_Type>: Try to get a better form of the component for
3255         packing, even if it has an integral mode.
3256         <E_Record_Subtype>: Likewise.
3257         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
3258         exception suppressing the final conversion between record types.
3259
3260 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3261
3262         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
3263         alignment for space, promote the alignment of non-scalar variables with
3264         no size and alignment.
3265         * gigi.h (gnat_types_compatible_p): Declare.
3266         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
3267         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
3268         * utils.c (gnat_types_compatible_p) : New predicate.
3269         (convert): Use it throughout to test for cases where a mere view
3270         conversion is sufficient.
3271         * utils2.c (build_binary_op): Minor tweaks.
3272         (build_unary_op): Likewise.
3273
3274 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3275
3276         * decl.c (adjust_packed): Expand comment.
3277
3278 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3279
3280         * s-tasuti.ads: Use Task_Address instead of System.Address.
3281
3282         * makeutl.adb (Path_Or_File_Name): New function
3283
3284         * nlists.ads, itypes.ads: Update comments.
3285
3286         * s-crtl.ads (malloc32, realloc32): New functions.
3287
3288         * s-auxdec.ads (Short_Address_Size): New constant.
3289
3290         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
3291
3292         * s-ststop.ads, s-ststop.adb: New file.
3293
3294         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
3295         Minor reformatting.
3296
3297 2008-04-08  Pascal Obry  <obry@adacore.com>
3298
3299         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
3300         (Stop_Bits_Number): New type.
3301         (Parity_Check): Likewise.
3302         (Set): Add parameter to set the number of stop bits and
3303         the parity. Parameter timeout is now a duration instead
3304         of a plain integer.
3305
3306         * g-sercom-linux.adb:
3307         Implement the stop bits and parity support for GNU/Linux.
3308         Fix handling of timeout, it must be given in tenth of seconds.
3309         
3310         * g-sercom-mingw.adb:
3311         Implement the stop bits and parity support for Windows.
3312         Use new s-win32.ads unit instead of declaring Win32 services
3313         directly into this body.
3314         Update handling of timeout as now a duration.
3315
3316         * s-win32.ads, s-winext.ads: New files.
3317
3318 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3319             Arnaud Charlet  <charlet@adacore.com>
3320
3321         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
3322
3323         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
3324         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
3325
3326         * s-osinte-lynxos-3.ads,
3327         (Alternate_Stack): Remove when not needed. Simplify declaration
3328         otherwise.
3329         (Alternate_Stack_Size): New constant.
3330
3331         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
3332         'Unrestricted_Access.
3333
3334         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
3335         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
3336         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
3337         s-osinte-solaris.ads, s-osinte-vms.ads
3338         (SA_ONSTACK): New constant.
3339         (stack_t): New record type.
3340         (sigaltstack): New imported function.
3341         (Alternate_Stack): New imported variable.
3342         (Alternate_Stack_Size): New constant.
3343
3344         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
3345
3346         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
3347         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
3348         s-taspri-vms.ads (Task_Address): New subtype of System.Address
3349         (Task_Address_Size): New constant size of System.Address
3350         (Alternate_Stack_Size): New constant.
3351
3352         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
3353         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
3354         Establish the alternate stack if the platform makes use of n alternate
3355         signal stack for stack overflows.
3356         (Create_Task): Take into account the alternate stack in the stack size.
3357         (Initialize): Save the address of the alternate stack into the ATCB for
3358         the environment task.
3359         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
3360
3361         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
3362
3363         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
3364
3365         * s-intman-posix.adb: 
3366         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
3367         alternate signal stack for stack overflows.
3368
3369         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
3370         x86-64, adjust the saved value of the stack pointer if the signal was
3371         raised by a stack checking probe.
3372         (HP-UX section): Use global __gnat_alternate_stack as signal handler
3373         stack and only for SIGSEGV.
3374         (Linux section): Likewise on x86 and x86-64.
3375         [VxWorks section]
3376         (__gnat_map_signal): Now static.
3377         (__gnat_error_handler): Not static any more.
3378         (__gnat_adjust_context_for_raise): New function. Signal context
3379         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
3380         propagation circuitry.
3381         (__gnat_error_handler): Second argument of a sigaction handler is a
3382         pointer, not an int, and is unused.
3383         Adjust signal context before mapping to exception.
3384         Install signal handlers for LynxOS case.
3385
3386         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
3387         (Task_Id): Set size to Task_Address_Size
3388         (To_Task_id): Unchecked convert from Task_Address vice System.Address
3389         (To_Address): Unchecked convert to Task_Address vice System.Address
3390
3391         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
3392         address into the ATCB if the platform makes use of an alternate signal
3393         stack for stack overflows.
3394         (Free_Task): Add call to Finalize_Attributes_Link.
3395         Add argument Relative_Deadline to pass the value specified for
3396         the task. This is not yet used for any target.
3397
3398         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
3399         the value specified for the task.
3400
3401 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3402
3403         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
3404         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
3405         s-vxwext-rtp.adb): New files.
3406
3407         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
3408         Minor updates to accomodate changes above.
3409
3410 2008-04-08  Pascal Obry  <obry@adacore.com>
3411
3412         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
3413         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
3414         Use new s-win32.ads unit instead of declaration
3415         from s-osinte-mingw.ads.
3416         
3417         * s-osinte-mingw.ads:
3418         Move all non tasking based interface to s-win32.ads.
3419         
3420         * s-osprim-mingw.adb:
3421         Remove duplicated declarations and use s-win32.ads
3422         unit instead.
3423
3424 2008-04-08  Vincent Celier  <celier@adacore.com>
3425             Arnaud Charlet  <charlet@adacore.com>
3426
3427         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
3428         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
3429         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3430         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3431         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
3432
3433         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
3434         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
3435         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
3436         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
3437         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
3438         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
3439         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
3440         mlib-tgt-specific-mingw.adb: New names.
3441
3442         * Makefile.in: 
3443         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
3444         Get rid of gnatbl.
3445         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
3446         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
3447         Minor updates for VMS
3448
3449         * gnatbl.c: Removed.
3450
3451 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3452
3453         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
3454         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
3455         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
3456         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
3457         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
3458         ASCII.NUL throughout.
3459
3460 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3461             Matthew Heaney  <heaney@adacore.com>
3462
3463         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
3464         renaming.
3465
3466         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
3467         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
3468         to convention for non-RM specs.
3469         Add descriptive header, and documented each operation
3470         document each operation
3471
3472 2008-04-08  Robert Dewar  <dewar@adacore.com>
3473             Bob Duff  <duff@adacore.com>
3474             Gary Dismukes  <dismukes@adacore.com>
3475             Ed Schonberg  <schonberg@adacore.com>
3476
3477         * alloc.ads: Add entries for Obsolescent_Warnings table
3478
3479         * einfo.ads, einfo.adb: Minor reformatting.
3480         (Is_Discriminal): New subprogram.
3481         (Is_Prival): New subprogram.
3482         (Is_Protected_Component): New subprogram.
3483         (Is_Protected_Private): Removed.
3484         (Object_Ref, Set_Object_Ref): Removed.
3485         (Prival, Set_Prival): Change assertion.
3486         (Privals_Chain, Set_Privals_Chain): Removed.
3487         (Prival_Link, Set_Prival_Link): New subprogram.
3488         (Protected_Operation, Set_Protected_Operation): Removed.
3489         (Protection_Object, Set_Protection_Object): New subprogram.
3490         (Write_Field17_Name): Remove case for Object_Ref.
3491         (Write_Field20_Name): Add case for Prival_Link.
3492         (Write_Field22_Name): Remove case for Protected_Operation,
3493         Privals_Chain.
3494         Add case for Protection_Object.
3495         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
3496         so clients
3497         (Overlays_Constant): New flag
3498         (Is_Constant_Object): New predicate
3499         (Is_Standard_Character_Type): New predicate
3500         (Optimize_Alignment_Space): New flag
3501         (Optimize_Alignment_Time): New flag
3502         (Has_Postconditions): New flag
3503         (Obsolescent_Warrning): Field removed
3504         (Spec_PPC_List): New field
3505         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
3506         subprograms to get and set the relative deadline associated to a task.
3507
3508         * exp_attr.adb (May_Be_External_Call): Account for the case where the
3509         Access attribute is part of a named parameter association.
3510         (Expand_Access_To_Protected_Op): Test for the attribute occurring
3511         within an init proc and use that directly as the scope rather than
3512         traversing up to the protected operation's enclosing scope. Only apply
3513         assertion on Is_Open_Scopes in the case the scope traversal is done.
3514         For the init proc case use the address of the first formal (_init) as
3515         the protected object reference.
3516         Implement Invalid_Value attribute
3517         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
3518         contents of the dispatch table there is no need to duplicate the
3519         itypes associated with record types (i.e. the implicit full view
3520         of private types).
3521         Implement Enum_Val attribute
3522         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
3523         within _Postconditions procedure
3524         (Expand_N_Attribute_Reference, case Result): Implement new attribute
3525
3526         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
3527         a return statement calls a function that is not available in
3528         configurable runtime.
3529         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
3530         (Expand_Non_Function_Return): Generate call to _Postconditions proc
3531         (Expand_Simple_Function_Return): Ditto
3532
3533         * frontend.adb: Add call to Sem_Aux.Initialize
3534
3535         * sem_aux.ads, sem_aux.adb: New file.
3536
3537         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
3538         Add new Pragma_Relative_Deadline.
3539         Add support for pragmas Check and Check_Policy
3540
3541         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
3542         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
3543         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
3544         missing check because they are not allowed in CPP tagged types.
3545         Add Sure parameter to Note_Possible_Modification calls
3546         Add implementation of Invalid_Value attribute
3547         Implement new attribute Has_Tagged_Values
3548         Implement Enum_Val attribute
3549         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
3550         generated attributes.
3551         (Analyze_Attribute, case Result): If prefix of the attribute is
3552         overloaded, it always resolves to the enclosing function.
3553         (Analyze_Attribute, case Result): Properly deal with analysis when
3554         Postconditions are not active.
3555         (Resolve_Attribute, case Result): Properly deal with appearence during
3556         preanalysis in spec.
3557         Add processing for attribute Result
3558
3559         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
3560         for operators.
3561         (Analyze_Subprogram_Body): Install private_with_clauses when the body
3562         acts as a spec.
3563         (Check_Inline_Pragma): recognize an inline pragma that appears within
3564         the subprogram body to which it applies.
3565         (Analyze_Function_Return): Check that type of the expression of a return
3566         statement in a function with a class-wide result is not declared at a
3567         deeper level than the function.
3568         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
3569         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
3570         user- defined operators.
3571         (Install_Formals): Moved to spec to allow use from Sem_Prag for
3572         analysis of precondition/postcondition pragmas.
3573         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
3574         Last_Formal, along with lots of comments on what this is about
3575         (Analyze_Subprogram_Body): Fix case where we move entities from the
3576         spec to the body when there are no body entities (now possible with
3577         precondition and postcondition pragmas).
3578         (Process_PPCs): New procedure
3579         (Analyze_Subprogram_Body): Add call to Process_PPCs
3580
3581         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
3582         clause.
3583         (Pop_Scope): Restore Check_Policy_List on scope exit
3584         (Push_Scope): Save Check_Policy_List on scope entry
3585         Change name In_Default_Expression      => In_Spec_Expression
3586         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3587         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
3588         (Analyze_Object_Renaming): Allow 'Reference as object
3589         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
3590         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
3591         of restriction identifier.
3592         Add Sure parameter to Note_Possible_Modication calls
3593
3594         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
3595         Don't check for primitive operations when calling Rep_Item_Too_Late.
3596         (Process_Import_Or_Interface): Do not place flag on formal
3597         subprograms.
3598         (Analyze_Pragma, case Export): If the entity is a deferred constant,
3599         propagate information to full view, which is the one elaborated by the
3600         back-end.
3601         (Make_Inline): the pragma is effective if it applies to an internally
3602         generated subprogram declaration for a body that carries the pragma.
3603         (Analyze_Pragma, case Optimize_Alignment): Set new flag
3604         Optimize_Alignment_Local.
3605         (Analyze_PPC_In_Decl_Part): New procedure
3606         (Get_Pragma_Arg): Moved to outer level
3607         (Check_Precondition_Postcondition): Change to allow new visibility
3608         rules for package spec
3609         (Analyze_Pragma, case Check_Policy): Change placement rules to be
3610         same as pragma Suppress/Unsuppress.
3611         Change name In_Default_Expression      => In_Spec_Expression
3612         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3613         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
3614         (Check_Precondition_Postcondition): Do proper visibility preanalysis
3615         for the case of these pragmas appearing in the spec.
3616         (Check_Enabled): New function
3617         (Initialize): New procedure
3618         (Tree_Read): New procedure
3619         (Tree_Write): New procedure
3620         (Check_Precondition_Postcondition): New procedure
3621         Implement pragmas Check and Check_Policy
3622         Merge Assert processing with Check
3623
3624         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
3625         New warning flag -gnatw.e
3626
3627         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
3628         returning whether a task (or main procedure) has a pragma
3629         Relative_Deadline.
3630         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
3631         (or main procedure) has a pragma Relative_Deadline.
3632         Add Next_Pragma field to N_Pragma node
3633         (PPC_Enabled): New flag
3634         (Next_Pragma): Now used for Pre/Postcondition processing
3635
3636         * snames.h, snames.ads, snames.adb: New standard name
3637         Inherit_Source_Path
3638         Add entry for 'Invalid_Value attribute
3639         Add entry for new attribute Has_Tagged_Values
3640         Add entry for Enum_Val attribute
3641         Add new standard names Aggregate, Configuration and Library.
3642         Add _Postconditions
3643         Add _Result
3644         Add Pragma_Precondition
3645         Add Pragma_Postcondition
3646         Add Attribute_Result
3647         New standard name Archive_Builder_Append_Option
3648         (Preset_Names): Add _relative_deadline and relative_deadline definitions
3649         There was also a missing non_preemptive_within_priorities.
3650         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
3651         Relative_Deadline.
3652         Add support for pragmas Check and Check_Policy
3653
3654         * tree_gen.adb: Call Sem_Aux.Tree_Write
3655
3656         * tree_in.adb: Call Sem_Aux.Tree_Read
3657
3658         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
3659         sequence
3660
3661         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
3662         sequence
3663
3664         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
3665         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
3666         Relative_Deadline.
3667         (Expand_Pragma_Check): New procedure
3668
3669         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
3670         buffer.
3671
3672         * sinfo.adb (PPC_Enabled): New flag
3673
3674 2008-04-08  Robert Dewar  <dewar@adacore.com>
3675             Gary Dismukes  <dismukes@adacore.com>
3676             Javier Miranda  <miranda@adacore.com>
3677             Ed Schonberg  <schonberg@adacore.com>
3678
3679         * fe.h: Remove global Optimize_Alignment flag, no longer used
3680
3681         * layout.adb: Test Optimize_Alignment flags rather than global switch
3682
3683         * lib.ads, lib.adb: New OA_Setting field in library record
3684
3685         * lib-load.adb: New OA_Setting field in library record
3686
3687         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
3688         units mentioned in limited_with_ clauses in the ali file, with an
3689         'Y' marker.
3690         New Ox fields in U line
3691
3692         * opt.adb: New flag Optimize_Alignment_Local
3693         (Check_Policy_List[_Config]): New flags
3694
3695         * opt.ads (Invalid_Value_Used): New flag
3696         New switch Optimize_Alignment_Local
3697         (Warn_On_Parameter_Order): New flag
3698         (Check_Policy_List[_Config]): New flags
3699
3700         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
3701         limited_with clauses.
3702         New data structures for Optimize_Alignment
3703
3704         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
3705         New procedure
3706         (Check_Consistent_Optimize_Alignment): Rework for new structure
3707         (Check_Consistent_Restrictions): Fix incorrect error message
3708
3709         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
3710         created class-wide type (to the Parent field of the specific type).
3711         (Install_Siblings): Handle properly private_with_clauses on subprogram
3712         bodies and on generic units.
3713         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
3714         illegal limited_with_clause that names a non-existent package.
3715         (Check_Body_Required): Determine whether a unit named a limited_with
3716         clause needs a body.
3717         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
3718         Capture Optimize_Alignment settings to set new OA_Setting field in
3719         library record.
3720         (Build_Limited_Views): Include task and protected type declarations.
3721
3722         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
3723         case of a possible constant redeclaration where the current object is
3724         an entry index constant.
3725         (Analyze_Object_Declaration): Generate an error in case of CPP
3726         class-wide object initialization.
3727         (Analyze_Object_Declaration): Add extra information on warnings for
3728         declaration of unconstrained objects.
3729         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
3730         conflicts with the setting of Stored_Constraint in the case where the
3731         access type entity has already been created as an E_Incomplete_Type due
3732         to a limited with clause.
3733         Use new Is_Standard_Character_Type predicate
3734         (Analyze_Object_Declaration): Apply access_constant check only after
3735         expression has been resolved, given that it may be overloaded with
3736         several access types.
3737         (Constant_Redeclaration): Additional legality checks for deferred
3738         constant declarations tha involve anonymous access types and/or null
3739         exclusion indicators.
3740         (Analyze_Type_Declaration): Set Optimize_Alignment flags
3741         (Analyze_Subtype_Declaration): Ditto
3742         (Analyze_Object_Declaration): Ditto
3743         (Analyze_Object_Declaration): Don't count tasks in generics
3744         Change name In_Default_Expression      => In_Spec_Expression
3745         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3746         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
3747         (Process_Discriminants): Additional check for illegal use of default
3748         expressions in access discriminant specifications in a type that is not
3749         explicitly limited.
3750         (Check_Abstract_Overriding): If an inherited function dispaches on an
3751         access result, it must be overridden, even if the type is a null
3752         extension.
3753         (Derive_Subprogram): The formals of the derived subprogram have the
3754         names and defaults of the parent subprogram, even if the type is
3755         obtained from the actual subprogram.
3756         (Derive_Subprogram): In the presence of interfaces, a formal of an
3757         inherited operation has the derived type not only if it descends from
3758         the type of the formal of the parent operation, but also if it
3759         implements it. This is relevant for the renamings created for the
3760         primitive operations of the actual for a formal derived type.
3761         (Is_Progenitor): New predicate, to determine whether the type of a
3762         formal in the parent operation must be replaced by the derived type.
3763
3764         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
3765         predicate recursive to handle components that have a user-defined
3766         Initialize procedure. Handle controlled derived types whose ancestor
3767         has a user-defined Initialize procedured.
3768         (Note_Possible_Modification): Add Sure parameter, generate warning if
3769         sure modification of constant
3770         Use new Is_Standard_Character_Type predicate
3771         (Find_Parameter_Type): when determining whether a protected operation
3772         implements an interface operation, retrieve the type of the formal from
3773         the entity when the formal is an access parameter or an
3774         anonymous-access-to-subprogram.
3775         Move Copy_Parameter_List to sem_util, for use when building stubbed
3776         subprogram bodies.
3777         (Has_Access_Values): Tagged types now return False
3778         (Within_HSS_Or_If): New procedure
3779         (Set_Optimize_Alignment_Flags): New procedure
3780         Change name In_Default_Expression      => In_Spec_Expression
3781         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3782         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
3783
3784 2008-04-08  Tristan Gingold  <gingold@adacore.com>
3785
3786         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
3787
3788 2008-04-08  Tristan Gingold  <gingold@adacore.com>
3789
3790 PR ada/10768
3791
3792         * cuintp.c: Fix 16 bits issue for AVR.
3793         On AVR, integer is 16 bits, so it can't be used to do math with
3794         Base (=32768).
3795         So use long_integer instead.
3796
3797 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3798
3799         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
3800         System.OS_Primitives.
3801         Change type of various constants, parameters and local variables from
3802         Time to representation type OS_Time.
3803         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
3804         Remove the declaration of constant Mili_F from several routines. New
3805         body for internal package Conversions_Operations.
3806         (Time_Of): Add default parameters for several formals.
3807
3808         * a-caldel.adb: Minor reformatting
3809
3810         * a-calend.ads, a-calend.adb: New body for internal package
3811         Conversions_Operations.
3812         (Time_Of): Add default parameters for several formals.
3813
3814         * Makefile.rtl: Add a-ststop
3815         Add Ada.Calendar.Conversions to the list of runtime files.
3816         Add g-timsta
3817
3818         * a-calcon.adb, a-calcon.ads: New files.
3819
3820 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
3821             Tristan Gingold  <gingold@adacore.com>
3822
3823         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
3824         (Install_Restricted_Handlers): New procedure
3825         which is a simplified version of Install_Handlers that does not store
3826         previously installed.
3827
3828         * s-interr-vxworks.adb: Fix ACATS cxc3001
3829         On VxWorks interrupts can't be detached.
3830         (Install_Restricted_Handlers): New procedure.
3831
3832         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
3833         procedure.
3834
3835 2008-04-08  Olivier Hainque  <hainque@adacore.com>
3836
3837         * s-intman-vxworks.ads, s-intman-vxworks.adb
3838         (Map_And_Raise_Exception): Remove. Was an import of only part of the
3839         required services already implemented elsewhere.
3840         (Notify_Exception): Delete body, import __gnat_error_handler instead.
3841         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
3842         argument passed to the handler, which we need for ZCX propagation
3843         purposes.
3844
3845 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3846
3847         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
3848
3849         * g-timsta.adb, g-timsta.ads: New files.
3850
3851 2008-04-08  Robert Dewar  <dewar@adacore.com>
3852
3853         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
3854         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
3855         (Raise_Exception_Always): Fix documentation accordingly
3856
3857 2008-04-08  Robert Dewar  <dewar@adacore.com>
3858
3859         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
3860         Stream_Convert)
3861
3862         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
3863         FOnly
3864
3865 2008-04-08  Javier Miranda  <miranda@adacore.com>
3866             Robert Dewar  <dewar@adacore.com>
3867             Ed Schonberg  <schonberg@adacore.com>
3868
3869         * a-tags.adb (Register_Interface_Offset): New subprogram.
3870         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
3871         (To_Predef_Prims_Table_Ptr): Removed.
3872         (Acc_Size): Removed.
3873         (To_Acc_Size): Removed.
3874         (Parent_Size): Modified to the call the subprogram returning the size of
3875         the parent by means of the new TSD component Size_Func.
3876
3877         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
3878         (DT_Offset_To_Top_Offset): New constant value that is used to generate
3879         code referencing the Offset_To_Top component of the dispatch table's
3880         prologue.
3881         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
3882         use of 'address to initialize dispatch table slots.
3883         (Size_Func): New component of the TSD. Used by the run-time to call the
3884         size primitive of the tagged type.
3885
3886         * checks.adb (Apply_Access_Check): Avoid check when accessing the
3887         Offset_To_Top component of a dispatch table.
3888         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
3889         deferred constant declaration. do not add a null expression, to prevent
3890         spurious errors when full declaration is analyzed.
3891         (Apply_Discriminant_Check): If both discriminant constraints share a
3892         node which is not static but has no side effects, do not generate a
3893         check for that discriminant.
3894         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
3895         subexpr, since the prefix of an attribute is a name.
3896
3897         * checks.ads: Fix nit in comment.
3898
3899         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
3900         and body of predefined primitives in case of CPP tagged type
3901         derivations.
3902         (Freeze_Type): Deal properly with no storage pool case
3903         (Make_Predefined_Primitive_Specs): Generate specification of abstract
3904         primitive Deep_Adjust if a nonlimited interface is derived from a
3905         limited interface.
3906         (Build_Dcheck_Functions): Create discriminant-checking functions only
3907         for variants that have some component(s).
3908         (Build_Slice_Assignment): In expanded code for slice assignment, handle
3909         properly the case where the slice bounds extend to the last value of the
3910         underlying representation.
3911         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
3912         (Is_Variable_Size_Record): An array component has a static size if
3913         index bounds are enumeration literals.
3914
3915         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
3916         an external tag has been specified for the type.
3917         (Building_Static_DT): Add missing support for private types.
3918         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
3919         to the entity associated with the parent of Typ. This is done to
3920         avoid wrong access when the parent is a private type.
3921         (Expand_Interface_Conversion): Improve error message when the
3922         configurable runtime has no support for dynamic interface conversion.
3923         (Expand_Interface_Thunk): Add missing support to interface types in
3924         configurable runtime.
3925         (Expand_Dispatching_Call): remove obsolete code.
3926         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
3927         ensure that all subtypes and aggregates associated with dispatch
3928         tables have the attribute Is_Dispatch_Table_Entity set to true.
3929         (Register_Primitive): Rename one variable to improve code reading.
3930         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
3931         of the pointer to the 'size primitive in the TSD.
3932
3933         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
3934         (RE_Offset_To_Top_Ptr): New entity.
3935         (RE_Register_Interface_Offset): New entity.
3936         (RE_Set_Dynamic_Offset_To_Top): New entity.
3937         (RE_Set_Offset_To_Top): Removed entity.
3938         (RE_Prim_Ptr): New entity
3939         (RE_Size_Func): New entity
3940         (RE_Size_Ptr): New entity
3941         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
3942         (Ada_Dispatching_Child): Define this new subrange.
3943         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
3944          RE_Time_Span, and RE_Time_Span_Zero).
3945         (RE_Unit_Table): Add new required run-time calls
3946
3947         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
3948         children.
3949
3950         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
3951         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
3952          initializes the Offset_To_Top component of a dispatch table.
3953         (Build_Predef_Prims): Removed.
3954         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
3955          its actual code.
3956         (Build_Set_Size_Function): New subprogram.
3957
3958         * exp_ch13.adb: Do not generate storage variable for storage_size zero
3959         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
3960
3961 2008-04-08  Robert Dewar  <dewar@adacore.com>
3962
3963         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
3964         computing Fore when Exp > 0
3965
3966 2008-04-08  Robert Dewar  <dewar@adacore.com>
3967
3968         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
3969
3970         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
3971         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
3972
3973         * fmap.adb: Remove Big_String declarations (now in Types)
3974         (No_Mapping_File): New Boolean global variable
3975         (Initialize): When mapping file cannot be read, set No_Mapping_File to
3976         False.
3977         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
3978         tables were empty before adding entries, open the mapping file
3979         with Truncate = True, instead of delete/re-create.
3980
3981         * fname-sf.adb: Remove Big_String declarations (now in Types)
3982
3983         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
3984         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
3985         big pointer types
3986
3987         * table.ads: Add for Table_Ptr'Storage_Size use 0
3988
3989         * types.ads: Add Big_String declarations
3990         Add Size_Clause of zero for big pointer types
3991
3992 2008-04-08  Vincent Celier  <celier@adacore.com>
3993
3994         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
3995         (Usage): Add line for switch --subdirs=
3996         Add new switch -eL, to follow symbolic links when processing project
3997         files.
3998
3999         * gnatcmd.adb: Process switches -eL and --subdirs=
4000         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
4001         Program_Name to get proper tool names when AAMP_On_Target is set.
4002         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
4003         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
4004         Osint.Program_Name).
4005
4006         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
4007         (Usage): Add lines for switches -eL and --subdirs=
4008
4009         * makeusg.adb: Add line for switch --subdirs=
4010
4011         * prj.ads: 
4012         (Source_Data): New Boolean component Compiled, defaulted to True
4013         (Empty_File_Name: New global variable in private part, initialized in
4014         procedure Initialize.
4015         (Subdirs_Option): New constant string
4016         (Subdirs): New String_Ptr global variable
4017         (Language_Config): New component Include_Compatible_Languages
4018         (Project_Qualifier): New type for project qualifiers
4019         (Project_Data): New component Qualifier
4020         (Project_Configuration): New component Archive_Builder_Append_Option
4021
4022         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
4023         another imported project indicate the name of this imported project.
4024         (Check_File): When a unit is in two project files, indicate the project
4025         names and the paths of the source files for each project.
4026         (Add_Source): Set Compiled to False if compiler driver is empty. Only
4027         set object, dependency and switches file names if Compiled is True.
4028         (Process_Compiler): Allow the empty string for value of attribute Driver
4029         (Get_Directories): When Subdirs is not null and Object_Dir is not
4030          specified, locate and create if necessary the actual object dir.
4031         (Locate_Directory): When Subdirs is not empty and Create is not the
4032         empty string, locate and create if necessary the actual directory
4033         as a subdirectory of directory Name.
4034         (Check_Library_Attributes.Check_Library): Allow a project where the only
4035         "sources" are header files of file based languages to be imported by
4036         library projects, in multi-language mode (gprbuild).
4037         (Check_Library_Attributes.Check_Library): In multi-language mode
4038         (gprbuild), allow a library project to import a project with no
4039         sources, even when this is not declared explicitly.
4040         (Check_If_Externally_Built): A virtual project extending an externally
4041         built project is also externally built.
4042         (Check_Library_Attributes): For a virtual project extending a library
4043         project, inherit the library directory.
4044         (Process_Project_Level_Array_Attributes): Process new attribute
4045         Inherit_Source_Path.
4046         For projects with specified qualifiers "standard", "library" or
4047         "abstract", check that the project conforms to the qualifier.
4048         (Process_Project_Level_Simple_Attributes): Process new attribute
4049          Archive_Builder_Append_Option.
4050
4051         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
4052         (Normalize_Compiler_Switches): Only keep compiler switches that are
4053         passed to gnat1 by the gcc driver and that are stored in the ALI file
4054         by gnat1.
4055         Do not take into account switc -save-temps
4056
4057         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
4058         gprmake is called with -eL.
4059         (Scan_Arg): Recognize switch -eL
4060         (Usage): Add line for switch -eL
4061
4062         * prj.adb (Initialize): Initialize Empty_File_Name
4063         (Project_Empty): New component Qualifier
4064
4065         * prj-attr.ads, prj-attr.adb: New project level attribute
4066         Inherit_Source_Path.
4067         New project level attribute Archive_Builder_Append_Option
4068
4069         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
4070
4071         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
4072         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
4073         upward compatibility.
4074
4075         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
4076         each Trying ..." on different lines.
4077         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
4078         is "configuration" when not in configuration. Fail when in configuration
4079         when a specified qualifier is other than "configuration".
4080
4081         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
4082         full associative array together.
4083         (Recursive_Process): Put the project qualifier in the project data
4084         
4085         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
4086         (Set_Project_Qualifier_Of): New procedure
4087
4088 2008-04-08  Robert Dewar  <dewar@adacore.com>
4089
4090         * errout.ads: Update comments for new handling of info: messages
4091
4092         * erroutc.adb (Matches): New procedure
4093         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
4094         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
4095          info messages as well as style messages.
4096
4097         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
4098
4099         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
4100         subprograms.
4101         (Check_A_Call): Special "info: " warnings now have ? in the text
4102         (Elab_Warning): Use info message in static case
4103
4104 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4105
4106         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
4107         whether an array aggregate with static bounds and scalar components
4108         should be expanded into a static constant.
4109
4110 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
4111             Ed Schonberg  <schonberg@adacore.com>
4112             Robert Dewar  <dewar@adacore.com>
4113
4114         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
4115         Has_Stream_Attribute_ Definition when checking for available stream
4116         attributes on parameters of a limited type in Ada 2005. Necessary for
4117         proper recognition of visible stream attribute clauses.
4118         (Has_Stream_Attribute_Definition): If the type is derived from a
4119         private type, then use the derived type's underlying type for checking
4120         whether it has stream attributes.
4121         (Validate_Object_Declaration): The check for a user-defined Initialize
4122         procedure applies also to types with controlled components or a
4123         controlled ancestor.
4124         Reject an object declaration in a preelaborated unit if the type is a
4125         controlled type with an overriding Initialize procedure.
4126         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
4127         checking when the parent of a dereference is a selected component and
4128         the name has not been analyzed.
4129
4130         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
4131         prefixes that are invalid explicit dereferences of remote
4132         access-to-class-wide values, first checking whether the selected
4133         component is a prefixed form of call to a tagged operation.
4134         (Analyze_Call): Remove code that issues an error for limited function
4135         calls in illegal contexts, as we now support all of the contexts that
4136         were forbidden here.
4137         Allow a function call that returns a task.and appears as the
4138         prefix of a selected component.
4139         (Analyze_Reference): Give error message if we try to make a 'Reference
4140         for an object that is atomic/aliased without its type having the
4141         corresponding attribute.
4142         (Analyze_Call): Remove condition checking for attributes to allow
4143         calls to functions with inherently limited results as prefixes of
4144         attributes. Remove related comment about Class attributes.
4145         (Analyze_Selected_Component): If the prefix is a remote type, check
4146         whether this is a prefixed call before reporting an error.
4147         (Complete_Object_Operation): If the controlling formal is an access to
4148         variable reject an actual that is a constant or an access to one.
4149         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4150         primitive operations from base type.
4151
4152         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
4153         build-in-place
4154         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4155         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
4156         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4157         (Expand_N_Slice): Test for prefix that is a build-in-place function call
4158         and call Make_Build_In_Place_Call_In_Anonymous_Context.
4159         (Analyze_Call): Remove code that issues an error for limited function
4160         calls in illegal contexts, as we now support all of the contexts that
4161         were forbidden here.
4162         New calling sequence for Get_Simple_Init_Val
4163         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
4164         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
4165
4166 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4167             Ed Schonberg  <schonberg@adacore.com>
4168             Robert Dewar  <dewar@adacore.com>
4169
4170         * exp_ch2.adb: Minor reformatting.
4171         (Expand_Entry_Index_Parameter): Set the type of the identifier.
4172         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
4173         (Expand_Protected_Component): New routine.
4174         (Expand_Protected_Private): Removed.
4175         Add Sure parameter to Note_Possible_Modification calls
4176
4177         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
4178         generated subprogram declaration must inherit the overriding indicator
4179         from the instantiation node.
4180         (Validate_Access_Type_Instance): If the designated type of the actual is
4181         a limited view, use the available view in all cases, not only if the
4182         type is an incomplete type.
4183         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
4184         and the actual subtype does not exclude null.
4185         (Process_Default): Handle properly abstract formal subprograms.
4186         (Check_Formal_Package_Instance): Handle properly defaulted formal
4187         subprograms in a partially parameterized formal package.
4188         Add Sure parameter to Note_Possible_Modification calls
4189         (Validate_Derived_Type_Instance): if the formal is non-limited, the
4190         actual cannot be limited.
4191         (Collect_Previous_Instances): Generate instance bodies for subprograms
4192         as well.
4193
4194         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
4195         try to set RM_Size.
4196         Add Sure parameter to Note_Possible_Modification calls
4197         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
4198         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
4199         constant overlaid by variable and issue warning.
4200         Use new Is_Standard_Character_Type predicate
4201         (Analyze_Record_Representation_Clause): Check that the specified
4202         Last_Bit is not less than First_Bit - 1.
4203         (Analyze_Attribute_Definition_Clause, case Address): Check for
4204         self-referential address clause
4205
4206         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
4207         detection mechanism when the lhs is a prival.
4208         (Analyze_Assignment): Call Check_Unprotected_Access to detect
4209         assignment of a pointer to protected data, to an object declared
4210         outside of the protected object.
4211         (Analyze_Loop_Statement): Check for unreachable code after loop
4212         Add Sure parameter to Note_Possible_Modication calls
4213         Protect analysis from previous syntax error such as a scope mismatch
4214         or a missing begin.
4215         (Analyze_Assignment_Statement): The assignment is illegal if the
4216         left-hand is an interface.
4217
4218         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
4219         violation of restriction No_Implicit_Conditionals
4220         Add Sure parameter to Note_Possible_Modication calls
4221         Use new Is_Standard_Character_Type predicate
4222         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
4223         call as operator. Fixes problems (e.g. validity checking) which
4224         come from the result looking as though it does not come from source).
4225         (Resolve_Call): Check case of name in named parameter if style checks
4226         are enabled.
4227         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
4228         from the checking that such calls should not occur from an entry body.
4229         (Resolve_Call): If the return type of an Inline_Always function
4230         requires the secondary stack, create a transient scope for the call
4231         if the body of the function is not available for inlining.
4232         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
4233         that are actuals for in-out formals.
4234         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4235         primitive operations from base type.
4236         (Analyze_Selected_Component): If the context is a call to a protected
4237         operation the parent may be an indexed component prior to expansion.
4238         (Resolve_Actuals): If an actual is of a protected subtype, use its
4239         base type to determine whether a conversion to the corresponding record
4240         is needed.
4241         (Resolve_Short_Circuit): Handle pragma Check
4242
4243         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
4244         Use new Is_Standard_Character_Type predicate
4245         (Eval_Relational_Op): Catch more cases of string comparison
4246
4247 2008-04-08  Robert Dewar  <dewar@adacore.com>
4248             Gary Dismukes  <dismukes@adacore.com>
4249
4250         * s-rident.ads: Add No_Default_Initialization restriction
4251
4252         * exp_tss.adb: 
4253         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
4254         (Set_TSS): Handle No_Default_Initialization case
4255
4256         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
4257         No_Default_Initialization
4258         (Expand_N_Subprogram_Body): Remove redundant initialization of out
4259         parameters when Normalize_Scalars is active.
4260         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
4261         Fix casing error in formal parameter name in call
4262         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
4263         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4264         dispatching call on VM targets.
4265
4266 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
4267             Thomas Quinot  <quinot@adacore.com>
4268
4269         * exp_ch7.adb (Find_Final_List): Change the test for generating a
4270         selected component from an access type's Associated_Final_Chain to
4271         check for the presence of that field, rather than assuming it exists
4272         for all named access types.
4273         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
4274         procedure to call at the end of the generated cleanup procedure.
4275         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
4276         and an At_End_Proc already exists in the handled sequence of statements
4277         for which cleanup actions are being expanded, the original cleanup
4278         action must be preserved.
4279
4280 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4281             Ed Schonberg  <schonberg@adacore.com>
4282             Robert Dewar  <dewar@adacore.com>
4283             Gary Dismukes  <dismukes@adacore.com>
4284
4285         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
4286         Build_Unprotected_Subprogram_Body): Generate debug info for
4287         declarations related to the handling of private data in task and
4288         protected types.
4289         (Debug_Private_Data_Declarations): New subprogram.
4290         (Install_Private_Data_Declarations): Remove all debug info flagging.
4291         This is now done by Debug_Private_Data_Declarations at the correct
4292         stage of expansion.
4293         (Build_Simple_Entry_Call): If the task name is a function call, expand
4294         the prefix into an object declaration, and make the surrounding block a
4295         task master.
4296         (Build_Master_Entity): An internal block is a master if it wraps a call.
4297         Code reformatting, update comments. Code clean up.
4298         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
4299         (Replicate_Entry_Formals): If the formal is an access parameter or
4300         anonymous access to subprogram, copy the original tree to create new
4301         entities for the formals of the subprogram.
4302         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
4303         for tasks to store the value passed using pragma Relative_Deadline.
4304         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
4305         run-time call to create a task.
4306         (Build_Wrapper_Spec): If the controlling argument of the interface
4307         operation is an access parameter with a non-null indicator, use the
4308         non-null indicator on the wrapper.
4309
4310         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
4311         present, which it may not be in the case where the type entity is an
4312         incomplete view brought in by a limited with.
4313         (Analyze_Task_Type): Only retrieve the full view when present, which it
4314         may not be in the case where the type entity is an incomplete view brought
4315         in by a limited with.
4316         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
4317         private components of a protected type, to prevent the generation of freeze
4318         nodes for which there is no proper scope of elaboration.
4319
4320         * exp_util.ads, exp_util.adb
4321         (Remove_Side_Effects): If the expression is a function call that returns a
4322         task, expand into a declaration to invoke the build_in_place machinery.
4323         (Find_Protection_Object): New routine.
4324         (Remove_Side_Effects): Also make a copy of the value
4325         for attributes whose result is of an elementary type.
4326         (Silly_Boolean_Array_Not_Test): New procedure
4327         (Silly_Boolean_Array_Xor_Test): New procedure
4328         (Is_Volatile_Reference): New function
4329         (Remove_Side_Effects): Use Is_Volatile_Reference
4330         (Possible_Bit_Aligned_Component): Handle slice case properly
4331
4332         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
4333         case test to Exp_Util
4334         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
4335
4336 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4337
4338         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
4339         in call
4340         (Add_RACW_Features): When processing an RACW in another unit than the
4341         main unit, set Body_Decls to No_List to indicate that the bodies of
4342         the type's TSS must not be generated.
4343         (GARLIC_Support.Add_RACW_Read_Attribute,
4344         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
4345         Body_Decls is No_List.
4346         (PolyORB_Support.Add_RACW_Read_Attribute,
4347         PolyORB_Support.Add_RACW_Write_Attribute,
4348         PolyORB_Support.Add_RACW_From_Any,
4349         PolyORB_Support.Add_RACW_To_Any,
4350         PolyORB_Support.Add_RACW_TypeCode): Same.
4351         (Transmit_As_Unconstrained): New function.
4352         (Build_Ordered_Parameters_List): Use the above to order parameters.
4353         (GARLIC_Support.Build_General_Calling_Stubs):
4354         Use the above to determine which parameters to unmarshall using 'Input
4355         at the point where their temporary is declared (as opposed to later on
4356         with a 'Read call).
4357         (PolyORB_Support.Build_General_Calling_Stubs):
4358         Use the above to determine which parameters to unmarshall using From_Any
4359         at the point where their temporary is declared (as opposed to later on
4360         with an assignment).
4361
4362 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4363
4364         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
4365         an Input function for an access type, do not perform default
4366         initialization on the local variable that receives the value, to
4367         prevent spurious warnings when the type is null-excluding.
4368
4369 2008-04-08  Robert Dewar  <dewar@adacore.com>
4370             Ed Schonberg  <schonberg@adacore.com>
4371
4372         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
4373         units.
4374         (Size_Known): Generic formal scalar types have known at compile
4375         time size, so remove check.
4376         Fix casing error in formal parameter name in call
4377         (Freeze_Subprogram): If the subprogram is a user-defined operator,
4378         recheck its overriding indication.
4379
4380 2008-04-08  Vincent Celier  <celier@adacore.com>
4381
4382         * gnat1drv.adb: Send all messages indicating an error to standard error
4383
4384 2008-04-08  Robert Dewar  <dewar@adacore.com>
4385
4386         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
4387         (List_Applicable_Restrictions): Do not list existing restrictions
4388
4389 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4390
4391         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
4392         add a pointer to generic sockets literature
4393         do not mention that the given example is "typical" usage.
4394         Remove obsolete comment about multicast not being supported on Windows.
4395         (Connect_Socket): Make Server mode IN rather than IN OUT
4396         since this formal is never modified.
4397
4398 2008-04-08  Robert Dewar  <dewar@adacore.com>
4399
4400         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
4401         the declaration for some different entity.
4402         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
4403         list is precent (following the parent subtype indication), display
4404         appropriate "and" keyword.
4405
4406         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
4407         Remove unnecessary calls to Init_Size_Align and Init_Esize.
4408         Add notes on use of Parent field of an Itype
4409
4410 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4411             Robert Dewar  <dewar@adacore.com>
4412             Gary Dismukes  <dismukes@adacore.com>
4413
4414         * lib-xref.adb (Is_On_LHS): Remove dead code
4415         (Output_Overriden_Op): If the overridden operation is itself inherited,
4416         list the ancestor operation, which is the one whose body or absstract
4417         specification is actually being overridden. For source navigation
4418         purposes.
4419
4420         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
4421         operation is primitive for the type.
4422         (Declare_Inherited_Private_Subprograms): If the new operation overrides
4423         an inherited private subprogram, set properly the Overridden_Operation
4424         attribute, for better cross-reference information.
4425         (Analyze_Package_Specification): Do late analysis of spec PPCs
4426         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
4427         properly the full view and underlying full views of a private type in a
4428         child unit, whose full view is derived from a private type in a parent
4429         unit, and whose own full view becomes visible in the child body.
4430
4431         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
4432         primitive operation after the type has been frozen, add an explicit
4433         reference to the type and the operation, because other primitive
4434         references have been emitted already.
4435         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4436         dispatching call on VM targets.
4437
4438 2008-04-08  Vincent Celier  <celier@adacore.com>
4439             Thomas Quinot  <quinot@adacore.com>
4440
4441         * make.adb: (Gnatmake_Called): Remove, no longer necessary
4442         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
4443         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
4444         (Insert_Project_Sources): Take into account index in multi-unit source
4445         files.
4446         After building a library project, delete all temporary files.
4447         (Initialize): Reset current output after parsing project file.
4448         (Collect_Arguments_And_Compile): Never insert in the queue the sources
4449         of library projects that are externally built.
4450         Put file name in error and inform messages if -df is used
4451         (Display): If invoked with -d7, do not display path names, but only
4452         file names.
4453
4454         * makeutl.ads (Path_Or_File_Name): New function
4455         (Path_Or_File_Name): New function
4456
4457 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
4458
4459         * Make-lang.in: Disable warnings during first stage of bootstrap
4460         Get rid of gnatbl.
4461         Update dependencies.
4462
4463 2008-04-08  Vincent Celier  <celier@adacore.com>
4464
4465         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
4466         case to decide if ALI object file is included in library.
4467         (Build_Library): Never attempt to build a library if the project is
4468         externally built.
4469
4470 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4471
4472         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
4473         (No_List) is defined to return Empty.
4474
4475 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
4476
4477         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
4478         documentation.
4479         Update comments.
4480         (Read_Default_Search_Dirs): Do not consider spaces as path separators
4481         because spaces may be part of legal paths.
4482
4483 2008-04-08  Robert Dewar  <dewar@adacore.com>
4484
4485         * par-ch11.adb (P_Exception_Handler): Check indentation level for
4486         handler
4487
4488 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4489
4490         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
4491         in a type declaration, if this is not an interface declaration or
4492         private type extension.
4493
4494 2008-04-08  Vincent Celier  <celier@adacore.com>
4495
4496         * prj-util.adb (Executable_Of): New String parameter Language. When
4497         Ada_Main is False and Language is not empty, attempt to remove the body
4498         suffix or the spec suffix of the language to get the base of the
4499         executable file name.
4500         (Put): New Boolean parameter Lower_Case, defauilted to False. When
4501         Lower_Case is True, put the value in lower case in the name list.
4502         (Executable_Of): If there is no executable suffix in the configuration,
4503         then do not modify Executable_Extension_On_Target.
4504
4505         * prj-util.ads (Executable_Of): New String parameter Language,
4506         defaulted to the empty string.
4507         (Put): New Boolean parameter Lower_Case, defauilted to False
4508
4509 2008-04-08  Robert Dewar  <dewar@adacore.com>
4510
4511         * scng.adb (Scan_Identifier): Handle case of identifier starting with
4512         wide character using UTF-8 encoding.
4513
4514 2008-04-08  Javier Miranda  <miranda@adacore.com>
4515
4516         * sem.adb (Analyze): Consider case in which we analyze an empty node
4517         that was generated by a call to a runtime function that is not
4518         available under the configurable runtime.
4519
4520         * sem.ads (Inside_Freezing_Actions): New flag.
4521         (Save_Check_Policy_List): New field in scope stack entry
4522
4523 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4524             Robert Dewar  <dewar@adacore.com>
4525
4526         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
4527         the ancestor part of an extension aggregate for a limited type.
4528         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
4529         enumeration index bounds.
4530         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
4531         when array is too short.
4532         (Check_Expr_OK_In_Limited_Aggregate): Move function
4533         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
4534         change name).
4535         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
4536         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
4537         component associations.
4538         (Check_Non_Limited_Type): Moved to outer level and renamed.
4539         (Resolve_Record_Aggregate): In an extension aggregate, an association
4540         with a box initialization can only designate a component of the
4541         extension, not a component inherited from the given ancestor
4542
4543         * sem_case.adb: Use new Is_Standard_Character_Type predicate
4544
4545 2008-04-08  Robert Dewar  <dewar@adacore.com>
4546
4547         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
4548         negative scale
4549         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
4550         Properly handle case where Aft > Scale and input number is less than
4551         one.
4552
4553 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4554
4555         * s-stoele.ads, s-soflin.ads: Move the location of
4556         Dummy_Communication_Block from System.Storage_Elements to
4557         System.Soft_Links.
4558
4559         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
4560         emulate Communication_Block in certain scenarios.
4561
4562 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
4563
4564         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
4565         subprogram.
4566         Add new subtype S_WWC, unchecked conversion routines From_WWC and
4567         To_WWC.
4568         (I_WWC, O_WWC): New routines for input and output of
4569         Wide_Wide_Character.
4570
4571 2008-04-08  Robert Dewar  <dewar@adacore.com>
4572
4573         * stringt.adb (Write_String_Table_Entry): Handle wide characters
4574         properly
4575
4576 2008-04-08  Robert Dewar  <dewar@adacore.com>
4577
4578         * styleg.adb (Check_Comment): Allow special char after -- in
4579         non-end-of-line case
4580
4581 2008-04-08  Robert Dewar  <dewar@adacore.com>
4582
4583         * stylesw.adb: Implement -gnaty + - y options
4584         (Set_GNAT_Style_Check_Options): Includ I in style check string
4585
4586         * stylesw.ads: Add comments for new style switch options
4587
4588 2008-04-08  Sergey Rybin  <rybin@adacore.com>
4589
4590         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
4591         to the set of the GNAT components needed by ASIS.
4592
4593 2008-04-08  Bob Duff  <duff@adacore.com>
4594
4595         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
4596
4597 2008-04-08  Tristan Gingold  <gingold@adacore.com>
4598
4599         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
4600         Improve error message generation.
4601
4602 2008-04-08  Vincent Celier  <celier@adacore.com>
4603
4604         * a-direct.adb (Start_Search): Check for Name_Error before checking for
4605         Use_Error, as specified in the RM. Check if directory is open and raise
4606         Use_Error if it is not.
4607
4608 2008-04-08  Vincent Celier  <celier@adacore.com>
4609             Robert Dewar  <dewar@adacore.com>
4610
4611         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
4612         AAMP_On_Target is set.
4613
4614         * vms_data.ads: Add NOxxx to style check switch list
4615         Add entry COMPONENTS for -gnatVe
4616         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
4617         (/SUBDIRS=).
4618         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
4619         Add qualifiers for gnatmetric coupling options
4620         Add note that -gnata enables all checks
4621         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
4622         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
4623         New warning flag -gnatw.e
4624
4625         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
4626         Add entry for -gnatyN (forgotten before)
4627         Line for new warning switch -gnatw.p
4628         New warning flag -gnatw.e
4629
4630         * gnat_ugn.texi: Add documentation fpr project file switch -aP
4631         Document -gnaty - + y
4632         Replace occurences of "package specification" with "package spec"
4633         Define preprocessing symbols in documentation of gnatprep
4634         Clarify reason for distinguishing overflow checking
4635         Add documentation for project-aware tool switches -eL and --subdirs=
4636         Complete list of configuration pragmas
4637         Specify that, even when gnatmake switch -x is used, mains on the command
4638         line need to be sources of project files.
4639         Editing of gnatcheck/gnatmetric doc.
4640         Add documentation for -gnatw.p/-gnatw.P
4641         Add missing documentation for -fno-inline-functions.
4642         Add documentation for -gnatw.e
4643
4644         * gnat_rm.texi: Add documentation for No_Default_Initialization
4645         Replace occurences of "package specification" with "package spec"
4646         Document use of * in Warnings Off string
4647         Update documentation of alignment/component clauses.
4648         Add documentation for Invalid_Value
4649         Document new consistency rule for Optimize_Alignment
4650         Add documentation for Precondition and Postcondition pragmas
4651         Add documentation for Check and Check_Policy pragmas
4652         Document new Enum_Val attribute
4653         Remove requirement for static string in pragma Assert
4654         Add documentation on GNAT.Time_Stamp
4655
4656         * ug_words: add entry for -gnatVe
4657         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
4658         Add entry for -gnatw.e
4659
4660         * debug.adb: Add missing documentation for d.a flag
4661         Document new -gnatd.a switch.
4662         Add documentation for new gnatmake debug switch -df
4663
4664 2008-04-08  Thomas Quinot  <quinot@adacore.com>
4665
4666         * gen-soccon.c: Bump year in copyright notices.
4667
4668         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
4669
4670 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4671
4672         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
4673         Minor reformatting.
4674
4675 2008-04-08  Robert Dewar  <dewar@adacore.com>
4676             Bob Duff  <duff@adacore.com>
4677
4678         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
4679         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
4680
4681         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
4682
4683         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
4684
4685         * g-trasym.ads: Minor comment improvements
4686
4687         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
4688
4689         * a-sequio.ads, a-direio.ads: improve message for tagged type
4690
4691         * a-strunb.ads: Minor reformatting
4692
4693         * a-tifiio.adb: Minor reformatting
4694
4695         * atree.adb (Fix_Parents): Use clearer names for formals
4696         Cleanup and simplify code
4697         Use named notation in calls
4698
4699         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
4700         confusing calls
4701
4702         * uintp.adb: Used named notation for some confusing calls
4703
4704         * bindusg.adb: Minor change in one line of output
4705
4706         * cstand.adb: Minor reformatting of src representation of Standard
4707
4708         * a-assert.ads: Add comment.
4709
4710         * g-decstr.adb: Fix bad indentation
4711
4712         * expander.ads, expander.adb: Code clean up.
4713
4714         * sem_dist.ads: Minor comment improvement
4715
4716         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
4717         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
4718
4719         * i-cstrin.adb: Fix casing error in formal parameter name in call
4720
4721 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
4722
4723         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
4724         mentioned in limited_with_clauses to do create semantic dependencies
4725         even though they appear in the ali file.
4726
4727 2008-04-08  Emmanuel Briot  <briot@adacore.com>
4728
4729         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
4730         statement.
4731         (Get_Configuration): New subprogram.
4732
4733         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
4734         These optional parameters help preserve the casing of the project's name
4735         when pretty-printing.
4736
4737 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
4738             Arnaud Charlet  <charlet@adacore.com>
4739
4740         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
4741         then use __gnat_set_exit_status to report the returned status code.
4742
4743         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
4744         messages on .NET, since some constructs of the language are not
4745         properly supported.
4746
4747         * gnatlink.adb (Gnatlink): In case the command line is too long for the
4748         .NET linker, gnatlink now concatenate all .il files and pass this to
4749         ilasm.
4750
4751 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
4752             Xavier Grave  <grave@ipno.in2p3.fr>
4753
4754         * Makefile.in: Add make ifeq define for mips/mipsel support.
4755         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
4756         system-linux-mips.ads: New files.
4757
4758 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
4759
4760         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
4761         detect systems using GNU libc.
4762         * gsocket.h: ditto.
4763         * socket.c: ditto.
4764         * adaint.c: ditto.
4765         * link.c: ditto.
4766
4767 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
4768
4769         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
4770         constant constant for sysconf call.
4771         (bit_field): New packed boolean type used by cpu_set_t.
4772         (cpu_set_t): New type corresponding to the C type with
4773         the same name. Note that on the Ada side we use a bit
4774         field array for the affinity mask. There is not need
4775         for the C macro for setting individual bit.
4776         (pthread_setaffinity_np): New imported routine.
4777         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
4778         on GNU/kFreeBSD.
4779
4780 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4781
4782         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
4783
4784 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4785
4786         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
4787         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
4788         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
4789         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
4790         Return by Depressed Stack Pointer.
4791
4792 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4793
4794         * decl.c (is_variable_size): Do not unconditionally return false
4795         on non-strict alignment platforms.
4796
4797 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4798
4799         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
4800         used to process all the variants of the specified type.
4801         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
4802         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
4803         (rest_of_type_decl_compilation): Likewise.
4804         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
4805
4806 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
4807
4808         * gigi.h (insert_block): Kill.
4809         * utils.c (insert_block): Kill.
4810
4811 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
4812
4813         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
4814         type has self-referential size, get the size from the initializing
4815         expression directly if it is also a constant whose nominal type
4816         has self-referential size.
4817
4818 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4819
4820         PR ada/33688
4821         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
4822
4823         PR ada/33857
4824         * env.c: Always include crt_externs.h if __APPLE__ is defined.
4825         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
4826
4827 2008-04-01  Andreas Jaeger  <aj@suse.de>
4828
4829         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
4830         IP_PKTINFO.
4831
4832 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4833
4834         * g-table.adb, g-tasloc.adb, g-traceb.ads,
4835         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
4836         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
4837         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
4838         gnatlink.adb, gnatmem.adb, gprep.adb,
4839         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
4840         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
4841         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
4842         lib-xref.ads, lib.adb, link.c, live.ads,
4843         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
4844         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
4845         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
4846         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
4847         namet.adb, namet.h, nlists.adb, nlists.ads,
4848         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
4849         osint-c.ads, osint.adb, osint.ads, output.ads,
4850         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
4851         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
4852         par-endh.adb, par-labl.adb, par-prag.adb,
4853         par-sync.adb, par-tchk.adb, par-util.adb,
4854         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
4855         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
4856         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
4857         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
4858
4859 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
4860
4861         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
4862         size if it has overflowed.
4863
4864 2008-03-31  Olivier Hainque  <hainque@adacore.com>
4865             Eric Botcazou  <ebotcazou@adacore.com>
4866
4867         * utils2.c (find_common_type): Document assumption on t1/t2 vs
4868         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
4869
4870 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4871
4872         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
4873         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
4874         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
4875         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
4876         exp_tss.ads, exp_util.adb, exp_util.ads,
4877         exp_vfpt.adb, freeze.adb, freeze.ads,
4878         frontend.adb, g-alleve.adb, g-altcon.adb,
4879         g-altive.ads, g-alveop.ads, g-alvevi.ads,
4880         g-arrspl.adb, g-busorg.ads, g-calend.adb,
4881         g-calend.ads, g-casuti.ads, g-cgideb.adb,
4882         g-comlin.adb, g-comlin.ads, g-curexc.ads,
4883         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
4884         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
4885         g-dyntab.adb, g-encstr.ads, g-excact.ads,
4886         g-except.ads, g-expect.ads, g-heasor.adb,
4887         g-hesora.adb, g-hesorg.adb, g-htable.ads,
4888         g-locfil.ads, g-md5.adb, g-md5.ads,
4889         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
4890         g-pehage.adb, g-pehage.ads, g-regexp.adb,
4891         g-regexp.ads, g-regpat.adb, g-regpat.ads,
4892         g-soccon-aix.ads, g-soccon-darwin.ads,
4893         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
4894         g-soccon-hpux.ads, g-soccon-irix.ads,
4895         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
4896         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
4897         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
4898         g-soccon-solaris.ads, g-soccon-tru64.ads,
4899         g-soccon-vms.ads, g-soccon-vxworks.ads,
4900         g-soccon.ads, g-socket.adb, g-socket.ads,
4901         g-socthi-mingw.adb, g-socthi-vms.adb,
4902         g-socthi-vxworks.adb, g-soliop-mingw.ads,
4903         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
4904         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
4905         typos.
4906
4907 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
4908
4909         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
4910         if the procedure is imported.
4911
4912 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
4913
4914         * adaint.c: Fix warnings.
4915
4916 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
4917
4918         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
4919
4920 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
4921
4922         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
4923         Fix problem of status check for null file
4924
4925 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
4926
4927         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
4928         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
4929         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
4930         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
4931         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
4932         comments.
4933
4934 2008-03-26  Thomas Quinot  <quinot@adacore.com>
4935
4936         PR ada/33688
4937         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
4938         Get_Socket_Option): Add support for Receive_Packet_Info.
4939
4940         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4941         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
4942         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
4943         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
4944         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
4945         new constants SO_REUSEPORT and IP_PKTINFO
4946
4947 2008-03-26  Robert Dewar  <dewar@adacore.com>
4948
4949         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
4950         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
4951         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
4952         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
4953         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
4954         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
4955         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
4956         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4957         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
4958         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
4959         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
4960         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
4961         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
4962         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
4963         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
4964         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
4965         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
4966         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
4967         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
4968         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
4969         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
4970         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
4971         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
4972         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
4973         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
4974         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
4975         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
4976         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
4977         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
4978         s-tasloc.adb: Minor reformatting.
4979         Update comments.
4980         Remove "used for" sections from comments.
4981
4982 2008-03-26  Robert Dewar  <dewar@adacore.com>
4983
4984         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4985         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4986         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4987         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4988         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4989         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4990         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4991         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4992         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4993         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4994         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4995         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4996         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4997         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4998         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4999         double spaced if it fits on one line and otherwise single spaced.
5000
5001 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5002
5003         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
5004         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
5005         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
5006         or task info if the thread could not be created.
5007
5008 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
5009
5010         * gnatvsn.ads (Library_Version): Bump to 4.4.
5011         (Current_Year): Bump to 2008.
5012
5013 2008-03-26  Robert Dewar  <dewar@adacore.com>
5014
5015         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
5016
5017         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
5018
5019         * debug.adb: Add debug flags d.r and d.v
5020         Add debug flag .T (Optimize_Alignment (Time))
5021         Add debug flag .S (Optimize_Alignment (Space))
5022
5023         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
5024         depending on setting of relevant debug flags.
5025         Replace use of Warnings_Off by Has_Warnings_Off
5026         (Freeze_Entity): In circuit for warning on suspicious convention
5027         actuals, do not give warning if subprogram has same entity as formal
5028         type, or if subprogram does not come from source.
5029         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
5030         if Optimize_Alignment set to Space.
5031
5032         * frontend.adb: Add call to Sem_Warn.Initialize
5033         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
5034         Reset Optimize_Alignment mode from debug switches .S and .T
5035
5036         * layout.adb (Layout_Composite_Object): Rewritten for
5037         Optimize_Aligment pragma.
5038
5039         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
5040         mode.
5041
5042         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
5043
5044         * par-prag.adb (N_Pragma): Chars field removed, use Chars
5045         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
5046         this change. Add entry for pragma Optimize_Alignment
5047
5048         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
5049         (Pragma_Identifier (..
5050         instead, adjustments throughout to accomodate this change.
5051         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
5052         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
5053         Add implementation of pragma Optimize_Alignment
5054
5055 2008-03-26  Vincent Celier  <celier@adacore.com>
5056
5057         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
5058         Improve memory usage to avoid use of stack.
5059
5060 2008-03-26  Robert Dewar  <dewar@adacore.com>
5061
5062         * a-teioed.ads: Correct value of Default_Fill
5063
5064         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
5065
5066 2008-03-26  Robert Dewar  <dewar@adacore.com>
5067
5068         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
5069         with Current_Output (introduce Self).
5070
5071 2008-03-26  Robert Dewar  <dewar@adacore.com>
5072
5073         * checks.adb (Ensure_Valid): Capture valid status if possible
5074         (eliminate checks)
5075
5076 2008-03-26  Robert Dewar  <dewar@adacore.com>
5077
5078         * stand.ads: Deal with reordering of package standard declarations
5079
5080         * cstand.adb: Put package Standard declarations in proper order
5081
5082 2008-03-26  Robert Dewar  <dewar@adacore.com>
5083
5084         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
5085         (Pragma_Identifier (.. instead.
5086         (OK_To_Reorder_Components): New flag
5087         (Has_Entries): Code cleanup.
5088         (Warnings_Off_Used): New flag
5089         (Warnings_Off_Used_Unmodified): New flag
5090         (Warnings_Off_Used_Unreferenced): New flag
5091         (Has_Warnings_Off): New function
5092         (Has_Unmodified): New function
5093         (Has_Unreferenced): New function
5094         (Is_Trivial_Subprogram): New flag
5095         (Is_Static_Dispatch_Table_Entity): New attribute.
5096         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
5097         (more consistent with other similar names)
5098         (Access_Subprogram_Type): New classification function
5099
5100 2008-03-26  Robert Dewar  <dewar@adacore.com>
5101
5102         * errout.ads: Document new !! insertion sequence
5103
5104         * errout.adb (N_Pragma): Chars field removed, use Chars
5105         (Pragma_Identifier (..  instead.
5106         Replace use of Warnings_Off by Has_Warnings_Off
5107         (Error_Msg_Internal): Don't delete warning ending in !!
5108
5109 2008-03-26  Robert Dewar  <dewar@adacore.com>
5110
5111         * par.adb (Check_No_Right_Paren): Removed no longer used
5112
5113         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
5114         (Pragma_Identifier (..  instead.
5115
5116         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
5117
5118         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
5119         par-ch4.adb: Minor improvements in error recovery and messages.
5120
5121         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
5122         non-serious
5123
5124         * par-ch9.adb: Minor improvements in error recovery and messages
5125         (P_Protected): Better error recovery for "protected type x;"
5126
5127         * par-util.adb: Minor improvements in error recovery and messages
5128         (Check_No_Right_Paren): Removed no longer used
5129
5130 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5131
5132         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
5133         that the prefix of an attribute is the type of the aggregate being
5134         expanded.
5135
5136 2008-03-26  Javier Miranda  <miranda@adacore.com>
5137             Robert Dewar  <dewar@adacore.com>
5138
5139         * exp_attr.adb (N_Pragma): Chars field removed.
5140         (Expand_N_Attribute_Reference): If the designated type associated with
5141         attribute 'Unrestricted_Access is a subprogram entity then replace it
5142         by an E_Subprogram_Type itype.
5143         Implement attribute Old
5144
5145         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
5146
5147         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
5148         Replace call to
5149         New_Internal_Entity by call to Create_Itype to centralize calls
5150         building itypes, ad propagate the convention of the designated
5151         subprogram. In addition, disable the machinery cleaning constant
5152         indications from all entities in current scope when 'Unrestricted_Access
5153         corresponds with a node initializing a dispatch table slot.
5154         (Analyze_Attribute): Parameterless attributes returning a string or a
5155         type will not be called with improper arguments, so we can remove junk
5156         code that was dealing with this case.
5157         Implement attribute Old
5158
5159         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
5160         Add entry for pragma Optimize_Alignment
5161         New standard names Sync and Synchronize
5162
5163 2008-03-26  Robert Dewar  <dewar@adacore.com>
5164             Arnaud Charlet  <charlet@adacore.com>
5165
5166         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
5167         stmt.
5168         (No_Exception_Propagation_Active): New function.
5169         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5170         Update comments, and review all uses of No_Exception_Propagation, which
5171         are now correct and in sync with what gigi expects.
5172
5173         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
5174         function.
5175         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5176         Update comments, and review all uses of No_Exception_Propagation, which
5177         are now correct and in sync with what gigi expects.
5178
5179 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5180
5181         * sem_ch3.adb (Access_Definition): If the access type is the return
5182         result of a protected function, create an itype reference for it
5183         because usage will be in an inner scope from the point of declaration.
5184         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
5185         OK_To_Reorder_Components.
5186         (Make_Index): If an overloaded range includes a universal integer
5187         interpretation, resolve to Standard.Integer.
5188         (Analyze_Subtype_Indication): Copy Convention to subtype
5189         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
5190         limited an synchronized progenitors in type declaration and private
5191         extension declarations.
5192
5193         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
5194         protected subprogram body, determine proper scope from subprogram
5195         declaration.
5196
5197 2008-03-26  Robert Dewar  <dewar@adacore.com>
5198
5199         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
5200         No_Run_Time_Mode
5201
5202 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
5203
5204         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
5205         of a heap allocator for a limited unconstrained function return when
5206         resstriction No_Allocators is active.
5207         (Analyze_Allocator): The restriction No_Allocators is now only checked
5208         on allocators that have Comes_From_Source set, as per RM-H.4(7).
5209
5210         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
5211         of a heap allocator for a limited unconstrained function return when
5212         resstriction No_Allocators is active.
5213         (Analyze_Allocator): The restriction No_Allocators is now only checked
5214         on allocators that have Comes_From_Source set, as per RM-H.4(7).
5215         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
5216         operands are fixed-point types, the universal_fixed predefined operation
5217         is used, regardless of whether the operand type (s) have a primitive
5218         operation of the same name.
5219
5220 2008-03-26  Javier Miranda  <miranda@adacore.com>
5221
5222         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
5223         Is_Static_Dispatch_Table
5224         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
5225         to Exchange_Declarations to exchange the private and full-view. Bug
5226         found working in this issue.
5227         (Expand_Dispatching_Call): Propagate the convention of the subprogram
5228         to the subprogram pointer type.
5229         (Make_Secondary_DT): Replace generation of Prim'Address by
5230         Address (Prim'Unrestricted_Access)
5231         (Make_DT): Replace generation of Prim'Address by
5232         Address (Prim'Unrestricted_Access)
5233         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
5234         simple call form for single entry.
5235         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
5236         tables of predefined primitives).
5237         (Make_Secondary_DT): Add support to handle access to dispatch tables of
5238         predefined primitives.
5239         (Make_Tags): Add entities to Access_Dispatch_Table associated with
5240         access to dispatch tables containing predefined primitives.
5241
5242         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
5243         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
5244         this change.
5245         (Register_Predefined_DT_Entry): Updated to handle the new contents
5246         of attribute Access_Disp_Table (pointers to dispatch tables containing
5247         predefined primitives).
5248
5249         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
5250         subprogram.
5251         (Find_Interface_ADT): Updated to skip the new contents of attribute
5252         Access_Dispatch_Table (pointers to dispatch tables containing predefined
5253         primitives).
5254
5255         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
5256         concurrent types.
5257         (Set_Convention): Use new function Is_Access_Subprogram_Type
5258         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
5259         Access_Dispatch_Table (pointers to dispatch tables containing predefined
5260         primitives).
5261
5262         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
5263         expanded code avoiding calls to Build_Predef_Prims.
5264         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
5265         call to Build_Get_Predefined_Prim_Op_Address.
5266
5267 2008-03-26  Javier Miranda  <miranda@adacore.com>
5268
5269         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
5270         subprogram Corresponding_Runtime_Package to know the runtime package
5271         that will provide support to a given protected type.
5272
5273         * exp_ch9.adb (Add_Private_Declarations,
5274         Build_Protected_Subprogram_Call,
5275         Build_Protected_Entry, Build_Simple_Entry_Call,
5276         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
5277         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
5278         cleanup using the new centralized subprogram Corresponding_Runtime
5279         Package to know the runtime package that provides support to
5280         a given protected type.
5281
5282 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5283
5284         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
5285         assignment is within the initialization procedure for a packed array,
5286         and Initialize_Scalars is enabled, compile right-hand side with checks
5287         off, because the value is purposely out of range.
5288
5289 2008-03-26  Vincent Celier  <celier@adacore.com>
5290
5291         * gnatcmd.adb: Add processing for GNAT SYNC
5292
5293         * vms_conv.ads: (Command_Type): Add command Sync
5294
5295         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
5296
5297         * vms_data.ads: Add entries for -gnatw.w
5298         Add qualifier for gnatstub --header-file option
5299         Add switches for GNAT SYNC
5300
5301         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
5302         (Add_Package_Name): New procedure
5303         (Package_Name_List): New function
5304         (Initialize): Add known package names to the list
5305         (Register_New_Package): Add the new package name to the list
5306
5307 2008-03-26  Robert Dewar  <dewar@adacore.com>
5308
5309         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
5310         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
5311         Raise_Exception by "raise with" construct.
5312
5313 2008-03-26  Pascal Obry  <obry@adacore.com>
5314
5315         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
5316         supported platforms.
5317         
5318         * Makefile.rtl: Add g-sercom.o.
5319         
5320         * impunit.adb: Add g-sercom.adb.
5321         
5322         * s-crtl.ads (open): New routine.
5323         (close): Likewise.
5324         (write): Likewise.
5325         
5326         * s-osinte-mingw.ads (BYTE): New type.
5327         (CHAR): Likewise.
5328         (OVERLAPPED): Likewise.
5329         (GENERIC_READ): New constant.
5330         (GENERIC_WRITE): Likewise.
5331         (OPEN_EXISTING): Likewise.
5332         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
5333         type instead.
5334         (CreateFile): New routine.
5335         (WriteFile): Likewise.
5336         (ReadFile): Likewise.
5337         (CloseHandle): Move next to the other file oriented routines.
5338
5339         * g-sercom.ads: New unit.
5340
5341         * g-sercom.adb: Default implementation, calls to this unit will raise
5342         a program error exception.
5343         
5344         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
5345         GNU/Linux implementations.
5346
5347 2008-03-26  Robert Dewar  <dewar@adacore.com>
5348
5349         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
5350
5351         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
5352         unchecked conversion for different conventions only for subprogram
5353         pointers or on VMS.
5354
5355 2008-03-26  Vincent Celier  <celier@adacore.com>
5356
5357         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
5358         to check if the specified object file is correct.
5359
5360 2008-03-26  Thomas Quinot  <quinot@adacore.com>
5361
5362         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
5363         Comes_From_Source to exclude primitives from being checked. We want to
5364         exclude predefined primitives only, so use the appropriate specific
5365         predicate. Also, flag a formal parameter of an anonymous
5366         access-to-subprogram type as illegal for a primitive operation of a
5367         remote access to class-wide type.
5368
5369 2008-03-26  Vincent Celier  <celier@adacore.com>
5370
5371         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
5372         known, check if it may be a missspelling of a known package name. In
5373         not verbose, not mode, issue warnings only if the package name is a
5374         possible misspelling.
5375         In verbose mode, always issue a warning for a not known package name,
5376         plus a warning if the name is a misspelling of a known package name.
5377
5378         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
5379         limited withs or limited withs are parse during one call.
5380         (Parse_Single_Project): Post parse context clause in two passes: non
5381         limited withs before current project and limited withs after current
5382         project.
5383
5384         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
5385         project with the name With_Name, even if it is only extended indirectly.
5386         (Recursive_Process): Process projects in order: first single withs, then
5387         current project, then limited withs.
5388
5389         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
5390         project with the name With_Name, even if it is only extended indirectly.
5391
5392 2008-03-26  Robert Dewar  <dewar@adacore.com>
5393
5394         * scn.adb (Initialize_Scanner): Format messages belong on standard error
5395
5396 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5397
5398         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
5399         a generic subprogram that is imported, do not attempt to compile
5400         non-existent body.
5401
5402         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
5403         imported, do not generate a raise_program_error for the non-existent
5404         body.
5405         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
5406         perform minimal name resolution on the generic to avoid spurious
5407         warnings.
5408         (Find_Actual_Type): the designated type of the actual in a child unit
5409         may be declared in a parent unit without being an actual.
5410
5411 2008-03-26  Robert Dewar  <dewar@adacore.com>
5412
5413         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
5414         * sinfo.ads, sinfo.adb (From_At_End): New flag
5415
5416 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5417
5418         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
5419         operations that have an interface parameter.
5420         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
5421         Don't treat No_Return call as raise.
5422
5423         * sem_disp.adb (Check_Dispatching_Operations): apply check for
5424         non-primitive interface primitives to access parameters, not to all
5425         parameters of an access type.
5426
5427 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
5428
5429         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
5430         declarations of a parent unit are made visible when compiling a child
5431         instance, the parent is not a hidden open scope, even though it may
5432         contain other pending instance.
5433         
5434         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
5435         hidden open scope for some child instance, it does affect the
5436         visibility status of other stach entries.
5437         (Analyze_Object_Renaming): Check that a class-wide object cannot be
5438         renamed as an object of a specific type.
5439
5440 2008-03-26  Robert Dewar  <dewar@adacore.com>
5441
5442         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
5443         recursion and raise SE directly.
5444         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
5445         set for formal type for IN mode parameter.
5446
5447 2008-03-26  Robert Dewar  <dewar@adacore.com>
5448
5449         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
5450         (Initialize): New procedure
5451         (Output_Warnings_Off_Warnings): New procedure
5452         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
5453         (Output_Non_Modifed_In_Out_Warnings): Ditto
5454         (Warn_On_Unreferenced_Entity): Ditto
5455
5456 2008-03-26  Vincent Celier  <celier@adacore.com>
5457
5458         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
5459         readable.
5460
5461 2008-03-26  Matthew Heaney  <heaney@adacore.com>
5462
5463         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
5464         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
5465         Marked with clauses as private, and controlled operations as overriding
5466
5467 2008-03-26  Robert Dewar  <dewar@adacore.com>
5468
5469         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
5470
5471 2008-03-26  Robert Dewar  <dewar@adacore.com>
5472
5473         * back_end.adb, back_end.ads: Minor reformatting
5474
5475         * bindgen.adb: Minor clarification of comments
5476
5477         * fname.ads: Minor comment fixes
5478
5479         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
5480         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
5481
5482         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
5483         xsnames.adb: Remove warnings off pragma no longer needed
5484
5485         * a-catizo.ads, a-calari.ads, a-calfor.adb,
5486         a-calfor.ads: Fix header.
5487
5488 2008-03-26  Tristan Gingold  <gingold@adacore.com>
5489
5490         * init.c: Do not adjust pc for HPARITH on alpha/vms.
5491
5492 2008-03-26  Robert Dewar  <dewar@adacore.com>
5493
5494         * lib-xref.adb: (OK_To_Set_Reference): New function
5495         (Generate_Reference): Don't set referenced from occurrence in Warnings,
5496         Unmodified, or Unreferenced pragma
5497
5498 2008-03-26  Robert Dewar  <dewar@adacore.com>
5499
5500         * alloc.ads: Add entries for Warnings_Off_Pragmas table
5501
5502 2008-03-26  GNAT Script  <nobody@adacore.com>
5503
5504         * Make-lang.in: Makefile automatically updated
5505
5506 2008-03-26  Robert Dewar  <dewar@adacore.com>
5507
5508         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
5509         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
5510         removed, use Chars (Pragma_Identifier (..  instead, adjustments
5511         throughout to accomodate this change.
5512
5513         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
5514
5515         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
5516         Einfo.Set_Needs_Debug_Info)
5517
5518 2008-03-26  Robert Dewar  <dewar@adacore.com>
5519
5520         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
5521         Add description for the new gnatstub option '--header-file'
5522         clarification of -gnatwz/-gnatwZ
5523         Add a "Irix-Specific Considerations" section to document the need to
5524         set LD_LIBRARY_PATH when using the default shared runtime library.
5525         Added documentation for both gcov and gprof.
5526
5527         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
5528         messages that are not suppressed when clients are compiled.
5529         Add documentation of s-pooglo s-pooloc
5530         Document the new GNAT.Serial_Communications API.
5531         Add documentation for 'Old attribute
5532         Add description of pragma Optimize_Alignment
5533
5534         * ug_words: Add entries for -gnatw.w -gnatw.W
5535
5536         * usage.adb: Add line for -gnatw.w (warn on warnings off)
5537
5538 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
5539
5540         Revert
5541         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
5542         PR ada/35186
5543         * decl.c (maybe_pad_type): Avoid padding an integral type when
5544         bumping its alignment is sufficient.
5545
5546 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
5547
5548         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
5549         Fix wrong formatting (lines too long)
5550
5551 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5552
5553         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
5554         a-calend-vms.adb, a-calend.adb, a-calend.ads,
5555         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
5556         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
5557         a-cohama.ads, a-comlin.ads, a-coorse.adb,
5558         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
5559         a-except-2005.ads, a-except.adb, a-except.ads,
5560         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
5561         a-exextr.adb, a-filico.ads, a-finali.ads,
5562         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
5563         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
5564         a-sequio.ads, a-strbou.ads, a-strfix.adb,
5565         checks.adb, exp_ch3.adb, exp_ch4.adb,
5566         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
5567         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
5568         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
5569         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
5570         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
5571
5572 2008-03-24  Robert Dewar  <dewar@adacore.com>
5573
5574         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5575         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5576         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5577         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5578         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5579         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5580         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5581         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5582         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5583         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5584         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5585         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5586         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5587         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5588         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5589         double spaced if it fits on one line and otherwise single spaced.
5590
5591 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5592
5593         PR documentation/15479
5594         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
5595         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
5596         (doc/gnat_ugn.info): Renamed from ...
5597         (doc/gnat_ugn_unw.info): ... this.
5598         (doc/gnat_ugn.dvi): Renamed from ...
5599         (doc/gnat_ugn_unw.dvi): ... this.
5600         (doc/gnat_ugn.pdf): Renamed from ...
5601         (doc/gnat_ugn_unw.pdf): ... this.
5602         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
5603         Adjusted.
5604         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
5605         unconditionally to gnat_ugn.info.  Fix cross references to the
5606         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
5607         and GNU make manuals to be proper texinfo links.
5608         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
5609
5610 2008-03-21  Olivier Hainque  <hainque@adacore.com>
5611
5612         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
5613         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
5614
5615 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
5616
5617         * trans.c (addressable_p): Add notes on addressability issues.
5618
5619 2008-03-21  Olivier Hainque  <hainque@adacore.com>
5620             Ed Schonberg  <schonberg@adacore.com>
5621
5622         * trans.c (addressable_p): Accept COND_EXPR when both arms
5623         are addressable.
5624         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
5625         (call_to_gnu): Do not use name reference in the error message
5626         for a misaligned by_reference_parameter. The actual may be a
5627         general expression.
5628
5629 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
5630
5631         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5632
5633 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5634
5635         * gnat_rm.texi (Implementation Defined Characteristics)
5636         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
5637         appropriate.
5638         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
5639         (Switches for gnatchop, Installing a library): Likewise.
5640
5641 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
5642
5643         * trans.c (emit_range_check): Do not emit the check if the base type
5644         of the expression is the type against which its range must be checked.
5645
5646 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
5647
5648         * decl.c (maybe_pad_type): Use value_factor_p.
5649
5650 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
5651
5652         * lang.opt (nostdlib): Move around.
5653         * misc.c (gnat_handle_option): Fix formatting.
5654         (gnat_dwarf_name): Move around.
5655         * trans.c (Case_Statement_to_gnu): Fix formatting.
5656         (gnat_to_gnu): Likewise.
5657         * utils.c (aggregate_type_contains_array_p): Likewise.
5658         (create_subprog_decl): Likewise.
5659
5660 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
5661
5662         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
5663         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
5664
5665 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
5666
5667         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
5668         BIGGEST_ALIGNMENT when capping the alignment of records with
5669         strict alignment and size clause.
5670
5671 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
5672
5673         * lang-specs.h: Pass -gnatwa if -Wall is passed.
5674         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
5675         and -Wuninitialized.
5676         (gnat_post_options): Clear warn_unused_parameter.
5677
5678 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
5679
5680         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
5681         aligned bit-fields, bumping the alignment of the record type if deemed
5682         profitable.
5683         (value_factor_p): Return false instead of 0.
5684
5685 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
5686
5687         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
5688         for scalar types with small alignment.
5689
5690 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
5691
5692         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
5693         from that of the front-end's end label.
5694         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
5695         from that of the loop label.
5696
5697 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
5698
5699         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
5700         comment for the packed array type case.
5701         * utils.c (build_template): Use a loop to strip padding or
5702         containing records for justified modular types.
5703
5704 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
5705
5706         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
5707         large alignments specified for types.
5708         (validate_alignment): Minor cleanup.
5709
5710 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
5711
5712         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
5713         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
5714         the component for packing, if possible, as well as if a component
5715         size clause is specified.
5716         <E_Record_Subtype>: For an array type used to implement a packed
5717         array, get the component type from the original array type.
5718         Try to get a smaller form of the component for packing, if possible,
5719         as well as if a component size clause is specified.
5720         (round_up_to_align): New function.
5721         (make_packable_type): Add in_record parameter.
5722         For a padding record, preserve the size.  If not in_record and the
5723         size is too large for an integral mode, attempt to shrink the size
5724         by lowering the alignment.
5725         Ditch the padding bits of the last component.
5726         Compute sizes and mode manually, and propagate the RM size.
5727         Return a BLKmode record type if its size has shrunk.
5728         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
5729         Use Original_Array_Type to retrieve the type in case of an error.
5730         Adjust call to make_packable_type.
5731         (gnat_to_gnu_field): Likewise.
5732         (concat_id_with_name): Minor tweak.
5733         * trans.c (larger_record_type_p): New predicate.
5734         (call_to_gnu): Compute the nominal type of the object only if the
5735         parameter is by-reference.  Do the conversion actual type -> nominal
5736         type if the nominal type is a larger record.
5737         (gnat_to_gnu): Do not require integral modes on the source type to
5738         avoid the conversion for types with identical names.
5739         (addressable_p): Add gnu_type parameter.  If it is specified, do not
5740         return true if the expression is not addressable in gnu_type.
5741         Adjust recursive calls.
5742         * utils.c (finish_record_type): Remove dead code.
5743
5744 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
5745
5746         PR ada/35186
5747         * decl.c (maybe_pad_type): Avoid padding an integral type when
5748         bumping its alignment is sufficient.
5749
5750 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5751
5752         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
5753         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
5754         statement.
5755         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
5756         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
5757         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
5758         code output strings.
5759         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
5760         system-vms_64.ads: Fix typos in ada source code comments.
5761         * sinfo-cn.adb: Remove incomplete sentence.
5762
5763         PR documentation/15479
5764         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
5765
5766 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
5767
5768         PR ada/22255
5769         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
5770
5771 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
5772
5773         PR ada/34799
5774         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
5775         that underlying type is present.
5776
5777 2008-02-26  Tom Tromey  <tromey@redhat.com>
5778
5779         * misc.c (internal_error_function): Remove test of
5780         USE_MAPPED_LOCATION.
5781         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
5782         (Sloc_to_locus): Remove old location code.
5783
5784 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5785
5786         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
5787         `i.e.' by adding comma or `@:' as appropriate.
5788         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
5789         plain characters `C', use `@samp{C}'.
5790         * gnat_ugn.texi (File Naming Rules, About gnatkr)
5791         (Krunching Method): Likewise.
5792
5793         * gnat_ugn.texi (Conventions): List environment variables and
5794         metasyntactic variables.
5795         (Compiling Programs): Fix notation of metasyntactic variables.
5796         Add @file where appropriate.  Use @file for file extensions,
5797         @samp for strings.
5798         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
5799         instead of @file, @env instead of @code.
5800
5801 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5802
5803         PR documentation/15479
5804         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
5805         and `...' with `@dots{}' or `@enddots{}'.
5806
5807         PR documentation/15479
5808         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
5809         use @command instead of @code, @option instead of @samp or @code,
5810         @code instead of @var, @samp instead of @file.
5811
5812         PR documentation/15479
5813         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
5814         in Makefile rules, by using `&&' rather than `;'.
5815
5816 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5817
5818         PR documentation/15479
5819         * gnat_ugn.texi: In non-code, avoid space before colon.
5820         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
5821         (Examples of gnatxref Usage): Use @command{vi} instead of
5822         @file{vi}.
5823         (Character Set Control): Do not use @code for UTF-8.
5824         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
5825         use @code for IEEE.
5826         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
5827         sample.
5828         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
5829
5830 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
5831
5832         PR ada/35143
5833         * env.c: Add __rtems__ to if defined.
5834         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
5835         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
5836         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
5837         pragma Convention as required.
5838         * gsocket.h: Make compile in and out of RTS.
5839         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
5840         Use g-soccon-rtems.ads.
5841         * g-soccon-rtems.ads, system-rtems.ads: New files.
5842
5843 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5844
5845         PR other/35107
5846         * Make-lang.in (gnat1): Add $(GMPLIBS).
5847
5848 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
5849
5850         * decl.c (components_to_record): Improve comment.
5851
5852 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
5853
5854         * decl.c (components_to_record): Do not reuse the empty union type
5855         if there is a representation clause on the record.
5856         * trans.c (addressable_p): Return true for INTEGER_CST.
5857
5858 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
5859
5860         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
5861         in pointer arithmetics.
5862         * utils2.c (build_allocator): Likewise.
5863
5864 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
5865
5866         * utils.c (build_function_stub): Properly build the call expression.
5867
5868 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
5869
5870         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
5871         before converting the expression to the type of the object.
5872         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
5873         Stabilize constructors for special wrapping types.
5874
5875 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
5876
5877         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
5878         when necessary.  Merge some conditional statements.  Update comments.
5879         Rename unchecked_convert_p local variable to suppress_type_conversion.
5880         Do not suppress conversions in the In case.
5881         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
5882         into account on non strict-alignment platforms.
5883
5884 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
5885
5886         * utils.c (aggregate_type_contains_array_p): New predicate.
5887         (create_field_decl): In a packed record, force byte alignment
5888         for fields without specified position that contain an array.
5889
5890 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
5891
5892         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
5893
5894 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
5895
5896         PR ada/34466
5897         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
5898         sysconf call.
5899         (bit_field): New packed boolean type used by cpu_set_t.
5900         (cpu_set_t): New type corresponding to the C type with
5901         the same name. Note that on the Ada side we use a bit
5902         field array for the affinity mask. There is not need
5903         for the C macro for setting individual bit.
5904         (pthread_setaffinity_np): New imported routine.
5905
5906 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
5907
5908         PR ada/34647
5909         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5910         on OpenBSD as is done on other BSD systems.
5911
5912         PR ada/34645
5913         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
5914         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
5915         I/O.
5916
5917         PR ada/34644
5918         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
5919         clearenv().
5920
5921         PR ada/34646
5922         * init.c (__gnat_error_handler, __gnat_install_handler,
5923         __gnat_init_float): Define for OpenBSD.
5924
5925         * initialize.c (__gnat_initialize): Define for OpenBSD.
5926
5927 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
5928
5929         PR ada/34553
5930         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5931         instead of mktemp() or tmpnam() on NetBSD.
5932
5933 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
5934
5935         * trans.c (call_to_gnu): Make the temporary for non-addressable
5936         In parameters passed by reference.
5937         (addressable_p): Return true for STRING_CST and CALL_EXPR.
5938
5939 2007-12-19  Robert Dewar  <dewar@adacore.com>
5940
5941         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
5942         Add pragma Warnings (Off) for unassigned IN OUT arguments
5943
5944         * sem_warn.adb (Output_Reference): Suppress messages for internal names
5945         (Check_References): Extensive changes to tune up warnings
5946         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
5947         (Has_Pragma_Unmodifed_Check_Spec): New function
5948         (Check_References): Implement pragma Unmodified
5949         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
5950
5951         * par-prag.adb: Dummy entry for pragma Unmodified
5952
5953         * sem_prag.adb: Implement pragma Unmodified
5954
5955         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
5956         (Proc_Next_Component_Or_Discriminant): Fix typo.
5957         Update comments.
5958
5959         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
5960         Unmodified.
5961         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
5962         because the former already takes care of discarding the result.
5963         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
5964         Add comment.
5965
5966         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
5967
5968 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
5969
5970         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
5971         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5972         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
5973         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
5974         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5975         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5976         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5977         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5978         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5979         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
5980         (Dynamic_Trampolines_Used): Delete.
5981
5982         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
5983         Turn on stack probing mechanism on LynxOS.
5984
5985 2007-12-19  Bob Duff  <duff@adacore.com>
5986
5987         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
5988         the resulting tail recursion by hand. This prevents running out of
5989         memory on deeply nested concatenations, since Field2 is where the left
5990         operand of concatenations is stored.
5991         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
5992         clarify that it can only return OK or Abandon.
5993
5994         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
5995         operand by iteration, in order to avoid running out of memory on
5996         deeply-nested concatenations. Use the Parent pointer to get back up the
5997         tree.
5998         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
5999          Resolve_Op_Concat_Rest): New procedures split out of
6000         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
6001         clearer.
6002
6003         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
6004         Traverse_Func, because the former already takes care of discarding the
6005         result.
6006
6007         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
6008         because the former already takes care of discarding the result.
6009         (Remove_Warning_Messages): Use appropriate subtype for Status and
6010         Discard 
6011
6012 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6013
6014         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
6015         discriminants forces expansion of the aggregate into assignments.
6016         (Init_Record_Controller):  If the type of the aggregate is untagged and
6017         is not inherently limited, the record controller is not limited either.
6018
6019 2007-12-19  Robert Dewar  <dewar@adacore.com>
6020
6021         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
6022         handling compile time known size of record or array (case of front end
6023         layout active, e.g. in GNAAMP).
6024
6025 2007-12-19  Javier Miranda  <miranda@adacore.com>
6026
6027         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
6028         that forces the construction of static dispatch tables in case of
6029         record subtypes.
6030
6031 2007-12-19  Robert Dewar  <dewar@adacore.com>
6032
6033         * exp_ch9.adb (Null_Statements): Moved to library level
6034         (Trivial_Accept_OK): New function
6035         (Expand_Accept_Declaration): Use Trivial_Accept_OK
6036         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
6037
6038 2007-12-19  Robert Dewar  <dewar@adacore.com>
6039
6040         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
6041         in complex case where array is Volatile.
6042
6043 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6044
6045         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
6046         properly the Ada2005 rules concerning when the current instance of a
6047         record type is aliased.
6048
6049 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6050
6051         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
6052         mangled declaration
6053         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
6054         declarations.
6055         (P_Variant_Part): Cleaner patch for parenthesized discriminant
6056
6057 2007-12-19  Vincent Celier  <celier@adacore.com>
6058
6059         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
6060         package is not known
6061
6062         * prj-attr.ads (Unknown_Package): New constant
6063         Do not crash when an unknown package is in several projects
6064
6065         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
6066         ignored
6067
6068         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
6069         existing package Language_Processing.
6070
6071 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6072             Gary Dismukes  <dismukes@adacore.com>
6073             Samuel Tardieu  <sam@rfc1149.net>
6074
6075         PR ada/15803, ada/15805
6076         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
6077         illegal access subtypes when there is a constrained partial view.
6078         (Check_For_Premature_Usage): New procedure inside
6079         Access_Subprogram_Declaration for checking that an access-to-subprogram
6080         type doesn't reference its own name within any formal parameters or
6081         result type (including within nested anonymous access types).
6082         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
6083         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
6084         context is an access_to_variable, the expression cannot be an
6085         access_to_constant.
6086
6087 2007-12-19  Bob Duff  <duff@adacore.com>
6088
6089         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
6090         (Analyze_Concatenation): Use iteration instead of recursion in order
6091         to avoid running out of stack space for deeply nested concatenations.
6092
6093 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
6094             Gary Dismukes  <dismukes@adacore.com>
6095
6096         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
6097         whose renamed entity is a subprogram that requires overriding.
6098         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
6099         issuing an error for premature usage and issue a message that says
6100         'type' rather than 'object'.
6101
6102 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
6103
6104         PR ada/34149
6105         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
6106         presence of a statically tagged operand (Present (Static_Tag)) with
6107         test for Indeterm_Ancestor_Call when determining whether to propagate
6108         the static tag to tag-indeterminate operands (which forces dispatching
6109         on such calls).
6110         (Check_Controlling_Formals): Ada2005, access parameters can have
6111         defaults.
6112         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
6113         not insert subprogram in list of primitive operations if already there.
6114
6115 2007-12-19  Tristan Gingold  <gingold@adacore.com>
6116
6117         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
6118         global variable.
6119
6120 2007-12-19  Thomas Quinot  <quinot@adacore.com>
6121
6122         Part of PR ada/33688
6123         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
6124         datagram info on Linux.
6125
6126 2007-12-19  Vincent Celier  <celier@adacore.com>
6127
6128         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
6129         that the source path name is always found in the dependencies.
6130
6131 2007-12-19  Robert Dewar  <dewar@adacore.com>
6132
6133         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
6134         Fix name of Wide_Wide_Latin_1/9 file names
6135         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
6136         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
6137         Add missing documentation for Ada.Command_Line.Response_File
6138         Update list of warning letters for Warnings pragma
6139         Add documentation for pragma Unmodified
6140
6141 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
6142
6143         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
6144
6145 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
6146
6147         * s-vxwork-alpha.ads: Removed, no longer used.
6148
6149 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
6150
6151         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
6152
6153 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
6154
6155         PR ada/34360
6156         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
6157         mlib-tgt-specific.adb.
6158
6159 2007-12-13  Bob Duff  <duff@adacore.com>
6160
6161         * trans.c (Attribute_to_gnu): Check for violations of the
6162         No_Implicit_Dynamic_Code restriction. This checking used to be done in
6163         the front end, but is moved here so we can make it more accurate.
6164
6165 2007-12-13  Pascal Obry  <obry@adacore.com>
6166
6167         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
6168          version is provided for older GNU/Linux distribution not
6169          supporting thread affinity sets.
6170         
6171         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
6172         call.
6173         (bit_field): New packed boolean type used by cpu_set_t.
6174         (cpu_set_t): New type corresponding to the C type with
6175         the same name. Note that on the Ada side we use a bit
6176         field array for the affinity mask. There is not need
6177         for the C macro for setting individual bit.
6178         (pthread_setaffinity_np): New imported routine.
6179         
6180         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
6181         no null.
6182         (Create_Task): Set the processor affinity mask if information
6183         is present.
6184         
6185         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
6186         
6187 2007-12-13  Robert Dewar  <dewar@adacore.com>
6188
6189         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
6190         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
6191         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
6192         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
6193         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
6194         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
6195         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
6196         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
6197         for subprogram pointers.
6198
6199         * g-ctrl_c.adb: New file.
6200
6201         * g-ctrl_c.ads (Install_Handler): New body.
6202
6203         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
6204         instead of obsolete function Is_Always_Inlined.
6205         (Freeze_Entity): check for tagged type in imported C subprogram
6206         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
6207         (Freeze_Entity): check for convention Ada subprogram pointer in
6208         imported C subprogram.
6209         (Freeze_Fixed_Point_Type): In the case of a base type where the low
6210         bound would be chopped off and go from negative to zero, force
6211         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
6212         bound) so that the size computation for the base type will take
6213         negative values into account.
6214
6215 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
6216             Bob Duff  <duff@adacore.com>
6217             Tristan Gingold  <gingold@adacore.com>
6218
6219         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
6220         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
6221         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
6222         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
6223         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
6224         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
6225         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
6226         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
6227         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
6228         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
6229         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
6230         (Always_Compatible_Rep): New flag to control trampolines globally.
6231         (Dynamic_Trampolines_Used): New flag for implementing the
6232         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
6233         and not yet set correctly for some targets).
6234
6235         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
6236         Simply indirectly call s-stchop when a task is created.
6237
6238         * ali.ads: 
6239         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
6240         appears as an argument (entries A) in an ALI file.
6241
6242         * fe.h (Stack_Check_Limits): Declare new target parameter.
6243         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
6244
6245         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
6246         This variable is declared in C to be sure not subject to elaboration
6247         code.
6248         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
6249         Storage_Error.
6250
6251         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
6252         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
6253
6254         * s-stchop.ads: Add comments.
6255
6256         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
6257         limit method of stack checking.
6258
6259         * s-stchop-limit.ads: New file.
6260
6261 2007-12-13  Robert Dewar  <dewar@adacore.com>
6262
6263         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
6264         a-cihama.adb, g-awk.adb, 
6265         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
6266         warnings
6267
6268         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
6269
6270         * sem.adb: Update handling of assigned value/unreferenced warnings
6271
6272         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
6273
6274         * lib-xref.ads: Improve documentation for k xref type
6275
6276         * lib-xref.adb: 
6277         Update handling of assigned value/unreferenced warnings
6278         (Generate_Reference): Warning for reference to entity for which a
6279         pragma Unreferenced has been given should be unconditional.
6280         If the entity is a discriminal, mark the original
6281         discriminant as referenced.
6282
6283         * sem_warn.ads, sem_warn.adb
6284         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
6285         no entities referenced in package
6286         (Check_One_Unit): Don't give message about no entities referenced in
6287         a package if a pragma Unreferenced has appeared.
6288         Handle new warning flag -gnatw.a/-gnatw.A
6289         Update handling of assigned value/unreferenced warnings
6290
6291         * atree.h: Add flags up to Flag247
6292         (Flag231): New macro.
6293
6294 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
6295
6296         * adaint.h: (__gnat_plist_init): Not defined for RTX.
6297
6298         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
6299         RTX systems.
6300
6301         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
6302         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
6303         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
6304         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
6305
6306         * mingw32.h: 
6307         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
6308
6309         * sysdep.c (winflush_function for RTX): Procedure that does nothing
6310         since we only have problems with Windows 95/98, which are not
6311         supported by RTX.
6312         (__gnat_ttyname): Return the empty string on Nucleus, just as
6313         done on vxworks.
6314
6315 2007-12-13  Robert Dewar  <dewar@adacore.com>
6316
6317         * a-textio.adb, a-textio.ads: 
6318         Extensive changes to private part for wide character encoding
6319
6320         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
6321         (Look_Ahead): Fix mishandling of encoded sequences
6322         Move declaration of Wch_Con to private part (should not be visible)
6323
6324         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
6325         UTF-8. Probably this is never used, but if it is, brackets is
6326         clearly correct.
6327
6328         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
6329         setting wide character encoding for no main program case and when
6330         encoding is specified using -W?
6331         Initialize stack limit of environment task if stack limit method of
6332         stack checking is enabled.
6333         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
6334         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
6335         (Get_Main_Unit_Name): New function.
6336         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
6337         (Gen_Output_File): Set Bind_Main_Program to True for .NET
6338
6339         * bindusg.adb: Add line for -Wx switch
6340
6341         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
6342         Add comments
6343         Add new useful constant WC_Longest_Sequences
6344
6345         * switch-b.adb: Clean up handling of -Wx switch
6346         For -gnatWx, set Wide_Character_Encoding_Method_Specified
6347
6348         * switch-c.adb: -gnatg activates warning on assertion errors
6349         For -gnatWx, set Wide_Character_Encoding_Method_Specified
6350
6351         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
6352
6353 2007-12-13  Robert Dewar  <dewar@adacore.com>
6354             Ed Schonberg  <schonberg@adacore.com>
6355
6356         * a-ngcoty.adb: New pragma Fast_Math
6357
6358         * opt.adb: New pragma Fast_Math
6359
6360         * par-prag.adb: 
6361         Add Implemented_By_Entry to the list of pragmas which do not require any
6362         special processing.
6363         (Favor_Top_Level): New pragma.
6364         New pragma Fast_Math
6365
6366         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
6367         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6368         Expand_Allocator_Expression): Take into account VM_Target
6369         (Expand_Attribute, case 'Identity):  Handle properly the case where
6370         the prefix is a task interface.
6371         New pragma Fast_Math
6372
6373         * par.adb (Next_Token_Is): New function
6374         (P_Pragma): Add Skipping parameter
6375         (U_Left_Paren): New procedure
6376         (U_Right_Paren): New procedure
6377         New pragma Fast_Math
6378
6379         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
6380         subunit
6381         New pragma Fast_Math
6382
6383         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
6384         Implemented_By_Entry.
6385         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
6386         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
6387         items, since it can apply to more than one overloadable entity. Set
6388         new flag Has_Pragma_Inline_Always for Inline_Always case.
6389         (Analyze_Pragma, case Complex_Representation): Improve error message.
6390         (Analyze_Pragma, case Assert): When assertions are disabled build the
6391         rewritten code with Sloc of expression rather than pragma, so new
6392         warning about failing is not deleted.
6393         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
6394         protected types and update error message to reflect that. Test whether
6395         the protected type is allowed for the pragma (an error is issued if the
6396         type has any entries, or components that do not have preelaborable
6397         initialization).
6398         New pragma Fast_Math
6399         (Analyze_Pragma, case No_Return): Handle generic instance
6400
6401         * snames.h, snames.ads, snames.adb: 
6402         Add new predefined name for interface primitive _Disp_Requeue.
6403         New pragma Fast_Math
6404
6405         * a-tags.ads, a-tags.adb: New calling sequence for
6406         String_To_Wide_[Wide_]String
6407         (Secondary_Tag): New subprogram.
6408
6409         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
6410         from Exp_Attr
6411         New calling sequence for String_To_Wide_[Wide_]String
6412         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
6413         the use of the secondary stack for image routines.
6414
6415         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
6416         calling sequence for String_To_Wide_[Wide_]String
6417
6418         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
6419         Ada 95 mode
6420         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
6421         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6422
6423         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
6424         (P_Formal_Part): Use Skipping parameter in P_Pragma call
6425         to improve error recovery
6426
6427         * par-util.adb (Next_Token_Is): New function
6428         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
6429
6430         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
6431         semicolon if missing
6432         (P_Pragma): Implement new Skipping parameter
6433         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6434         Fix location of flag for unrecognized pragma message
6435
6436         * par-tchk.adb (U_Left_Paren): New procedure
6437         (U_Right_Paren): New procedure
6438
6439 2007-12-13  Geert Bosch  <bosch@adacore.com>
6440
6441         * a-tifiio.adb: 
6442         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
6443         the second or later Scaled_Divide would omit leading zeroes,
6444         resulting in too few digits produced and a Layout_Error as result.
6445         (Put): Initialize Pos.
6446
6447 2007-12-13  Robert Dewar  <dewar@adacore.com>
6448
6449         atree.ads, atree.adb (Flag231..Flag247): New functions
6450         (Set_Flag231..Set_Flag247): New procedures
6451         (Basic_Set_Convention): Rename Set_Convention to be
6452         Basic_Set_Convention
6453         (Nkind_In): New functions
6454         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6455
6456         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
6457         instead
6458          of obsolete function Is_Always_Inlined
6459         (Register_Predefined_DT_Entry): Initialize slots of the second
6460         secondary dispatch table.
6461         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6462         (Expand_N_Function_Call): Remove special provision for stack checking.
6463
6464         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
6465         Include _Disp_Requeue in the list of predefined operations.
6466         (Find_Interface_ADT): Modified to fulfill the new specification.
6467         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6468
6469         * par-ch4.adb, nlists.ads, nlists.adb: 
6470         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6471
6472         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
6473         Fix location of flag for unrecognized pragma message
6474
6475         * sem_ch7.adb: Use Nkind_In
6476
6477 2007-12-13  Vincent Celier  <celier@adacore.com>
6478
6479         * opt.ads: 
6480         Indicate what flags are used by the Project Manager, gprbuild and
6481         gprclean.
6482         (Opt.Follow_Links_For_Dirs): New flag
6483         (Warn_On_Assertion_Failure): New flag
6484         (Wide_Character_Encoding_Method_Specified): New flag
6485         (Suppress_All_Inlining): New switch set by -fno-inline
6486         (Real_VMS_Target): New flag
6487         New pragma Fast_Math
6488
6489 2007-12-13  Robert Dewar  <dewar@adacore.com>
6490
6491         * back_end.adb: Recognize -fno-inline
6492
6493 2007-12-13  Robert Dewar  <dewar@adacore.com>
6494
6495         * checks.adb: Fix optimization problem with short-circuited form
6496
6497 2007-12-13  Bob Duff  <duff@adacore.com>
6498
6499         * clean.adb (Usage): Add line for -aP
6500         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
6501         with a parameter "procedure Usage", instead of passing a pointer to a
6502         procedure. This is to eliminate trampolines (since the Usage procedure
6503         is often nested in a main procedure, and it would be inconvenient to
6504         unnest it).
6505
6506         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
6507         to be generic, with a parameter "procedure Callback (...)", instead of
6508         passing a pointer to a procedure. This is to eliminate trampolines
6509         (since the Callback procedure is usually nested).
6510
6511         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
6512         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
6513         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
6514
6515         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
6516         Use the generic Heap_Sort_G instead of Heap_Sort_A.
6517
6518 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
6519
6520         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
6521         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
6522         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
6523         (Renamed_In_Spec): New flag
6524         (Has_Pragma_Inline_Always): New flag
6525         Add missing doc for pragma Obsolescent_Warning
6526         Add missing doc for 17 additional unused flags (230-247)
6527         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
6528         Alphabetize with clauses.
6529         Separate Is_Thunk and Has_Thunks flags
6530         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
6531         (Related_Interface): Renamed to Related_Type.
6532         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
6533         (Set_Is_Flag): Restrict the assertion.
6534
6535 2007-12-13  Vincent Celier  <celier@adacore.com>
6536
6537         * errout.adb (Output_Source_Line): Do not keep a trailing space after
6538         the source line number if the source line is empty.
6539
6540 2007-12-13  Geert Bosch  <bosch@adacore.com>
6541
6542         * eval_fat.adb (Decompose_Int): Handle argument of zero.
6543         (Compose): Remove special casing of zero.
6544         (Exponent): Likewise.
6545         (Fraction): Likewise.
6546         (Machine): Likewise.
6547         (Decompose): Update comment.
6548
6549 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
6550
6551         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
6552         limited ancestor part, initialize controllers of enclosing record
6553         before expanding ancestor aggregate.
6554         (Gen_Assign): If a component of the aggregate is box-initialized, add
6555         code to call Initialize if the component is controlled, and explicit
6556         assignment of null if the component is an access type.
6557
6558         Handle properly aggregates for limited types that appear in object
6559         declarations when the aggregate contains controlled values such as
6560         protected types.
6561         When expanding limited aggregates into individual components, do not
6562         call Adjust on controlled components that are limited.
6563
6564 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
6565
6566         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
6567
6568 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
6569
6570         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
6571         predefined primitive _Disp_Requeue.
6572         (Make_Predefined_Primitive_Specs): Create the spec for predefined
6573         primitive _Disp_Requeue.
6574         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
6575         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
6576         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
6577         an interface type. In case of limited interfaces we now declare all the
6578         predefined primitives associated with synchronized interfaces as
6579         abstract.
6580         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
6581         declarations.
6582         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
6583         tagged type is an interface type and there is no user-defined equality
6584         function.
6585         Add also bodies of predefined primitives associated with synchronized
6586         interfaces.
6587         (Freeze_Record_Type): Do not build bodies of predefined primitives of
6588         interface types because they are now defined abstract.
6589         Add missing documentation.
6590         (Expand_Record_Controller): Update occurrence of Related_Interface
6591         to Related_Type.
6592         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
6593         (Expand_N_Object_Declaration): Take into account VM_Target when handling
6594         class wide interface object declaration.
6595         (Expand_Previous_Access_Type): Do not create a duplicate master entity
6596         if the access type already has one.
6597         (Expand_N_Object_Declaration): Defend against attempt to validity check
6598         generic types. Noticed for -gnatVcf specified with previous errors.
6599
6600 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
6601
6602         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6603         Expand_Allocator_Expression): Take into account VM_Target
6604
6605         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
6606         secondary stack when VM_Target /= No_VM
6607
6608 2007-12-13  Javier Miranda  <miranda@adacore.com>
6609             Ed Schonberg  <schonberg@adacore.com>
6610
6611         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
6612         Is_Complation_Unit by Is_Library_Level_Entity in the code
6613         that decides if the static dispatch tables need to be built.
6614         (Wrap_Transient_Declaration): Do not generate a finalization call if
6615         this is a renaming declaration and the renamed object is a component
6616         of a controlled type.
6617
6618 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
6619
6620         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
6621         In the case where the renamed subprogram is a dereference, call
6622         Force_Evaluation on the prefix.
6623
6624 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
6625             Ed Schonberg  <schonberg@adacore.com>
6626
6627         * exp_ch9.adb (Expand_N_Asynchronous_Select,
6628         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
6629         comment reformatting.
6630         (Set_Privals): Inherit aliased flag from formal. From code reading.
6631         (Build_Simple_Entry_Call): Out parameters of an access type are passed
6632         by copy and initialized from the actual. This includes entry parameters.
6633         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
6634         and Ada 2005 models of requeue.
6635         (Null_Statements): Still connsider do-end block null if it contains
6636         Unreferenced and Warnings pragmas.
6637         (Expand_N_Accept_Statement): Do not optimize away null do end if
6638         dispatching policy is other than defaulted.
6639         (Expand_N_Timed_Entry_Call): When the triggering statement is a
6640         dispatching call, manually analyze the delay statement.
6641         (Find_Parameter_Type): Move subprogram to Sem_Util.
6642
6643 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
6644             Javier Miranda  <miranda@adacore.com>
6645
6646         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
6647         _Disp_Requeue occupies dispatch table slot number 15. Move
6648         _Disp_Timed_Select to slot 16.
6649         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
6650         generate the spec and body of _Disp_Reqeueue.
6651         (Make_DT): Build and initialize the second dispatch table.
6652         Handle initialization of RC_Offset when the parent
6653         is a private type with variable size components.
6654         (Make_Secondary_DT): Complete documentation. Add support to
6655         initialize the second dispatch table.
6656         (Make_Tags): Generate the tag of the second dispatch table.
6657         (Register_Primitive): Add support to register primitives in the
6658         second dispatch table.
6659
6660 2007-12-13  Pascal Obry  <obry@adacore.com>
6661
6662         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
6663         Windows. This signal is used by gnatmake to kill child processes for
6664         example.
6665
6666 2007-12-13  Javier Miranda  <miranda@adacore.com>
6667
6668         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
6669         support for generic dispatching constructor calls in which we need to
6670         locate the tag of a secondary dispatch table associated with an
6671         interface type to properly dispatch the call.
6672         (Expand_N_Attribute_Reference [case Address],
6673         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
6674         handling of VM targets.
6675
6676 2007-12-13  Robert Dewar  <dewar@adacore.com>
6677             Ed Schonberg  <schonberg@adacore.com>
6678
6679         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
6680         assert fail
6681
6682         * ug_words: Add entries for -gnatw.a -gnatw.A
6683
6684         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
6685         literal is a subtype with non-static constraints, use the base type of
6686         the context as the base of the string subtype, to prevent type
6687         mismatches in gigi.
6688         (Resolve_Actuals): If the actual is an entity name, generate a
6689         reference before the actual is resolved and expanded, to prevent
6690         spurious warnings on formals of enclosing protected operations.
6691         (Analyze_Overloaded_Selected_Component): If type of prefix if
6692         class-wide, use visible components of base type.
6693         (Resolve_Selected_Component): Ditto.
6694         (Resolve_Short_Circuit): Detect case of pragma Assert argument
6695         evaluating to False, and issue warning message.
6696
6697         * usage.adb: Add lines for -gnatw.a and -gnatw.A
6698
6699 2007-12-13  Emmanuel Briot  <briot@adacore.com>
6700
6701         * g-calend.ads (No_Time): New constant, to represent an uninitialized
6702         time value
6703
6704         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
6705         formats.
6706         (Month_Name_To_Number): New subprogram
6707
6708         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
6709         letter to upper-case.
6710
6711 2007-12-13  Robert Dewar  <dewar@adacore.com>
6712             Ed Schonberg  <schonberg@adacore.com>
6713
6714         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
6715
6716         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
6717         context is a limited view, use non-limited view when available. If the
6718         non-limited view is an unconstrained array, this enforces consistency
6719         requirements in 3.10.2 (27).
6720         (Layout_Type): For an access type whose designated type is a limited
6721         view, examine its declaration to determine if it is an unconstrained
6722         array, and size the access type accordingly.
6723         (Layout_Type): Do not force 32-bits for convention c subprogram
6724         pointers in -gnatdm mode, only if real vms target.
6725
6726         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
6727         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6728         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
6729         violations of the No_Implicit_Dynamic_Code restriction.
6730         (Resolve_Attribute, case 'Access): If designated type of context is a
6731         limited view, use non-limited view when available. If the non-limited
6732         view is an unconstrained array, this enforces consistency requirements
6733         in 3.10.2 (27).
6734         (Layout_Type): For an access type whose designated type is a limited
6735         view, examine its declaration to determine if it is an unconstrained
6736         array, and size the access type accordingly.
6737
6738 2007-12-13  Vincent Celier  <celier@adacore.com>
6739
6740         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
6741         object directory of main project does not exist.
6742         On VMS, correctly set then environment variable for the source
6743         directories.
6744
6745 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
6746
6747         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
6748         set to True this procedure will create the value of type REG_EXPAND_SZ.
6749         It was only possible to create REG_SZ values before.
6750
6751 2007-12-13  Robert Dewar  <dewar@adacore.com>
6752
6753         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
6754         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
6755         namet-sp.adb, namet-sp.ads: New files.
6756
6757         * g-speche.adb: Use generic routine in g-spchge
6758
6759         * s-wchcnv.ads, s-wchcnv.adb: 
6760         Minor code cleanup (make formal type consistent with spec)
6761
6762         * namet.adb: Update comments.
6763
6764         * par-endh.adb (Evaluate_End_Entry): Use new
6765         Namet.Sp.Is_Bad_Spelling_Of function
6766
6767         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
6768
6769         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
6770         ancestor is an access type initialized with a box, set its type
6771         explicitly, for use in subsequent expansion.
6772         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
6773         function
6774
6775 2007-12-13  Robert Dewar  <dewar@adacore.com>
6776
6777         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
6778         access Vstring)
6779
6780 2007-12-13  Robert Dewar  <dewar@adacore.com>
6781
6782         * inline.adb (Back_End_Cannot_Inline): Use new flag
6783         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6784
6785         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
6786         Has_Pragma_Inline_Always instead.
6787         of obsolete function Is_Always_Inlined
6788         (Build_Body_To_Inline): Same change
6789         (Cannot_Inline): Same change
6790         Do not give warning on exception raise in No_Return function
6791
6792         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
6793         component has two inconsistent component clauses in the same record
6794         representation clause, favor the message that complains about
6795         duplication rather than inconsistency.
6796         Update comments.
6797         (Record_Representation_Clause): Do not warn on missing component
6798         clauses for inherited components of a type extension.
6799         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
6800         an overloadable item if it is a pragma that can apply to multiple
6801         overloadable entities (e.g. Inline) because a pragma cannot be on
6802         more than one chain at a time.
6803         (Validate_Unchecked_Conversion): Add code to warn on unchecked
6804         conversion where one of the operands is Ada.Calendar.Time.
6805         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
6806         For now, ignore Component_Size clause on VM targets, as done for
6807         pragma Pack.
6808
6809 2007-12-13  Emmanuel Briot  <briot@adacore.com>
6810             Vincent Celier  <celier@adacore.com>
6811
6812         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
6813         string
6814         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
6815         prj.ads
6816         (Hash): Move instantiation of System.HTable.Hash from spec to body
6817         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
6818         systems, since we do not need to recompute the Name_Id for the canonical
6819         file name.
6820         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6821         as a parameter. This parameter is in fact always "ada" in all calls, and
6822         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
6823         while loading a project with 40000 files
6824
6825         * prj-attr.adb: Fix name of attribute Dependency_Driver
6826         Change the kind of indexing for attribute Root
6827
6828         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
6829         variables already declared, in case constructions.
6830
6831         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
6832         Current_Object_Path_File to No_Path.
6833
6834         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
6835         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
6836
6837         * prj-makr.adb: new parameter Current_Dir
6838
6839         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
6840         Ada sources when language is not Ada.
6841         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6842         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
6843         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
6844         (Locate_Directory): Always resolve links when computing Canonical_Path
6845         (Look_For_Sources): Make sure that Name_Buffer contains the file name
6846         in Source_Files before checking for the presence of a directory
6847         separator.
6848         Optimize calls to Name_Find when on case sensitive systems.
6849         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6850         as a parameter.
6851         (Prj.Nmsc.Check): new parameter Current_Dir
6852         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
6853         cannot be empty and the spec suffix cannot be the same as the body or
6854         separate suffix.
6855         (Get_Unit): When a file name can be of several unit kinds (spec, body or
6856         subunit), always consider the longest suffix.
6857         (Check_Configuration): Do not issue an error if there is no compiler
6858         for a language. Just issue a warning and ignore the sources for the
6859         language.
6860         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
6861         not empty.
6862         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
6863         (Unit_Exceptions): New hash table
6864         (Check_Naming_Schemes): Check if a file that could be a unit because of
6865         the naming scheme is not in fact a source because there is an exception
6866         for the unit.
6867         (Look_For_Sources): Put the unit exceptions in hash table
6868         Unit_Exceptions
6869         (Get_Unit_Exceptions): Give initial value No_Source to local variable
6870         Other_Part to avoid exception when code is compiled with validity
6871         checking.
6872         (Get_Sources_From_File): Check that there is no directory information
6873         in the file names.
6874         (Look_For_Sources): Check that there is no directory information in the
6875         list of file names in Source_Files.
6876         (Look_For_Sources): In multi-language mode, do not allow exception file
6877         names that are excluded.
6878         (Excluded_Sources_Htable): New hash table
6879         (Search_Directories.Check_File): New procedure to simplify
6880         Search_Directories.
6881         (Search_Directories): Do not consider excluded sources
6882         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
6883         Search_Directories.
6884         (Get_Exceptions): Set component Lang_Kind of Source_Data
6885         (Get_Unit_Exceptions): Ditto
6886         (Search_Directories): Ditto
6887
6888         * prj-pars.adb: new parameter Current_Dir
6889
6890         * prj-part.ads, prj-part.adb: 
6891         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6892         (Opt.Follow_Links_For_Dirs): New flag
6893         (Project_Path_Name_Of): Cache information returned by this routine as
6894         Locate_Regular_File is a costly routine. The code to output a log
6895         information and the effective call to Locate_Regular_File is now
6896         factorized into a routine (code clean-up).
6897         (Parse, Parse_Single_Project): new parameter Current_Dir
6898         When main project file cannot be found, indicate in the error
6899         message the project path that was used to do the search.
6900
6901         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
6902         (Prj.Proc.Process*): new parameter Current_Dir
6903
6904         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
6905
6906 2007-12-13  Bob Duff  <duff@adacore.com>
6907
6908         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
6909         procedure to be called from the back end to check the
6910         No_Implicit_Dynamic_Code restriction.
6911
6912 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
6913
6914         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
6915         Fixes another case where RTE_Available_Call was ignored instead of being
6916         taken into account.
6917         (Load_Fail): Ditto.
6918
6919         * rtsfind.ads: Add new entries.
6920
6921 2007-12-13  Robert Dewar  <dewar@adacore.com>
6922
6923         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
6924         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
6925
6926         * scn.adb: Implement BOM recognition
6927
6928 2007-12-13  Thomas Quinot  <quinot@adacore.com>
6929             Ed Schonberg  <schonberg@adacore.com>
6930
6931         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
6932         subprogram body that acts as its own spec may not have a non-private
6933         WITH clause on a private sibling.
6934         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
6935         child unit is a renaming, create an implicit with_clause on that
6936         parent, and not on the unit it renames, to prevent visibility errors
6937         in the current unit.
6938
6939 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
6940
6941         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
6942         renaming declaration, use the Slocs of the formal parameters from the
6943         declaration of the formal subprogram when creating the formal parameter
6944         entities in the renaming declaration.
6945         (Analyze_Formal_Type_Declaration): Change the placement of the error
6946         message concerning illegal known discriminants. It is now posted on the
6947         type rather than on the first discriminant. This change ensures early
6948         error report.
6949         (Freeze_Subprogram_Body): If the generic subprogram is nested within
6950         the package body that contains the instance, do not generate an
6951         out-of-place freeze node for the enclosing package.
6952         (Collect_Previous_Instantiations): Ignore internal instantiations
6953         generated for formal packages.
6954         (Validate_Derived_Type_Instance): Add a check that when a formal
6955         derived type is Known_To_Have_Preelab_Init then the actual type must
6956         have preelaborable initialization, and issue an error when this
6957         condition is violated.
6958
6959 2007-12-13  Robert Dewar  <dewar@adacore.com>
6960
6961         * s-imenne.adb, s-imenne.ads: New files.
6962
6963         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
6964         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
6965         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
6966         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
6967         s-imgwch.ads: New calling sequence for Image routines to avoid sec
6968         stack usage.
6969
6970 2007-12-13  Javier Miranda  <miranda@adacore.com>
6971             Ed Schonberg  <schonberg@adacore.com>
6972
6973         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
6974         generation of spurious error if parent is an interface type; caused
6975         because predefined primitive bodies will be generated later by
6976         Freeze_Record_Type.
6977         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
6978         flag.
6979         (Derive_Subprograms): Handle derivations of predefined primitives
6980         after all the user-defined primitives to ensure that they are
6981         found in proper order in instantiations.
6982         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
6983         of Related_Interface to Related_Type.
6984         (Record_Type_Declaration): Minor reordering of calls to decorate the
6985         Tag component because the entity must have set its Ekind attribute
6986         before setting its Is_Tag attribute.
6987         (Analyze_Subtype_Declaration): In the case of subtypes with
6988         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
6989
6990 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
6991             Ed Schonberg  <schonberg@adacore.com>
6992
6993         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
6994         statement to the list of contexts where a selected component with a
6995         concurrent tagged type prefix should yield a primitive operation.
6996         (Find_Primitive_Operation): Handle case of class-wide types.
6997         (Analyze_Overloaded_Selected_Component): If type of prefix is
6998         class-wide, use visible components of base type.
6999         (Resolve_Selected_Component): Ditto.
7000         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
7001         formal of a generic subprogram. find candidate interpretations by
7002         scanning the list of generic formal declarations.:
7003         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
7004         type from a limited_with_clause, and the full view is available, use it
7005         for subsequent semantic checks.
7006         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
7007         (Find_Primitive_Operation): New function.
7008         (Analyze_Overloaded_Selected_Component): insert explicit dereference
7009         only once if several interpretations of the prefix yield an access type.
7010         (Try_Object_Operation): Code and comment cleanup.
7011         (Analyze_Selected_Component): Reorder local variables. Minot comment and
7012         code reformatting. When the type of the prefix is tagged concurrent, a
7013         correct interpretation might be available in the primitive and
7014         class-wide operations of the type.
7015
7016 2007-12-13  Robert Dewar  <dewar@adacore.com>
7017             Ed Schonberg  <schonberg@adacore.com>
7018
7019         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
7020         renaming entry as subprogram using rename-as-body if subprogram spec
7021         frozen.
7022         (Use_One_Type): The clause is legal on an access type whose designated
7023         type has a limited view.
7024         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7025         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7026         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
7027         operation denoted by a selected component.
7028         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
7029         it can be an expression, possibly overloaded, that returns a task or
7030         an access to one.
7031
7032 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7033             Gary Dismukes  <dismukes@adacore.com>
7034
7035         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
7036         requeue statement is dispatching. Do not emit an error when the name is
7037         not an entry and the context is a dispatching select. Add code to
7038         perform subtype conformance between the formals of the current entry
7039         and those of the target interface primitive.
7040         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
7041         Timed_Entry_Call): Analyze the triggering statement as the first step of
7042         the processing. If this is a dispatching select, postpone the analysis
7043         of all select statements until the Expander transforms the select. This
7044         approach avoids generating duplicate identifiers after the Expander has
7045         replicated some of the select statements. In case the Expander is
7046         disabled, perform regular analysis.
7047         (Check_Triggering_Statement): New routine.
7048         (Analyze_Requeue): Exclude any interpretations that are not entries when
7049         checking overloaded names in a requeue. Also test type conformance for
7050         matching interpretations rather than requiring subtype conformance at
7051         that point to conform with the RM's resolution rule for requeues.
7052
7053 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
7054
7055         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
7056         inherited operation is a defaulted tag-indeterminate call, and there is
7057         a statically tagged actual, use the static tag as a controlling actual
7058         for the defaulted actual.
7059
7060 2007-12-13  Geert Bosch  <bosch@adacore.com>
7061
7062         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
7063         context, so do not call Check_Non_Static_Context.
7064
7065 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
7066
7067         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
7068         whether formal E is an entity which may have parameters.
7069
7070 2007-12-13  Bob Duff  <duff@adacore.com>
7071             Javier Miranda  <miranda@adacore.com>
7072             Robert Dewar  <dewar@adacore.com>
7073
7074         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
7075         (Set_Convention): New procedure to set the Convention flag, and in
7076         addition make sure the Favor_Top_Level flag is kept in sync (all
7077         foreign-language conventions require Favor_Top_Level = True).
7078         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
7079         to Related_Type.
7080         (Collect_Interfaces_Info): Minor update to handle the two secondary
7081         dispatch tables. Update occurrence of Related_Interface to Related_Type.
7082         (Generate_Parent_Ref): Add parameter to specify entity to check
7083         (Is_Preelaborable_Expression): Allow the name of a discriminant to
7084         initialize a component of a type with preelaborable initialization.
7085         This includes the case of a discriminal used in such a context.
7086         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
7087         latest Ada 2005 rules about renaming and 'Access of
7088         discriminant-dependent components.
7089         (Check_Nested_Access): Add handling when there are no enclosing
7090         subprograms (e.g. case of a package body).
7091         (Find_Parameter_Type): Factor routine from several other compiler files.
7092         Remove routine from Find_Overridden_Synchronized_Primitive.
7093
7094 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7095
7096         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
7097         an invalid access to an uninitialized slot in the
7098         Source_File_Index_Table.
7099
7100 2007-12-13  Thomas Quinot  <quinot@adacore.com>
7101
7102         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
7103
7104 2007-12-13  Bob Duff  <duff@adacore.com>
7105
7106         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
7107         access-to-subprogram types in this package.
7108
7109 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7110
7111         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
7112         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
7113         Stack_Overlay_Address and document that we are using an internal
7114         abstraction.
7115         (Byte_Size, Unsigned_32_Size): Remove, now useless.
7116         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
7117         consistently throughout the various implementation pieces.
7118
7119         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
7120         overlay we are using to fill the stack area with patterns.
7121         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
7122         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
7123         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
7124
7125 2007-12-13  Robert Dewar  <dewar@adacore.com>
7126
7127         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
7128
7129 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7130
7131         * s-tassta.adb: 
7132         (Create_Task): Take into account tasks created by foreign threads.
7133         Code clean up: use constants instead of hard coded values.
7134
7135 2007-12-13  Robert Dewar  <dewar@adacore.com>
7136
7137         * styleg.adb (Check_Comment): More liberal rules for comment placement
7138
7139 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7140
7141         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
7142         of Procedure Value instead of Frame Pointer as the invocation
7143         identifier associated with the instruction pointer in each traceback
7144         entry.
7145
7146         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
7147         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
7148         Pointer as the invocation identifier passed to tbk$symbolize.
7149
7150         * s-traent-vms.ads, s-traent-vms.adb
7151         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
7152         Procedure Value instead of Frame Pointer as the invocation identifier
7153         passed to tbk$symbolize.
7154
7155 2007-12-13  Robert Dewar  <dewar@adacore.com>
7156
7157         * tbuild.ads, tbuild.adb: 
7158         Fix location of flag for unrecognized pragma message
7159
7160 2007-12-13  Robert Dewar  <dewar@adacore.com>
7161
7162         * treepr.ads, treepr.adb: (pl): implement use of positive value
7163         shorthands
7164
7165 2007-12-13  Robert Dewar  <dewar@adacore.com>
7166
7167         * xeinfo.adb: Remove warnings
7168         * xnmake.adb: Remove warnings
7169         * xsinfo.adb: Remove warnings
7170         * xtreeprs.adb: Remove warnings
7171         * xsnames.adb: Remove warnings
7172
7173         * a-ngcoar.adb: Fix typo.
7174         * s-interr.adb: Minor reformatting
7175         * env.c: Minor reformatting.
7176         * g-bytswa.adb: Minor reformatting.
7177         * g-rannum.ads: Minor documentation improvements
7178         * s-tasinf-mingw.adb: Minor header fix
7179         * a-clrefi.adb: Minor reformatting
7180         * g-sttsne.ads: Minor documentation improvement
7181         * g-sttsne-locking.ads: Minor documentation improvement
7182         * g-soliop-solaris.ads: Minor documentation improvement
7183         * g-soliop-mingw.ads: Minor documentation improvement
7184         * g-soliop.ads: Minor documentation improvement
7185         * exp_aggr.ads: Minor reformatting
7186         * debug.adb: Add documentation for the gprbuild debug flags
7187         * exp_ch2.adb: Use Nkind_In to simplify code throughout
7188         * exp_pakd.adb: Minor reformatting
7189
7190         * g-altive.ads, g-alleve.adb: Remove assertions.
7191         Add comment about minor differences between targets regarding
7192         floating-point operations.
7193
7194         * g-thread.adb: Remove pragma unreferenced.
7195         * lib.ads: Minor reformatting
7196         * par-ch9.adb: Minor reformatting of error messages
7197         * sem_case.adb: Minor reformatting
7198         * s-fileio.adb: Minor reformattinng
7199         * s-vmexta.ads: Minor typo
7200         * vxaddr2line.adb: 
7201         Take into account 'Success' value as per new GNAT warning.
7202
7203 2007-12-13  Vincent Celier  <celier@adacore.com>
7204
7205         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
7206         even on Windows
7207
7208 2007-12-13  Robert Dewar  <dewar@adacore.com>
7209             Bob Duff  <duff@adacore.com>
7210
7211         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
7212         Document that suffixes may be terminations of each others
7213         Add doc for -gnatw.a and -gnatw.A
7214         Document gnatbind -Wx switch
7215         Document BOM recognition
7216         Document pragma Implemented_By_Entry.
7217         Document new units.
7218
7219         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
7220         Add doc for pragma Unreferenced suppressing no entities referenced msg
7221         Add documentation of GNAT.Directory_Operations.Iteration
7222         Add documentation of GNAT.Random_Numbers
7223         Add documentation for pragma Shared.
7224         Correct documentation for Bit_Order
7225         Add documentation for the Pool_Address attribute.
7226         Fix and improve documentation of pragma machine_attribute.
7227         New pragma Fast_Math
7228         Document BOM recognition
7229
7230         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
7231         Add /Wide_Character_Encoding for binder
7232         Add qualifier for the new gnatpp option --no-separate-loop-then
7233
7234 2007-12-13  Matthew Heaney  <heaney@adacore.com>
7235
7236         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
7237         which generic formal operations are called for each operation.
7238
7239 2007-12-13  Olivier Hainque  <hainque@adacore.com>
7240
7241         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
7242         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
7243
7244 2007-12-13  Emmanuel Briot  <briot@adacore.com>
7245
7246         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
7247         Reference_Dir unless we actually need it.
7248
7249 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
7250             Tristan Gingold  <gingold@adacore.com>
7251
7252         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
7253
7254         * s-osprim-vms.adb,
7255         a-calend-vms.adb: Remove pragma warning off and add pragma
7256         unreferenced.
7257
7258 2007-12-13  Robert Dewar  <dewar@adacore.com>
7259
7260         * impunit.adb: Add entries for missing units
7261
7262         * Makefile.rtl: Add new run-time units.
7263
7264         * Make-lang.in:  Update dependencies.
7265
7266 2007-12-13  Bob Duff  <duff@adacore.com>
7267
7268         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
7269         types, set Can_Use_Internal_Rep appropriately, based on
7270         Always_Compatible_Rep_On_Target.
7271
7272 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
7273             Arnaud Charlet  <charlet@adacore.com>
7274
7275         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
7276         it to the front end and setting the aamp_target environment variable
7277         to the switch's argument to ensure that gnaampbind and gnaamplink will
7278         take the specified library into account.
7279         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
7280         target, since the CIL compiler supports an "object" file (.il files).
7281
7282 2007-12-13  Vincent Celier  <celier@adacore.com>
7283
7284         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
7285         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
7286
7287 2007-12-13  Geert Bosch  <bosch@adacore.com>
7288
7289         * s-parame-vxworks.adb: 
7290         Update comments to reflect usage of this package by Nucleus.
7291
7292 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
7293
7294         * i-vxwork.ads: Kill new warning on Convention C, since changing the
7295         spec would break code.
7296
7297         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
7298
7299         * system-vxworks-alpha.ads: Removed.
7300
7301 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
7302
7303         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
7304
7305 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
7306
7307         PR ada/34366
7308         * sem_ch3.adb (Designates_T): New function.
7309         (Mentions_T): Factor reusable part of the logic into Designates_T.
7310         Consider non-access parameters and access and non-access result.
7311         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
7312         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
7313
7314         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
7315
7316 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
7317
7318         PR ada/34361
7319         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
7320         the new implementation of target-specific calls.
7321
7322 2007-12-07  Olivier Hainque  <hainque@adacore.com>
7323
7324         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
7325         the designated full view, only follow a second level Full_View link
7326         for Non_Limited_Views of from_limited_with references.
7327         
7328 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
7329
7330         PR ada/15805
7331         * sem_ch6.adb (Process_Formals): Prevent an access type formal
7332         to be initialized with an access to constant object.
7333
7334         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
7335         when an access to constant is used to initialize an access
7336         value.
7337
7338         PR ada/21346
7339         * a-direct.adb (Compose): Containing_Directory can be an empty string.
7340
7341 2007-12-07  Olivier Hainque  <hainque@adacore.com>
7342
7343         PR ada/34173
7344         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
7345         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
7346         this is from an alignment clause on the GNAT entity.
7347         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
7348         to distinguish the case where we set it from the type's alignment.
7349         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
7350         whether this alignment was set from an explicit alignment clause.
7351
7352 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
7353
7354         * decl.c (make_packable_type): Revert last change.
7355         (gnat_to_gnu_field): Avoid setting size and position multiple times.
7356         * utils.c (finish_record_type): Retrieve the real name of the type.
7357
7358 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
7359
7360         * trans.c (lvalue_required_p): Take base node directly instead
7361         of its parent.  Rename second parameter to 'gnu_type'.
7362         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
7363         <N_Slice>: Likewise.
7364         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
7365         Adjust calls to lvalue_required_p.
7366
7367 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
7368
7369         PR ada/21489
7370         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
7371         parameters of an entry call.
7372
7373 2007-12-03  Robert Dewar  <dewar@adacore.com>
7374             Samuel Tardieu  <sam@rfc1149.net>
7375
7376         PR ada/34287
7377         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
7378         of variables declared in a library-level package.
7379     
7380 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
7381
7382         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
7383         of Empty_String'Unchecked_Access.
7384
7385         * Makefile.in: Add support for sh4-linux.
7386
7387         * system-linux-sh4.ads: New file.
7388
7389 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
7390
7391         PR ada/33722
7392         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
7393         and its argument must not be free()ed.
7394
7395 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
7396
7397         * decl.c (make_packable_type): Retrieve the real name of the type.
7398         (maybe_pad_type): Simplify similar code.
7399
7400 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
7401
7402         PR ada/15804
7403         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
7404         than an identifier is used after "case" in a variant_part.
7405
7406         PR ada/17318
7407         * par-ch4.adb (Is_Parameterless_Attribute): New map.
7408         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
7409         attribute name or not depending on the new map.
7410
7411         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
7412         returning a string or a type will not be called with improper
7413         arguments.
7414
7415         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
7416
7417         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
7418
7419         PR ada/32792
7420         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
7421         Signal an error when attribute argument is a fixed-point value of
7422         an unknown type.
7423
7424         PR ada/22559
7425         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
7426         a derived ordinary fixed point type.
7427
7428         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
7429         RM_Size when a Small clause is found.
7430
7431 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
7432
7433         PR 34081/C++
7434         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
7435         Pass 'false' for the new allocate_struct_function parameter.
7436         * utils.c (build_function_stub): Likewise.
7437
7438 2007-11-25  Richard Guenther  <rguenther@suse.de>
7439
7440         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
7441         (gnat_poplevel): Likewise.
7442
7443 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
7444
7445         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
7446         strict alignment, no alignment clause and a known static size, cap
7447         the type alignment to the greatest power of 2 factor of the size.
7448         (gnat_to_gnu_field): If the field has a component clause, is aliased
7449         or of a type with strict alignment, require that its size be equal to
7450         that of the type.
7451         (validate_size): Use the type size as the minimum size for a type with
7452         strict alignment.
7453
7454 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
7455
7456         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
7457         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7458         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
7459         Use 'Access instead of 'Unchecked_Access in second and third
7460         arguments of pthread_sigmask.
7461
7462 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
7463
7464         * decl.c (ceil_alignment): New function.
7465         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
7466         (make_packable_type): Likewise.
7467
7468 2007-11-22  Olivier Hainque  <hainque@adacore.com>
7469
7470         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
7471         to fit in 80 columns.
7472
7473 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
7474
7475         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
7476         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
7477
7478 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
7479
7480         PR ada/34098
7481         * misc.c (gnat_adjust_rli): Delete.
7482         (gnat_init): Do not initialize the translation code here.
7483         Do not call set_lang_adjust_rli.
7484         * trans.c (init_code_table): Make static.
7485         (gnat_init_stmt_group): Delete.
7486         (gigi): Initialize the translation code entirely here.
7487         Emit debug info for the common types here instead of...
7488         * utils.c (gnat_init_decl_processing): ...here.
7489         * gigi.h (init_code_table): Delete.
7490         (gnat_init_stmt_group): Likewise.
7491
7492 2007-11-16  Olivier Hainque  <hainque@adacore.com>
7493
7494         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
7495         retrieving an allocator return value from a super-aligned address from
7496         here to ...
7497         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
7498         expect a super-aligned address for a fat or thin pointer.
7499         
7500 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
7501
7502         * trans.c (call_to_gnu): Always set the source location on the call
7503         expression.  If the function returns-by-target, also set it on the
7504         address expression.
7505
7506 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
7507
7508         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
7509         sections of non-supported Interix target.
7510
7511         * s-osinte-interix.ads: Removed.
7512
7513         * i-cstrin.ads (chars_ptr): Make it a C convention type.
7514
7515 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
7516
7517         * a-tasatt.adb: Add a comment at the beginning of the package
7518         explaining why in general 'Unchecked_Access must be used instead
7519         of 'Access.
7520
7521         * sem_prag.adb (Process_Convention): Move the test for the
7522         entity on which the Convention pragma applies down to also
7523         forbid pragma Convention on enumeration literals reached
7524         through renamings.
7525
7526 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
7527
7528         * a-tasatt.adb: Revert previous change for this file as it will
7529         generate an error when this package is instantiated from a
7530         local context.
7531
7532 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
7533
7534         * a-tasatt.adb: Type Wrapper should be declared in comment instead
7535         of already declared type Node_Access.
7536         Use 'Access instead of 'Unchecked_Access when applicable. Local
7537         lifetime is the one of the package.
7538         (Set_Value): W is allocated on the heap.
7539
7540         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
7541         applicable.
7542         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
7543         access type.
7544         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
7545         access type.
7546
7547         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
7548         applicable.
7549         (elaboration code): Timer_Queue lifetime is the one of the
7550         package.
7551
7552         * tracebak.c (i386 alternative): Remove useless comparaison
7553         which is always false; LOWEST_ADDRESS is 0 and is never greater
7554         than an unsigned integer.
7555
7556         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
7557         embedded check for "Ada_Version >= Ada_05".
7558
7559 2007-11-07  Olivier Hainque  <hainque@adacore.com>
7560
7561         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
7562         craft and expand comment.
7563
7564 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
7565
7566         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
7567
7568 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
7569
7570         * misc.c (gnat_handle_option): Replace call to abort with
7571         call to gcc_unreachable.
7572         (gnat_init): Likewise.
7573         (gnat_expand_expr): Likewise.
7574         (fp_prec_to_size): Likewise.
7575         (fp_size_to_prec): Likewise.
7576
7577 2007-10-23  Richard Guenther  <rguenther@suse.de>
7578
7579         PR bootstrap/33608
7580         * tracebak.c: #undef abort after including system.h.
7581
7582 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
7583
7584         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
7585         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
7586         for win32 targets.
7587         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
7588
7589 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
7590
7591         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
7592         Set the protection status of the guard page based on the value of On.
7593
7594         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
7595
7596         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
7597         (Exit_Task): Pass False to Hide_Yellow_Zone.
7598
7599 2007-10-15  Robert Dewar  <dewar@adacore.com>
7600
7601         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
7602         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
7603         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
7604         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
7605         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
7606         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
7607         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
7608         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
7609         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
7610         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
7611         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
7612         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
7613         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
7614         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
7615         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
7616         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
7617         Minor reformatting.
7618         Add Unreferenced and Warnings (Off) pragmas for cases of
7619         variables modified calls where they are IN OUT or OUT parameters and
7620         the resulting values are not subsequently referenced. In a few cases,
7621         we also remove redundant code found by the new warnings.
7622
7623         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
7624         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
7625         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
7626         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
7627         warning controlled by -gnatw.o that warns on cases of out parameter
7628         values being ignored.
7629
7630 2007-10-15  Geert Bosch  <bosch@adacore.com>
7631
7632         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
7633
7634         * expect.c: Initial port to arm-mentor-nucleus.
7635         Use kill for __gnat_kill() on VMS.
7636
7637 2007-10-15  Emmanuel Briot  <briot@adacore.com>
7638
7639         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
7640         value.
7641         (Xref_Record): Change type for Line, since in the case of a reference to
7642         a predefined entity (as happens for array index types), the line is set
7643         to 0.
7644         Add support for parsing multiple array index types info, or
7645         multiple inherited interfaces info. This information cannot be stored
7646         in Xref_Entity_Record, which only supports a single instance of Tref_*,
7647         and is therefore stored in the list of references instead. It has a
7648         special treatement later on in tools that use this information.
7649
7650 2007-10-15  Tristan Gingold  <gingold@adacore.com>
7651
7652         * debug.adb: Document use of -gnatd.a and -gnatd.I
7653
7654         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
7655
7656 2007-10-15  Javier Miranda  <miranda@adacore.com>
7657
7658         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
7659         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
7660         care of access to class-wide interface types plus removal of bizarre
7661         conversion of tagged object to access type (reported by Gary
7662         Dismukes). After this patch there is no need to perform any
7663         additional management on these nodes in Expand_Interface_Actuals.
7664
7665         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
7666         that handles use of 'Access and 'Unchecked_Access applied to
7667         actuals covering interface types. Such code is now
7668         centralized in Expand_N_Attribute_Reference.
7669
7670 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
7671
7672         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
7673         of tagged types whose ultimate ancestor is a CPP type.
7674         (Freeze_Array_Type): For a packed array type, generate an initialization
7675         procedure if the type is public, to handle properly a client that
7676         specifies Normalize_Scalars.
7677
7678 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
7679
7680         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
7681         inside a generic body, retrieve the full view of the entry family
7682         discrete subtype if available.
7683
7684 2007-10-15  Thomas Quinot  <quinot@adacore.com>
7685
7686         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
7687         attempt to generate stubs for hidden primitive operations.
7688
7689 2007-10-15  Vincent Celier  <celier@adacore.com>
7690
7691         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
7692         returning None, used when there is no platform specific body for
7693         MLib.Tgt.Specific.
7694
7695 2007-10-15  Bob Duff  <duff@adacore.com>
7696
7697         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
7698         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
7699         the generic Heap_Sort_G, in order to avoid trampolines.
7700
7701 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
7702             Jose Ruiz  <ruiz@adacore.com>
7703
7704         * vx_stack_info.c: New file.
7705
7706         * i-forbla-unimplemented.ads: New file.
7707
7708         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
7709         for unsupported configurations; use it on VMS targets instead of the
7710         real one.
7711         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
7712         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
7713         used by VxWorks targets to have access to task-specific data and be
7714         able to extract the stack boundaries for stack checking.
7715         Use system-vms-ia64.ads on ivms.
7716
7717         * Make-lang.in: Update dependencies.
7718
7719         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
7720         (vx_stack_info.c).
7721
7722 2007-10-15  Vincent Celier  <celier@adacore.com>
7723
7724         * snames.adb, snames.ads: Add new standard name runtime_library_dir
7725
7726         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
7727
7728         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
7729
7730         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
7731         the source is unknown.
7732
7733         * prj-ext.adb: Spelling error fix
7734
7735         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
7736         95 reserved word in its name.
7737         (Process_Project_Level_Array_Attributes): Process new attribute
7738         Runtime_Library_Dir.
7739
7740         * prj-part.adb (Parse_Single_Project): Do not check the name of the
7741         config project against the user project names.
7742
7743         * prj-proc.adb (Expression): In multi-language mode, indexes that do
7744         not include a dot are always case insensitive.
7745         (Process_Declarative_Items): Ditto
7746         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
7747         detected.
7748
7749         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
7750         True, compare both indexes in lower case.
7751
7752 2007-10-15  Robert Dewar  <dewar@adacore.com>
7753
7754         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
7755
7756 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
7757
7758         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
7759         association for an access component, add an association with null as
7760         the expression. Remove testing for array subtypes and the setting in
7761         that case of Ctyp to the array component type, which prevented proper
7762         inclusion of an association for null-initialized arrays. Collapse
7763         condition that tests for array subtypes into just a test of
7764         Is_Partially_Initialized_Type (which already covers arrays anyway).
7765
7766 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
7767
7768         * sem_ch12.adb: Minor code reformatting.
7769         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
7770         find the parent package which may have been hidden by local
7771         declarations.
7772
7773 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
7774
7775         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
7776         flag of derived concurrent types, taking into account the flag setting
7777         on the parent subtype and any new set of discriminants.
7778
7779 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
7780
7781         * sem_ch4.adb: Minor code and comment reformatting.
7782         (Analyze_Allocator): When the designated type of an unconstrained
7783         allocator is a record with unknown discriminants or an array with
7784         unknown range bounds, emit a detailed error message depending on the
7785         compilation mode and whether the designated type is limited.
7786
7787 2007-10-15  Tristan Gingold  <gingold@adacore.com>
7788
7789         * system-vms-ia64.ads: New file.
7790
7791         * system-vms_64.ads: Minor comment fix.
7792
7793 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
7794
7795         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
7796         body generated for a function with a controlling result that is a null
7797         extension, discard the generated body in favor of the current explicit
7798         one.
7799
7800 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
7801
7802         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
7803         examining its original form, to handle properly operator calls that
7804         have been rewritten.
7805
7806 2007-10-15  Olivier Hainque  <hainque@adacore.com>
7807
7808         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
7809         instead of a procedure value in each traceback entry.
7810
7811         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
7812         instead of procedure value to TBK$SYMBOLIZE.
7813
7814         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
7815         field.
7816         (TB_Entry_For): Account for the PV/FP renaming.
7817
7818         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
7819         add comment.
7820         (Null_TB_Entry): Account for change of component name.
7821         (PV_For): Rename as FP_For.
7822
7823 2007-10-15  Tristan Gingold  <gingold@adacore.com>
7824
7825         * trans.c (gnat_to_gnu): Remove the padding structure more often.
7826         This optimize assignment to over-aligned record.
7827
7828 2007-10-15  Emmanuel Briot  <briot@adacore.com>
7829
7830         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
7831         interfaces.
7832
7833         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
7834         type, for dispatching calls.
7835
7836 2007-10-15  Vincent Celier  <celier@adacore.com>
7837             Robert Dewar  <dewar@adacore.com>
7838
7839         * gnat_ugn.texi: Add documentation for switches --version and --help
7840         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
7841         gnatxref, gnatfind, gnatls, and gnatclean.
7842         Document -gnatw.o.
7843         Mention attribute Excluded_Source_Dirs
7844         Replace obsolescent attribute Locally_Removed_Files with attribute
7845         Excluded_Source_Files.
7846         Improve documentation of -u (gnatbind)
7847         Document how to do reliable stack checking for the environmental task
7848         on iVMS.
7849
7850         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
7851         Document attribute Excluded_Source_Files and indicate that attribute
7852         Locally_Removed_Files is obsolescent.
7853
7854 2007-10-15  Thomas Quinot  <quinot@adacore.com>
7855
7856         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
7857
7858         * gen-soccon.c: 
7859         Update documentation to note that OpenVMS 8.3 or later must be used
7860         to generate g-soccon-vms.ads.
7861
7862         * atree.adb: Add ??? comment
7863
7864         * exp_util.adb: Minor reformatting.
7865         Add ??? comment in Kill_Dead_Code.
7866
7867 2007-10-15  Robert Dewar  <dewar@adacore.com>
7868
7869         * errout.ads: Comment clarification
7870
7871         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7872         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
7873
7874         * lib.ads: Comment update
7875
7876         * init.c: Minor reformatting.
7877
7878         * sem_attr.adb: Minor formatting
7879
7880         * osint-b.ads: Minor reformatting
7881
7882         * sem_ch9.adb: Implement -gnatd.I switch
7883
7884         * g-comlin.adb: (Start): Fix handling of empty command line.
7885
7886         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
7887         even when -rules follows the -cargs section.
7888
7889 2007-10-08  Ollie Wild  <aaw@google.com>
7890
7891         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
7892         gnat_return_tree.
7893         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
7894         gnat_return_tree.
7895         (gnat_eh_runtime_type): Removed.
7896         (gnat_return_tree): New function.
7897
7898 2007-10-08  Ben Elliston  <bje@au.ibm.com>
7899
7900         PR ada/33454
7901         Revert:
7902         2007-08-31  Ben Elliston  <bje@au.ibm.com>
7903
7904         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7905         when compiling for powerpc64-*-linux.
7906         * system-linux-ppc64.ads: New file.
7907
7908 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
7909
7910         Mapped location support
7911         * back_end.adb (Call_Back_End): Pass information about source
7912         files instead of units to gigi.
7913         * gigi.h (struct File_Info_Type): New.
7914         (gigi): Rename and change type of number_units parameter, change
7915         type of file_info_ptr parameter.
7916         * trans.c (number_files): New global variable.
7917         (gigi): Rename and change type of number_units parameter, change
7918         type of file_info_ptr parameter.
7919         If mapped location support is enabled, create the isomorphic mapping
7920         between source files and line maps.
7921         (Sloc_to_locus): If mapped location support is enabled, translate
7922         source location into mapped location.
7923         (annotate_with_node): Rename into set_expr_location_from_node.
7924         Call set_expr_location instead of annotate_with_locus.
7925         (Pragma_to_gnu): Adjust for above change.
7926         (Loop_Statement_to_gnu): Likewise.
7927         (call_to_gnu): Likewise.
7928         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7929         (gnat_to_gnu): Likewise.
7930         (add_stmt_with_node): Likewise.
7931         (add_cleanup): Likewise.
7932         * utils.c (gnat_init_decl_processing): Do not set input_line.
7933
7934 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
7935
7936         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
7937         (Applicable_Use): Emit a warning when a package tries to use itself.
7938         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
7939         is already in use or the package where it is declared is in use or is
7940         declared in the current package.
7941         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
7942
7943         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
7944         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
7945         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
7946
7947 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
7948
7949         * a-calend-vms.adb, a-calend.adb: 
7950         Add a section on leap seconds control along with two entities used to
7951         enable and disable leap seconds support. The array Leap_Second_Times is
7952         now constant and contains hard time values pre-generated. Remove
7953         all elaboration code used to populate the table of leap seconds.
7954
7955         * bindgen.adb: 
7956         Add entity Leap_Seconds_Support to the list of global run-time variables
7957         along with a comment on its usage and values.
7958         (Gen_Adainit_Ada): Add code to generate the declaration and import of
7959         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
7960         or one (enabled) depending on the presence of binder switch "-y".
7961         (Gen_Adainit_C): Add code to generate the declaration of external int
7962         __gl_leap_seconds_support. Set is value to zero (disabled) or one
7963         (enabled) depending on the presence of binder switch "-y".
7964
7965         * init.c: Add __gl_leap_seconds_support to the list of global values
7966         computed by the binder.
7967
7968 2007-09-26  Jerome Guitton  <guitton@adacore.com>
7969
7970         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
7971         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
7972          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7973         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
7974
7975         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
7976
7977         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
7978         function which can be called by the debugger to interrupt the tasks of
7979         an Ada application asynchronously, as needed on VxWorks.
7980         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
7981
7982         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
7983         renamed from Stop_All_Tasks. Update comments.
7984         (Stop_All_tasks): New function declaration.
7985
7986 2007-09-26  Olivier Hainque  <hainque@adacore.com>
7987
7988         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
7989         #include <utime.h> and #define GCC_RESOURCE_H before
7990         #include <sys/wait.h>.
7991         Add more protections in __gnat_translate_vms.
7992
7993         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
7994         #include <sys/wait.h>.
7995
7996 2007-09-26  Thomas Quinot  <quinot@adacore.com>
7997             Sergey Rybin  <rybin@adacore.com>
7998
7999         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
8000
8001         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8002         where it belongs.
8003
8004         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8005
8006         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8007         where it belongs.
8008
8009         * sem_dist.ads: Minor comment fix
8010
8011         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8012
8013 2007-09-26  Javier Miranda  <miranda@adacore.com>
8014             Eric Botcazou  <ebotcazou@adacore.com>
8015
8016         * a-tags.adb: 
8017         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
8018          indirection added to the HT_Link component of the TSD. This is required
8019          to statically allocate the TSD.
8020
8021         * a-tags.ads: 
8022         Minor reordering of the declarations in the private part. Required to
8023         add a level of indirection to the contents of the TSD component HT_Link.
8024         This is required to statically allocate the TSD.
8025
8026         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
8027         Is_Statically_Allocated set from constant objects.
8028         Do not make exported constants created by the compiler volatile.
8029         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
8030         as read-only.
8031
8032         * trans.c (Identifier_to_gnu): For constants, unshare initializers
8033         before returning them.
8034
8035         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
8036         public part of the package.
8037         (Make_DT): Move HT_Link component out of the TSD record. For this
8038         purpose Make_DT now declares a separate object that stores the
8039         HT_Link value, and initializes the TSD component with the address
8040         of this new object. The addition of this level of indirection is
8041         required to statically allocate the TSD because the TSD cannot
8042         have variable components.
8043         (Expand_Interface_Conversion): Improve the expanded code.
8044         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
8045
8046         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
8047         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
8048         if we are building static dispatch tables then we must not generate
8049         extra code to register the primitive because the dispatch table will
8050         be built at the end of the library package; otherwise we notify that
8051         we cannot build the static dispatch table.
8052
8053 2007-09-26  Robert Dewar  <dewar@adacore.com>
8054
8055         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
8056         overlays.
8057
8058         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
8059         (Analyze_Record_Representation_Clause): Suppress junk warning for
8060         missing component clause.
8061         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
8062         tests for controlled type overlay to composites with controlled
8063         components.
8064         (Analyze_Record_Representation_Clause): Add reference for component name
8065
8066 2007-09-26  Javier Miranda  <miranda@adacore.com>
8067             Gary Dismukes  <dismukes@adacore.com>
8068
8069         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
8070         for thunks associated with interface types.
8071
8072         * einfo.ads: Improve documentatation of Is_Internal
8073         (Is_Thunk): New attribute applicable to subprograms. True for thunks
8074         associated with interface types.
8075         Extensive comment fixes regarding flags that appear in all entities. The
8076         documentation is now consistent for all such flags (there were a number
8077         of errors in the documentation in this regard).
8078
8079         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
8080
8081         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
8082         of these procedures are passed a function call that already has
8083         build-in-place actuals (testing new flag
8084         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
8085         the case where processing continues.
8086         (Expand_Call): If the call is generated from a thunk body then we
8087         propagate the extra actuals associated with the accessibility
8088         level of the access type actuals.
8089
8090         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
8091         of each extra formal of a protected operation to reference the
8092         corresponding extra formal of the subprogram denoted by the
8093         operation's Protected_Body_Subprogram.
8094         
8095         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
8096         N_Function_Call nodes.
8097
8098 2007-09-26  Robert Dewar  <dewar@adacore.com>
8099
8100         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
8101
8102         * debug.adb: Add d.s flag.
8103
8104 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8105
8106         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
8107         debug variable so that it won't be initialized when pragma
8108         Initialize_Scalars is in effect.
8109
8110 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8111
8112         * freeze.adb (Freeze_Entity): Remove check for preelaborable
8113         initialization of a full view. This is moved to
8114         Analyze_Package_Specification.
8115
8116         * sem_ch7.adb (Analyze_Package_Specification): Add check for
8117         preelaborable initialization of a full view in entity loop.
8118         (Uninstall_Declarations): If entity is a use-visible compilation unit,
8119         its child units are use-visible only if they are visible child units.
8120
8121         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
8122         whether an expression can be used within a type declaration that
8123         requires preelaborable init.
8124         (Check_Components): Replace inline code that does partial checking for
8125         preelaborable default expressions with call to
8126         Is_Preelaborable_Expression.
8127         (Has_Preelaborable_Initialization): In the case of a generic actual
8128         subtype, (that is, Is_Generic_Actual is True), return the result of
8129         applying Has_Preelaborable_Initialization to the generic actual's base
8130         type.
8131
8132 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
8133
8134         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
8135         call to Jan_1_Day _Of_Week to optimize its performance.
8136         (Is_Leap): Move the routine to the scope of Week_In_Year.
8137         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
8138         weekday on which January 1 falls of Year - 1 and Year + 1. This function
8139         avoids calling Time_Of and Split, thus making it more efficent.
8140         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
8141
8142         * g-calend.ads (Week_In_Year): Change comment to reflect new
8143         implementation.
8144
8145 2007-09-26  Emmanuel Briot  <briot@adacore.com>
8146
8147         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
8148         Command_Line): New types
8149         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
8150         support for defining how switches can be grouped on a command line (as
8151         is the case for -gnatw... for GNAT), and how simple switches can be
8152         used as aliases for more complex switches (-gnatwa is same as
8153         -gnatwbcef...)
8154         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
8155         (Start, Current_*): New subprograms
8156         Added support for parsing an array of strings in addition to the real
8157         command line.
8158         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
8159          be moved from the body to the private part of the spec.
8160         (*): All subprograms now have an extra parameter with default value to
8161         specify which parser should be used. For backward compatibility, it
8162         defaults to parsing the command line of the application. They were also
8163         modified to properly handle cases where each of the argument does not
8164         start at index 1 (which is always true for Ada.Command_Line, but not
8165         when processing any Argument_List).
8166         (Free): New subprogram
8167         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
8168         Argument): New subprograms
8169         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
8170         special characters like ':', '=',... are now handled in a single place,
8171         which makes the code more extensible eventually.
8172         (Getopt, Full_Switch): When the switch was returned as part of the
8173         special character '*', make sure it is prepended by the switch character
8174         ('-' in general), so that the application knows whether "foo" or "-foo"
8175         was specified on the command line.
8176
8177 2007-09-26  Florian Villoing  <villoing@adacore.com>
8178
8179         * g-dirope.adb (Remove_Dir): In case we are removing directories
8180         recursively, make sure that if an exception is raised during the
8181         processing, the current working directory is reset to its initial
8182         value before propagating the exception.
8183
8184 2007-09-26  Vincent Celier  <celier@adacore.com>
8185
8186         * gnatbind.adb: If there are several ALI files specified and there is
8187         a main program to bind, the first ALI is expected to contain the main
8188         subprogram and the names of the binder generated files will be derived
8189         from the first ALI file name.
8190         (Gnatbind): Fix insertion character in invocation of Error_Msg
8191
8192 2007-09-26  Vincent Celier  <celier@adacore.com>
8193
8194         * gnatcmd.adb (Check_Files): Do not include sources that have been
8195         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
8196
8197 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8198
8199         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
8200         information about each of its index types, following the type
8201         reference for its component type.
8202
8203 2007-09-26  Vincent Celier  <celier@adacore.com>
8204
8205         * make.adb: (Kill): New procedure (__gnat_kill imported)
8206         (Running_Compile, Outstanding_Compiles): Global variables that
8207         were previously local to procedure Compile_Sources.
8208         (Sigint_Intercepted): Send signal SIGINT to all outstanding
8209         compilation processes.
8210
8211         (Gnatmake): If project files are used, create the mapping of all the
8212         sources, so that the correct paths will be found.
8213
8214         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
8215
8216 2007-09-26  Vincent Celier  <celier@adacore.com>
8217
8218         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
8219
8220         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
8221         Replace components Compiler_Min_Options and Binder_Min_Options with
8222         Compiler_Required_Switches and Binder_Required_Switches in record
8223         Language_Config.
8224         Remove components Default_Language and Config in Project_Tree_Data,
8225         no longer used.
8226
8227         * prj-attr.adb: New attributes Required_Switches (<language>) in
8228         packages Compiler and Binder.
8229
8230         * prj-nmsc.adb: Major rewrite of the processing of configuration
8231         attributes for gprbuild. No impact on GNAT tools.
8232
8233         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
8234         process configuration attributes: this is done in Prj.Nmsc.Check.
8235         (Recursive_Process): Make a full copy of packages inherited from project
8236         being extended, instead of a shallow copy.
8237         (Process_Project_Tree_Phase_1): New procedure
8238         (Process_Project_Tree_Phase_1): New procedure
8239         (Process): Implementation now uses the two new procedures
8240
8241         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
8242         from the project config, not the tree config that no longer exists.
8243
8244 2007-09-26  Vincent Celier  <celier@adacore.com>
8245
8246         * Make-lang.in: Update dependencies..
8247
8248 2007-09-26  Vincent Celier  <celier@adacore.com>
8249
8250         * osint.adb, osint.ads: Minor reformatting
8251
8252         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
8253
8254 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
8255
8256         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
8257         message to cite use of <> in aggregate component associations rather
8258         than wrongly indicating use of limited aggregates.
8259
8260 2007-09-26  Robert Dewar  <dewar@adacore.com>
8261
8262         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
8263         Address_Taken.
8264
8265 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8266
8267         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
8268         ancestor of the derived type, the operations are inherited from the
8269         primary dispatch table of the parent.
8270         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
8271         when the context is an explicit type conversion.
8272
8273 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8274
8275         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
8276         rule for qualified expressions properly, to detect improper conversions
8277         and resolve some cases of overloading.
8278
8279 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
8280
8281         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
8282         proper kind of reference to the primitive operation, for better source
8283         navigation.
8284         (Valid_Conversion): A tagged conversion is legal if both operands are
8285         tagged.
8286
8287 2007-09-26  Robert Dewar  <dewar@adacore.com>
8288
8289         * sem_warn.adb (Check_References): Catch more cases of unreferenced
8290         packages.
8291
8292 2007-09-26  Vincent Celier  <celier@adacore.com>
8293
8294         * snames.adb, snames.ads: Change Include_Option to Include_Switches
8295
8296 2007-09-26  Robert Dewar  <dewar@adacore.com>
8297
8298         * s-wchstw.adb: provide messages for run time unit exceptions
8299
8300         * a-witeio.adb: Minor reformatting
8301
8302         * exp_ch13.adb: Minor reformatting
8303
8304 2007-09-26  Sergey Rybin  <rybin@adacore.com>
8305
8306         * vms_data.ads: Revise gnatmetric qualifiers.
8307         Add qualified for the new gnatbind option '-y'
8308
8309         * gnat_ugn.texi: Revise the gnatmetric section.
8310         Add entry for new gnatbind option '-y'.
8311
8312         * gnat_rm.texi: Minor spelling correction.
8313         Document restriction on overlaying controlled types
8314
8315 2007-09-26  Vincent Celier  <celier@adacore.com>
8316
8317         * makegpr.adb (Link_Executables): Do not fail when the root project has
8318         no sources, but is an extending project.
8319
8320 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
8321
8322         * trans.c: Fix misplaced #define.
8323
8324 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
8325
8326         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
8327         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
8328
8329 2007-09-21  Olivier Hainque  <hainque@adacore.com>
8330
8331         * utils.c (type_for_nonaliased_component_p): Return false for
8332         all AGGREGATE_TYPEs.
8333
8334 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
8335
8336         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
8337         object covered by 13.3(19) volatile.
8338
8339 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
8340
8341         PR ada/26797
8342         PR ada/32407
8343         * utils.c (unchecked_convert): Use a subtype as the intermediate type
8344         in the special VIEW_CONVERT_EXPR case.
8345
8346 2007-09-12  Robert Dewar  <dewar@adacore.com>
8347
8348         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
8349
8350         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
8351         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
8352         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
8353         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
8354         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
8355         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
8356         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
8357         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
8358         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
8359         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
8360         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
8361         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
8362         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
8363         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
8364         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
8365         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
8366         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
8367         pragma Compiler_Unit and adds it to relevant library units.
8368
8369 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
8370
8371         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
8372         a box need not correspond to any component.
8373
8374 2007-09-12  Robert Dewar  <dewar@adacore.com>
8375
8376         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
8377         the tasking version of the Ada run time when foreign threads are
8378         present and there are no explicit Ada tasks or tasking constructs.
8379
8380         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
8381
8382 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
8383
8384         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
8385         the usage of switch -y.
8386
8387         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
8388         when switch -y is present.
8389
8390         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
8391         leap seconds in Ada.Calendar and its children.
8392
8393 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
8394
8395         * a-extiti.ads (Timer): The discriminant is a "not null access
8396         constant" in the Reference Manual.
8397         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
8398
8399 2007-09-12  Robert Dewar  <dewar@adacore.com>
8400
8401         * a-swuwha.adb: Remove junk RM header
8402
8403 2007-09-12  Vincent Celier  <celier@adacore.com>
8404
8405         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
8406         indicator
8407
8408         * g-bytswa.ads: Minor reformatting
8409
8410 2007-09-12  Thomas Quinot  <quinot@adacore.com>
8411
8412         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
8413         Add new constant Thread_Blocking_IO, always True by default, set False
8414         on a per-runtime basis.
8415         (Need_Netdb_Buffer): New constant.
8416
8417 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
8418
8419         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
8420         Added renames for corresponding functions in System.Partition_Interface.
8421
8422 2007-09-12  Doug Rupp  <rupp@adacore.com>
8423
8424         * Makefile.in: Remove VMS specific System.CRTL packages which are no
8425         longer needed.
8426
8427         * s-crtl-vms64.ads: Removed.
8428
8429 2007-09-12  Olivier Hainque  <hainque@adacore.com>
8430
8431         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
8432         with discriminant constraints, generalize the code for BIT_FIELDs
8433         to PACKED fields of constant size and propagate DECL_PACKED.
8434
8435 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
8436
8437         * decl.c (array_type_has_nonaliased_component): New predicate.
8438         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
8439         set the TYPE_NONALIASED_COMPONENT flag on the type.
8440         <E_Array_Subtype>: Likewise.
8441         * gigi.h (type_for_nonaliased_component_p): Declare.
8442         * utils.c (type_for_nonaliased_component_p): New predicate.
8443         (create_field_decl): Invoke the above predicate to set the
8444         DECL_NONADDRESSABLE_P flag on the field.
8445
8446 2007-09-11  Javier Miranda  <miranda@adacore.com>
8447
8448         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
8449         in library level record type entities if we are generating statically
8450         allocated dispatch tables.
8451
8452         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
8453         importing/exporting the _tag declaration by new code
8454         importing/exporting the dispatch table wrapper. This change allows us
8455         to statically allocate of the TSD.
8456         (Make_DT.Export_DT): New procedure.
8457         (Build_Static_DT): New function.
8458         (Has_DT): New function.
8459
8460         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
8461         True_Constant and Current_Value. Required to statically
8462         allocate the dispatch tables.
8463         (Check_Allocator): Make function iterative instead of recursive.
8464         Also return inner allocator node, when present, so that we do not have
8465         to look for that node again in the caller.
8466
8467 2007-09-11  Jan Hubicka  <jh@suse.cz>
8468
8469         * misc.c (gnat_expand_body): Kill.
8470         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
8471
8472 2007-09-10  Robert Dewar  <dewar@adacore.com>
8473
8474         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
8475         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8476         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8477         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
8478         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
8479         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
8480         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
8481         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
8482         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
8483         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
8484         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
8485         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
8486         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
8487         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
8488         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8489         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
8490         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
8491         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8492         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
8493         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
8494         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
8495         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
8496         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
8497         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
8498         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
8499         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
8500         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
8501         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
8502         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
8503         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
8504         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
8505         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
8506         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
8507         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
8508         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
8509         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
8510         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
8511         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
8512         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
8513         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
8514         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
8515         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
8516         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
8517         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
8518         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8519         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
8520         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
8521         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
8522         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
8523         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
8524         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
8525         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
8526         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
8527         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
8528         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
8529         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
8530         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
8531         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
8532         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
8533         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
8534         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
8535         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
8536         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
8537         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
8538         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
8539         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
8540         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
8541         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
8542         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
8543         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
8544         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
8545         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
8546         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
8547         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
8548         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
8549         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
8550         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
8551         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
8552         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
8553         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
8554         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
8555         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
8556         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
8557
8558 2007-09-10  Emmanuel Briot  <briot@adacore.com>
8559
8560         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
8561         classes ("[]").
8562
8563 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
8564
8565         * adaint.c (__gnat_translate_vms): new function.
8566
8567 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
8568             Thomas Quinot  <quinot@adacore.com>
8569
8570         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
8571         create an abstract subprogram in the case of 'Input. For 'Output we now
8572         create a real spec/body when the type is abstract, since it can
8573         potentially be called.
8574         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
8575         body for 'Output when the type is abstract (only the creation of the
8576         body for 'Input is excluded when the type is abstract).
8577         (Stream_Operation_OK): Add an additional condition in the return
8578         statement, so that False will be returned for TTS_Stream_Input if the
8579         associated tagged type is an abstract extension. Add comments for
8580         return statement.
8581         (Expand_N_Object_Declaration): For the case of a shared passive
8582         variable, insert init proc call only after the shared variable
8583         procedures have been processed, because the IP call needs to undergo
8584         shared passive variable reference expansion, which requires these
8585         procedures to be available (and elaborated).
8586
8587 2007-09-10  Vincent Celier  <celier@adacore.com>
8588
8589         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
8590         parameter Runtime_Project.
8591
8592 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
8593
8594         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
8595         given a box association, the type of the component is discriminated,
8596         and the value of the discriminant is the discriminant of the enclosing
8597         type, retrieve its value from the aggregate itself, where it must have
8598         been supplied.
8599
8600         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
8601         to remove other spurious ambiguities on arithmetic operations involving
8602         literals and addresses, on systems where Address is a visible integer
8603         type, when the operator is called in functional notation.
8604         (Try_Primitive_Operation): Within an instance, a call in prefixed form
8605         is legal when the types match, even if the operation is currently
8606         hidden.
8607
8608 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
8609
8610         * sem_ch12.adb (Build_Local_Package): A formal package with no
8611         associations is legal if all formals have defaults. It is not
8612         equivalent to a formal declared with a box.
8613
8614 2007-09-10  Sergey Rybin  <rybin@adacore.com>
8615
8616         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
8617
8618 2007-09-10  Sergey Rybin  <rybin@adacore.com>
8619
8620         * gnat_ugn.texi: Add description of the new '-lratio' option
8621         Update 7.3.1 section about availability of the feature.
8622
8623 2007-09-10  Thomas Quinot  <quinot@adacore.com>
8624
8625         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
8626         inserted node.
8627
8628 2007-09-10  Olivier Hainque  <hainque@adacore.com>
8629
8630         * Makefile.in: (mips-irix section): Activate build of libgmem.
8631
8632 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
8633
8634         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
8635         x87 registers.
8636
8637 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
8638
8639         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
8640         a debug renaming declaration specially.
8641
8642 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
8643
8644         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
8645         which a constant renaming is treated as a normal object declaration.
8646         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
8647         the N_Indexed_Component case.
8648         <N_Indexed_Component>: Fall through to above case.
8649         <N_Object_Renaming_Declaration>: Return true for all composite types.
8650
8651 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
8652
8653         * decl.c (make_packable_type): If the new type has been given BLKmode,
8654         try again to get an integral mode for it.
8655
8656 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
8657
8658         Re-apply accidentally reverted change:
8659
8660         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
8661
8662         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
8663         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
8664         and _Unwind_SWord with _sleb128_t.
8665
8666 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
8667
8668         * trans.c (convert_with_check): Update call to real_2expN.
8669
8670 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
8671
8672         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
8673         * utils.c (end_subprog_body): Likewise.
8674
8675 2007-09-03  Nick Clifton  <nickc@redhat.com>
8676
8677         * Make-lang.in: Change copyright header to refer to version 3 of
8678         the GNU General Public License and to point readers at the
8679         COPYING3 file and the FSF's license web page.
8680         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
8681         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
8682         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
8683         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
8684         Likewise.
8685
8686 2007-08-31  Vincent Celier  <celier@adacore.com>
8687
8688         PR ada/4720
8689
8690         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
8691         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
8692         (Check_Version_And_Help): New procedure in package Switch to process
8693         switches --version and --help.
8694         Use Check_Version_And_Help in GNAT tools
8695
8696         * make.adb:  Ditto.
8697         (Compile_Sources): Make sure that sources that are "excluded" are not
8698         compiled.
8699         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
8700         project file is used.
8701         (Version_Switch): Remove, moved to Switch
8702         (Help_Switch): Remove, moved to Switch
8703         (Display_Version): Remove, moved to Switch
8704
8705         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
8706         package Switch to process switches --version and --help.
8707         (Display_Version): New procedure
8708
8709         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
8710
8711 2007-08-31  Javier Miranda  <miranda@adacore.com>
8712
8713         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
8714         internal tags.
8715
8716 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
8717
8718         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
8719         (Mark_Non_Null): If the node for which we just generated an access check
8720         is a reference to an *in* parameter and the reference appears in the
8721         declarative part of a subprogram body, mark the node as known non null.
8722
8723 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
8724
8725         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
8726         structure of E_Exception to reflect the new flag.
8727         (Is_Raised, Set_Is_Raised): New inlined routines.
8728         Update the usage of available flag to reflect the addition of Is_Raised.
8729         (Is_Raised, Set_Is_Raised): Bodies of new routines.
8730         (Write_Entity_Flags): Write the status of flag Is_Raised.
8731         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
8732         spurious ambiguities when integer literals appear in the context of an
8733         address type that is a visible integer type.
8734
8735         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
8736         exceptions never being raised.
8737         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
8738         explicitly raised.
8739
8740 2007-08-31  Javier Miranda  <miranda@adacore.com>
8741
8742         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
8743         statement when compiling under restriction No_Exceptions_Proparation.
8744
8745 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
8746
8747         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
8748         initialization aggregate for the type, generate itype references for
8749         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
8750
8751 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
8752
8753         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
8754         library-level package renaming, pass the declaration associated with
8755         the renaming's special debug variable to Qualify_Entity_Names to ensure
8756         that its encoded name is properly qualified.
8757
8758         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
8759         occurring in the list of entities to qualify, and do not attempt to
8760         traverse an entity list in that case. Variables associated with
8761 `       library-level package renamings can now occur in the table.
8762
8763         * exp_dbug.ads: Revise documentation of the encoding for renaming
8764         declarations.
8765
8766 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8767
8768         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
8769         access type points to an unconstrained array.
8770
8771 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
8772
8773         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8774         conversion.
8775
8776         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
8777         simple redundant qualifications. The check is performed whenever the
8778         expression is a non-overloaded identifier.
8779         (Resolve_Type_Conversion): Enchance the redundant type conversion check
8780         to include loop parameters.
8781         (Valid_Conversion): Avoid generation of spurious error message.
8782
8783 2007-08-31  Bob Duff  <duff@adacore.com>
8784
8785         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
8786         concatenations of string literals into a single literal, in order to
8787         avoid very deep recursion in the front end, which was causing stack
8788         overflow.
8789
8790         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
8791         string, and the right operand is a string literal (the case of "" &
8792         "..."), optimize by avoiding copying the right operand -- just use the
8793         value of the right operand directly.
8794
8795         * stringt.adb (Store_String_Chars): Optimize by growing the
8796         String_Chars table all at once, rather than appending characters one by
8797         one.
8798         (Write_String_Table_Entry): If the string to be printed is very long,
8799         just print the first few characters, followed by the length. Otherwise,
8800         doing "pn(n)" in the debugger can take an extremely long time.
8801
8802         * sem_prag.adb (Process_Interface_Name): Replace loop doing
8803         Store_String_Char with Store_String_Chars.
8804
8805 2007-08-31  Vincent Celier  <celier@adacore.com>
8806
8807         * prj-attr.adb: Add new attribute Excluded_Source_Files
8808
8809         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
8810         Locally_Removed_Files.
8811
8812         * snames.ads, snames.adb: New standard name Excluded_Source_Files
8813
8814 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
8815
8816         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
8817         clauses of subunits, ignore limited_with_clauses that are illegal and
8818         have not been fully analyzed.
8819
8820 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
8821
8822         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
8823         flag, for effiency. It is called when analyzing arithmetic operators
8824         and also for actuals in calls that are universal_integers. The flag is
8825         set for the predefined type address, and for any type or subtype
8826         derived from it.
8827
8828         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
8829         Universal_Integer, when the formal is a descendent of address and the
8830         call appears in user code.
8831         (Analyze_Selected_Component): if the prefix is a private extension, the
8832         tag component is visible.
8833
8834         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
8835         entity flag.
8836
8837 2007-08-31  Robert Dewar  <dewar@adacore.com>
8838
8839         * s-fileio.adb (Open): Normalize file name to lower case in non-case
8840         sensitive file name systems to avoid unexpected mismatch in Vista.
8841
8842 2007-08-31  Vincent Celier  <celier@adacore.com>
8843
8844         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
8845
8846 2007-08-31  Vincent Celier  <celier@adacore.com>
8847
8848         * symbols-vms.adb (Initialize): Read symbol files with continuation
8849         lines
8850         (Finalize): If symbol is long, split the line
8851
8852 2007-08-31  Vincent Celier  <celier@adacore.com>
8853
8854         * fmap.ads: Minor comment updates
8855
8856 2007-08-31  GNAT Script  <nobody@adacore.com>
8857
8858         * Make-lang.in: Makefile automatically updated
8859
8860 2007-08-31  Bob Duff  <duff@adacore.com>
8861
8862         * sinfo.ads: Minor comment fix.
8863
8864 2007-08-31  Thomas Quinot  <quinot@adacore.com>
8865
8866         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
8867         with implementation.
8868         Documentation cleanup only.
8869
8870 2007-08-31  Sergey Rybin  <rybin@adacore.com>
8871
8872         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
8873         gnatpp '--separate-stmt-name' option.
8874         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
8875         option.
8876
8877         * gnat_ugn.texi: Add description for the new gnatpp
8878         '--separate-stmt-name' and '--use-on-new-line' options.
8879
8880 2007-08-31  Ben Elliston  <bje@au.ibm.com>
8881
8882         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8883         when compiling for powerpc64-*-linux.
8884         * system-linux-ppc64.ads: New file.
8885
8886 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
8887
8888         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
8889         NetBSD.
8890
8891 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8892
8893         * misc.c (gnat_type_max_size): Constify.
8894
8895 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
8896
8897         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
8898         associated with Standard_Debug_Renaming_Type, to be used as the type of
8899         the special variables whose names provide debugger encodings for
8900         renaming declarations.
8901
8902         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
8903         (Set_Debug_Renaming_Link): Change to set Node25.
8904         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
8905         (Write_Field25_Name): Add case for E_Variable to output
8906         "Debug_Renaming_Link".
8907         (Write_Field23_Name): Correct the output string for "Limited_View".
8908
8909         * exp_dbug.adb: Add with and use of Tbuild.
8910         (Debug_Renaming_Declaration): Replace creation of an enumeration type
8911         and literal with creation of a variable of type
8912         Standard_Debug_Renaming_Type whose name encodes both the renamed object
8913         and the entity of the renaming declaration.
8914         (Qualify_Entity_Name): Add the delayed qualification of the entity name
8915         part of the name of a variable that has a Debug_Renaming_Link.
8916
8917         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
8918         special type to be associated with variables that provide debugger
8919         encodings for renaming declarations.
8920
8921 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
8922             Ed Schonberg  <schonberg@adacore.com>
8923             Javier Miranda  <miranda@adacore.com>
8924
8925         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
8926         ancestor part given by an aggregate to test for an unchecked conversion,
8927         since this can occur in some cases when the ancestor part is a function
8928         call, and we don't want to fall into the recursive call to this
8929         procedure in that case.
8930
8931         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
8932         stream attributes on limited types to account for user-specified
8933         attributes as well as whether Input (resp. Output) becomes available
8934         due to Read (resp. Write) being available for the type. Change Boolean
8935         variable to the more accurate name
8936         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
8937         double-"not" predicate at beginning of return statement to more
8938         understandable form.
8939
8940         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
8941         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
8942         in a block statement and use that as the first statement of the
8943         expanded return rather than incorrectly using the handled sequence as
8944         the first statement.
8945
8946         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
8947         operation, generate an explicit freeze node for it rather than
8948         generating extra formals, to ensure that gigi has the proper order of
8949         elaboration for anonymous subtypes in the signature of the subprograms.
8950         (Build_In_Place_Formal): Move assertion to beginning of loop.
8951         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
8952         applied to a function call (occurs for some cases of 'Input).
8953         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
8954         applied to a function call (occurs for some cases of 'Input).
8955
8956         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
8957         2005, generate an extended return statement enclosing the result object
8958         and 'Read call.
8959
8960         * freeze.adb (Freeze_Record_Type): Extend the current management of
8961         components that are access type with an allocator as default value: add
8962         missing support to the use of qualified expressions of the
8963         allocator (which also cause freezing of the designated type!)
8964         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
8965         dispatching operation, since extra formals may be needed by calls to
8966         build-in-place functions (such as stream 'Input).
8967
8968         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
8969         formals for 'Constrained and accessibility level in the case of a
8970         predefined dispatching operation.
8971
8972         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
8973         point, no need to find the parent node.
8974
8975 2007-08-16  Javier Miranda  <miranda@adacore.com>
8976
8977         * exp_attr.adb (Attribute_Priority): Add missing support for entries
8978         and entry barriers.
8979
8980 2007-08-16  Javier Miranda  <miranda@adacore.com>
8981
8982         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
8983         is not really required and can introduce regression with the debugger.
8984         The original problem is fixed with the patch written for checks.adb.
8985
8986 2007-08-16  Thomas Quinot  <quinot@adacore.com>
8987
8988         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
8989         Range_Check on Allocated_Table.
8990
8991 2007-08-16  Vincent Celier  <celier@adacore.com>
8992
8993         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
8994         Including_Non_Switch set to False.
8995         (Gnatmake): For the compiler, call Test_If_Relative_Path with
8996         Including_Non_Switch set to False.
8997
8998         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
8999         parameter Including_Non_Switch, defaulted to True. When
9000         Including_Non_Switch is False, options that are not switches and
9001         appear as relative path are not converted to absolute paths.
9002
9003 2007-08-16  Nicolas Roche  <roche@adacore.com>
9004
9005         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
9006         makefiles
9007
9008         * Make-lang.in: Update dependencies
9009
9010 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
9011
9012         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
9013         currently inspected is a selected component, retrieve the entity of
9014         its selector.
9015         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
9016         from the immediate ancestor of Main_Unit_Entity.
9017         (Install_Limited_Withed_Unit): Do not install the limited view of
9018         package P if P is reachable through an ancestor chain from package C
9019         and C also has a with clause for P in its body.
9020         (Has_Limited_With_Clause): New routine.
9021         (Has_With_Clause): New routine.
9022
9023 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
9024
9025         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
9026         generic for an enclosing instance is a global reference, even though
9027         its scope is the enclosing instance.
9028
9029 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
9030             Javier Miranda  <miranda@adacore.com>
9031
9032         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
9033         initialize a limited object.
9034         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
9035         13/2 and 14/2.
9036         Make sure Has_Complex_Representation is inherited by derived type.
9037
9038 2007-08-16  Robert Dewar  <dewar@adacore.com>
9039
9040         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
9041         exception case
9042
9043 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
9044
9045         * sem_disp.adb (Check_Dispatching_Operation): If the operation
9046         implements an operation inherited from a progenitor interface, verify
9047         that they are subtype-conformant.
9048
9049 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
9050             Bob Duff  <duff@adacore.com>
9051             Nicolas Setton  <setton@adacore.com>
9052
9053         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
9054         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
9055         the statement which is being resolved comes from a predefined library
9056         unit, all non-predefined library interpretations are skipped.
9057         (Resolve_Op_Concat): If string concatenation was folded in the parser,
9058         but the "&" is user defined, give an error, because the folding would
9059         be wrong.
9060
9061         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
9062         the parser has folded a long sequence of concatenations of string
9063         literals.
9064
9065         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
9066         and "JMP_BUF" variables as artificial.
9067         (N_String_Literal): Do not use alloca for very long string literals. Use
9068         xmalloc/free instead. Otherwise the stack might overflow.
9069
9070         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
9071         compiler.
9072
9073 2007-08-16  Vincent Celier  <celier@adacore.com>
9074
9075         * vms_conv.adb (Process_Argument): Ensure that project related options
9076         are not put in the -cargs section when using GNAT COMPILE.
9077
9078 2007-08-16  Robert Dewar  <dewar@adacore.com>
9079
9080         * gnat_ugn.texi: Add note on preprocessing (output file not written)
9081
9082 2007-08-16  Thomas Quinot  <quinot@adacore.com>
9083
9084         * a-tags.adb: Minor reformatting.
9085
9086 2007-08-16  Bob Duff  <duff@adacore.com>
9087
9088         * sem_type.ads, sem_ch4.adb: Minor reformatting.
9089
9090 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9091
9092         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
9093         s-osinte-interix.ads, system-interix.ads: Removed.
9094
9095 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9096
9097         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
9098         calls to Check_Within_Time_Bounds.
9099         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
9100         (Difference): Account for possible rounding of the resulting difference
9101
9102 2007-08-14  Robert Dewar  <dewar@adacore.com>
9103
9104         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
9105         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
9106         s-osinte-solaris.adb, s-osinte-solaris.ads,
9107         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
9108
9109         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
9110         switch -gnatyS. Enable -gnatyS in GNAT style check mode
9111
9112 2007-08-14  Robert Dewar  <dewar@adacore.com>
9113             Ed Schonberg  <schonberg@adacore.com>
9114
9115         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
9116         Suppress unmodified in-out parameter warning in some cases
9117         This patch is a also fairly significant change to the way suppressible
9118         checks are handled.
9119
9120         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
9121         needed for access to concurrent record types generated by the expander.
9122         (Generate_Range_Check): When generating a temporary to capture the
9123         value of a conversion that requires a range check, set the type of the
9124         temporary before rewriting the node, so that the type is always
9125         properly placed for back-end use.
9126         (Apply_Float_Conversion_Check): Handle case where the conversion is
9127         truncating.
9128         (Get_Discriminal): Code reformatting. Climb the scope stack looking
9129         for a protected type in order to examine its discriminants.
9130
9131 2007-08-14  Robert Dewar  <dewar@adacore.com>
9132             Gary Dismukes  <dismukes@adacore.com>
9133             Ed Schonberg  <schonberg@adacore.com>
9134             Thomas Quinot  <quinot@adacore.com>
9135
9136         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
9137         a-stwisu.adb, a-strsup.adb: Fix warnings for range
9138         tests optimized out.
9139
9140         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
9141         (Get_Allocator_Final_List): For the case of an anonymous access type
9142         that has a specified Associated_Final_Chain, do not go up to the
9143         enclosing scope.
9144         (Expand_N_Type_Conversion): Test for the case of renamings of access
9145         parameters when deciding whether to apply a run-time accessibility
9146         check.
9147         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
9148         aggregate code before allocator, and ahead of declaration for
9149         temporary, to prevent access before elaboration when the allocator is
9150         an actual for an access parameter.
9151         (Expand_N_Type_Conversion): On an access type conversion involving an
9152         access parameter, do not apply an accessibility check when the
9153         operand's original node was an attribute other than 'Access. We now
9154         create access conversions for the expansion of 'Unchecked_Access and
9155         'Unrestricted_Access in certain cases and clearly accessibility should
9156         not be checked for those.
9157
9158         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
9159         includes a type conversion of a packed component that has been expanded,
9160         recover the original expression for the object, and use this expression
9161         in the post-call assignment statement, so that the assignment is made
9162         to the object and not to a back-end temporary.
9163         (Freeze_Subprogram): In case of primitives of tagged types not defined
9164         at the library level force generation of code to register the primitive
9165         in the dispatch table. In addition some code reorganization has been
9166         done to leave the implementation clear.
9167         (Expand_Call): When expanding an inherited implicit conversion,
9168         preserve the type of the inherited function after the intrinsic
9169         operation has been expanded.
9170
9171         * exp_ch2.ads, exp_ch2.adb
9172         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
9173         of an entry formal appearing in an assignment statement does not assign
9174         to the formal.
9175         (Expand_Current_Value): Instead of calling a routine to determine
9176         whether the prefix of an attribute reference should be optimized or
9177         not, prevent the optimization of such prefixes all together.
9178
9179         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
9180         component whose prefix is known to be of an access type is an implicit
9181         dereference and does not assign to the prefix.
9182
9183 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9184             Robert Dewar  <dewar@adacore.com>
9185
9186         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
9187         itype is visited, make an entry into table to link associated node and
9188         new itype.
9189         Add comments and correct harmless error in Build_NCT_Hash_Tables
9190         (Array_Aggr_Subtype): Associate each itype created for an index type to
9191         the corresponding range construct, and not to the aggregate itself. to
9192         maintain a one-to-one correspondence between itype and its associated
9193         node, to prevent errors when complex expression is copied.
9194         Fix mishandling of multiple levels of parens
9195
9196         * sem_aggr.adb: Create a limited view of an incomplete type, to make
9197         treatment of limited views uniform for all visible declarations in a
9198         limited_withed package.
9199         (New_Copy_Tree): If hash table is being used and itype is visited,
9200         make an entry into table to link associated node and new itype.
9201         (Resolve_Record_Aggregate): Do not add an others box association for a
9202         discriminated record component that has only discriminants, when there
9203         is a box association for the component itself.
9204
9205         * par-ch4.adb: Fix mishandling of multiple levels of parens
9206
9207 2007-08-14  Robert Dewar  <dewar@adacore.com>
9208
9209         * comperr.adb: Fix problem with suppressing warning messages from gigi
9210
9211         * erroutc.ads, erroutc.adb, errout.ads, 
9212         errout.adb (Write_Eol): Remove trailing spaces before writing the line
9213         (Write_Eol_Keep_Blanks): New procedure to write a line, including
9214         possible trailing spaces.
9215         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9216         Fix problem with suppressing warning messages from back end
9217         Improve handling of deleted warnings
9218
9219         * gnat1drv.adb: 
9220         Fix problem with suppressing warning messages from back end
9221         Handle setting of Static_Dispatch_Tables flag.
9222
9223         * prepcomp.adb: 
9224         Fix problem with suppressing warning messages from back end
9225
9226         * exp_intr.adb: Improve handling of deleted warnings
9227
9228 2007-08-14  Robert Dewar  <dewar@adacore.com>
9229
9230         * debug.adb: Improve -gnatdI to cover all cases of serialization
9231         Add documentation of dZ, d.t
9232
9233         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
9234         serialization.
9235         (Sprint_Node_Actual): Generate new output associated with implicit
9236         importation and implicit exportation of object declarations.
9237
9238 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9239             Robert Dewar  <dewar@adacore.com>
9240             Javier Miranda  <miranda@adacore.com>
9241             Gary Dismukes  <dismukes@adacore.com>
9242
9243         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
9244         to make treatment of limited views uniform for all visible declarations
9245         in a limited_withed package.
9246         Improve warnings for in out parameters
9247         (Set_Related_Interaface/Related_Interface): Allow the use of this
9248         attribute with constants.
9249         (Write_Field26_Name): Handle attribute Related_Interface in constants.
9250         Warn on duplicate pragma Preelaborable_Initialialization
9251
9252         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
9253         generation of a freezing node to ensure proper management of null
9254         excluding access types in the backend.
9255         (Create_Extra_Formals): Test base type of the formal when checking for
9256         the need to add an extra accessibility-level formal. Pass the entity E
9257         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
9258         originally being done in a couple of cases), to ensure that the
9259         Extra_Formals list gets set on the entity E when the first entity is
9260         added.
9261         (Conforming_Types): Add missing calls to Base_Type to the code that
9262         handles anonymous access types. This is required to handle the
9263         general case because Process_Formals builds internal subtype entities
9264         to handle null-excluding access types.
9265         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9266         functions that need it, even when not marked Requires_Overriding.
9267         Improve warnings for in out parameters
9268         (Analyze_Function_Return): Warn for disallowed null return
9269         Warn on return from procedure with unset out parameter
9270         Ensure consistent use of # in error messages
9271         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
9272         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
9273         the implicit conversion of the expression done for anonymous access
9274         types. This is required to generate the code of the null excluding
9275         check (if required).
9276
9277         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
9278         A formal parameter is never publicly referenceable outside of its body.
9279         (Check_References): For an unreferenced formal parameter in an accept
9280         statement, use the same warning circuitry as for subprogram formal
9281         parameters.
9282         (Warn_On_Unreferenced_Entity): New subprogram, taken from
9283         Output_Unreferenced_Messages, containing the part of that routine that
9284         is now reused for entry formals as described above.
9285         (Goto_Spec_Entity): New function
9286         (Check_References): Do not give IN OUT warning for dispatching operation
9287         Improve warnings for in out parameters
9288         (Test_Ref): Check that the entity is not undefinite before calling
9289         Scope_Within, in order to avoid infinite loops.
9290         Warn on return from procedure with unset out parameter
9291         Improved warnings for unused variables
9292
9293 2007-08-14  Robert Dewar  <dewar@adacore.com>
9294             Javier Miranda  <miranda@adacore.com>
9295             Gary Dismukes  <dismukes@adacore.com>
9296
9297         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
9298         (Expand_N_Attribute_Reference): Further unify the handling of the
9299         three forms of access attributes, using common code now for all three
9300         cases. Add a test for the case of applying an access attribute to
9301         an explicit dereference when the context is an access-to-interface
9302         type. In that case we need to apply the conversion to the prefix
9303         of the explicit dereference rather than the prefix of the attribute.
9304         (Attribute_Version, UET_Address): Set entity as internal to ensure
9305         proper dg output of implicit importation.
9306         (Expand_Access_To_Type): Removed.
9307         (Expand_N_Attribute_Reference): Merge the code from the three cases
9308         of access attributes, since the processing is largely identical for
9309         these cases. The substantive fix here is to process the case of a
9310         type name prefix (current instance case) before handling the case
9311         of interface prefixes.
9312
9313 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9314             Ed Schonberg  <schonberg@adacore.com>
9315             Javier Miranda  <miranda@adacore.com>
9316             Robert Dewar  <dewar@adacore.com>
9317
9318         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
9319         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
9320         type that is an anonymous access to controlled object, establish
9321         an associated finalization chain to avoid corrupting the global
9322         finalization list when a dynamically allocated object designated
9323         by such a component is deallocated.
9324         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9325         functions that need it, even when not marked Requires_Overriding.
9326         (Initialize_Tag): Replace call to has_discriminants by call to
9327         Is_Variable_Size_Record in the circuitry that handles the
9328         initialization of secondary tags.
9329         (Is_Variable_Size_Record): New implementation.
9330         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
9331         Suppress_Initialization pragma for a derived type.
9332         (Is_Variable_Size_Record): New subprogram.
9333         (Build_Offset_To_Top_Functions): New implementation that simplifies the
9334         initial version of this routine and also fixes problems causing
9335         incomplete initialization of the table of interfaces.
9336         (Build_Init_Procedure): Improve the generation of code to initialize the
9337         the tag components of secondary dispatch tables.
9338         (Init_Secondary_Tags): New implementation that simplifies the previous
9339         version of this routine.
9340         (Make_DT): Add parameter to indicate when type has been frozen by an
9341         object declaration, for diagnostic purposes.
9342         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
9343         diagnose attemps to freeze a subprogram when some untagged type of its
9344         profile is a private type whose full view has not been analyzed yet.
9345         (Freeze_Array_Type): Generate init proc for packed array if either
9346         Initialize or Normalize_Scalars is set.
9347         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
9348         constructing the new profile, copy the null_exclusion indicator for each
9349         parameter, to ensure full conformance of the new body with the spec.
9350
9351         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
9352         Create wrappers for constructor functions that need it, even when not
9353         marked Requires_Overriding.
9354         (Covers): Handle properly designated types of anonymous access types,
9355         whose non-limited views are themselves incomplete types.
9356         (Add_Entry): Use an entity to store the abstract operation which hides
9357         an interpretation.
9358         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
9359         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
9360         initialization aggregate.
9361         (Function_Interp_May_Be_Hidden): Rename to
9362         Function_Interp_Has_Abstract_Op.
9363         (Has_Compatible_Type): Remove machinery that skips interpretations if
9364         they are labeled as potentially hidden by an abstract operator.
9365         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
9366         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
9367         (Write_Overloads): Output the abstract operator if present.
9368         (Add_Entry): Before inserting a new entry into the interpretation table
9369         for a node, determine whether the entry will be disabled by an abstract
9370         operator.
9371         (Binary_Op_Interp_May_Be_Hidden): New routine.
9372         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
9373         aggregate.
9374         (Function_Interp_May_Be_Hidden): New routine.
9375         (Has_Compatible_Type): Do not consider interpretations hidden by
9376         abstract operators when trying to determine whether two types are
9377         compatible.
9378         (Has_Hidden_Interp): New routine.
9379         (Set_May_Be_Hidden_Interp): New routine.
9380         (Write_Overloads): Write the status of flag May_Be_Hidden.
9381
9382 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9383             Javier Miranda  <miranda@adacore.com>
9384
9385         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
9386         types declared in the declarative part of a nested package body or in
9387         the proper body of a stub.
9388         (Set_All_DT_Position): Add missing check to avoid wrong assignation
9389         of the same dispatch table slot to renamed primitives.
9390         (Make_Select_Specific_Data_Table): Handle private types.
9391         (Tagged_Kind): Handle private types.
9392         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
9393         output of implicit importation and exportation.
9394         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
9395         first formal of the thunk is always associated with the controlling
9396         type. In addition perform the following code cleanup: remove formal
9397         Thunk_Alias which is no longer required, cleanup evaluation of the
9398         the controlling type, and update the documentation.
9399         Replace occurrence of Default_Prim_Op_Count by
9400         Max_Predef_Prims. Addition of compile-time check to verify
9401         that the value of Max_Predef_Prims is correct.
9402         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
9403         (Make_DT): Add parameter to indicate when type has been frozen by an
9404         object declaration, for diagnostic purposes.
9405         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
9406         construction of statically allocated dispatch tables.
9407         (Make_DT): In case of library-level tagged types export the declaration
9408         of the primary tag. Remove generation of tags (now done by Make_Tags).
9409         Additional modifications to handle non-static generation of dispatch
9410         tables. Take care of building tables for asynchronous interface types
9411         (Make_Tags): New subprogram that generates the entities associated with
9412         the primary and secondary tags of Typ and fills the contents of Access_
9413         Disp_Table. In case of library-level tagged types imports the forward
9414         declaration of the primary tag that will be declared later by Make_DT.
9415         (Expand_Interface_Conversion): In case of access types to interfaces
9416         replace an itype declaration by an explicit type declaration to avoid
9417         problems associated with the scope of such itype in transient blocks.
9418
9419 2007-08-14  Robert Dewar  <dewar@adacore.com>
9420             Ed Schonberg  <schonberg@adacore.com>
9421             Javier Miranda  <miranda@adacore.com>
9422
9423         * exp_util.ads, exp_util.adb: 
9424         This patch replaces a number of occurrences of explicit tests for N_Null
9425         with calls to Known_Null. This improves tracking of null values, since
9426         Known_Null also catches null constants, and variables currently known to
9427         be null, so we get better tracking.
9428         (Ensure_Defined): create an itype reference only in the scope of the
9429         itype.
9430         (Side_Effect_Free): A selected component of an access type that
9431         denotes a component with a rep clause must be treated as not
9432         side-effect free, because if it is part of a linked structure its
9433         value may be affected by a renaming.
9434         (Expand_Subtype_From_Expr): For limited objects initialized with build
9435         in place function calls, do nothing; otherwise we prematurely introduce
9436         an N_Reference node in the expression initializing the object, which
9437         breaks the circuitry that detects and adds the additional arguments to
9438         the called function. Bug found working in the new patch for statically
9439         allocated dispatch tables.
9440         (Is_Library_Level_Tagged_Type): New subprogram.
9441         (Remove_Side_Effects): If the expression of an elementary type is an
9442         operator treat as a function call.
9443         (Make_Literal_Range): If the index type of the array is not integer, use
9444         attributes properly to compute the constraint on the resulting aggregate
9445         which is a string.
9446
9447         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
9448         class-wide type whose base type is an incomplete private type, leave
9449         class-wide type unfrozen so that freeze nodes can be generated
9450         properly at a later point.
9451         (Freeze_Entity, array case): Handle case of pragma Pack and component
9452         size attributre clause for same array.
9453
9454 2007-08-14  Vincent Celier  <celier@adacore.com>
9455
9456         * prj.ads, prj.adb: Update Project Manager to new attribute names for
9457         gprbuild.
9458         Allow all valid declarations in configuration project files
9459         (Reset): Initialize all tables and hash tables in the project tree data
9460         Major update of the Project Manager and of the project aware tools,
9461         including gprmake, so that the same sources in the GNAT repository
9462         can be used by gprbuild.
9463         (Slash_Id): Change type to be Path_Name_Type
9464         (Slash): Return a Path_Name_Type instead of a File_Name_Type
9465
9466         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
9467         gprbuild.
9468         Update Project Manager to new attribute names for ghprbuild
9469         Allow all valid declarations in configuration project files
9470         Major update of the Project Manager and of the project aware tools,
9471         including gprmake, so that the same sources in the GNAT repository
9472         can be used by gprbuild.
9473
9474         * prj-com.ads: 
9475         Major update of the Project Manager and of the project aware tools,
9476         including gprmake, so that the same sources in the GNAT repository
9477         can be used by gprbuild.
9478
9479         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9480         insensitive flag for attributes with optional index.
9481         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9482         array attribute, put the index in lower case.
9483         Update Project Manager to new attribute names for ghprbuild
9484         Allow all valid declarations in configuration project files
9485         Major update of the Project Manager and of the project aware tools,
9486         including gprmake, so that the same sources in the GNAT repository
9487         can be used by gprbuild.
9488
9489         * prj-env.ads, prj-env.adb: 
9490         Major update of the Project Manager and of the project aware tools,
9491         including gprmake, so that the same sources in the GNAT repository
9492         can be used by gprbuild.
9493         (Get_Reference): Change type of parameter Path to Path_Name_Type
9494
9495         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
9496         removing '-' from the path to start with the first character of the
9497         next directory.
9498         Major update of the Project Manager and of the project aware tools,
9499         including gprmake, so that the same sources in the GNAT repository
9500         can be used by gprbuild.
9501         Major update of the Project Manager and of the project aware tools,
9502         including gprmake, so that the same sources in the GNAT repository
9503         can be used by gprbuild.
9504
9505         * prj-nmsc.ads, prj-nmsc.adb: 
9506         Update Project Manager to new attribute names for ghprbuild
9507         Allow all valid declarations in configuration project files
9508         (Search_Directories): Detect subunits that are specified with an
9509         attribute Body in package Naming. Do not replace a source/unit in the
9510         same project when the order of the source dirs are known. Detect
9511         duplicate sources/units in the same project when the order of the
9512         source dirs are not known.
9513         (Check_Ada_Name): Allow all identifiers that are not reserved words
9514         in Ada 95.
9515         Major update of the Project Manager and of the project aware tools,
9516         including gprmake, so that the same sources in the GNAT repository
9517         can be used by gprbuild.
9518         (Look_For_Sources): If the list of sources is empty, set the object
9519         directory of non extending project to nil.
9520         Change type of path name variables to be Path_Name_Type
9521         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
9522         otherwise creating missing directories will fail.
9523
9524         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
9525         prj-part.ads, prj-part.adb:
9526         Major update of the Project Manager and of the project aware tools,
9527         including gprmake, so that the same sources in the GNAT repository
9528         can be used by gprbuild.
9529
9530         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9531         insensitive flag for attributes with optional index.
9532         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9533         array attribute, put the index in lower case.
9534         (Parse_Variable_Reference): Allow the current project name to be used in
9535         the prefix of an attribute reference.
9536
9537         * prj-util.ads, prj-util.adb
9538         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
9539         defaulted to False. When True, always check against indexes in lower
9540         case.
9541
9542         * snames.ads, snames.h, snames.adb: 
9543         Update Project Manager to new attribute names for gprbuild
9544         Allow all valid declarations in configuration project files
9545
9546 2007-08-14  Robert Dewar  <dewar@adacore.com>
9547             Ed Schonberg  <schonberg@adacore.com>
9548
9549         * opt.ads: Warning for non-local exception propagation now off by
9550         default
9551         New switch -gnatI to disable representation clauses
9552         Implement new pragma Implicit_Packing
9553
9554         * usage.adb: 
9555         Warning for non-local exception propagation now off by default
9556         Add warning for unchecked conversion of pointers wi different
9557         conventions.
9558         New switch -gnatI to disable representation clauses
9559
9560         * usage.adb: new switch -gnatyS
9561
9562         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
9563         note that aggregates of anonymous array types are not flagged.
9564         -gnatwc now includes membership tests optimized away
9565         -gnatw.x warnings are now off by default
9566         Added conditional compilation Appendix
9567         Add documentation of -gnatI
9568         Add documentation for new -gnatyS style check
9569         Update documentation about SAL and auto-init on Windows.
9570
9571         * gnat_rm.texi: 
9572         Add documentation for pragma Check_Name and 'Enabled attribute
9573         Document that Eliminate on dispatching operation is ignored
9574         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
9575         Document pragma Main
9576         Document pragma Implicit_Packing
9577
9578         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
9579         different conventions
9580         New switch -gnatI to disable representation clauses
9581
9582         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
9583         recognized, report the invalid characters including "-gnat" instead of
9584         just the first character in the switch.
9585         New switch -gnatI to disable representation clauses
9586         Set Warn_On_Object_Renames_Function true for -gnatg
9587
9588         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
9589         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
9590         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
9591         to switch -aP (add directory to project search dir).
9592
9593         * par-prag.adb: Implement new pragma Implicit_Packing
9594
9595         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
9596         type as having a non-standard representation, to force expansion on
9597         conversion to related types.
9598         (Analyze_Pragma): Warn on misspelled pragma
9599         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
9600         Ensure consistent use of # in error messages
9601         Implement pragma Implicit_Packing
9602
9603 2007-08-14  Olivier Hainque  <hainque@adacore.com>
9604             Eric Botcazou  <ebotcazou@adacore.com>
9605
9606         * targtyps.c (get_target_maximum_default_alignment): New function.
9607         Maximum alignment
9608         that the compiler might choose by default for a type or object.
9609         (get_target_default_allocator_alignment): New function. Alignment known
9610         to be honored by the target default allocator.
9611         (get_target_maximum_allowed_alignment): New function. Maximum alignment
9612         we might accept for any type or object on the target.
9613         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
9614
9615         * gigi.h (get_target_maximum_default_alignment): Declare new function.
9616         (get_target_default_allocator_alignment): Likewise.
9617         (get_target_maximum_allowed_alignment): Likewise.
9618
9619         PR ada/19037
9620         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
9621         result of a function call, first try to use a stabilized reference for
9622         a constant renaming too.
9623         (validate_alignment): Use target_maximum_allowed_alignment instead of
9624         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
9625         (gnat_to_gnu_entity): Use common nodes directly.
9626         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
9627         alignment and size for the object.
9628         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
9629         and N_Procedure_Call_Statement.
9630         (takes_address): Rename to lvalue_required_p, add third parameter
9631         'aliased' and adjust recursive calls.
9632         <N_Indexed_Component>: Update 'aliased' from the array type.
9633         <N_Selected_Component>: New case.
9634         <N_Object_Renaming_Declaration>: New Likewise.
9635         (Identifier_to_gnu): Adjust for above changes.
9636         (maybe_stabilize_reference) <CONST_DECL>: New case.
9637
9638         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
9639         between type variants.
9640         (build_simple_component_ref): Likewise.
9641         (build_call_alloc_dealloc): Use target_default_allocator_alignment
9642         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
9643         aligning type circuitry for allocations from the default storage pool.
9644         (build_allocator): Likewise.
9645         (build_simple_component_ref): Manually fold the reference for a
9646         constructor if the record type contains a template.
9647
9648         * utils.c (value_zerop): Delete.
9649         (gnat_init_decl_processing): Emit debug info for common types.
9650         (rest_of_record_type_compilation): If a union contains a field
9651         with a non-constant qualifier, treat it as variable-sized.
9652         (finish_record_type): Give the stub TYPE_DECL a name.
9653         (rest_of_record_type_compilation): Likewise.
9654         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
9655         types are equivalent array types.
9656         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
9657         even if the type is not passed by reference.
9658         (static_ctors, static_dtors): Delete.
9659         (end_subprog_body): Do not record constructors and destructors.
9660         (build_global_cdtor): Delete.
9661         (gnat_write_global_declarations): Do not call build_global_cdtor.
9662
9663         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
9664         -fRTS=rtp is specified.
9665         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
9666         specified.
9667
9668         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
9669         of the personality function with SJLJ exceptions.
9670
9671         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
9672         the name of the personality function with SJLJ exceptions.
9673
9674 2007-08-14  Robert Dewar  <dewar@adacore.com>
9675             Ed Schonberg  <schonberg@adacore.com>
9676
9677         * par.ads, par.adb: Improve handling of extra right parens.
9678         (Par): Remove flag From_Limited_With_Clause.
9679
9680         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
9681         Improve handling of extra right parens.
9682
9683 2007-08-14  Robert Dewar  <dewar@adacore.com>
9684
9685         * par-tchk.adb (TF_Semicolon): Improve error recovery
9686
9687 2007-08-14  Robert Dewar  <dewar@adacore.com>
9688             Ed Schonberg  <schonberg@adacore.com>
9689
9690         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
9691         enumeration type, mark all literals as referenced.
9692         (Eval_Attribute, case 'Image): If the argument is an enumeration
9693         literal and names are available, constant-fold but mark nevertheless as
9694         non-static.
9695         Clean up function names.
9696         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
9697         comment.
9698         (Requires_Simple_Name_Prefix): Removed.
9699
9700 2007-08-14  Robert Dewar  <dewar@adacore.com>
9701             Ed Schonberg  <schonberg@adacore.com>
9702
9703         * sem_ch11.adb: Improved warnings for unused variables
9704
9705         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
9706         is a synchronized interface, the derived type is limited.
9707         (Analyze_Object_Declaration): Mark the potential coextensions in the
9708         definition and expression of an object declaration node.
9709         (Build_Derived_Type): For the completion of a private type declaration
9710         with a derived type declaration, chain the parent type's representation
9711         items to the last representation item of the derived type (not the
9712         first one) if they are not present already.
9713         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
9714         object declaration of forward references to tags.
9715         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
9716         subprogram types can appear as access discriminants of synchronized
9717         types.
9718         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
9719         given in prefixed form as a selected component.
9720         (Process_Discriminants): If not all discriminants have defaults, place
9721         error message on a default that is present.
9722         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
9723         extend a synchronized tagged type.
9724         Improved warnings for unused variables
9725         (Is_Visible_Component): Fix a visibility hole on a component inherited
9726         by a private extension when parent is itself declared as a private
9727         extension, and the derivation is in a child unit.
9728         (Find_Hidden_Interface): Move spec from the package body.
9729
9730 2007-08-14  Robert Dewar  <dewar@adacore.com>
9731             Ed Schonberg  <schonberg@adacore.com>
9732
9733         * sem_ch5.adb: Improve warnings on redundant assignments
9734
9735         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
9736         parameter
9737         (Is_Synchronized_Tagged_Type): New subprogram that returns true
9738         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
9739         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
9740         is set to False. Improves handling of Known_[Not_]Null.
9741         (Wrong_Type): Special case address arithmetic attempt
9742         (Collect_Abstract_Interfaces): Add new formal to allow collecting
9743         abstract interfaces just using the partial view of private types.
9744         (Has_Abstract_Interfaces): Add new formal to allow checking types
9745         covering interfaces using the partial view of private types.
9746         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
9747         component still needs to be defined in this case, but is never
9748         initialized as VMs are using other dispatching mechanisms.
9749         (Abstract_Interface_List): For a protected type, use base type to get
9750         proper declaration.
9751         Improve warnings on redundant assignments
9752         (Is_Variable): Handle properly an implicit dereference of a prefixed
9753         function call.
9754         (Build_Actual_Subtype): If this is an actual subtype for an
9755         unconstrained formal parameter, use the sloc of the body for the new
9756         declaration, to prevent anomalises in the debugger.
9757
9758 2007-08-14  Robert Dewar  <dewar@adacore.com>
9759
9760         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
9761         dispatching operation
9762
9763 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9764             Gary Dismukes  <dismukes@adacore.com>
9765
9766         * exp_aggr.ads, 
9767         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
9768         expanded aggregate code before allocator, and ahead of declaration for
9769         temporary, to prevent access before elaboration when the allocator is
9770         an actual for an access parameter.
9771         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
9772         the TSD and the table of interfaces.
9773         (Convert_To_Assignments): Augment the test for delaying aggregate
9774         expansion for limited return statements to include the case of extended
9775         returns, to prevent creation of an unwanted transient scope.
9776         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
9777         (Expand_Array_Aggregate): Handle aggregates associated with
9778         statically allocated dispatch tables.
9779         (Expand_Record_Aggregate): Handle aggregates associated with
9780         statically allocated dispatch tables.
9781         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
9782         of anonymous access type.
9783
9784 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9785
9786         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
9787         is a variable that renames a slice, use the variable itself in the
9788         expannsion when the renamed expression itself may be modified between
9789         the declaration of the renaming and the array assignment.
9790
9791 2007-08-14  Jerome Guitton  <guitton@adacore.com>
9792
9793         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
9794         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
9795         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
9796         New functions; dummy implementations.
9797
9798         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
9799         functions, used to implement the multi-tasks mode routines on VxWorks.
9800
9801         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
9802         New functions, thin
9803         binding to the VxWorks routines which have changed between VxWorks 5
9804         and 6.
9805         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
9806         which are not callable from a RTP.
9807
9808         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
9809         implemented for the multi-tasks mode on VxWorks 5 and 6.
9810
9811         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
9812
9813         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
9814         functions.
9815
9816 2007-08-14  Vincent Celier  <celier@adacore.com>
9817
9818         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
9819         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9820         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
9821         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
9822         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
9823         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
9824         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
9825         procedure.
9826         (Major_Id_Name): New function.
9827         mlib-tgt.ads/mlib.tgt.adb:
9828         (Library_Major_Minor_Id_Supported): New function, default returns True
9829         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
9830         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
9831         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
9832         Implementation of Library_Major_Minor_Id_Supported returns False
9833         clean.adb:
9834         (Clean_Library_Directory): If major/minor ids are supported, clean all
9835         library files.
9836         Major update of the Project Manager and of the project aware tools,
9837         including gprmake, so that the same sources in the GNAT repository
9838         can be used by gprbuild.
9839
9840 2007-08-14  Olivier Hainque  <hainque@adacore.com>
9841
9842         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
9843         (GCC_ZCX_Support): Switch to True.
9844         
9845         * s-intman-solaris.adb (Notify_Exception): Call
9846         Adjust_Context_For_Raise before raising, as expected for signal
9847         handlers in general.
9848         
9849         * s-intman-posix.adb (Notify_Exception): Remove declaration of
9850         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
9851         to other implementation bodies.
9852         
9853         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
9854         be visible by multiple implementation bodies.
9855         
9856         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
9857         only for conditions coming from hardware.
9858         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
9859         adjustments to signal context prior to exception raise from signal
9860         handler.
9861         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
9862         mode.
9863         Solaris section: (__gnat_adjust_context_for_raise): New function.
9864         Implementation of the machine context adjustments to perform prior to
9865         raise from a signal handler. Version for both sparc and x86.
9866         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
9867         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
9868         prior to raising as expected for any handler, before possible nested
9869         faults to make sure all the contexts in a chain have been adjusted by
9870         the time we propagate.
9871
9872 2007-08-14  Pascal Obry  <obry@adacore.com>
9873
9874         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
9875         (SYSTEM_INFO): New record.
9876         (SetThreadIdealProcessor): New imported routine needed for supporting
9877         task_info pragma on Windows.
9878
9879         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
9880         info can be applied to the current host.
9881         (Create_Task): Set the ideal processor if information is present.
9882
9883         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
9884         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
9885
9886 2007-08-14  Olivier Hainque  <hainque@adacore.com>
9887
9888         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
9889         stack size and initial stack pointer value for a given task.
9890         (Enter_Task): Get the stack attributes of the task we are entering and
9891         let the stack checking engine know about them.
9892
9893         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
9894         Let the stack-checking engine know about the initial sp value and stack
9895         size associated with the current task.
9896         (Set_Stack_Info): If a stack base has been notified for the current
9897         task, honor it. Fallback to the previous less accurate method otherwise.
9898
9899         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
9900
9901 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9902
9903         * sem_ch10.adb: Create a limited view of an incomplete type, to make
9904         treatment of limited views uniform for all visible declarations in a
9905         limited_withed package.
9906         Set flag indicating that a subprogram body for a child unit has a
9907         generated spec.
9908         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
9909         separate declaration, remove the unit name from visibility after
9910         compilation, so that environment is clean for subsequent compilations.
9911         (Install_Limited_Context_Clauses): Do not install a
9912         limited_private_with_clause unless the current unit is a body or a
9913         private child unit.
9914         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
9915         in the same fashion.
9916         (Install_Limited_Withed_Unit): Do not install a limited with clause if
9917         it applies to the declaration of the current package body.
9918         (Remove_Private_With_Clauses): If there is a regular with_clause for
9919         the unit, delete Private_With_Clause from context, to prevent improper
9920         hiding when processing subsequent nested packages and instantiations.
9921
9922 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
9923
9924         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
9925         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
9926         representing absolute path names.
9927         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
9928
9929         * cstreams.c (__gnat_full_name for VxWorks): Use
9930         __gnat_is_absolute_path to detect whether we need to add the current
9931         directory to normalize the path.
9932
9933 2007-08-14  Javier Miranda  <miranda@adacore.com>
9934
9935         * a-tags.ads, 
9936         a-tags.adb (Displace): Associate a message with the raised CE
9937         exception.
9938         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
9939         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
9940         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
9941         spec.
9942         (Default_Prim_Op_Count): Removed.
9943         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
9944         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
9945         Remove pragma Inline_Always.
9946
9947         * rtsfind.ads (Default_Prim_Op_Count): Removed
9948         (Max_Predef_Prims): New entity
9949         (RE_Expanded_Name): Removed
9950         (RE_HT_Link): Removed
9951         (RE_Iface_Tag): Remmoved
9952         (RE_Ifaces_Table): Removed
9953         (RE_Interfaces_Array): Removed
9954         (RE_Interface_Data_Element): Removed
9955         (RE_Nb_Ifaces): Removed
9956         (RE_RC_Offset): Removed
9957         (RE_Static_Offset_To_Top): Removed
9958
9959         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
9960         formal.
9961         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
9962         Prim_Op_Count by Max_Predef_Prims.
9963
9964 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9965             Vincent Celier  <celier@adacore.com>
9966
9967         * binde.adb (Elab_All_Links): Remove unnecessary call to
9968         Generic_Separately_Compiled (if a unit satisfies this predicate, there
9969         won't be an associated Afile).
9970         (Elab_All_Links): Fail if a referenced unit cannot be found
9971
9972         * bindgen.adb: 
9973         Fix comments in bindgen regarding consistency checks done in Bcheck:
9974         the checks are made across units within a partition, not across several
9975         partitions.
9976         Fix generation of C binder file for VxWorks.
9977
9978         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
9979         Generic_May_Lack_ALI, more descriptive of the current use of the
9980         predicate, and update documentation.
9981
9982         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
9983         reorganization and documentation update for the case of predefined
9984         library generics (for which we do not reference an Afile).
9985
9986 2007-08-14  Robert Dewar  <dewar@adacore.com>
9987
9988         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
9989         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
9990         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
9991         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
9992         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
9993         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
9994         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
9995         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
9996         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
9997         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
9998         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
9999         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
10000         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
10001         g-altcon.adb: Minor reformatting
10002
10003         ada-tree.h: Delete empty line.
10004
10005         ali.ads: Minor reformatting
10006         Clarification of comments.
10007         Minor spelling correction
10008
10009         * exp_dbug.adb: Add Warnings Off to suppress new warning
10010
10011         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10012         formal
10013
10014         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
10015         value
10016
10017         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
10018
10019         * a-textio.ads: Reorder the standard input/output/error declarations
10020         for consistency.
10021
10022         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
10023
10024         * par-ch2.adb: Recognize RM specially in errout
10025         Change 'R'M to RM in all error messages
10026
10027         * scng.adb: Recognize RM specially in errout
10028
10029         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
10030         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
10031
10032         * s-direio.adb: Add missing routine header box.
10033
10034         * sem_attr.ads: Add ??? comments
10035
10036         * sem_eval.adb: Recognize RM specially in errout
10037         Change 'R'M to RM in all error messages
10038
10039         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
10040
10041         * s-tasinf.ads: Fix minor comment typo.
10042
10043         * a-cihama.adb: Minor comment addition
10044
10045         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10046         formal
10047
10048         * s-tasinf-tru64.ads: Fix minor comment typo.
10049
10050         * itypes.ads: Comment update.
10051
10052         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
10053         anymore.
10054
10055         * argv.c: Added protection against null gnat_argv and gnat_envp.
10056
10057         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
10058         warning message when Tolerate_Consistency_Errors is True.
10059
10060         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
10061         Any_Id, as this subprogram is only applicable to *type* entities (it
10062         sets RM_Size). Instead initialize just Esize and Alignment.
10063
10064 2007-08-14  Bob Duff  <duff@adacore.com>
10065
10066         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
10067         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
10068         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
10069         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
10070         a-coorse.ads (Next): Applied pragma Inline.
10071         Make all Containers packages Remote_Types (unless they are already
10072         Pure).
10073         (Previous): applied pragma Inline
10074         (Elements_Type): is now a record instead of an array
10075
10076 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10077
10078         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
10079         of Set_Item.
10080         (Set_Item): When the new item is an element of the currently allocated
10081         table passed by reference, save a copy on the stack if we're going
10082         to reallocate. Also, in Table.Set_Item, make sure we test the proper
10083         variable to determine whether to call Set_Last.
10084
10085         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
10086         symbols-vms.adb, symbols-processing-vms-alpha.adb,
10087         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
10088         some occurrences of the pattern
10089            T.Increment_Last;
10090            T.Table (T.Last) := Value;
10091         with a cleaner call to
10092            T.Append (Value);
10093
10094 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10095             Gary Dismukes  <dismukes@adacore.com>
10096             Thomas Quinot  <quinot@adacore.com>
10097
10098         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
10099         derived type with interface progenitors use the analyzed formal as the
10100         parent of the actual, to create renamings for all the inherited
10101         operations in Derive_Subprograms.
10102         (Collect_Previous_Instances): new procedure within of
10103         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
10104         unit being loaded, to ensure that the generation of global symbols is
10105         consistent in different compilation modes.
10106         (Is_Tagged_Ancestor): New function testing the ancestor relation that
10107         takes progenitor types into account.
10108         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
10109         traversing over the primitives of the formal and actual types to locate
10110         any abstract subprograms of the actual type that correspond to a
10111         nonabstract subprogram of the formal type's ancestor type(s), and issue
10112         an error if such is found.
10113         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
10114         Instantiate_Package_Body, Instantiate_Subprogram_Body):
10115         Remove bogus guard around calls to Inherit_Context.
10116         (Reset_Entity): If the entity is the selector of a selected component
10117         that denotes a named number, propagate constant-folding to the generic
10118         template only if the named number is global to the generic unit.
10119         (Set_Instance_Env): Only reset the compilation switches when compiling
10120         a predefined or internal unit.
10121
10122 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10123
10124         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
10125         parameter to determine whether operation applies to the prefix.
10126         (Complete_Object_Operation): If actual has an access type and
10127         controlling formal is not an in_parameter, reject the actual if it is
10128         an access_to_constant type.
10129         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
10130         type, the candidate operations are found in the scope of declaration of
10131         the type, because the type has no primitive subprograms.
10132         (Analyze_Selected_Component): If prefix is class-wide, and root type is
10133         a private extension, only examine visible components before trying to
10134         analyze as a prefixed call.
10135         Change Entity_List to Type_To_Use, for better readability.
10136         (Has_Fixed_Op): Use base type when checking whether the type of an
10137         operator has a user-defined multiplication/division
10138         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
10139         user-defined operators are available for fixed-point types.
10140
10141 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10142             Ed Schonberg  <schonberg@adacore.com>
10143
10144         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
10145         formal At_Any_Place indicating, when True, that we want to test for
10146         availability of the stream attribute at any place (as opposed to the
10147         current visibility context only).
10148         (Missing_Read_Write_Attributes): A stream attribute is missing for the
10149         purpose of enforcing E.2.2(8) only if it is not available at any place.
10150         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
10151         when checking the legality of an extension aggregate in a preelaborable
10152         package. Treat the literal null as a valid default expression in a
10153         component declaration for a type with preelaborable initialization.
10154         A limited interface is a legal progenitor for the designated type of a
10155         remote access to class-wide type.
10156
10157 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10158             Ed Schonberg  <schonberg@adacore.com>
10159
10160         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
10161         reference): Use correct entity as denoted entity for the selector of
10162         the rewritten node.
10163         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
10164         setting the Referenced_As_LHS flag for entities that are implicitly
10165         dereferenced.
10166         (Find_Type): If the type is an internally generated incomplete type,
10167         mark the full view as referenced, to prevent spurious warnings.
10168         (Find_Selected_Component, Has_Components): Handle properly non-limited
10169         views that are themselves incomplete types.
10170         Handle interfaces visible through limited-with clauses.
10171         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
10172         subprogram generic actual for which we have generated a renaming.
10173         Warn when the renaming introduces a homonym of
10174         the renamed entity, and the renamed entity is directly visible.
10175
10176 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10177             Hristian Kirtchev  <kirtchev@adacore.com>
10178
10179         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
10180         appear in the subtree to the current allocator if it is not a static
10181         coextension.
10182         (Resolve_Allocator): Perform cleanup if resolution has determined that
10183         the allocator is not a coextension.
10184         (Resolve): Skip an interpretation hidden by an abstract operator only
10185         when the type of the interpretation matches that of the context.
10186         (Resolve): When looping through all possible interpretations of a node,
10187         do not consider those that are hidden by abstract operators.
10188         (Resolve_Actuals): When verifying that an access to class-wide object
10189         is an actual  for a controlling formal, ignore anonymous access to
10190         subprograms whose return type is an access to class_wide type.
10191         (Resolve_Slice): If the prefix of the slice is a selected component
10192         whose type depends on discriminants, build its actual subtype before
10193         applying range checks on the bounds of the slice.
10194         (Valid_Conversion): In an instance or inlined body, compare root types,
10195         to prevent anomalies between private and public views.
10196         (Resolve): Improve error message for ambiguous fixed multiplication
10197         expressions that involve universal_fixed multiplying operations.
10198
10199 2007-08-14  Javier Miranda  <miranda@adacore.com>
10200             Hristian Kirtchev  <kirtchev@adacore.com>
10201
10202         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
10203         location to allow the correct generation of errors in case of
10204         restrictions applied to the expanded code.
10205         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
10206         function if the condition does not reference them.
10207         (Expand_Entry_Body_Declarations): Mark the index constant as having a
10208         valid value.
10209
10210 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10211             Pablo Oliveira  <oliveira@adacore.com>
10212
10213         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
10214         typecode parameters for a union (in a variant record), remove
10215         extraneous layer of Any wrapping for member label.
10216         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
10217         elabration statements, register the package with the name server
10218         at the beginning, not at the end, of the elaboration statements so
10219         that they can create remote access to subprogram values that designate
10220         remote subprograms from the package.
10221
10222 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10223
10224         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
10225         values to compute the number of seconds since the Unix Epoc in order to
10226         account for Daylight Savings Time. Perform special processing for dates
10227         that are earlier than the Unix Epoc to obtain a negative number.
10228
10229 2007-08-14  Emmanuel Briot  <briot@adacore.com>
10230
10231         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
10232         switches.
10233
10234 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
10235
10236         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
10237         binder-generated file is not in Ada.
10238         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
10239         recorded in the ALI file.
10240         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
10241
10242 2007-08-14  Vincent Celier  <celier@adacore.com>
10243
10244         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
10245         (Output_Source): Do nothing if parameter is No_Sdep_Id
10246
10247         * make.adb (Gnatmake): Do not rebuild an archive simply because a
10248         shared library it imports has a later time stamp.
10249         (Check): Resolve the symbolic links in the path name of the object
10250         directory.
10251         Check that the ALI file is in the correct object directory
10252         Check if a file name does not correspond to the mapping of units
10253         to file names.
10254         (Display_Version): New procedure
10255         (Initialize): Process switches --version and --help
10256         Use type Path_Name_Type for path name
10257
10258 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
10259
10260         * impunit.adb: Re-organize System.Random_Numbers and
10261         GNAT.Random_Numbers and add to builds.
10262
10263         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
10264
10265         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
10266
10267         * a-assert.ads, a-assert.adb: New files.
10268
10269 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
10270
10271         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
10272         if AAMP_On_Target is True, then the size of the type encompasses two
10273         addresses (a static link and a subprogram address), except in the case
10274         of library-level access types.
10275
10276 2007-08-14  Vincent Celier  <celier@adacore.com>
10277
10278         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
10279         writing the line.
10280         (Write_Eol_Keep_Blanks): New procedure to write a line, including
10281         possible trailing spaces.
10282         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10283
10284 2007-08-14  Javier Miranda  <miranda@adacore.com>
10285
10286         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
10287         null-excluding access types.
10288
10289 2007-08-14  Javier Miranda  <miranda@adacore.com>
10290
10291         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
10292         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
10293         of private types add missing check on matching interfaces in the
10294         partial and full declarations.
10295         (Analyze_Protected_Type): Code cleanup.
10296         (Analyze_Task_Type): Code cleanup.
10297
10298 2007-08-14  Javier Miranda  <miranda@adacore.com>
10299
10300         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
10301         generated interface thunk.
10302
10303 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10304
10305         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
10306         obsolescent warning on application of 'Class to an incomplete type.
10307
10308         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
10309         prevent obsolescent warning on application of 'Class to an incomplete
10310         type.
10311
10312 2007-08-14  Pascal Obry  <obry@adacore.com>
10313
10314         * s-fileio.adb (Is_Open): Add check for usability of the underlying
10315         file stream.
10316
10317 2007-08-14  Cyrille Comar  <comar@adacore.com>
10318
10319         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
10320         since it is potentially used in cases implying double finalization of
10321         the same object.
10322
10323 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
10324
10325         * s-tasini.adb (Get_Stack_Info): Move this function to
10326         System.Soft_Links.Tasking because it is common to the full and the
10327         restricted run times.
10328         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
10329         in SSL.Tasking.Init_Tasking_Soft_Links.
10330
10331         * s-solita.adb (Get_Stack_Info): Function moved from
10332         System.Tasking.Initialization because it is common to the full and the
10333         restricted run times.
10334         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
10335
10336 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
10337
10338         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
10339         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
10340         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
10341         parameter.
10342
10343         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
10344         guard to 12K.
10345
10346 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
10347
10348         * s-veboop.adb (SU): New named number initialized to
10349         System.Storage_Unit.
10350         (True_Val): The initialization expression is revised to use SU (=
10351         Storage_Unit) rather than assuming 8 for the component size of an
10352         unpacked Boolean array.
10353
10354 2007-08-14  Tristan Gingold  <gingold@adacore.com>
10355
10356         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
10357
10358         * tb-ivms.c: New file.
10359
10360         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
10361
10362 2007-08-14  Geert Bosch  <bosch@adacore.com>
10363
10364         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
10365         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
10366         Add required linker pragmas for automatically linking with the gnalasup
10367         linear algebra support library, and the systems math library.
10368         Rename cdot to cdotu and zdot to zdotu.
10369         Update header comment to describe purpose of package.
10370
10371 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10372
10373         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
10374         an explicitly specified Associated_Final_Chain, use that list.
10375         (Expand_N_Package_Body): Build dispatch tables of library level tagged
10376         types.
10377         (Expand_N_Package_Declaration): Build dispatch tables of library level
10378         tagged types. Minor code cleanup.
10379
10380 2007-08-14  Vincent Celier  <celier@adacore.com>
10381
10382         * gnatchop.adb (Terminate_Program): Remove exception and use
10383         Types.Terminate_Program instead.
10384
10385         * osint.ads, osint.adb (Current_Exit_Status): New global variable
10386         (Find_Program_Name): Added protection against empty name.
10387         (OS_Exit_Through_Exception): New procedure
10388
10389         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
10390         (OS_Exit_Default): New procedure that contains the previous
10391         implementation of procedure OS_Exit.
10392         (Final_Value): Remove obsolete Interix stuff.
10393
10394 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10395
10396         * g-socket.ads: Reorganize example code so that it also works on
10397         Windows XP.
10398
10399 2007-08-14  Tristan Gingold  <gingold@adacore.com>
10400
10401         * g-trasym.ads: AIX now supports symbolic backtraces.
10402
10403 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10404
10405         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
10406         units being loaded to detect circularities. A circularity may be
10407         present even if the current chain of pending units to load starts from
10408         a limited_with_clause.
10409
10410         * lib-load.ads: Change profile of Load_Unit to use a with_clause
10411         rather than a boolean flag, in order to detect circularities in
10412         with_clauses.
10413
10414         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
10415         than propagating the From_Limited_With flag, in order to handle
10416         properly circularities involving with_clauses.
10417
10418 2007-08-14  Nicolas Setton  <setton@adacore.com>
10419
10420         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
10421         warnings.
10422
10423 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
10424
10425         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
10426         to build for libgnala.
10427         libgnat: Add rules to build libgnala.a
10428         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
10429         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
10430         Add s-osinte-vxworks-kernel.adb to the target pairs of the
10431         kernel run-time lib for VxWorks 6, which would provide a different
10432         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
10433         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
10434         running ZCX by default.
10435         Add g-sttsne-locking to LynxOS version.
10436         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
10437         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
10438
10439         * system-darwin-x86.ads: New file.
10440
10441         * Make-lang.in: Delete files before copying onto them, so if they are
10442         read-only, the copy won't fail.
10443         Update dependencies
10444
10445 2007-08-14  Pascal Obry  <obry@adacore.com>
10446
10447         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
10448         naming scheme.
10449
10450 2007-08-14  Vincent Celier  <celier@adacore.com>
10451
10452         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
10453         (Gcc): Initialize Gcc_Name at the first call
10454
10455 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
10456
10457         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
10458         with_clauses of the enclosing unit when analyzing the package
10459         specification of a nested instance.
10460
10461 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10462
10463         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
10464         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
10465         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
10466         layout of N_Allocator.
10467
10468 2007-08-14  Thomas Quinot  <quinot@adacore.com>
10469
10470         * rtsfind.adb (Check_RPC): Add PCS version check.
10471
10472         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
10473         (Gnat_Free_Software): New function.
10474
10475         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
10476         the PCS_Version value from s-parint, used to check that it is consistent
10477         with what exp_dist expects.
10478
10479         * s-parint.ads (PCS_Version): New entity for checking consistency
10480         between exp_dist and PCS.
10481
10482         * gen-soccon.c: (SO_REUSEPORT): New constant.
10483
10484 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
10485
10486         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
10487         variable Sub_Second to Duration in order to accomodate a larger range
10488         of arithmetic operations.
10489
10490 2007-08-14  Bob Duff  <duff@adacore.com>
10491
10492         * g-sttsne-locking.ads: Move comments from spec to body.
10493         * g-sttsne-locking.adb: Move comments from spec to body.
10494         * g-sttsne-vxworks.ads: Removed.
10495         * g-sttsne-vxworks.adb: Removed.
10496
10497 2007-08-11  Ian Lance Taylor  <iant@google.com>
10498
10499         * misc.c (gnat_get_alias_set): Change return type to
10500         alias_set_type.
10501
10502 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10503
10504         * decl.c, utils2.c: Fix whitespace in last change.
10505
10506 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10507
10508         * decl.c (compare_field_bitpos): Constify.
10509         * utils2.c (compare_elmt_bitpos): Likewise.
10510
10511 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
10512
10513         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
10514         anonymous access type.
10515         (pthread_sigmask): Now take an access sigset_t.
10516
10517 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
10518
10519         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
10520         
10521 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
10522
10523         PR tree-optimization/25737
10524         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
10525
10526 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10527
10528         * trans.c (Attribute_to_gnu): When subtracting an
10529         offset from a pointer, use POINTER_PLUS_EXPR with
10530         NEGATE_EXPR instead of MINUS_EXPR.
10531         (gnat_to_gnu): Likewise.
10532         * utils.c (convert): When converting between
10533         thin pointers, use POINTER_PLUS_EXPR and sizetype
10534         for the offset.
10535         * utils2.c (known_alignment): POINTER_PLUS_EXPR
10536         have the same semantics as PLUS_EXPR for alignment.
10537         (build_binary_op): Add support for the semantics of
10538         POINTER_PLUS_EXPR's operands.
10539         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
10540
10541 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
10542
10543         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
10544         of get_signed_or_unsigned_type.
10545         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
10546
10547 2007-06-11  Bob Duff  <duff@adacore.com>
10548             Thomas Quinot  <quinot@adacore.com>
10549
10550         * g-stsifd-sockets.adb (Create): Work around strange behavior of
10551         'bind' on windows that causes 'connect' to fail intermittently, by
10552         retrying the 'bind'.
10553         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10554
10555 2007-06-10  Duncan Sands  <baldrick@free.fr>
10556
10557         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
10558         than to void, for the fields when making a new fat pointer type.
10559         (gnat_substitute_in_type): Now substitute_in_type.
10560         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
10561         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
10562         * utils.c (update_pointer_to): Update fat pointers by updating the
10563         dummy node pointers used for the fields.
10564
10565 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10566             Bob Duff  <duff@adacore.com>
10567
10568         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
10569         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
10570         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
10571         constant Thread_Blocking_IO, always True by default, set False
10572         on a per-runtime basis.
10573         (Need_Netdb_Buffer): New constant.
10574
10575         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
10576         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
10577         files.
10578
10579         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
10580         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
10581         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
10582         child package Task_Safe_NetDB
10583         (Host_Error_Messages): Add stub body.
10584         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10585
10586         * g-soccon-mingw.ads: Add Windows-specific constants.
10587         (Need_Netdb_Buffer): New constant.
10588         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
10589         wrapper and import inet_addr(3) from the standard sockets library
10590         directly instead.
10591         (In_Addr): Add alignment clause.
10592         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10593
10594 2007-06-06  Robert Dewar  <dewar@adacore.com>
10595
10596         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10597         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
10598         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
10599         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
10600         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
10601         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
10602         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
10603         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
10604         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
10605         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
10606         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
10607         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
10608         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
10609         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
10610         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
10611         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
10612         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
10613         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
10614         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
10615         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
10616         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
10617         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
10618         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
10619         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
10620         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
10621         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
10622         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
10623         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
10624         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
10625         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
10626         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
10627         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
10628         Unchecked_* by Ada.Unchecked_*
10629
10630 2007-06-06  Robert Dewar  <dewar@adacore.com>
10631
10632         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
10633         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
10634         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
10635         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
10636         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
10637         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
10638
10639         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
10640         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
10641         s-tasloc.adb, s-tasloc.ads: New files.
10642
10643 2007-06-06  Bob Duff  <duff@adacore.com>
10644
10645         * g-expect-vms.adb: 
10646         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
10647         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
10648         (Send_Signal, Close): Raise Invalid_Process if the process id is
10649         invalid.
10650         (Pattern_Matcher_Access): Is now a general access type to be able to
10651         use aliased string.
10652
10653 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10654             Arnaud Charlet  <charlet@adacore.com>
10655
10656         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
10657         (SIGEMT is now used instead of SIGTERM on AIX).
10658
10659         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
10660         (Time_Slice_Supported): Set to True.
10661         Use SIGEMT instead of SIGTERM as SIGADAABORT.
10662
10663 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
10664
10665         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
10666         (Time, Time)): Use To_Relative_Time rather than manual calculation to
10667         express the bounds of Duration as Time. Raise Time_Error when the
10668         result is greater or equal to the higher bound of Duration (on the
10669         margin case).
10670         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
10671         Ada_High_And_Leaps.
10672         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
10673         Ada_High_And_Leaps.
10674         ("-" (Time, Time)): Reorder code.
10675         (All_Leap_Seconds): Removed.
10676         (Arithmetic_Operations.Add): Remove sign related kludge.
10677         (Arithmetic_Operations.Difference): Control the leaps seconds processing
10678         with flag Leap_Support.
10679         (Arithmetic_Operations.Subtract): Remove sign related kludge.
10680         (Check_Within_Time_Bounds): New procedure.
10681         (Clock): Control the leap seconds processing with flag Leap_Support.
10682         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
10683         (Formatting_Operations.Split): Control the leap seconds processing with
10684         flag Leap_Support.
10685         (Formatting_Operations.Time_Of): Control the leaps seconds processing
10686         with flag Leap_Support. Adjust the year, month and day (if applicable)
10687         when the value of day seconds designates a new day.
10688         (Split): Use parameter associations for better readability. Integrate
10689         flag Is_Ada_05.
10690         (Time_Of): Use parameter associations for better readability. Integrate
10691         flag Is_Ada_05.
10692
10693         * a-calfor.adb (Split): Use parameter associations for better
10694         readability. Integrate flag Is_Ada_05.
10695         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
10696         better readability. Integrate flag Is_Ada_05.
10697
10698 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
10699
10700         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
10701         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
10702         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
10703         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
10704         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
10705         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
10706         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
10707         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
10708         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
10709         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
10710         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
10711         time when entering this routine to detect a backward clock setting
10712         (manual setting or DST adjustment), to avoid waiting for a longer delay
10713         than needed.
10714         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
10715         Remove handling of deferred priority change, and replace by setting the
10716         task priority directly, as required by AI-188.
10717         Update comments.
10718         (Max_Task_Image_Length): New constant.
10719         Replace Warnings (Off) by Unreferenced pragma, cleaner.
10720         (Dynamic_Priority_Support): Removed, no longer needed.
10721         (Poll_Base_Priority_Change): Ditto.
10722         (Set_Ceiling): Add this procedure to change the ceiling priority
10723         associated to a lock. This is a dummy implementation because dynamic
10724         priority ceilings are not supported by the underlying system.
10725
10726         * a-dynpri.adb (Set_Priority): Take into account case where Target is
10727         accepting a RV with its priority boosted.
10728         Remove handling of deferred priority change, and replace by setting the
10729         task priority directly, as required by AI-188.
10730
10731         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
10732         Succeeded = True.
10733         Remove handling of deferred priority change, and replace by setting the
10734         task priority directly, as required by AI-188.
10735         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
10736         of Self_Id earlier.
10737
10738         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
10739         (Poll_Base_Priority_Change): Removed.
10740         Code clean up: use SSL.Current_Target_Exception.
10741
10742         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
10743         to run as this is a potentially dispatching point.
10744         (Call_Synchronous): Use Local_Defer_Abort.
10745         (Callable): Relax assertion.
10746         (Selective_Wait): Relax assertion in case abort is not allowed.
10747         Remove handling of deferred priority change, and replace by setting the
10748         task priority directly, as required by AI-188.
10749
10750         * s-tasuti.adb (Make_Passive): Adjust assertions.
10751         Remove handling of deferred priority change, and replace by setting the
10752         task priority directly, as required by AI-188.
10753
10754 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
10755
10756         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
10757         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
10758         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
10759         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
10760         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
10761         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
10762         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
10763         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
10764         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
10765         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
10766         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
10767         This patch changes the largest non-binary modulus from 2**31-1 to
10768         2**32-1.
10769         (Compiler_System_Version): Removed, no longer used.
10770         Clean up system files by removing flags only used on a single target.
10771         Also remove obsolete flags, only used during bootstrap from system.ads
10772         (Address): Add a pragma Preelaborable_Initialization.
10773
10774         * system-aix.ads:  Ditto.
10775         (GCC_ZCX_Support): Set to true.
10776         Update priority range on AIX and map Ada priorities to target
10777         priorities appropriately for different scheduling policies.
10778
10779         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
10780
10781 2007-06-06  Vincent Celier  <celier@adacore.com>
10782
10783         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
10784         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
10785
10786         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
10787         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
10788         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
10789         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
10790         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
10791         MLib.Tgt, containing the default versions of the exported subprograms.
10792         For each platform, create a specific version of the body of new child
10793         package MLib.Tgt.Specific that contains only the body of subprograms
10794         that are different from the default.
10795         (Archive_Builder_Append_Options): New function.
10796
10797 2007-06-06  Matthew Gingell  <gingell@adacore.com>
10798
10799         * s-osinte-aix.adb: Map Ada priorities to target priorities
10800         appropriately for different scheduling policies.
10801
10802 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
10803
10804         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
10805         its C counterpart.
10806         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
10807         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
10808
10809 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
10810
10811         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
10812         Noop on VMS, added for interface commonality.
10813
10814 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
10815             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10816             Olivier Hainque  <hainque@adacore.com>
10817
10818         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
10819         renamed expression of a full renaming at toplevel.
10820         (gnat_to_gnu_entity, case object): If not defining, do not look inside
10821         the values the constant is initialized to if it is an N_Allocator.
10822         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
10823         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
10824         (make_aligning_type): Accept an extra ROOM argument for storage to be
10825         made available before the aligned field, and an extra BASE_ALIGN
10826         argument for callers to pass the alignment guaranteed to be honored for
10827         the whole aligning object. Avoid call to finish_record_type, which only
10828         interferes with the sizes we want to set.
10829         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
10830         make_aligning_type for super-aligned objects on stack.
10831         (components_to_record): Pass the adjusted size of the type when creating
10832         fields in the qualified union for the variant part.
10833         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
10834         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
10835         packed array type.
10836         (maybe_pad_type): Set TYPE_USER_ALIGN.
10837         (make_aligning_type): Likewise.
10838         ALIGN argument is unsigned int.
10839         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
10840         (gnat_to_gnu_param): Likewise, for parameters.
10841         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
10842         if it is constant and stems from a function call.
10843         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
10844         of the record is specified.  Adjust accordingly.
10845         (adjust_packed): New static function.
10846         (gnat_to_gnu_field): Use it to adjust the packedness setting.
10847         (components_to_record): Likewise.
10848         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
10849         side-effects if the object is deemed constant.
10850         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
10851         type instead of merely finalizing it.  Tidy.
10852         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
10853         <E_Access_Type>: Likewise.
10854         (defer_debug_incomplete_list): Rename to defer_finalize_list.
10855         (defer_debug_level): Delete.
10856         (gnat_to_gnu_entity) <debug_deferred>: Likewise
10857         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
10858         type.
10859         <E_Record_Type>: Do not explicitly defer finalizing the type.
10860         Adjust for write_record_type_debug_info renaming.
10861         <E_Subprogram_Type>: Likewise.
10862         Finalize deferred types right after deferred incomplete types are
10863         expanded.
10864         (rest_of_type_decl_compilation): New global function.
10865         (components_to_record): Rename defer_debug parameter to do_not_finalize.
10866         (components_to_record): Propagate the packedness to the fields of the
10867         qualified union type if there is a variant part.
10868         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
10869         instead of inline code to adjust the XUT field offsets.
10870         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
10871         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
10872         and write the debug info if the type derives from a discriminated one.
10873         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
10874         <E_Array_Subtype>: Likewise.
10875         <E_String_Literal_Subtype>: Likewise.
10876         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
10877         an alignment clause.
10878         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
10879         before giving warning.
10880         (prepend_one_attribute_to): New function, helper to prepend an attribute
10881         to an attribute list.
10882         (gnat_to_gnu_entity) <E_Procedure>: Use it.
10883         (prepend_attributes): Likewise.
10884         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
10885         <E_Array_Type>: Declare the padding type for the element type, if any.
10886         <E_Array_Subtype>: Likewise.
10887         (defer_limited_with): New variable.
10888         (Gigi_Equivalent_Type): New function.
10889         (gnat_to_gnu_entity): Use it at start and use result throughout.
10890         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
10891         Gigi_Equivalent_Type, support Limited_With, allow two levels of
10892         indirection, precompute if unconstrained array to simplify logic, and
10893         use defer_limited_with to defer elaboration of some types from limited
10894         with.
10895         (finalize_from_with_types): New function.
10896
10897 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
10898             Eric Botcazou  <ebotcazou@adacore.com>
10899             Tristan Gingold  <gingold@adacore.com>
10900             Olivier Hainque  <hainque@adacore.com>
10901
10902         * trans.c (Identifier_to_gnu): Change test for deferred constant by
10903         adding guard that the entity is an E_Constant before testing presence
10904         of Full_view (and remove unnecessary test that entity is not a type).
10905         For a CONST_DECL used by reference, manually retrieve
10906         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
10907         (struct language_function): Move from utils.c to here.
10908         (struct parm_attr): New structure.
10909         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
10910         (f_parm_attr_cache): New macro.
10911         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
10912         expressions for the 'First, 'Last and 'Length attributes of the
10913         unconstrained array IN parameters.
10914         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
10915         Allocate the information structure for the function earlier, as well
10916         as the language-specific part.
10917         If the parameter attributes cache has been populated, evaluate the
10918         cached expressions on entry.
10919         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
10920         N_Procedure_Call_Statement and N_Indexed_Component.
10921         (Pragma_to_gnu): Translate inspection_point to an asm statement
10922         containaing a comment and a reference to the object (either its address
10923         for BLKmode or its value).
10924         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
10925         to go to DECL_INITIAL. Together with the size constraint relaxation
10926         in create_var_decl, enlarges the set of situations in which an
10927         identifier may be used as an initializer without implying elaboration
10928         code.
10929         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
10930         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
10931         node.
10932         (maybe_stabilize_reference): Remove lvalues_only parameter.
10933         (gnat_stabilize_reference): Adjust for above change.
10934         (gnat_to_gnu): Do not set location information on the result
10935         if it is a reference.
10936         (add_cleanup): Add gnat_node parameter and set the location of the
10937         cleanup to it.
10938         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
10939         (Exception_Handler_to_gnu_zcx): Likewise.
10940         (gigi): Remove the cgraph node if the elaboration procedure is empty.
10941         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
10942         the former right after the latter.
10943         (start_stmt_group): Make global.
10944         (end_stmt_group): Likewise.
10945         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
10946         vars.
10947         (gnu_program_error_label_stack): Likewise.
10948         (gigi): Initialize them.
10949         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
10950         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
10951         New cases.
10952         (push_exception_label_stack): New function.
10953         (takes_address): New function.
10954
10955         * utils.c (struct language_function): Move to trans.c from here.
10956         (unchecked_convert): Do not wrap up integer constants in
10957         VIEW_CONVERT_EXPRs.
10958         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
10959         the latter for aggregate types, unexpected by later passes, and relax an
10960         arbitrary size constraint on the former.
10961         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
10962         to compare the sizes.
10963         (convert_vms_descriptor): When converting to a fat pointer type, be
10964         prepared for a S descriptor at runtime in spite of a SB specification.
10965         (shift_unc_components_for_thin_pointers): New function.
10966         (write_record_type_debug_info): For variable-sized fields, cap the
10967         alignment of the pointer to the computed alignment.
10968         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
10969         If REP_LEVEL is 2, do not compute the sizes.
10970         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
10971         (build_unc_object_type): Likewise.
10972         (declare_debug_type): New function.
10973
10974         * ada-tree.def: USE_STMT: removed (not emitted anymore).
10975
10976         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
10977         no statement is expandable anymore.
10978         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
10979         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
10980         when the user requested it explicitely.
10981         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
10982         to 0 for Ada.
10983         (get_alias_set): Return alias set 0 for a type if
10984         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
10985
10986         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
10987         (DECL_FUNCTION_STUB): New accessor macro.
10988         (SET_DECL_FUNCTION_STUB): New setter macro.
10989
10990         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
10991
10992         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
10993         declarations.
10994
10995 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
10996
10997         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
10998         Rename to Abort_Task_Interrupt to be able to keep the same interface
10999         as the rest of the targets.
11000
11001         * s-osinte-vxworks.ads s-osinte-vxworks.adb
11002         (To_VxWorks_Priority): Remove explicit "in" mode indicator
11003
11004         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
11005         New files.
11006
11007 2007-06-06  Robert Dewar  <dewar@adacore.com>
11008
11009         * a-chahan.ads: Remove obsolescent pragmas
11010
11011         * a-chlat1.ads: Minor reformatting
11012
11013 2007-06-06  Robert Dewar  <dewar@adacore.com>
11014
11015         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
11016         for Errout
11017
11018         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
11019         implementation
11020
11021         * errout.ads (Finalize): Changed interface
11022         (Output_Messages): New procedure
11023         (Compilation_Errors): New Interface
11024
11025         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
11026         Finalize/Output_Messages interface for Errout
11027         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
11028         Errout.
11029
11030 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11031             Olivier Hainque  <hainque@adacore.com>
11032             Robert Dewar  <dewar@adacore.com>
11033
11034         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
11035         check.
11036         (Raise_Current_Excep): Call Debug_Raise_Exception just before
11037         propagation starts, to let debuggers know about the event in a reliable
11038         fashion.
11039         (Local_Raise): Moved to System.Exceptions
11040         More convenient to have this as a separate unit
11041
11042         * s-except.adb, s-except.ads: New files.
11043
11044         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
11045         Debug_Unhandled_Exception in System.Exceptions where it belongs
11046         together with a couple of other debug helpers.
11047         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
11048         the former Unhandled_Exception.
11049
11050         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
11051         (Warn_No_Exception_Propagation): New procedure
11052         (Warn_If_No_Propagation): Rewritten for new warning generation
11053         (Expand_Exception_Handlers): New warning generation
11054         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
11055         (Add_Exception_Label): Use Special_Exception_Package_Used for test
11056         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
11057         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
11058         even if restriction is set (makes life easier in Check_Returns)
11059         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
11060         checking exception identities.
11061         (Expand_Local_Exception_Handlers): Do not optimize when all others case
11062         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
11063         block for handler (used by Check_Returns)
11064         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
11065         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
11066         remove all exception handlers when optimizing local raise statements.
11067         (Find_Local_Handler): Use Get_Renamed_Entity
11068         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
11069         marked analyzed after expanding exception handlers, do not generate
11070         redundant cleanup actions, because they have been constructed already.
11071
11072 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11073
11074         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
11075         presence of this categorization pragma is mandated by the language.
11076         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
11077         for this type.
11078
11079 2007-06-06  Vincent Celier  <celier@adacore.com>
11080             Robert Dewar  <dewar@adacore.com>
11081
11082         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
11083         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
11084         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
11085         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
11086         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
11087         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
11088         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
11089         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
11090         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
11091         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
11092         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
11093         ali.ads, ali.adb: 
11094         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
11095         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
11096         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
11097         Use variables of types File_Name_Type and Unit_Name_Type in error
11098         messages.
11099         (Get_Name): Add parameter Ignore_Special, and set it reading file name
11100         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
11101         here.
11102         Define flags Flag217-Flag230 with associated subprograms
11103         (Flag_Word5): New record type.
11104         (Flag_Word5_Ptr): New access type.
11105         (To_Flag_Word5): New unchecked conversion.
11106         (To_Flag_Word5_Ptr): Likewise.
11107         (Flag216): New function.
11108         (Set_Flag216): New procedure.
11109
11110 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11111
11112         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
11113         instead of 'Size.
11114
11115         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
11116
11117 2007-06-06  Javier Miranda  <miranda@adacore.com>
11118
11119         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
11120         the package.
11121         (Object_Specific_Data_Array): This is now internal to the package.
11122         (Object_Specific_Data): This is now internal to the package.
11123         (Select_Specific_Data_Element): This is now internal to the package.
11124         (Select_Specific_Data_Array): This is now internal to the package.
11125         (Select_Specific_Data): This is now internal to the package.
11126         (Offset_To_Top_Function_Ptr): This is now public.
11127         (To_Offset_To_Top_Function_Ptr): Removed.
11128         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
11129          local to subprogram Offset_To_Top.
11130         (Predefined_DT): Removed.
11131         (Typeinfo_Ptr): Removed.
11132         (OSD): This function is now internal to this package.
11133         (SSD): This function is now internal to this package.
11134         (DT): New function that displaces the pointer to the table of primitives
11135          to get access to the enclosing wrapper record.
11136         (IW_Membership): Code cleanup.
11137         (Offset_To_Top): Code cleanup.
11138         (Predefined_DT): Removed.
11139         (Register_Interface_Tag): Removed.
11140         (Set_Interface_Table): Removed.
11141         (Set_Offset_Index): Removed.
11142         (Set_Offset_To_Top): Code cleanup.
11143         (Set_OSD): Removed.
11144         (Set_Signature): Removed.
11145         (Set_SSD): Removed.
11146         (Set_Tagged_Kind): Removed.
11147         (Typeinfo_Ptr): Removed.
11148         (TSD): Removed.
11149         (Displace): Add missing check on null actual.
11150
11151         * exp_disp.ads, exp_disp.adb
11152         (Select_Expansion_Utilities): Removed.
11153         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
11154         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
11155         the interface requires a new parameter.
11156         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
11157         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
11158         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
11159         Done to remove package Select_Expansion_Utilities.
11160         (Make_DT): New implementation for statically allocated dispatch tables.
11161         (Make_Secondary_DT): Moved to the scope of Make_DT.
11162         (Register_Primitive): Code cleanup plus incoporate the use of the new
11163         function DT_Address_Attribute.
11164         (Expand_Interface_Thunk): The profile of this subprogram has been
11165         changed to return the Thunk_Id and the corresponding code.
11166         (Fill_DT_Entry): Removed. Its functionality is now provided by
11167         subprogram Register_Primitive.
11168         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
11169         subprogram Register_Primitive.
11170         (Register_Primitive): New subprogram that incorporates the previous
11171         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
11172         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
11173         was only required to call Make_DT_Access_Action, which is now removed.
11174         (Ada_Actions): Removed
11175         (Action_Is_Proc): Removed
11176         (Action_Nb_Arg): Removed
11177         Replace all the calls to Make_DT_Access_Action by direct calls to
11178         Make_Procedure_Call_Statement or Make_Function_Call.
11179         (Set_DTC_Entity_Value): New subprogram.
11180         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
11181         (Expand_Interface_Thunk): Add missing support for primitives that are
11182         functions with a controlling result (case in which there is no need
11183         to generate the thunk).
11184
11185         * exp_atag.ads, exp_atag.adb
11186         (Build_DT): New subprogram that displaces the pointer to reference the
11187         base of the wrapper record.
11188         (Build_Typeinfo_Offset): Removed.
11189         (RTE_Tag_Node): Removed.
11190         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
11191         (Build_Get_RC_Offset): Removed.
11192         (Build_Inherit_Predefined_Prims): Removed.
11193         (Build_Inherit_TSD: Removed.
11194         (Build_New_TSD): Removed.
11195         (Build_Set_External_Tag): Removed.
11196         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
11197         (Build_Set_Prim_Op_Address): Add documentation.
11198         (Build_Set_TSD): Removed.
11199
11200         * rtsfind.ads, rtsfind.adb
11201         (Load_Fail): If load fails and we are not in configurable run-time
11202         mode, then raise Unrecoverable_Error.
11203         (Text_IO_Kludge): Generate an error message if a run-time library is
11204         not available in a given run-time (ie. zfp run-time).
11205         (RTE_Record_Component): Add code to check that the component we search
11206         for is not found in two records in the given run-time package.
11207         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
11208         (RE_DT_Predef_Prims_Offset): New entity
11209         (RE_Static_Offset_To_Top): New entity
11210         (RE_HT_Link): New entity.
11211         (System_Address_Image): Addition of this run-time package.
11212         (RE_Address_Image): New entity.
11213         (RE_Abstract_Interface): Removed.
11214         (RE_Default_Prim_Op_Count): Removed.
11215         (RE_DT_Entry_Size): Removed.
11216         (RE_DT_Min_Prologue_Size): Removed.
11217         (RE_DT_Prologue_Size): Removed.
11218         (RE_Ifaces_Table_Ptr): Removed.
11219         (RE_Interface_Data_Ptr): Removed.
11220         (RE_Type_Specific_Data): Removed.
11221         (RE_Primary_DT): Removed.
11222         (RE_Register_Interface_Tag): Removed.
11223         (RE_Set_Offset_Index): Removed.
11224         (RE_Set_OSD): Removed.
11225         (RE_Set_SSD): Removed.
11226         (RE_Set_Signature): Removed.
11227         (RE_Set_Tagged_Kind): Removed.
11228         (RE_Address_Array): New entity.
11229         (RE_DT): New entity.
11230         (RE_Iface_Tag): New entity.
11231         (RE_Interfaces_Table): New entity.
11232         (RE_No_Dispatch_Table): New entity.
11233         (RE_NDT_Prims_Ptr): New entity.
11234         (RE_NDT_TSD): New entity.
11235         (RE_Num_Prims): New entity.
11236         (RE_Offset_To_Top_Function_Ptr): New entity.
11237         (RE_OSD_Table): New entity.
11238         (RE_OSD_Num_Prims): New entity.
11239         (RE_Predef_Prims): New entity
11240         (RE_Predef_Prims_Table_Ptr): New entity.
11241         (RE_Primary_DT): New entity.
11242         (RE_Signature): New entity.
11243         (RE_SSD): New entity.
11244         (RE_TSD): New entity.
11245         (RE_Type_Specific_Data): New entity.
11246         (RE_Tag_Kind): New entity.
11247
11248 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11249
11250         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
11251         C imported variable.
11252         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
11253         on entry.
11254
11255 2007-06-06  Robert Dewar  <dewar@adacore.com>
11256
11257         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
11258         character
11259
11260 2007-06-06  Vincent Celier  <celier@adacore.com>
11261
11262         * a-tifiio.adb (Put, internal): For negative numbers, check that there
11263         is room for at least one digit and the minus sign.
11264         (Put.Put_Character): Never put a character outside of the range of
11265         string To.
11266
11267 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11268             Eric Botcazou  <ebotcazou@adacore.com>
11269
11270         * utils2.c (build_allocator): Provide the extra arguments to
11271         make_aligning_type for super-aligned objects allocated from the default
11272         pool. Leave enough room for a pointer before the aligning field, and
11273         store the system's allocator return value there.
11274         (build_call_alloc_dealloc): When releasing a super-aligned object,
11275         retrieve the system's allocator return value from where build_allocator
11276         has stored it, just ahead of the adjusted address we are passed.
11277         (build_call_raise): Handle properly the generation of line numbers when
11278         the node is marked No_Location.
11279         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
11280         by using DECL_UID on ties.
11281         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
11282         main variant.
11283         (build_call_raise): Handle converting exception into goto; support new
11284         argument KIND.
11285         (build_component_ref): Add new arg to build_call_raise.
11286
11287 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11288
11289         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
11290         "." in the case of nnn.xxx when nnn terminates with an underscore.
11291         Parse the remaining "#" or ":" in the case of nnn#.xxx#
11292
11293 2007-06-06  Robert Dewar  <dewar@adacore.com>
11294
11295         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
11296
11297 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11298             Vincent Celier  <celier@adacore.com>
11299             Robert Dewar  <dewar@adacore.com>
11300
11301         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
11302         needed.
11303         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
11304         ((destructor)) for adafinal, even when switch -a is used.
11305         Do not issue pragma Linker_Destructor for adafinal when switch -a is
11306         used.
11307         (Gen_Object_Files_Options): Add formatting of Linker Options, when
11308         Output_Linker_Option_List is set. Suppress this formatting when
11309         Zero_Formatting is set.
11310         Add case for CLI_Target.
11311         (System_Restrictions_Used): New flag, used to avoid generating with of
11312         System_Restrictions and initialization of the data unless there is
11313         some use of System.Restrictions in the partition.
11314         (Check_System_Restrictions_Used): New procedure
11315
11316         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
11317         since we only with this unit in the binder file if it is used elsewhere
11318         in the partition.
11319
11320 2007-06-06  Vincent Celier  <celier@adacore.com>
11321
11322         * bindusg.adb: Add line for @<response file>
11323         Add lines for new switches -R and -Z
11324
11325         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
11326         hierarchy in the list of files of the closure when -R is used
11327         (Gnatbind): Accept arguments starting with '@' to indicate response
11328         files and take the arguments from the response files.
11329         If List_Closure is set, display the referenced files
11330
11331 2007-06-06  Javier Miranda  <miranda@adacore.com>
11332             Robert Dewar  <dewar@adacore.com>
11333             Ed Schonberg  <schonberg@adacore.com>
11334
11335         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
11336         which the address-clause is applied to in-mode actuals (allowed by
11337         13.1(22)).
11338         (Apply_Discriminant_Check): Do not generate a check if the type is
11339         constrained by a current instance.
11340         (Activate_Division_Check): New procedure
11341         (Activate_Overflow_Check): New procedure
11342         (Activate_Range_Check): New procedure
11343         Call these new Activate procedures instead of setting flags directly
11344         (Apply_Array_Size_Check): Removed, no longer needed.
11345         Code clean up: remove obsolete code related to GCC 2.
11346         (Get_E_Length): Protect against bomb in case scope is standard
11347         (Selected_Range_Checks): If the node to be checked is a conversion to
11348         an unconstrained array type, and the expression is a slice, use the
11349         bounds of the slice to construct the required constraint checks.
11350         Improve NOT NULL error messages
11351         (Apply_Constraint_Check): If the context is a null-excluding access
11352         type, diagnose properly the literal null.
11353
11354 2007-06-06  Pascal Obry  <obry@adacore.com>
11355
11356         * clean.adb (Clean_Archive): Use untouched casing for the archive name
11357         and the corresponding .deps file.
11358         (Clean_Interface_Copy_Directory): Use untouched casing for the library
11359         src directory. Minor code-clean-up. Use untouched casing for files
11360         read into the library src dir.
11361         (Clean_Library_Directory): Idem.
11362         (Parse_Cmd_Line): Accept new switch -aP
11363
11364 2007-06-06  Javier Miranda  <miranda@adacore.com>
11365             Ed Schonberg  <schonberg@adacore.com>
11366             Robert Dewar  <dewar@adacore.com>
11367             Eric Botcazou  <ebotcazou@adacore.com>
11368             Arnaud Charlet  <charlet@adacore.com>
11369
11370         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
11371         applicable to types that have the With_Type flag set. Returns the
11372         non-limited view of the type, if available, otherwise the type itself.
11373         For class-wide types, there is no direct link in the tree, so we have
11374         to retrieve the class-wide type of the non-limited view of the Etype.
11375         New attributes Static_Initialization and Static_Elaboration_Desired.
11376         Remove the pragma Thread_Body, and the associated flag
11377         Is_Thread_Body in entities, and all related code.
11378         (Suppress_Value_Tracking_On_Call): New flag
11379         E_Exception has Esize and Alignment fields
11380         (Universal_Aliasing): New function.
11381         (Set_Universal_Aliasing): New procedure.
11382         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
11383         (Check_Nested_Access): New procedure.
11384         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11385         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11386         (Related_Interface): New attribute. Present in dispatch table pointer
11387         components of records. Set to point to the entity of the corresponding
11388         interface type.
11389         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
11390         (Original_Access_Type): Remove, not needed.
11391         (Root_Type): Handle properly subtypes of class-wide-types.
11392         Update comments.
11393
11394         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
11395         class-wide types visible through limited-with clauses.
11396         (Try_Primitive_Operation): When examining all primitive operations of a
11397         tagged type, do not consider subprograms labeled as hidden unless they
11398         belong to a private generic type with a tagged parent.
11399         (Try_Object_Operation): Extensive rewriting, to handle properly various
11400         overloading cases, when several ancestors may have class-wide operations
11401         that are possible candidates, and when the overloaded functions return
11402         array types and have defaulted parameters so that the call may be
11403         interpreted as an indexing.
11404         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
11405         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
11406         successive actuals before analyzing the call itself.
11407         (Try_Primitive_Operation): A primitive operation is compatible with the
11408         prefix if the prefix has a synchronized type and the type of the formal
11409         is its corresponding record, as can be the case when the primitive
11410         operation is declared outside of the body of the type.
11411         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
11412         perform homonym traversal, looking for class-wide operation matches
11413         (formerly done in statements of Try_Class_Wide_Operation). Matches on
11414         access parameters are now restricted to anonymous access types.
11415         (Mark_Allocator): An allocator with a discriminant association parent is
11416         a coextension.
11417         (Try_One_Prefix_Interpretation): If the type of the object is
11418         incomplete, as can be happen when it is a limited view obtained through
11419         a limited_with_clause, the selected component is not part of a prefixed
11420         call.
11421         (Complete_Object_Operation): Diagnose properly an object that is not
11422         aliased when the corresponding controlling formal is an access
11423         parameter.
11424         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
11425         ambiguous calls in prefixed notation, where two primitives differ only
11426         in that the controlling argument of one is an access parameter.
11427
11428         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
11429         whether a function that returns an unconstrained type can be inlined.
11430         (Process_Formals): Diagnose properly the illegal use of an incomplete
11431         type in the profile of an access_to_subprogram declaration.
11432         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
11433         operations are attached to the corresponding record.
11434         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
11435         When processing a primitive of a concurrent type which implements an
11436         interface change the type of all controlling formals to that of the
11437         corresponding record type.
11438         (Check_Synchronized_Overriding): Relax the conditional logic when trying
11439         to determine the tagged type to which a primitive belongs.
11440         (Check_Conventions): Capture condition to ignore a primitive operation
11441         (which is shared between the loop in Check_Conventions and the one in
11442         Check_Convention) in a new local function Skip_Check.
11443         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
11444         confusion with Check_Conventions' own Prim_Op local variable.
11445         (Create_Extra_Formals): Test for a tagged result type rather than a
11446         controlling result when determining whether to add a BIP_Alloc_Form
11447         formal and a BIP_Final_List formal to the function.
11448         (Check_Conformance); For parameters that are anonymous access types,
11449         subtype conformance requires that the not null and the constant
11450         indicators must match
11451         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
11452         to retrieve the appropriate type when processing a concurrent type
11453         declared within a generic. Minor comment reformatting. Change invocation
11454         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
11455         mitive.
11456         (Analyze_Subprogram_Body): If the return type of a function is an
11457         anonymous access to the limited view of a class-wide type, and the
11458         non-limited view of the type is available, update the type of the
11459         function so that code can be generated.
11460         (Process_Formals): In case of access-subtype itype whose designated
11461         type is also an itype (situation that happens now with access to
11462         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
11463         attribute to avoid backend problems.
11464         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
11465         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
11466         anonymous types' designated types are same before testing
11467         Subtypes_Statically_Match.
11468         (Create_Extra_Formals): Test for a named access parameter that is a
11469         controlling formal as an additional condition for adding an
11470         accessibility level formal. This can occur in the subp type created for
11471         dispatching calls in Expand_Dispatching_Call, and allows calling
11472         Create_Extra_Formals from that procedure rather than special-casing the
11473         extra formals there.
11474         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
11475         when the function has a controlling result.
11476         (Check_Returns): Add much more knowledge of the optimization of local
11477         raise statements to gotos, to retain proper warnings in this case.
11478         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
11479         nodes when looking for last statement.
11480
11481         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
11482         class-wide types visible through limited with clauses.
11483         (Add_One_Interp): If the operands are anonymous access types, the
11484         predefined operator on universal_access is immediately visibles
11485         (Find_Unique_Type): Handle anonymous access to subprogram types just as
11486         other anonymous access types.
11487         (Disambiguate): Take into account CIL convention.
11488         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
11489
11490 2007-06-06  Robert Dewar  <dewar@adacore.com>
11491
11492         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
11493         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
11494         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
11495         Fix lower bound of tables.
11496         Add rep clauses.
11497
11498         * nlists.adb: Ditto.
11499         (Prev_Node, Next_Node): Change index type to Int so that it properly
11500         covers the range First_Node_Id - 1 up.
11501
11502 2007-06-06  Javier Miranda  <miranda@adacore.com>
11503             Ed Schonberg  <schonberg@adacore.com>
11504             Bob Duff  <duff@adacore.com>
11505             Hristian Kirtchev  <kirtchev@adacore.com>
11506
11507         * exp_aggr.ads, exp_aggr.adb: 
11508         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
11509         in extension aggregates.
11510         (Flatten): Other conditions being met, an aggregate is static if the
11511         low bound given by component associations is different from the low
11512         bound of the base index type.
11513         (Packed_Array_Aggregate_Handled): If the component type is itself a
11514         packed array or record, the front-end must expand into assignments.
11515         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
11516         Init_Pr, instead of Ancestor_Is_Expression.
11517         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
11518         coextension chain root, either generate a list controller or use the
11519         already existing one.
11520         (Static_Array_Aggregate): New procedure to construct a positional
11521         aggregate that can be handled by the backend, when all bounds and
11522         components are compile-time known constants.
11523         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
11524         types covering interface types into assignments.
11525         (Replace_Type): move to Build_Record_Aggr_Code.
11526         (Expand_Record_Aggr_Code): if the target of the aggregate is an
11527         interface type, convert to the definite type of the aggregate itself,
11528         so that needed components are visible.
11529         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
11530         components and the context is an extended return statement do not
11531         create a transient block for it, to prevent premature finalization
11532         before the return is executed.
11533         (Gen_Assign): Do not generate a call to deep adjust routine if the
11534         component type is itself an array of controlled (sub)-components
11535         initialized with an inner aggregate.
11536         (Component_Check): New name for Static_Check. This name is now more
11537         appropriate, and documentation is added which was missing.
11538         (Component_Check): Add test for bit aligned component value
11539         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
11540         Tagged_Comps, name is more appropriate given added function below.
11541         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
11542
11543 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11544             Javier Miranda  <miranda@adacore.com>
11545             Robert Dewar  <dewar@adacore.com>
11546
11547         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
11548         Terminated: Add unchecked type conversion from System.Address to
11549         System.Tasking.Task_Id when calling the predefined primitive
11550         _disp_get_task_id.
11551         Disable new Ada 05 accessibility check for JVM.NET targets, which
11552         cannot be implemented in a practical way.
11553         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
11554         the sources always references the tag of the actual object. Therefore,
11555         if 'Tag is applied in the sources to class-wide interface objects we
11556         generate code that displaces "this" to reference the base of the object.
11557         (Expand_N_Attribute_Reference, case Size): Return specified size if
11558         known to front end.
11559         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
11560         has code that displaces the pointer of the object to manage interface
11561         types. However this code must not be executed when the prefix is a
11562         subprogram. This bug caused the wrong expansion of the internally
11563         generated assignment that fills the dispatch table when the primitive
11564         is a function returning a class-wide interface type.
11565         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
11566         Set_Attribute_Name for Name_Unaligned_Valid.
11567
11568 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11569             Gary Dismukes  <dismukes@adacore.com>
11570
11571         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
11572         If the initialization is the equivalent aggregate of the initialization
11573         procedure of the type, do not remove it.
11574         (Expand_N_Attribute_Definition_Clause): Exclude access variables
11575         initialized to null from having their expression reset to empty and
11576         note this exception in the comment.
11577
11578 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11579             Robert Dewar  <dewar@adacore.com>
11580             Ed Schonberg  <schonberg@adacore.com>
11581             Gary Dismukes  <dismukes@adacore.com>
11582
11583         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
11584         Add "with" and "use" clauses for Sem_Attr.
11585         (Expand_Current_Value): Do not replace occurences of attribute
11586         references where the prefix must be a simple name.
11587
11588         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
11589         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
11590         Attribute_Requires_Simple_Name_Prefix.
11591         (Name_Modifies_Prefix): Body of new function.
11592         (Requires_Simple_Name_Prefix): Body of new function.
11593         (Resolve_Attribute, case Access): Improve error message for case of
11594         mismatched conventions.
11595         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
11596         incomplete type.
11597         (Analyze_Attribute, case 'Access): If the type of the prefix is a
11598         constrained subtype for a nominal unconstrained type, use its base type
11599         to check for conformance with the context.
11600         (Resolve_Attribute): Remove test of the access type being associated
11601         with a return statement from condition for performing accessibility
11602         checks on access attributes, since this case is now captured by
11603         Is_Local_Anonymous_Access.
11604         (Analyze_Access_Attribute): Set Address_Taken on entity
11605         (Analyze_Attribute, case Address): Set Address_Taken on entity
11606         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
11607         validating an access attribute whose prefix is a current instance.
11608         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
11609         applied to dispatching operations, if freezing is required then we set
11610         the attribute Has_Delayed_Freeze in the prefix's entity.
11611         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
11612         current scope if access of local subprogram taken
11613         (Analyze_Access_Attribute): Check legality of self-reference even if the
11614         expression comes from source, as when a single component association in
11615         an aggregate has a box association.
11616         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
11617         the prefix if it is a protected operation and the attribute is
11618         Unrestricted_Access.
11619         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
11620         reference to the base type of the context, to force a constraint check
11621         when the context is an access subtype with an explicit constraint.
11622         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
11623         node is rewritten as an interface conversion. leave unanalyzed after
11624         resolution, to ensure that type checking against the context will take
11625         place.
11626
11627 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11628             Javier Miranda  <miranda@adacore.com>
11629             Robert Dewar  <dewar@adacore.com>
11630
11631         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
11632         wrapper when the full view of the controlling type of an inherited
11633         function that dispatches on result implements interfaces.
11634         (Expand_N_Object_Declaration): In cases where the type of the
11635         declaration is anonymous access, create finalization list for it.
11636         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
11637         if the object has no explicit initialization, to match description of
11638         functionality of pragam Persistent_BSS.
11639         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
11640         new function to build static aggregates, to replace initialization call
11641         when static initialization is desired.
11642         (Freeze_Type): Generate a list controller for an access type whenever
11643         its designated type has controlled anonymous access discriminants.
11644         (Build_Equivalent_Aggregate): New procedure to compute a static
11645         aggregate to be used as default initialization for composite types,
11646         instead of a generating a call to the initialization procedure for the
11647         type.
11648         (Build_Initialization_Call): When available, replace a call to the
11649         initialization procedure with a copy of the equivalent static aggregate
11650         for the type.
11651         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
11652         declarations for objects of a class-wide interface type, rather than
11653         just identifiers, to prevent visibility problems.
11654         (Expand_N_Object_Declaration): When expanding the declaration for an
11655         object of a class-wide interface type, preserve the homonym chain of
11656         the original entity before exchanging it with that of the generated
11657         renaming declaration.
11658         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
11659         active, because there is no way to handle the exception.
11660         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
11661         to do a minimum decoration of the Access_Disp_Table list.
11662         (Expand_Record_Controller): Avoid the addition of the controller between
11663         the component containing the tag of a secondary dispatch table and its
11664         adjacent component that stores the offset to the base of the object.
11665         This latter component is only generated when the parent type has
11666         discriminants ---documented in Add_Interface_Tag_Components).
11667         (Apply_Array_Size_Check): Removed, no longer needed.
11668         (Expand_N_Full_Type_Declaration): If the type has anonymous access
11669         components, create a Master_Entity for it only if it contains tasks.
11670         (Build_Init_Procedure): Suppress the tag assignment compiling under
11671         no run-time mode.
11672         (Freeze_Record_Type): Remove code associated with creation of dispatch
11673         table.
11674         (Init_Secondary_Tags): Update type of actuals when generating calls to
11675         Ada.Tags.Set_Offset_To_Top
11676         (Stream_Operation_OK): Disable use of streams compiling under no
11677         run-time mode
11678         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
11679         if Has_Init_Expression set.
11680         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
11681         Register_Primitive, which provides the same functionality.
11682         (Requires_Init_Proc): Return false in case of interface types.
11683         (Add_Secondary_Tables): Use the new attribute Related_Interface to
11684         cleanup the code.
11685         (Predefined_Primitive_Freeze): Do not assume that an internal entity
11686         is always associated with a predefined primitive because the internal
11687         entities associated with interface types are not predefined primitives.
11688         Therefore, the call to Is_Internal is replaced by a call to the
11689         function Is_Predefined_Dispatching_Operation.
11690         (Make_Eq_If): When generating the list of comparisons for the
11691         components of a given variant, omit the controller component that is
11692         present if the variant has controlled components.
11693
11694 2007-06-06  Javier Miranda  <miranda@adacore.com>
11695             Hristian Kirtchev  <kirtchev@adacore.com>
11696             Bob Duff  <duff@adacore.com>
11697
11698         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
11699         handle the creation of finalization lists and calls for nested
11700         coextensions when the root of the chains is part of a return statement.
11701         (Inside_A_Return_Statement): New function inside Complete_Coextension_
11702         Finalization.
11703         (Expand_Record_Equality): Skip components that are interface types.
11704         (Displace_Allocator_Pointer): Add missing support for interface subtypes
11705         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
11706         with Rewrite_Coextension. Change the condition for detecting coextension
11707         root nodes.
11708         (Is_Local_Access_Discriminant): Removed.
11709         (Rewrite_Coextension): New routine which rewrites a static coextension
11710         as a temporary and uses its unrestricted access in the construction of
11711         the outer object.
11712         (Complete_Coextension_Finalization): New routine. Generate finalization
11713         attachment calls to all delayed coextensions.
11714         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
11715         the allocator is not a coextension itself and has delayed coextensions.
11716         If the current allocator is controlled, but also a coextension, delay
11717         the generation of the finalization attachment call.
11718         Rename local variable "Node" to "Nod" in order to avoid confusion with
11719         "Elists.Node".
11720         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
11721         limited types that are not inherently limited. Such an allocator is
11722         illegal, but is generated by the expander for a return statement, to
11723         copy the result onto the secondary stack. This is the only case where a
11724         limited object can be copied. Generate code to displace the pointer
11725         to the object if the qualified expression is a class-wide interface
11726         object. Such displacement was missing and hence the copy of the object
11727         was wrong.
11728         (Apply_Accessibility_Check): Handle allocated objects initialized in
11729         place.
11730         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
11731         and Expand_Allocator_Expression. Allocating class-wide interface objects
11732         this routine displaces the pointer to the allocated object to reference
11733         the component referencing the corresponding secondary dispatch table.
11734         Expand_Allocator_Expression): Add missing support to allocate class-wide
11735         interface objects initialized with a qualified expression.
11736         (Get_Allocator_Final_List): Test for an anonymous access type that is a
11737         function result type, and use the finalization list associated with the
11738         function scope in that case (such an anonymous type should not be
11739         treated like an access parameter's type).
11740
11741 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11742             Gary Dismukes  <dismukes@adacore.com>
11743             Javier Miranda  <miranda@adacore.com>
11744
11745         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
11746         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
11747         required exception handler.
11748         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
11749         properly the case of a function whose return type is a limited
11750         class-wide interface type. Modify the code of the accessibility
11751         check to handle class-wide interface objects. In this case we need to
11752         displace "this" to reference the primary dispatch table to get access
11753         to the TSD of the object (to evaluate its accessibility level).
11754         (Expand_N_Extended_Return_Statement): Test for a tagged result type
11755         rather than a controlling result as one of the conditions for
11756         generating tests of the implicit BIP_Alloc_Form formal. The
11757         initialization assignment is also handled according to whether the
11758         result is tagged instead of controlling.
11759         In the case where the init assignment is inserted in the "then" part of
11760         the allocation conditional, rewrite the target to be a dereference of
11761         the implicit BIP_Object_Access formal.
11762         If the returned value is unconstrained and created on the secondary
11763         stack, mark the enclosing block and function so that the secondary
11764         stack is not reclaimed on return.
11765         Treat returns from functions with controlling results similarly to
11766         returns from functions with unconstrained result subtypes.
11767         If the object returned is unconstrained, and an allocator must be
11768         created for it, analyze the allocator once the block for the extended
11769         return is installed, to ensure that finalizable components
11770         of the expression use the proper finalization list. Guard the call to
11771         Move_Final_List with a check that there is something to finalize.
11772         (Make_Tag_Ctrl_Assignment): Use "old" handling
11773         of controlled type assignment for virtual machines, since new code uses
11774         unsupported features (such as direct access to bytes in memory).
11775
11776 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
11777             Ed Schonberg  <schonberg@adacore.com>
11778
11779         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
11780         accessibility actual, check for the case of an aliased object that has
11781         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
11782         we fall into processing for the attribute rather than the name of the
11783         object.
11784         (Expand_Inline_Call): If an actual is a literal, and the corresponding
11785         formal has its address taken in the body, create a temporary to capture
11786         value.  If the return type is a limited interface, do not treat the
11787         return value as Controlled.
11788         (Is_In_Place_Function):  If the return type is a limited interface,
11789         treat as returning in place. The actual returned object may not always
11790         be limited, but the caller has to assume that it is returned in place.
11791         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
11792         context of an allocator, use the correct finalization chain (that is,
11793         the chain belonging to the access type, rather than the chain belonging
11794         to the current scope).
11795         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
11796         result type rather than a controlling result as a precondition for
11797         adding an allocation form actual to a build-in-place call.
11798         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
11799         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
11800         primitive in the dispatch tables. This work is now done by Make_DT when
11801         the type is frozen.
11802         (Register_Predefined_DT_Entry): Removed.
11803         (Add_Return): If end label is not present, use sloc of last statement
11804         for generated return statement in procedure, for better gdb behavior
11805         on expanded code.
11806         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
11807         object address nodes to ensure proper processing by routines like
11808         Insert_After*.
11809         (Expand_Call): Fix generation of validity check for parameter
11810         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
11811         the allocation form parameter if the result subtype is constrained,
11812         except when the function has a controlling result.
11813         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
11814         rather than Is_Controlled and Has_Controlled_Component, since we want to
11815         include class-wide result types in this treatment. Also test for a
11816         controlling result, since that also requires passing a finalization
11817         list.
11818         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
11819         even when the result subtype is constrained, to handle calls involving
11820         controlling results.
11821         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
11822         is now called even when the result subtype is constrained, to handle
11823         calls involving controlling results.
11824         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
11825         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
11826         now performs the test).
11827         (Make_Build_In_Place_Call_In_Object_Declaration):
11828         Add_Alloc_Form_Actual_* is now called even when the result subtype is
11829         constrained, to handle calls involving controlling results.
11830         (Add_Return): Accomodate rewritten pattern from local raise to goto
11831         transformation, so that we still recognize an transfer statement
11832         and do the right thing here in that case.
11833         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
11834         and end of subprogram code.
11835         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
11836         support for primitives that are functions (without formals) with a
11837         controlling result.
11838         (Inherited_From_Formal): If the actual subtype has not generic parent
11839         type, it is not an actual for a formal derived type, and there is no
11840         operation to inherit from the formal.
11841
11842 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11843             Thomas Quinot  <quinot@adacore.com>
11844
11845         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
11846         inserted cleanup code appropriately for GDB use.
11847         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
11848         exception handler for Deep_Adjust or Deep_Finalize.
11849         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
11850         Raise_From_Controlled_Operation is available, use a call to that
11851         subprogram instead of a plain "raise Program_Error" node to raise
11852         Program_Error if an exception is propagated from an Adjust or Finalize
11853         operation.
11854         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
11855         appears in the optional statement list of a triggering alternative, the
11856         scope actions can be inserted directly there, and not in the list that
11857         includes the asynchronous select itself.
11858
11859 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11860             Robert Dewar  <dewar@adacore.com>
11861             Hristian Kirtchev  <kirtchev@adacore.com>
11862
11863         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
11864         generated exception handler appropriately when debugging generated code.
11865         Deal properly with No_Exception_Propagation restriction mode.
11866         (Expand_N_Abort_Statement): Add an unchecked type conversion from
11867         System.Address to System.Tasking.Task_Id when processing the result of
11868         the predefined primitive _disp_get_task_id.
11869         (Expand_N_Asynchronous_Select): Clarify comment.
11870         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
11871         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
11872         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
11873         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
11874         privals and for generated call to Complete_Entry_Body, for better gdb
11875         behavior.
11876         (Copy_Result_Type): Utility to construct a parameter and result profile
11877         for protected functions whose return type is an anonymous access to
11878         subprogram.
11879         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
11880         call the above.
11881         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
11882         point when the local-raise-to-goto transformation has taken place.
11883
11884 2007-06-06  Javier Miranda  <miranda@adacore.com>
11885             Nicolas Setton  <setton@adacore.com>
11886
11887         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
11888         functionality when the backend is generating code.
11889         Otherwise any serious error
11890         reported by the backend calling the frontend routine Error_Msg
11891         changes the Compilation_Mode to Check_Semantics, disables the
11892         functionality of this routine and causes the generation of
11893         spureous additional errors.
11894
11895         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
11896         debugging information now generated by the compiler for fat-pointer
11897         types.
11898         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
11899         DWARF2/3.
11900         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
11901
11902 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11903
11904         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
11905         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11906         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11907         For a remote call to a function with a classwide return type, apply an
11908         E.4(18) check to the returned value.
11909         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
11910         stream attributes of the designated type of an RACW, as they are not
11911         dispatching primitive operations.
11912
11913 2007-06-06  Geert Bosch  <bosch@adacore.com>
11914
11915         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
11916         negative literal
11917         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
11918         positive
11919         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
11920         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
11921         positive
11922         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
11923
11924 2007-06-06  Javier Miranda  <miranda@adacore.com>
11925
11926         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
11927         attribute compiling package Ada.Tags under No_Run_Time_Mode.
11928
11929 2007-06-06  Javier Miranda  <miranda@adacore.com>
11930
11931         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
11932         deallocation of class-wide interface objects.
11933         (Expand_Dispatching_Constructor_Call): Take into account that if the
11934         result of the dispatching constructor is an interface type, the
11935         function returns a class-wide interface type; otherwise the returned
11936         object would be actual. The frontend previously accepted returning
11937         interface types because Expand_Interface_Actuals silently performed
11938         the management of the returned type "as if" it were a class-wide
11939         interface type.
11940         (Expand_Dispatching_Constructor_Call): Replace call to
11941         Make_DT_Access_Action by direct call to Make_Function_Call.
11942
11943 2007-06-06  Robert Dewar  <dewar@adacore.com>
11944             Ed Schonberg  <schonberg@adacore.com>
11945
11946         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
11947         compute masking constant, since we now set Esize properly to the
11948         underlying size.
11949         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
11950         to match the alignment.
11951         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
11952         packed arrays of 8 bits or less.
11953
11954         * freeze.adb (Freeze_Entity): When freezing the formals of a
11955         subprogram, freeze the designated type of a parameter of an access type
11956         only if it is an access parameter.
11957         Increase size of C convention enumeration object
11958         (Freeze_Entity, array type case): Make sure Esize value is properly
11959         adjusted for the alignment if it is known.
11960         (Freeze_Entity, array type case): When checking bit packed arrays for
11961         the size being incorrect, check RM_Size, not Esize.
11962         (Freeze_Record_Type): Check for bad discriminated record convention
11963         (In_Exp_Body): Return true if the body is generated for a subprogram
11964         renaming, either an attribute renaming or a renaming as body.
11965         (Check_Itype): If the designated type of an anonymous access component
11966         is a non-protected subprogram type, indicate that it is frozen, to
11967         prevent out-of-scope freeze node at some subsequent call.
11968         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
11969         only if the subprogram is neither imported nor exported, as well as the
11970         NCA descriptor class if the subprogram is exported.
11971
11972 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11973             Arnaud Charlet  <charlet@adacore.com>
11974             Robert Dewar  <dewar@adacore.com>
11975             Gary Dismukes  <dismukes@adacore.com>
11976
11977         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
11978         default initialization on an imported object, when there is no
11979         initialization call generated for it.
11980         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
11981         restriction
11982
11983         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
11984         Static_Elaboration_Desired.
11985         Remove pragma Thread_Body.
11986         Implement a new pragma No_Body
11987         Removes the Explicit_Overriding pragma
11988         Remove Optional_Overriding pragma
11989         (Prag): Deal with Universal_Aliasing.
11990         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11991         Pragma_CIL_Constructor): New names.
11992
11993         * sem_cat.adb (Validate_Object_Declaration): An initialization that
11994         uses the equivalent aggregate of a type must be treated as an implicit
11995         initialization.
11996         (Get_Categorization): Check a unit for pragma Preelaborate only if it
11997         has none of the other categories.
11998         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
11999         to apply Import to an object renaming declaration.
12000
12001         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
12002         from a C++ class should be declared as limited and that it will be
12003         considererd limited.
12004         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
12005         should be declared as limited and that it will be considererd limited.
12006         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
12007         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
12008         (Analyze_Pragma): Deal with Universal_Aliasing.
12009         (Sig_Flags): Likewise.
12010         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
12011         (Overflow_Checks_Unsuppressed): New flag.
12012         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12013         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
12014         case of JVM or .NET targets, and compiling user code.
12015         Add debugging convenience routine rv
12016
12017 2007-06-06  Robert Dewar  <dewar@adacore.com>
12018
12019         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
12020         are interface type.
12021         (Build_Elementary_Input_Call): For floating-point use right type in the
12022         absence of strange size or stream size clauses.
12023         (Build_Elementary_Write_Call): Same fix
12024         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
12025         set to value that does not match base type size.
12026
12027 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12028
12029         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
12030         object of a limited type can be initialized with a call to a function
12031         that returns in place. If the limited type has unknown discriminants,
12032         and the underlying type is a constrained composite type, build an actual
12033         subtype from the function call, as is done for private types.
12034         (Side_Effect_Free): An expression that is the renaming of an object or
12035         whose prefix is the renaming of a object, is not side-effect free
12036         because it may be assigned through the renaming and its value must be
12037         captured in a temporary.
12038         (Has_Controlled_Coextensions): New routine.
12039         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
12040         as is done for other limited types.
12041         (Non_Limited_Designated_Type): new predicate.
12042         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
12043         objects.
12044         Remove all handling of with_type clauses.
12045
12046         * par-ch10.adb: Remove all handling of with_type clauses.
12047
12048         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
12049         checksum if the main source could not be parsed.
12050         (Loat_Unit): When processing a child unit, determine properly whether
12051         the parent unit is a renaming when the parent is itself a child unit.
12052         Remove handling of with_type clauses.
12053
12054         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
12055         (Set_Is_Static_Coextension): New procedure.
12056         (Has_Local_Raise): New function
12057         (Set_Has_Local_Raise): New procedure
12058         (Renaming_Exception): New field
12059         (Has_Init_Expression): New flag
12060         (Delay_Finalize_Attach): Remove because flag is obsolete.
12061         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
12062         Remove all handling of with_type clauses.
12063         (Exception_Junk): Can now be set in N_Block_Statement
12064
12065 2007-06-06  Vincent Celier  <celier@adacore.com>
12066             Robert Dewar  <dewar@adacore.com>
12067
12068         * frontend.adb (Frontend): Return immediately if the main source could
12069         not be parsed, because of preprocessing errors.
12070
12071         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
12072         (Gnat1drv): Exit with errors if the main source could not be parsed,
12073         because of preprocessing errors.
12074         (Check_Rep_Info): New procedure
12075
12076 2007-06-06  Robert Dewar  <dewar@adacore.com>
12077
12078         * g-hesorg.ads, g-heasor.ads,
12079         g-busorg.ads, g-bubsor.ads: Update documentation
12080         GNAT.Heap/Bubble_Sort_G is now pure
12081
12082 2007-06-06  Robert Dewar  <dewar@adacore.com>
12083
12084         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
12085
12086 2007-06-06  Robert Dewar  <dewar@adacore.com>
12087             Ed Schonberg  <schonberg@adacore.com>
12088
12089         * g-comlin.ads, g-comlin.adb: 
12090         Add new warning for renaming of function return objects
12091
12092         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
12093         (Tree_Read): Use size of object instead of type'object_size, since the
12094         latter is incorrect for packed array types.
12095         (Tree_Write): Same fix
12096
12097         * opt.ads: Add new warning for renaming of function return objects
12098         (Generating_Code): New boolean variable used to indicate that the
12099         frontend as finished its work and has called the backend to process
12100         the tree and generate the object file.
12101         (GCC_Version): Is now private
12102         (Static_Dispatch_Tables): New constant declaration.
12103         (Overflow_Checks_Unsuppressed): New flag.
12104         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12105         (List_Closure): New flag for gnatbind (-R)
12106         Zero_Formatting: New flag for gnatbind (-Z)
12107         (Special_Exception_Package_Used): New flag.
12108         (Warn_On_Unrepped_Components): New flag.
12109
12110         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
12111         unit is a compilation unit, rather than relying on its scope, so that
12112         Standard can be renamed.
12113         (Analyze_Object_Renaming): Add new warning for renaming of function
12114         return objects.
12115         Also reject attempt to rename function return object in Ada 83 mode.
12116         (Attribute_Renaming): In case of tagged types, add the body of the
12117         generated function to the freezing actions of the type.
12118         (Find_Type): A protected type is visible right after the reserved word
12119         "is" is encountered in its type declaration. Set the entity and type
12120         rather than emitting an error message.
12121         (New_Scope): Properly propagate Discard_Names to inner scopes
12122         (Check_Nested_Access): New procedure.
12123         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
12124         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12125
12126         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
12127         Add new warning for renaming of function return objects
12128         (Check_References): Suppress warnings for objects whose type or
12129         base type has Warnings suppressed.
12130         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
12131         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
12132
12133 2007-06-06  Vincent Celier  <celier@adacore.com>
12134             Emmanuel Briot  <briot@adacore.com>
12135             Olivier Hainque  <hainque@adacore.com>
12136
12137         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
12138         absolute value of Header.Block_Size when displaying the freed physical
12139         memory in traces.
12140         (Allocate): Compute Storage_Address using Integer_Address, not
12141         Storage_Offset, because the range of Storage_Offset may not be large
12142         enough.
12143         (Configure): New parameter Low_Level_Traces
12144         (Allocate, Deallocation, Free_Physically): Added low-level traces
12145         (Configure): new parameter Errors_To_Stdout.
12146         (Output_File): new subprogram
12147         (Deallocate, Dereference): Send error messages to the proper stream
12148         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
12149         documented. Previous code would send it to the current output file
12150         defined in GNAT.IO, which might not be stdout
12151         (Is_Valid): Adjust comment to mention that a positive reply means that
12152         Header_Of may be used to retrieve the allocation header associated with
12153         the subprogram Storage address argument. Return False early if this
12154         address argument is misaligned.
12155
12156 2007-06-06  Vincent Celier  <celier@adacore.com>
12157
12158         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
12159         switch -P
12160         (ASIS_Main): New global variable
12161         (Get_Closure): New procedure
12162         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
12163         check, metric or pretty. Call Get_Closure in this case.
12164         (Check_Files): For GNAT LIST, check all sources of all projects when
12165         All_Projects is True.
12166         (GNATCmd): Accept -U for GNAT LIST
12167
12168 2007-06-06  Vincent Celier  <celier@adacore.com>
12169
12170         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
12171         has been specified
12172         Correct error message when invocation of the linker fails
12173         Add explicit size clause for the C imported variables
12174         Object_List_File_Supported and Using_GNU_Linker to emphasize that
12175         we expect char size.
12176         Read target parameters earlier, since this is needed to set
12177         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
12178         targets.
12179
12180 2007-06-06  Vincent Celier  <celier@adacore.com>
12181
12182         * gnatls.adb: 
12183         Add 3 spaces before the default project directory when displaying
12184         the project search path.
12185         Add new command line switch '-l' to display license information.
12186
12187 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
12188
12189         * gmem.c: Add support for timestamps on memory operations.
12190
12191         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
12192         operations (not used currently, just foundation for future
12193         enhancements). Add possibility to perform full dump of gmem.out file.
12194         (Print_Back_Traces): Declare accesses to root arrays constants since
12195         they aren't modified.
12196         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
12197
12198 2007-06-06  Vincent Celier  <celier@adacore.com>
12199
12200         * gnatsym.adb: Update Copyright notice
12201         (Parse_Cmd_Line): Accept new switch -D
12202         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
12203          file.
12204
12205         * prj.ads (Policy): New policy Direct
12206         (Yes_No_Unknown): New enumeration type
12207         (Project_Data): New component Libgnarl_Needed
12208
12209         * prj-nmsc.adb (Check_For_Source): When recording a source file make
12210         use the untouched pathname casing.
12211         (Get_Directories): Ensure that the Display_Exec_Directory is using the
12212         proper casing on non case-sensitive platforms like Windows.
12213         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
12214         on all platforms, as it is not possible to know which one is allowed
12215         before processing the project files.
12216         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
12217         specified when symbol policy is Direct. Check that when there is a
12218         symbol file defined (either by default or with attribute
12219         Library_Symbol_File) it is not the same as the reference symbol file.
12220         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
12221         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
12222         extending projects.
12223         (Record_Ada_Source): Record a source that has been locally removed in an
12224         imported project.
12225
12226         * symbols.ads (Policy): New policy Direct
12227
12228         * symbols-vms.adb (Initialize): Take new policy Direct in case
12229         statement
12230
12231 2007-06-06  Vincent Celier  <celier@adacore.com>
12232
12233         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
12234         Correct obvious bug (return Dir; instead of return Directory;).
12235         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
12236
12237 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12238
12239         * g-pehage.adb (Produce): Open output files in Binary mode, so that
12240         they have UNIX line endings (LF only) even on Windows, and thus pass
12241         all GNAT style checks.
12242
12243 2007-06-06  Emmanuel Briot  <briot@adacore.com>
12244
12245         * g-regpat.adb (Quote): Fix improper quoting of '.'
12246
12247 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12248
12249         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
12250         default, set False on a per-runtime basis.
12251         (Need_Netdb_Buffer): New constant.
12252
12253         * g-socket.ads, g-socket.adb: Import new package
12254         GNAT.Sockets.Thin.Task_Safe_NetDB.
12255         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
12256         binding to obtain proper message.
12257         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
12258         Replace various occurrences of Arry (Arry'First)'Address with the
12259         equivalent Arry'Address (GNAT always follows implementation advice from
12260         13.3(14)).
12261         (Get_Host_By_Address, Get_Host_By_Name,
12262         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
12263         instead, rely on platform-specific task safe netdb operations provided
12264         by g-socthi.
12265
12266         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
12267         parameter Process_Blocking_IO.
12268         (Host_Error_Messages): Add stub body.
12269         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12270         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
12271         Safe_Getservbyport): Move functions into new child package
12272         Task_Safe_NetDB.
12273         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
12274         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
12275         (In_Addr): Add alignment clause.
12276
12277 2007-06-06  Robert Dewar  <dewar@adacore.com>
12278
12279         * g-trasym.ads, g-traceb.ads: Update list of supported targets
12280         Add note about symbolic traceback
12281
12282 2007-06-06  Pascal Obry  <obry@adacore.com>
12283
12284         * hostparm.ads (Normalized_CWD): Use the host directory separator
12285         instead of the hardcoded forward slash which is not the proper
12286         character on Windows for example.
12287         (Java_VM): Removed.
12288
12289 2007-06-06  Vincent Celier  <celier@adacore.com>
12290             Arnaud Charlet  <charlet@adacore.com>
12291
12292         * a-clrefi.adb, a-clrefi.ads: New files
12293
12294         * impunit.adb: Add s-os_lib in the list of user visible units.
12295         (Non_Imp_File_Names_95): Add a-clrefi to this list
12296         Remove obsolete run-time entries.
12297         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
12298          "a-exetim" -- Ada.Execution_Time
12299          "a-extiti" -- Ada.Execution_Time.Timers
12300
12301         * mlib-prj.ads, mlib-prj.adb
12302         (Build_Library): Use untouched object dir and library dir. At the
12303         same time makes sure that the checks are done using the canonical
12304         form. Removes hard-coded directory separator and use the proper host
12305         one instead.
12306         (Process_Project): Do not look in object directory to check if libgnarl
12307         is needed for a library, if there is no object directory.
12308         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
12309         linking.
12310         (Build_Library): When invoking gnatbind, use a response file if the
12311         total size of the arguments is too large.
12312
12313         * Makefile.rtl: (g-sttsne): New object file.
12314         Add entry for a-clrefi, s-utf_32, System.Exceptions
12315
12316         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
12317         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
12318         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
12319         Change g-string to s-string, g-os_lib to s-os_lib
12320         Change all g-utf_32 references to s-utf_32
12321
12322 2007-06-06  Tristan Gingold  <gingold@adacore.com>
12323             Olivier Hainque  <hainque@adacore.com>
12324
12325         * init.c: Do not adjust IP of an imported VMS exception of ia64.
12326         LIB$STOP is called to raise an exception and the IP of the exception
12327         is the instruction right after the call.
12328         (__gnat_adjust_context_for_raise, AIX): Implement.
12329         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
12330          adjust_context_for_raise before Raise_From_Signal_Hanler.
12331         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
12332         siginfo is passed to the handler, necessary to let the zcx propagation
12333         engine unwind past it.
12334
12335 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12336
12337         * initialize.c (__gnat_initialize for vxworks):  Update documentation
12338         on the ZCX support, using different sets of crtstuff objects than with
12339         GCC 3.4.
12340
12341 2007-06-06  Robert Dewar  <dewar@adacore.com>
12342
12343         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
12344         spec from body
12345         (Layout_Type): Fix recomputation of size from alignment.
12346
12347 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12348             Javier Miranda  <miranda@adacore.com>
12349
12350         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
12351         association in an instance.
12352         (Copy_Generic_Node): If the node is a string literal, no need to copy
12353         its descendants.
12354         (Is_Generic_Formal): For a formal subprogram, the declaration is the
12355         grandparent of the entity.
12356         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
12357         to simplify handling of formal interfaces that derive from other formal
12358         interfaces.
12359         (Instantiate_Subprogram_Body): The defining unit name of the body of
12360         the instance should be a defining identifier.
12361         (Install_Formal_Packages): make global to the package, for use in
12362         instantiations of child units.
12363         (Analyze_Package_Instantiation): Do not attempt to set information on an
12364         enclosing master of an entry when expansion is disabled.
12365         (Instantiate_Type): If the actual is a tagged synchronized type and the
12366         generic ancestor is an interface, create a generic actual for the
12367         corresponding record.
12368         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
12369         declaration, to ensure that the interface list is processed correctly.
12370         (Inline_Instance_Body): If enclosing scope is an instance body, remove
12371         its entities from visibiility as well.
12372         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
12373         given with a named association, analyze the expression only, not the
12374         discriminant association itself.
12375         (Reset_Entity): If the analysis of a selected component is transformed
12376         into an expanded name in the prefix of a call with parameters, do not
12377         transform the original node into an expanded name, to prevent visibility
12378         errors in the case of nested generics.
12379         (Check_Private_View): For an array type, check whether the index types
12380         may need exchanging.
12381
12382 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12383             Vincent Celier  <celier@adacore.com>
12384
12385         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
12386         since both are separated.
12387         Add support for imported CIL packages.
12388         Add further special handling of "value_type" for CIL.
12389         Add special handling of pragma Import for CIL.
12390
12391         * make.ads, make.adb: When switch -eS is used, direct all outputs to
12392         standard output instead of standard error, except errors.
12393         (Absolute_Path): Use untouched casing for the parent directory.
12394         (Add_Library_Search_Dir): Use the untouched directory name.
12395         (Add_Source_Search_Dir): Idem.
12396         (Change_To_Object_Directory): Update output to use proper casing.
12397         (Create_Binder_Mapping_File): Use the untouched filename to set
12398         ALI_Name.
12399         (Gnatmake): Use untouched library and executable directory names.
12400         (Insert_Project_Sources): Use untouched filename for spec and body.
12401         (Is_In_Object_Directory): Use untouched object directory.
12402         (Mark_Directory): Idem.
12403         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
12404         contains the non-canonical filename in all cases.
12405         (Change_To_Object_Directory): In verbose mode, display the name of the
12406         object directory we're changing to.
12407         (Compile_Sources): Make sure, when a project file is used, to compile
12408         the body of the unit, when there is one, even when only the spec is
12409         recorded in an ALI file.
12410         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
12411         spec to the body.
12412         (Report_Compilation_Failed): New procedure
12413         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
12414         procedures moved from the spec to the body.
12415         (Extract_Failure): Removed, not used
12416         Replace explicit raises of exception Bind_Failed and Link_Failed with
12417         calls to Make_Failed with the proper message.
12418         Replace explicit raises of exception Compilation_Failed with calls to
12419         procedure Report_Compilation_Failed.
12420         (Initialize): Create mapping files unconditionally when using project
12421         files.
12422
12423         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12424         Pragma_CIL_Constructor): New names.
12425
12426         * targparm.ads, targparm.adb
12427         (Compiler_System_Version): Removed, no longer used.
12428         (Get_Target_Parameters): Relax checks on system.ads validity. Add
12429         handling of two new system flags: JVM and CLI.
12430
12431 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12432             Arnaud Charlet  <charlet@adacore.com>
12433
12434         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
12435         time, use the default s-interr body that provides interrupt support
12436         based on signals.
12437         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
12438         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
12439         g-soccon.ads, and s-taprop.adb for the marte run time.
12440         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
12441         timers are supported on marte.
12442         (EH_MECHANISM for marte): Do not use ZCX.
12443         (THREADSLIB for marte): Use -lmarte.
12444         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
12445         Add mlib-tgt-specific.o to gnatmake objects
12446         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
12447         longer of MLib.Tgt.
12448         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
12449         6, either kernel or rtp, use a specialized version of s-osinte.ads.
12450
12451 2007-06-06  Pascal Obry  <obry@adacore.com>
12452
12453         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
12454
12455 2007-06-06  Vincent Celier  <celier@adacore.com>
12456
12457         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
12458         separator, use instead the proper host directory separator.
12459         (Copy_ALI_Files): Make sure that an already existing ALI file in the
12460         ALI copy dir is writable, before doing the copy.
12461
12462         * mlib-utl.ads, mlib-utl.adb: 
12463         (Gcc): If length of command line is too long, put the list of object
12464         files in a response file, if this is supported by the platform.
12465         (Ar): If invocation of the archive builder is allowed to be done in
12466         chunks and building it in one shot would go above an OS dependent
12467         limit on the number of characters on the command line, build the archive
12468         in chunks.
12469
12470 2007-06-06  Vincent Celier  <celier@adacore.com>
12471
12472         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
12473         of specified object file is not equal to base name of source.
12474
12475 2007-06-06  Javier Miranda  <miranda@adacore.com>
12476             Hristian Kirtchev  <kirtchev@adacore.com>
12477             Ed Schonberg  <schonberg@adacore.com>
12478
12479         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
12480         the full type declaration.
12481         (Analyze_Component_Declaration): Add local variable E to capture the
12482         initialization expression of the declaration. Replace the occurences of
12483         Expression (N) with E.
12484         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
12485         limited interface object with a function call.
12486         (Array_Type_Declaration): If the declaration lacks subtype marks for
12487         indices, create a simple index list to prevent cascaded errors.
12488         (Is_Null_Extension): Ignore internal components created for secondary
12489         tags when checking whether a record extension is a null extension.
12490         (Check_Abstract_Interfaces): Add missing support for interface subtypes
12491         and generic formals.
12492         (Derived_Type_Declaration): Add missing support for interface subtypes
12493         and generic formals.
12494         (Analyze_Object_Declaration): If an initialization expression is
12495         present, traverse its subtree and mark all allocators as static
12496         coextensions.
12497         (Add_Interface_Tag_Component): When looking for components that may be
12498         secondary tags, ignore pragmas that can appear within a record
12499         declaration.
12500         (Check_Abstract_Overriding): an inherited function that dispatches on
12501         result does not need to be overriden if the controlling type is a null
12502         extension.
12503         (Mentions_T): Handle properly a 'class attribute in an anonymous access
12504         component declaration, when the prefix is an expanded name.
12505         (Inherit_Component): If the derivation is for a private extension,
12506         inherited components remain visible and their ekind should not be set
12507         to Void.
12508         (Find_Type_Of_Object): In the case of an access definition, always set
12509         Is_Local_Anonymous_Access. We were previously not marking the anonymous
12510         access type of a return object as a local anonymous type.
12511         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
12512         range with character literal bounds.
12513         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
12514         (Access_Subprogram_Declaration): Indicate that the type declaration
12515         depends on an incomplete type only if the incomplete type is declared
12516         in an open scope.
12517         (Analyze_Subtype_Declaration): Handle properly subtypes of
12518         synchronized types that are tagged, and that may appear as generic
12519         actuals.
12520         (Access_Subprogram_Declaration): An anonymous access to subprogram can
12521         appear as an access discriminant in a private type declaration.
12522         (Add_Interface_Tag_Components): Complete decoration of the component
12523         containing the tag of a secondary dispatch table and the component
12524         containing the offset to the base of the object (this latter component
12525         is only generated when the parent type has discriminants --as documented
12526         in this routine).
12527         (Inherit_Components): Use the new decoration of the tag components to
12528         improve the condition that avoids inheriting the components associated
12529         with secondary tags of the parent.
12530         (Build_Discriminanted_Subtype): Indicate to the backend that the
12531         size of record types associated with dispatch tables is known at
12532         compile time.
12533         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
12534         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
12535         to include task, protected, and synchronized interfaces as limited
12536         interfaces.
12537         (Process_Discriminants): Remove the setting of
12538         Is_Local_Anonymous_Access on the type of (anonymous) access
12539         discriminants of nonlimited types.
12540         (Analyze_Interface_Type_Declaration): Complete the decoration of the
12541         class-wide entity it is is already present. This situation occurs if
12542         the limited-view has been previously built.
12543         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
12544         field.
12545         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
12546         Related_Interface.
12547
12548 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12549
12550         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
12551         of the type that specify the position of interface tags when the type
12552         inherits discriminated array components from the parent type.
12553         If a component is initialized with a box, check for the presence of a
12554         default expression in its declaration before using its default
12555         initialization procedure.
12556         (Resolve_Record_Aggregate): If a component is box-initialized, and the
12557         component type has a discriminants, create a partial aggregate for it
12558         by copying the discriminants of the component subtype.
12559         Reject attempt to initialize a discriminant with a box.
12560         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
12561         associated with dispatch tables is known at compile time.
12562         (Get_Value): If an association in a record aggregate has a box
12563         association, and the corresponding record component has a default
12564         expression, always copy the default expression, even when the
12565         association has a single choice, in order to create a proper
12566         association for the expanded aggregate.
12567
12568 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12569             Robert Dewar  <dewar@adacore.com>
12570
12571         * par-ch12.adb (P_Generic_Associations): The source position of an
12572         Others association is that of the others keyword, not that of the token
12573         that follows the box.
12574         (P_Formal_Type_Definition): Handle formal access types that carry a
12575         not null indicator.
12576
12577         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
12578         multiple identifier are present, save Scan_State before scanning the
12579         colon, to ensure that separate trees are constructed for each
12580         declaration.
12581         (P_Identifier_Declarations): For object declaration, set new flag
12582         Has_Init_Expression if initialization expression present.
12583         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
12584         Improve NOT NULL error messages
12585
12586 2007-06-06  Robert Dewar  <dewar@adacore.com>
12587
12588         * par-ch4.adb: (P_Name): Recover from literal used as name
12589
12590 2007-06-06  Vincent Celier  <celier@adacore.com>
12591
12592         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
12593         defaulted to False.
12594         In the "not" case, recursive call with Complemented set to True.
12595         Do not allow "or" or "and" operators when Complemented is True.
12596
12597 2007-06-06  Vincent Celier  <celier@adacore.com>
12598
12599         * prj.adb (Project_Empty): Gives default value for new component
12600         Libgnarl_Needed
12601
12602         * prj-attr.ads: Minor reformatting
12603
12604         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
12605         directory using the untouched casing.
12606         (For_All_Source_Dirs): Idem.
12607
12608         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
12609         directories specified with switches -aP.
12610         (Add_Search_Project_Directory): New procedure
12611         (Initialize_Project_Path): Put the directories in table
12612         Search_Directories in the project search path.
12613         (Initialize_Project_Path): For VMS, transform into canonical form the
12614         project path.
12615
12616 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12617
12618         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
12619         true if configurable run-time or No_Run_Time is set.
12620         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
12621         processing an unit which is not the one being compiled.
12622
12623 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12624
12625         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
12626         Replace UC by Ada.UC
12627
12628         * s-bitops.adb: Get rid of System.Pure_Exceptions.
12629         Replace UC by Ada.UC
12630
12631 2007-06-06  Robert Dewar  <dewar@adacore.com>
12632
12633         * scng.adb: (Check_End_Of_Line): Deal with very long lines
12634
12635 2007-06-06  Robert Dewar  <dewar@adacore.com>
12636
12637         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
12638         Remove no longer used nodes.
12639
12640 2007-06-06  Javier Miranda  <miranda@adacore.com>
12641             Ed Schonberg  <schonberg@adacore.com>
12642             Robert Dewar  <dewar@adacore.com>
12643
12644         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
12645         on obsolescent withed unit in case of limited-withed units.
12646         (Analyze_Compilation_Unit): Add guard to code that removed an
12647         instantiation from visibility, to prevent compiler aborts when
12648         instantiation is abandoned early on.
12649         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
12650         current unit being analyzed, and Distinguish local incomplete types
12651         from limited views of types declared elsewhere.
12652         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
12653         to state that the class-wide entity is shared by the limited-view
12654         and the full-view.
12655         (Analyze_With_Clause): Improve placement of flag for case of
12656         unimplemented unit.
12657         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
12658         manner similar to GNAT.Current_Exception. This is a violation of
12659         restriction (No_Exception_Propagation), and also inhibits the
12660         optimization of local raise to goto.
12661         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
12662         and if so set Most_Recent_Exception_Used flag in Opt, and also check
12663         for violation of restriction No_Exception_Propagation.
12664
12665 2007-06-06  Javier Miranda  <miranda@adacore.com>
12666             Hristian Kirtchev  <kirtchev@adacore.com>
12667             Gary Dismukes  <dismukes@adacore.com>
12668
12669         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
12670         use of entity Exception_Occurrence if it is not available in the
12671         target run-time.
12672
12673         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
12674         concurrent types are declared within an Ada 2005 generic, build their
12675         corresponding record types since they are needed for overriding-related
12676         semantic checks.
12677         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
12678         protected type does not implement a task interface or a nonlimited
12679         interface.
12680         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
12681         type does not implement a protected interface or a nonlimited interface.
12682         (Single_Task_Declaration, Single_Protected_Declaration): use original
12683         entity for variable declaration, to ensure that debugging information
12684         is correcty generated.
12685         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
12686         routines if the expander is not active.
12687         (Analyze_Task_Body): Mark all handlers to stop optimization of local
12688         raise, since special things happen for task exception handlers.
12689
12690         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
12691         concurrent types declared within a generic.
12692         (Check_Dispatching_Operation): Do not emit warning about late interface
12693         operations in the context of an instance.
12694         (Check_Dispatching_Call): Remove restriction against calling a
12695         dispatching operation with a limited controlling result.
12696         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
12697         Register_Interface_DT_Entry by calls to Register_Primitive.
12698         (Check_Dispatching_Formals): Handle properly a function with a
12699         controlling access result.
12700
12701 2007-06-06  Robert Dewar  <dewar@adacore.com>
12702             Arnaud Charlet  <charlet@adacore.com>
12703
12704         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
12705         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
12706         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
12707         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
12708         message when using a VM, since this attribute is not supported.
12709         (Analyze_Record_Representation_Clause): Give unrepped component warnings
12710
12711         * usage.adb: Add new warning for renaming of function return objects
12712         Indicate that -gnatwp and -gnatwP concern front-end inlining
12713         Add line for -gnatyg
12714         Add usage information for -gnatw.c/C
12715
12716 2007-06-06  Robert Dewar  <dewar@adacore.com>
12717             Ed Schonberg  <schonberg@adacore.com>
12718
12719         * sem_ch5.adb
12720         (Find_Var): Do not consider function call in test for infinite loop
12721         warning if warnings set off for function entity.
12722         (One_Bound): Do not create a temporary for a loop bound if it is a
12723         character literal.
12724         (Analyze_Assignment): Traverse the right hand side of an assignment and
12725         mark all allocators as static coextensions.
12726         (Analyze_Assignment): Exempt assignments involving a dispatching call
12727         to a function with a controlling access result from the check requiring
12728         the target to be class-wide.
12729
12730 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12731             Ed Schonberg  <schonberg@adacore.com>
12732             Robert Dewar  <dewar@adacore.com>
12733             Javier Miranda  <miranda@adacore.com>
12734
12735         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
12736         chain of coextensions when an allocator serves as the root of such a
12737         chain.
12738         (Propagate_Coextensions): Remove the test for the root being an
12739         allocator.
12740         (Resolve_Allocator): Add condition to ensure that all future decoration
12741         occurs on an allocator node. Add processing and cleanup for static
12742         coextensions.
12743         (Valid_Conversion): If the operand type is the limited view of a
12744         class-wide type, use the non-limited view is available to determine
12745         legality of operation.
12746         (Ambiguous_Character): move to spec, for use elsewhere.
12747         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
12748         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
12749         character literals.
12750         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
12751         Do_Division_Check flag explicitly.
12752         (Resolve_Actuals): If the actual is of a synchronized type, and the
12753         formal is of the corresponding record type, this is a call to a
12754         primitive operation of the type, that is declared outside of the type;
12755         the actual must be unchecked-converted to the type of the actual
12756         (Resolve_Call): Kill all current values for any subprogram call if
12757         flag Suppress_Value_Tracking_On_Call is set.
12758         (Resolve_Type_Conversion): Generate error message the the operand
12759         or target of interface conversions come from a limited view.
12760         (Check_Infinite_Recursion): Ignore generated calls
12761         (Check_Allocator_Discrim_Accessibility): New procedure for checking
12762         that an expression that constrains an access discriminant in an
12763         allocator does not denote an object with a deeper level than the
12764         allocator's access type.
12765         (Resolve_Allocator): In the case of an allocator initialized by an
12766         aggregate of a discriminated type, check that associations for any
12767         access discriminants satisfy accessibility requirements by calling
12768         Check_Allocator_Discrim_Accessibility.
12769         (Resolve_Equality_Op): Handle comparisons of anonymous access to
12770         subprogram types in the same fashion as other anonymous access types.
12771         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
12772         message that is not a continuation message.
12773         (Resolve_Type_Conversion): Add missing support for conversion to
12774         interface type.
12775         (Resolve_Actuals): Introduce a transient scope around the call if an
12776         actual is a call to a function returning a limited type, because the
12777         resulting value must be finalized after the call.
12778         (Resolve_Actuals): If the call was given in prefix notations, check
12779         whether an implicit 'Access reference or implicit dereference must be
12780         added to make the actual conform to the controlling formal.
12781
12782 2007-06-06  Robert Dewar  <dewar@adacore.com>
12783             Javier Miranda  <miranda@adacore.com>
12784
12785         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
12786         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
12787         overriding of an inherited private subprogram now there is no need to
12788         inherit its dispatching slot and reduce the size of the dispatch table.
12789         Set_All_DT_Position now ensures that the same slot is now assigned to
12790         both entities. This is required to statically build the dispatch table.
12791         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
12792         of calling Set_All_DT_Position to re-evaluate the position of the
12793         entries in the dispatch table. Such reevaluation is not desired if
12794         the tagged type is already frozen.
12795
12796 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
12797             Gary Dismukes  <dismukes@adacore.com>
12798             Robert Dewar  <dewar@adacore.com>
12799             Javier Miranda  <miranda@adacore.com>
12800
12801         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
12802         reference acts as an lvalue when the attribute name modifies the prefix
12803         (Is_Coextension_Root): New routine.
12804         (Mark_Static_Coextensions): New routine.
12805         (Type_Access_Level): Revise code for checking the level of the
12806         anonymous access type of a return object.
12807         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
12808         (Matches_Prefixed_View_Profile): Remove the no longer necessary
12809         retrieval of the corresponding controlling record type.
12810         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
12811         concurrent types declared within a generic as well as class wide types.
12812         Emit a mode incompatibility error whenever a protected entry or routine
12813         override an interface routine whose first parameter is not of mode
12814         "out", "in out" or access to variable.
12815         (Overrides_Synchronized_Primitive): Rename to
12816         Find_Overridden_Synchronized_Primitive.
12817         (Collect_Interface_Components): New subprogram that collects all the
12818         components of a tagged record containing tags of secondary dispatch
12819         tables.
12820         (Add_Global_Declaration): New procedure
12821         (Abstract_Interface_List): Handle properly the case of a subtype of a
12822         private extension.
12823         (Type_Access_Level): In the case of a type whose parent scope is a
12824         return statement, call Type_Access_Level recursively on the enclosing
12825         function's result type to determine the level of the return object's
12826         type.
12827         (Build_Elaboration_Entity): Build name of elaboration entity from the
12828         scope chain of the entity, rather than the unit name of the file name.
12829         (Check_Nested_Access): New procedure.
12830         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12831         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12832         (Get_Renamed_Entity): Utility routine for performing common operation
12833         of chasing the Renamed_Entity field of an entity.
12834
12835 2007-06-06  Robert Dewar  <dewar@adacore.com>
12836
12837         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
12838         elaboration model
12839         (Check_A_Call): Add check for entry call which was causing blowup
12840
12841 2007-06-06  Olivier Hainque  <hainque@adacore.com>
12842
12843         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
12844         special code on ia64-vms to handle major incompatibilities between the
12845         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
12846         this routine with a very different set of arguments and expectations on
12847         the return value.
12848
12849 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12850
12851         * socket.c (__gnat_close_signalling_fd): New function.
12852         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
12853         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
12854         New supporting functions for task safe Netdb operations.
12855
12856 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12857             Olivier Hainque  <hainque@adacore.com>
12858
12859         * a-except-2005.ads, a-except-2005.adb
12860         (Raise_From_Controlled_Operation): New procedure in
12861         (private part of) Ada.Exceptions (standard runtime version). Used to
12862         provide informational exception message when Program_Error is raised as
12863         a result of an Adjust or Finalize operation propagating an exception.
12864         (Rmsg_28): Fix description for E.4(18) check.
12865         (Raise_Current_Excep): Call Debug_Raise_Exception just before
12866         propagation starts, to let debuggers know about the event in a reliable
12867         fashion.
12868         Take the address of E and dereference to make sure it is homed on stack
12869         and prevent the stores from being deleted, necessary for proper
12870         debugger behavior on "break exception" hits.
12871         (Local_Raise): Moved to System.Exceptions
12872
12873         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
12874         exception message from the current occurrence and raise Program_Error
12875         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
12876
12877 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
12878             Arnaud Charlet  <charlet@adacore.com>
12879
12880         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
12881         lock, if needed.
12882
12883         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
12884         priority associated to a lock.
12885
12886         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
12887         assertion to take into account case of no abort restriction.
12888         (Initialize_Protection_Entries): Add initialization for the field
12889         New_Ceiling associated to the protected object.
12890         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
12891         needed.
12892
12893         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12894         since this function needs to be set consistently with Update_Exception.
12895
12896         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12897         since this function needs to be set consistently with Update_Exception.
12898
12899         * s-taskin.ads: Update comments on
12900         Interrupt_Server_Blocked_On_Event_Flag.
12901         (Unbind_Handler): Fix handling of server_task wakeup
12902         (Server_Task): Set self's state so that Unbind_Handler can take
12903         appropriate actions.
12904         (Common_ATCB): Now use a constant from System.Parameters to determine
12905         the max size of the Task_Image field.
12906
12907         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
12908         Initialize_Analyzer function.
12909         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
12910         take into account case of no abort restriction.
12911         ([Vulnerable_]Complete_Master): Modify assertion.
12912
12913         * s-tataat.adb (Finalize): Use the nestable versions of
12914         Defer/Undefer_Abort.
12915
12916         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
12917
12918         * s-tpobop.ads: Update comments.
12919
12920         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
12921         of locking the object manually, to avoid inconsistencies between
12922         Lock/Unlock_Entry assertions.
12923
12924         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
12925         terminating
12926         application and System.Parameters.No_Abort is True.
12927         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
12928         (Unbind_Handler): Fix handling of server_task wakeup
12929         (Server_Task): Set self's state so that Unbind_Handler can take
12930         appropriate actions.
12931
12932 2007-06-06  Thomas Quinot  <quinot@adacore.com>
12933
12934         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
12935         declarations instead of an explicit null body, for conciseness.
12936
12937 2007-06-06  Robert Dewar  <dewar@adacore.com>
12938
12939         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
12940         illegal aggregate and the type is still Any_Composite.
12941         (Subtypes_Statically_Match): Fix problem of empty discriminant list
12942
12943 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12944
12945         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
12946         to prevent subsequent expansion.
12947
12948 2007-06-06  Robert Dewar  <dewar@adacore.com>
12949
12950         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
12951
12952 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
12953             Robert Dewar  <dewar@adacore.com>
12954
12955         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
12956         exceptions.
12957         (Write_Itype): Handle case of string literal subtype, which
12958         comes up in this context.
12959         (Update_Itype): when debugging expanded code, update sloc of itypes
12960         associated with defining_identifiers and ranges, for gdb use.
12961         (Sprint_Node_Actual): Add static keyword to object or exception
12962         declaration output if Is_Statically_Allocated is True.
12963         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
12964         or task body, so that the tree carries the proper Sloc information for
12965         debugging use.
12966         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
12967
12968 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
12969
12970         * s-secsta.adb (Chunk): Ensure this object has a static size known at
12971         compile time, to avoid dynamic memory allocation
12972         (Elaboration code): Only use dynamic memory allocation when needed.
12973
12974 2007-06-06  Quentin Ochem  <ochem@adacore.com>
12975
12976         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
12977         "Overflow_Guard".
12978         (Stack_Analyzer): Added field "Overflow_Guard"
12979         (Task_Result): Added field "Overflow_Guard".
12980         (Index_Str): New constant.
12981         (Task_Name_Str): New constant.
12982         (Actual_Size_Str): New constant.
12983         (Pattern_Array_Element_Size): New constant.
12984         (Get_Usage_Range): New subprogram.
12985         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
12986         Now align the output.
12987         Added comments.
12988         (Initialize): Added value for Overflow_Guard.
12989         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
12990         Update the value of the overflow guard according to the actual
12991         beginning of the pattern array.
12992         (Initialize_Analyzer): Added parameter Overflow_Guard.
12993         Take this parameter into accound when computing the max size.
12994         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
12995         (Report_Result): Removed extra useless procedure.
12996         Updated call to Output_Result.
12997         Moved full computation of the Task_Result here.
12998
12999 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13000
13001         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
13002         Thread_Blocking_IO, always True by default, set False on a per-runtime
13003         basis.
13004         Add Windows-specific constants
13005         Add new constant Need_Netdb_Buffer.
13006         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13007         not, whether to use getXXXbyYYY_r.
13008
13009         * gsocket.h: Add new constant Need_Netdb_Buffer.
13010         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13011         not, whether to use getXXXbyYYY_r.
13012
13013 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13014
13015         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
13016         than their first call.
13017         Add type Dummy_Communication_Block used in the generation of the pre-
13018         defined dispatching primitive _disp_asynchronous_select.
13019         (Storage_Element): Put Pragma Universal_Aliasing on it.
13020
13021 2007-06-06  Vincent Celier  <celier@adacore.com>
13022
13023         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
13024         function.
13025
13026         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
13027         letter if it is not followed by a '/' or a '\'.
13028         (Windows): New Boolean function
13029
13030         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
13031         Ada 2005.
13032         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
13033         drive letter.
13034         (Containing_Directory): Raise Use_Error when the directory is a root
13035         directory.
13036         (Extension): When returning the result, use a conversion to Result_Type,
13037         not a qualification.
13038
13039 2007-06-06  Robert Dewar  <dewar@adacore.com>
13040
13041         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
13042         (Set_Style_Check_Options): Recognize new -gnatyg style switch
13043
13044         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
13045         Warn_On_Non_Local_Exception to False, to turn off warnings for
13046         No_Exception_Propagation in ZFP runtime.
13047         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
13048         back-ends.
13049         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
13050
13051 2007-06-06  Vincent Celier  <celier@adacore.com>
13052
13053         * switch-b.adb (Scan_Binder_Switches): Add processing for new
13054         switches -R and -Z
13055
13056         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
13057         (Scan_Make_Switches): Recognize new switch -aP
13058
13059 2007-06-06  Matthew Gingell  <gingell@adacore.com>
13060             Jose Ruiz  <ruiz@adacore.com>
13061
13062         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
13063         VxWorks task descriptor in the Ada run time, call a C subprogram
13064         (__gnat_get_stack_info) that extracts the required information.
13065
13066         * sysdep.c: Back out temporary lynxos workaround.
13067         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
13068         time the stack information associated to the currently executing task.
13069         Only VxWorks systems require this function.
13070
13071 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13072
13073         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
13074         add the stack bias if the offset is computed from a frame address.
13075         (__gnat_backtrace): Adjust for above change.
13076
13077 2007-06-06  Thomas Quinot  <quinot@adacore.com>
13078
13079         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
13080         PE_Non_Transportable_Actual.
13081         (By_Descriptor_Last): New constant.
13082         (By_Copy_Return): Likewise.
13083
13084 2007-06-06  Vincent Celier  <celier@adacore.com>
13085
13086         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
13087         is.
13088
13089         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
13090         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
13091         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
13092         Add missing comment for /OPTIMIZE=SPACE
13093         Add entry for OPTIMIZE=SPACE
13094         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
13095         Add documentation for new qualifiers corresponding to -gnatw.c/.C
13096
13097 2007-06-06  Vincent Celier  <celier@adacore.com>
13098             Robert Dewar  <dewar@adacore.com>
13099
13100         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
13101         -gnatw.C)
13102
13103         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
13104         Document gnatbind switch -a
13105         (case Constructions): Document that variables declarations are allowed
13106         for previously declared variables.
13107         Fix external lib project example
13108         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
13109         Indicate that "#if not X or Y then" is not allowed in input files to
13110         gnatprep.
13111         Document gnatw.x and gnatw.X warning flags
13112         Mention -Winline switch to activate warnings when back-end inlining is
13113         ineffective.
13114         Add gnatcheck rule descriptions
13115         Describe how to use the GNAT driver to call a tool on a closure.
13116         Describe how to run project-wide checks or metrics.
13117         Document gnatbind's -R option
13118         Updated to account for Ada 2005 support
13119
13120         * gnat_rm.texi (Case Construction): Allow variable declarations for
13121         previously declared variables.
13122         (Representation Clauses and Pragmas): Lift restriction on alignment
13123         clauses for record types.
13124         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
13125         Document No_Exception_Propagation restriction
13126         Document No_Body pragma
13127         Updated to account for Ada 2005 support; corrected some typos
13128         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
13129
13130         * gnat-style.texi: Make it clear that we never use mode IN for
13131         procedures or functions
13132
13133         * ug_words: Add entries for -gnatw.x and -gnatw.X
13134         Add entries for -gnatw.c/.C
13135
13136 2007-06-06  Pascal Obry  <obry@adacore.com>
13137             Vincent Celier  <celier@adacore.com>
13138
13139         * makegpr.adb (Add_Archive_Path): Use untouched object and library
13140         dirs and library name.
13141         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
13142         comments.
13143         (Build_Library): Idem.
13144         (Compile_Individual_Sources): Idem.
13145         (Compile_Link_With_Gnatmake): Idem.
13146         (Compile_Sources): Idem.
13147         (Get_Imported_Directories): Idem.
13148         (Link_Executables): Idem. Same change for the executable dir.
13149         (Check_Compilation_Needed): C_Source_Path new variable containing
13150         the canonical form of Source_Path to check against the source names
13151         in the dependency file.
13152         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
13153         verbose mode, display the name of the object directory we're changing
13154         to.
13155         (Saved_Switches): New name of table X_Switches
13156         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
13157         (Usage): New line for switch -aP
13158         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
13159         testing if a directory should be added to the search path.
13160
13161 2007-06-06  Javier Miranda  <miranda@adacore.com>
13162
13163         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
13164         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
13165         declaration after freezing point of all its associated tagged types;
13166         otherwise such types are frozen too early.
13167
13168 2007-06-06  Robert Dewar  <dewar@adacore.com>
13169
13170         * a-reatim.adb: Documentation addition
13171
13172         * g-cgideb.adb: Minor code reorganization
13173
13174         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
13175         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
13176         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
13177
13178         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
13179         function.  Change name New_Scope to Push_Scope
13180         (Get_Debug_Flag_K): Remove unused obsolete function.
13181
13182         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
13183         Push_Scope.
13184
13185         * makeusg.adb: Update Copyright notice
13186         Add line for switch -aP
13187
13188         * makeusg.adb: Fix wording of some usage messages
13189
13190         * s-assert.adb (Raise_Assert_Failure): Add call to
13191         Debug_Raise_Assert_Failure.
13192
13193         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
13194         (2, Standard'Alignment) for compatibility with AAMP (where alignment
13195         is restricted to 1).
13196
13197         * s-wchjis.adb: Remove use of System.Pure_Exceptions
13198
13199         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
13200         node location to No_Location when we're not debugging the expanded
13201         code.
13202
13203 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
13204
13205         * misc.c (enumerate_modes): Consider log2_b to always be one.
13206
13207 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
13208
13209         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13210
13211 2007-05-02  Pascal Obry  <obry@adacore.com>
13212
13213         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
13214         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
13215         encoding support of Stream_IO.
13216         (Write_Unit): Idem.
13217
13218         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
13219         filename and corresponding encoding to match the OS requirement.
13220         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
13221         routine will fail on specific devices like CON: AUX: ...
13222
13223         PR ada/29856: Add missing braces
13224
13225 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13226
13227         PR ada/31660
13228         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
13229
13230 2007-04-21  Jan Hubicka  <jh@suse.cz>
13231
13232         * misc.c (gnat_expand_body): Don't call target for destructors,
13233         avoid redundant check on syntax errors.
13234
13235 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13236
13237         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
13238         instead of checking GIMPLE_STMT_P in chain_next.
13239
13240 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
13241
13242         PR ada/31576
13243         * system-linux-alpha.ads: Disable constant condition warning for the
13244         Default_Bit_Order variable.
13245         * system-linux-s390.ads: Likewise.
13246         * system-linux-s390x.ads: Likewise.
13247         * system-linux-sparc.ads: Likewise.
13248
13249 2007-04-06  Javier Miranda  <miranda@adacore.com>
13250             Matt Heaney  <heaney@adacore.com>
13251             Robert Dewar  <dewar@adacore.com>
13252
13253         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
13254         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
13255         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
13256         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
13257         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
13258         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
13259         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
13260         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
13261         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
13262         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
13263         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
13264         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
13265         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
13266         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
13267         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
13268         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
13269         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
13270         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
13271         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
13272         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
13273         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
13274         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
13275         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
13276         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
13277         s-taprop-tru64.adb, s-taprop-irix.adb,
13278         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
13279         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
13280         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
13281         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
13282         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
13283         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
13284         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
13285         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
13286         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
13287         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
13288         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
13289         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
13290         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
13291         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
13292         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
13293         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
13294         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
13295         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
13296         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
13297         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
13298         access types.
13299         Update documentation.
13300         Minor rewording.
13301
13302 2007-04-06  Robert Dewar  <dewar@adacore.com>
13303
13304         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13305         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13306         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
13307         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
13308         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
13309         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13310         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13311         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
13312         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
13313         system-hpux-ia64.ads, targparm.adb,
13314         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
13315
13316         * system.ads: Move Functions_Return_By_DSP to obsolete section,
13317         kept for bootstrap purposes only.
13318
13319 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13320
13321         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
13322         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
13323         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
13324         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
13325
13326 2007-04-06  Robert Dewar  <dewar@adacore.com>
13327
13328         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
13329         (Local_Raise): New dummy procedure called when a raise is converted
13330         to a local goto. Used for debugger to detect that the exception
13331         is raised.
13332
13333         * debug.adb: Document new d.g flag (expand local raise statements to
13334         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
13335
13336         * exp_sel.adb: Use Make_Implicit_Exception_Handler
13337
13338         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
13339         suppress warnings for unused handlers.
13340         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
13341         warnings for raise statements not handled locally.
13342         (Get_RT_Exception_Entity): New function
13343         (Get_Local_Call_Entity): New function
13344         (Find_Local_Handler): New function
13345         (Warn_If_No_Propagation): New procedure
13346         (Expand_At_End_Handler): Call Make_Implicit_Handler
13347         (Expand_Exception_Handlers): Major additions to deal with local handlers
13348         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
13349         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
13350         for local raise
13351
13352         * exp_ch11.ads (Get_RT_Exception_Entity): New function
13353         (Get_Local_Call_Entity): New function
13354
13355         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
13356         of restrictions that the binder will never suggest adding.
13357
13358         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
13359         to No_Elist.
13360
13361         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
13362         be with'ed in the presence of pragma Restriction
13363         (No_Exception_Propagation).
13364
13365         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
13366
13367         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
13368         parameter, then the handler is not a suitable target for a local raise,
13369         and this is a violation of restriction No_Exception_Propagation.
13370         (Analyze_Handled_Statements): Analyze choice parameters in exception
13371         handlers before analyzing statement sequence (needed for proper
13372         detection of local raise statements).
13373         (Analyze_Raise_Statement): Reraise statement is a violation of the
13374         No_Exception_Propagation restriction.
13375
13376         * s-rident.ads: Add new restriction No_Exception_Propagation
13377
13378         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
13379         function, like Make_Exception_Handler but sets Local_Raise_Statements
13380         to No_List.
13381         (Add_Unique_Serial_Number): Deal with case where this is called during
13382         processing of configuration pragmas.
13383
13384 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13385             Pat Rogers  <rogers@adacore.com>
13386             Pascal Obry  <obry@adacore.com>
13387
13388         * g-stsifd-sockets.adb: New file.
13389
13390         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
13391         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
13392         g-socthi-vms.adb: Move signalling
13393         fd management to a nested package, so that they can conveniently be
13394         moved to a subunit that is shared across Windows, VMS, and VxWorks
13395         (Ada implementation) or completed with imported bodies from socket.c
13396         (UNIX case).
13397         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
13398         subprograms.
13399         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
13400         the signalling file descriptor.
13401         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
13402         signalling file descriptor.
13403         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
13404         instead of creating a pair of sockets for signalling here.
13405
13406         * g-socthi.adb: Ditto.
13407         Set the runtime process to ignore SIGPIPEs on platforms that support
13408         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13409
13410         * g-socthi-mingw.adb: Ditto.
13411         (WS_Version): Use Windows 2.2.
13412         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13413
13414         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
13415         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13416
13417         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
13418         added GNAT byte swapping facility
13419         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
13420
13421         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
13422
13423         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
13424         New subprograms.
13425         (__gnat_create_signalling_fds): New subprogram.
13426         Set the runtime process to ignore SIGPIPEs on platforms that support
13427         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13428
13429 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
13430             Vincent Celier  <celier@adacore.com>
13431
13432         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
13433         New version of Ada.Calendar which supports the new upper bound of Ada
13434         time (2399-12-31 86_399.999999999).
13435         The following modifications have been made to the package:
13436          - New representation of time as count of nanoseconds since the start of
13437            Ada time (1901-1-1 0.0).
13438          - Target independent Split and Time_Of routines which service both
13439            Ada 95 and Ada 2005 code.
13440          - Target independent interface to the Ada 2005 children of Calendar.
13441          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
13442          - Handling of non-leap centenial years.
13443          - Updated clock function.
13444          - Updated arithmetic and comparison operators.
13445
13446         * a-caldel.adb (To_Duration): Add call to target independent routine in
13447         Ada.Calendar to handle the conversion of time to duration.
13448
13449         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
13450         (UTC Offset).
13451         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
13452         set off to 0.
13453         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
13454         targets do not have a natural time zone, GMT is used as a default.
13455         (__gnat_get_task_options): New.
13456
13457         * a-direct.adb (Modification_Time): Add with and use clauses for
13458         Ada.Calendar and Ada.
13459         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
13460         since it is no longer needed.
13461         (Duration_To_Time): Removed.
13462         (OS_Time_To_Long_Integer): Removed.
13463         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
13464         Formatting Time_Of routines which automatically handle time zones,
13465         buffer periods and leap seconds.
13466
13467         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
13468         target independent routines in Ada.Calendar.
13469
13470         * a-calfor.ads, a-calfor.adb: 
13471         Code cleanup and addition of validity checks in various routines.
13472         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
13473         Ada.Calendar.
13474
13475         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
13476         independent routine in Ada.Calendar.
13477
13478 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13479
13480         * adaint.c: 
13481         (convert_addresses): Adjust prototype and dummy definition to expect an
13482          extra file_name argument.
13483
13484         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
13485         filling the now expected file_name argument with the appropriate
13486         argv[0] expansion.
13487         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
13488         (tracebk): Array of void * instead of char *, corresponding to what
13489          convert_addresses expects.
13490         (exename): New static global, to hold the executable file name to be
13491         used in all convert_addresses invocations.
13492         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
13493         change.
13494         (__gnat_gmem_a2l_initialize): Resolve exename.
13495         (__gnat_convert_addresses): Use exename as the convert_addresses
13496         file_name argument.
13497
13498         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
13499         "convert_addresses", now expecting a filename argument. Import the
13500         necessary entities to compute the filename to use and pass it to
13501         convert_addresses.
13502
13503 2007-04-06  Matt Gingell  <gingell@adacore.com>
13504
13505         * system-aix.ads: Back out previous change.
13506         (Functions_Return_By_DSP): Removed
13507
13508 2007-04-06  Pascal Obry  <obry@adacore.com>
13509
13510         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
13511         or the monotonic used by Ada.Real_Time) to compute the sleep duration
13512         on Windows.
13513
13514 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
13515
13516         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
13517         function. Its value changes in different VxWorks versions, and it is
13518         now handled by the function __gnat_get_task_options.
13519
13520         * s-taprop-vxworks.adb (Create_Task): Call the function
13521         __gnat_get_task_options to get the required options for creating a task.
13522
13523 2007-04-06  Pascal Obry  <obry@adacore.com>
13524             Thomas Quinot  <quinot@adacore.com>
13525
13526         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
13527         dealing with filename.
13528         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
13529         filename from a standard string to a wide-string depending on the
13530         encoding value.
13531         (__gnat_freopen): Idem.
13532         (__gnat_current_time): New function (wrapper for time(3) standard C
13533         function).
13534
13535         * g-os_lib.ads (Current_Time): New function. Returns the current
13536         system time as an OS_Time value.
13537
13538         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
13539         (Monotonic_Clock): Same.
13540
13541 2007-04-06  Quentin Ochem  <ochem@adacore.com>
13542
13543         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
13544         not on a natural.
13545         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
13546
13547 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
13548
13549         * a-retide.adb: Add elaboration code to ensure that the tasking run
13550         time is initialized when using delay operations even when no task is
13551         created.
13552
13553 2007-04-06  Javier Miranda  <miranda@adacore.com>
13554
13555         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
13556         component Num_Prim_Ops.
13557         (Set_Num_Prim_Ops): Removed.
13558         Remove all the assertions because all the routines of this
13559         package are inline always.
13560         (Get_Offset_Index): Add support to primary dispatch tables.
13561         Move the documentation about the dispatch table to a-tags.ads
13562         (Set_External_Tag): Removed
13563         (Inherit_TSD): Removed.
13564         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
13565         moved to a-tags.ads
13566         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
13567         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
13568         of the TSD field "Table" because this field has been renamed to
13569         "Ifaces_Table".
13570         (Inherit_CPP_DT): Removed.
13571         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
13572         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
13573         declarations have been moved to a-tags.ads
13574         (Check_Size): Removed.
13575         (Expanded_Name): Updated to get access to the new field of TSD
13576         containing the address of the expanded name.
13577         (Get_Access_Level/Set_Access_Level): Removed.
13578         (Get_Predefined_Prim_Op_Address): Removed.
13579         (Set_Predefined_Prim_Op_Address): Removed.
13580         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
13581         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
13582         (Set_Expanded_Name): Removed.
13583         (Inherit_DT): Removed.
13584         (Inherit_CPP_DT): Removed.
13585         (Set_RC_Offset): Removed.
13586         (Set_TSD): Removed.
13587         (Base_Address): New function that displaces "this" to point to the base
13588         of the object (that is, to point to the primary tag of the object).
13589
13590 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13591             Javier Miranda  <miranda@adacore.com>
13592
13593         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
13594         anonymous access component, do not create a master_id if type already
13595         has one, as may happen if the type is a subcomponent of a packed array
13596         type.
13597         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
13598         Initialize_Tag): Remove code associated with the old CPP pragmas.
13599         CPP_Virtual and CPP_Vtable are no longer supported.
13600         (Build_Offset_To_Top_Internal): Add support for concurrent record types
13601         (Build_Offset_To_Top_Functions): Add support for concurrent record types
13602         (Freeze_Record_Type): Remove call to
13603         Init_Predefined_Interface_Primitives.
13604         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
13605         code required to initialize the tags of the secondary dispatch tables.
13606         This leaves the algoritm more clear.
13607         (Init_Secondary_Tags): Add support for concurrent record types
13608         (Make_Predefined_Primitive_Specs): Code cleanup.
13609         (Predefined_Primitive_Bodies): Code cleanup.
13610         (Build_Master_Renaming): New local subprogram.
13611         (Expand_N_Full_Type_Declaration): Build the master_id associated with
13612         anonymous access to task type components.
13613         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
13614         subtype indication are resolved during analysis, and must not be done
13615         here.
13616         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
13617
13618 2007-04-06  Geert Bosch  <bosch@adacore.com>
13619             Ed Schonberg  <schonberg@adacore.com>
13620             Javier Miranda  <miranda@adacore.com>
13621             Bob Duff  <duff@adacore.com>
13622
13623         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
13624         for conversion of a Float_Type'Truncation to integer.
13625
13626         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
13627         check if a node is an attribute that can be handled directly by the
13628         back end.
13629         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
13630         attributes that can be handled directly by the back end.
13631         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
13632         use new predicate Is_Access_Protected_Subprogram_Type.
13633         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
13634         and Unchecked_Union if it is generated as part of the default  Output
13635         procedure for a type with default discriminants.
13636         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
13637         if we are compiling under restriction No_Dispatching_Calls.
13638         (Constrained): Use Underlying_Type, in case the type is private without
13639         discriminants, but the full type has discriminants.
13640         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
13641         call to Build_Get_Access_Level.
13642         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
13643         interface objects requires a call to the run-time subprogram that
13644         returns the base address of the object.
13645         (Valid_Conversion): Improve error message on illegal attempt to store
13646         an anonymous access to subprogram value into a record component.
13647
13648         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
13649         null".
13650         (Simplify_Type_Conversion): New procedure that performs simplification
13651         of Int_Type (Float_Type'Truncation (X)).
13652         (Resolve_Type_Conversion): Call above procedure after resolving operand
13653         and before performing checks. This replaces the existing ineffective
13654         code in Exp_Ch4.
13655         (Set_String_Literal_Subtype): When creating the internal static lower
13656         bound subtype for a string literal, use a newly created copy of the
13657         subtree representing the lower bound.
13658         (Resolve_Call): Exclude build-in-place function calls from transient
13659         scope treatment. Update comments to describe this exception.
13660         (Resolve_Equality_Op): In case of dispatching call check violation of
13661         restriction No_Dispatching_Calls.
13662         (Resolve_Call): If the call returns an array, the context imposes the
13663         component type of the array, and the function has one non-defaulted
13664         parameter, rewrite the call as the indexing of a call with a single
13665         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
13666         in prefix form.
13667         (Resolve_Actuals): If an actual is an allocator for an access parameter,
13668         the master of the created object is the innermost enclosing statement.
13669         (Remove_Conversions): For a binary operator, check if type of second
13670         formal is numeric, to check if an abstract interpretation is present
13671         in the case of exponentiation as well.
13672
13673 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13674             Bob Duff  <duff@adacore.com>
13675
13676         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
13677         copying a parameter list in a call, set properly the First_Named_Formal
13678         and Next_Named_Formal fields in the new list and in the enclosing call.
13679         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
13680         names, to ease typing in the debugger. Improve comments.
13681         (Watch_Node): New variable, intended to be set in the debugger.
13682         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
13683         called when the watched node is created.
13684         (New_Node_Debugging_Output): Combined version of local procedures
13685         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
13686         with a parameter so that conditional breakpoints like "if Node = 12345"
13687         work.
13688         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
13689         Add Elist1 function
13690
13691 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13692             Ed Schonberg  <schonberg@adacore.com>
13693             Gary Dismukes  <dismukes@adacore.com>
13694
13695         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
13696         required for a conversion between two access-to-unconstrained-array
13697         types.
13698         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
13699         to discriminant constraints on discriminant objects. This rule must
13700         apply as well to discriminants of protected types in private components.
13701         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
13702         object of a null-excluding access type then don't require the
13703         the object declaration to have an expression and don't emit a
13704         run-time check.
13705
13706 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13707             Eric Botcazou  <botcazou@adacore.com>
13708
13709         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
13710         and made constant.
13711
13712         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
13713         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
13714         carry any.
13715
13716         * fe.h (Compiler_Abort): Add third parameter.
13717
13718         * misc.c (internal_error_function): Build third argument from current
13719         input location and pass it to Compiler_Abort.
13720
13721 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
13722
13723         * cstand.adb (Create_Standard): When the target's storage unit size is
13724         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
13725         Standard_String.
13726
13727 2007-04-06  Nicolas Roche  <roche@adacore.com>
13728
13729         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
13730         absolute path can have the following form: device:/a/b. In this case
13731         '/' should be inserted between the path and the filename.
13732
13733 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13734             Eric Botcazou  <botcazou@adacore.com>
13735
13736         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
13737         VAR_DECL to a CONST_DECL we make for a public constant when we know the
13738         corresponding definition has created the so made visible variable.
13739         Handle anonymous access to protected subprogram.
13740         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
13741         object with an address clause volatile.  Re-enable original fix.
13742         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
13743         too.
13744         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
13745         associated with either the Equivalent or Root type, instead of the
13746         naked type node.
13747         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
13748         subtree for every field of a global record type.
13749         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
13750         discriminants, invoke again variable_size on its newly computed sizes.
13751
13752 2007-04-06  Robert Dewar  <dewar@adacore.com>
13753             Thomas Quinot  <quinot@adacore.com>
13754             Ed Schonberg  <schonberg@adacore.com>
13755             Bob Duff  <duff@adacore.com>
13756
13757         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
13758         (Next_Component_Or_Discriminant): New function and procedure
13759         (First_Index, First_Literal, Master_Id,
13760         Set_First_Index, Set_First_Literal, Set_Master_Id):
13761         Add missing Ekind assertions.
13762         (Is_Access_Protected_Subprogram_Type): New predicate.
13763         (Has_RACW): New entity flag, set on package entities to indicate that
13764         the package contains the declaration of a remote accecss-to-classwide
13765         type.
13766         (E_Return_Statement): This node type has the Finalization_Chain_Entity
13767         attribute, in case the result type has controlled parts.
13768         (Requires_Overriding): Add this new flag, because "requires
13769         overriding" is subtly different from "is abstract" (see AI-228).
13770         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
13771         Is_Abstract_Type. Make sure these are called only when appropriate.
13772         (Has_Pragma_Unreferenced_Objects): New flag
13773
13774         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
13775         class-wide, the tag of the right-hand side must be an exact match, not
13776         an ancestor of that of the object on left-hand side.
13777         (Move_Activation_Chain): New procedure to create the call to
13778         System.Tasking.Stages.Move_Activation_Chain.
13779         (Expand_N_Extended_Return_Statement): Generate code to call
13780         System.Finalization_Implementation.Move_Final_List at the end of a
13781         return statement if the function's result type has controlled parts.
13782         Move asserts to Build_In_Place_Formal.
13783         (Move_Final_List): New function to create the call statement.
13784         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
13785         tagged type, replace generation of call to the run-time subprogram
13786         CW_Membership by call to Build_CW_Membership.
13787         (Expand_N_Return_Statement): Replace generation of call to the run-time
13788         subprogram Get_Access_Level by call to Build_Get_Access_Level.
13789         (Expand_N_Simple_Function_Return): Replace generation of call to the
13790         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13791
13792         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
13793         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
13794         access to protected operations.
13795         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
13796         master and chain actual parameters to a build-in-place function call
13797         involving tasks.
13798         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
13799         statement.
13800         (Make_Build_In_Place_Call_In_Allocator,
13801         Make_Build_In_Place_Call_In_Anonymous_Context,
13802         Make_Build_In_Place_Call_In_Assignment,
13803         Make_Build_In_Place_Call_In_Object_Declaration): Call
13804         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
13805         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
13806         stubbed procedure with a null body, replace the call with a null
13807         statement without using the full inlining machinery, for efficiency
13808         and to avoid invalid values in source file table entries.
13809
13810         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
13811         renamings of calls to build-in-place functions.
13812
13813         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
13814         provides the functionality of RTE_Available to record components.
13815         (RTU_Entity): The function Entity has been renamed to RTU_Entity
13816         to avoid undesired overloading.
13817         (Entity): New subprogram that returns the entity for the referened
13818         unit. If this unit has not been loaded, it returns Empty.
13819         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
13820         Remove no longer used entities.
13821         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
13822         (RE_Type_Specific_Data): New entity.
13823         (RE_Move_Any_Value): New entity.
13824         (RE_TA_A, RE_Get_Any_Type): New entities.
13825         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
13826          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
13827          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
13828         (Entity): New subprogram that returns the entity for the referened
13829         unit. If this unit has not been loaded, it returns Empty.
13830         (RTE): Addition of a new formal that extends the search to the scopes
13831         of the record types found in the chain of the package.
13832
13833         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
13834         "abstract subprograms must be visible" message, whether or not the type
13835         is an interface; that is, remove the special case for interface types.
13836         (Analyze_Function_Return): Remove error message "return of task objects
13837         is not yet implemented" because this is now implemented.
13838         (Create_Extra_Formals): Add the extra master and activation chain
13839         formals in case the result type has tasks.
13840         Remove error message "return of limited controlled objects is not yet
13841         implemented".
13842         (Create_Extra_Formals): Add the extra caller's finalization list formal
13843         in case the result type has controlled parts.
13844         (Process_Formals): In case of access formal types there is no need
13845         to continue with the analysis of the formals if we already notified
13846         errors.
13847         (Check_Overriding_Indicator): Add code to check overriding of predefined
13848         operators.
13849         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
13850         flags for formals that do not require them,.
13851         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
13852         hidden entity is use visible or directly visible.
13853         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
13854         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
13855         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
13856         New_Overloaded_Entity): Split Is_Abstract flag into
13857         Is_Abstract_Subprogram and Is_Abstract_Type.
13858
13859         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
13860         a return statement's finalization list to the caller's list, used for
13861         build-in-place functions with result type with controlled parts.
13862         Remove no longer used entities.
13863
13864         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
13865         longer needed, because the full type is now limited, and therefore a
13866         pass-by-reference type.
13867         (Foreign_Task_Level): New constant.
13868
13869         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
13870         move tasks from the activation chain belonging to a return statement to
13871         the one passed in by the caller, and update the master to the one
13872         passed in by the caller.
13873         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
13874         of unactivated tasks, so we don't kill the ones that are being returned
13875         by a build-in-place function.
13876         (Create_Task): Ignore AI-280 for foreign threads.
13877
13878 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13879             Robert Dewar  <dewar@adacore.com>
13880             Bob Duff  <duff@adacore.com>
13881             Gary Dismukes  <dismukes@adacore.com>
13882
13883         * errout.adb (Unwind_Internal_Type): Use predicate
13884         Is_Access__Protected_Subprogram_Type.
13885
13886         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
13887         (Freeze_Entity, packed array case): Do not override explicitly set
13888         alignment and size clauses.
13889         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
13890         the enclosing subprogram is a child unit body that acts as a spec.
13891         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
13892         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
13893         Remove all code for DSP option
13894
13895         * layout.adb (Layout_Record_Type): Use First/
13896         Next_Component_Or_Discriminant
13897         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
13898         to handle properly the anonymous access case.
13899
13900         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
13901         for all access attributes, because overload resolution should work the
13902         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
13903         causes the error message for the ambiguous "X'Access = Y'Access" and
13904         "X'Unrestricted_Access = Y'Access" and so forth to match.
13905         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
13906         now that anonymous access to protected operations have their own kind.
13907         (Resolve_Attribute): In case of dispatching call check the violation of
13908         restriction No_Dispatching_Calls.
13909         (Check_Array_Type): Check new -gnatyA array index style option
13910
13911         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
13912         attempt to derive from a synchronized tagged type.
13913         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
13914         type, inherit the class-wide type already created, because it may
13915         already have been used in a self-referential anonymous access component.
13916         (Mentions_T): Recognize self-referential anonymous access components
13917         that use (a subtype of) the class-wide type of the enclosing type.
13918         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
13919         Derived_Type for Prev formal on call to
13920         Check_Anonymous_Access_Components rather than Empty.
13921         (Make_Incomplete_Type_Declaration): Add test for case where the type has
13922         a record extension in deciding whether to create a class-wide type,
13923         rather than just checking Tagged_Present.
13924         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
13925         to stand-alone object declarations as well as component declarations.
13926         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
13927         prevent accidental overwriting when enclosing package appears in
13928         a limited_with_clause.
13929         (Array_Type_Declaration): If the component type is an anonymous access,
13930         the associated_node for the itype is the type declaration itself.
13931         (Add_Interface_Tag_Components): Modified to support concurrent
13932         types with abstract interfaces.
13933         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
13934         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
13935         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
13936         to complete the decoration of synchronized interface types. Add also
13937         a call to Check_Abstract_Interfaces to verify the ARM rules.
13938         (Derive_Interface_Subprograms): Modified to support concurrent types
13939         with abstract interfaces.
13940         (Analyze_Subtype_Indication): Resolve the range with the given subtype
13941         mark, rather than delaying the full resolution depending on context.
13942         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
13943         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
13944         Array_Type_Declaration,Build_Derived_Record_Type,
13945         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
13946         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
13947         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
13948         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13949         called only when appropriate.
13950         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
13951         to private type.
13952         (Analyze_Subtype_Declaration): For an access subtype declaration, create
13953         an itype reference for the anonymous designated subtype, to prevent
13954         scope anonmalies in gigi.
13955         (Build_Itype_Reference): New utility, to simplify construction of such
13956         references.
13957
13958 2007-04-06  Vincent Celier  <celier@adacore.com>
13959
13960         * errutil.adb (Initialize): Initialize warnings table, if all warnings
13961         are suppressed, supply an initial dummy entry covering all possible
13962         source locations.
13963
13964         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
13965         and start with only one, such as "-RTS=none".
13966         (Collect_Arguments): Do not check for sources outside of projects.
13967         Do not collect arguments if project is externally built.
13968         (Compile_Sources): Do nothing, not even check if the source is up to
13969         date, if its project is externally built.
13970         (Compile): When compiling a predefined source, add -gnatpg
13971         as the second switch, after -c.
13972         (Compile_Sources): Allow compilation of Annex J renames without -a
13973         (Is_In_Object_Directory): Check if the ALI file is in the object
13974         even if there is no project extension.
13975         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
13976         gnatbind if the ALI file effectively exists.
13977         (Initialize): Add the directory where gnatmake is invoked in front of
13978         the path if it is invoked from a bin directory, even without directory
13979         information, so that the correct GNAT tools will be used when spawned
13980         without directory information.
13981
13982         * makeusg.adb: Change switch -S to -eS
13983         Add lines for new switches -we, -wn and -ws
13984         Add line for new switch -p
13985
13986         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
13987         Treat_As_Error and there are warnings.
13988
13989         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
13990         -gnatww Change gnatmake switch -S to -eS
13991         (Scan_Make_Switches): Code reorganisation. Process separately multi
13992         character switches and single character switches.
13993         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
13994         False when switch is not recognized by gnatmake.
13995         (Scan_Make_Switches): Set Setup_Projects True when -p or
13996         --create-missing-dirs is specified.
13997
13998         * fname.adb (Is_Predefined_File_Name): Return True for annex J
13999         renamings Calendar, Machine_Code, Unchecked_Conversion and
14000         Unchecked_Deallocation only when Renamings_Included is True.
14001
14002         * par.adb: Allow library units Calendar, Machine_Code,
14003         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
14004         when -gnatg is not specified.
14005         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14006         there is no need to generate always a record_definition_node in case
14007         of synchronized interface types.
14008         (SIS_Entry_Active): Initialize global variable to False
14009         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
14010         indicate cases where AI-447 says "not null" is legal.
14011
14012         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
14013
14014         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
14015         files with with several lines starting with the object fileb name.
14016         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
14017         is specified.
14018         (Initialize): Add the directory where gprmake is invoked in front of the
14019         path, if it is invoked from a bin directory or with directory
14020         information, so that the correct GNAT tools will be used when invoked
14021         directly.
14022         (Check_Compilation_Needed): Process correctly backslashes on Windows.
14023
14024         * vms_data.ads: Update switches/qualifiers
14025
14026 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14027             Thomas Quinot  <quinot@adacore.com>
14028
14029         * exp_aggr.adb:
14030         If the array component is a discriminated record, the array aggregate
14031         is non-static even if the component is given by an aggregate with
14032         static components.
14033         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
14034         (Convert_Aggr_In_Allocator): If the allocator is for an access
14035         discriminant and the type is controlled. do not place on a finalization
14036         list at this point. The proper list will be determined from the
14037         enclosing object.
14038         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
14039         initialize record controller if needed, before the components, to ensure
14040         that they are properly finalized.
14041         (Build_Record_Aggr_Code): For the case of an array component that has a
14042         corresponding array aggregate in the record aggregate, perform sliding
14043         if required.
14044
14045 2007-04-06  Javier Miranda  <miranda@adacore.com>
14046             Gary Dismukes  <dismukes@adacore.com>
14047             Ed Schonberg  <schonberg@adacore.com>
14048
14049         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
14050         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
14051
14052         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
14053         accessibility on class-wide allocators if the allocator occurs at the
14054         same scope level as the allocator's type. The check is guaranteed to
14055         succeed in that case, even when the expression originates from a
14056         parameter of the containing subprogram.
14057         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
14058         under No_Dispatching_Calls restriction. During the semantic analysis
14059         we already notified such violation.
14060         (Tagged_Membership): Constant folding. There is no need to check
14061         the tag at run-time if the type of the right operand is non
14062         class-wide abstract.
14063         Replace call to Is_Ancestor by call to Is_Parent
14064         to support concurrent types with interface types.
14065         (Expand_N_Allocator): Add an assertion associated with the generation
14066         of the master_id.
14067         (Expand_N_Slice): Do not enable range check to nodes associated
14068         with the frontend expansion of the dispatch table.
14069         (Is_Local_Access_Discriminant): Subsidiary function to
14070         Expand_N_Allocator.
14071         (Tagged_Membership): Replace generation of call to the run-time
14072         subprogram CW_Membership by call to Build_CW_Membership.
14073         (Expand_Allocator_Expression): Replace generation of call to the
14074         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14075
14076         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
14077         initialize most the TSD components by means of an aggregate.
14078         Modify the declaration of the object containing the TSD
14079         because we now expand code that has a higher level of abstraction.
14080         The TSD has a discriminant containing the Inheritance Depth Level,
14081         value that is used in the membership test but also to fix the size
14082         of the table of ancestors.
14083         (Expand_Interface_Conversion): Insert function body at the closest place
14084         to the conversion expression, to prevent access-before-elaboration
14085         errors in the backend.
14086         Code improved to reduce the size of the dispatch table if
14087         compiling under restriction No_Dispatching_Calls plus code cleanup.
14088         Code reorganization plus removal of calls to Set_Num_Prim_Ops
14089         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
14090         (Expand_Dispatching_Call): Minor code reorganization plus addition of
14091         code to return immediately if compiling under No_Dispatching_Calls
14092         restriction.
14093         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
14094         CPP_Virtual and CPP_Vtable are no longer supported.
14095         (Expand_Interface_Conversion): Add missing support for interface type
14096         derivations.
14097         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
14098         Is_Parent to support concurrent types with interfaces.
14099         (Init_Predefined_Interface_Primitives): Removed.
14100         (Make_Secondary_DT): Modified to support concurrent record types.
14101         (Set_All_DT_Position): Modified to support concurrent record types.
14102         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14103         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
14104         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
14105         with CW_Membership.
14106         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14107         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
14108         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
14109         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
14110         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
14111         (Expand_Dispatching_Call): Replace generation of call to the run-time
14112         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
14113         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
14114         Address.
14115         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
14116         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
14117         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
14118         Build_Set_Prim_Op_Address.
14119         (Get_Remotely_Callable): Subprogram removed.
14120         (Init_Predefined_Interface_Primitives): Replace generation of call to
14121         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
14122         Prims.
14123
14124         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
14125         First (Parameter_Associations ()) with the call to First_Actual that
14126         returns an actual parameter expression for both named and positional
14127         associations.
14128
14129         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
14130         check violation of restriction No_Dispatching_Calls.
14131         (Check_Controlling_Type): A formal of a tagged incomplete type is a
14132         controlling argument.
14133
14134         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
14135         First/Next_Component_Or_Discriminant
14136         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
14137         (Find_Implemented_Interface): Removed. All the calls to this subprogram
14138         specify Any_Limited_Interface, and this functionality is already
14139         provided by the function Has_Abstract_Interfaces.
14140         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
14141         support concurrent types implementing interfaces.
14142         (Find_Implemented_Interface): Removed. All the calls to this subprogram
14143         specify kind Any_Limited_Interface, and this functionality is already
14144         provided by the function Has_Abstract_Interfaces.
14145         (Remove_Side_Effects): replace Controlled_Type by
14146         CW_Or_Controlled_Type whenever the issue is related to
14147         using or not the secondary stack.
14148
14149         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
14150         P_Interface_Type_Definition to fulfill the new interface (the formal
14151         Is_Synchronized is no longer required).
14152
14153         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
14154         Update dependencies.
14155
14156         * exp_atag.ads, exp_atag.adb: New file
14157
14158 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14159             Bob Duff  <duff@adacore.com>
14160             Cyrille Comar  <comar@adacore.com>
14161
14162         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
14163         anonymous, use finalization list of enclosing dynamic scope.
14164         (Expand_N_Package_Declaration): For a library package declaration
14165         without a corresponding body, generate RACW subprogram bodies in the
14166         spec (just as we do for the task activation call).
14167         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
14168         Is_Abstract_Type. Make sure these are called only when appropriate.
14169         Remove all code for DSP option
14170         (CW_Or_Controlled_Type): new subprogram.
14171
14172 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
14173             Ed Schonberg  <schonberg@adacore.com>
14174             Gary Dismukes  <dismukes@adacore.com>
14175
14176         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
14177         parameter. If it is set to true, return a result capped according to
14178         the global upper bound for the index of an entry family.
14179         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
14180         (Build_Find_Body_Index): Adjust for above change.
14181         (Entry_Index_Expression): Likewise.
14182         (Is_Potentially_Large_Family): New function extracted from...
14183         (Collect_Entry_Families): ...here. Call it to detect whether the family
14184         is potentially large.
14185         (Build_Entry_Count_Expression): If the family is potentially large, call
14186         Family_Size with 'Cap' set to true.
14187         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
14188         a protected version of an operation declared in the private part of
14189         a protected object, because they may be invoked through a callback.
14190         (Set_Privals): If the type of a private component is an anonymous access
14191         type, do not create a new itype for each protected body.
14192         If the body of a protected operation creates
14193         controlled types (including allocators for class-widetypes), the
14194         body of the corresponding protected subprogram must include a
14195         finalization list.
14196         (Build_Activation_Chain_Entity): Build the chain entity for extended
14197         return statements.
14198         (Type_Conformant_Parameters): Use common predicate Conforming_Types
14199         to determine whether operation overrides an inherited primitive.
14200         (Build_Wrapper_Spec): Add code to examine the parents while looking
14201         for a possible overriding candidate.
14202         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
14203         hold an actual parameter value since its initialization is separated
14204         from the the declaration. Prevents errors on null-excluding access
14205         formals.
14206
14207 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14208             Pablo Oliveira  <oliveira@adacore.com>
14209
14210         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
14211         Do an Unchecked_Conversion to handle the passage from the Underlying
14212         Type to the Base Type when calling Build_To_Any_Call and
14213         Build_From_Any_Call.
14214         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
14215         E_Constant, depending upon Variable formal.
14216         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14217         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
14218         parameter that requires an extra constrained parameter, declare
14219         temporary for actual as a variable, not a constant.
14220         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
14221         the unit being compiled is the one that contains the stub type.
14222         Change primitive operation name for the RACW associated with a RAS
14223         from Call to _Call so it cannot clash with any legal identifier.
14224         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
14225         Is_RAS.
14226         (Append_RACW_Bodies): New subprogram.
14227         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
14228         Add_Receiving_Stubs_To_Declarations functions.
14229         When expanding a package body, this list correspond to the
14230         statements in the HSS at the end of the pacakge.
14231         When expanding a package spec, this list correspond to the
14232         spec declarations.
14233         (Add_Receiving_Stubs_To_Declarations): Append the function
14234         registering the receiving stubs at the end of the 'Stmts' list.
14235         (RCI_Package_Locator): Pass the new Version generic formal when
14236         instantiating a RCI_Locator package.
14237         (Build_From_Any_Function): To compute the High bound for an
14238         unconstrained array actual, we add the Low bound with the length.
14239         Thus we must convert the low bound and the length to an appropriate
14240         type before doing the sum.
14241         (Build_Subprogram_Receiving_Stubs, PolyORB):
14242          * Retrieve the extra formals parameters at the
14243            end of the parameter stream.
14244          * Use Move_Any_Value to write back out parameters
14245            after executing the request as it is more efficient
14246            than Copy_Any_Value.
14247          * Build the any containing Extra Formals with the
14248            appropriate typecode.
14249         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
14250         empty Component_List.
14251         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
14252         the tree the declaration for an object that serves as actual parameter
14253         in server-side stubs.
14254         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14255         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14256         Use Build_Actual_Object_Declaration to prepare the actuals.
14257         (Add_Parameter_To_NVList): Set the parameter mode to In for
14258         Extra Constrained Parameters.
14259         (Build_General_Calling_Stubs): Set the parameter type to boolean for
14260         Extra Constrained parameters.
14261         (Build_To_Any_Function, Build_From_Any_Function,
14262         Built_TypeCode_Function): When Typ is implicit, call the correct
14263         function with the first not implicit parent type.
14264         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
14265         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
14266         typecode from the Etype. Therefore we retrieve the correct typecode
14267         with a call to Get_Any_Type.
14268         (Copy_Specification): Do controlling formal type substitution based on
14269         Is_Controlling_Formal flag, instead of caller-provided object type.
14270         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
14271         a RACW primitive operation, we might get a subprogram declaration for an
14272         ancestor of the RACW designated type (not for the designated type
14273         itself), in the case where this operation is inherited. In this case we
14274         have no easy means of determining the original tagged type for which
14275         the primitive was declared, so instead we now rely on
14276         Copy_Specification to use the Is_Controlling_Formal flag to determine
14277         which formals require type substitution.
14278
14279 2007-04-06  Robert Dewar  <dewar@adacore.com>
14280             Ed Schonberg  <schonberg@adacore.com>
14281
14282         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
14283         GNAT.Current_Exception are not allowed if pragma Restrictions
14284         (No_Exception_Propagation) is set and in any case make the associated
14285         handler unsuitable as a target for a local raise statement.
14286         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
14287         run-time subprogram CW_Membership by call to Build_CW_Membership.
14288         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
14289         by a function call, a temporary must be created before expanding the
14290         Constructor_Call itself, to prevent out-of-order elaboration in the
14291         back-end when stack checking is enabled..
14292
14293 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14294
14295         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
14296         result are the bounds of the left operand, not the right.
14297
14298 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14299
14300         * exp_strm.adb
14301         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
14302          discriminant defaults.
14303         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
14304         (Make_Component_List_Attributes): Ditto.
14305
14306 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14307             Bob Duff  <duff@adacore.com>
14308
14309         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
14310         an association with a box as providing a value even though the
14311         initialization procedure for the type is not available.
14312         (Resolve_Record_Aggregate): Check that a choice of an association with a
14313         box corresponds to a component of the type.
14314         (Resolve_Record_Aggregate): Split Is_Abstract flag into
14315         Is_Abstract_Subprogram and Is_Abstract_Type.
14316
14317         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
14318         assert.
14319
14320         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
14321         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14322         called only when appropriate.
14323
14324 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14325
14326         * g-alleve.ads (Low Level Vector type definitions): Map each to the
14327         associated vector view instead of all to the unsigned char view.
14328
14329         * g-altcon.adb (Generic_Conversions): New internal generic package,
14330         offering facilities for all the Vector/View conversion routines
14331         implemented by this unit.
14332         (To_View/To_Vector - all versions): Reimplemented in a systematic
14333         manner, using the internal Generic_Conversions facilities.
14334
14335 2007-04-06  Pascal Obry  <obry@adacore.com>
14336
14337         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
14338         string.
14339         (Create): Free the source string before storing the new one.
14340
14341 2007-04-06  Vincent Celier  <celier@adacore.com>
14342
14343         * g-debpoo.adb (Validity): New package with a complete new
14344         implementation of subprograms Is_Valid and Set_Valid.
14345         (Is_Valid): Move to local package Validity
14346         (Set_Valid): Move to local package Validity
14347
14348 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14349             Pablo Oliveira  <oliveira@adacore.com>
14350
14351         * g-expect.adb (Get_Command_Output): When expanding the output buffer
14352         we must ensure that there is enough place for the new data we are going
14353         to copy in.
14354
14355 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14356
14357         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
14358         computation.
14359
14360 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
14361             Vincent Celier  <celier@adacore.com>
14362
14363         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
14364         (Stack_String): Add this String that contains the name of the Stack
14365         package in the project file.
14366         (Packages_To_Check_By_Stack): Add this list that contains the packages
14367         to be checked by gnatstack, which are the naming and the stack packages.
14368         (Check_Files): If no .ci files were specified for gnatstack we add all
14369         the .ci files belonging to the projects, including binder generated
14370         files.
14371         (Non_VMS_Usage): Document that gnatstack accept project file switches.
14372         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
14373         Add gnatstack to the list of commands that use project file related
14374         switches, and get the single attribute Switches from the stack package
14375         in a project file when calling gnatstack. Parse the -U flag for
14376         processing files belonging to all projects in the project tree.
14377         Remove all processing for command Setup
14378
14379         * prj-attr.adb: Add new package Stack with single attribute Switches
14380
14381         * vms_conv.ads (Command_Type): Add command Stack.
14382         Move to body declarations that are only used in the body: types Item_Id,
14383         Translation_Type, Item_Ptr, Item and its subtypes.
14384
14385         * vms_conv.adb: (Initialize): Add data for new command Stack.
14386         Add declarations moved from the spec: types Item_Id, Translation_Type,
14387         Item_Ptr, Item and its subtypes.
14388         (Cargs_Buffer): New table
14389         (Cargs): New Boolean global variable
14390         (Process_Buffer): New procedure to create arguments
14391         (Place): Put character in table Buffer or Cargs_Buffer depending on the
14392          value of Cargs.
14393         (Process_Argument): Set Cargs when processing qualifiers for GNAT
14394         COMPILE
14395         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
14396         empty, for table Cargs_Buffer.
14397         (Initialize): Remove component Setup in Command_List
14398
14399 2007-04-06  Vincent Celier  <celier@adacore.com>
14400
14401         * gprep.adb (Process_Files.Process_One_File): Use full file name when
14402         issuing pragma Source_Reference.
14403
14404 2007-04-06  Emmanuel Briot  <briot@adacore.com>
14405
14406         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
14407         [[:xdigit:]] character class.
14408         Also raise an exception when an invalid character class is used.
14409
14410 2007-04-06  Pascal Obry  <obry@adacore.com>
14411
14412         * i-cstrea.ads: (fopen): Add encoding parameter.
14413         (freopen): Idem.
14414         Change reference from a-sysdep.c to sysdep.c in comment.
14415         Update copyright notice.
14416         This set of patch add support for the encoding form parameter.
14417
14418         * mingw32.h (S2WSU): New macro to convert from a string to a
14419         wide-string using the UTF-8 encoding. The S2WS macro supports now only
14420         standard 8bits encoding.
14421         (WS2SU): As above but converting from wide-sring to string.
14422         This is needed as it is necessary to have access to both versions in the
14423         runtime for the form parameter encoding support.
14424         This set of patch add support for the encoding form parameter.
14425         (S2WS): Improve implementation to handle cases where the filename is not
14426         UTF-8 encoded. In this case we default to using the current code page
14427         for the conversion.
14428
14429         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
14430         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
14431         the constants defined in adaint.h.
14432         (fopen): Add encoding parameter.
14433         (freopen): Idem.
14434
14435         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
14436         encoding. This is needed for the Reset routine (freopen low level-call).
14437
14438         * s-fileio.adb (Open): Decode encoding form parameter and set the
14439         corresponding encoding value into AFCB structure.
14440         (Reset): Pass the encoding value to freopen.
14441         (Close): Move the call to Lock_Task to the beginning of the procedure.
14442
14443 2007-04-06  Geert Bosch  <bosch@adacore.com>
14444             Robert Dewar  <dewar@adacore.com>
14445
14446         * i-fortra.ads: Add Double_Complex type.
14447
14448         * impunit.adb: (Is_Known_Unit): New function
14449         Add Gnat.Byte_Swapping
14450         Add GNAT.SHA1
14451         Add new Ada 2005 units
14452         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
14453         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
14454         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
14455         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
14456
14457         * impunit.ads (Is_Known_Unit): New function
14458
14459         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
14460         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
14461         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
14462         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
14463         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
14464         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
14465         New files.
14466
14467         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
14468
14469         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
14470
14471 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
14472             Arnaud Charlet  <charlet@adacore.com>
14473
14474         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
14475         __gnat_adjust_context_for_raise.
14476         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
14477         implementation of floating point operations as native x86 targets.
14478         So the FPU should be initialized in the same way using finit. Fix
14479         floating point operations accuracy issues.
14480         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
14481         member in struct sigaction, so as to avoid warning for incompatible
14482         pointer types.
14483
14484 2007-04-06 Serguei Rybin  <rybin@adacore.com>
14485
14486         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
14487         switches from previously loaded tree
14488
14489 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14490
14491         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
14492         cases where a given dependency has a body or not.
14493         (Write_With_File_Names): New subprogram, common code for the two cases
14494         above.
14495
14496 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14497             Javier Miranda  <miranda@adacore.com>
14498
14499         * lib-xref.ads, lib-xref.adb: 
14500         Modify the loop that collects type references, to include interface
14501         types that the type implements. List each of these interfaces when
14502         building the entry for the type.
14503         (Generate_Definition): Initialize component Def and Typ of new entry
14504         in table Xrefs, to avoid to have these components unitialized.
14505         (Output_References): Split Is_Abstract flag into
14506         Is_Abstract_Subprogram and Is_Abstract_Type.
14507         (Generate_Reference): Add barrier to do not generate the warning
14508         associated with Ada 2005 entities with entities generated by the
14509         expander.
14510
14511 2007-04-06  Robert Dewar  <dewar@adacore.com>
14512             Arnaud Charlet  <charlet@adacore.com>
14513             Vincent Celier  <celier@adacore.com>
14514
14515         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
14516         Update 'Exception Handling Control' chapter which was outdated.
14517         Minor fix to documentation of -gnatwq
14518         Remove section "Adapting the Run Time to a New C++ Compiler" because
14519         it is now obsolete.
14520         Add passage on need of -nostart-files in some non-ada-main cases.
14521         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
14522         Update documentation about Interfacing with C++
14523         Add documentation for new gnatmake switch -p
14524         Add missing protocol part in URLs.
14525         Document -gnatyA
14526         Document pragma Compile_Time_Error
14527         Add documentation for Object_Size indicating that stand alone
14528         objects can have a larger size in some cases.
14529         Add node for GNAT.Byte_Swapping, GNAT.SHA1
14530         Update reference to the Ravenscar profile.
14531         Document pragma Unreferenced_Objects
14532
14533         * gnat-style.texi: Fix typo
14534
14535 2007-04-06  Vincent Celier  <celier@adacore.com>
14536
14537         * mlib.adb (Building_Library): Only output "building a library..." in
14538         verbose mode
14539
14540         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
14541         files in verbose mode.
14542
14543         * mlib-utl.adb (Ar): Only output the first object files when not in
14544         verbose mode.
14545         (Gcc): Do not display all the object files if not in verbose mode, only
14546         the first one.
14547
14548 2007-04-06  Robert Dewar  <dewar@adacore.com>
14549
14550         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
14551         it no longer destroys the contents of Name_Buffer or Name_Len and
14552         non-standard and invalid names are handled better.
14553         (Get_Decoded_Name_String): Improve performance by using
14554         Name_Has_No_Encodings flag in the name table.
14555         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
14556         Used for debugging printouts.
14557
14558 2007-04-06  Robert Dewar  <dewar@adacore.com>
14559             Javier Miranda  <miranda@adacore.com>
14560             Bob Duff  <duff@adacore.com>
14561
14562         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
14563         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14564         there is no need to generate always a record_definition_node in case
14565         of synchronized interface types.
14566         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
14567         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
14568         illegal in Ada 95, in cases where it is legal. Change the warnings to
14569         errors in other cases. Don't give the error unless the "not null"
14570         parses properly. Correct the source position at which the error occurs.
14571         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
14572         P_Null_Exclusion, to suppress "not null" warnings.
14573         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
14574         associated goto statements.
14575
14576         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
14577         of END RECORD
14578
14579         * scans.ads (Type_Token_Location): New flag
14580
14581         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
14582         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
14583         P_Null_Exclusion, to suppress "not null" warnings.
14584
14585 2007-04-06  Robert Dewar  <dewar@adacore.com>
14586             Javier Miranda  <miranda@adacore.com>
14587             Bob Duff  <duff@adacore.com>
14588             Vincent Celier  <celier@adacore.com>
14589
14590         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
14591         (Extensions_Allowed): No longer sets Ada_Version
14592         Entry for pragma Unreferenced_Objects
14593
14594         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
14595         system.tasking if pragma priority used in a procedure
14596         (Analyze_Pragma, case Warning): Handle dot warning switches
14597         (Process_Compile_Time_Warning_Or_Error): New procedure
14598         (Analyze_Pragma): Add processing for Compile_Time_Error
14599         Add support for extra arguments External_Name and Link_Name.
14600         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
14601         (Process_Import_Or_Interface): Add support for the use of pragma Import
14602         with tagged types.
14603         (Extensions_Allowed): No longer affects Ada_Version
14604         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
14605         Is_Abstract_Type. Make sure these are called only when appropriate.
14606         Add processing for pragma Unreferenced_Objects
14607
14608         * snames.h, snames.ads, snames.adb: Add entry for pragma
14609         Compile_Time_Error
14610         Add new standard name Minimum_Binder_Options for new gprmake
14611         Add new standard names for gprmake: Archive_Suffix,
14612         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
14613         Library_Support, Library_Version_Options,
14614         Shared_Library_Minimum_Options,
14615         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
14616         Change Name_Call to Name_uCall so that it cannot clash with a legal
14617         subprogram name.
14618         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
14619         Append C_Plus_Plus to convention identifiers as synonym for CPP
14620         Add new standard names Stack and Builder_Switches
14621         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
14622         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
14623         Run_Path_Option, Toolchain_Version.
14624         Entry for pragma Unreferenced_Objects
14625
14626         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
14627         switches, without repetition of "eD". Make sure that last character of
14628         -gnatep= switch is not taken as -gnat switch character.
14629         Complete rewrite of circuit for handling saving compilation options
14630         Occasioned by need to support dot switchs for -gnatw, but cleans up
14631         things in general.
14632         -gnatX does not affect Ada_Version
14633         Include -gnatyA in -gnatg style switches
14634
14635         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
14636         warnings on return objects.
14637         (Warn_On_Useless_Assignment): Exclude warnings on return objects
14638         (Set_Dot_Warning_Switch): New procedure
14639         (Check_References): Add missing case of test for
14640         Has_Pragma_Unreferenced_Objects
14641         (Output_Unreferenced_Messages): Implement effect of new pragma
14642         Unreferenced_Objects, remove special casing of limited controlled
14643         variables.
14644
14645 2007-04-06  Vincent Celier  <celier@adacore.com>
14646
14647         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
14648         the default project path, initially done during elaboration of the
14649         package.
14650         If the prefix returned by Sdefault is null, get the prefix from a call
14651         to Executable_Prefix_Path.
14652         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
14653         null.
14654
14655         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
14656         canonical directory name to open the directory from which files are
14657         retrieved.
14658         (Record_Other_Sources): Idem.
14659         (Locate_Directory): Add the possibility to create automatically missing
14660         directories when Setup_Projects is True.
14661         Call Locate_Directory so that the directory will be created when
14662         Setup_Projects is True, for object dir, library dir, library ALI dir,
14663         library source copy dir and exec dir.
14664
14665         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
14666         versions of GNAT.
14667
14668 2007-04-06  Robert Dewar  <dewar@adacore.com>
14669
14670         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
14671         Use First/Next_Component_Or_Discriminant
14672         (Analyze_Record_Representation_Clause):
14673         Use First/Next_Component_Or_Discriminant
14674         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
14675         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
14676         definition if type is unconstrained.
14677         (Adjust_Record_For_Reverse_Bit_Order): New procedure
14678         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
14679         Is_Abstract_Subprogram and Is_Abstract_Type.
14680         (Adjust_Record_For_Reverse_Bit_Order): New procedure
14681
14682         * repinfo.adb (List_Record_Info): Use First/
14683         Next_Component_Or_Discriminant.
14684
14685         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
14686         New procedure.
14687
14688         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
14689         Include -gnatyA in default switches
14690
14691         * opt.ads: (Warn_On_Non_Local_Exception): New flag
14692         (Warn_On_Reverse_Bit_Order): New flag
14693         (Extensions_Allowed): Update the documentation.
14694         (Warn_On_Questionable_Missing_Parens): Now on by default
14695
14696         * usage.adb: Add documentation of -gnatw.x/X switches
14697         Document new -gnatyA style switch
14698         -gnatq warnings are on by default
14699
14700 2007-04-06  Ed Falis  <falis@adacore.com>
14701
14702         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
14703         full word is no longer compared twice.
14704
14705 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14706
14707         * sem_ch10.adb (Install_Limited_Context_Clauses.
14708         Expand_Limited_With_Clause): Use a new copy of selector name in the
14709         call to Make_With_Clause. This fixes the tree structure for ASIS
14710         purposes. Nothing is changed in the compiler behaviour.
14711         (Process_Body_Clauses): Handle properly use clauses whose prefix is
14712         a package renaming.
14713         (Install_Limited_With_Clauses): Do not install non-limited view when it
14714         is still incomplete.
14715
14716 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14717             Gary Dismukes  <dismukes@adacore.com>
14718
14719         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
14720         when capturing size information, instead of base type, which for a
14721         formal array type will be the unconstrained type.
14722         (Analyze_Formal_Object_Declaration): Add check for illegal default
14723         expressions for a formal in object of a limited type.
14724         (Instantiate_Object): Ditto.
14725         (Check_Formal_Package_Instance): Skip entities that are formal objects,
14726         because they were defaulted in the formal package and no check applies
14727         to them.
14728         (Check_Formal_Package_Instance): Extend conformance check to other
14729         discrete types beyond Integer.
14730         (Process_Default): Copy directly the unmatched formal. A generic copy
14731         has already been performed in Analyze_Formal_Package.
14732         (Analyze_Associations): If a formal subprogram has no match, check for
14733         partial parametrization before looking for a default, to prevent
14734         spurious errors.
14735         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
14736         not set the instantiation environment before analyzing the actuals.
14737         Fixes regression on 8515-003 with implementation of AI-133.
14738         Set_Instance_Env checks whether the generic unit is a predefined
14739         unit, in which case the instance must be analyzed with the latest Ada
14740         mode. This setting must take place after analysis of the actuals,
14741         because the actuals must be analyzed and frozen in the Ada mode extant
14742         outside of the current instantiation.
14743         (Save_Env, Restore_Env): Preserve and restore the configuration
14744         parameters so that predefined units can be compiled in the proper Ada
14745         mode.
14746         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
14747         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
14748         and Is_Abstract_Type.
14749         (Analyze_Formal_Package): For better error recovery, Add exception
14750         handler to catch Instantion_Error, which can be raised in
14751         Analyze_Associations
14752
14753 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14754             Bob Duff  <duff@adacore.com>
14755             Gary Dismukes  <dismukes@adacore.com>
14756
14757         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
14758         prefix type is a discriminated subtype of the type of the formal.
14759         (Analyze_Allocator): Collect all coextensions regardless of the context.
14760         Whether they can be allocated statically is determined in exp_ch4.
14761         (Analyze_Selected_Component): If the prefix is a limited view and the
14762         non-limited view is available, use the non-limited one.
14763         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
14764         therefore illegal), suggest a qualified expression rather than a type
14765         conversion, because a type conversion would be illegal in this context.
14766         (Anayze_Allocator): Trace recursively all nested allocators so that all
14767         coextensions are on the corresponding list for the root. Do no mark
14768         coextensions if the root allocator is within a declaration for a stack-
14769         allocated object, because the access discriminants will be allocated on
14770         the stack as well.
14771         (Analyze_Call): Remove restriction on calls to limited functions for the
14772         cases of generic actuals for formal objects, defaults for formal objects
14773         and defaults for record components.
14774         (Analyze_Allocator): Before analysis, chain coextensions on the proper
14775         element list. Their expansion is delayed until the enclosing allocator
14776         is processed and its finalization list constructed.
14777         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
14778         for an operation with the given name among the primitive operations of
14779         the corresponding record type.
14780         (Analyze_Selected_Component): If the prefix is a task type that
14781         implements an interface, and there is no entry with the given name,
14782         check whether there is another primitive operation (e.g. a function)
14783         with that name.
14784         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
14785         properly the indexing of a function call written in prefix form, where
14786         the function returns an array type, and all parameters of the function
14787         except the first have defaults.
14788         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
14789         the original operands, rather than relocating them, for efficiency and
14790         to work properly when an operand is overloaded.
14791         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
14792         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
14793         (Analyze_Selected_Component): If the prefix is a private extension, only
14794         scan the visible components, not those of the full view.
14795         (Try_Primitive_Operation): If the operation is a procedure, collect all
14796         possible interpretations, as for a function, because in the presence of
14797         classwide parameters several primitive operations of the type can match
14798         the given arguments.
14799
14800 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14801             Robert Dewar  <dewar@adacore.com>
14802
14803         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
14804         tag-indeterminate call to an abstract function, when the left-hand side
14805         is not classwide.
14806         (Analyze_Loop_Statement): Improve detection of infinite loops
14807
14808 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14809             Thomas Quinot  <quinot@adacore.com>
14810
14811         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
14812         out of Analyze_Package_Declaration, because processing must be applied
14813         to package bodies as well, for deferred constants completed by pragmas.
14814         (Analyze_Package_Declaration): When the package declaration being
14815         analyzed does not require an explicit body, call Check_Completion.
14816         (May_Need_Implicit_Body): An implicit body is required when a package
14817         spec contains the declaration of a remote access-to-classwide type.
14818         (Analyze_Package_Body): If the package contains RACWs, append the
14819         pending subprogram bodies generated by exp_dist at the end of the body.
14820         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
14821         Is_Abstract_Subprogram and Is_Abstract_Type.
14822         (Preserve_Full_Attributes): The full entity list is not an attribute
14823         that must be preserved from full to partial view.
14824
14825         * sem_dist.adb (Add_RAS_Dereference_TSS):
14826         Change primitive name to _Call so it cannot clash with any legal
14827         identifier, and be special-cased in Check_Completion.
14828         Mark the full view of the designated type for the RACW associated with
14829         a RAS as Comes_From_Source to get proper view switching when installing
14830         private declarations.
14831         Provite a placeholder nested package body along with the nested spec
14832         to have a place for Append_RACW_Bodies to generate the calling stubs
14833         and stream attributes.
14834
14835 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14836             Robert Dewar  <dewar@adacore.com>
14837
14838         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
14839         that is a limited view, check the non-limited view if available.
14840         (Undefined): Refine error message for missing with of Text_IO
14841         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
14842         to distinguish real missing with cases.
14843         Fix format of all missing with messages
14844         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
14845         renaming as body when renamed entity is abstract.
14846
14847 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14848             Javier Miranda  <miranda@adacore.com>
14849
14850         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
14851         predicate recursive, to handle complex expressions on literals whose
14852         spurious ambiguity comes from the abstract interpretation of some
14853         subexpression.
14854         (Interface_Present_In_Ancestor): Add support to concurrent record
14855         types.
14856         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
14857         Is_Abstract_Subprogram and Is_Abstract_Type.
14858
14859 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14860             Javier Miranda  <miranda@adacore.com>
14861
14862         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
14863         dereference of a local object R created as a reference to another
14864         object O, use the access level of O.
14865         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
14866         rather than local Same_Formal_Type, to check whether protected operation
14867         overrides an inherited one.
14868         (Same_Formal_Type): New predicate, used when matching signatures of
14869         overriding synchronized operations, to handle the case when a formal
14870         has a type that is a generic actual.
14871         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
14872         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
14873         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
14874         syntactic ambiguities involving indexing of function calls that return
14875         arrays.
14876         (Abstract_Interface_List): New subprogram that returns the list of
14877         abstract interfaces associated with a concurrent type or a
14878         concurrent record type.
14879         (Interface_Present_In_Parent): New subprogram used to check if a
14880         given type or some of its parents implement a given interface.
14881         (Collect_Abstract_Interfaces): Add support for concurrent types
14882         with interface types.
14883         (Has_Abstract_Interfaces): Add support for concurrent types with
14884         interface types.
14885         (Is_Parent): New subprogram that determines whether E1 is a parent
14886         of E2. For a concurrent type its parent is the first element of its
14887         list of interface types; for other types this function provides the
14888         same result than Is_Ancestor.
14889         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
14890         (Collect_Synchronized_Interfaces): Removed because the subprogram
14891         Collect_Abstract_Interfaces provides this functionality.
14892         (Collect_Abstract_Interfaces): Minor update to give support to
14893         concurrent types and thus avoid undesired code duplication.
14894         (Get_Subprogram_Entity): Handle entry calls.
14895         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
14896         entry calls.
14897         (Enter_Name): Do not give -gnatwh hiding warning for record component
14898         entities, they never result in hiding.
14899
14900 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
14901             Robert Dewar  <dewar@adacore.com>
14902
14903         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
14904         to chain nested components that are allocators for access discriminants
14905         of the enclosing object.
14906         Add N_Push and N_Pop nodes
14907         New field Exception_Label added
14908         (Local_Raise_Statements): New field in N_Exception_Handler_Node
14909         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
14910         (Is_Coextension): New flag for allocators, to mark allocators that
14911         correspond to access discriminants of dynamically allocated objects.
14912         (N_Block_Statement): Document the fact that the corresponding entity
14913         can be an E_Return_Statement.
14914         (Is_Coextension): New flag for allocators.
14915         Remove all code for DSP option
14916
14917         * sprint.ads, sprint.adb: Display basic information for class_wide
14918         subtypes. Add handling of N_Push and N_Pop nodes
14919
14920 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
14921
14922         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
14923         before propagating exception.
14924
14925 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14926
14927         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
14928         an address always within the call instruction from a return address.
14929
14930 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14931             Eric Botcazou  <botcazou@adacore.com>
14932
14933         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
14934         expression with a COMPOUND_EXPR including the call instead of emitting
14935         the call directly here.
14936         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
14937         high bound is constant and the slice is empty.  Tidy.
14938         (tree_transform, case N_Op_Not): Handle properly the case where the
14939         operation applies to a private type whose full view is a modular type.
14940         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
14941         Address_Clause, use the associated Expression as the GNAT tree
14942         representing the choice value to ensure the corresponding GCC tree is
14943         of the proper kind.
14944         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
14945         instead of just the operands, as the base GCC stabilize_reference does.
14946         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
14947         requested; otherwise fail.
14948         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
14949
14950 2007-04-06  Thomas Quinot  <quinot@adacore.com>
14951
14952         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
14953         implementation of UI_Div.
14954         (UI_Div): Reimplement as a call to UI_Div_Rem.
14955         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
14956         remainder, avoiding the cost of a multiplication and a subtraction.
14957         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
14958         provides both quotient and remainder in a single computation.
14959         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
14960         functions for uint.
14961         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
14962         is undefined if the given n is not inversible.
14963
14964 2007-04-06  Olivier Hainque  <hainque@adacore.com>
14965
14966         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
14967         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
14968         opcodes.
14969
14970 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
14971             Olivier Hainque  <hainque@adacore.com>
14972
14973         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
14974         when updating the contents of the old pointer to an unconstrained array.
14975         (end_subprog_body): Set error_gnat_node to Empty.
14976         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
14977         (unchecked_convert): For subtype to base type conversions, require that
14978         the source be a subtype if it is an integer type.
14979         (builtin_decls): New global, vector of available builtin functions.
14980         (gnat_pushdecl): Add global builtin function declaration nodes to the
14981         builtin_decls list.
14982         (gnat_install_builtins): Adjust comments.
14983         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
14984         calling gnat_pushdecl, so that it knows when it handed a builtin
14985         function declaration node.
14986         (builtin_decl_for): Search the builtin_decls list.
14987
14988 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
14989
14990         * s-stchop-vxworks.adb: 
14991         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
14992
14993 2007-04-06  Robert Dewar  <dewar@adacore.com>
14994             Arnaud Charlet  <charlet@adacore.com>
14995
14996         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
14997
14998         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
14999         of files
15000         Add mention of -Sev (set initialize_scalars option from environment
15001         variable at run time) in gnatbind usage message.
15002
15003         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
15004
15005         * fname-uf.ads: Minor comment fix
15006
15007         * osint.ads: Change pragma Elaborate to Elaborate_All
15008
15009         * par-load.adb: Add documentation.
15010
15011         * sem_cat.ads, sem_cat.adb: Minor code reorganization
15012
15013         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
15014
15015         * s-secsta.ads: Extra comments
15016
15017         * s-soflin.ads: Minor comment fixes
15018
15019         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
15020
15021         * s-wchcon.ads: Minor comment addition
15022
15023         * treepr.adb: Minor change in message
15024         (Print_Name,Print_Node): Make these debug printouts more robust: print
15025         "no such..." instead of crashing on bad input.
15026
15027 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
15028
15029         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
15030         instead of gnat_signed_or_unsigned_type.
15031         * utils.c (gnat_signed_or_unsigned_type): Remove.
15032         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
15033         * gigi.h (gnat_signed_or_unsigned_type): Remove
15034
15035 2007-03-09  Roger Sayle  <roger@eyesopen.com>
15036
15037         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
15038         fold with the result of buildN.
15039         * decl.c (gnat_to_gnu_entity): Likewise.
15040         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
15041         * utils.c (finish_record_type, merge_sizes, max_size, convert):
15042         Likewise.
15043         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
15044         nonbinary_modular_operation, build_binary_op, build_unary_op,
15045         build_cond_expr): Likewise.
15046
15047         * utils.c (convert): Use fold_build1 when casting values to void.
15048         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
15049         fold_convert instead of convert when appropriate.
15050
15051 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
15052
15053         * Make-lang.in: Add install-pdf target as copied from
15054         automake v1.10 rules.
15055
15056 2007-02-28  Andreas Schwab  <schwab@suse.de>
15057
15058         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
15059         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
15060         (doc/gnat-style.info): Likewise.
15061
15062 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
15063
15064         * gnat-style.texi: Standardize title page.
15065         * gnat_rm.texi: Likewise.
15066         * gnat_ugn.texi: Likewise.
15067
15068 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
15069
15070         * decl.c (annotate_value): Adjust for refactoring of tree_map
15071         hierarchy.
15072
15073 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
15074
15075         * decl.c (annotate_value): Adjust for refactoring of tree_map
15076         hierarchy.
15077
15078 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
15079
15080         PR ada/18819
15081         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
15082         untagged derived type, add hidden components to keep discriminant
15083         layout consistent, when a given discriminant of the derived type
15084         constraints several discriminants of the parent type.
15085
15086 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
15087             Sandra Loosemore  <sandra@codesourcery.com>
15088
15089         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
15090         build the call expression.
15091         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
15092         * utils.c (max_size) <tcc_exceptional>: Delete.
15093         <tcc_vl_exp>: New case.
15094         <tcc_expression>: Delete CALL_EXPR subcase.
15095         (build_global_cdtor): Use build_call_nary instead of build3.
15096         * utils2.c (build_call_1_expr): Likewise.
15097         (build_call_2_expr): Likewise.
15098         (build_call_0_expr): Likewise.
15099         (build_call_alloc_dealloc): Likewise.
15100
15101 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15102
15103         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
15104         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
15105         and _Unwind_SWord with _sleb128_t.
15106
15107 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
15108
15109         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
15110         * decl.c: Include gt-ada-decl.h.
15111         (annotate_value_cache): New.
15112         (annotate_value): Use it instead of TREE_COMPLEXITY.
15113
15114 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
15115
15116         * misc.c, utils2.c: Fix comment typos.
15117
15118 2007-01-24  Roger Sayle  <roger@eyesopen.com>
15119
15120         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
15121         TREE_CONSTANT_OVERFLOW.
15122         (allocatable_size_p, annotate_value): Likewise.
15123         * trans.c (gnat_to_gnu): Likewise.
15124         * utils.c (unchecked_convert): Likewise.
15125         * utils2.c (build_simple_component_ref): Likewise.
15126
15127 2007-01-23  Richard Guenther  <rguenther@suse.de>
15128
15129         PR bootstrap/30541
15130         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
15131         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
15132         (gnatboot3): Likewise.
15133         (GNATBIND): Do not define.
15134         * Makefile.in (GNATBIND): Do not define.
15135
15136 2007-01-08  Richard Guenther  <rguenther@suse.de>
15137
15138         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
15139         * trans.c (gnat_to_gnu): Likewise.
15140
15141 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
15142
15143         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
15144         * adaint.c: Likewise.
15145
15146 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
15147
15148         Merge from gimple-tuples-branch:
15149         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
15150
15151         * ada-tree.h (lang_tree_node): Handle gimple tuples.
15152         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
15153         GIMPLE_MODIFY_STMT.
15154
15155 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
15156
15157         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
15158         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
15159         Fix typos.
15160
15161 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
15162
15163         PR ada/27936
15164         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
15165         if the initializer takes into account the padding.
15166
15167 2006-11-11  Richard Guenther  <rguenther@suse.de>
15168
15169         * trans.c (maybe_stabilize_reference): Remove handling of
15170         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
15171
15172 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
15173
15174         PR ada/29707
15175         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
15176         (To_Target_Priority): New function.
15177
15178 2006-10-31  Robert Dewar  <dewar@adacore.com>
15179
15180         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
15181         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
15182         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
15183         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
15184         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
15185         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
15186         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
15187         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
15188         a-szbzha.adb: Minor reformatting. Fix header.
15189
15190         * a-numaux-x86.adb: Add parentheses for use of unary minus
15191         * a-ngcefu.adb: Supply missing parentheses for unary minus
15192         * a-ngcoty.adb: Add parens for use of unary minus
15193         * a-ngelfu.adb: Add missing parens for unary minus
15194         * a-tifiio.adb: Add parentheses for uses of unary minus
15195
15196 2006-10-31  Robert Dewar  <dewar@adacore.com>
15197             Bob Duff  <duff@adacore.com>
15198             Ed Schonberg  <schonberg@adacore.com>
15199
15200         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
15201         with multiplying operator.
15202         (Expected_Type_Is_Any_Real): New function to determine from the Parent
15203         pointer whether the context expects "any real type".
15204         (Resolve_Arithmetic_Op): Do not give an error on calls to the
15205         universal_fixed "*" and "/" operators when they are used in a context
15206         that expects any real type. Also set the type of the node to
15207         Universal_Real in this case, because downstream processing requires it
15208         (mainly static expression evaluation).
15209         Reword some continuation messages
15210         Add some \\ sequences to continuation messages
15211         (Resolve_Call): Refine infinite recursion case. The test has been
15212         sharpened to eliminate some false positives.
15213         Check for Current_Task usage now includes entry barrier, and is now a
15214         warning, not an error.
15215         (Resolve): If the call is ambiguous, indicate whether an interpretation
15216         is an inherited operation.
15217         (Check_Aggr): When resolving aggregates, skip associations with a box,
15218         which are priori correct, and will be replaced by an actual default
15219         expression in the course of expansion.
15220         (Resolve_Type_Conversion): Add missing support for conversion from
15221         a class-wide interface to a tagged type. Minor code cleanup.
15222         (Valid_Tagged_Converion): Add support for abstact interface type
15223         conversions.
15224         (Resolve_Selected_Component): Call Generate_Reference here rather than
15225         during analysis, and use May_Be_Lvalue to distinguish read/write.
15226         (Valid_Array_Conversion): New procedure, abstracted from
15227         Valid_Conversion, to incorporate accessibility checks for arrays of
15228         anonymous access types.
15229         (Valid_Conversion): For a conversion to a numeric type occurring in an
15230         instance or inlined body, no need to check that the operand type is
15231         numeric, since this has been checked during analysis of the template.
15232         Remove legacy test for scope name Unchecked_Conversion.
15233
15234         * sem_res.ads: Minor reformatting
15235
15236         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
15237         (PE_Current_Task_In_Entry_Body): New exception code
15238         (SE_Restriction_Violation): Removed, not used
15239
15240         * a-except.ads:  Update comments.
15241
15242         * types.h, types.ads: Add definition for Validity_Check
15243         (PE_Current_Task_In_Entry_Body): New exception code
15244         (SE_Restriction_Violation): Removed, not used
15245
15246 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15247
15248         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
15249         error status.
15250
15251 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15252             Jose Ruiz  <ruiz@adacore.com>
15253
15254         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
15255         part of Ada.Calendar: all subprogram raise Unimplemented.
15256         (Split_W_Offset): Temp function body, raising Unimplemented
15257
15258         * a-calend.ads, a-calend-vms.ads: 
15259         Add imported variable Invalid_TZ_Offset used to designate targets unable
15260         to support time zones.
15261         (Unimplemented): Temporary function raised by the body of new
15262         subprograms below.
15263         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
15264         unit provides handling of leap seconds and is used by the new Ada 2005
15265         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
15266         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
15267         version returns an extra value which is the offset to UTC.
15268
15269         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
15270         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
15271         (Split_W_Offset): New function body.
15272         (Time_Of): When a date is close to UNIX epoch, compute the time for
15273         that date plus one day (that amount is later substracted after
15274         executing mktime) so there are no problems with time zone adjustments.
15275
15276         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
15277
15278         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
15279         a-catizo.ads, a-catizo.adb: New files.
15280
15281         * impunit.adb: Add new Ada 2005 entries
15282
15283         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
15284         Rename all occurences of "__gnat_localtime_r" to
15285         "__gnat_localtime_tzoff".
15286         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
15287         zone data and calculate the GMT offset.
15288         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
15289         Use the field "tm_gmtoff" to extract the GMT offset.
15290         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
15291         the external variable "timezone" to calculate the GMT offset.
15292
15293 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15294             Jose Ruiz  <ruiz@adacore.com>
15295
15296         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
15297         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
15298         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
15299         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
15300         System.Any_Priority to a POSIX priority on the target.
15301
15302         * system-linux-ia64.ads: 
15303         Extend range of Priority types on Linux to use the whole range made
15304         available by the system.
15305
15306         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
15307         function maps from System.Any_Priority to a POSIX priority on the
15308         target.
15309         (PTHREAD_PRIO_PROTECT): Set real value.
15310         (PTHREAD_PRIO_INHERIT): Now a function.
15311         (SIGCPUFAIL): New signal.
15312         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
15313         are documented as reserved by the OS.
15314
15315         * system-aix.ads: Use the full range of priorities provided by the
15316         system on AIX.
15317
15318         * s-taprop-posix.adb: Call new function To_Target_Priority.
15319         (Set_Priority): Take into account Task_Dispatching_Policy and
15320         Priority_Specific_Dispatching pragmas when determining if Round Robin
15321         must be used for scheduling the task.
15322
15323         * system-linux-x86_64.ads, system-linux-x86.ads, 
15324         system-linux-ppc.ads: Extend range of Priority types on Linux to use
15325         the whole range made available by the system.
15326
15327         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
15328         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
15329         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
15330         when deallocating the TCB in order to avoid potential references to
15331         deallocated data.
15332         (Set_Priority): Take into account Task_Dispatching_Policy and
15333         Priority_Specific_Dispatching pragmas when determining if Round Robin
15334         or FIFO within priorities must be used for scheduling the task.
15335
15336         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
15337         the Thread field (to be used internally by the run-time system) and the
15338         kernel-level task id in the LWP field (to be used by the debugger).
15339         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
15340         instance, and propagate the current task options to the spawned task.
15341         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
15342         (Initialize): Set Round Robin dispatching when the corresponding pragma
15343         is in effect.
15344
15345 2006-10-31  Robert Dewar  <dewar@adacore.com>
15346
15347         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
15348         system-linux-hppa.ads, system-hpux-ia64.ads, 
15349         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
15350         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
15351         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
15352         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
15353         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
15354         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
15355         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
15356         Default_Bit_Order) to kill constant condition warnings for references
15357         to this switch.
15358
15359 2006-10-31  Vincent Celier  <celier@adacore.com>
15360             Eric Botcazou  <ebotcazou@adacore.com>
15361
15362         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
15363         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
15364         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
15365         Ext_To, when building the library file name
15366
15367         * mlib-tgt-vxworks.adb: ditto.
15368         (Get_Target_Suffix): Add support for x86 targets.
15369
15370         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
15371
15372         * mlib-tgt-darwin.adb: 
15373         Use Append_To, instead of Ext_To, when building the library file name
15374         (Flat_Namespace): New global variable.
15375         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
15376         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
15377         (Link_Shared_Libgcc): Delete.
15378         (Build_Dynamic_Library): Adjust for above changes.
15379         Use Opt package.
15380         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
15381
15382 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
15383
15384         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
15385         (Initialize): Add type conversions required by above change.
15386
15387 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
15388
15389         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
15390         (getpid): New body for this function that uses the underlying taskIdSelf
15391         function for VxWorks 5 and VxWorks 6 in kernel mode.
15392         (unsigned_int): New type, modular to allow logical bit operations.
15393         (taskOptionsGet): New imported function.
15394
15395         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
15396         field to be compliant with the type used by the corresponding operating
15397         system primitive.
15398
15399 2006-10-31  Pascal Obry  <obry@adacore.com>
15400             Eric Botcazou  <ebotcazou@adacore.com>
15401             Vincent Celier  <celier@adacore.com>
15402
15403         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
15404         ASCII version of the registry API. This is needed as the GNAT runtime
15405         is now UNICODE by default.
15406         Include version.h.
15407         (get_gcc_version): Do not hardcode the return value.
15408         (__gnat_file_time_name): On Windows properly set the default returned
15409         value to -1 which corresponds to Invalid_Time.
15410         (__gnat_fopen): New routine. A simple wrapper on all plateforms
15411          except on Windows where it does conversion for unicode support.
15412         (__gnat_freopen): Idem.
15413         (__gnat_locate_exec_on_path): If environment variable PATH does not
15414         exist, return a NULL pointer
15415
15416         * adaint.h: (__gnat_fopen): Declare.
15417         (__gnat_freopen): Likewise.
15418
15419         * mingw32.h (_tfreopen): Define this macro here for older MingW
15420         version.
15421         Activate the unicode support on platforms using a MingW runtime
15422         version 3.9 or newer.
15423
15424         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
15425         This is needed for proper unicode support on Windows.
15426         (freopen): Idem.
15427
15428 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
15429             Nicolas Setton  <setton@adacore.com>
15430             Olivier Hainque  <hainque@adacore.com>
15431             Gary Dismukes  <dismukes@adacore.com>
15432
15433         * gigi.h: (tree_code_for_record_type): Declare.
15434         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
15435         (get_global_renaming_pointers): Rename to
15436         invalidate_global_renaming_pointers.
15437         (static_ctors): Delete.
15438         (static_dtors): Likewise.
15439         (gnat_write_global_declarations): Declare.
15440         (create_var_decl): Adjust descriptive comment to indicate that the
15441         subprogram may return a CONST_DECL node.
15442         (create_true_var_decl): Declare new function, similar to
15443         create_var_decl but forcing the creation of a VAR_DECL node.
15444         (get_global_renaming_pointers): Declare.
15445         (add_global_renaming_pointer): Likewise.
15446
15447         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
15448
15449         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
15450         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
15451         processing.
15452         (gnat_to_gnu_entity): Remove From_With_Type from computation for
15453         imported_p.
15454         <E_Access_Type>: Use the Non_Limited_View as the full view of the
15455         designated type if the pointer comes from a limited_with clause.  Make
15456         incomplete designated type if it is in the main unit and has a freeze
15457         node.
15458         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
15459         Underlying_Full_View similarly.  Return earlier if the full view already
15460         has an associated tree.
15461         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
15462         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
15463         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
15464         reference type built for objects with an address clause.
15465         Use create_true_var_decl with const_flag set for
15466         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
15467         TREE_READONLY set.
15468         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
15469         for Character and Wide_Character types. This info is read by the
15470         dwarf-2 writer, and is needed to be able to use the command "ptype
15471         character" in the debugger.
15472         (gnat_to_gnu_entity): When generating a type representing
15473         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
15474         so that debug writers can distinguish it from ordinary integers.
15475         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
15476         addition to TREE_READONLY to assert the constantness of variables for
15477         elaboration purposes.
15478         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
15479         parameters to call new Einfo function First_Formal_With_Extras.
15480         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
15481         protected type with its corresponding discriminant, to obtain a usable
15482         declaration
15483         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
15484         for a multiple elaboration of the "equivalent" type.
15485         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
15486         into record_global_renaming_pointer.
15487         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
15488         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
15489         <E_Array_Subtype>: Likewise.
15490         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
15491         incomplete subtypes and incomplete subtypes of incomplete types visible
15492         through a limited with clause.
15493         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
15494         the base index type for the maximum size of the array only if they are
15495         constant.
15496         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
15497         expression into a SAVE_EXPR if stabilization failed.
15498
15499         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
15500         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
15501         by lower level compilation passes.
15502         (gnat_genericize): New function, lowering a function body to GENERIC.
15503         Turn the type of RESULT_DECL into a real reference type if the decl
15504         has been marked DECL_BY_REFERENCE, and adjust references to the latter
15505         accordingly.
15506         (gnat_genericize_r): New function. Tree walking callback for
15507         gnat_genericize.
15508         (convert_from_reference, is_byref_result): New functions. Helpers for
15509         gnat_genericize_r.
15510         (create_type_decl): Call gnat_pushdecl before calling
15511         rest_of_decl_compilation, to make sure that field TYPE_NAME of
15512         type_decl is properly set before calling the debug information writers.
15513         (write_record_type_debug_info): The heuristics which compute the
15514         alignment of a field in a variant record might not be accurate. Add a
15515         safety test to make sure no alignment is set to a smaller value than
15516         the alignment of the field type.
15517         (make_dummy_type): Use the Non_Limited_View as the underlying type if
15518         the type comes from a limited_with clause. Do not loop on the full view.
15519         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
15520         (dummy_node_table): New global variable, moved from decl.c.
15521         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
15522         (save_gnu_tree): Use above macros.
15523         (get_gnu_tree): Likewise.
15524         (present_gnu_tree): Likewise.
15525         (init_dummy_type): New function, moved from decl.c. Use above macros.
15526         (make_dummy_type): Likewise.
15527         (tree_code_for_record_type): New function extracted from make_dummy_type
15528         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
15529         (static_ctors): Change it to a vector, make static.
15530         (static_dtors): Likewise.
15531         (end_subprog_body): Adjust for above change.
15532         (build_global_cdtor): Moved from trans.c.
15533         (gnat_write_global_declarations): Emit global constructor and
15534         destructor, and call cgraph_optimize before emitting debug info for
15535         global declarations.
15536         (global_decls): New global variable.
15537         (gnat_pushdecl): Store the global declarations in global_decls, for
15538         later use.
15539         (gnat_write_global_declarations): Emit debug information for global
15540          declarations.
15541         (create_var_decl_1): Former create_var_decl, with an extra argument to
15542          state whether the creation of a CONST_DECL is allowed.
15543         (create_var_decl): Behavior unchanged. Now a wrapper around
15544         create_var_decl_1 allowing CONST_DECL creation.
15545         (create_true_var_decl): New function, similar to create_var_decl but
15546         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
15547         (create_field_decl): Do not always mark the field as addressable
15548         if its type is an aggregate.
15549         (global_renaming_pointers): New static variable.
15550         (add_global_renaming_pointer): New function.
15551         (get_global_renaming_pointers): Likewise.
15552
15553         * misc.c (gnat_dwarf_name): New function.
15554         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
15555         (gnat_post_options): Add comment about structural alias analysis.
15556         (gnat_parse_file): Do not call cgraph_optimize here.
15557         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
15558
15559         * trans.c (process_freeze_entity): Don't abort if we already have a
15560         non dummy GCC tree for a Concurrent_Record_Type, as it might
15561         legitimately have been elaborated while processing the associated
15562         Concurrent_Type prior to this explicit freeze node.
15563         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
15564         exception handler volatile if it is of variable size.
15565         (process_type): Remove bypass for types coming from a limited_with
15566         clause.
15567         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
15568         actual, convert the corresponding gnu_actual to the real destination
15569         type when necessary.
15570         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
15571         originally TREE_READONLY but whose elaboration cannot be performed
15572         statically.
15573         Part of fix for F504-021.
15574         (tree_transform, subprogram cases): Change loops on formal parameters to
15575         call new Einfo function First_Formal_With_Extras.
15576         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
15577         stemming from type conversion for the lhs.
15578         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
15579         number of bits per unit for components of records.
15580         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
15581         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
15582         with At_End_Proc after the SJLJ EH cleanup.
15583         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
15584         compilation unit.
15585         (elaborate_all_entities): Do not retest type_annotate_only.
15586         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
15587         result type of an abstract subprogram, which may be an itype associated
15588         with an anonymous access result (related to AI-318-02).
15589         (build_global_cdtor): Move to utils.c.
15590         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
15591         this choice is not a null tree nor an integer constant.
15592         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
15593         on the body of elaboration routines instead of mark_unvisited.
15594         (add_stmt): Do not mark the tree.
15595         (add_decl_expr): Tweak comment.
15596         (mark_unvisited): Delete.
15597         (unshare_save_expr): New static function.
15598         (call_to_gnu): Issue an error when making a temporary around a
15599         procedure call because of non-addressable actual parameter if the
15600         type of the formal is by_reference.
15601         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
15602         after building the elaboration routine.
15603
15604 2006-10-31  Bob Duff  <duff@adacore.com>
15605
15606         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
15607         as finalization-started, so we can raise Program_Error on 'new'.
15608
15609         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
15610         collection has already started.
15611
15612         * s-finimp.ads (Collection_Finalization_Started): Added new special
15613         flag value for indicating that a collection's finalization has started.
15614
15615         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
15616         create a task whose master has already waited for dependent tasks.
15617
15618 2006-10-31  Robert Dewar  <dewar@adacore.com>
15619
15620         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
15621
15622         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
15623         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
15624         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
15625         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
15626         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
15627         a-except-2005.ads: Add pragma Preelaborable_Warning
15628
15629 2006-10-31  Robert Dewar  <dewar@adacore.com>
15630             Jose Ruiz  <ruiz@adacore.com>
15631
15632         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
15633
15634         * ali.adb (Get_Name): Properly handle scanning of wide character names
15635         encoded with brackets notation.
15636         (Known_ALI_Lines): Add S lines to this list.
15637         (Scan_ALI): Acquire S (priority specific dispatching) lines.
15638         New flag Elaborate_All_Desirable in unit table
15639
15640         * ali.ads (Priority_Specific_Dispatching): Add this range of
15641         identifiers to be used for Priority_Specific_Dispatching table entries.
15642         (ALIs_Record): Add First_Specific_Dispatching and
15643         Last_Specific_Dispatching that point to the first and last entries
15644         respectively in the priority specific dispatching table for this unit.
15645         (Specific_Dispatching): Add this table for storing each S (priority
15646         specific dispatching) line encountered in the input ALI file.
15647         New flag Elaborate_All_Desirable in unit table
15648
15649         * bcheck.adb: (Check_Configuration_Consistency): Add call to
15650         Check_Consistent_Dispatching_Policy.
15651         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
15652         verifying that the use of Priority_Specific_Dispatching,
15653         Task_Dispatching_Policy, and Locking_Policy is consistent across the
15654         partition.
15655
15656         * bindgen.adb: (Public_Version_Warning): function removed.
15657         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
15658         required information from ALI files in order to initialize the table
15659         containing the specific dispatching policy.
15660         (Gen_Adainit_Ada): Generate the variables required for priority specific
15661         dispatching entries (__gl_priority_specific_dispatching and
15662         __gl_num_specific_dispatching).
15663         (Gen_Adainit_C): Generate the variables required for priority specific
15664         dispatching entries (__gl_priority_specific_dispatching and
15665         __gl_num_specific_dispatching).
15666         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
15667         pragma entries.
15668         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
15669         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
15670         (Tab_To): Removed.
15671         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
15672         a call to gnat_set_globals.
15673         Generate a string containing settings from
15674         Priority_Specific_Dispatching pragma entries.
15675         (Gen_Object_Files_Options): Do not include the runtime libraries when
15676         pragma No_Run_Time is specified.
15677
15678         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
15679         consistency with s-intman-posix.adb.
15680         (__gnat_error_handler, case FreeBSD): Account for the fact that the
15681         handler is installed with SA_SIGINFO.
15682         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
15683         FreeBSD ZCX support, copied from Linux version.
15684         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
15685         sigfillset, and sigemptyset so the routines defined by MaRTE.
15686         (__gl_priority_specific_dispatching): Add this variable that stores the
15687         string containing priority specific dispatching policies in the
15688         partition.
15689         (__gl_num_specific_dispatching): Add this variable that indicates the
15690         highest priority for which a priority specific dispatching pragma
15691         applies.
15692         (__gnat_get_specific_dispatching): Add this routine that returns the
15693         priority specific dispatching policy, as set by a
15694         Priority_Specific_Dispatching pragma appearing anywhere in the current
15695         partition. The input argument is the priority number, and the result
15696         is the upper case first character of the policy name.
15697         (__gnat_set_globals): Now a dummy function.
15698         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
15699         mechargs instead of sigargs, as the latter can be retrieved from the
15700         former and sigargs is not what we want on ia64.
15701         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
15702         mechargs argument.
15703         (__gnat_adjust_context_for_raise, ia64-vms): New function.
15704         (tasking_error): Remove unused symbol.
15705         (_abort_signal): Move this symbol to the IRIX specific part since this
15706         is the only target that uses this definition.
15707         (Check_Abort_Status): Move this symbol to the IRIX specific part since
15708         this is the only target that uses this definition.
15709         (Lock_Task): Remove unused symbol.
15710         (Unlock_Task): Remove unused symbol.
15711
15712         * lib-writ.adb (Write_ALI): Output new S lines for
15713         Priority_Specific_Dispatching pragmas.
15714         Implement new flag BD for elaborate body desirable
15715
15716         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
15717         (Specific_Dispatching): Add this table for storing the entries
15718         corresponding to Priority_Specific_Dispatching pragmas.
15719         Document new BD flag for elaborate body desirable
15720
15721         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
15722         of known pragmas.
15723
15724 2006-10-31  Javier Miranda  <miranda@adacore.com>
15725
15726         * a-tags.ads, a-tags.adb: 
15727         (Predefined_DT): New function that improves readability of the code.
15728         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
15729         Inherit_DT): Use the new function Predefined_DT to improve code
15730         readability.
15731         (Register_Interface_Tag): Update assertion.
15732         (Set_Interface_Table): Update assertion.
15733         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
15734         determining progenitor interfaces in Tags.
15735         (Inherit_CPP_DT): New subprogram.
15736
15737         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
15738         analysis of the thunk code.
15739         (Expand_Interface_Conversion): Handle run-time conversion of
15740         access to class wide types.
15741         (Expand_Dispatching_Call): When generating the profile for the
15742         subprogram itype for a dispatching operation, properly terminate the
15743         formal parameters chaind list (set the Next_Entity of the last formal
15744         to Empty).
15745         (Collect_All_Interfaces): Removed. This routine has been moved to
15746         sem_util and renamed as Collect_All_Abstract_Interfaces.
15747         (Set_All_DT_Position): Hidden entities associated with abstract
15748         interface primitives are not taken into account in the check for
15749         3.9.3(10); this check is done with the aliased entity.
15750         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
15751         interfacing with CPP by default.
15752         (Expand_Interface_Conversion): Add missing support for static conversion
15753         from an interface to a tagged type.
15754         (Collect_All_Interfaces): Add new out formal containing the list of
15755         abstract interface types to cleanup the subprogram Make_DT.
15756         (Make_DT): Update the code to generate the table of interfaces in case
15757         of abstract interface types.
15758         (Is_Predefined_Dispatching_Alias): New function that returns true if
15759         a primitive is not a predefined dispatching primitive but it is an
15760         alias of a predefined dispatching primitive.
15761         (Make_DT): If the ancestor of the type is a CPP_Class and we are
15762         compiling under full ABI compatibility mode we avoid the generation of
15763         calls to run-time services that fill the dispatch tables because under
15764         this mode we currently inherit the dispatch tables in the IP subprogram.
15765         (Write_DT): Emit an "is null" indication for a null procedure primitive.
15766         (Expand_Interface_Conversion): Use an address as the type of the formal
15767         of the internally built function that handles the case in which the
15768         target type is an access type.
15769
15770 2006-10-31  Robert Dewar  <dewar@adacore.com>
15771
15772         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
15773
15774 2006-10-31  Robert Dewar  <dewar@adacore.com>
15775
15776         * bindusg.ads, bindusg.adb:
15777         Change to package and rename procedure as Display, which
15778         now ensures that it only outputs usage information once.
15779
15780 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
15781
15782         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
15783         using RTPs.
15784
15785         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
15786         when using RTPs.
15787
15788 2006-10-31  Robert Dewar  <dewar@adacore.com>
15789             Ed Schonberg  <schonberg@adacore.com>
15790
15791         * treepr.adb: Use new subtype N_Membership_Test
15792
15793         * checks.ads, checks.adb: Add definition for Validity_Check
15794         (Range_Or_Validity_Checks_Suppressed): New function
15795         (Ensure_Valid): Test Validity_Check suppressed
15796         (Insert_Valid_Check): Test Validity_Check suppressed
15797         (Insert_Valid_Check): Preserve Do_Range_Check flag
15798         (Validity_Check_Range): New procedure
15799         (Expr_Known_Valid): Result of membership test is always valid
15800         (Selected_Range_Checks): Range checks cannot be applied to discriminants
15801         by themselves. Disabling those checks must also be done for task types,
15802         where discriminants may be used for the bounds of entry families.
15803         (Apply_Address_Clause_Check): Remove side-effects if address expression
15804         is non-static and is not the name of a declared constant.
15805         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
15806         Code cleanup and new error messages.
15807         (Enable_Range_Check): Test for some cases of suppressed checks
15808         (Generate_Index_Checks): Suppress index checks if index checks are
15809         suppressed for array object or array type.
15810         (Apply_Selected_Length_Checks): Give warning for compile-time detected
15811         length check failure, even if checks are off.
15812         (Ensure_Valid): Do not generate a check on an indexed component whose
15813         prefix is a packed boolean array.
15814         * checks.adb: (Alignment_Checks_Suppressed): New function
15815         (Apply_Address_Clause_Check): New procedure, this is a completely
15816         rewritten replacement for Apply_Alignment_Check
15817         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
15818         we request a discriminal value only in case of discriminants.
15819         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
15820         assignments where the target subtype is unconstrained and the target
15821         object is a parameter or dereference (other aliased cases are known
15822         to be unconstrained).
15823
15824 2006-10-31  Robert Dewar  <dewar@adacore.com>
15825
15826         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
15827         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
15828         vms_conv.adb: Fix bad table increment values (much too small)
15829
15830         * table.adb (Realloc): Make sure we get at least some new elements
15831         Defends against silly small values for table increment
15832
15833 2006-10-31  Robert Dewar  <dewar@adacore.com>
15834             Ed Schonberg  <schonberg@adacore.com>
15835             Bob Duff  <duff@adacore.com>
15836
15837         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
15838         entities. Move other fields around to make this possible
15839         (Is_Derived_Type): Add missing call to Is_Type.
15840         (Extra_Formals): New function for subprograms, entries, subprogram
15841         types.
15842         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
15843         (First_Formal_With_Extras): New function for subprogs, entries, subp
15844         types.
15845         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
15846         Add node information for E_Return_Statement.
15847         (Elaborate_Body_Desirable): New flag
15848         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
15849         to be Is_Inherently_Limited_Type, because return-by-reference has
15850         no meaning in Ada 2005.
15851         (E_Return_Statement): New entity kind.
15852         (Return_Applies_To): Field of E_Return_Statement.
15853         (Is_Return_Object): New flag in object entities.
15854         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
15855         (Must_Have_Preelab_Init): New flag
15856         (Known_To_Have_Preelab_Init): New flag
15857         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
15858         (Is_Visible_Formal): New flag on entities in formal packages.
15859         (Low_Bound_Known): New flag
15860         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
15861         Incomplete_Kind.
15862         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
15863         output when Id is an incomplete subtype.
15864
15865 2006-10-31  Robert Dewar  <dewar@adacore.com>
15866
15867         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
15868         Avoid abbreviation Creat
15869         (Finalize): List all sources in extended mail source if -gnatl
15870         switch is active.
15871         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
15872         (Finalize): Implement new -gnatl=xxx switch to output listing to file
15873         (Set_Specific_Warning_On): New procedure
15874         (Set_Specific_Warning_Off): New procedure
15875         Add implementation of new insertion \\
15876         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
15877         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
15878         types.
15879         (Error_Msg_Internal): Make sure that we set Last_Killed to
15880         True when a message from another package is suppressed.
15881         Implement insertion character ~ (insert string)
15882         (First_Node): Minor adjustments to get better placement.
15883
15884         * frontend.adb: 
15885         Implement new -gnatl=xxx switch to output listing to file
15886
15887         * gnat1drv.adb: 
15888         Implement new -gnatl=xxx switch to output listing to file
15889
15890         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
15891         (Commands_To_Stdout): New flag
15892         Implement new -gnatl=xxx switch to output listing to file
15893         New switch Dump_Source_Text
15894         (Warn_On_Deleted_Code): New warning flag for -gnatwt
15895         Define Error_Msg_Line_Length
15896         (Warn_On_Assumed_Low_Bound): New switch
15897
15898         * osint.ads, osint.adb
15899         (Normalize_Directory_Name): Fix bug.
15900         Implement new -gnatl=xxx switch to output listing to file
15901         (Concat): Removed, replaced by real concatenation
15902         Make use of concatenation now allowed in compiler
15903         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
15904         we find the 'lib' or 'bin' directory even when the tool has been
15905         invoked with a relative path.
15906         (Executable_Name): New function taking string parameters.
15907
15908         * osint-c.ads, osint-c.adb: 
15909         Implement new -gnatl=xxx switch to output listing to file
15910
15911         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
15912
15913         * switch-c.adb: 
15914         Implement new -gnatl=xxx switch to output listing to file
15915         Recognize new -gnatL switch
15916         (no longer keep in old warning about old style usage)
15917         Use concatenation to simplify code
15918         Recognize -gnatjnn switch
15919         (Scan_Front_End_Switches): Clean up handling of -gnatW
15920         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
15921
15922 2006-10-31  Robert Dewar  <dewar@adacore.com>
15923
15924         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
15925         (Set_Specific_Warning_Off): New procedure
15926         (Warning_Specifically_Suppressed): New function
15927         (Validate_Specific_Warnings): New procedure
15928         (Output_Msg_Text): Complete rewrite to support -gnatjnn
15929
15930         * err_vars.ads: Implement insertion character ~ (insert string)
15931
15932 2006-10-31  Bob Duff  <duff@adacore.com>
15933             Ed Schonberg  <schonberg@adacore.com>
15934
15935         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
15936         the parent part is a build-in-place function call, generate assignments.
15937         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
15938         are build-in-place function calls.
15939         (Replace_Self_Reference): New subsidiary of
15940         Make_OK_Assignment_Statement, to replace an access attribute that is a
15941         self-reference into an access to the appropriate component of the
15942         target object. Generalizes previous mechanism to handle self-references
15943         nested at any level.
15944         (Is_Self_Referential_Init): Remove, not needed.
15945         (Is_Self_Referential_Init): New predicate to simplify handling of self
15946         referential components in record aggregates.
15947         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
15948         check for presence of entity before checking for self-reference.
15949         (Has_Default_Init_Comps): Return True if a component association is a
15950         self-reference to the enclosing type, which can only come from a
15951         default initialization.
15952         (Make_OK_Assignment_Statement): If the expression is of the form
15953         Typ'Acc, where Acc is an access attribute, the expression comes from a
15954         default initialized self-referential component.
15955         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
15956         that has been derived from several abstract interfaces we must also
15957         initialize the tags of the secondary dispatch tables.
15958
15959 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15960             Thomas Quinot  <quinot@adacore.com>
15961             Javier Miranda  <miranda@adacore.com>
15962             Robert Dewar  <dewar@adacore.com>
15963
15964         * exp_attr.adb: 
15965         (Expand_Access_To_Protected_Op): If the context indicates that an access
15966         to a local operation may be transfered outside of the object, create an
15967         access to the wrapper operation that must be used in an external call.
15968         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
15969         target, pass the Valid attribute applied to a floating-point prefix on
15970         to the back end without expansion.
15971         (Storage_Size): Use the new run-time function Storage_Size to retrieve
15972         the allocated storage when it is specified by a per-object expression.
15973         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
15974         Nothing to do here, the attribute has been rewritten during semantic
15975         analysis.
15976         (Expand_Attribute_Reference): Handle expansion of the new Priority
15977         attribute
15978         (Find_Fat_Info): Handle case of universal real
15979         (Expand_Access_To_Protected_Op): Fix use of access to protected
15980         subprogram from inside the body of a protected entry.
15981         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
15982         'Access and 'Unrestricted_Access, to transform the attribute reference
15983         into a fat pointer.
15984         (Is_Constrained_Aliased_View): New predicate to help determine whether a
15985         subcomponent's enclosing variable is aliased with a constrained subtype.
15986         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
15987         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
15988         an aliased prefix must be known to be constrained in order to use True
15989         for the attribute value, and now it's possible for some aliased views
15990         to be unconstrained.
15991
15992 2006-10-31  Robert Dewar  <dewar@adacore.com>
15993
15994         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
15995         (Expand_Entity_Reference): Correct error of not handling subprogram
15996         formals in current_value processing.
15997
15998 2006-10-31  Javier Miranda  <miranda@adacore.com>
15999             Robert Dewar  <dewar@adacore.com>
16000             Ed Schonberg  <schonberg@adacore.com>
16001             Gary Dismukes  <dismukes@adacore.com>
16002
16003         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
16004         register in the final list objects containing class-wide interfaces;
16005         otherwise we incorrectly register the tag of the interface in the final
16006         list.
16007         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
16008         generate the wrapper if the parent primitive is abstract. This is
16009         required to report the correct error message.
16010         (Expand_N_Subtype_Indication): Do validity checks on range
16011         (Clean_Task_Names): If an initialization procedure includes a call to
16012         initialize a task (sub)component, indicate that the procedure will use
16013         the secondary stack.
16014         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
16015         compatibility for interfacing with CPP by default.
16016         (Expand_N_Object_Declaration): Only build an Adjust call when the
16017         object's type is a nonlimited controlled type.
16018         * exp_ch3.adb: Add with and use of Exp_Ch6.
16019         (Expand_N_Object_Declaration): Check for object initialization that is a
16020         call to build-in-place function and apply Make_Build_In_Place_Call_In_
16021         Object_Declaration to the call.
16022         (Freeze_Type): When the designated type of an RACW was not frozen at the
16023         point where the RACW was declared, validate the primitive operations
16024         with respect to E.2.2(14) when it finally is frozen.
16025         (Build_Initialization_Call,Expand_Record_Controller): Rename
16026         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
16027         return-by-reference has no meaning in Ada 2005.
16028         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
16029         to register tag of the immediate ancestor interfaces in the
16030         run-time structure.
16031         (Init_Secondary_Tags): Moved to the specification to allow the
16032         initialization of extension aggregates with abstract interfaces.
16033         (Build_Master_Renaming): Make public, for use by function declarations
16034         whose return type is an anonymous access type.
16035         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
16036         Insert_List_Before_And_Analyze after the generation of the specs
16037         associated with null procedures.
16038         (Expand_Tagged_Root): Update documentation in its specification.
16039         (Init_Secondary_Tags): Update documentation.
16040         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
16041         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
16042         then generate code to inherit the contents of the dispatch table
16043         directly from the ancestor.
16044         (Expand_Record_Controller): Insert controller component after tags of
16045         implemented interfaces.
16046         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
16047         create null procedure overridings when null procedures are inherited
16048         from interfaces.
16049         (Make_Null_Procedure_Specs): New procedure to generate null procedure
16050         declarations for overriding null primitives inherited from interfaces.
16051         (Is_Null_Interface_Procedure): New function in
16052         Make_Null_Procedure_Specs.
16053         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
16054         immediate ancestor of a tagged type is an abstract interface type we
16055         must generate the specification of the predefined primitives associated
16056         with controlled types (because the dispatch table of the ancestor is
16057         null and hence these entries cannot be inherited). This is required to
16058         elaborate well the dispatch table.
16059
16060 2006-10-31  Javier Miranda  <miranda@adacore.com>
16061             Ed Schonberg  <schonberg@adacore.com>
16062             Bob Duff  <duff@adacore.com>
16063             Gary Dismukes  <dismukes@adacore.com>
16064             Robert Dewar  <dewar@adacore.com>
16065
16066         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
16067         conversion.
16068         (Expand_N_In): Do validity checks on range
16069         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
16070         (Expand_N_Allocator): For "new T", if the object is constrained by
16071         discriminant defaults, allocate the right amount of memory, rather than
16072         the maximum for type T.
16073         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
16074         when the allocator is initialized by a build-in-place call, since the
16075         allocator is already rewritten as a reference to the function result,
16076         and this prevents an unwanted duplication of the function call.
16077         Add with and use of Exp_Ch6.
16078         (Expand_Allocator_Expresssion): Check for an allocator whose expression
16079         is a call to build-in-place function and apply
16080         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
16081         untagged designated types).
16082         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
16083         optimization if source or target is biased.
16084         (Expand_N_Allocator): Add comments for case of an allocator within a
16085         function that returns an anonymous access type designating tasks.
16086         (Expand_N_Allocator): apply discriminant checks for access
16087         discriminants of anonymous access types (AI-402, AI-416)
16088
16089 2006-10-31  Bob Duff  <duff@adacore.com>
16090             Robert Dewar  <dewar@adacore.com>
16091             Gary Dismukes  <dismukes@adacore.com>
16092             Ed Schonberg  <schonberg@adacore.com>
16093
16094         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
16095
16096         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
16097         (Expand_N_Assignment_Statement): Call
16098         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
16099         build-in-place function call. Currently, this can happen only for
16100         assignments that come from aggregates.
16101         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16102         in order to alleviate the upward compatibility introduced by AI-318.
16103         (Expand_N_Extended_Return_Statement): Add support for handling the
16104         return object as a build-in-place result.
16105         (Expand_Non_Function_Return): Implement simple return statements nested
16106         within an extended return.
16107         (Enable_New_Return_Processing): Turn on the new processing of return
16108         statements.
16109         (Expand_Non_Function_Return): For a return within an extended return,
16110         don't raise Program_Error, because Sem_Ch6 now gives a warning.
16111         (Expand_N_Extended_Return_Statement): Implement AI-318
16112         (Expand_Simple_Function_Return): Ditto.
16113         (Expand_N_If_Statement): Handle new -gnatwt warning
16114         (Expand_N_Case_Statement): Handle new -gnatwt warning
16115         (Expand_N_Assignment): Handle assignment to the Priority attribute of
16116         a protected object.
16117         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
16118         validity checking of assignments to elementary record components.
16119         (Expand_N_Return_Statement): return Class Wide types on the secondary
16120         stack independantly of their controlled status since with HIE runtimes,
16121         class wide types are not potentially controlled anymore.
16122
16123         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
16124         node kind.
16125
16126         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
16127         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
16128         it expects a block, procedure, or task. The return statement will get
16129         turned into a block, and Expand_Cleanup_Actions will happen then.
16130
16131 2006-10-31  Robert Dewar  <dewar@adacore.com>
16132             Ed Schonberg  <schonberg@adacore.com>
16133             Bob Duff  <duff@adacore.com>
16134             Gary Dismukes  <dismukes@adacore.com>
16135
16136         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
16137         capability.
16138         (Expand_Inlined_Call): Tagged types are by-reference types, and
16139         therefore should be replaced by a renaming declaration in the expanded
16140         body, as is done for limited types.
16141         (Expand_Call): If this is a call to a function with dispatching access
16142         result, propagate tag from context.
16143         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
16144         CPP by default.
16145         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
16146         build-in-place when the right-hand side of an assignment is a
16147         build-in-place function call.
16148         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
16149         of the explicit dereference of the allocator to the result subtype of
16150         the build-in-place function. This is needed to satisfy type checking
16151         in cases where the caller's return object is created by an allocator for
16152         a class-wide access type and the type named in the allocator is a
16153         specific type.
16154         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
16155         conversion of the reference to the declared object to the result subtype
16156         of the build-in-place function. This is needed to satisfy type checking
16157         in cases where the declared object has a class-wide type. Also, in the
16158         class-wide case, change the type of the object entity to the specific
16159         result subtype of the function, to avoid passing a class-wide object
16160         without explicit initialization to the back end.
16161         (Register_Interface_DT_Entry): Moved outside the body of
16162         Freeze_Subprogram because this routine is now public; it is called from
16163         Check_Dispatching_Overriding to handle late overriding of abstract
16164         interface primitives.
16165         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
16166         adding an implicit access actual on a call to a build-in-place function.
16167         (Expand_Actuals): Test for an actual parameter that is a call to a
16168         build-in-place function and apply
16169         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
16170         (Is_Build_In_Place_Function): New function to determine whether an
16171         entity is a function whose calls should be handled as build-in-place.
16172         (Is_Build_In_Place_Function_Call): New function to determine whether an
16173         expression is a function call that should handled as build-in-place.
16174         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
16175         calls to build-in-place functions as the initialization of an allocator.
16176         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
16177         handling calls to build-in-place functions in contexts that do not
16178         involve init of a separate object (for example, actuals of subprogram
16179         calls).
16180         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
16181         handling calls to build-in-place functions as the initialization of an
16182         object declaration.
16183         (Detect_Infinite_Recursion): Add explicit parameter Process to
16184         instantiation of Traverse_Body to avoid unreferenced warning.
16185         (Check_Overriding_Inherited_Interfaces): Removed.
16186         (Register_Interface_DT_Entry): Code cleanup.
16187         (Register_Predefined_DT_Entry): Code cleanup.
16188         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
16189         inlined statements if within a transient scope.
16190         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
16191         formal parameters with occurrences of actuals in inlined body, establish
16192         visibility on the proper view of the actual's subtype for the body's
16193         context.
16194         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
16195         compatibility mode and we have an imported CPP subprogram because
16196         for now we assume that imported CPP primitives correspond with
16197         objects whose constructor is in the CPP side (and therefore we
16198         don't need to generate code to register them in the dispatch table).
16199         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
16200         aligned selected component.
16201         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
16202         the actual of an in-mode parameter is a type conversion.
16203         (Expand_Actuals): If the call does not come from source and the actual
16204         is potentially misaligned, let gigi handle it rather than rejecting the
16205         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
16206         Class Wide types as returning by reference independantly of their
16207         controlled status since with HIE runtimes class wide types are not
16208         potentially controlled anymore.
16209
16210 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16211
16212         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
16213         references that are private components of the protected object.
16214         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
16215         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
16216         instantiation to deal with warnings.
16217         (Initialize_Protection): If expression for priority is non-static, use
16218         System_Priority as its expected type, in case the expression has not
16219         been analyzed yet.
16220
16221 2006-10-31  Robert Dewar  <dewar@adacore.com>
16222
16223         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
16224         initialization of Homonym_Len.
16225         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
16226         names from fully qualified name. Fixes problem of duplicate
16227         external names differing only in the presence of such a block name.
16228
16229 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16230             Pablo Oliveira  <oliveira@adacore.com>
16231
16232         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
16233         subprogram Ids, even if they are not yet assigned.
16234         (Build_Subprogram_Id): It is now this function that will take care of
16235         calling Assign_Subprogram_Ids if necessary.
16236         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
16237         should be done only once they are assigned.
16238         (Build_From_Any_Function, case of tagged types): Add missing call to
16239         Allocate_Buffer.
16240         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
16241         type for an RACW type.
16242         (Add_RACW_Features): When processing an RACW declaration for which the
16243         designated type is already frozen, enforce E.2.2(14) rules immediately.
16244         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
16245         special reordering of controlling formals.
16246
16247         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
16248         associated stub type for an RACW type.
16249
16250 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16251
16252         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
16253         fixed-point operations in an integer context, i.e. as operands of a
16254         conversion to an integer type, indicate that result must be rounded.
16255
16256 2006-10-31  Robert Dewar  <dewar@adacore.com>
16257
16258         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
16259         cases, pass the encoding method, since it is now required by the run
16260         time.
16261
16262         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
16263         assumption that Str'First = 1.
16264         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
16265         it on to the Value_Wide_Wide_Character call.
16266         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
16267         properly handles a string of the form quote-encoded_wide_char-quote.
16268
16269         * s-wchcnv.adb: Minor reformatting
16270
16271 2006-10-31  Javier Miranda  <miranda@adacore.com>
16272
16273         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
16274         run-time membership test to ensure that the constructed object
16275         implements the target abstract interface.
16276
16277 2006-10-31  Robert Dewar  <dewar@adacore.com>
16278
16279         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
16280         Machine_Attribute pragma internally to implement the user pragma.
16281         Add processing for pragma Interface so that it is now completely
16282         equivalent to pragma Import.
16283
16284         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
16285         so that it can be applied to all entities, including record components
16286         and enumeration literals.
16287         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
16288         priority ranges are correct, verify compatibility against task
16289         dispatching and locking policies, and if everything is correct an entry
16290         is added to the table containing priority specific dispatching entries
16291         for this compilation unit.
16292         (Delay_Config_Pragma_Analyze): Delay processing
16293         Priority_Specific_Dispatching pragmas because when processing the
16294         pragma we need to access run-time data, such as the range of
16295         System.Any_Priority.
16296         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
16297         Allow pragma Unreferenced as a context item
16298         Add pragma Preelaborable_Initialization
16299         (Analyze_Pragma, case Interface): Interface is extended so that it is
16300         now syntactically and semantically equivalent to Import.
16301         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
16302         insertion characters.
16303         Add handling for Pragma_Wide_Character_Encoding
16304         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
16305         never supercedes a real restriction, and that a real restriction
16306         always supercedes a warning.
16307         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
16308         appropriate form.
16309
16310 2006-10-31  Bob Duff  <duff@adacore.com>
16311             Ed Schonberg  <schonberg@adacore.com>
16312             Robert Dewar  <dewar@adacore.com>
16313
16314         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
16315         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
16316         Is_Inherently_Limited_Type, because return-by-reference has no meaning
16317         in Ada 2005.
16318         (Find_Node_To_Be_Wrapped): Use new method of determining the result
16319         type of the function containing a return statement, because the
16320         Return_Type field was removed. We now use the Return_Applies_To field.
16321
16322         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
16323         (Build_Task_Image_Decl): If procedure is not called from an
16324         initialization procedure, indicate that function that builds task name
16325         uses the sec. stack. Otherwise the enclosing initialization procedure
16326         will carry the indication.
16327         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
16328         N_Object_Declaration instead.
16329         (Kill_Dead_Code): New interface to implement -gnatwt warning for
16330         conditional dead code killed, and change implementation accordingly.
16331         (Insert_Actions): Add N_Return_Object_Declaration case.
16332         Correct comment to mention N_Extension_Aggregate node.
16333         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
16334         attempts to save information for global variables which cannot be
16335         safely tracked.
16336         (Get_Current_Value_Condition): Handle conditions the other way round
16337         (constant on left). Also handle right operand of AND and AND THEN
16338         (Set_Current_Value_Condition): Corresponding changes
16339         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
16340         (Get_Current_Value_Condition): Handle simple boolean operands
16341         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
16342         (Get_Current_Value_Condition): If the variable reference is within an
16343         if-statement, does not appear in the list of then_statments, and does
16344         not come from source, treat it as being at unknown location.
16345         (Get_Current_Value_Condition): Enhance to allow while statements to be
16346         processed as well as if statements.
16347         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
16348         come from source.
16349         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
16350         of loop. This is safe now that we fixed Kill_Current_Values.
16351         (OK_To_Do_Constant_Replacement): Check whether current scope is
16352         Standard, before examining outer scopes.
16353
16354 2006-10-31  Vincent Celier  <celier@adacore.com>
16355
16356         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
16357         When True, apply VMS treatment to children of packages A, G, I and S.
16358         For F320-016
16359
16360         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
16361
16362 2006-10-31  Robert Dewar  <dewar@adacore.com>
16363             Ed Schonberg  <schonberg@adacore.com>
16364
16365         * freeze.adb: Add handling of Last_Assignment field
16366         (Warn_Overlay): Supply missing continuation marks in error msgs
16367         (Freeze_Entity): Add check for Preelaborable_Initialization
16368
16369         * g-comlin.adb: Add Warnings (Off) to prevent new warning
16370
16371         * g-expect.adb: Add Warnings (Off) to prevent new warning
16372
16373         * lib-xref.adb: Add handling of Last_Assignment field
16374         (Generate_Reference): Centralize handling of pragma Obsolescent here
16375         (Generate_Reference): Accept an implicit reference generated for a
16376         default in an instance.
16377         (Generate_Reference): Accept a reference for a node that is not in the
16378         main unit, if it is the generic body corresponding to an subprogram
16379         instantiation.
16380
16381         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
16382
16383         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
16384         -gnatwq/Q.
16385         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
16386         exception handler.
16387         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
16388         use clauses, to avoid messages on packages used to qualify, and also
16389         to avoid messages from obsolescent units.
16390         (Warn_On_Useless_Assignments): Don't generate messages for imported
16391         and exported variables.
16392         (Warn_On_Useless_Assignments): New procedure
16393         (Output_Obsolescent_Entity_Warnings): New procedure
16394         (Check_Code_Statement): New procedure
16395
16396         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
16397         Change name Is_Ada_2005 to Is_Ada_2005_Only
16398         (Last_Assignment): New field for useless assignment warning
16399
16400 2006-10-31  Olivier Hainque  <hainque@adacore.com>
16401
16402         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
16403         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
16404
16405 2006-10-31  Bob Duff  <duff@adacore.com>
16406             Robert Dewar  <dewar@adacore.com>
16407             Ed Schonberg  <schonberg@adacore.com>
16408
16409         * g-awk.adb (Default_Session, Current_Session): Compile this file in
16410         Ada 95 mode, because it violates the new rules for AI-318.
16411
16412         * g-awk.ads: Use overloaded subprograms in every case where we used to
16413         have a default of Current_Session. This makes the code closer to be
16414         correct for both Ada 95 and 2005.
16415
16416         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
16417         code, relying on the fact that the compiler generates a warning
16418         instead of an error in -gnatg mode.
16419
16420         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
16421         E_Return_Statement entity kind.
16422         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
16423
16424         * par.adb (P_Interface_Type_Definition): Addition of one formal to
16425         report an error if the reserved word abstract has been previously found.
16426         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
16427
16428         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
16429         parenthesized range attribute usage
16430         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
16431
16432         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
16433         in the syntax for extended_return_statement. This is not in the latest
16434         RM, but the ARG is expected to issue an AI allowing this.
16435         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
16436         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
16437         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
16438         P_Return_Statement): Parse the new syntax for extended_return_statement.
16439
16440         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
16441         Output_End_Missing): Add error-recovery code for the new
16442         extended_return_statement syntax; that is, the new E_Return entry on
16443         the scope stack.
16444
16445         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
16446         limited to nonlimited, because otherwise we violate the new Ada 2005
16447         rules about returning limited types in function Create_AST_Handler in
16448         s-asthan.adb.
16449
16450         * sem.adb (Analyze): Add cases for new node kinds
16451         N_Extended_Return_Statement and N_Return_Object_Declaration.
16452
16453         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
16454         type is in the same category as type of context before applying check,
16455         to prevent anomalies in instantiations.
16456         (Resolve_Aggregate): Remove test for limited components in aggregates.
16457         It's unnecessary in Ada 95, because if it has limited components, then
16458         it must be limited. It's wrong in Ada 2005, because limited aggregates
16459         are now allowed.
16460         (Resolve_Record_Aggregate): Move check for limited types later, because
16461         OK_For_Limited_Init requires its argument to have been resolved.
16462         (Get_Value): When copying the component default expression for a
16463         defaulted association in an aggregate, use the sloc of the aggregate
16464         and not that of the original expression, to prevent spurious
16465         elaboration errors, when the expression includes function calls.
16466         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
16467         were missing. We also didn't handle qualified expressions. Now also
16468         allow function calls. Use new common routine OK_For_Limited_Init.
16469         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
16470         with space can upper case letter).
16471
16472         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
16473         Has_Static_Discriminants flag
16474         (Record_Type_Declaration): Diagnose an attempt to declare an interface
16475         type with discriminants.
16476         (Process_Range_Expr_In_Decl): Do validity checks on range
16477         (Build_Discriminant_Constraints): Use updated form of
16478         Denotes_Discriminant.
16479         (Process_Subtype): If the subtype is a private subtype whose full view
16480         is a concurrent subtype, introduce an itype reference to prevent scope
16481         anomalies in gigi.
16482         (Build_Derived_Record_Type, Collect_Interface_Primitives,
16483         Record_Type_Declaration):  The functionality of the subprograms
16484         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
16485         is now performed by a single routine.
16486         (Build_Derived_Record_Type): If the type definition includes an explicit
16487         indication of limitedness, then the type must be marked as limited here
16488         to ensure that any access discriminants will not be treated as having
16489         a local anonymous access type.
16490         (Check_Abstract_Overriding): Issue a detailed error message when an
16491         abstract subprogram was not overridden due to incorrect mode of its
16492         first parameter.
16493         (Analyze_Private_Extension_Declaration): Add support for the analysis of
16494         synchronized private extension declarations. Verify that the ancestor is
16495         a limited or synchronized interface or in the generic case, the ancestor
16496         is a tagged limited type or synchronized interface and all progenitors
16497         are either limited or synchronized interfaces.
16498         Derived_Type_Declaration): Check for presence of private extension when
16499         dealing with synchronized formal derived types.
16500         Process_Full_View): Enchance the check done on the usage of "limited" by
16501         testing whether the private view is synchronized.
16502         Verify that a synchronized private view is completed by a protected or
16503         task type.
16504         (OK_For_Limited_Init_In_05): New function.
16505         (Analyze_Object_Declaration): Move check for limited types later,
16506         because OK_For_Limited_Init requires its argument to have been resolved.
16507         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16508         in order to alleviate the upward compatibility introduced by AI-318.
16509         (Constrain_Corresponding_Record): If the constraint is for a component
16510         subtype, mark the itype as frozen, to avoid out-of-scope references to
16511         discriminants in the back-end.
16512         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
16513         this subprogram against wrong sources.
16514         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
16515         discriminant of limited type completed with a protected type, when the
16516         discriminant is used to constrain a private component of the type, and
16517         expansion is disabled.
16518         (Find_Type_Of_Object): Do not treat a return subtype that is an
16519         anonymous subtype as a local_anonymous_type, because its accessibility
16520         level is the return type of the enclosing function.
16521         (Check_Initialization): In -gnatg mode, turn the error "cannot
16522         initialize entities of limited type" into a warning.
16523         (OK_For_Limited_Init): Return true for generated nodes, since it
16524         sometimes violates the legality rules.
16525         (Make_Incomplete_Declaration): If the type for which an incomplete
16526         declaration is created happens to be the currently visible entity,
16527         preserve the homonym chain when removing it from visibility.
16528         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
16529         inherited subprograms.
16530         (Access_Definition): If this is an access to function that is the return
16531         type of an access_to_function definition, context is a type declaration
16532         and the scope of the anonymous type is the current one.
16533         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
16534         incomplete subtype to the set of private dependents of the original
16535         incomplete type.
16536         (Constrain_Discriminated_Type): Emit an error message whenever an
16537         incomplete subtype is being constrained.
16538         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
16539         corresponding subtype of the full view of the original incomplete type.
16540         (Check_Incomplete): Properly detect invalid usage of incomplete types
16541         and subtypes.
16542
16543 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16544
16545         * g-catiio.ads, g-catiio.adb (Value): New function.
16546         Given an input String, try and parse a valid Time value.
16547
16548 2006-10-31  Vincent Celier  <celier@adacore.com>
16549
16550         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
16551         Integer_Address arithmetic, as in Set_Valid.
16552
16553 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16554             Robert Dewar  <dewar@adacore.com>
16555
16556         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
16557         handling executable extension manually and duplicating code.
16558
16559         * make.adb: Implement new -S switch
16560         (Gnatmake): Use new function Osint.Executable_Name instead
16561         of handling executable extension manually.
16562
16563         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
16564         is specified, the executable name ends with this suffix.
16565         Take advantage of Osint.Executable_Name instead of duplicating code.
16566
16567         * switch-m.adb: Recognize new gnatmake -S switch
16568
16569         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
16570         variable.
16571         (Get_Target_Parameters): Set Executable_Extension_On_Target if
16572         available.
16573
16574         * makeusg.adb: Add line for gnatmake -S switch
16575
16576 2006-10-31  Vincent Celier  <celier@adacore.com>
16577
16578         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
16579         call it with -static-libgcc, as there are some platforms, such as
16580         Darwin, where one of these two switches is compulsory to link.
16581
16582 2006-10-31  Vincent Celier  <celier@adacore.com>
16583
16584         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
16585         instead of ADA_PROJECT_PATH, for the project path.
16586         (Gnatls): When displaying the project path directories, use host dir
16587         specs.
16588
16589         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
16590         names in the project path, as absolute paths may correspond to
16591         multi-valued VMS logical names.
16592
16593 2006-10-31  Vincent Celier  <celier@adacore.com>
16594
16595         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
16596         absolute path name.
16597         (Locate_Regular_File): Ditto
16598         (Change_Dir): Remove, no longer used
16599         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
16600         on Windows. Get it calling Get_Current_Dir.
16601         (OpenVMS): Remove imported boolean, no longer needed.
16602         (Normalize_Pathname)[VMS]: Do not resolve directory names.
16603         (Pid_To_Integer): New function to convert a Process_Id to  Integer
16604
16605 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16606
16607         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
16608         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
16609         to No_Socket.
16610         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
16611         W_Sig_Socket.
16612
16613 2006-10-31  Robert Dewar  <dewar@adacore.com>
16614
16615         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
16616         initial letter o as a zero.
16617
16618 2006-10-31  Robert Dewar  <dewar@adacore.com>
16619
16620         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
16621
16622 2006-10-31  Robert Dewar  <dewar@adacore.com>
16623
16624         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
16625         variant records
16626         (Layout_Variant_Record): Retrieve the discriminants from the entity
16627         rather than from the type definition, because in the case of a full
16628         type for a private type we need to take the discriminants from the
16629         partial view.
16630         (Layout_Component_List): When applying the Max operator to variants with
16631         a nonstatic size, check whether either operand is static and scale that
16632         operand from bits to storage units before applying Max.
16633         (Layout_Type): In VMS, if a C-convention access type has no explicit
16634         size clause (and does not inherit one in the case of a derived type),
16635         then the size is reset to 32 from 64.
16636
16637 2006-10-31  Vincent Celier  <celier@adacore.com>
16638
16639         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
16640         its file has already been loaded, according to the unit being loaded,
16641         not to the current value of Multiple_Unit_Index.
16642
16643 2006-10-31  Thomas Quinot  <quinot@adacore.com>
16644             Eric Botcazou  <ebotcazou@adacore.com>
16645             Arnaud Charlet  <charlet@adacore.com>
16646
16647         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
16648         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
16649         possible.
16650         (a-except.o): Pass it to the compiler.
16651         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
16652         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
16653         a-calend-mingw.adb version.
16654
16655         * Makefile.rtl: Added s-dsaser.
16656         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
16657         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
16658         Ada.Dispatching.Round_Robin.
16659         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
16660
16661         * Make-lang.in: Remove all references to gt-ada-decl.h.
16662         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
16663         sources.
16664         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
16665         Update dependencies.
16666
16667         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
16668
16669 2006-10-31  Vincent Celier  <celier@adacore.com>
16670
16671         * mlib-utl.adb (Initialized): Remove, no longer used
16672         (Initialize): Remove, no longer used
16673         (Ar): If Ar_Exec is null, get the location of the archive builder and,
16674         if there is one, the archive indexer. Fail if the archive builder cannot
16675         be found.
16676         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
16677         be found.
16678
16679 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16680
16681         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
16682         Process_Body_Clauses): If the context of a body includes a use clause
16683         for P.Q then a with_clause for P in the same body is not redundant,
16684         even if the spec also has a with_clause on P.
16685         Add missing continuation mark to error msg
16686         (Build_Limited_Views): A limited view of a type is tagged if its
16687         declaration includes a record extension.
16688         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
16689         node, even if the subunit has errors. This avoids malfunction by
16690         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
16691         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
16692         generation of obsolescent messages for with statements (cannot do
16693         this too early, or we cannot implement avoiding the messages in the
16694         case of obsolescent units withing obsolescent units).
16695         (Install_Siblings): If the with_clause is on a remote descendant of
16696         an ancestor of the current compilation unit, find whether there is
16697         a sibling child unit that is immediately visible.
16698         (Remove_Private_With_Clauses): New procedure, invoked after completing
16699         the analysis of the private part of a nested package, to remove from
16700         visibility the private with_clauses of the enclosing package
16701         declaration.
16702         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
16703         now centralized in Generate_Reference.
16704         (Install_Limited_Context_Clauses): Remove superfluous error
16705         message associated with unlimited view visible through use
16706         and renamings. In addition, at the point in which the error
16707         is reported, we add the backslash to the text of the error
16708         to ensure that it is reported as a single error message.
16709         Use new // insertion for some continuation messages
16710         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
16711         to create implicit with_clause for parent unit mentioned in original
16712         limited_with_clause.
16713         (Install_Limited_With_Unit): Set entity of parent identifiers if the
16714         unit is a child unit. For ASIS queries.
16715         (Analyze_Subunit): If the subunit appears within a child unit, make all
16716         ancestor child units directly visible again.
16717
16718 2006-10-31  Robert Dewar  <dewar@adacore.com>
16719
16720         * par-ch10.adb (P_Context_Clause): Minor error message fix
16721
16722 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16723             Javier Miranda  <miranda@adacore.com>
16724
16725         * par-ch12.adb: Grammar update and cleanup.
16726         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
16727         support for synchronized derived type definitions.
16728         Add the new actual Abstract_Present to every call to
16729         P_Interface_Type_Definition.
16730         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
16731         a formal object declaration with an access definition or a subtype mark
16732         with a null exclusion.
16733         (P_Generic_Association): Handle association with box, and others_choice
16734         with box, to support Ada 2005 partially parametrized formal packages.
16735
16736 2006-10-31  Robert Dewar  <dewar@adacore.com>
16737             Javier Miranda  <miranda@adacore.com>
16738
16739         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
16740         (P_Type_Declaration): Remove barrier against the reserved word "limited"
16741         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
16742         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
16743         private extensions.
16744         (P_Type_Declaration): Add the new actual Abstract_Present to every call
16745         to P_Interface_Type_Definition.
16746         (P_Interface_Type_Definition): Addition of one formal to report an error
16747         if the reserved word abstract has been previously found.
16748         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
16749         object renaming declaration with an access definition or subtype mark
16750         with a possible null exclusion.
16751
16752         * par-ch9.adb: Minor error msg fix
16753
16754         * par-load.adb: Add missing continuation mark to error msg
16755
16756         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
16757
16758 2006-10-31  Vincent Celier  <celier@adacore.com>
16759
16760         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
16761         unknown attribute in unknown package or in package that does not need
16762         to be checked.
16763         (Parse_Package_Declaration): Do not issue warning for unknown package in
16764         quiet output.
16765
16766 2006-10-31  Vincent Celier  <celier@adacore.com>
16767
16768         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
16769         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
16770         Packages_To_Check.
16771
16772 2006-10-31  Vincent Celier  <celier@adacore.com>
16773
16774         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
16775         on VMS, change "__" to '.' before checking the name.
16776         (Record_Ada_Source): Always add the source file name in the list of
16777         of sources, even if it is not the first time, as it is for another
16778         source index.
16779         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
16780         dot, instead of replacing only the first '_'.
16781
16782         * prj-part.adb (Parse): Convert project file path to canonical form
16783
16784         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
16785         extended, the project id of the project extending it is recorded in its
16786         data, even when it has already been processed as an imported project.
16787
16788 2006-10-31  Robert Dewar  <dewar@adacore.com>
16789
16790         * repinfo.adb (List_Entities): Don't list entities from renaming
16791         declarations.
16792
16793 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16794             Robert Dewar  <dewar@adacore.com>
16795
16796         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
16797         only a restriction warning is active for the given restriction. This is
16798         desirable because we do not want to modify code in the case where only
16799         a warning is set.
16800         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
16801         causes overriding of real restrictions.
16802         Take advantage of new No_Restrictions constant.
16803
16804         * raise.h: (__gnat_set_globals): Change profile.
16805
16806 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16807
16808         * rtsfind.adb: Remove s-polint from comment as it exists no more.
16809
16810         * rtsfind.ads: 
16811         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
16812         Move all the entities in obsolete package System.PolyORB_Interface to
16813         System.Partition_Interface.
16814         (RE_Storage_Size): New function in System.Tasking.
16815         (RE_Get_Ceiling): New entity.
16816         (RE_Set_Ceiling): New entity.
16817         (RO_PE_Get_Ceiling): New entity.
16818         (RO_RE_Set_Ceiling): New entity.
16819         (Inherit_CPP_DT): New entity
16820
16821 2006-10-31  Robert Dewar  <dewar@adacore.com>
16822
16823         * scng.adb (Scan, case of numeric literal): Better msg for identifier
16824         starting with a digit.
16825
16826 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16827             Thomas Quinot  <quinot@adacore.com>
16828             Javier Miranda  <miranda@adacore.com>
16829             Gary Dismukes  <dismukes@adacore.com>
16830
16831         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
16832         properly an attempt to apply Unchecked_Access to a protected operation.
16833         (OK_Self_Reference): New subprogram to check the legality of an access
16834         attribute whose prefix is the type of an enclosing aggregate.
16835         Generalizes previous mechanism to handle attribute references nested
16836         arbitrarily deep within the aggregate.
16837         (Analyze_Access_Attribute): An access attribute whose prefix is a type
16838         can appear in an aggregate if this is a default-initialized aggregate
16839         for a self-referential type.
16840         (Resolve_Attribute, case Access): Ditto.
16841         Add support for new implementation defined attribute Stub_Type.
16842         (Eval_Attribute, case Attribute_Stub_Type): New case.
16843         (Analyze_Attribute, case Attribute_Stub_Type): New case.
16844         (Stream_Attribute_Available): Implement using new subprogram from
16845         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
16846         Has_Specified_Stream_Attribute flag.
16847         Disallow Storage_Size and Storage_Pool for access to subprogram
16848         (Resolve_Attribute, case 'Access et al): Take into account anonymous
16849         access types of return subtypes in extended return statements. Remove
16850         accessibility checks on anonymous access types when Unchecked_Access is
16851         used.
16852         (Analyze_Attribute): Add support for the use of 'Class to convert
16853         a class-wide interface to a tagged type.
16854         Add support for the attribute Priority.
16855         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
16856         whether the designated type is discriminated with a constrained partial
16857         view and require static matching in that case.
16858         Add local variable Des_Btyp. The Designated_Type
16859         of an access to incomplete subtype is either its non-limited view if
16860         coming from a limited with or its etype if regular incomplete subtype.
16861
16862         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
16863         Fix predicate to identify and allow cases of (expander-generated)
16864         references to tag of designated object of a RACW.
16865         (Validate_Static_Object_Name): In Ada 2005, a formal object is
16866         non-static, and therefore cannot appear as a primary in a preelaborable
16867         package.
16868         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
16869         Has_Read_Write_Attributes.
16870         (Has_Read_Write_Attributes): Reimplement in termes of
16871         Has_Stream_Attribute_Definition.
16872         (Missing_Read_Write_Attributes): When checking component types in a
16873         record, unconditionally call Missing_Read_Write_Attributes recursively
16874         (remove guard checking for Is_Record_Type / Is_Access_Type).
16875
16876 2006-10-31  Robert Dewar  <dewar@adacore.com>
16877
16878         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
16879         useless assignments here and conditionalize it on absence of exception
16880         handlers.
16881         (Analyze_Exception_Handlers): Small code reorganization of error
16882         detection code, for new handling of formal packages.
16883
16884 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16885             Hristian Kirtchev  <kirtchev@adacore.com>
16886
16887         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
16888         that has been constant-folded, preserve information of original tree,
16889         for ASIS uses.
16890         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
16891         generated private extension declaration if the formal derived type is
16892         synchronized. Carry synchronized present over to the generated private
16893         extension.
16894         (Validate_Derived_Type_Instance): Ensure that the actual of a
16895         synchronized formal derived type is a synchronized tagged type.
16896         (Instantiate_Formal_Package): When creating the instantiation used to
16897         validate the actual package of a formal declared without a box, check
16898         whether the formal itself depends on a prior actual.
16899         (Instantiate_Formal_Subprogram): Create new entities for the defining
16900         identifiers of the formals in the renaming declaration, for ASIS use.
16901         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
16902         a renaming declaration or a subtype declaration for an actual in an
16903         instance, capture location information of declaration in generic, for
16904         ASIS use.
16905         (Instantiate_Formal_Package): Add comments on needed additional tests.
16906         AI-317 (partial parametrization) is fully implemented.
16907         (Validate_Private_Type_Instance): Add check for actual which
16908         must have preelaborable initialization
16909         Use new // insertion for some continuation messages
16910         (Analyze_Formal_Object_Declaration): Change usage of Expression to
16911         Default_Expression. Add type retrieval when the declaration has an
16912         access definition. Update premature usage of incomplete type check.
16913         (Check_Access_Definition): New subsidiary routine. Check whether the
16914         current compilation version is Ada 05 and the supplied node has an
16915         access definition.
16916         (Instantiate object): Alphabetize local variables. Handle the creation
16917         of new renaming declarations with respect to the kind of definition
16918         used - either an access definition or a subtype mark. Guard against
16919         unnecessary error message in the context of anonymous access types after
16920         they have been resolved. Add check for required null exclusion in a
16921         formal object declaration.
16922         (Switch_View): A private subtype of a non-private type needs to be
16923         switched (the base type can have been switched without its private
16924         dependents because of the last branch of Check_Private_View.
16925         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
16926         value from BT.
16927         (Instantiate_Type): Emit an error message whenever a class-wide type of
16928         a tagged incomplete type is used as a generic actual.
16929         (Find_Actual_Type): Extend routine to handle a component type in a child
16930         unit that is imported from a formal package in a parent.
16931         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
16932         agree on constrainedness, rather than checking against ultimate ancestor
16933         (Instantiate_Subprogram_Body): Create a cross-reference link to the
16934         generic body, for navigation purposes.
16935
16936 2006-10-31  Robert Dewar  <dewar@adacore.com>
16937             Thomas Quinot  <quinot@adacore.com>
16938
16939         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
16940         type.
16941         (New_Stream_Subprogram): When processing an attribute definition clause
16942         for a stream-oriented subprogram, record an entity node occurring at
16943         the point of clause to use for checking the visibility of the clause,
16944         as defined by 8.3(23) as amended by AI-195.
16945         (New_Stream_Subprogram): New procedure, factoring behaviour from both
16946          New_Stream_Function and New_Stream_Procedure.
16947         (New_Stream_Function, New_Stream_Procedure): Removed.
16948         (Analyze_Attribute_Definition_Clause, case Address): Check new
16949         Alignment_Check check
16950
16951 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16952             Javier Miranda  <miranda@adacore.com>
16953             Robert Dewar  <dewar@adacore.com>
16954
16955         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
16956         generate the same errors compiling under -gnatc.
16957         (Try_Object_Operation): If no candidate interpretation succeeds, but
16958         there is at least one primitive operation with the right name, report
16959         error in call rather than on a malformed selected component.
16960         (Analyze_Selected_Component): If the prefix is an incomplete type from
16961         a limited view, and the full view is available, use the full view to
16962         determine whether this is a prefixed call to a primitive operation.
16963         (Operator_Check): Verify that a candidate interpretation is a binary
16964         operation before checking the type of its second formal.
16965         (Analyze_Call): Add additional warnings for function call contexts not
16966         yet supported.
16967         (Analyze_Allocator): Move the check for "initialization not allowed for
16968         limited types" after analyzing the expression. This is necessary,
16969         because OK_For_Limited_Init looks at the structure of the expression.
16970         Before analysis, we don't necessarily know what sort of expression it
16971         is. For example, we don't know whether F(X) is a function call or an
16972         indexed component; the former is legal in Ada 2005; the latter is not.
16973         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
16974         were missing. We also didn't handle qualified expressions. Now also
16975         allow function calls. Use new common routine OK_For_Limited_Init.
16976         (Analyze_Type_Conversion): Do not perform some legality checks in an
16977         instance, because the error message will be redundant or spurious.
16978         (Analyze_Overloaded_Selected_Component): Do not do style check when
16979         setting an entity, since we do not know it is the right entity yet.
16980         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
16981         (Analyze_Overloaded_Selected_Component): Same change
16982         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
16983         since regular incomplete subtypes are transformed into corresponding
16984         subtypes of their full views.
16985         (Complete_Object_Operation): Treat name of transformed subprogram call
16986         as coming from source, for browsing purposes.
16987         (Try_Primitive_Operation): If formal is an access parameter, compare
16988         with base type of object to determine whether it is a primitive
16989         operation.
16990         (Operator_Check): If no interpretation of the operator matches, check
16991         whether a use clause on any candidate might make the operation legal.
16992         (Try_Class_Wide_Operation): Check whether the first parameter is an
16993         access type whose designated type is class-wide.
16994
16995 2006-10-31  Robert Dewar  <dewar@adacore.com>
16996             Ed Schonberg  <schonberg@adacore.com>
16997             Gary Dismukes  <dismukes@adacore.com>
16998
16999         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
17000         warn on infinite loops.
17001         Add \\ to some continuation messages
17002         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
17003         (Process_Bounds): If the bounds are integer literals that result from
17004         constant-folding, and they carry a user-defined type, preserve that type
17005         rather than treating this as an integer range.
17006         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
17007         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
17008         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
17009         left hand side of assignment.
17010         (Analyze_Assignment): Add suport to manage assigments to the attribute
17011         priority of a protected object.
17012         (Check_Possible_Current_Value_Condition): Allow fully qualified names
17013         not just identifiers.
17014         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
17015         or AND THEN for possible tracking.
17016         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
17017         case of while loops so we can track values in the loop body.
17018
17019 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17020             Hristian Kirtchev  <kirtchev@adacore.com>
17021             Bob Duff  <duff@adacore.com>
17022
17023         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
17024         procedure cannot be a protected operation (it is a basic_declaration,
17025         not a subprogram_declaration).
17026         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
17027         Subp. Add logic for entry processing.
17028         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
17029         Determine whether an entry or subprogram of a protected or task type
17030         override an inherited primitive of an implemented interface.
17031         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
17032         Update the actual used in calls to Check_Overriding_Indicator.
17033         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
17034         generate the proper reference to the parent unit, for cross-reference.
17035         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
17036         Is_Formal.
17037         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17038         (Add_Extra_Formal): Revise procedure to allow passing in associated
17039         entity, scope, and name suffix, and handle setting of the new
17040         Extra_Formals field.
17041         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
17042         pass new parameters. Add support for adding the new extra access formal
17043         for functions whose calls are treated as build-in-place.
17044         (Analyze_A_Return_Statement): Correct casing in error message.
17045         Move Pop_Scope to after Analyze_Function_Return, because an extended
17046         return statement really is a full-fledged scope. Otherwise, visibility
17047         doesn't work right. Correct use of "\" for continuation messages.
17048         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
17049         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
17050         the node doesn't get properly marked as analyzed.
17051         (Analyze_Subprogram_Body): If subprogram is a function that returns
17052         an anonymous access type that denotes a task, build a Master Entity
17053         for it.
17054         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
17055         proper usage of null exclusion in a result definition.
17056         (Process_Formals): Code cleanup and new error message.
17057         (Process_Formals): Detect incorrect application of null exclusion to
17058         non-access types.
17059         (Conforming_Types): Handle conformance between [sub]types and itypes
17060          generated for entities that have null exclusions applied to them.
17061         (Maybe_Primitive_Operation): Add an additional type retrieval when the
17062          base type is an access subtype. This case arrises with null exclusions.
17063         (New_Overloaded_Entity): Do not remove the overriden entity from the
17064         homonym chain if it corresponds with an abstract interface primitive.
17065         (Process_Formals): Replace membership test agains Incomplete_Kind with a
17066         call to the synthesized predicate Is_Incomplete_Type.
17067         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
17068         primitives.
17069         (Analyze_Subprogram_Declaration): Check that abstract interface
17070         primitives are abstract or null.
17071         (Analyze_Subprogram_Specification): Remove previous check for abstract
17072         interfaces because it was not complete.
17073         (Has_Interface_Formals): Removed.
17074
17075 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17076             Javier Miranda  <miranda@adacore.com>
17077
17078         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
17079         of Analyze_Package_Body, to create Itype references for anonymous
17080         access types created in the package declaration, whose designated types
17081         may have only a limited view.
17082         (Analyze_Package_Specification): For the private part of a nested
17083         package, install private_with_clauses of enclosing compilation unit if
17084         we are in its visible part.
17085         (Declare_Inherited_Private_Subprograms): Complete barrier
17086         to ensure that the primitive operation has an alias to some parent
17087         primitive. This is now required because, after the changes done for the
17088         implementation of abstract interfaces, the contents of the list of
17089         primitives has entities whose alias attribute references entities of
17090         such list of primitives.
17091         (Analyze_Package_Specification): Simplify code that handles parent units
17092         of instances and formal packages.
17093         (Uninstall_Declarations): Check the convention consistency among
17094         primitive overriding operations of a tagged record type.
17095
17096 2006-10-31  Robert Dewar  <dewar@adacore.com>
17097             Hristian Kirtchev  <kirtchev@adacore.com>
17098             Javier Miranda  <miranda@adacore.com>
17099             Ed Schonberg  <schonberg@adacore.com>
17100
17101         * sem_ch8.adb: Minor error msg rewording
17102         (Undefined): When checking for misspellings, invert arguments (to get
17103         expected and found set right)
17104         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
17105         (Analyze_Generic_Renaming): Same fix
17106         (Use_One_Package): Do not take into account the internal entities of
17107         abstract interfaces during the analysis of entities that are marked
17108         as potentially use-visible.
17109         (Find_Type): Handle the case of an attribute reference for
17110         implementation defined attribute Stub_Type (simply let the analysis of
17111         the attribute reference rewrite it).
17112         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
17113         type that appears in a Use_Type clause.
17114         (Analyze_Object_Renaming): Add support for renaming of the Priority
17115         attribute.
17116         (Find_Type): In Ada 2005, a task type can be used within its own body,
17117         when it appears in an access definition.
17118         (Analyze_Object_Renaming): Remove warning on null_exclusion.
17119         (Analyze_Object_Renaming): Introduce checks for required null exclusion
17120          in a formal object declaration or in a subtype declaration.
17121         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
17122         (Check_Null_Exclusion): New local routine to
17123         Analyze_Subprogram_Renaming. Check whether the formals and return
17124         profile of a renamed subprogram have required null exclusions when
17125         their counterparts of the renaming already impose them.
17126         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
17127         Determine whether an entity is inside a generic scope.
17128         (In_Open_Scope): First pass of documentation update.
17129         (Find_Expanded_Name): Add support for shadow entities associated with
17130         limited withed packages. This is required to handle nested packages.
17131         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
17132         that makes a renaming of a limited withed package illegal.
17133
17134 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17135             Ed Schonberg  <schonberg@adacore.com>
17136
17137         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
17138         Check_Overriding_Indicator.
17139         (Analyze_Task_Definition): Ditto.
17140         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
17141         (Check_Overriding_Indicator): To find overridden interface operation,
17142         examine only homonyms that have an explicit subprogram declaration, not
17143         inherited operations created by an unrelated type derivation.
17144         (Check_Overriding_Indicator): When checking for the presence of "null"
17145         in a procedure, ensure that the queried node is a procedure
17146         specification.
17147         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
17148         type when the formal is an access to variable.
17149         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
17150         (Analyze_Task_Type): Same addition
17151         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
17152         provide navigation capabilities for entries.
17153
17154 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
17155             Ed Schonberg  <schonberg@adacore.com>
17156             Javier Miranda  <miranda@adacore.com>
17157             Gary Dismukes  <dismukes@adacore.com>
17158
17159         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
17160         inherited from an interface ancestor by another interface in the
17161         context of an instance as 'late'.
17162         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
17163         of a call to a function that dispatches on access result.
17164         (Check_Dispatching_Operation): In case of late overriding of a primitive
17165         that covers abstract interface subprograms we register it in all the
17166         secondary dispatch tables associated with abstract interfaces.
17167         (Check_Dispatching_Call): Add check that a dispatching call is not made
17168         to a function with a controlling result of a limited type. This is a
17169         current implementation restriction.
17170         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
17171         (Check_Dispatching_Operation): Do no emit a warning if the controlling
17172         argument is an interface type that is a generic formal.
17173         (Is_Interface_Subprogram): Removed.
17174         (Check_Dispatching_Operation): If the subprogram is not a dispatching
17175         operation, check the formals to handle the case in which it is
17176         associated with an abstract interface type.
17177
17178 2006-10-31  Robert Dewar  <dewar@adacore.com>
17179             Ed Schonberg  <schonberg@adacore.com>
17180
17181         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
17182         Add new calls to this procedure during traversal
17183         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
17184         another unit if expansion is disabled.
17185
17186 2006-10-31  Robert Dewar  <dewar@adacore.com>
17187
17188         * sem_eval.adb (Compile_Time_Compare): Make use of information from
17189         Current_Value in the conditional case, to evaluate additional
17190         comparisons at compile time.
17191
17192 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17193             Hristian Kirtchev  <kirtchev@adacore.com>
17194             Javier Miranda  <miranda@adacore.com>
17195
17196         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
17197         subprogram type to provide better diagnostics in case of ambiguity.
17198         (Covers): Handle coverage of formal and actual anonymous access types in
17199         the context of generic instantiation.
17200         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
17201         abstract interface types; this is required to handle concurrent types
17202         with discriminants and abstract interface types.
17203         (Covers): Include type coverage of both regular incomplete subtypes and
17204         incomplete subtypes of incomplete type visibles through a limited with
17205         clause.
17206
17207 2006-10-31  Robert Dewar  <dewar@adacore.com>
17208             Hristian Kirtchev  <kirtchev@adacore.com>
17209             Ed Schonberg  <schonberg@adacore.com>
17210
17211         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
17212         messages for entities in packages which are not used.
17213         (Collect_Synchronized_Interfaces): New procedure.
17214         (Overrides_Synchronized_Primitive): New function.
17215         (Denotes_Discriminant): Extend predicate to apply to task types.
17216         Add missing continuation marks in error msgs
17217         (Unqualify): New function for removing zero or more levels of
17218         qualification from an expression. There are numerous places where this
17219         ought to be used, but we currently only deal properly with zero or one
17220         level.
17221         (In_Instance); The analysis of the actuals in the instantiation of a
17222         child unit is not within an instantiation, even though the parent
17223         instance is on the scope stack.
17224         (Safe_To_Capture_Value): Exclude the case of variables that are
17225         renamings.
17226         (Check_Obsolescent): Removed
17227         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
17228         is an aliased view, even when rewritten as a reference to the target
17229         object in an assignment.
17230         (Get_Subprogram_Entity): New function
17231         (Known_To_Be_Assigned): New function
17232         (Type_Access_Level): Compute properly the access level of a return
17233         subtype that is an anonymous access type.
17234         (Explain_Limited_Type): Correct use of "\" for continuation messages.
17235         (Is_Transfer): The new extended_return_statement causes a transfer of
17236         control.
17237         (Has_Preelaborable_Initialization): New function
17238         (Has_Null_Exclusion): New function. Given a node N, determine whether it
17239         has a null exclusion depending on its Nkind.
17240         Change Is_Lvalue to May_Be_Lvalue
17241         (May_Be_Lvalue): Extensive additional code to deal with subprogram
17242         arguments (IN parameters are not Lvalues, IN OUT parameters are).
17243         (Safe_To_Capture_Value): Extend functionality so it can be used for
17244         the current value condition case.
17245         (Has_Compatible_Alignment): New function
17246         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
17247         objects to handle the Ada 2005 case, where aliasedness no longer implies
17248         that the object is constrained. In particular, for dereferenced names,
17249         the designated object must be assumed to be unconstrained.
17250         (Kill_Current_Values): Properly deal with the case where we encounter
17251         a loop in the scope chain.
17252         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
17253         a value.
17254         (Compile_Time_Constraint_Error): Improve error message in error case
17255
17256         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
17257         associated with entities of abstract interface primitives.
17258         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
17259
17260 2006-10-31  Robert Dewar  <dewar@adacore.com>
17261
17262         * s-osinte-tru64.adb: 
17263         Mark Asm statements Volatile to prevent warnings (seems a
17264         reasonable change anyway)
17265         Fixes new warnings
17266
17267         * s-mastop-irix.adb: Add Volatile to Asm statements
17268         Suppresses warning, and seems appropriate in any case
17269
17270         * s-osinte-vms.adb: Add Volatile to Asm statement
17271
17272         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
17273
17274         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
17275         returned.
17276         Add call to Check_Code_Statement
17277
17278 2006-10-31  Robert Dewar  <dewar@adacore.com>
17279             Ed Schonberg  <schonberg@adacore.com>
17280             Bob Duff  <duff@adacore.com>
17281
17282         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
17283         Synchronized_Present): Add Formal_Derived_Type_Definition and
17284         Private_Extension_Declaration to the list of assertions.
17285         (Is_Entry_Barrier_Function): New flag
17286         (Has_Self_Reference): New flag on aggregates, to indicate that they
17287         contain a reference to the enclosing type, inserted through a default
17288         initialization.
17289         (Next_Rep_Item): Move from Node4 to Node5.
17290         (Entity): Add this field for N_Attribute_Definition_Clause.
17291         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
17292         (N_Return_Object_Declaration): Remove this node kind. We now use
17293         N_Object_Declaration instead.
17294         (Actual_Designated_Subtype): Move to a different place to make room in
17295         N_Extended_Return_Statement.
17296         (Procedure_To_Call): Move to a different place to make room in
17297         N_Extended_Return_Statement.
17298         (Return_Type): Removed this field to make room in return statements
17299         (both kinds).
17300         (Return_Statement_Entity): New field in return statements, in part to
17301         replace Return_Type, and in part to support the fact that return
17302         statements are now pushed on the scope stack during semantic analysis.
17303         (Return_Object_Declarations): New field to support extended return
17304         statements.
17305         (N_Extended_Return_Statement): New node for extended_return_statement
17306         nonterminal.
17307         (N_Return_Object_Declaration): New node for part of
17308         extended_return_statement nonterminal. Needed because all the necessary
17309         fields won't fit in N_Extended_Return_Statement.
17310         Generic_associations now carry the Box_Present flag, to indicate a
17311         default for an actual in a partially parametrized formal package.
17312
17313         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
17314         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
17315         and for the new predefined dispatching policies: EDF_Across_Priorities,
17316         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
17317         Introduce new name Stub_Type for implementation defined attribute.
17318         Add pragma Preelaborable_Initialization
17319         Add entry for Priority attribute.
17320         Add Pragma_Wide_Character_Encoding
17321         (Get_Convention_Name): Given a convention id, this function returns the
17322         corresponding name id from the names table.
17323
17324 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
17325             Robert Dewar  <dewar@adacore.com>
17326             Bob Duff  <duff@adacore.com>
17327
17328         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
17329         print null exclusion twice in the case of an access definition,
17330         Implement new -gnatL switch
17331         Remove N_Return_Object_Declaration. We now use
17332         N_Object_Declaration instead. Implement the case for
17333         N_Extended_Return_Statement. Alphabetize the cases.
17334         Add cases for new nodes N_Extended_Return_Statement and
17335         N_Return_Object_Declaration. The code is not yet written.
17336         Update the output for N_Formal_Object_Declaration
17337         and N_Object_Renaming_Declaration.
17338         (Write_Itype): Account for the case of a modular integer subtype whose
17339         base type is private.
17340
17341 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
17342
17343         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
17344         Remove elaboration code, now done in the binder.
17345
17346         * s-rident.ads: Make this unit Preelaborate.
17347         (No_Restrictions): New constant used to clean up code and follow
17348         preelaborate constraints.
17349
17350         * s-stalib.adb: 
17351         Add System.Restrictions dependence, referenced directly from the
17352         binder generated file.
17353
17354 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
17355
17356         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
17357         True when AAMP extended floating-point is in use (48-bit). Change type
17358         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
17359         the two byte array types on AFloat. Change type of IV_Ilf overlay
17360         variable from Byte8 to ByteLF. Add appropriate initializations of
17361         floating-point overlays for AAMP cases.
17362
17363 2006-10-31  Javier Miranda  <miranda@adacore.com>
17364
17365         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
17366         (Get_Ceiling): New subprogram that returns
17367         the ceiling priority of the protected object.
17368         (Set_Ceiling): New subprogram that sets the new ceiling priority of
17369         the protected object.
17370
17371         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
17372
17373         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
17374
17375 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
17376
17377         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
17378         requeuing to the same protected object to give higher priority tasks
17379         the opportunity to execute.
17380
17381 2006-10-31  Robert Dewar  <dewar@adacore.com>
17382
17383         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
17384         add more precise check for the character sequence that follows '[' to
17385         avoid possible confusion in case if '[' is the last character of a
17386         string literals.
17387         (Scan_Wide): Always allow brackets encoding
17388
17389 2006-10-31  Olivier Hainque  <hainque@adacore.com>
17390
17391         * s-stchop.ads: make this unit preelaborate. This is desirable in
17392         general and made mandatory by the use of this unit by s-taprop which
17393         is itself preelaborate.
17394
17395         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
17396         Td_Events component.
17397
17398 2006-10-31  Vincent Celier  <celier@adacore.com>
17399
17400         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
17401         in file names.
17402
17403 2006-10-31  Vincent Celier  <celier@adacore.com>
17404
17405         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
17406
17407 2006-10-31  Vincent Celier  <celier@adacore.com>
17408
17409         * makegpr.adb (Check_Compilation_Needed): Take into account path names
17410         with spaces.
17411         (Check_Compilation_Needed): When checking a C or C++ source, do not
17412         resolve symbolic links.
17413         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
17414         When not in verbose mode and Ellipse is True, display "..." for the
17415         first argument with Display set to False.
17416         (Build_Global_Archive): Always set Display True for the first object
17417         file. Call Display_Command with Ellipse set to True.
17418
17419 2006-10-31  Matt Heaney  <heaney@adacore.com>
17420
17421         * a-crbtgo.ads: Commented each subprogram
17422
17423         * a-crbtgo.adb: Added reference to book from which algorithms were
17424         adapted.
17425
17426         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
17427         indicate which child.
17428         (Generic_Conditional_Insert): changed parameter name from "Success" to
17429         "Inserted".
17430         (Generic_Unconditional_Insert_With_Hint): improved algorithm
17431
17432         * a-coorse.adb (Replace_Element): changed parameter name in call to
17433         conditional insert operation.
17434
17435         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
17436
17437         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
17438         Generic_Iteration
17439
17440         * a-ciorse.adb (Replace_Element): changed parameter name in call to
17441         conditional insert operation.
17442
17443         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
17444         Generic_Iteration.
17445
17446         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
17447         instead of mode inout.
17448
17449         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
17450         draft
17451         (Generic_Read): preserve existing buckets array if possible
17452         (Generic_Write): don't send buckets array length anymore
17453
17454         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
17455         instead of mode inout.
17456
17457         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
17458         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17459
17460         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
17461         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17462         (Replace_Element): local operation is now an instantiation
17463
17464         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
17465         check current length.
17466         (Generic_Replace_Element): new operation
17467
17468 2006-10-31  Doug Rupp  <rupp@adacore.com>
17469
17470         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
17471         Call TBK$SYMBOLIZE without omitting parameters.
17472
17473 2006-10-31  Vincent Celier  <celier@adacore.com>
17474
17475         * symbols-processing-vms-ia64.adb,
17476         symbols-processing-vms-alpha.adb (Process): Do not include symbols
17477         that come from generic instantiations in bodies.
17478
17479 2006-10-31  Pat Rogers  <rogers@adacore.com>
17480
17481         * a-rttiev.ads, a-rttiev.adb: 
17482         This is a significant redesign primarily for the sake of automatic
17483         timer task termination but also to fix a design flaw.
17484         Therefore we are now using an RTS lock, instead of a protected
17485         object, to provide mutual exclusion to the queue of pending events
17486         and the type Timing_Event is no longer a protected type.
17487
17488 2006-10-31  Robert Dewar  <dewar@adacore.com>
17489             Cyrille Comar  <comar@adacore.com>
17490             Ben Brosgol  <brosgol@adacore.com>
17491
17492         * debug.adb:  Update flags documentation
17493
17494         * gnat_ugn.texi: Add documentation for new -gnatwq switch
17495         Clean up documentation for several other warning switches
17496         Clarify how task stack size can be specified with various
17497         versions of Windows.
17498         Add note that -gnatVo includes ranges including loops
17499         Add documentation for -gnatL switch
17500         Add note on elaboration warning for initializing variables
17501         Add documentation for new -gnatwt warning switch
17502         Document new form of pragma Warnings (On|Off, string)
17503         Add comment on use of pragma Warnings to control warnings
17504         Add documentation for -gnatjnn switch
17505         Modify section on interfacing with C for VMS 64-bit.
17506         Add doc for -gnatVe/E
17507         Add documentation of new warning flags -gnatww/-gnatwW
17508         Add warnings about address clause overlays to list of warnings
17509         (Exception Handling Control): Document that the option --RTS must be
17510         used consistently for gcc and gnatbind.
17511         Clarify that inlining is not always possible
17512         Update documentation on pragma Unchecked_Union.
17513
17514         * gnat_rm.texi: 
17515         Add documentation for new extended version of pragma Obsolescent
17516         Add documentation for implementation defined attribute 'Stub_Type.
17517         Add note on use of Volatile in asm statements
17518         Add documentation on use of pragma Unreferenced in context clause
17519         Document new form of pragma Warnings (On|Off, pattern)
17520         Document pragma Wide_Character_Encoding
17521         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
17522         enforced if code generation is active.
17523         Add section on pragma Suppress to document GNAT specific check
17524         Alignment_Check
17525         Clarify difference between No_Dispatching_Calls & No_Dispatch.
17526         Add documentation for pragma Restrictions (No_Elaboration_Code)
17527
17528         * gnat-style.texi: 
17529         Add comments on layout of subprogram local variables in the
17530         presence of nested subprograms.
17531
17532         * ug_words: Resync.
17533
17534         * elists.ads: Minor reformatting
17535         Node returns Node_Or_Entity_Id (doc change only)
17536
17537         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
17538
17539         * g-arrspl.ads (Create): Update comments.
17540
17541         * sem.ads: Add details on the handling of the scope stack.
17542
17543         * usage.adb: Update documentation.
17544
17545         * validsw.ads, validsw.adb: 
17546         Add definition of Validity_Check_Components and implement -gnatVe/E
17547
17548         * vms_data.ads: Add missing VMS qualifiers.
17549
17550         * s-addope.ads: Add documentation on overflow and divide by zero
17551
17552 2006-10-31  Robert Dewar  <dewar@adacore.com>
17553             Thomas Quinot  <quinot@adacore.com>
17554             Arnaud Charlet  <charlet@adacore.com>
17555
17556         * fmap.adb: Put routines in alpha order
17557
17558         * g-boumai.ads: Remove redundant 'in' keywords
17559
17560         * g-cgi.adb: Minor reformatting
17561
17562         * g-cgi.ads: Remove redundant 'in' keywords
17563
17564         * get_targ.adb: Put routines in alpha order
17565
17566         * prj-attr.ads: Minor reformatting
17567
17568         * s-atacco.ads: Minor reformatting
17569
17570         * scn.adb: Put routines in alpha order
17571
17572         * sinput-l.adb: Minor comment fix
17573
17574         * sinput-p.adb: Minor comment fix
17575
17576         * s-maccod.ads: Minor reformatting
17577
17578         * s-memory.adb: Minor reformatting
17579
17580         * s-htable.adb: Fix typo in comment.
17581
17582         * s-secsta.adb: Minor comment update.
17583
17584         * s-soflin.adb: Minor reformatting
17585
17586         * s-stoele.ads: 
17587         Add comment about odd qualification in Storage_Offset declaration
17588
17589         * s-strxdr.adb: 
17590         Remove unnecessary 'in' keywords for formal parameters.
17591
17592         * treeprs.adt: Minor reformatting
17593
17594         * urealp.adb: Put routines in alpha order
17595
17596         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
17597         taking string.
17598
17599         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17600
17601         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
17602
17603         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
17604         workaround as on other platforms.
17605
17606         * g-eacodu-vms.adb: Remove redundant 'in' keywords
17607         * g-expect-vms.adb: Remove redundant 'in' keywords
17608
17609         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
17610         clear error message if the list-of-files file cannot be opened.
17611
17612         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
17613         equality operator is always visible.
17614
17615         * lang.opt: Woverlength-strings: New option.
17616
17617         * nmake.adt: 
17618         Update copyright, since nmake.ads and nmake.adb have changed.
17619
17620         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
17621         (Binder_Output_Time_Stamps_Set): removed.
17622         (Old_Binder_Output_Time_Stamp): idem.
17623         (New_Binder_Output_Time_Stamp): idem.
17624         (Recording_Time_From_Last_Bind): idem.
17625         (Recording_Time_From_Last_Bind): Make constant.
17626
17627         * output.ads, output.adb (Write_Str): Allow LF characters
17628         (Write_Spaces): New procedure
17629
17630         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
17631
17632         * inline.adb: Minor reformatting
17633
17634         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17635
17636         * s-mastop-vms.adb: Remove redundant 'in' keywords
17637
17638         * s-osprim-vms.adb: Remove redundant 'in' keywords
17639
17640         * s-trafor-default.adb: Remove redundant 'in' keywords
17641
17642         * 9drpc.adb: Remove redundant 'in' keywords
17643
17644         * s-osinte-mingw.ads: Minor reformatting
17645
17646         * s-inmaop-posix.adb: Minor reformatting
17647
17648         * a-direio.ads: Remove quotes from Compile_Time_Warning message
17649
17650         * a-exexda.adb: Minor code reorganization
17651
17652         * a-filico.adb: Minor reformatting
17653
17654         * a-finali.adb: Minor reformatting
17655
17656         * a-nudira.ads: Remove quote from Compile_Time_Warning message
17657
17658         * a-numeri.ads: Minor reformatting
17659
17660         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
17661
17662         * exp_pakd.ads: Fix obsolete comment
17663
17664         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
17665         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
17666         Probably not a bug, but certainly neater and more efficient.
17667
17668         * a-tienio.adb: Minor reformatting
17669
17670         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
17671         Avoid assuming low bound of string is 1.
17672
17673         * gnatbind.adb: Change Bindusg to package and rename procedure as
17674         Display, which now ensures that it only outputs usage information once.
17675         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
17676
17677         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
17678         Table'First.
17679
17680         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
17681         warning.
17682         (Match): Add pragma Assert to ensure that Matches'First is zero
17683
17684         * g-regpat.ads (Match): Document that Matches lower bound must be zero
17685
17686         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
17687         documented preconditions (also kills warnings about bad indexes).
17688
17689         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
17690         is 1.
17691         (Build_Import_Library): Ditto;
17692
17693         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
17694
17695         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
17696
17697         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
17698         lower bound of choice table is 1.
17699
17700         * sem_case.ads (Analyze_Choices): Document that lower bound of
17701         Choice_Table is 1.
17702
17703         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
17704         string is 1.
17705
17706         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
17707         and add appropriate Assert pragma to suppress warnings.
17708
17709         * atree.h, atree.ads, atree.adb
17710         Change Elist24 to Elist25
17711         Add definitions of Field28 and Node28
17712         (Traverse_Field): Use new syntactic parent table in sinfo.
17713
17714         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17715
17716         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17717
17718         * exp_tss.adb: Put routines in alpha order
17719
17720         * fe.h: Remove redundant declarations.
17721
17722 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
17723
17724         * utils.c (builtin_function): Rename to gnat_builtin_function.
17725         Move common code to add_builtin_function.
17726         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
17727         gnat_builtin_function.
17728         * gigi.h (builtin_function): Rename to gnat_builtin_function.
17729         Change the signature.
17730
17731 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
17732
17733         * Makefile.in: Add TEXI2PDF definition.
17734         * Make-lang.in: Add "ada.pdf" target.
17735
17736 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
17737
17738         * decl.c, utils.c: Fix comment typos.
17739         * utils.c: Fix a typo.
17740
17741 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
17742
17743         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
17744         on "pure" Ada subprograms if SJLJ exceptions are used.
17745         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
17746         on the declaration node of JMPBUF_SAVE.
17747         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
17748         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
17749         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
17750
17751 2006-08-20  Laurent Guerby  <laurent@guerby.net>
17752
17753         PR ada/28716
17754         g-socket.adb (Bind_Socket): Call Set_Address.
17755
17756 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
17757
17758         PR ada/15802
17759         * decl.c (same_discriminant_p): New static function.
17760         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
17761         subtype and we have discriminants, fix up the COMPONENT_REFs
17762         for the discriminants to make them reference the corresponding
17763         fields of the parent subtype after it has been built.
17764
17765 2006-09-15  Roger Sayle  <roger@eyesopen.com>
17766
17767         PR ada/18817
17768         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
17769         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
17770
17771 2006-09-13  Olivier Hainque  <hainque@adacore.com>
17772
17773         PR ada/29025
17774         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
17775         of a SAVE_EXPR, just make the operand addressable/not-readonly and
17776         let the common gimplifier code make and propagate a temporary copy.
17777         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
17778         out/in-out actuals and defer setting the addressable/readonly bits
17779         to the gimplifier.
17780
17781 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
17782
17783         PR ada/28591
17784         * decl.c (components_to_record): Defer emitting debug info for the
17785         record type associated with the variant until after we are sure to
17786         actually use it.
17787
17788 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
17789
17790         PR ada/21952
17791         * gigi.h (gnat_internal_attribute_table): Declare.
17792         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
17793         * utils.c (gnat_internal_attribute_table): New global variable.
17794         (builtin_function): Always call decl_attributes on the builtin.
17795         (handle_const_attribute): New static function.
17796         (handle_nothrow_attribute): Likewise.
17797
17798 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
17799
17800         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
17801
17802 2006-06-23  Olivier Hainque  <hainque@adacore.com>
17803
17804         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
17805         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
17806
17807 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
17808             Eric Botcazou  <ebotcazou@adacore.com>
17809
17810         PR ada/18692
17811         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
17812         check-gnat into check-acats.
17813
17814 2006-06-17  Karl Berry  <karl@gnu.org>
17815
17816         * gnat-style.texi (@dircategory): Use "Software development"
17817         instead of "Programming", following the Free Software Directory.
17818
17819 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17820
17821         PR ada/27944
17822         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
17823
17824 2006-06-06  Laurent Guerby  <laurent@guerby.net>
17825
17826         PR ada/27769
17827         mlib-utl.adb: Use Program_Name.
17828
17829 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
17830
17831         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
17832         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
17833         trans.c, utils.c: Fix comment typos.  Follow spelling
17834         conventions.
17835         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
17836         conventions.
17837
17838 2006-05-19  Nicolas Setton  <setton@adacore.com>
17839
17840         * misc.c (gnat_dwarf_name): New function.
17841         (LANG_HOOKS_DWARF_NAME): Define to it.
17842
17843 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
17844
17845         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
17846         (ada/misc.o): Likewise.
17847         (ada/utils.o): Likewise.
17848
17849 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
17850
17851         * Makefile.in: Add Ada support for GNU/kFreeBSD.
17852         * s-osinte-kfreebsd-gnu.ads: New file.
17853
17854 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
17855
17856         * Make-lang.in: Rename docdir to gcc_docdir.
17857
17858 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
17859
17860         * gigi.h (get_ada_base_type): Delete.
17861         * utils2.c (get_ada_base_type): Likewise.
17862         * trans.c (convert_with_check): Operate in the real base type.
17863
17864 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17865
17866         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
17867
17868 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
17869
17870         * utils.c (create_var_decl): Use have_global_bss_p when deciding
17871         whether to make the decl common.
17872
17873 2006-02-20  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
17874
17875         * Make-lang.in (Ada): Remove.
17876         (.PHONY): Remove Ada
17877
17878 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
17879
17880         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
17881         aggregate, check the interpretations of the other operand to find one
17882         that may be a boolean array.
17883
17884         (Analyze_Selected_Component): Fix flow-of-control typo in case where
17885         the prefix is a private extension.
17886
17887 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
17888
17889         PR ada/26315
17890         * utils2.c (find_common_type): If both input types are BLKmode and
17891         have the same constant size, keep using the first one.
17892
17893         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
17894
17895         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
17896
17897         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
17898
17899 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
17900
17901         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
17902         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
17903         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
17904         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
17905         Abort_Defer/Undefer pairs to avoid the possibility of a task being
17906         aborted while owning a lock.
17907
17908 2006-02-17  Javier Miranda  <miranda@adacore.com>
17909             Robert Dewar  <dewar@adacore.com>
17910
17911         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
17912         through an access to class-wide interface we force the displacement of
17913         the pointer to the allocated object to reference the corresponding
17914         secondary dispatch table.
17915         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
17916         if Long_Shifts are supported on the target, even if 64 bit divides
17917         are not supported (configurable run time mode).
17918         (Expand_N_Type_Conversion): Do validity check if validity checks on
17919         operands are enabled.
17920         (Expand_N_Qualified_Expression): Do validity check if validity checks
17921         on operands are enabled.
17922
17923 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
17924
17925         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
17926         must be materialized when the renamed expression is an explicit
17927         dereference.
17928
17929 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
17930
17931         * freeze.adb (Statically_Discriminated_Components): Return false if
17932         the bounds of the type of the discriminant are not static expressions.
17933
17934         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
17935         the bounds of the discriminant type are not static.
17936
17937 2006-02-17  Robert Dewar  <dewar@adacore.com>
17938
17939         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
17940         then we close To if it is valid.
17941
17942 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
17943
17944         * init.c (facility_resignal_table): new array
17945         (__gnat_default_resignal_p): enhance default predicate to resignal if
17946         VMS condition has one of the predefined facility codes.
17947
17948 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
17949
17950         * Makefile.in: Use VMS64 specialized versions of several units in
17951         Interfaces.C hierarchy to be compatible with HP C default size choices.
17952         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
17953
17954 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
17955
17956         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
17957         instantiation, the corresponding entity is the related_instance of the
17958         wrapper package created for the instance.
17959
17960 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
17961
17962         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
17963         the current instance is nested within another instance in a child unit.
17964
17965 2006-02-17  Javier Miranda  <miranda@adacore.com>
17966             Ed Schonberg  <schonberg@adacore.com>
17967
17968         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
17969         type we cannot inherit the primitive operations; we inherit the
17970         Corresponding_Record_Type (which has the list of primitive operations).
17971         (Check_Anonymous_Access_Types): When creating anonymous access types for
17972         access components, use Rewrite in order to preserve the tree structure,
17973         for ASIS use.
17974         (Analyze_Object_Declaration): For limited types with access
17975         discriminants with defaults initialized by an aggregate, obtain
17976         subtype from aggregate as for other mutable types.
17977         (Derived_Type_Declaration): If the derived type is a limited interface,
17978         set the corresponding flag (Is_Limited_Record is not sufficient).
17979
17980 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
17981
17982         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
17983         to inline a function that returns an unconstrained type, the return
17984         expression must be the first variable declared in the body of the
17985         function.
17986
17987 2006-02-17  Javier Miranda  <miranda@adacore.com>
17988
17989         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
17990         abstract interface type, the static analysis is not enough to know if
17991         the interface is implemented or not by the source tagged type. Hence
17992         we must pass the work to the expander to generate the required code to
17993         evaluate the conversion at run-time.
17994         (Resolve_Equality_Op): Do not apply previous
17995         transformation if expansion is disasbled, to prevent anomalies when
17996         locating global references in a generic unit.
17997
17998 2006-02-17  Vincent Celier  <celier@adacore.com>
17999
18000         * snames.ads, snames.adb: New standard names for new project attributes:
18001         archive_builder, archive_indexer, compiler_pic_option,
18002         config_body_file_name, config_body_file_name_pattern,
18003         config_file_switches, config_file_unique, config_spec_file_name,
18004         config_spec_file_name_pattern, default_builder_switches,
18005         default_global_compiler_switches, default_language,
18006         dependency_file_kind, global_compiler_switches, include_path,
18007         include_path_file, language_kind, linker_executable_option,
18008         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
18009         roots, runtime_project.
18010
18011 2006-02-17  Matthew Heaney  <heaney@adacore.com>
18012
18013         * a-convec.ads, a-convec.adb: 
18014         (operator "&"): handle potential overflow for large index types
18015         (Insert): removed Contraint_Error when using large index types
18016         (Insert_Space): removed Constraint_Error for large index types
18017         (Length): moved constraint check from Length to Insert
18018
18019         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
18020         as not null access.
18021         Explicit raise statements now include an exception message.
18022         (operator "&"): handle potential overflow for large index types
18023         (Insert): removed Contraint_Error when using large index types
18024         (Insert_Space): removed Constraint_Error for large index types
18025         (Length): moved constraint check from Length to Insert
18026
18027 2006-02-17  Robert Dewar  <dewar@adacore.com>
18028
18029         * s-wchcnv.adb: Document handling of [ on output (we do not change
18030         this to ["5B"] and the new comments say why not.
18031
18032         * gnat_ugn.texi: 
18033         Add note for -gnatVo that this now includes the cases of type
18034         conversions and qualified expressions.
18035         Add comments on handling of brackets encoding for Text_IO
18036
18037 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
18038             Thomas Quinot  <quinot@adacore.com>
18039             Robert Dewar  <dewar@adacore.com>
18040             Javier Miranda  <miranda@adacore.com>
18041
18042         * expander.adb: Fix typo in comment
18043
18044         * exp_pakd.adb: Fix typo
18045         Minor comment reformatting.
18046
18047         * g-dyntab.adb: Minor reformatting
18048
18049         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
18050         aliased subprograms to look for the abstract interface subprogram.
18051
18052 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
18053
18054         * env.c (__gnat_setenv): Use size_t.
18055         (__gnat_unsetenv): Likewise.
18056         (__gnat_clearenv): Likewise.
18057
18058 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
18059
18060         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
18061
18062 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18063
18064         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
18065         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
18066         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
18067         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
18068         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
18069         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
18070         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
18071         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
18072         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
18073         no longer used.
18074
18075 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
18076
18077         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
18078         protection against race conditions is not needed.
18079         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
18080         fallback handler.
18081         (Set_Specific_Handler): Add mutual exclusive access to the specific
18082         handler.
18083         (Specific_Handler): Add mutual exclusive access for retrieving the
18084         specific handler.
18085
18086         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
18087         back handler.
18088
18089         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
18090         Fall_Back_Handler and Specific_Handler.
18091
18092         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
18093         termination handlers.
18094         Set two different owerflow depending on the maximal stack size.
18095
18096         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
18097         protection against race conditions is not needed when executing the
18098         task termination handler.
18099
18100 2006-02-13  Robert Dewar  <dewar@adacore.com>
18101
18102         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
18103         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
18104         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18105         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
18106         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
18107         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
18108         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
18109         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
18110         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
18111         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18112         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
18113         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
18114         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
18115         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
18116         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
18117         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
18118         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
18119         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
18120         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
18121         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
18122         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
18123         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
18124         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
18125         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
18126         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
18127         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
18128         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
18129         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
18130         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
18131         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
18132         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
18133         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
18134         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
18135         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
18136         reformatting.
18137
18138 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
18139
18140         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
18141         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
18142         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
18143         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
18144         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
18145         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
18146         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
18147         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
18148         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
18149
18150 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18151
18152         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
18153         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
18154         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
18155         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
18156         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
18157         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
18158         replaced by anonymous access type.
18159         (pthread_sigmask): Now take an access sigset_t
18160
18161         * s-osinte-hpux.ads:  Ditto.
18162         (pthread_mutex_t, pthread_cond_t): Update definitions to support
18163         properly 32 and 64 bit ABIs.
18164
18165 2006-02-13  Pascal Obry  <obry@adacore.com>
18166
18167         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
18168         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
18169         s-taprop-linux.adb, s-taprop-solaris.adb,
18170         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
18171         adjustement is already done when calling this routine.
18172
18173 2006-02-13  Pascal Obry  <obry@adacore.com>
18174
18175         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
18176         table to take advantage of the 16 priority levels available on Windows
18177         2000 and XP. On NT4 there are only 7 priority levels, this is properly
18178         supported by this new mapping.
18179
18180 2006-02-13  Nicolas Setton  <setton@adacore.com>
18181
18182         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
18183         (get_encoding): New subprogram. Extracts the encodings from an encoded
18184         Ada name.
18185
18186 2006-02-13  Pascal Obry  <obry@adacore.com>
18187             Nicolas Roche  <roche@adacore.com>
18188             Arnaud Charlet  <charlet@adacore.com>
18189
18190         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
18191         support.
18192         (__gnat_try_lock): Add unicode support by using a specific section on
18193         Windows.
18194         (__gnat_get_current_dir): Idem.
18195         (__gnat_open_read): Idem.
18196         (__gnat_open_rw): Idem.
18197         (__gnat_open_create): Idem.
18198         (__gnat_create_output_file): Idem.
18199         (__gnat_open_append): Idem.
18200         (__gnat_open_new): Idem.
18201         (__gnat_file_time_name): Idem.
18202         (__gnat_set_file_time_name): Idem.
18203         (__gnat_stat): Idem.
18204         (win32_no_block_spawn): Idem.
18205         (__gnat_locate_exec_on_path): Idem.
18206         (__gnat_opendir): New routine.
18207         (__gnat_closedir): Idem.
18208         (__gnat_readdir): Add new parameter length (pointer to int). Update
18209         implementation to use it and add specific Win32 code for Unicode
18210         support.
18211         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
18212         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
18213         (convert_addresses): Do not define this dummy routine on VMS.
18214
18215         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
18216         runtime Unicode support will be activated.
18217         (S2WS): String to Wide-String conversion. This version just copy a
18218         string in non Unicode version.
18219         (WS2S): Wide-String to String conversion. This version just copy a
18220         string in non Unicode version.
18221
18222         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
18223         (Open): Now import __gnat_opendir from adaint.c.
18224         (Read): Change the implementation to support unicode characters. It is
18225         not possible to use strlen() on Windows as this version supports only
18226         standard ASCII characters. So the length of the directory entry is now
18227         returned from the imported __gnat_readdir routine.
18228         Update copyright notice.
18229
18230         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
18231         (opendir): Moved to adaint.c.
18232
18233         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
18234         (Get_Directory): Fix wrong indexing.
18235         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
18236         __gnat_getenv from env.c
18237         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
18238         from env.c
18239
18240         * env.h, env.c: New file.
18241
18242         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
18243         adaint.c by __gnat_getenv from env.c
18244
18245         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
18246         adaint.c by __gnat_getenv from env.c
18247
18248         * Make-lang.in: Add env.o in the list of C object needed by gnat1
18249         and gnatbind.
18250         Update dependencies.
18251
18252 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18253             Olivier Hainque  <hainque@adacore.com>
18254             Eric Botcazou  <ebotcazou@adacore.com>
18255
18256         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
18257         
18258         * gigi.h (value_factor_p): Add prototype and description, now public.
18259
18260         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
18261         promotion for field with rep clause if the associated size was proven
18262         to be in error.
18263         Expand comments describing attempts to use a packable type.
18264         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
18265         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
18266         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
18267         necessary since these are not different types and pointers may
18268         actually designate any subtype in this hierarchy.
18269         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
18270         discriminants but put them into record only if not Unchecked_Union;
18271         pass flag to components_to_record showing Unchecked_Union.
18272         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
18273         components before variants; don't set TYPE_UNCHECKED_UNION_P.
18274         (components_to_record): New argument UNCHECKED_UNION.
18275         Remove special case code for Unchecked_Union and instead use main code
18276         with small changes.
18277
18278         PR ada/26096
18279         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
18280         variable with the expression being built, only its inner field.
18281
18282         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
18283         emit_sequence_entry_statements.
18284         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
18285         (establish_gnat_vms_condition_handler): Move before
18286         Subprogram_Body_to_gnu.
18287         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
18288         for a subprogram if it has a foreign convention or is exported.
18289         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
18290         substituted for a CONST_DECL.
18291         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
18292         Etype to assoc_to_constructor.
18293         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
18294         discriminants of Unchecked_Union.
18295         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
18296         don't need cluttering preprocessor directives.
18297         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
18298         condition handler as current in the compiled function.
18299         (body_with_handlers_p): New function. Tell whether a given sequence of
18300         statements node is attached to a package or subprogram body and involves
18301         exception handlers possibly nested within inner block statements.
18302         (emit_sequence_entry_statements): New function, to emit special
18303         statements on entry of sequences when necessary. Establish GNAT
18304         condition handler in the proper cases for VMS.
18305         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
18306         emit_sequence_entry_statements.
18307
18308         * utils2.c (find_common_type): If both input types are BLKmode and
18309         have a constant size, use the smaller one.
18310         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
18311         the same.
18312
18313         * utils.c (value_factor_p): Make public, to allow uses from other gigi
18314         units.
18315         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
18316         (convert, case UNION_TYPE): Remove special treatment for unchecked
18317         unions.
18318
18319         PR ada/18659
18320         (update_pointer_to): Update variants of pointer types to unconstrained
18321         arrays by attaching the list of fields of the main variant.
18322
18323 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18324             Robert Dewar  <dewar@adacore.com>
18325
18326         * a-exexpr.adb, a-exexpr-gcc.adb
18327         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
18328         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
18329         Remove code unused for exception propagation for the compiler itself
18330         from a-except.adb and update to still share separate packages.
18331
18332         * a-except.ads, a-except.adb: Ditto.
18333         Add comments that this version is now used only by the compiler and
18334         other basic tools. The full version that includes the Ada 2005 stuff
18335         is in separate files a-except-2005.ads/adb. The reason is that we do
18336         not want to cause bootstrap problems with compilers not recognizing
18337         Wide_Wide_String.
18338         Add exception reason code PE_Implicit_Return
18339         Add new exception reason code (Null Exception_Id)
18340
18341         * a-except-2005.adb, a-except-2005.ads: New files.
18342
18343         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
18344
18345         * s-wchcon.adb: New file.
18346
18347         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
18348         (traceback.o deps): Likewise.
18349         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
18350         Activate build of GMEM instrumentation library on VMS targets.
18351         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
18352         Use a-except-2005.ads/adb for all run-time library builds unless
18353         specified otherwise.
18354         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
18355         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
18356         Use s-parame.adb on all native platforms.
18357         Use s-parame-vxworks.adb on all vxworks platforms.
18358         Add env.c env.h in LIBGNAT_SRCS
18359         Add env.o in LIBGNAT_OBJS
18360         (GNATMAKE_OBJS): Remove ctrl_c.o object.
18361         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
18362         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
18363         supports VxWorks 6 RTPs.
18364         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
18365         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
18366
18367         * types.h, types.ads (Terminate_Program): New exception
18368         Add comment on modifying multiple versions of a-except.adb when the
18369         table of exception reasons is modified.
18370         Add exception reason code PE_Implicit_Return
18371         Add new exception reason code (Null Exception_Id)
18372
18373         * clean.adb (Initialize): Get the target parameters before checking
18374         if target is OpenVMS. Move the OpenVMS specific code here from package
18375         body elaboration code.
18376
18377 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18378             Vincent Celier  <celier@adacore.com>
18379             Robert Dewar  <dewar@adacore.com>
18380
18381         * ali-util.adb (Get_File_Checksum): Update to account for change in
18382         profile of Initialize_Scanner.
18383
18384         * gprep.adb (Gnatprep): Update to account for change in profile of
18385         Initialize_Scanner.
18386         (Process_One_File): Same.
18387
18388         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
18389         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
18390         that behaviour using the new Unit information recorded in the source
18391         files table, rather than going through all units every time.
18392         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
18393         (Get_Source_Unit): Same.
18394
18395         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
18396         change in profile of Initialize_Scanner.
18397         (Prepare_To_Preprocess): Same.
18398
18399         * lib.ads: Fix typo in comment (templace -> template).
18400
18401         * prj-part.adb (Parse_Single_Project): Update to account for change in
18402         profile of Initialize_Scanner.
18403
18404         * scn.adb (Initialize_Scanner): Account for change in profile of
18405         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
18406         Also record the association of the given Source_File_Index to the
18407         corresponding Unit_Number_Type.
18408
18409         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
18410         procedure.
18411         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
18412         Remove Unit formal for generic scanner: this formal
18413         is only relevant to Scn (the scanner instance used to parse Ada source
18414         files), not to other instances. Update comment accordingly.
18415         (Scan): Use new function Snames.Is_Keyword_Name.
18416
18417         * sinfo-cn.adb: Fix typo in comment.
18418
18419         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
18420         Unit.
18421
18422         * sinput.ads (Source_File_Record): New component Unit, used to capture
18423         the unit identifier (if any) associated to a source file.
18424
18425         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
18426         Unit in Source_File_Record.
18427
18428         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
18429         in profile of Initialize_Scanner.
18430
18431         * scans.adb (Initialize_Ada_Keywords): New procedure
18432
18433         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
18434         Ada keywords in the Namet table, without the need to call
18435         Initialize_Scanner.
18436
18437         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
18438         (Is_Keyword_Name): New function
18439
18440         * snames.ads: Add subtype Configuration_Pragma_Names
18441         Add pragma Ada_2005 (synonym for Ada_05)
18442         (Is_Keyword_Name): New function
18443
18444         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
18445
18446 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18447
18448         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
18449         index.
18450
18451         * a-stwima.adb (To_Set): Add extra check when N = 0.
18452
18453         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
18454
18455 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18456
18457         * s-parame-mingw.adb, s-parame-linux.adb,
18458         s-parame-solaris.adb: Removed, replaced by s-parame.adb
18459
18460         * s-parame-vxworks.ads: Fix typo.
18461
18462         * s-parame-vxworks.adb: New file.
18463
18464         * s-parame.adb: Version now used by all native platforms.
18465         (Default_Stack_Size): Use 2 megs for default stack size and use
18466         __gl_default_stack_size when available.
18467         (Minimum_Stack_Size): Use 12K.
18468
18469         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
18470         (Create_Task): Refine implementation taking advantage of the XP stack
18471         size support. On XP, we now create the thread using the flag
18472         STACK_SIZE_PARAM_IS_A_RESERVATION.
18473
18474         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
18475
18476         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
18477         XP and 0 on older Windows versions.
18478
18479         * interfac-vms.ads: Removed, no longer used.
18480
18481 2006-02-13  Matthew Heaney  <heaney@adacore.com>
18482
18483         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
18484         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
18485         a-cohase.adb: All explicit raise statements now include an exception
18486         message.
18487
18488         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
18489         (Update_Element_Preserving_Key): renamed op to just Update_Element.
18490         Explicit raise statements now include an exception message
18491
18492         * a-cihase.ads, a-cohase.ads: Removed comment.
18493
18494         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
18495         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
18496         a-szbzha.adb, a-szfzha.ads: New files.
18497
18498 2006-02-13  Matthew Heaney  <heaney@adacore.com>
18499
18500         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
18501         quicksort.
18502
18503 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
18504
18505         * lang.opt: Wvariadic-macros: New option.
18506         Wold-style-definition: Likewise.
18507         Wmissing-format-attribute: Likewise.
18508
18509         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
18510         -Wold-style-definition and -Wmissing-format-attribute.
18511
18512 2006-02-13  Robert Dewar  <dewar@adacore.com>
18513
18514         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
18515
18516         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
18517
18518 2006-02-13  Nicolas Roche  <roche@adacore.com>
18519
18520         * a-envvar.adb, a-envvar.ads: New files.
18521
18522 2006-02-13  Douglas Rupp  <rupp@adacore.com>
18523
18524         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
18525
18526         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
18527
18528 2006-02-13  Pat Rogers  <rogers@adacore.com>
18529
18530         * a-rttiev.adb, a-rttiev.ads: New files.
18531
18532 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
18533
18534         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
18535         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
18536
18537         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
18538
18539 2006-02-13  Robert Dewar  <dewar@adacore.com>
18540
18541         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
18542         sem_case.adb: Minor code reorganization (not Present should be No)
18543
18544 2006-02-13  Geert Bosch  <bosch@adacore.com>
18545             Gary Dismukes  <dismukes@adacore.com>
18546
18547         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
18548         0, since the lower bound of the actual string may be greater than one.
18549
18550         PR ada/20753
18551         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
18552         layout is requested.
18553
18554 2006-02-13  Vincent Celier  <celier@adacore.com>
18555
18556         * back_end.adb (Scan_Compiler_Arguments): Check if
18557         Search_Directory_Present is True and, if it is, add the argument in
18558         the source search directory path.
18559
18560         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
18561         Search_Directory_Present to True.
18562
18563 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
18564
18565         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
18566         volatile, to tell the compiler to preserve this variable at any level
18567         of optimization.
18568         (Gen_Versions_Ada): Temporarily work around codegen bug.
18569
18570 2006-02-13  Vincent Celier  <celier@adacore.com>
18571
18572         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
18573         gcc to link with option -shared-libgcc.
18574         (Gnatlink): Remove duplicate switches -shared-libgcc
18575
18576 2006-02-13  Robert Dewar  <dewar@adacore.com>
18577
18578         * gnatvsn.ads (Current_Year): New constant, used to easily update
18579         copyright on all GNAT tools.
18580
18581         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
18582         copyright notice.
18583
18584 2006-02-13  Robert Dewar  <dewar@adacore.com>
18585
18586         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
18587         after hyphen (small aesthetic change useful for a range of numbers
18588         using ^-^.
18589         Suppress range checks for a couple of assignments which otherwise
18590         cause validity checks with validity checking turned on.
18591
18592         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
18593         Improvement in error message for object.
18594         (Rep_Item_Too_Late): Remove '!' in warning message.
18595
18596 2006-02-13  Robert Dewar  <dewar@adacore.com>
18597             Eric Botcazou  <ebotcazou@adacore.com>
18598
18599         * err_vars.ads: Suppress range checks for a couple of assignments
18600         which otherwise cause validity checks with validity checking turned on.
18601         Update comments.
18602
18603         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
18604         Make message unconditional if it is a warning.
18605         (Error_Msg_NEL): Always output warning messages.
18606         Suppress range checks for a couple of assignments which otherwise
18607         cause validity checks with validity checking turned on.
18608
18609         * errout.ads (Message Insertion Characters): Document that '!' is
18610         implied by '?' in error messages.
18611
18612         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
18613         (Gnat1drv): Use a goto to end of main subprogram instead of
18614         Exit_Program (E_Success) so that finalization can occur normally.
18615
18616 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
18617
18618         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
18619         wrapped around.
18620
18621 2006-02-13  Vincent Celier  <celier@adacore.com>
18622
18623         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
18624         Unchecked_Conversion functions.
18625         (Modification_Time): Use direct conversion of OS_Time to Calendar time
18626         when OpenVMS returns False.
18627
18628         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
18629         a-dirval.adb (OpenVMS): New Boolean function
18630
18631 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18632             Thomas Quinot  <quinot@adacore.com>
18633
18634         * checks.adb (Build_Discriminant_Checks): If the expression being
18635         checks is an aggregate retrieve the values of its discriminants to
18636         generate the check, rather than creating a temporary and a reference
18637         to it.
18638         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
18639         (Install_Null_Excluding_Check): Ditto
18640         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
18641         not for the renamed object, so that the actual itype is attached in the
18642         proper context.
18643
18644 2006-02-13  Robert Dewar  <dewar@adacore.com>
18645             Vincent Celier  <celier@adacore.com>
18646
18647         * debug.adb: Eliminate numeric switches for binder/gnatmake
18648
18649         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
18650         switches for the compiler.
18651         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
18652         (Scan_Make_Switches): When failing with an illegal switch, output an
18653         error message with the full switch.
18654         Eliminate numeric switches for binder/gnatmake
18655
18656         * switch.ads, switch.adb (Bad_Switch): New procedure
18657
18658         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
18659         Remove 0-9 as debug flag character possibilities
18660         -d is now controlling the primary stack size when its value is a
18661         positive. Also add checks against invalid values, and support for kb,
18662         mb. Ditto for -D switch.
18663
18664 2006-02-13  Robert Dewar  <dewar@adacore.com>
18665             Serguei Rybin  <rybin@adacore.com>
18666
18667         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
18668         save/restore routines.
18669         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18670         were not always properly handled previously.
18671         Since we are changing the tree format anyway, also get rid of the
18672         junk obsolete Immediate_Errors flag.
18673         (Tree_Read): Change the way of reading Tree_Version_String - now we
18674         read the version string from the tree even if its length is not the
18675         same as the length of the version string computed from Gnatvsn.
18676         (Search_Directory_Present): New Boolean flag for the compiler.
18677         Define Tree_Version_String as a dynamic string.
18678         (Default_Stack_Size): new variable, used to handle switch -d.
18679
18680         * par-prag.adb: 
18681         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
18682         only for main unit.
18683         Add pragma Ada_2005 (synonym for Ada_05)
18684         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18685         were not always properly handled previously.
18686
18687         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
18688         explicit Ada_95 to Ada_2005.
18689
18690 2006-02-13  Javier Miranda  <miranda@adacore.com>
18691             Robert Dewar  <dewar@adacore.com>
18692             Ed Schonberg  <schonberg@adacore.com>
18693
18694         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
18695         against errors in the source program: a private types for which the
18696         corresponding full type declaration is missing and pragma CPP_Virtual
18697         is used.
18698         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
18699         (Is_Known_Null): New flag
18700         (Has_Pragma_Pure): New flag
18701         (No_Return): Present in all entities, set only for procedures
18702         (Is_Limited_Type): A type whose ancestor is an interface is limited if
18703         explicitly declared limited.
18704         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
18705         entities. Only used for component marked Is_Tag. If present it stores
18706         the Offset_To_Top function used to provide this value in tagged types
18707         whose ancestor has discriminants.
18708
18709         * exp_ch2.adb: Update status of new Is_Known_Null flag
18710
18711         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
18712
18713         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
18714         the categorization sense if Is_Pure was set by pragma Pure_Function.
18715
18716 2006-02-13  Quentin Ochem  <ochem@adacore.com>
18717             Olivier Hainque  <hainque@adacore.com>
18718
18719         * bindusg.adb: Updated documentation for -d and -D switches.
18720
18721         * raise.h (__gnat_set_globals): added new parameter for
18722         Default_Stack_Size.
18723
18724         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
18725         (__gnat_handle_vms_condition): Adjust context before raise.
18726         (__gnat_install_handler): Restore the global vector setup for GCC
18727         versions before 3.4, as the frame based circtuitry is not available
18728         in this case.
18729         (__gnat_set_globals): added a parameter default_stack_size
18730         (__gl_default_stack_size): new variable.
18731
18732 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18733
18734         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
18735         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
18736         does not exist in the Ada RM.
18737         (Compatible_Int_Bounds): Determine whether two integer range bounds
18738         are of equal length and have the same start and end values.
18739         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
18740         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
18741         aggregate when it is part of an object declaration.
18742         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
18743         constrains discriminants of its parent, add explicitly the discriminant
18744         constraints of the ancestor by retrieving them from the
18745         stored_constraint of the parent.
18746
18747 2006-02-13  Robert Dewar  <dewar@adacore.com>
18748
18749         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
18750         attribute Mechanism_Code is applied to renamed subprogram, modify
18751         prefix to point to base subprogram.
18752         Max/Min attributes now violate Restriction No_Implicit_Conditionals
18753
18754         * sinfo.ads: Document that Mechanism_Code cannot be applied to
18755         renamed subprograms so that the front-end must replace the prefix
18756         appropriately.
18757
18758 2006-02-13  Javier Miranda  <miranda@adacore.com>
18759             Gary Dismukes  <dismukes@adacore.com>
18760
18761         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
18762         availability of RE_Interface_Tag.
18763         (Build_Initialization_Call): Fix wrong access to the discriminant value.
18764         (Freeze_Record_Type): Do not generate the tables associated with
18765         timed and conditional dispatching calls through synchronized
18766         interfaces if compiling under No_Dispatching_Calls restriction.
18767         When compiling for Ada 2005, for a nonabstract
18768         type with a null extension, call Make_Controlling_Function_Wrappers
18769         and insert the wrapper function declarations and bodies (the latter
18770         being appended as freeze actions).
18771         (Predefined_Primitive_Bodies): Do not generate the bodies of the
18772         predefined primitives associated with timed and conditional
18773         dispatching calls through synchronized interfaces if we are
18774         compiling under No_Dispatching_Calls.
18775         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
18776         service is available before generating a call.
18777         (Make_Controlling_Function_Wrappers): New procedure.
18778         (Expand_N_Full_Type_Declaration): Create a class-wide master for
18779         access-to-limited-interfaces because they can be used to reference
18780         tasks that implement such limited interface.
18781         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
18782         procedure spec and body of the Offset_To_Top function that is generated
18783         when the parent of a type with discriminants has secondary dispatch
18784         tables.
18785         (Init_Secondary_Tags): Handle the case in which the parent of the type
18786         containing secondary dispatch tables has discriminants to generate the
18787         correct arguments to call Set_Offset_To_Top.
18788         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
18789
18790         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
18791         Add Wide_[Wide_]Expanded_Name.
18792         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
18793         the same functionality of Get_Prim_Op_Address but applied to predefined
18794         primitive operations because the pointers to the predefined primitives
18795         are now saved in a separate table.
18796         (Parent_Size): Modified to get access to the separate table of primitive
18797         operations or the parent type.
18798         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
18799         functionality of Set_Prim_Op_Address but applied to predefined primitive
18800         operations.
18801         (Set_Signature): New subprogram used to store the signature of a DT.
18802         (Displace): If the Offset_To_Top value is not static then call the
18803         function generated by the expander to get such value; otherwise use
18804         the value stored in the table of interfaces.
18805         (Offset_To_Top): The type of the actual has been changed to Address to
18806         give the correct support to tagged types with discriminants. In this
18807         case this value is stored just immediately after the tag field.
18808         (Set_Offset_To_Top): Two new formals have been added to indicate if the
18809         offset_to_top value is static and hence pass this value to the run-time
18810         to store it in the table of interfaces, or else if this value is dynamic
18811         and then pass to the run-time the address of a function that is
18812         generated by the expander to provide this value for each object of the
18813         type.
18814
18815         * rtsfind.ads (Default_Prin_Op_Count): Removed.
18816         (Default_Prim_Op_Count): New entity
18817         (Get_Predefined_Prim_Op_Address): New entity
18818         (Set_Predefined_Prim_Op_Address): New entity
18819         (RE_Set_Signature): New entity
18820
18821 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18822             Ed Schonberg  <schonberg@adacore.com>
18823
18824         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
18825         Make_Adjust_Call done for a newly-allocated object.
18826
18827         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
18828         in a subprogram are wrapped in a cleanup block, indicate that the
18829         subprogram contains an inner block with an exception handler.
18830         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
18831         Adjust call is for a newly-allocated object. In that case we must not
18832         assume that the finalization list chain pointers are correct (since they
18833         come from a bit-for-bit copy of the original object's pointers) so if
18834         the attach level would otherwise be zero (no change), we set it to 4
18835         instead to cause the pointers to be reset to null.
18836
18837         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
18838         reset chain pointers to null.
18839
18840 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18841
18842         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
18843         string, and the context requires a loop for the assignment (e.g.
18844         because the left-hand side is packed), generate a unique name for the
18845         temporary that holds the string, to prevent spurious name clashes.
18846
18847 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18848             Javier Miranda  <miranda@adacore.com>
18849             Robert Dewar  <dewar@adacore.com>
18850             Gary Dismukes  <dismukes@adacore.com>
18851
18852         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
18853         return unconstrained arrays.
18854         Update comments.
18855         (Expand_Call):  An indirect call through an access parameter of a
18856         protected operation is not a protected call.
18857         Add circuit to raise CE in Ada 2005 mode following call
18858         to Raise_Exception.
18859         (Register_DT_Entry): Do nothing if
18860         the run-time does not give support to abstract interfaces.
18861         (Freeze_Subprogram): In case of dispatching operations, do not generate
18862         code to register the operation in the dispatch table if the source
18863         is compiled with No_Dispatching_Calls.
18864         (Register_Predefined_DT_Entry): Generate code that calls the new
18865         run-time subprogram Set_Predefined_Prim_Op_Address instead of
18866         Set_Prim_Op_Address.
18867
18868         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
18869         on array assignments if the right-hand side is a function call that has
18870         been inlined. Check is performed on the assignment in the block.
18871         (Process_Bounds): If bounds and range are overloaded, apply preference
18872         rule for root operations to disambiguate, and diagnose true ambiguity.
18873         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
18874         a tag-indeterminate right-hand side even when Expander_Active is True.
18875         Needed to ensure that dispatching calls to T'Input are allowed and
18876         get the tag of the target class-wide object.
18877
18878         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
18879         an inherited primitive operation that already overrides several
18880         abstract interface primitives. For transitivity, the new entity must
18881         also override all the abstract interface primitives covered by the
18882         inherited overriden primitive.
18883         Emit warning if new entity differs from homograph in same scope only in
18884         that one has an access parameter and the other one has a parameter of
18885         a general access type with the same designated type, at the same
18886         position in the signature.
18887         (Make_Inequality_Operator): Use source locations of parameters and
18888         subtype marks from corresponding equality operator when creating the
18889         tree structure for the implicit declaration of "/=". This does not
18890         change anything in behaviour except that the decoration of the
18891         components of the subtree created for "/=" allows ASIS to get the
18892         string images of the corresponding identifiers.
18893         (Analyze_Return_Statement): Remove '!' in warning message.
18894         (Check_Statement_Sequence): Likewise.
18895         (Analyze_Subprogram_Body): For an access parameter whose designated type
18896         is an incomplete type imported through a limited_with clause, use the
18897         type of the corresponding formal in the body.
18898         (Check_Returns): Implicit return in No_Return procedure now raises
18899         Program_Error with a compile time warning, instead of beging illegal.
18900         (Has_Single_Return):  Function returning unconstrained type cannot be
18901         inlined if expression in unique return statement is not an identifier.
18902         (Build_Body_To_Inline): It is possible to inline a function call that
18903         returns an unconstrained type if all return statements in the function
18904         return the same local variable. Subsidiary procedure Has_Single_Return
18905         verifies that the body conforms to this restriction.
18906
18907         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
18908         same type, and  one of them is of an anonymous access type, convert
18909         the other operand to it, so that this is a valid binary operation for
18910         gigi.
18911         (Resolve_Type_Conversion): Handle subtypes of protected types and
18912         task types when accessing to the corresponding record type.
18913         (Resolve_Allocator): Add '\' in 2-line warning message.
18914         Remove '!' in warning message.
18915         (Resolve_Call): Add '\' in 2-line warning message.
18916         (Valid_Conversion): Likewise.
18917         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
18918         resulting type may be an access type with an implicit dereference.
18919         Obtain the proper component from the designated type.
18920         (Make_Call_Into_Operator): Handle properly a call to predefined equality
18921         given by an expanded name with prefix Standard, when the operands are
18922         of an anonymous access type.
18923         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
18924         Explicit_Dereference and Resolve_Selected_Component, to verify that the
18925         prefix of the expression is not of an incomplete type. Allows full
18926         diagnoses of all semantic errors.
18927         (Resolve_Actuals): If the actual is an allocator whose directly
18928         designated type is a class-wide interface we build an anonymous
18929         access type to use it as the type of the allocator. Later, when
18930         the subprogram call is expanded, if the interface has a secondary
18931         dispatch table the expander will add a type conversion to force
18932         the displacement of the pointer.
18933         (Resolve_Call): If a function that returns an unconstrained type is
18934         marked Inlined_Always and inlined, the call will be inlined and does
18935         not require the creation of a transient scope.
18936         (Check_Direct_Boolean_Op): Removed
18937         (Resolve_Comparison_Op): Remove call to above
18938         (Resolve_Equality_Op): Remove call to above
18939         (Resolve_Logical_Op): Inline above, since this is only call.
18940         (Valid_Conversion): Handle properly conversions between arrays of
18941         convertible anonymous access types.
18942
18943         PR ada/25885
18944         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
18945         the literal in an unchecked conversion, because GCC 4.x needs a static
18946         value for a string bound.
18947
18948 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18949             Hristian Kirtchev  <kirtchev@adacore.com>
18950
18951         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
18952         components of the corresponding record, take into account component
18953         definitions that are access definitions.
18954         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
18955         procedure is not considered a dispatching call and will be expanded
18956         properly.
18957
18958 2006-02-13  Javier Miranda  <miranda@adacore.com>
18959
18960         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
18961         controlling argument of the dispatching call is an abstract interface
18962         class-wide type then we use it directly.
18963         Check No_Dispatching_Calls restriction.
18964         (Default_Prim_Op_Position): Remove the code that looks for the last
18965         entity in the list of aliased subprograms. This code was wrong in
18966         case of renamings.
18967         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
18968         when the source is compiled with the No_Dispatching_Calls restriction.
18969         (Init_Predefined_Interface_Primitives): No need to inherit primitives
18970         if we are compiling with restriction No_Dispatching_Calls.
18971         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
18972         subprograms if we are compiling under No_Dispatching_Calls restriction.
18973         (Make_DT): Generate a dispatch table with a single dummy entry if
18974         we are compiling with the No_Dispatching_Calls restriction. In
18975         addition, in this case we don't generate code that calls to the
18976         following run-time subprograms: Set_Type_Kind, Inherit_DT.
18977         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
18978         of this subprogram if compiling with the No_Dispatching_Calls
18979         restriction.
18980         (Expand_Type_Conversion): Instead of using the actual parameter,
18981         the argument passed as parameter to the conversion function was
18982         erroneously referenced by the expander.
18983         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
18984         Set_Predefined_Primitive_Op_Address and Set_Signature.
18985         (Expand_Dispatching_Call): Generate call to
18986         Get_Predefined_Prim_Op_Address for predefined primitives.
18987         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
18988         predefined primitives.
18989         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
18990         primitives we reserve one dummy entry to ensure that the tag does not
18991         point to some memory that is associated with some other object. In
18992         addition, remove all the old code that generated the assignments
18993         associated with the signature of the dispatch table and replace them
18994         by a call to the new subprogram Set_Signature.
18995         (Set_All_DT_Position): Change the algorithm because now we have a
18996         separate dispatch table associated with predefined primitive operations.
18997         (Expand_Interface_Conversion): In case of non-static offset_to_top
18998         add explicit dereference to get access to the object after the call
18999         to displace the pointer to the object.
19000         (Expand_Interface_Thunk): Modify the generation of the actual used
19001         in the calls to the run-time function Offset_To_Top to fulfil its
19002         new interface.
19003         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
19004
19005 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19006
19007         * exp_dist.adb (Copy_Specification): For access parameters, copy
19008         Null_Exclusion flag, which will have been set for stream subprograms
19009         in Ada2005 mode.
19010
19011 2006-02-13  Pascal Obry  <obry@adacore.com>
19012
19013         * expect.c (__gnat_expect_portable_execvp): New implementation. The
19014         previous implementation was using the C runtime spawnve routine but
19015         the corresponding wait was using directly the Win32 API. This was
19016         causing some times a lock when waiting for an event using
19017         WaitForSingleObject in __gnat_waitpid. This new implementation uses
19018         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
19019         API fixes this problem.
19020
19021 2006-02-13  Robert Dewar  <dewar@adacore.com>
19022
19023         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
19024         call.
19025
19026 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19027
19028         * exp_pakd.ads: Fix typos in comments.
19029
19030         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
19031         array reference that is an explicit dereference, mark the converted
19032         (packed) array reference as analyzed to prevent a forthcoming
19033         reanalysis from resetting its type to the original (non-packed) array
19034         type.
19035
19036 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19037             Javier Miranda  <miranda@adacore.com>
19038             Eric Botcazou  <ebotcazou@adacore.com>
19039
19040         * exp_util.ads, exp_util.adb (Find_Prim_Op,
19041         Is_Predefined_Primitive_Operation): When
19042         searching for the predefined equality operator, verify that operands
19043         have the same type.
19044         (Is_Predefined_Dispatching_Operation): Remove the code that looks
19045         for the last entity in the list of aliased subprograms. This code
19046         was wrong in case of renamings.
19047         (Set_Renamed_Subprogram): New procedure
19048         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
19049         Exp_Type constant computed when entering this subprogram.
19050         (Known_Null): New function
19051         (OK_To_Do_Constant_Replacement): New function
19052         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
19053         (Side_Effect_Free): An attribute reference 'Input is not free of
19054         side effect, unlike other attributes that are functions. (from code
19055         reading).
19056         (Remove_Side_Effects): Expressions that involve packed arrays or records
19057         are copied at the point of reference, and therefore must be marked as
19058         renamings of objects.
19059         (Is_Predefined_Dispatching_Operation): Return false if the operation is
19060         not a dispatching operation.
19061
19062         PR ada/18819
19063         (Remove_Side_Effects): Lift enclosing type conversion nodes for
19064         elementary types in all cases.
19065
19066 2006-02-13  Javier Miranda  <miranda@adacore.com>
19067
19068         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
19069         task types when accessing to the corresponding record type.
19070         Remove '!' in warning message.
19071
19072 2006-02-13  Olivier Hainque  <hainque@adacore.com>
19073
19074         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
19075         to avoid useless and space inefficient overalignments on targets where
19076         Max_Alignment is larger than 16.
19077
19078 2006-02-13  Pascal Obry  <obry@adacore.com>
19079
19080         * g-catiio.adb (Sec_Number): New type used to compute the number of
19081         seconds since 1-1-1970.
19082         (Image) [Natural]: The parameter was an Integer, as we can't deal with
19083         negative numbers (years, months...) it is better to have a Natural here.
19084         Code clean-up.
19085         (Image) [Number]: Change parameter from Long_Integer to Number.
19086         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
19087         overflow for dates past year 2038.
19088
19089 2006-02-13  Matthew Heaney  <heaney@adacore.com>
19090
19091         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
19092         Constraint_Error.
19093
19094 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19095
19096         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
19097         native platforms.
19098         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
19099         finalization can occur normally.
19100
19101 2006-02-13  Vincent Celier  <celier@adacore.com>
19102
19103         * gnatcmd.adb (Rules_Switches): New table
19104         (Add_To_Rules_Switches): New procedure
19105         (GNATCmd): For command CHECK, put all options following "-rules" in the
19106         Rules_Switches table. Append these -rules switches after the -cargs
19107         switches.
19108
19109 2006-02-13  Robert Dewar  <dewar@adacore.com>
19110
19111         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
19112         These two cases were generating incorrect output, and if this unit
19113         was built with checks on, generated a discriminant mismatch constraint
19114         error.
19115
19116 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19117             Robert Dewar  <dewar@adacore.com>
19118
19119         * lib-xref.adb (Get_Type_Reference): For a private type whose full
19120         view is an array type, indicate the component type as well, for
19121         navigation purposes.
19122         (Generate_Reference): Don't consider array ref on LHS to be a case
19123         of violating pragma Unreferenced.
19124         Do not give Ada 2005 warning except on real reference.
19125
19126 2006-02-13  Vincent Celier  <celier@adacore.com>
19127
19128         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
19129         main source, add switch -mdebug-main=_ada_ so that the executable can
19130         be debugged by the standard VMS debugger.
19131         (Gnatmake): Set No_Main_Subprogram to True when there is no main
19132         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
19133         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
19134         of the last source, as the binding and linking phases are never
19135         performed.
19136         Set all executable obsolete when rebuilding a library.
19137
19138         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
19139         options.
19140
19141 2006-02-13  Javier Miranda  <miranda@adacore.com>
19142
19143         PR ada/23973
19144         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
19145         code to improve the error message reported when the program has
19146         declarations of abstract interface types and it is not compiled with
19147         the -gnat05 switch.
19148         (P_Access_Definition): Reorganize the code to improve the error
19149         message reported when the new Ada 2005 syntax for anonymous
19150         access types is used and the program is not compiled with the
19151         -gnat05 switch.
19152
19153 2006-02-13  Robert Dewar  <dewar@adacore.com>
19154
19155         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
19156         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
19157         (MODE_IN)
19158
19159 2006-02-13  Javier Miranda  <miranda@adacore.com>
19160
19161         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
19162         against source containing syntax errors.
19163
19164 2006-02-13  Vincent Celier  <celier@adacore.com>
19165
19166         * prj.adb (Reset): Initialize the first element of table Namings with
19167         the standard naming data.
19168
19169 2006-02-13  Vincent Celier  <celier@adacore.com>
19170
19171         * prj.ads (Error_Warning): New enumeration type
19172
19173         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
19174         unknown, use the location of the project to report the error.
19175         (When_No_Sources): New global variable
19176         (Report_No_Ada_Sources): New procedure
19177         (Check): New parameter When_No_Sources. Set value of global variable
19178         When_No_Sources,
19179         (Find_Sources): Call Report_No_Ada_Sources when appropriate
19180         (Get_Sources_From_File): Ditto
19181         (Warn_If_Not_Sources): Better warning messages indicating the unit name
19182         and the file name.
19183
19184         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
19185         Call Prj.Proc.Process with parameter When_No_Sources.
19186
19187         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
19188         Call Recursive_Check with parameter When_No_Sources.
19189         (Recursive_Check): New parameter When_No_Sources. Call itself and
19190         Prj.Nmsc.Check with parameter When_No_Sources.
19191         (Process): New parameter When_No_Sources. Call Check with parameter
19192         When_No_Sources.
19193         (Copy_Package_Declarations): New procedure to copy renamed parameters
19194         and setting the location of the declared attributes to the location
19195         of the renamed package.
19196         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
19197         packages.
19198
19199 2006-02-13  Vincent Celier  <celier@adacore.com>
19200
19201         * prj-makr.adb (Make): Preserve the comments from the original project
19202         file.
19203         When removing nodes (attributes Source_Dirs, Source_Files,
19204         Source_List_File and package Naming), save the comments and attach the
19205         saved comments to the newly created nodes.
19206         Do not add a with clause for the naming package if one already exists.
19207
19208 2006-02-13  Javier Miranda  <miranda@adacore.com>
19209             Gary Dismukes  <dismukes@adacore.com>
19210             Robert Dewar  <dewar@adacore.com>
19211
19212         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
19213
19214         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
19215         aliased entities to look for the overriden abstract interface
19216         subprogram.
19217         (Is_Interface_Subprogram): Complete documentation.
19218         (Check_Dispatching_Operation): Do not generate code to register the
19219         operation in the dispatch table if the source is compiled with
19220         restriction No_Dispatching_Calls.
19221         (Override_Dispatching_Operation): Check for illegal attempt to override
19222         No_Return procedure with procedure that is not No_Return
19223         (Check_Dispatching_Call): Suppress the check for an abstract operation
19224         when the original node of an actual is a tag-indeterminate attribute
19225         call, since the attribute, which must be 'Input, can never be abstract.
19226         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
19227         call to the Input attribute (even when rewritten).
19228         (Propagate_Tag): Augment comment to indicate the possibility of a call
19229         to an Input attribute.
19230
19231         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
19232         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
19233
19234         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
19235         No_Wide_Characters is no longer partition-wide
19236         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
19237         rather than GNAT
19238
19239 2006-02-13  Douglas Rupp  <rupp@adacore.com>
19240
19241         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
19242
19243 2006-02-13  Javier Miranda  <miranda@adacore.com>
19244
19245         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
19246         handles default-initialized components to keep separate the management
19247         of this feature but also avoid the unrequired resolution and
19248         expansion of components that do not have partially initialized
19249         values.
19250         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
19251         (Check_Bounds): Likewise.
19252         (Check_Length): Likewise.
19253
19254 2006-02-13  Javier Miranda  <miranda@adacore.com>
19255             Ed Schonberg  <schonberg@adacore.com>
19256
19257         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
19258         abstract interface type call analyze_and_resolve to expand the type
19259         conversion into the corresponding displacement of the
19260         reference to the base of the object.
19261         (Eval_Attribute, case Width): For systems where IEEE extended precision
19262         is supported, the maximum exponent occupies 4 decimal digits.
19263         (Accessibility_Message): Add '\' in 2-line warning message.
19264         (Resolve_Attribute): Likewise.
19265         (case Attribute_Access): Significantly revise checks
19266         for illegal access-to-subprogram Access attributes to properly enforce
19267         the rules of 3.10.2(32/2).
19268         Diagnose use of current instance with an illegal attribute.
19269
19270         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
19271         to a Node_Id.
19272         (Enclosing_Generic_Unit): New function to return a node's innermost
19273         enclosing generic declaration node.
19274         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
19275         (Type_Access_Level): The accessibility level of anonymous acccess types
19276         associated with discriminants is that of the current instance of the
19277         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
19278         (Compile_Time_Constraint_Error): Handle case of conditional expression.
19279         (Kill_Current_Values_For_Entity): New function
19280         (Enter_Name): Change formal type to Entity_Id
19281
19282 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
19283             Ed Schonberg  <schonberg@adacore.com>
19284             Gary Dismukes  <dismukes@adacore.com>
19285
19286         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
19287         Analyze_Compilation_Unit.
19288         Detect and warn on redundant with clauses detected in a package spec
19289         and/or body when -gnatwr is used.
19290         (Analyze_Context): Analyze config pragmas before other items
19291         (Install_Context_Items): Don't analyze config pragmas here
19292         (Install_Limited_Withed_Unit): Set limited entity of package in
19293         with_clause so that cross-reference information or warning messages on
19294         unused packages can be properly generated
19295         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
19296         has Error_Posted set. Prevent infinite loops in illegal programs.
19297         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
19298         to the point of the error test requiring the current unit to be private.
19299         This ensures that private with clauses are not exempted from the basic
19300         checking for being a descendant of the same library unit parent as a
19301         withed private descendant unit.
19302         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
19303         handle private with clauses properly, as well as to account for cases
19304         where the withed unit is a public descendant of a private ancestor
19305         (in which case the current unit must be a descendant of the private
19306         ancestor's parent). The spec comments were updated accordingly. Also,
19307         the old error message in this subprogram was replaced with error
19308         messages that mirror the errors tested and reported by
19309         Check_Private_Child_Unit.
19310         Parameter and variable names improved for readability.
19311         (Install_Limited_Context_Clauses): Remove test for a withed unit being
19312         private as the precondition for calling
19313         Check_Private_Limited_Withed_Unit since that subprogram has been
19314         revised to test public units as well as private units.
19315
19316 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19317             Robert Dewar  <dewar@adacore.com>
19318             Ed Schonberg  <schonberg@adacore.com>
19319             Javier Miranda  <miranda@adacore.com>
19320
19321         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
19322         that Scope_Stack.First = 1.
19323         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19324         were not always properly handled previously.
19325         (Formal_Entity): Complete rewrite, to handle properly some complex case
19326         with multiple levels of parametrization by formal packages.
19327         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
19328         to the corresponding derived type declaration for proper semantics.
19329
19330         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
19331         (Check_Component): Enforce restriction on components of
19332         unchecked_unions: a component in a variant cannot contain tasks or
19333         controlled types.
19334         (Unchecked_Union): Allow nested variants and multiple discriminants, to
19335         conform to AI-216.
19336         Add pragma Ada_2005 (synonym for Ada_05)
19337         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19338         were not always properly handled previously.
19339         Document that pragma Propagate_Exceptions has no effect
19340         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
19341         (Set_Convention_From_Pragma): Check that if a convention is
19342         specified for a dispatching operation, then it must be
19343         consistent with the existing convention for the operation.
19344         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
19345         longer required to specify an vtable-ptr component in the record. For
19346         compatibility reasons we leave the support for the previous definition.
19347         (Analyze_Pragma, case No_Return): Allow multiple arguments
19348
19349         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
19350         non-overrideen inherited operation with a controlling result as
19351         illegal only its implicit declaration comes from the derived type
19352         declaration of its result's type.
19353         (Check_Possible_Deferred_Completion): Relocate the object definition
19354         node of the subtype indication of a deferred constant completion rather
19355         than directly analyzing it. The analysis of the generated subtype will
19356         correctly decorate the GNAT tree.
19357         (Record_Type_Declaration): Check whether this is a declaration for a
19358         limited derived record before analyzing components.
19359         (Analyze_Component_Declaration): Diagnose record types  not explicitly
19360         declared limited when a component has a limited type.
19361         (Build_Derived_Record_Type): Code reorganization to check if some of
19362         the inherited subprograms of a tagged type cover interface primitives.
19363         This check was missing in case of a full-type associated with a private
19364         type declaration.
19365         (Constant_Redeclaration): Check that the subtypes of the partial and the
19366         full view of a constrained deferred constant statically match.
19367         (Mentions_T): A reference to the current type in an anonymous access
19368         component declaration  must be an entity name.
19369         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
19370         class_wide type to refer to full type, not to the incomplete one.
19371         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
19372         available. Required to give support to the certified run-time.
19373         (Analyze_Component_Declaration): In case of anonymous access components
19374         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
19375         (Process_Discriminants): For an access discriminant, use the
19376         discriminant specification as the associated_node_for_itype, to
19377         simplify accessibility checks.
19378
19379 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19380             Javier Miranda  <miranda@adacore.com>
19381
19382         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
19383         abstract interpretations on an operator, remove interpretations that
19384         yield Address or a type derived from it, if one of the operands is an
19385         integer literal.
19386         (Try_Object_Operation.Try_Primitive_Operation,
19387         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
19388         location when creating the new reference to a primitive or class-wide
19389         operation as a part of rewriting a subprogram call.
19390         (Try_Primitive_Operations): If context requires a function, collect all
19391         interpretations after the first match, because there may be primitive
19392         operations of the same type with the same profile and different return
19393         types. From code reading.
19394         (Try_Primitive_Operation): Use the node kind to choose the proper
19395         operation when a function and a procedure have the same parameter
19396         profile.
19397         (Complete_Object_Operation): If formal is an access parameter and prefix
19398         is an object, rewrite as an Access reference, to match signature of
19399         primitive operation.
19400         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
19401         by an expanded name with prefix Standard, when the operands are of an
19402         anonymous access type.
19403         (Remove_Abstract_Operations): If the operation is abstract because it is
19404         inherited by a user-defined type derived from Address, remove it as
19405         well from the set of candidate interpretations of an overloaded node.
19406         (Analyze_Membership_Op): Membership test not applicable to cpp-class
19407         types.
19408
19409 2006-02-13  Bob Duff  <duff@adacore.com>
19410
19411         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
19412         redundant use clauses.
19413         In particular, if the scope of two use clauses overlaps, but one is not
19414         entirely included in the other, we should not warn.  This can happen
19415         with nested packages.
19416         (Analyze_Subprogram_Renaming): Protect the compiler against previously
19417         reported errors. The bug was reported when the compiler was built
19418         with assertions enabled.
19419         (Find_Type): If the node is a 'Class reference and the prefix is a
19420         synchronized type without a corresponding record, return the type
19421         itself.
19422
19423 2006-02-13  Javier Miranda  <miranda@adacore.com>
19424
19425         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
19426         if this is the full-declaration associated with a private declaration
19427         that implement interfaces, then the private type declaration must be
19428         limited.
19429         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
19430         as aliased. The use of the 'access attribute is not available for such
19431         object (for this purpose the object should be explicitly marked as
19432         aliased, but being an anonymous type this is not possible).
19433
19434 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19435             Robert Dewar  <dewar@adacore.com>
19436
19437         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
19438         compilation unit is an elaboration scope.
19439         (Add_Task_Proc): Add '\' in 2-line warning message.
19440         (Activate_All_Desirable): Deal with case of unit with'ed by parent
19441
19442 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19443             Javier Miranda  <miranda@adacore.com>
19444
19445         * sem_type.adb (Write_Overloads): Improve display of candidate
19446         interpretations.
19447         (Add_One_Interp): Do not add to the list of interpretations aliased
19448         entities corresponding with an abstract interface type that is an
19449         immediate ancestor of a tagged type; otherwise we have a dummy
19450         conflict between this entity and the aliased entity.
19451         (Disambiguate): The predefined equality on universal_access is not
19452         usable if there is a user-defined equality with the proper signature,
19453         declared in the same declarative part as the designated type.
19454         (Find_Unique_Type): The universal_access equality operator defined under
19455         AI-230 does not cover pool specific access types.
19456         (Covers): If one of the types is a generic actual subtype, check whether
19457         it matches the partial view of the other type.
19458
19459 2006-02-13  Thomas Quinot  <quinot@adacore.com>
19460
19461         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
19462         line. This is necessary to allow In_Extended_Main_Unit to provide
19463         correct results for itypes while writing out expanded source.
19464         (Close_File): No need to update the source_index_table here since it's
19465         now done for each line.
19466
19467 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
19468             Robert Dewar  <dewar@adacore.com>
19469
19470         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
19471         preserve the source unit where the itype is declared, and prevent a
19472         backend abort.
19473         (Note_Implicit_Run_Time_Call): New procedure
19474         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
19475         E_Subprogram_Type)
19476
19477         * sprint.ads: Document use of $ for implicit run time routine call
19478
19479 2006-02-13  Quentin Ochem  <ochem@adacore.com>
19480
19481         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
19482         task name.
19483
19484 2006-02-13  Bob Duff  <duff@adacore.com>
19485
19486         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
19487         Scan_Unsigned, so we do not scan leading blanks and sign twice.
19488         Integer'Value("- 5") and Integer'Value("-+5") now correctly
19489         raise Constraint_Error.
19490
19491         * s-vallli.adb (Scan_Long_Long_Integer): Call
19492         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
19493         do not scan leading blanks and sign twice.
19494         Integer'Value("- 5") and Integer'Value("-+5") now correctly
19495         raise Constraint_Error.
19496
19497         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
19498         Scan_Long_Long_Unsigned): Split out most of the processing from
19499         Scan_Long_Long_Unsigned out into
19500         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
19501         This prevents scanning leading blanks and sign twice.
19502         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
19503         See RM-3.5(44).
19504
19505         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
19506         out most of the processing from Scan_Unsigned out into
19507         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
19508         This prevents scanning leading blanks and sign twice.
19509
19510         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
19511         use with Modular'Value attribute.
19512         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
19513         attribute.
19514
19515 2006-02-13  Robert Dewar  <dewar@adacore.com>
19516
19517         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
19518
19519 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19520
19521         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
19522         (PPC VxWorks): Likewise.
19523         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
19524         (forced_callee): Make non-inlinable and non-pure.
19525         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
19526
19527 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
19528             Ben Brosgol  <brosgol@adacore.com>
19529             Robert Dewar  <dewar@adacore.com>
19530
19531         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
19532         support.
19533         Document that gnatbind -M option is for cross environments only.
19534         Added description of using gnatmem to trace gnat rtl allocs and deallocs
19535         Add note on use of $ to label implicit run time calls
19536         Add documentation for -gnatyI (check mode IN)
19537         Updated chapter on compatibility with HP Ada
19538         VMS-oriented edits.
19539         Ran spell and corrected errors
19540         Add documentation for gnatbind -d and rework documentation of -D
19541         at the same time.
19542         Add subprogram/data elimination section.
19543         Minor editing of annex A.
19544         Add section for gnatcheck.
19545         Add documentation for restriction No_Dispatching_Calls
19546         Add documentation for pragma Ada_2005
19547         Remove mention of obsolete pragma Propagate_Exceptions
19548         Document that pragma Unreferenced can appear after DO in ACCEPT
19549         Clarify Pure_Function for library level units
19550         Mention Max/Min in connection with No_Implicit_Conditionals
19551         No_Wide_Characters restriction is no longer partition-wide
19552         Add a nice example for Universal_Literal_String attribute
19553         Document that pragma No_Return can take multiple arguments
19554
19555         * ug_words: Added entry for gnatcheck
19556
19557         * g-ctrl_c.ads (Install_Handler): Enhance comments
19558
19559         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
19560
19561         * g-trasym.ads: Add documentation on how to do off line symbolic
19562         traceback computation.
19563
19564         * s-fatgen.adb: Add comments for Unaligned_Valid
19565
19566         * stand.ads: Fix typo in comment
19567
19568 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19569
19570         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
19571
19572 2006-02-06  Roger Sayle  <roger@eyesopen.com>
19573
19574         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
19575
19576 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19577
19578         PR target/25926
19579         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
19580         implementation that calls __main.
19581
19582 2006-01-25  Peter O'Gorman  <peter@pogma.com>
19583
19584         PR bootstrap/25859
19585         * Makefile.in (GCC_LINK): Remove quotes.
19586         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
19587         or $(GCC_LINK).
19588
19589         (powerpc-darwin): Pass -shared-libgcc when building shared library.
19590
19591 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19592
19593         PR ada/24533
19594         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
19595
19596 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19597
19598         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
19599
19600 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
19601
19602         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
19603         needed.
19604
19605 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
19606
19607         * Make-lang.in: Update dependencies
19608
19609 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
19610
19611         * Make-lang.in: Add rule for ada/exp_sel.o
19612
19613 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
19614
19615         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
19616
19617 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
19618
19619         * gnatvsn.ads (Library_Version): Bump to version 4.2
19620         (ASIS_Version_Number): Bumped.
19621
19622 2005-12-09  Doug Rupp  <rupp@adacore.com>
19623
19624         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
19625         Ada bind file prefix on VMS from b$ to b__.
19626         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
19627         __init.
19628
19629         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
19630         Targparm.OpenVMS_On_Target.
19631         (Object_Suffix): Initialize with target object suffix.
19632         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
19633
19634         * butil.adb: Change some Hostparm.OpenVMS checks to
19635         Targparm.OpenVMS_On_Target.
19636
19637         * clean.adb: Change some Hostparm.OpenVMS checks to
19638         Targparm.OpenVMS_On_Target.
19639         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
19640         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
19641         Ada bind file prefix on VMS from b$ to b__.
19642
19643         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
19644         --GCC so that Get_Target_Parameters can find system.ads.
19645         (Gnatlink): Call Get_Target_Parameters in mainline.
19646         Initialize standard packages for Targparm.
19647         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19648         (Process_Args): Also Check for object files with target object
19649         extension.
19650         (Make_Binder_File_Names): Create with target object extension.
19651         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
19652         to b__.
19653
19654         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
19655         Targparm.OpenVMS_On_Target.
19656         ({declaration},Build_Library,Check_Library): Change Ada bind file
19657         prefix on VMS from b$ to b__.
19658
19659         * osint-b.adb: Change some Hostparm.OpenVMS checks to
19660         Targparm.OpenVMS_On_Target.
19661         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
19662         b__.
19663
19664         * targext.c: New file.
19665
19666         * Makefile.in: add support for vxworks653 builds
19667         (../../vxaddr2line): gnatlink with targext.o.
19668         (TOOLS_LIBS): Move targext.o to precede libgnat.
19669         (init.o, initialize.o): Minor clean up in dependencies.
19670         (GNATLINK_OBJS): Add targparm.o, snames.o
19671         Add rules fo building targext.o and linking it explicitly with all
19672         tools.
19673         Also add targext.o to gnatlib.
19674
19675         * Make-lang.in: Add rules for building targext.o and linking it in
19676         with gnat1 and gnatbind.
19677         Add entry for exp_sel.o.
19678
19679         * osint.adb Change some Hostparm.OpenVMS checks to
19680         Targparm.OpenVMS_On_Target.
19681         (Object_File_Name): Use target object suffix.
19682
19683         * osint.ads (Object_Suffix): Remove, no longer used.
19684         (Target_Object_Suffix): Initialize with target object suffix.
19685
19686         * rident.ads: Add special exception to license.
19687
19688         * targparm.adb (Get_Target_Parameters): Set the value of
19689         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
19690         value.
19691         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
19692         
19693         * targparm.ads: Add special exception to license.
19694
19695         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
19696         function.
19697         (Copy_File): Make sure from file is closed if error on to file
19698         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
19699
19700         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
19701         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
19702
19703         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
19704         target object suffix.
19705
19706 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
19707             Quentin Ochem  <ochem@adacore.com>
19708             Florian Villoing  <villoing@adacore.com>
19709
19710         * a-taster.ads, a-taster.adb: New files.
19711
19712         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
19713         link to the version that does nothing. This way the task termination
19714         routine is not executed twice for the environment task when finishing
19715         because of an unhandled exception.
19716
19717         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
19718         handler because of an unhandled exception.
19719
19720         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
19721         System.Tasking.Utilities instead of that in System.Tasking.Stages.
19722
19723         * s-finimp.adb (initialization code): Modify the soft link for the
19724         finalization of the global list instead of Adafinal.
19725
19726         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
19727         non-tasking version of the soft link for task termination. We do
19728         nothing since if we are using the non-tasking version it
19729         means that the task termination functionality is not used.
19730         (Null_Finalize_Global_List): Add this null version for the procedure
19731         in charge of finalizing the global list for controlled objects.
19732         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
19733         instead for handling run-time termination in a more flexible way.
19734         (Adafinal_NT): This new procedure will take care of finalizing the
19735         global list for controlled objects if needed, but no tasking
19736         finalization.
19737
19738         * s-tarest.adb (Task_Lock): Do not try to lock again the
19739         Global_Task_Lock if we already own it. Otherwise, we get blocked in
19740         some run-time operations.
19741         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
19742         until all nested locks have been released.
19743         (Task_Wrapper): Call the fall-back task termination handler. It
19744         applies to all tasks but the environment task.
19745         (Finalize_Global_Tasks): Add the call for the task termination
19746         procedure for the environment task.
19747         (Task_Wrapper): suppress warnings around declaration of
19748         Secondary_Stack_Address.
19749
19750         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
19751         moved to the Common_ATCB record.
19752         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
19753         Common_ATCB record.
19754         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
19755         Common_ATCB record.
19756
19757         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
19758         Fall_Back_Handler, and Specific_Handler.
19759
19760         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
19761         defined in Ada.Task_Termination, to avoid circular dependencies.
19762         (Termination_Handler): Redefine this type here, alredy defined in
19763         Ada.Task_Termination, for avoiding circular dependencies.
19764         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
19765         for storing task termination handlers. In addition,
19766         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
19767         Common_ATCB because it is used by both the regular and the restricted
19768         run times.
19769         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
19770         Common_ATCB because it is used by both the regular and the restricted
19771         run times.
19772         (Common_ATCB): Added a dynamic task analyzer field.
19773
19774         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
19775         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
19776         (Task_Wrapper): Call the task termination handler. It applies to all
19777         tasks but the environment task.
19778         (Finalize_Global_Tasks): Call the task termination procedure for the
19779         environment task. The call to Finalize_Global_List is now performed
19780         using the soft links mechanism.
19781         (Task_Wrapper): added dynamic stack analysis.
19782
19783         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
19784         potentially blocking operations has been moved from
19785         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
19786         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
19787         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
19788         this run-time check.
19789
19790         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
19791         of task termination procedure.
19792         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
19793         link for the task termination procedure.
19794
19795         * bindusg.adb: (Bindusg): Added documentation for -u option.
19796
19797         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
19798         (Get_Main_C): Add handling of dynamic stack analysis.
19799         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
19800
19801         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
19802         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
19803         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
19804
19805         * opt.ads: Added flags used by dynamic stack measurement.
19806         (Max_Line_Length): Remove (not used anymore)
19807
19808         * s-io.ads, s-io.adb (Standard_Error): new subprogram
19809         (Standart_Output): new subprogram
19810         (Set_Output): new subprogram
19811         (Put): now uses the value of Current_Out to know if the output has to be
19812         send to stderr or stdout.
19813         
19814         * s-stausa.ads: Complete implementation.
19815
19816         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
19817         
19818         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
19819         list of Ada 05 files.
19820         (GNAT Library Units): Add AltiVec files.
19821
19822         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
19823         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
19824         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
19825
19826 2005-12-09  Nicolas Setton  <setton@adacore.com>
19827
19828         * adaint.c (__gnat_locate_regular_file): Return immediately if
19829         file_name is empty.
19830
19831 2005-12-09  Javier Miranda  <miranda@adacore.com>
19832             Hristian Kirtchev  <kirtchev@adacore.com>
19833
19834         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
19835         to the specification because the frontend generates code that uses this
19836         subprogram.
19837         (Set_Interface_Table): Add missing assertion.
19838         Update documentation describing the run-time structure.
19839         (Displace): New subprogram that displaces the pointer to the object
19840         to reference one of its secondary dispatch tables.
19841         (IW_Membership): Modified to use the new table of interfaces.
19842         (Inherit_TSD): Modified to use the new table of interfaces.
19843         (Register_Interface_Tag): Use the additional formal to fill the
19844         contents of the new table of interfaces.
19845         (Set_Interface_Table): New subprogram that stores in the TSD the
19846         pointer to the table of interfaces.
19847         (Set_Offset_To_Top): Use the additional formal to save copy of
19848         the offset value in the table of interfaces.
19849         Update structure of GNAT Primary and Secondary dispatch table diagram.
19850         Add comment section on GNAT dispatch table prologue.
19851         (Offset_To_Signature): Update the constant value of the Signature field.
19852         (Dispatch_Table): Update comment on hidden fields in the prologue.
19853         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
19854         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
19855         the type of formal parameter T to Tag, introduce additional assertions.
19856         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
19857         conversion.
19858         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
19859
19860         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
19861         in all the calls to Expand_Interface_Thunk. Instead of referencing the
19862         record component containing the tag of the secondary dispatch table we
19863         have to use the Offset_To_Top run-time function to get this information;
19864         otherwise if the pointer to the base of the object has been displace
19865         we get a wrong value if we use the 'position attribute.
19866
19867         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
19868         all the calls to Expand_Interface_Thunk.
19869         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
19870         interfaces; hence the call to Set_Interface_Table was clearly wrong.
19871         (Collect_All_Interfaces): Modify the internal subprogram Collect to
19872         ensure that the interfaces implemented by the ancestors are placed
19873         at the header of the generated list.
19874         (Expand_Interface_Conversion): Handle the case in which the displacement
19875         associated with the interface conversion is not statically known. In
19876         this case we generate a call to the new run-time subprogram Displace.
19877         (Make_DT): Generate and fill the new table of interfaces.
19878         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
19879         Get_Tagged_Kind and Set_Tagged_Kind.
19880         (Tagged_Kind): New function that determines the tagged kind of a type
19881         with respect to limitedness and concurrency and returns a reference to
19882         RE_Tagged_Kind.
19883         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
19884         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
19885         primary dispatch table for a type.
19886         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
19887         secondary dispatch table respectively of a tagged type.
19888
19889         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
19890         (Expand_Interface_Conversion): New subprogram to indicate if the
19891         displacement of the type conversion is statically known.
19892         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
19893
19894         * rtsfind.ads (RE_Offset_To_Top): New entity
19895         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
19896         accessible to users.
19897         (Re_Displace): New entity
19898         (RE_Interface_Data): New entity
19899         (RE_Set_Interface_Data): New_Entity
19900         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
19901         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
19902         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
19903         RE_TK_Tagged, RE_TK_Task.
19904
19905         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
19906         Init_Secondary_Tags_Internal to allow its use with interface types and
19907         also to generate the code for the new additional actual required
19908         by Set_Offset_To_Top.
19909         (Build_Init_Statements): In case of components associated with abstract
19910         interface types there is no need to generate a call to its IP.
19911         (Freeze_Record_Type): Generate Select Specific Data tables only for
19912         concurrent types.
19913         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
19914         the bodies and specifications of the predefined primitive operations
19915         dealing with dispatching selects and abort, 'Callable, 'Terminated only
19916         for concurrent types.
19917
19918         * exp_sel.ads, exp_sel.adb: New files.
19919
19920         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
19921         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
19922         properly protected objects and attach handler in the case of the
19923         restricted profile.
19924         Move embeded package Select_Expansion_Utilities into a separate external
19925         package.
19926         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
19927         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
19928         (Build_K, Build_S_Assignment): New subprograms, part of the select
19929         expansion utilities.
19930         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
19931         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
19932         where the trigger is a dispatching procedure of a limited tagged type.
19933
19934 2005-12-09  Olivier Hainque  <hainque@adacore.com>
19935
19936         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
19937         pointer initialization values. Make a SAVE_EXPR instead. Add comments
19938         about the use and expansion of SAVE_EXPRs in the various possible
19939         renaming handling cases.
19940         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
19941         abusing DECL_FCONTEXT.
19942
19943 2005-12-09  Matthew Heaney  <heaney@adacore.com>
19944
19945         * a-convec.adb (Merge): Added assertions to check whether vector params
19946         are sorted.
19947
19948         * a-coinve.adb (Merge): Added assertions to check whether vector params
19949         are sorted.
19950
19951         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
19952         draft.
19953         (Cursor'Read): raises PE
19954
19955         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
19956         to its default value.
19957
19958         * a-cihama.adb: Manually check whether cursor's key and elem are
19959         non-null
19960
19961         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
19962         (Merge): Assert that target and source lists are in order
19963         (Swap): Declare non-const temporaries, to pass to Splice
19964
19965         * a-cdlili.ads: (Splice): Changed param name and param mode
19966
19967         * a-cdlili.adb: (Splice): Changed param name and param mode
19968         (Merge): Assert that target and source lists are in order
19969         (Swap): Declare non-const temporaries, to pass to Splice
19970
19971         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
19972         (Write): declare Stream param as not null
19973
19974         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
19975         an exception message.
19976
19977 2005-12-09  Thomas Quinot  <quinot@adacore.com>
19978             Robert Dewar  <dewar@adacore.com>
19979
19980         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
19981         which is the absolute maximum length we can support.
19982
19983         * frontend.adb: For the processing of configuration pragma files,
19984         remove references to Opt.Max_Line_Length, which is not checked anymore.
19985
19986         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
19987         length.
19988
19989         * scn.adb, scng.adb: 
19990         Always check line length against the absolute supported maximum,
19991         Hostparm.Max_Line_Length.
19992
19993         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
19994         value for the maximum line length is Max_Line_Length (not
19995         Column_Number'Last).
19996         Minor error msg update
19997         (Set_Style_Check_Options): New interface returning error msg
19998         Minor code reorganization (processing for 'M' was out of alpha order)
19999
20000         * switch-c.adb: New interface for Set_Style_Check_Options
20001
20002         * stylesw.ads (Set_Style_Check_Options): New interface returning error
20003         msg.
20004
20005 2005-12-09  Javier Miranda  <miranda@adacore.com>
20006
20007         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
20008         with IP subprogram were only supported if there were limited types.
20009
20010         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
20011         records with IP subprogram were only supported if there were limited
20012         types.
20013
20014 2005-12-09  Olivier Hainque  <hainque@adacore.com>
20015             Eric Botcazou  <ebotcazou@adacore.com>
20016
20017         * trans.c (tree_transform, emit_check): Adjust calls to
20018         build_call_raise, passing the now expected GNAT_NODE argument.
20019
20020         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
20021         source line information than what the current global locus indicates
20022         when appropriate.
20023
20024         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
20025         field has overflowed.
20026         (build_call_raise): Add a GNAT_NODE argument to convey better source
20027         line information than what the current global locus indicates when
20028         appropriate.
20029         (build_component_ref): Adjust call to build_call_raise.
20030
20031 2005-12-09  Pascal Obry  <obry@adacore.com>
20032
20033         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
20034         the iterator is quitting iteration on parent directory.
20035
20036 2005-12-09  Javier Miranda  <miranda@adacore.com>
20037
20038         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
20039         and the assignment to a class-wide object, before the assignment we
20040         generate a run-time check to ensure that the tag of the Target is
20041         covered by the tag of the source.
20042
20043 2005-12-09  Robert Dewar  <dewar@adacore.com>
20044
20045         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
20046         parameter in call to Image_Wide_Character.
20047
20048         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
20049         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
20050         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
20051         annoying FFFE/FFFF inconsistency.
20052
20053 2005-12-09  Robert Dewar  <dewar@adacore.com>
20054             Javier Miranda  <miranda@adacore.com>
20055             Ed Schonberg  <schonberg@adacore.com>
20056
20057         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
20058         of type conversion.
20059         (Find_Interface): New subprogram that given a tagged type and one of its
20060         component associated with the secondary table of an abstract interface
20061         type, return the entity associated with such abstract interface type.
20062         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
20063         base type to create anonymous subtype, because entity may be a locally
20064         declared subtype or generic actual.
20065         (Find_Interface): New subprogram that given a tagged type and one of its
20066         component associated with the secondary table of an abstract interface
20067         type, return the entity associated with such abstract interface type.
20068
20069         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
20070         conversion cannot be handled at compile time. In this case we pass this
20071         information to the expander to generate the appropriate code.
20072
20073 2005-12-09  Robert Dewar  <dewar@adacore.com>
20074             Ed Schonberg  <schonberg@adacore.com>
20075             Gary Dismukes  <dismukes@adacore.com>
20076             Javier Miranda  <miranda@adacore.com>
20077             Hristian Kirtchev  <kirtchev@adacore.com>
20078
20079         * einfo.adb (Itype_Printed): New flag
20080         (Is_Limited_Type): Derived types do not inherit limitedness from
20081         interface progenitors.
20082         (Is_Return_By_Reference_Type): Predicate does not apply to limited
20083         interfaces.
20084
20085         * einfo.ads (Itype_Printed): New flag
20086         Move Is_Wrapper_Package to proper section
20087         Add missing Inline for Is_Volatile
20088
20089         * output.ads, output.adb (Write_Erase_Char): New procedure
20090         (Save/Restore_Output_Buffer): New procedures
20091         (Save/Restore_Output_Buffer): New procedures
20092
20093         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
20094         Add missing support for anonymous access type
20095         (Write_Id): Insert calls to Write_Itype
20096         (Write_Itype): New procedure to output itypes
20097
20098         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
20099         use of "limited" in declaration.
20100
20101         * sinfo.ads, sinfo.adb: 
20102         Formal derived types can carry an explicit "limited" indication.
20103
20104         * sem_ch3.adb: Add with and use of Targparm.
20105         (Create_Component): If Frontend_Layout_On_Target is True and the
20106         copied component does not have a known static Esize, then reset
20107         the size and positional fields of the new component.
20108         (Analyze_Component_Declaration): A limited component is
20109         legal within a protected type that implements an interface.
20110         (Collect_Interfaces): Do not add to the list the interfaces that
20111         are implemented by the ancestors.
20112         (Derived_Type_Declaration): If the parent of the full-view is an
20113         interface perform a transformation of the tree to ensure that it has
20114         the same parent than the partial-view. This simplifies the job of the
20115         expander in order to generate the correct object layout, and it is
20116         needed because the list of interfaces of the full-view can be given in
20117         any order.
20118         (Process_Full_View): The parent of the full-view does not need to be
20119         a descendant of the parent of the partial view if both parents are
20120         interfaces.
20121         (Analyze_Private_Extension_Declaration): If declaration has an explicit
20122         "limited" the parent must be a limited type.
20123         (Build_Derived_Record_Type): A derived type that is explicitly limited
20124         must have limited ancestor and progenitors.
20125         (Build_Derived_Type): Ditto.
20126         (Process_Full_View): Verify that explicit uses of "limited" in partial
20127         and full declarations are consistent.
20128         (Find_Ancestor_Interface): Remove function.
20129         (Collect_Implemented_Interfaces): New procedure used to gather all
20130         implemented interfaces by a type.
20131         (Contain_Interface): New function used to check whether an interface is
20132         present in a list.
20133         (Find_Hidden_Interface): New function used to determine whether two
20134         lists of interfaces constitute a set equality. If not, the first
20135         differing interface is returned.
20136         (Process_Full_View): Improve the check for the "no hidden interface"
20137         rule as defined by AI-396.
20138
20139 2005-12-09  Robert Dewar  <dewar@adacore.com>
20140
20141         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
20142         types, not on record subtypes.
20143         (Freeze_Entity): Code cleanup. Add barrier to the loop
20144         that generates the references for primitive operations. This allows to
20145         remove an unnecessary exception handler.
20146         Code reformatting and comment clean ups.
20147
20148 2005-12-09  Vincent Celier  <celier@adacore.com>
20149
20150         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
20151         If GNAT CHECK is called with a project file, but with no
20152         source on the command line, call gnatcheck with all the compilable
20153         sources of the project.
20154         Take into account the new command Check, for gnatcheck. Treat as for
20155         other ASIS tools: take into account project, specific package Check and
20156         Compiler switches.
20157         For ASIS tools, add the switches in package Compiler for
20158         the invocation of the compiler.
20159
20160         * prj-attr.adb: Add package Check and its attributes
20161
20162         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
20163
20164         * vms_conv.adb (Initialize): Change Params of command Check to
20165         unlimited files.
20166         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20167         Add data for new command Check
20168
20169         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
20170         ELIM.
20171         Add qualifiers for Check command options
20172         (Command_Type): New command Check
20173
20174 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20175
20176         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
20177         command line switch overruns the output buffer.
20178
20179 2005-12-09  Robert Dewar  <dewar@adacore.com>
20180
20181         * sem_prag.adb: Processing for new pragma Complete_Representation
20182         (Analyze_Pragma, case Debug): Implement two argument form.
20183
20184         * par-prag.adb: Entry for new pragma Complete_Representation
20185         (Prag, case Debug): Recognize two argument form of pragma Debug
20186         New interface for Set_Style_Check_Options.
20187
20188         * sem_ch13.adb: Implement new pragma Complete_Representation.
20189
20190         * snames.adb, snames.ads, snames.h: Entry for new pragma
20191         Complete_Representation.
20192
20193 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
20194
20195         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
20196         available user-specified stream attributes on limited parameters to
20197         also test the type directly rather than only its underlying type (for
20198         Ada 95) and, in the case of Ada 2005, to check that the user-specified
20199         attributes are visible at the point of the subprogram declaration.
20200         For Ada 2005, the error message is modified to indicate that the
20201         type's stream attributes must be visible (again, only for -gnat05).
20202
20203 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20204
20205         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
20206         anonymous access types.
20207
20208         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
20209         matching of anonymous access types and anonymous access to subprogram
20210         types. 'R'M 4.9.1 (2/2).
20211
20212 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20213
20214         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
20215         rule prematurely when operands are universal, remaining ambiguities
20216         will be removed during resolution.
20217         Code cleanup.
20218
20219         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
20220         that are Ada 2005 functions.
20221         (Has_Abstract_Interpretation): Subsidiary to
20222         Remove_Conversions, to remove ambiguities caused by abstract operations
20223         on numeric types when operands are universal.
20224
20225 2005-12-09  Robert Dewar  <dewar@adacore.com>
20226
20227         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
20228         for case where spec is categorized.
20229
20230 2005-12-09  Javier Miranda  <miranda@adacore.com>
20231
20232         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
20233         types use the corresponding record type. This was not needed before
20234         the implementation of Ada 2005 synchronized types because
20235         concurrent types were never tagged types in Ada 95.
20236
20237 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
20238
20239         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
20240         first subtype of the type of the expression to verify that it is a
20241         legal Time type.
20242
20243 2005-12-09  Robert Dewar  <dewar@adacore.com>
20244
20245         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
20246         decoded names.
20247
20248 2005-12-09  Quentin Ochem  <ochem@adacore.com>
20249             Robert Dewar  <dewar@adacore.com>
20250             Ed Falis  <falis@adacore.com>
20251             Florian Villoing  <villoing@adacore.com>
20252             Thomas Quinot  <quinot@adacore.com>
20253             Arnaud Charlet  <charlet@adacore.com>
20254
20255         * gnat_ugn.texi: Created section "Stack Related Tools"
20256         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
20257         "Stack Related Tools"
20258         Added subsection "Static Stack Usage Analysis"
20259         Added subsection "Dynamic Stack Usage Analysis"
20260         Include documentation of itypes in sprint listing (-gnatG)
20261         Documented gnatbind -D switch (default sec stack size for fixed sec
20262         stacks).
20263         Added Interrupt_State and Persistent_BSS to list of configuration
20264         pragmas.
20265         Add missing doc for maximum value of nnn in -gnatyMnnn
20266
20267         * gnat_rm.texi: Document the AltiVec binding.
20268         Add documentation for pragma Complete_Representation
20269         Shortened an overly long line (> 79 chars)
20270         Clarify documentation of unchecked conversion in implementation
20271         defined cases.
20272         Document two argument form of pragma Debug
20273
20274         * types.ads (Column_Number): Update documentation.
20275
20276         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
20277         library level Finalize_Storage_Only objects (these are not attached to
20278         any finalization list).
20279
20280         * system-mingw.ads: (Underlying_Priorities): Update comment.
20281
20282 2005-12-09  Robert Dewar  <dewar@adacore.com>
20283
20284         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
20285         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20286         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
20287         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
20288         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
20289         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
20290         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
20291         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
20292         reformatting.
20293
20294 2005-12-09  Robert Dewar  <dewar@adacore.com>
20295
20296         * s-vaflop-vms-alpha.adb: (Ne_F): New function
20297         (Ne_G): New function
20298
20299         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
20300         for tag assignment.
20301         (Rewrite_Comparison): Handle case where operation is not a comparison
20302         and ignore, and also handle type conversion case.
20303
20304 2005-12-09  Thomas Quinot  <quinot@adacore.com>
20305
20306         * exp_aggr.ads: Fix typo in comment.
20307         ???-mark Convert_Aggr_In_Assignment as needing documentation.
20308
20309 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
20310
20311         * layout.adb: Replace various uses of byte by storage unit throughout.
20312         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
20313         static size, convert to storage units before returning, to conform to
20314         spec.
20315
20316 2005-12-09  Matthew Gingell  <gingell@adacore.com>
20317
20318         * g-exctra.ads: Fix typo in comment.
20319
20320 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20321
20322         * utils.c: Minor reformatting.
20323
20324 2005-12-09  Robert Dewar  <dewar@adacore.com>
20325
20326         * g-soccon.ads: 
20327         Further comment fixes to make the status of the default file clear
20328
20329         * s-bitops.adb: Clarify comment for Bits_Array
20330
20331 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
20332
20333         * Make-lang.in (ada.install-normal): Remove.
20334
20335 2005-12-07  Rafael ï¿½vila de Esp�ndola  <rafael.espindola@gmail.com>
20336
20337         * Make-lang.in: Remove all dependencies on s-gtype.
20338
20339 2005-12-05  Richard Guenther  <rguenther@suse.de>
20340
20341         * utils.c (convert): Use fold_convert where appropriate.
20342
20343 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
20344
20345         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
20346         a period is meant.
20347
20348 2005-12-02  Richard Guenther  <rguenther@suse.de>
20349
20350         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
20351
20352 2005-12-01  Roger Sayle  <roger@eyesopen.com>
20353
20354         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
20355         nodes.
20356
20357 2005-11-23  Laurent Guerby  <laurent@guerby.net>
20358
20359         * mlib-prj.adb (Build_Library): Initialize Delete.
20360
20361 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
20362
20363         * socket.c: Add extern int h_errno for rtems since networking header
20364         files are not available at this point in a tool bootstrap. Newlib
20365         only has basic C library header files.
20366
20367 2005-11-19  Richard Guenther  <rguenther@suse.de>
20368         Roger Sayle  <roger@eyesopen.com>
20369
20370         PR ada/23717
20371         * misc.c (internal_error_function): Don't use vsprintf to format
20372         the error message text, instead use pp_format_text and the new
20373         pretty printer APIs.  This allows handling of %qs, %w, etc.
20374
20375 2005-11-18  Laurent Guerby  <laurent@guerby.net>
20376
20377         PR ada/24857
20378         * Makefile.in: Use s-auxdec-empty for RTEMS.
20379
20380 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20381
20382         PR ada/22333
20383         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
20384         a temporary if taking the address of something that is neither
20385         reference, declaration, or constant, since the gimplifier
20386         can't handle that case.
20387
20388 2005-11-17  Laurent Guerby  <laurent@guerby.net>
20389
20390         PR ada/24857
20391         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
20392
20393 2005-11-16  Richard Guenther  <rguenther@suse.de>
20394
20395         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
20396
20397 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
20398
20399         PR ada/24855
20400         * raise-gcc.c: Add missing stdarg.h include.
20401  
20402 2005-11-16  Richard Guenther  <rguenther@suse.de>
20403
20404         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
20405         (ada/misc.o): Likewise.
20406
20407 2005-11-14  Thomas Quinot  <quinot@adacore.com>
20408
20409         * g-soccon.ads: Minor reformatting. Update comments.
20410
20411         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
20412         gain visibility on the declaration of struct timeval.
20413
20414         * g-soccon-freebsd.ads,
20415         g-soccon-darwin.ads,
20416         g-soccon-tru64.ads,
20417         g-soccon-aix.ads,
20418         g-soccon-irix.ads,
20419         g-soccon-hpux.ads,
20420         g-soccon-solaris.ads,
20421         g-soccon-vms.ads,
20422         g-soccon-mingw.ads,
20423         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
20424
20425         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
20426         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
20427         g-soccon-linux-x86.ads: New files.
20428
20429         * g-socthi-mingw.adb: 
20430         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
20431
20432         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
20433         (time_t, suseconds_t): New types constructed to match the tv_sec
20434         and tv_usec fields of C struct timeval.
20435         (Timeval): Construct structure in terms of the new types.
20436         (Host_Errno): New function (imported from socket.c), returns last hosts
20437         database error.
20438
20439         * g-socthi-vxworks.adb:  Add error handling circuitry.
20440
20441         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
20442         components of struct timeval.
20443         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
20444         (Check_Selector): In error conditions, clear internal socket sets to
20445         avoid a memory leak.
20446         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
20447         Send_Timeout, Receive_Timeout.
20448
20449         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
20450         the tv_sec and tv_usec fields of C struct timeval.
20451         (Timeval): Construct structure in terms of the new types.
20452         (Host_Errno): New function (imported from socket.c), returns last hosts
20453         database error.
20454
20455         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
20456         hosts database last error code.
20457
20458         * gen-soccon.c: Complete value expansion should not be performed on
20459         TARGET, as it has the form of a math expression, and some components
20460         may be platform-defined macros.
20461         For VxWorks, generate the OK and ERROR values.
20462         New constants giving the sizes of the components of C struct timeval.
20463
20464 2005-11-14  Robert Dewar  <dewar@adacore.com>
20465             Ed Schonberg  <schonberg@adacore.com>
20466
20467         PR ada/18434
20468         * types.ads: Include All_Checks in Suppress_Array
20469
20470         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
20471         not(a=b), since we no longer do this rewriting, and hence it is not
20472         needed.
20473         (Elaboration_Checks_Suppressed): Add special casing to
20474         deal with different cases of static and dynamic elaboration checks (all
20475         checks does not count in the first case, but does in the second).
20476         (Expr_Known_Valid): Do not assume that the result of any arbitrary
20477         function call is valid, since this is not the case.
20478         (Ensure_Valid): Do not apply validity check to a real literal
20479         in a universal or fixed context
20480
20481         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
20482         elementary types using the operator in standard. It is cleaner not to
20483         modify the programmers intent, especially in the case of floating-point.
20484         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
20485         it did not matter because we always rewrote a/=b to not(a=b).
20486         (Expand_Allocator_Expression): For an allocator expression whose nominal
20487         subtype is an unconstrained packed type, convert the expression to its
20488         actual constrained subtype.
20489         Implement warning for <= or >= where < or > not possible
20490         Fix to Vax_Float tests (too early in many routines, causing premature
20491         Vax_Float expansions.
20492
20493         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
20494         to be used with packages and generic packages as well as with
20495         subprograms.
20496         (Suppress): Set All_Checks, but not Elaboration_Check, for case
20497         of pragma Suppress (All_Checks)
20498         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
20499         a string literal for precise control over warnings.
20500         Avoid raise of pragma in case of unrecognized pragma and just return
20501         instead.
20502
20503         * sem_prag.ads: Minor reformatting
20504
20505         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
20506         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20507         Switch. Do not handle any exception.
20508         Include -gnatwx as part of -gnatg (warn on redundant parens)
20509         Allow optional = after -gnatm
20510         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
20511         longer sets Elaboration_Checks.
20512         Code to set warning mode moved to Sem_Warn
20513         so that it can be shared by pragma processing.
20514
20515         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
20516         statement.
20517
20518         * s-taprop-solaris.adb: 
20519         Change some <= to =, to avoid new warning
20520
20521         * a-exexda.adb, prj-proc.adb: 
20522         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
20523         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
20524
20525 2005-11-14  Robert Dewar  <dewar@adacore.com>
20526
20527         * exp_vfpt.adb: Handle /= case
20528         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
20529         so that we do not get duplicate scaling for fixed point conversions.
20530
20531         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
20532
20533 2005-11-14  Matthew Gingell  <gingell@adacore.com>
20534
20535         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
20536         Increase default priority on Lynx from 15 to 17, and meet the Ada
20537         requirement that Default_Priority be ((Priority'First +
20538         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
20539
20540 2005-11-14  Vincent Celier  <celier@adacore.com>
20541
20542         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20543         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
20544         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
20545         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
20546         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
20547         mlib-tgt-lynxos.adb (DLL_Prefix): New function
20548
20549 2005-11-14  Doug Rupp  <rupp@adacore.com>
20550
20551         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
20552         private part.
20553
20554 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
20555
20556         * s-traces-default.adb, s-trafor-default.ads,
20557         s-tratas-default.adb: Fix compilation errors.
20558
20559 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
20560
20561         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
20562         raising the exception so the memory used is freed.
20563
20564 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
20565
20566         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
20567         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
20568         (convert_address): Update comments and list of platforms using this.
20569
20570         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
20571         no longer used.
20572
20573 2005-11-14  Pascal Obry  <obry@adacore.com>
20574             Vincent Celier  <celier@adacore.com>
20575
20576         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
20577         GNAT.Command_Line.
20578
20579         * memroot.adb: Remove redundant with/use clause on
20580         System.Storage_Elements.
20581
20582 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
20583
20584         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
20585         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
20586         related code to a-exexpr.adb
20587         (Save_Occurrence_And_Private): Move GCC EH related code to
20588         a-exexpr-gcc.adb
20589         (Raise_Current_Excep): Add new variable Id with pragma
20590         volatile, to ensure that the variable lives on stack.
20591
20592         * a-exexpr-gcc.adb, raise-gcc.c: New file.
20593
20594         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
20595         from a-except.adb.
20596         Move GCC EH related code to a-exexpr-gcc.adb
20597
20598         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
20599         64-bit Solaris
20600         Split the Linux version of g-soccon into separate variants for 32 and 64
20601         bit platforms.
20602         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
20603         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
20604         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
20605         of host variable $(RANLIB_FLAGS).
20606         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
20607         Code clean up: remove unused/obsolete targets.
20608         (EH_MECHANISM): New variable introduced to differenciate between the
20609         two EH mechanisms statically.
20610         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
20611         (LIBGNAT_OBJS): Add raise-gcc.o
20612         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
20613         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20614         supports VxWorks 6 RTPs.
20615         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
20616         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20617
20618         * raise.c: Move all GCC EH-related routines to raise-gcc.c
20619
20620 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
20621
20622         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
20623         deferral level, when abort is not allowed, to a later stage (the
20624         Task_Wrapper).
20625         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
20626         it will not get changed by the generated code. It was previously done
20627         in Create_Task.
20628
20629 2005-11-14  Thomas Quinot  <quinot@adacore.com>
20630             Olivier Hainque  <hainque@adacore.com>
20631             Eric Botcazou  <ebotcazou@adacore.com>
20632
20633         * decl.c:
20634         Factor common code to build a storage type for an unconstrained object
20635         from a fat or thin pointer type and a constrained object type.
20636         (annotate_value): Handle BIT_AND_EXPR.
20637         (annotate_rep): Don't restrict the back annotation of inherited
20638         components to the type_annotate_only case.
20639         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
20640         we are not defining the type.
20641         <E_Record_Type>: Likewise.
20642         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
20643         to get advantage of the new maybe_stabilize_reference interface, to
20644         ensure that what we reference is indeed stabilized instead of relying
20645         on assumptions on what the stabilizer does.
20646         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
20647         type imported through a limited_with clause, use its non-limited view.
20648         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
20649         differentiation.
20650         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
20651         of #if sections + explicit comparisons of convention identifiers.
20652         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
20653         before early-returning for certain types when code generation is
20654         disabled.
20655         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
20656         nullification of gnu_expr we do for objects with address clause and
20657         that we are not defining.
20658         (elaborate_expression_1): Do not create constants when creating
20659         variables needed by the debug info: the dwarf2 writer considers that
20660         CONST_DECLs is used only to represent enumeration constants, and emits
20661         nothing for them.
20662         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
20663         object with an address clause into an indirect reference, drop the
20664         initializing expression.
20665         Include "expr.h".
20666         (STACK_CHECK_BUILTIN): Delete.
20667         (STACK_CHECK_PROBE_INTERVAL): Likewise.
20668         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
20669         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
20670         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
20671         corresponding to the renamed object as ignored for debugging purposes.
20672
20673         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
20674         related): For a prefix that is a dereference of a fat or thin pointer,
20675         if there is an actual subtype provided by the front-end, use that
20676         subtype to build an actual type with bounds template.
20677         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
20678         is provided by the front-end, use that subtype to compute the size of
20679         the deallocated object.
20680         (gnat_to_gnu): When adding a statement into an elaboration procedure,
20681         check for a potential violation of a No_Elaboration_Code restriction.
20682         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20683         with extra arguments to control whether to recurse through non-values
20684         and to let the caller know if the stabilization has succeeded.
20685         (gnat_stabilize_reference): Now a simple wrapper around
20686         maybe_stabilize, for common uses without restriction on lvalues and
20687         without need to check for the success indication.
20688         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
20689         pass false instead of 0 as the FORCE argument which is a bool.
20690         (Identifier_to_gnu): Remove checks ensuring that an renamed object
20691         attached to a renaming pointer has been properly stabilized, as no such
20692         object is attached otherwise.
20693         (call_to_gnu): Invoke create_var_decl to create the temporary when the
20694         function uses the "target pointer" return mechanism.
20695         Reinstate conversion of the actual to the type of the formal
20696         parameter before any other specific treatment based on the passing
20697         mechanism. This turns out to be necessary in order for PLACEHOLDER
20698         substitution to work properly when the latter type is unconstrained.
20699
20700         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
20701         common pattern.
20702         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20703         with extra arguments to control whether to recurse through non-values
20704         and to let the caller know if the stabilization has succeeded.
20705
20706         * utils2.c (gnat_build_constructor): Only sort the fields for possible
20707         static output of record constructor if all the components are constant.
20708         (gnat_build_constructor): For a record type, sort the list of field
20709         initializers in increasing bit position order.
20710         Factor common code to build a storage type for an unconstrained object
20711         from a fat or thin pointer type and a constrained object type.
20712         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
20713         types variants, and process special cases of VIEW_CONVERT expressions
20714         as their NOP_EXPR counterpart to ensure we get to the
20715         CORRESPONDING_VARs associated with CONST_DECls.
20716         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
20717         on the right-hand side.
20718
20719         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
20720         a common pattern.
20721         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
20722         are converting back to its original type.
20723         (convert) <JM input>: Fallthrough regular conversion code instead of
20724         extracting the object if converting to a type variant.
20725         (create_var_decl): When a variable has an initializer requiring code
20726         generation and we are at the top level, check for a potential violation
20727         of a No_Elaboration_Code restriction.
20728         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
20729         SIZE and SIZE_UNIT which we need for later back-annotations.
20730         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
20731         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
20732         is an unchecked union.
20733         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
20734         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
20735         main variant, just replace the VIEW_CONVERT_EXPR.
20736         <UNION_TYPE>: Revert 2005-03-02 change.
20737
20738         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
20739
20740         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
20741
20742 2005-11-14  Matthew Heaney  <heaney@adacore.com>
20743
20744         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
20745         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
20746         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
20747         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
20748         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
20749         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
20750         Compiles against the spec for ordered maps described in sections
20751         A.18.6 of the most recent (August 2005) AI-302 draft.
20752
20753 2005-11-14  Olivier Hainque  <hainque@adacore.com>
20754
20755         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
20756         to ensure bias adjustments take place when need be and to prevent
20757         occurrences of intermediate overflows.
20758
20759 2005-11-14  Matthew Gingell  <gingell@adacore.com>
20760             Olivier Hainque  <hainque@adacore.com>
20761
20762         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
20763         ia64 HP-UX.
20764
20765         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
20766         tracebacks on ia64 HP-UX and provide explanatory comment.
20767         Enable backtraces on ia64 GNU/Linux.
20768         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
20769         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
20770
20771 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
20772             Javier Miranda  <miranda@adacore.com>
20773
20774         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
20775         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
20776         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
20777         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
20778
20779         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
20780         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
20781         assertions).
20782
20783         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
20784         subprogram that generates the external name associated with a
20785         secondary dispatch table.
20786         (Get_Secondary_DT_External_Name): New subprogram that generates the
20787         external name associated with a secondary dispatch table.
20788
20789 2005-11-14  Emmanuel Briot  <briot@adacore.com>
20790
20791         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
20792         line in the ALI file to include both an instantiation reference, and a
20793         returned value.
20794
20795 2005-11-14  Vincent Celier  <celier@adacore.com>
20796
20797         * clean.adb (Check_Project): Look for Ada code in extending project,
20798         even if Ada is not specified as a language.
20799         Use new function DLL_Prefix for DLL_Name
20800         (Clean_Interface_Copy_Directory): New procedure
20801         (Clean_Library_Directory): New procedure
20802         (Clean_Directory): Remove procedure, no longer used
20803         (Clean_Project): Do not delete any file in an externally built project
20804
20805         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
20806         directory of an extending project, even when there are no Ada source
20807         present.
20808         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
20809         (Set_Ada_Paths.Add.Recursive_Add): Ditto
20810
20811         * mlib-prj.adb (Check_Library): For all library projects, get the
20812         library file timestamp.
20813         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
20814         (Build_Library): Use new function DLL_Prefix for the DLL_Name
20815         (Clean): Remove procedure, no longer used
20816         (Ultimate_Extension_Of): New function
20817         (Build_Library): When cleaning the library directory, only remove an
20818         existing library file and any ALI file of a source of the project.
20819         When cleaning the interface copy directory, remove any source that
20820         could be a source of the project.
20821
20822         * prj.ads, prj.adb (Project_Empty): Add values of new components
20823         Library_TS and All_Imported_Projects.
20824         (Project_Empty): Add values for new components of Project_Data:
20825         Library_ALI_Dir and Display_Library_ALI_Dir
20826
20827         * prj-attr.adb: New project level attribute name Library_ALI_Dir
20828
20829         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
20830         attribute Library_ALI_Dir.
20831         (Check_Library_Attributes): The library directory cannot be the same as
20832         any source directory of the project tree.
20833         (Check_Stand_Alone_Library): The interface copy directory cannot be
20834         the same as any source directory of the project tree.
20835
20836         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
20837         all temporary files.
20838
20839 2005-11-14  Robert Dewar  <dewar@adacore.com>
20840             Ed Schonberg  <schonberg@adacore.com>
20841
20842         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20843         (Check_Elab_Call): A call within a protected body is never an
20844         elaboration call, and does not require checking.
20845         (Same_Elaboration_Scope): Take into account protected types for both
20846         entities.
20847         (Activate_Elaborate_All_Desirable): New procedure
20848
20849         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
20850         desirable
20851
20852         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
20853         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
20854
20855         * lib-writ.ads, lib-writ.adb: 
20856         Implement new AD/ED for Elaborate_All/Elaborate desirable
20857         Use new Elaborate_All_Desirable flag in N_With_Clause node
20858
20859         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
20860         N_Free_Statement nodes.
20861         Define new class N_Subprogram_Instantiation
20862         Add Elaborate_Desirable flag to N_With_Clause node
20863         Add N_Delay_Statement (covering two kinds of delay)
20864
20865         * debug.adb: Introduce d.f flag for compiler
20866         Add -da switch for binder
20867
20868 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20869             Cyrille Comar  <comar@adacore.com>
20870
20871         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
20872         for task component, in the case of a limited aggregate. The enclosed
20873         object declaration will create it earlier. Otherwise, in the case of a
20874         nested aggregate, the object may appear in the wrong scope.
20875         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
20876         (Gen_Assign): If the component being assigned is an array type and the
20877         expression is itself an aggregate, wrap the assignment in a block to
20878         force finalization actions on the temporary created for each row of the
20879         enclosing object.
20880         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
20881         structures are initialized after all discriminants are set so that
20882         they can be accessed even when their offset is dynamic.
20883
20884 2005-11-14  Robert Dewar  <dewar@adacore.com>
20885             Hristian Kirtchev  <kirtchev@adacore.com>
20886
20887         * sem_attr.adb: Implement Machine_Rounding attribute
20888         (Analyze_Access_Attribute): The access attribute may appear within an
20889         aggregate that has been expanded into a loop.
20890         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
20891         'Terminated whenever the prefix is of a task interface class-wide type.
20892         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
20893         the prefix is of a task interface class-wide type.
20894
20895         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
20896         to avoid warnings.
20897
20898         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
20899         Remove pragma Inline for [Unaligned_]Valid.
20900         Add comments that Valid routines do not work for Vax_Float
20901
20902         * exp_attr.adb: Implement Machine_Rounding attribute
20903
20904         * snames.h: Add entry for Machine_Rounding attribute
20905
20906 2005-11-14  Javier Miranda  <miranda@adacore.com>
20907             Robert Dewar  <dewar@adacore.com>
20908             Hristian Kirtchev  <kirtchev@adacore.com>
20909
20910         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
20911         and related): For a prefix that is an explicit dereference of an
20912         access to unconstrained packed array type, annotate the dereference
20913         with an actual subtype so GIGI can make a correct size computation.
20914         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
20915         'Unrestricted_Access, if the designated type is an interface we
20916         add a type conversion to force the displacement of the pointer
20917         to the secondary dispatch table.
20918         Use Universal_Real instead of Long_Long_Float when we need a high
20919         precision float type for the generated code (prevents gratuitous
20920         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20921         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
20922         'Terminated for task interface class-wide objects. Generate a call to
20923         the predefined dispatching routine used to retrieve the _task_id from
20924         a task corresponding record.
20925         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
20926
20927         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20928         (Check_Dispatching_Operation): Protect the frontend againts
20929         previously detected errors.
20930
20931         * Makefile.rtl: Add new instantiations of system.fat_gen
20932
20933         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
20934         Change name of instantiated package for better consistency
20935         with newly added system.fat_gen instantiations.
20936
20937         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
20938         s-fvagfl.ads: New files.
20939
20940 2005-11-14  Cyrille Comar  <comar@adacore.com>
20941             Thomas Quinot  <quinot@adacore.com>
20942
20943         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
20944         assignment of a value of a tagged type that has been rewritten to a
20945         block statement, it is known by construction that no checks are
20946         necessary for the statements within the block: analyze it with checks
20947         suppressed.
20948         (Expand_N_If_Statement): When killing a dead then-branch in an
20949         if-statement that has elsif_parts, recompute the Current_Value node
20950         for any entity whose value is known from the condition of the first
20951         elsif_part.
20952         (Expand_N_Return_Statement): When returning a mutable record, convert
20953         the return value into its actual subtype in order to help the backend
20954         to return the actual size instead of the maximum. This is another
20955         aftermath of not returning mutable records on the sec-stack anymore.
20956
20957         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
20958         handling of error msg for suspicious reverse range iteration.
20959         (Check_Possible_Current_Value_Condition): Move declaration from body to
20960         spec, to allow this subprogram to be called from exp_ch5.
20961
20962 2005-11-14  Thomas Quinot  <quinot@adacore.com>
20963
20964         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
20965         generate a set of nested array aggregates instead of a single flat
20966         aggregate for multi-dimensional arrays.
20967
20968 2005-11-14  Pascal Obry  <obry@adacore.com>
20969
20970         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
20971         by spawnve is a process handle, no need to convert. Add a parameter
20972         close to control wether the process handle must be closed.
20973         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
20974         a process handle, not need to convert.
20975         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
20976
20977         * g-expect.adb: (Kill): Document the new close parameter.
20978         (Close): Do not release the process handle in the kill there as
20979         waitpid() is using it.
20980         (Send_Signal): Release the process handle.
20981
20982 2005-11-14  Robert Dewar  <dewar@adacore.com>
20983
20984         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
20985         need a high precision float type for the generated code (prevents
20986         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20987         used).
20988
20989         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
20990         need a high precision float type for the generated code (prevents
20991         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20992         used).
20993         (Expand_Width_Attribute): In configurable run-time, the attribute is not
20994         allowed on non-static enumeration subtypes. Force a load error to emit
20995         the correct diagnostic.
20996
20997 2005-11-14  Thomas Quinot  <quinot@adacore.com>
20998             Robert Dewar  <dewar@adacore.com>
20999             Ed Schonberg  <schonberg@adacore.com>
21000
21001         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
21002         subtype to compute the size of the designated object at run-time,
21003         create such a subtype and store it in the Actual_Designated_Subtype
21004         attribute of the N_Free_Statement.
21005         Generate itype for classwide designated object in both cases of
21006         user-specified storage pool: specific and class-wide, not only in the
21007         specific case.
21008         Raise CE when trying to set a not null access type object to null.
21009         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
21010         an explicit loop, because freeze nodes make its position variable.
21011
21012         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
21013         null object.
21014
21015 2005-11-14  Javier Miranda  <miranda@adacore.com>
21016
21017         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
21018         Build_Stream_Procedure): Add the null-excluding attribute to the first
21019         formal.
21020         This has no semantic meaning under Ada95 mode but it is a
21021         requirement under Ada05 mode.
21022
21023         * par-ch3.adb (P_Access_Definition): Addition of warning message if
21024         the null exclusion is used under Ada95 mode
21025         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
21026         (P_Access_Definition): Remove assertion that forbids the use of
21027         the null-exclusion feature in Ada95.
21028
21029 2005-11-14  Robert Dewar  <dewar@adacore.com>
21030
21031         * impunit.adb: Exclude container helper units not intended for use by
21032         users.
21033
21034 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21035
21036         * freeze.adb (Freeze_Entity): For an access formal that is an access
21037         to subprogram, freeze the anonymous subprogram type at the same time,
21038         to prevent later freezing in the wrong scope, such as the enclosing
21039         subprogram body.
21040         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
21041         subprogram whenever available.
21042
21043 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21044
21045         PR ada/23732
21046         * gnatvsn.ads (Library_Version): Bump to 4.1
21047
21048 2005-11-14  Robert Dewar  <dewar@adacore.com>
21049
21050         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
21051         Storage_Offset to avoid wrap around causing invalid results.
21052
21053 2005-11-14  Pascal Obry  <obry@adacore.com>
21054
21055         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
21056         cross-compiler.
21057         (Scan_Bind_Arg): Fail with an error message if -M option is used
21058         on a native compiler.
21059
21060 2005-11-14  Robert Dewar  <dewar@adacore.com>
21061             Vincent Celier  <celier@adacore.com>
21062
21063         * gprep.adb: Implement -C switch to scan comments
21064
21065         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
21066
21067         * scans.ads: Comment updates (including new use of Tok_Comment in
21068         preprocessing)
21069
21070         * opt.ads: Add documentation for flags that are used by gprmake,
21071         currently and in the next version of gprmake.
21072         (Verbosity_Level): New variable
21073         Add Replace_In_Comments switch
21074
21075         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
21076         and -vm.
21077         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
21078
21079 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
21080
21081         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
21082         message, friendlier.
21083
21084 2005-11-14  Robert Dewar  <dewar@adacore.com>
21085
21086         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
21087
21088 2005-11-14  Doug Rupp  <rupp@adacore.com>
21089
21090         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
21091
21092 2005-11-14  Robert Dewar  <dewar@adacore.com>
21093
21094         * interfac.ads: Change declarations of IEEE float types so that we no
21095         longer need a separate version of this package for VMS.
21096
21097 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21098
21099         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
21100         internal entity created for the declaration of a child subprogram body
21101         with no spec as coming from source, to generate proper cross-reference
21102         information.
21103
21104 2005-11-14  Vincent Celier  <celier@adacore.com>
21105
21106         * make.adb (Compile_Sources): Change verbose message to minimum
21107         verbosity level High for "is in an Ada library", "is a read-only
21108         library" and "is an internal library",
21109         (Create_Binder_Mapping_File): Path name of ALI file for library project
21110         must include the library directory, not the object directory.
21111         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
21112         for new switches -vl, -vm and -vh.
21113         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
21114         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
21115         (Compile_Sources): Do not attempt to compile if an ALI file is missing
21116         in a project that is externally built.
21117         (Compute_All_Imported_Projects): New procedure
21118         (Gnatmake): Check if importing libraries should be regenerated because
21119         at least an imported library is more recent.
21120         (Initialize): For each project compute the list of the projects it
21121         imports directly or indirectly.
21122         (Add_Library_Search_Dir): New procedure, used in place of
21123         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21124         put in the search paths.
21125         (Add_Source_Search_Dir): New procedure, used in place of
21126         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21127         put in the search paths.
21128         (Mark_Directory): Resolve the absolute path the directory before marking
21129         it.
21130
21131         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
21132         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21133         Switch. Do not handle any exception.
21134         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
21135         so that the switch is recognized as valid.
21136         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
21137
21138 2005-11-14  GNAT Script  <nobody@adacore.com>
21139
21140         * Make-lang.in: Makefile automatically updated
21141
21142 2005-11-14  Pascal Obry  <obry@adacore.com>
21143
21144         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
21145         used.
21146         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
21147         In both cases the last argument was dropped.
21148
21149 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
21150
21151         * namet.h: (Column_Numbe): New type.
21152         (Get_Column_Number): Define to sinput__get_column_number.
21153         (Instantiation): Define to sinput__instantiation.
21154         (Get_Column_Number): Declare.
21155         (Instantiation): Likewise.
21156
21157 2005-11-14  Robert Dewar  <dewar@adacore.com>
21158
21159         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
21160         syntax, which could cause compiler hangs.
21161
21162 2005-11-14  Vincent Celier  <celier@adacore.com>
21163
21164         * prj-ext.adb: Take into account new environment variable
21165         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
21166         are defined.
21167         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
21168         normalize its path name, making it absolute and resolving symbolic
21169         links, and replace the original if resolved path is different.
21170
21171 2005-11-14  Vincent Celier  <celier@adacore.com>
21172
21173         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
21174         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
21175
21176 2005-11-14  Emmanuel Briot  <briot@adacore.com>
21177
21178         * prj-pp.adb (Print): Do not output the with statement if the
21179         associated name is empty, which happens for virtual extending projects.
21180         (Print): Preserve the "extends all" attribute when printing the project.
21181
21182         * prj-tree.ads (String_Value_Of): Add comment about returned value for
21183         a virtual extending project.
21184
21185 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21186
21187         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
21188         rhs of an assignment even if the type is unconstrained, when the
21189         context is non-expanding.
21190         In an inlined body, if the context type is private,
21191         resolve with its full view, which must be a composite type.
21192
21193 2005-11-14  Robert Dewar  <dewar@adacore.com>
21194             Ed Schonberg  <schonberg@adacore.com>
21195
21196         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21197         Do not give obsolescent warning on with of subprogram (since we
21198         diagnose calls)
21199         (Analyze_With_Clause): Add test for obsolescent package
21200         (Install_Context_Clauses): If the unit is the body of a child unit, do
21201         not install twice the private declarations of the parents, to prevent
21202         circular lists of Use_Clauses in a parent.
21203         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
21204         compiling body of child unit.
21205         Use new class N_Subprogram_Instantiation
21206         (Expand_With_Clause): If this is a private with_clause for a child unit,
21207         appearing in the context of a package declaration, then the implicit
21208         with_clauses generated for parent units are private as well.
21209         (License_Check): Do not generate message if with'ed unit is internal
21210
21211 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
21212             Ed Schonberg  <schonberg@adacore.com>
21213             Thomas Quinot  <quinot@adacore.com>
21214
21215         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
21216         names are internal, because they will not have a corresponding partner
21217         in the actual package.
21218         (Analyze_Formal_Package): Move the setting of the formal package spec's
21219         Generic_Parent field so that it occurs prior to analyzing the package,
21220         to allow proper operation of Install_Parent_Private_Declarations.
21221         (Analyze_Package_Instantiation): Set the instantiated package entity's
21222         Package_Instantiation field.
21223         (Get_Package_Instantiation_Node): Move declaration to package spec.
21224         Retrieve the N_Package_Instantiation node when the Package_Instantiation
21225         field is present.
21226         (Check_Generic_Child_Unit): Within an inlined call, the only possible
21227         instantiation is Unchecked_Conversion, for which no parents are needed.
21228         (Inline_Instance_Body): Deinstall and record the use_clauses for all
21229         parent scopes of a scope being removed prior to inlining an instance
21230         body.
21231         (Analyze_Package_Instantiation): Do not perform front-end inlining when
21232         the current context is itself an instance within a non-instance child
21233         unit, to prevent scope stack errors.
21234         (Save_References): If the node is an aggregate that is an actual in a
21235         call, rewrite as a qualified expression to preserve some type
21236         information, to resolve possible ambiguities in the instance.
21237         (Instance_Parent_Unit): New global variable to record the ultimate
21238         parent unit associated with a generic child unit instance (associated
21239         with the existing Parent_Unit_Visible flag).
21240         (type Instance_Env): New component Instance_Parent_Unit for stacking
21241         parents recorded in the global Instance_Parent_Unit.
21242         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
21243         stack.
21244         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
21245         it's not a top-level unit, and only do this if Instance_Parent_Unit is
21246         not already set. Replace test of Is_Child_Unit with test of parent's
21247         scope against package Standard. Add comments and a ??? comment.
21248         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
21249         on a child instance parent to test that the parent equals
21250         Instance_Parent rather than simply checking that the unit is not a
21251         child unit.
21252         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
21253         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
21254         a formal interface are ancestors of the corresponding actual.
21255         (Validate_Formal_Interface_Type): Additional legality checks.
21256         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
21257         interface types with ancestors.
21258         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
21259         to diagnose attempts to use generic within its own declaration.
21260
21261 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21262             Javier Miranda  <miranda@adacore.com>
21263
21264         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
21265         discriminant.
21266         (Build_Private_Derived_Type): The entity of the created full view of the
21267         derived type does not come from source. If after installing the private
21268         declarations of the parent scope the parent is still private, use its
21269         full view to construct the full declaration of the derived type.
21270         (Build_Derived_Record_Type): Relax the condition that controls the
21271         execution of the check that verifies that the partial view and
21272         the full view agree in the set of implemented interfaces. In
21273         addition, this test now only takes into account the progenitors.
21274         (Derive_Interface_Subprograms): No need to derive subprograms
21275         of ancestors that are interfaces.
21276         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
21277         associated code.
21278         Change name Is_Package to Is_Package_Or_Generic_Package
21279         (Complete_Subprograms_Derivation): Handle the case in which the full
21280         view is a transitive derivation of the ancestor of the partial view.
21281         (Process_Full_View): Rename local subprogram Find_Interface_In_
21282         Descendant to Find_Ancestor_Interface to leave the code more clear.
21283         Remove wrong code that avoids the generation of an error message
21284         when the immediate ancestor of the partial view is an interface.
21285         In addition some minor reorganization of the code has been done to
21286         leave it more clear.
21287         (Analyze_Type_Declaration): If type has previous incomplete tagged
21288         partial view, inherit properly its primitive operations.
21289         (Collect_Interfaces): Make public, for analysis of formal
21290         interfaces.
21291         (Analyze_Interface_Declaration): New procedure for use for regular and
21292         formal interface declarations.
21293         (Build_Derived_Record_Type): Add support for private types to the code
21294         that checks if a tagged type implements abstract interfaces.
21295         (Check_Aliased_Component_Type): The test applies in the spec of an
21296         instance as well.
21297         (Access_Type_Declaration): Clean up declaration of malformed type
21298         declared as an access to its own classwide type, to prevent cascaded
21299         crash.
21300         (Collect_Interfaces): For private extensions and for derived task types
21301         and derived protected types, the parent may be an interface that must
21302         be included in the interface list.
21303         (Access_Definition): If the designated type is an interface that may
21304         contain tasks, create Master_Id for it before analyzing the expression
21305         of the declaration, which may be an allocator.
21306         (Record_Type_Declaration): Set properly the interface kind, for use
21307         in allocators, the creation of master id's for task interfaces, etc.
21308
21309 2005-11-14  Javier Miranda  <miranda@adacore.com>
21310             Ed Schonberg  <schonberg@adacore.com>
21311
21312         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
21313         omitted in case of stream attribute subprograms.
21314         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
21315         appear immediately after a subprogram body, when there is no previous
21316         subprogram declaration.
21317         Change name Is_Package to Is_Package_Or_Generic_Package
21318         (Process_Formals): A non null qualifier on a non null named access
21319         type is not an error, and is a warning only if Redundant_Constructs
21320         are flagged.
21321
21322 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
21323             Ed Schonberg  <schonberg@adacore.com>
21324
21325         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
21326         nested within Analyze_Package_Specification to install the private
21327         declarations and use clauses within each of the parent units of a
21328         package instance of a generic child package.
21329         (Analyze_Package_Specification): When entering a private part of a
21330         package associated with a generic instance or formal package, the
21331         private declarations of the parent must be installed (by calling new
21332         procedure Install_Parent_Private_Declarations).
21333         Change name Is_Package to Is_Package_Or_Generic_Package
21334         (Preserve_Full_Attributes): For a synchronized type, the corresponding
21335         record is absent in a generic context, which does not indicate a
21336         compiler error.
21337
21338 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21339
21340         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
21341         not try to rewrite a renamed stream attribute, because the operations
21342         on the type may not have been generated.
21343         Handle properly a renaming_as_body generated for a stream operation
21344         whose default is abstract because the object type itself is abstract.
21345         (Find_Type): If the type is incomplete and appears as the prefix of a
21346         'Class reference, it is tagged, and its list of primitive operations
21347         must be initialized properly.
21348         (Chain_Use_Clauses): When chaining the use clauses that appear in the
21349         private declaration of a parent unit, prior to compiling the private
21350         part of a child unit, find on the scope stack the proper parent entity
21351         on which to link the use clause.
21352         (Note_Redundant_Use): Emit a warning when a redundant use clause is
21353         detected.
21354         (Analyze_Object_Renaming): An attribute reference is not a legal object
21355         if it is not a function call.
21356
21357 2005-11-14  Robert Dewar  <dewar@adacore.com>
21358             Ed Schonberg  <schonberg@adacore.com>
21359
21360         * sem_eval.adb: Implement d.f flag
21361         (Subtype_Statically_Match): A generic actual type has unknown
21362         discriminants when the corresponding actual has a similar partial view.
21363         If the routine is called to validate the signature of an inherited
21364         operation in a child instance, the generic actual matches the full view,
21365
21366 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
21367             Ed Schonberg  <schonberg@adacore.com>
21368             Robert Dewar  <dewar@adacore.com>
21369             Thomas Quinot  <quinot@adacore.com>
21370
21371         * sem_res.adb (Resolve_Call): Provide a better error message whenever
21372         a procedure call is used as a select statement trigger and is not an
21373         entry renaming or a primitive of a limited interface.
21374         (Valid_Conversion): If the operand has a single interpretation do not
21375         remove address operations.
21376         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
21377         statement to inhibit warning.
21378         (Resolve_Unary_Op): Do not produce a warning when
21379         processing an expression of the form -(A mod B)
21380         Use Universal_Real instead of Long_Long_Float when we need a high
21381         precision float type for the generated code (prevents gratuitous
21382         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21383         (Resolve_Concatenation_Arg): Improve error message when argument is an
21384         ambiguous call to a function that returns an array.
21385         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
21386         there is an implicit operator in the given scope if we are within an
21387         instance: legality check has been performed on the generic.
21388         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
21389         after resolving operand, to avoid false warnings on overloaded calls.
21390
21391 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21392             Javier Miranda  <miranda@adacore.com>
21393
21394         PR ada/15604
21395         * sem_type.adb (Covers): In an inlined body, a composite type matches
21396         a private type whose full view is a composite type.
21397         (Interface_Present_In_Ancestor): Protect the frontend against
21398         previously detected errors to ensure that its compilation
21399         with assertions enabled gives the same output that its
21400         compilation without assertions.
21401         (Interface_Present_In_Ancestor): Add support for private types.
21402         Change name In_Actual to In_Generic_Actual (clean up)
21403         (Disambiguate): New predicate In_Actual, to recognize expressions that
21404         appear in the renaming declaration generated for generic actuals, and
21405         which must be resolved in the outer context.
21406
21407 2005-11-14  Robert Dewar  <dewar@adacore.com>
21408             Thomas Quinot  <quinot@adacore.com>
21409             Hristian Kirtchev  <kirtchev@adacore.com>
21410             Ed Schonberg  <schonberg@adacore.com>
21411
21412         * sem_util.ads, sem_util.adb: Change name Is_Package to
21413         Is_Package_Or_Generic_Package.
21414         (Check_Obsolescent): New procedure.
21415         (Set_Is_Public): Remove obsolete junk test.
21416         (Set_Public_Status): Do not set Is_Public on an object whose declaration
21417         occurs within a handled_sequence_of_statemets.
21418         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
21419         for a parameterless procedure.
21420         (Enter_Name): Recognize renaming declarations created for private
21421         component of a protected type within protected operations, so that
21422         the source name of the component can be used in the debugger.
21423
21424 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
21425             Robert Dewar  <dewar@adacore.com>
21426
21427         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
21428         of a generic subprogram are not visible outside the body.
21429         (Set_Warning_Switch): New procedure (code to set warning mode moved
21430         here from Switch.C so that it can be shared by pragma processing.
21431         (Check_References): Special case warning for non-modified non-imported
21432         volatile objects.
21433         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
21434         form with a string literal argument
21435
21436 2005-11-14  Javier Miranda  <miranda@adacore.com>
21437
21438         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
21439         anonymous access.
21440         (Write): Addition of "not null" to the anonymous access.
21441         (Read): Addition of "not null" to the anonymous access.
21442         (Write): Addition of "not null" to the anonymous access.
21443
21444         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
21445         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
21446         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
21447         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
21448         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
21449         "not null" to the anonymous access.
21450
21451 2005-11-14  Robert Dewar  <dewar@adacore.com>
21452
21453         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
21454         offset values
21455
21456 2005-11-14  Vincent Celier  <celier@adacore.com>
21457
21458         * switch.adb (Bad_Switch): New procedure
21459         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
21460         message when in error.
21461
21462         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
21463         Too_Many_Output_Files): Remove declarations, no longer used.
21464         (Scan_Nat): New parameter Switch
21465         (Scan_Pos): Ditto
21466         (Bad_Switch): New procedure
21467
21468         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
21469         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
21470         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
21471         to Osint.Fail. Do not handle any exception.
21472
21473 2005-11-14  Vincent Celier  <celier@adacore.com>
21474
21475         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
21476         designates a non existent directory.
21477
21478 2005-11-14  Robert Dewar  <dewar@adacore.com>
21479
21480         * xgnatugn.adb: Replace invalid membership test by 'Valid
21481
21482 2005-11-14  Vincent Celier  <celier@adacore.com>
21483
21484         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
21485         there is no object directory.
21486
21487 2005-11-14  Robert Dewar  <dewar@adacore.com>
21488
21489         * usage.adb: Minor adjustment to output format, use nn instead of nnn
21490         (so that -gnateInnn does not run into next column)
21491
21492 2005-11-14  Ed Falis  <falis@adacore.com>
21493
21494         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
21495         "constrained"
21496
21497 2005-11-14  Cyrille Comar  <comar@adacore.com>
21498
21499         * s-chepoo.ads: Add comments on Dereference.
21500         Remove unnecessary inherited abstract primitives.
21501         Cosmetic cleanup.
21502
21503 2005-11-14  Robert Dewar  <dewar@adacore.com>
21504
21505         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
21506         node parameter, not needed, since it is available as Declaration_Node.
21507
21508 2005-11-14  Geert Bosch  <bosch@adacore.com>
21509
21510         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
21511         grammatically correct.
21512
21513 2005-11-14  Vincent Celier  <celier@adacore.com>
21514
21515         * s-fileio.ads: Correct spelling error in comment
21516
21517 2005-11-14  Cyrille Comar  <comar@adacore.com>
21518             Robert Dewar  <dewar@adacore.com>
21519             Vincent Celier  <celier@adacore.com>
21520             Ben Brosgol  <brosgol@adacore.com>
21521             Jose Ruiz  <ruiz@adacore.com>
21522             Pascal Obry  <obry@adacore.com>
21523
21524         * gnat_ugn.texi: 
21525         Document that -fstack-check is needed for strict compliance with the
21526         Ada 95 Reference Manual.
21527         Correct reference to VAX systems to meet HP guidelines
21528         Add documentation for new gnatmake switches -vl, -vm and -vh
21529         Replace DEC Ada by HP Ada
21530         Replace DIGITAL by HP
21531         Remove empty section on tools in compatibility section
21532         Clarify the Windows convention semantics.
21533         Document the Win32 calling convention.
21534         The Stdcall, Win32 and DLL convention are synonyms.
21535         Add a note in -gnatR description about zero size record components
21536         Note on new >= and <= warnings for -gnatwc
21537         Document that equal sign after -gnatm is optional.
21538         Note that strip is working fine on DLL built with a Library
21539         Project. The restriction apply only to DLL built with gnatdll.
21540         Update section about the way to debug a DLL.
21541         Update information about the DLL convention.
21542         Document -C switch for gnatprep
21543         Document new attribute Library_ALI_Dir
21544         Update elaboration doc to include implicit Elaborate pragmas now
21545         generated for subprogram instantiations.
21546         Document limitation on executable names that include spaces for --GCC,
21547         --GNATBIND, and --GNATLINK switches.
21548         Document that -w causes -gnatws to be added at start of gcc switches
21549
21550         * gnat_rm.texi: Document that -mieee is needed for generating infinite
21551         and NaN values in case of overflow on machines that are not fully
21552         compliant with the IEEE floating-point standard.
21553         Create a section describing the set of compiler options needed for
21554         strict compliance with the Ada 95 Reference Manual.
21555         Add documentation for pragma Obsolescent applied to a package
21556         Clarify potential issues of mixed language programs related to the
21557         I/O buffering enabling in the elaboration of the GNAT runtime.
21558         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
21559         This documentation only patch adds extra documentsion for pragma
21560         Restrictions (No_Elaboration_Code), explaining why it is not possible
21561         to document this restriction in terms of allowed source constructs.
21562         Document string literal form of pragma Warnings
21563         Document new attribute Library_ALI_Dir
21564         Add documentation on stable attributes in project files that was missing
21565
21566         * gnat-style.texi: Indicate that paragraphs within a single comment
21567         should be separated by empty comment lines
21568
21569         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
21570         /05 respectively)
21571
21572         * bindusg.adb: Minor cleanup, put -m before -M for consistency
21573
21574 2005-11-14  Robert Dewar  <dewar@adacore.com>
21575
21576         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
21577         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
21578         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
21579         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
21580         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
21581         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
21582         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21583         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
21584         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
21585         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21586         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
21587         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
21588         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
21589         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
21590         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
21591         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
21592         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
21593         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
21594         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
21595         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
21596         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
21597         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
21598         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
21599         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
21600         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
21601         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
21602         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
21603         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
21604         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
21605         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
21606         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
21607         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
21608         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
21609         system-interix.ads, system-solaris-sparc.ads,
21610         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
21611         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
21612         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
21613         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
21614         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
21615         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
21616         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
21617         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
21618         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
21619         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
21620         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
21621         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
21622         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
21623         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
21624         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
21625         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
21626         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
21627         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
21628         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
21629         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
21630         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
21631         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
21632         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
21633         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
21634         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
21635         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
21636         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
21637         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
21638         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
21639         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
21640         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
21641         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
21642         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
21643         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
21644         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
21645         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
21646         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
21647         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
21648         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
21649         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
21650         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
21651         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
21652         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
21653         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
21654         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
21655         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
21656         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
21657         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
21658         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
21659         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
21660         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
21661         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
21662         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
21663         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
21664         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
21665         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
21666         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
21667         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
21668         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
21669         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
21670         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
21671         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
21672         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
21673         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
21674         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
21675         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
21676         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
21677         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
21678         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
21679         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
21680         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
21681         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
21682         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
21683         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
21684         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
21685         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
21686         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
21687         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
21688         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
21689         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
21690         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
21691         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
21692         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
21693         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
21694         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
21695         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
21696         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
21697         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
21698         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
21699         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
21700         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
21701         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
21702         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
21703         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
21704         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
21705         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
21706         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
21707         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
21708         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
21709         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
21710         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
21711         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
21712         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
21713         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
21714         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
21715         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
21716         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
21717         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
21718         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
21719         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
21720         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
21721         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
21722         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
21723         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
21724         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
21725         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
21726         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
21727         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
21728         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
21729         a-numaux-darwin.ads, a-numaux-darwin.adb,
21730         a-swuwha.ads, a-stunha.ads: Minor reformatting
21731
21732 2005-11-14  Robert Dewar  <dewar@adacore.com>
21733
21734         PR ada/18434
21735         * osint-m.adb: Add pragma Elaborate_All for Osint
21736
21737 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
21738
21739         PR ada/23995
21740         * trans.c (call_to_gnu): Restore statement lost in translation.
21741
21742 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
21743
21744         * init.c: Use the Linux-specific section for the IA-64/Linux target.
21745         (__gnat_adjust_context_for_raise): Add conditional code so that the
21746         IA-64 is also supported.
21747
21748 2005-11-03  James E Wilson  <wilson@specifix.com>
21749
21750         PR ada/23427
21751         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
21752         TREE_OVERFLOW check.
21753
21754 2005-09-21  Olivier Hainque  <hainque@adacore.com>
21755
21756         PR ada/22418
21757         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
21758         as we create them to store a size in bits.
21759
21760 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
21761
21762         PR ada/21937
21763         PR ada/22328
21764         PR ada/22381
21765         PR ada/22383
21766         PR ada/22419
21767         PR ada/22420
21768         * utils2.c (build_return_expr): New helper function.
21769         * gigi.h (build_return_expr): Declare it.
21770         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
21771         of manually building the RETURN_EXPR tree.
21772         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
21773         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
21774         build_binary_op for the "target pointer" case.  Use build_return_expr
21775         instead of manually building the RETURN_EXPR tree.
21776
21777 2005-09-16  Laurent Guerby  <laurent@guerby.net>
21778
21779         PR ada/23788
21780         * s-tpinop.ads: Make this unit Preelaborate.
21781
21782 2005-09-16  Andreas Jaeger  <aj@suse.de>
21783
21784         * socket.c: Add string.h for memcpy.
21785
21786 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
21787
21788         * dec-io.ads, dec-io.adb: Removed, no longer used.
21789
21790 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
21791
21792         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
21793
21794         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
21795         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
21796         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
21797         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
21798         dependent units are Preelaborate.
21799         (Initialize): Call Interrupt_Managemeent.Initialize and
21800         OS_Primitives.Initialize to ensure proper initialization of this unit.
21801         Remove use of System.Soft_Links
21802         Make this unit Preelaborate.
21803
21804         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
21805         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
21806         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
21807         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
21808         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
21809         s-tratas.ads, s-tasinf.ads: Minor reformatting.
21810         Add pragma Preelaborate, since these packages are suitable for this
21811         categorization.
21812         Update comments.
21813
21814         * s-traent-vms.ads, s-intman-dummy.adb,
21815         s-taprop-dummy.adb: Make this unit Preelaborate.
21816
21817         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
21818         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
21819         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
21820         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
21821         s-intman-solaris.adb, s-intman-irix-athread.adb,
21822         s-intman-irix.adb: Mark this unit Preelaborate.
21823         (Initialize): New procedure.
21824         Update comments.
21825
21826         * s-taspri-linux.ads: Removed.
21827
21828         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
21829         as done by other implementations (e.g. posix).
21830
21831         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
21832         responsible for deferring abort.
21833         Mark this unit Preelaborate.
21834
21835         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
21836         proper initialization of the tasking run-time.
21837
21838         * s-tasdeb.ads: Mark this unit Preelaborate.
21839         (Known_Tasks): Add explicit default value to avoid elaboration code.
21840
21841         * s-inmaop-vms.adb (Elaboration code): Add call to
21842         Interrupt_Management.Initialize since the elaboration code depends on
21843         proper initialization of this package.
21844
21845         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
21846         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
21847         s-osprim-posix.adb: Make this unit Preelaborate.
21848
21849         * a-calend.adb: Add call to OS_Primitives.Initialize
21850
21851         * a-elchha.adb: Update use of Except.Id.Full_Name.
21852         Minor reformatting.
21853         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
21854
21855         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
21856         Move with clauses outside Warnings Off now that dependent units are
21857         Preelaborate.
21858         Use raise xxx with "..."; Ada 2005 form.
21859
21860         * a-taside.ads, a-taside.adb:
21861         Remove some dependencies, to make it easier to make this unit truly
21862         Preelaborate.
21863         Rewrite some code to be conformant with Preelaborate rules.
21864
21865         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
21866         marked Preelaborate in the future.
21867
21868         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
21869         these units Preelaborate.
21870
21871         * s-exctab.adb: Update use of Except.Id.Full_Name.
21872
21873         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
21874         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
21875         Set_Exc_Stack_Addr): Removed, no longer used.
21876         Remove reference to *Machine_State_Addr*, no longer needed.
21877
21878         * s-stalib.ads: Mark this unit as Preelaborate[_05].
21879         (Exception_Data): Full_Name is now a System.Address so that this unit
21880         can be made Preelaborate.
21881         Clean up/simplify code thanks to Full_Name being a System.Address.
21882         Remove obsolete pragma Suppress (All_Checks), no longer needed.
21883
21884         * s-taskin.ads, s-taskin.adb:
21885         Move with clauses outside Warnings Off now that dependent units are
21886         Preelaborate.
21887         Make this unit Preelaborate.
21888         (Initialize): New proceduure, replace elaboration code and makes the
21889         set up of the tasking run-time cleaner.
21890         (Detect_Blocking): Now a function instead of a deferred boolean, to
21891         obey Preelaborate rules.
21892
21893         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
21894         soft links, no longer used.
21895
21896         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
21897         packages are suitable for this categorization.
21898
21899         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
21900         since we compile run-time sources in Ada 2005 mode.
21901         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
21902         avoid having s-taprop*.adb depend on s-soflin and to avoid code
21903         duplication.
21904         Remove reference to *Machine_State_Addr*, no longer needed.
21905
21906 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
21907
21908         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
21909         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21910         Remove reference to System.Exceptions.
21911
21912         * s-mastop-x86.adb: Removed, no longer used.
21913
21914         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
21915
21916         * a-excach.adb: Minor reformatting.
21917
21918         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
21919         instead fix new warnings that were hidden by this change.
21920         (AAA, ZZZ): Removed, replaced by...
21921         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
21922         are used instead of constants, to help make Ada.Exception truly
21923         preelaborate.
21924         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
21925         Raise_Storage_Error): File is now a System.Address, to simplify code.
21926         (Elab code): Removed, no longer used.
21927         (Null_Occurrence): Remove Warnings Off and make this construct
21928         preelaborate.
21929         Remove code related to front-end zero cost exception handling, since
21930         it is no longer used.
21931         Remove -gnatL/-gnatZ switches.
21932
21933         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
21934         Update use of Except.Msg.
21935
21936         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
21937         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
21938         to front-end zero cost exception handling, since it is no longer used.
21939         Remove -gnatL/-gnatZ switches.
21940
21941         * lib-writ.ads: Minor reformatting
21942         Remove doc of UX
21943
21944         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
21945
21946         * Make-lang.in: Remove references to s-except.ads
21947
21948         * s-except.ads: Removed, no longer used.
21949
21950         * s-mastop.ads, s-mastop.adb:
21951         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21952         Remove reference to System.Exceptions.
21953
21954         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
21955         switch-b.adb: Remove code related to front-end zero cost exception
21956         handling, since it is no longer used.
21957         Remove -gnatL/-gnatZ switches.
21958
21959 2005-09-01  Robert Dewar  <dewar@adacore.com>
21960             Gary Dismukes  <dismukes@adacore.com>
21961             Javier Miranda  <miranda@adacore.com>
21962
21963         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
21964         type by valid test and generate warning.
21965         (Tagged_Membership): Generate call to the run-time
21966         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
21967         Change formal name Subtype_Mark to Result_Definition in several calls to
21968         Make_Function_Specification.
21969         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
21970         check for proper accessibility of the operand of a class-wide allocator.
21971         The check can be left out if checks are suppressed or if the expression
21972         has a specific tagged type whose level is known to be safe.
21973
21974         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
21975         generates the run-time check associated with null-excluding entities.
21976         (Expand_N_Return_Statement): Add tests to determine if the accessibility
21977         check on the level of the return expression of a class-wide function
21978         can be elided. The check usually isn't needed if the expression has a
21979         specific type (unless it's a conversion or a formal parameter). Also
21980         add a test for whether accessibility checks are suppressed. Augment
21981         the comments to describe the conditions for performing the check.
21982
21983 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
21984             Javier Miranda  <miranda@adacore.com>
21985             Gary Dismukes  <dismukes@adacore.com>
21986             Ed Schonberg  <schonberg@adacore.com>
21987
21988         * a-tags.adb (IW_Membership): Give support to
21989         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
21990         subprogram has been extended to look for the tag in the ancestors tag
21991         table.
21992         Update the structure of the GNAT Dispatch Table to reflect the
21993         additional two tables used in dispatching selects.
21994         Introduce appropriate array types and record components in
21995         Type_Specific_Data to reflect the two tables.
21996         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
21997         the TSD of a tag, indexed by position.
21998         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
21999         operation kind in the TSD of a tag, indexed by position.
22000
22001         * a-tags.ads: Introduce an enumeration type to capture different
22002         primitive operation kinds. Define a constant reflecting the number of
22003         predefined primitive operations.
22004         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
22005         of an entry wrapper.
22006         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
22007         callable entity of a primitive operation.
22008
22009         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
22010         primitive operations used in dispatching selects for limited
22011         interfaces, limited tagged, task and protected types what implement a
22012         limited interface.
22013         (Freeze_Type): Generate the bodies of the primitive operations used in
22014         dispatching selects for limited tagged, task and protected types that
22015         implement a limited interface. Generate statements to populate the two
22016         auxiliary tables used for dispatching in select statements.
22017         (Freeze_Record_Type): Add call to initialize the dispatch table entries
22018         associated with predefined interface primitive operations.
22019         (Build_Dcheck_Function): Change Set_Subtype_Mark to
22020         Set_Result_Definition.
22021         (Build_Variant_Record_Equality): Change Subtype_Mark to
22022         Result_Definition.
22023         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
22024         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
22025         (Build_Assignment): Simplify the code that adds the run-time-check.
22026         (Expand_N_Object_Declaration): Code cleanup.
22027
22028         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
22029         entries when there is a protected type that implements a limited
22030         interface.
22031
22032         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
22033         common routines used in expansion of dispatching selects.
22034         (Add_Private_Declarations): Select the appropriate protection type when
22035         there is a protected type that implements a limited interface.
22036         (Build_Parameter_Block): Generate a wrapped parameter block.
22037         (Build_Protected_Subprogram_Body): Select the appropriate type for
22038         locking entries when there is a protected type that implements a
22039         limited interface.
22040         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
22041         classified as entry wrappers.
22042         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
22043         asynchronous selects.
22044         (Expand_N_Conditional_Entry_Call): Add support for expansion of
22045         dispatching conditional selects.
22046         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
22047         protection when there is a protected type that implements limited
22048         interfaces.
22049         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
22050         timed selects.
22051         (Extract_Dispatching_Call): Extract the entity of the name of a
22052         dispatching call, the object parameter, actual parameters and
22053         corresponding formals.
22054         (Make_Initialize_Protection): Correct logic of protection initialization
22055         when there is a protected type that implements a limited interface.
22056         (Parameter_Block_Pack): Populate a wrapped parameter block with the
22057         values of actual parameters.
22058         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
22059         block and assign them to the original actual parameters.
22060
22061         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
22062         (Build_Protected_Sub_Specification): Change the type and name of the
22063         last formal to account for the increased variety of protection modes.
22064
22065         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
22066         entities. Used to save the value of the Is_Hidden attribute when the
22067         limited-view is installed.
22068         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
22069         the attribute of procedures classified as entry wrappers.
22070         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
22071         entity of a primitive wrapper.
22072         (Write_Entity_Flags): Output the name and value of the
22073         Is_Primitive_Wrapper attribute.
22074         (Write_Field27_Name): Output the name and entity of the field Wrapped_
22075         Entity.
22076         (Underlying_Type): If we have an incomplete entity that comes from
22077         the limited view then we return the Underlying_Type of its non-limited
22078         view if it is already available.
22079         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
22080         including operators.
22081         (Write_Field26_Name): Add entry for Overridden_Operation
22082         (Overridden_Operation): New attribute of functions and procedures.
22083
22084         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
22085         predefined position in the dispatch table for the primitive operations
22086         used in dispatching selects.
22087         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
22088         predefined primitive operations and replace it with
22089         Default_Prim_Op_Count.
22090         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
22091         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
22092         the names of the generated primitive operations used in dispatching
22093         selects.
22094         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
22095         case of abstract interface types. They will be inherit by the objects
22096         implementing the interface.
22097         (Make_DT): There is no need to inherit the dispatch table of the
22098         ancestor interface for the elaboration of abstract interface types.
22099         The dispatch table will be inherited by the object implementing the
22100         interface.
22101         (Copy_Secondary_DTs): Add documentation.
22102         (Validate_Position): Improve this static check in case of
22103         aliased subprograms because aliased subprograms must have
22104         the same position.
22105         (Init_Predefined_Interface_Primitives): New subprogram that initializes
22106         the entries associated with predefined primitives of all the secondary
22107         dispatch tables.
22108         (Build_Anonymous_Access_Type): Removed.
22109         (Expand_Interface_Actuals): With the previous cleanup there is no need
22110         to build an anonymous access type. This allows further cleanup in the
22111         code generated by the expander.
22112         (Expand_Interface_Conversion): If the actual is an access type then
22113         build an internal function to handle the displacement. If the actual
22114         is null this function returns null because no displacement is
22115         required; otherwise performs a type conversion that will be
22116         expanded in the code that returns the value of the displaced actual.
22117         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
22118         conversions that have no effect in the generated code because no
22119         displacement is required. Code cleanup; use local variables to
22120         avoid repeated calls to the subprogram directly_designated_type().
22121
22122         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
22123         Classify the primitive operations used in dispatching selects as
22124         predefined.
22125         (Implements_Limited_Interface): Determine whether some type either
22126         directly implements a limited interface or extends a type that
22127         implements a limited interface.
22128         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
22129         (Expand_Subtype_From_Expr): Do not build actual subtype if the
22130         expression is limited.
22131         (Find_Interface_Tag): Add code to handle class-wide types and
22132         entities from the limited-view.
22133
22134         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
22135         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
22136         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
22137         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
22138         Set_Prim_Op_Kind.
22139
22140         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
22141         of procedure name or prefix that appears as a trigger in a triggering
22142         alternative.
22143
22144         * uintp.ads: Introduce constants Uint_11 and Uint_13.
22145
22146 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22147
22148         * s-tataat.adb, a-tasatt.adb:
22149         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
22150
22151         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
22152         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
22153         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
22154         longer used.
22155
22156 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22157             Jose Ruiz  <ruiz@adacore.com>
22158
22159         * s-taprop-vxworks.adb:
22160         Move with clauses outside Warnings Off now that dependent units are
22161         Preelaborate.
22162         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
22163         initialization of this unit.
22164         (Specific): Add new procedures Initialize and Delete so that this
22165         package can be used for VxWorks 5.x and 6.x
22166         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
22167         differences between VxWorks 5.x and 6.x
22168         Minor reformatting.
22169         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
22170         caller.
22171         Use only Preelaborate-compatible constructs.
22172
22173         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
22174         Primitives.Operations.
22175         (Delete, Initialize): New procedures.
22176
22177         * s-osinte-vxworks.adb: Body used to handle differences between
22178         VxWorks 5.x and 6.x
22179         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
22180
22181         * s-osinte-vxworks.ads: Minor reformatting.
22182         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
22183         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
22184         and 6.
22185         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
22186         between Vxworks 5 and 6.
22187         (taskLock, taskUnlock): Removeed, no longer used.
22188
22189         * adaint.c: The wait.h header is not located in the sys directory on
22190         VxWorks when using RTPs.
22191         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
22192         using RTPs.
22193         (__gnat_dup): dup is available on Vxworks when using RTPs.
22194         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
22195
22196         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
22197
22198         * expect.c: The wait.h header is not located in the sys directory on
22199         VxWorks when using RTPs.
22200
22201 2005-09-01  Thomas Quinot  <quinot@adacore.com>
22202
22203         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
22204
22205         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
22206
22207         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
22208         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22209         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
22210         g-soccon-freebsd.ads: Add new constants:
22211          IP_MULTICAST_IF
22212          SO_RCVTIMEO/SO_SNDTIMEO
22213          IOV_MAX
22214
22215         * gen-soccon.c:
22216         Move all target-specific file inclusions and macro definitions to
22217         gsocket.h, in order to ensure that any C code in socket.c will see a
22218         set of constants that is consistent with the contents of g-soccon.ads.
22219
22220         * gsocket.h: Code imported from gen-soccon.c:
22221         Move all target-specific file inclusions and macro definitions to
22222         gsocket.h, in order to ensure that any C code in socket.c will see a set
22223         of constants that is consistent with the contents of g-soccon.ads.
22224         This change also makes gen-soccon self-contained (removing dependencies
22225         upon GCC internal headers).
22226
22227         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
22228         iovecs at a time.
22229         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
22230
22231         * socket.c: Minor reformatting.
22232
22233 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22234             Thomas Quinot  <quinot@adacore.com>
22235
22236         * fname-sf.adb, mlib-tgt.ads,
22237         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
22238         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
22239         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
22240         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
22241         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
22242         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
22243         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
22244         makegpr.adb: Remove redundant use_clauses.
22245
22246 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22247
22248         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
22249         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
22250         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
22251         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
22252         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
22253         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
22254         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
22255         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
22256         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22257         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
22258         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
22259         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
22260         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
22261         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
22262         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
22263         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
22264         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22265         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22266         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
22267         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
22268         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
22269         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
22270         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
22271         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
22272         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
22273         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
22274         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
22275         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
22276         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
22277         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
22278         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
22279         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
22280         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
22281         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
22282         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
22283         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
22284         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
22285         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
22286         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
22287         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
22288         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
22289         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
22290         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
22291         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
22292         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
22293         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
22294         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
22295         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
22296         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
22297         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
22298         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
22299         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
22300         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
22301         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
22302         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
22303         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
22304         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
22305         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
22306         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
22307         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
22308         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
22309         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
22310         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
22311         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
22312         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
22313         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
22314         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
22315         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
22316         and always use the no parameter form for consistency.
22317
22318         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
22319
22320 2005-09-01  Robert Dewar  <dewar@adacore.com>
22321
22322         * binde.adb: Minor reformatting
22323         (Find_Elab_Order): Output warning if -p used with static elab order
22324
22325 2005-09-01  Robert Dewar  <dewar@adacore.com>
22326
22327         * checks.adb (Check_Needed): New procedure, deals with removing checks
22328         based on analysis of short-circuited forms. Also generates warnings for
22329         improper use of non-short-circuited forms.
22330         Code clean ups.
22331
22332 2005-09-01  Robert Dewar  <dewar@adacore.com>
22333
22334         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
22335         with 'Valid tests.
22336
22337 2005-09-01  Robert Dewar  <dewar@adacore.com>
22338
22339         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
22340         spec.
22341         Implement new insertion char < (conditional warning)
22342         * errutil.adb, erroutc.adb: Implement new insertion char <
22343         (conditional warning).
22344         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
22345         (Error_Msg_Warn): New variable for < insertion char.
22346         * prj-nmsc.adb: Implement new errout insertion char < (conditional
22347         warning).
22348         (Check_For_Source): Change value of Source_Id only after the current
22349         source has been dealt with.
22350
22351 2005-09-01  Robert Dewar  <dewar@adacore.com>
22352             Doug Rupp  <rupp@adacore.com>
22353
22354         * exp_attr.adb: Handle vax fpt for 'Valid attribute
22355         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
22356         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
22357         (Valid_D, Valid_F, Valid_G): New functions
22358
22359 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22360             Hristian Kirtchev  <kirtchev@adacore.com>
22361             Javier Miranda  <miranda@adacore.com>
22362
22363         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
22364         from object notation, the original node is unanalyzed and carries no
22365         semantic information, so that accessiblity checks must be performed on
22366         the type of the actual itself.
22367         (Expand_N_Subprogram_Declaration): Change last actual parameter for
22368         compatibility with Build_Protected_Sub_Specification.
22369         (Check_Overriding_Inherited_Interfaces): Add suport to handle
22370         overloaded primitives.
22371         (Register_Interface_DT_Entry): Use the new name of the formal
22372         the the calls to Expand_Interface_Thunk
22373
22374         * exp_dbug.ads: Augment comments on encoding of protected types to
22375         include the generation of dispatching subprograms when the type
22376         implements at least one interface.
22377
22378         * lib.ads: Extend information in Load_Stack to include whether a given
22379         load comes from a Limited_With_Clause.
22380
22381         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
22382         whether a potential circularity is harmless, because it includes units
22383         loaded through a limited_with clause. Extends previous treatment which
22384         did not handle properly arbitrary combinations of limited and
22385         non-limited clauses.
22386
22387 2005-09-01  Nicolas Setton  <setton@adacore.com>
22388
22389         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
22390         to be encoded as typ___XBLU_lowerbound__upperbound instead of
22391         typ___XB_lowerbound__upperbound.
22392
22393 2005-09-01  Thomas Quinot  <quinot@adacore.com>
22394
22395         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
22396         dummy access formal for RACW/RAS TypeCode TSS.
22397         (Build_TypeCode_Call): Do not generate dummy null access actual for
22398         calls to the TypeCode TSS.
22399
22400 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22401
22402         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
22403         fully qualified name, to distinguish instances with the same local name.
22404
22405         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
22406         fully qualified.
22407
22408 2005-09-01  Robert Dewar  <dewar@adacore.com>
22409
22410         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
22411         packed arrays.
22412
22413 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
22414
22415         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
22416         (Free): New deallocation procedure for filter elements
22417         (Close): Deallocate any existing filter for the concerned connection
22418
22419 2005-09-01  Laurent Pautet  <pautet@adacore.com>
22420
22421         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
22422         position set is provided, we compute one in order to reduce the maximum
22423         length of the keys.  This computation first selects a character
22424         position between 1 and the minimum length of the keys in order to
22425         avoid reducing one of the keys to an empty string.
22426         (Initialize, Compute): When the ratio V to K is too low, the algorithm
22427         does not converge. The initialization procedure now comes with a
22428         maximum number of iterations such that when exceeded, an exception is
22429         raised in Compute. The user can initialize this ratio to another value
22430         and try again
22431         Reformating and updated headers.
22432
22433 2005-09-01  Javier Miranda  <miranda@adacore.com>
22434
22435         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
22436         that given an entity T creates and returns an Itype that duplicates the
22437         contents of T. The returned Itype has the null-exclusion
22438         attribute set to True, and its Etype attribute references T
22439         to keep the association between the two entities.
22440         Update copyright notice
22441
22442         * sem_aggr.adb (Check_Can_Never_Be_Null,
22443         Aggregate_Constraint_Checks, Resolve_Aggregate,
22444         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
22445
22446         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
22447
22448 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
22449             Robert Dewar  <dewar@adacore.com>
22450             Hristian Kirtchev  <kirtchev@adacore.com>
22451
22452         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
22453         Result_Definition.
22454
22455         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
22456         function specs.
22457         Call Set_Result_Definition instead of Set_Subtype_Mark.
22458         (P_Subprogram_Specification): Add parsing of anonymous access result
22459         plus null exclusions. Call Set_Result_Definition instead of
22460         Set_Subtype_Mark.
22461
22462         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22463         (P_Access_Type_Definition): Add parsing for an anonymous access result
22464         subtype, plus parsing for null exclusions. Call Set_Result_Definition
22465         instead of Set_Subtype_Mark.
22466
22467         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22468         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
22469         (Result_Definition): New function for N_Function_Specifications.
22470         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
22471         N_Function_Specification.
22472         (Set_Null_Exclusion_Present): Allow this flag for
22473         N_Function_Specification.
22474         (Set_Result_Definition): New procedure for N_Function_Specifications.
22475         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
22476         and N_Function_Specification.
22477
22478         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
22479         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
22480         Add support for LIMITED NEW for Ada 2005 AI-419
22481         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
22482         syntax for anonymous access results.
22483         Replace Subtype_Mark field by Result_Definition in
22484         N_Function_Specification and N_Access_Definition specs.
22485         Add Null_Exclusion_Present to spec of N_Function_Specification.
22486         (Result_Definition): New function for N_Function_Specification and
22487         N_Access_Function_Definition.
22488         (Set_Result_Definition): New procedure for N_Function_Specification and
22489         N_Access_Function_Definition.
22490
22491         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
22492         Result_Definition for cases of N_Access_Function_Definition and
22493         N_Function_Specification.
22494         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
22495
22496 2005-09-01  Vincent Celier  <celier@adacore.com>
22497
22498         * lib-writ.adb: Update Copyright notice
22499         (Write_With_Lines): On platforms where file names are case-insensitive,
22500         record the file names in lower case.
22501         (Write_ALI): For D lines, on platforms where file names are
22502         case-insensitive, record the file names in lower case.
22503
22504 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22505             Emmanuel Briot  <briot@adacore.com>
22506
22507         * lib-xref.adb (Output_Overridden_Op): Display information on
22508         overridden operation.
22509
22510         * lib-xref.ads: Add documentation on overridden operations.
22511
22512         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
22513         information.
22514
22515         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
22516         overriding entity information.
22517
22518 2005-09-01  Vincent Celier  <celier@adacore.com>
22519
22520         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
22521         including those that are inherited.
22522
22523 2005-09-01  Robert Dewar  <dewar@adacore.com>
22524
22525         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
22526
22527         * par-prag.adb: Implement new pragma Debug_Policy
22528
22529         * sem_prag.adb Implement new pragma Debug_Policy
22530         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
22531         Component_Size attribute specification. Give warning for ignored pragma
22532         Pack.
22533
22534         * snames.h, snames.ads, snames.adb: Introduce entries in
22535         Preset_Names for Name_Disp_Asynchronous_Select,
22536         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
22537         Name_Disp_Timed_Select.
22538         New pragma Debug_Policy
22539
22540         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
22541         explicitly.
22542         Switch -gnata also sets Debug_Pragmas_Enabled
22543
22544         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
22545         handle an explicit -gnata when compiling predefined files.
22546
22547 2005-09-01  Vincent Celier  <celier@adacore.com>
22548
22549         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
22550         directories of projects that have no Ada sources.
22551
22552 2005-09-01  Robert Dewar  <dewar@adacore.com>
22553
22554         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
22555         (makes a difference for wide characters)
22556
22557         * widechar.adb, widechar.ads:
22558         Add Wide_Char_Byte_Count feature to count chars vs bytes
22559
22560 2005-09-01  Thomas Quinot  <quinot@adacore.com>
22561             Ed Schonberg  <schonberg@adacore.com>
22562             Robert Dewar  <dewar@adacore.com>
22563
22564         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
22565         'Address attribute reference with an overloaded prefix, use the
22566         location of the prefix (not the location of the attribute reference) as
22567         the error location.
22568         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
22569         a function renaming thereof, is a valid prefix for 'Size (where it is
22570         intepreted as a function call).
22571         (Statically_Denotes_Entity): New predicate to determine whether the
22572         prefix of an array attribute can be considered static.
22573
22574         PR ada/9087
22575         (Eval_Attr): Fix failure to evaluate Component_Size for
22576         unconstrained arrays (resulted in wrong value in packed case, since
22577         back end cannot handle this case)
22578
22579 2005-09-01  Robert Dewar  <dewar@adacore.com>
22580
22581         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
22582         error msgs for most common cases.
22583         Use new errout insertion char < (conditional warning)
22584
22585 2005-09-01  Javier Miranda  <miranda@adacore.com>
22586             Ed Schonberg  <schonberg@adacore.com>
22587
22588         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
22589         become local to the whole package.
22590         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
22591         the package was already analyzed the new algorithm "replaces" the
22592         real entities by the shadow ones. This is required to ensure that
22593         the order of these entities in the homonym chains does not change;
22594         otherwise we can have undefined references at linking time because
22595         in case of conflicts the external name of the entities will have
22596         a suffix that depends on the order of the entities in the chain.
22597         (Remove_Limited_With_Clause): Complementary code that completes the
22598         new algorithm and replaces the shadow entities by the real ones.
22599         (Install_Limited_Withed_Unit): When unchaining entities before the
22600         installation of the shadow entities, only regular entities of the
22601         public part must be taken into account. This is required to
22602         keep this routine in synch with the work done by Remove_Limited_
22603         With_Clause
22604         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
22605         even if unit is analyzed, because the analysis of the unit is
22606         idempotent in any case, and the limited view of the unit may have to
22607         be installed for proper visibility.
22608         (Expand_Limited_With_Clause): Even if the unit in the implicit
22609         with_clause has been analyzed already, a limited view of the package
22610         must be built for the current context, if it does not exist yet.
22611
22612 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22613             Javier Miranda  <miranda@adacore.com>
22614             Gary Dismukes  <dismukes@adacore.com>
22615
22616         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
22617         defining entity for the instance body, make a new defining identifier
22618         rather than copying the entity of the spec, to prevent accidental
22619         sharing of the entity list.
22620         (Check_Private_View): When exchanging views of private types, build the
22621         list of exchanged views as a stack, to ensure that on exit the exchanges
22622         are undone in the proper order.
22623         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
22624         Restore the compilation environment in case of instantiation_error.
22625         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
22626         for an anonymous access result.
22627         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
22628         (Formal_Entity): Handle properly the case of a formal package that
22629         denotes a generic package renaming.
22630
22631 2005-09-01  Thomas Quinot  <quinot@adacore.com>
22632
22633         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
22634         clause if the array aggregate is surrounded by parentheses.
22635
22636 2005-09-01  Cyrille Comar  <comar@adacore.com>
22637             Gary Dismukes  <dismukes@adacore.com>
22638             Ed Schonberg  <schonberg@adacore.com>
22639             Javier Miranda  <miranda@adacore.com>
22640
22641         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
22642         underlying type
22643         to check if a type is Constrained in cases related to code generation
22644         (rather than semantic checking) since otherwise we do not generate
22645         similar code for mutable private types depending if their
22646         discriminants are visible or not.
22647         (Check_Abstract_Overriding): Do not complain about failure to override
22648         the primitive operations used in dispatching selects since they will
22649         always be overriden at the freeze point of the type.
22650         (Access_Definition): Separate out handling for resetting the scope
22651         of an anonymous access function result type. Retrieve the scope
22652         of the associated function rather than using Current_Scope, which
22653         does not have a consistent value (depends on whether we're in the
22654         middle of analyzing formal parameters). Add ??? comment about
22655         finding a cleaner way to handle the special cases of scope setting.
22656         (Process_Incomplete_Dependents): A protected operation is never a
22657         dispatching operation (only its wrapper may be).
22658         (Build_Derived_Record_Type): In case of tagged private types that
22659         implement interfaces add derivation of predefined primitive
22660         operations.
22661         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
22662         by two parameters that are used in case of derivation from abstract
22663         interface types: No_Predefined_Prims is used to avoid the derivation
22664         of predefined primitives from the interface, and Predefined
22665         Prims_Only is used to complete the derivation predefined primitives
22666         in case of private tagged types implementing interfaces.
22667         Fix typo in comments
22668         (Find_Interface_In_Descendant): Protect the frontend against
22669         wrong code with large circularity chains.
22670         (Is_Private_Overriding): Add support for entities overriding interface
22671         subprograms. The test failed because Entities associated with overriden
22672         interface subprograms are always marked as hidden (and used to build
22673         the secondary dispatch table); in this case the overriden entity is
22674         available through the field abstract_interface_alias (cf. override_
22675         dispatching_operation)
22676         (Access_Definition): Set the scope of the type to Current_Scope for the
22677         case of a function with an anonymous access result type.
22678         (Access_Subprogram_Declaration): Handle creation of the type entity for
22679         an access-to-function type with an anonymous access result.
22680         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
22681         in handling for N_Access_Function_Definition.
22682         (Analyze_Subtype_Declaration): Modify the text of error message.
22683         (Derived_Type_Declaration): Modify the text of error message.
22684         (Process_Subtype): Modify the text of error message plus cleanup
22685         of one redundant error message.
22686         (Analyze_Component_Declaration): Code cleanup.
22687         (Analyze_Object_Declaration): Code cleanup.
22688         (Analyze_Subtype_Declaration): Propagate the null-exclusion
22689         attribute in case of access types. Code cleanup.
22690         (Array_Type_Declaration): Code cleanup.
22691         (Process_Discriminants): Create the new null-excluding itype
22692         if required. Code cleanup.
22693         (Process_Subtype): Create the new null-excluding itype if
22694         required. Code cleanup.
22695         (Build_Derived_Record_Type): Code cleanup to avoid calling
22696         twice the subprogram derive_subprograms in case of private
22697         types that implement interfaces. In this particular case the
22698         subprogram Complete_Subprograms_Derivation already does the
22699         job associated with the second call.
22700
22701         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
22702         conversion to the full view when generating an operation for a
22703         discriminant whose type may currently be private.
22704
22705 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22706             Javier Miranda  <miranda@adacore.com>
22707
22708         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
22709         V (Obj.F), the rewriting does not involve the indexed component, but
22710         only the selected component itself.
22711         Do not apply the transformation if the analyzed node is an actual of a
22712         call to another subprogram.
22713         (Complete_Object_Operation): Retain the entity of the
22714         dispatching operation in the selector of the rewritten node. The
22715         entity will be used in the expansion of dispatching selects.
22716         (Analyze_One_Call): Improve location of the error message associated
22717         with interface.
22718         (Analyze_Selected_Component): No need to resolve prefix when it is a
22719         function call, resolution is done when parent node is resolved, as
22720         usual.
22721         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
22722         when attempting to resolve a call transformed from its object notation.
22723         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
22724         of the argument list for each interpretation of the operation.
22725         (Try_Object_Operation): The designated type of an access parameter may
22726         be an incomplete type obtained through a limited_with clause, in which
22727         case the primitive operations of the type are retrieved from its full
22728         view.
22729         (Analyze_Call): If this is an indirect call, and the return type of the
22730         access_to_subprogram is incomplete, use its full view if available.
22731
22732 2005-09-01  Javier Miranda  <miranda@adacore.com>
22733             Gary Dismukes  <dismukes@adacore.com>
22734
22735         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
22736         access types the null-exclusion and access-to-constant attributes must
22737         also match.
22738         (Analyze_Return_Statement): When the result type is an anonymous access
22739         type, apply a conversion of the return expression to the access type
22740         to ensure that appropriate accessibility checks are performed.
22741         (Analyze_Return_Type): For the case of an anonymous access result type,
22742         generate the Itype and set Is_Local_Anonymous_Access on the type.
22743         Add ??? placeholder for check to disallow returning a limited object
22744         in Ada 2005 unless it's an aggregate or a result of a function call.
22745         Change calls from Subtype_Mark to Result_Definition.
22746         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
22747         Result_Definition in call to Make_Function_Specification.
22748         (Build_Body_To_Inline): Change Set_Subtype_Mark to
22749         Set_Result_Definition.
22750         (Make_Inequality_Operator): Change formal Subtype_Mark to
22751         Result_Definition in call to Make_Function_Specification.
22752         (Process_Formals): Create the new null-excluding itype if required.
22753         (New_Overloaded_Entity): For an entity overriding an interface primitive
22754         check if the entity also covers other abstract subprograms in the same
22755         scope. This is required to handle the general case, that is, overriding
22756         other interface primitives and overriding abstract subprograms inherited
22757         from some abstract ancestor type.
22758         (New_Overloaded_Entity): For an overriding entity that comes from
22759         source, note the operation that it overrides.
22760         (Check_Conformance, Type_Conformant): Addition of one new formal
22761         to skip controlling formals in the analysis. This is used to
22762         handle overloading of abstract interfaces.
22763         (Base_Types_Match): Add missing case for types imported from
22764         limited-with clauses
22765         (New_Overloaded_Entity): Add barrier to protect the use of
22766         the "alias" attribute.
22767
22768 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22769
22770         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
22771         verify that the procedure and the entry are mode conformant.
22772         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
22773         as a different operator, which is often a cut-and-paste error.
22774
22775 2005-09-01  Javier Miranda  <miranda@adacore.com>
22776             Ed Schonberg  <schonberg@adacore.com>
22777
22778         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
22779         used in controlling parameters exclude null because it is necessary to
22780         read the tag to dispatch, and null has no tag.
22781         (Override_Dispatching_Operation): If the previous operation is inherited
22782         from an interface, it becomes hidden  and does not participate in later
22783         name resolution.
22784
22785 2005-09-01  Javier Miranda  <miranda@adacore.com>
22786             Ed Schonberg  <schonberg@adacore.com>
22787             Gary Dismukes  <dismukes@adacore.com>
22788
22789         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
22790         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
22791         the expander will generate the corresponding run-time check to evaluate
22792         the expression.
22793         (Resolve_Call): Check for legal type of procedure name or prefix that
22794         appears as a trigger in a triggering alternative.
22795         (Valid_Conversion): If expression is ambiguous and the context involves
22796         an extension of System, remove System.Address interpretations.
22797         (Resolve_Qualified_Expression): Reject the case of a specific-type
22798         qualification applied to a class-wide argument. Enhance comment
22799         to explain checking of Original_Node.
22800         (Resolve_Type_Conversion): The location of the error message was not
22801         general enough to handle the general case and hence it has been removed.
22802         In addition, this patch improves the text of the message.
22803         (Resolve_Type_Conversion): Add missing support for access to interface
22804         types.
22805         (Resolve_Type_Conversion): If the target is a class-wide interface type,
22806         do not expand if the expression is the actual in a call, because proper
22807         expansion will take place when the call itself is expanded.
22808         (Resolve_Allocator): If the context is an unchecked conversion, the
22809         allocator inherits its storage pool, if any, from the target type of
22810         the conversion.
22811
22812 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22813             Javier Miranda  <miranda@adacore.com>
22814
22815         * sem_type.adb (Add_One_Interp): If a candidate operation is an
22816         inherited interface operation that has an implementation, use the
22817         implementation to avoid spurious ambiguities.
22818         (Interface_Present_In_Ancestor): In case of concurrent types we can't
22819         use the Corresponding_Record_Typ attribute to look for the interface
22820         because it is set by the expander (and hence it is not always
22821         available). For this reason we traverse the list of interfaces
22822         (available in the parent of the concurrent type).
22823         (Interface_Present_In_Ancestor): Handle entities from the limited view
22824
22825 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22826
22827         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
22828         from the list of required components.
22829         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
22830         primitive procedure of a limited interface with a controlling first
22831         parameter.
22832         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
22833         of an entry.
22834         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
22835         capture if it is generated in the second operand of a short-circuit
22836         operation.
22837         Do not capture values for variables with address clauses.
22838         (Is_Object_Reference): Treat a function call as an object reference only
22839         if its type is not Standard_Void_Type.
22840
22841 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
22842
22843         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
22844         to a variable that is statically known to be constant.
22845
22846 2005-09-01  Geert Bosch  <bosch@adacore.com>
22847             Robert Dewar  <dewar@adacore.com>
22848
22849         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
22850         (VAXGF_Safe_First): Idem.
22851
22852 2005-09-01  Robert Dewar  <dewar@adacore.com>
22853             Arnaud Charlet  <charlet@adacore.com>
22854
22855         * g-dirope.ads: Minor reformatting
22856         Document that bounds of result of Base_Name match the input index
22857         positions.
22858         Add documentation on environment variable syntax for Expand_Path
22859
22860         * gnat_ugn.texi: Update documentation to include mention of -m switches
22861         Document new treatment of wide characters in max line length
22862         style check.
22863         Remove -gnatL/-gnatZ switches, no longer used.
22864         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
22865         of -gnata switch.
22866
22867         * gnat_rm.texi: Add doc for two argument form of pragma
22868         Float_Representation.
22869         Add documentation for pragma No_Strict_Aliasing
22870         Add note that explicit component clause overrides pragma Pack.
22871         Add documentation of pragma Debug_Policy
22872
22873 2005-09-01  Matthew Heaney  <heaney@adacore.com>
22874
22875         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
22876         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
22877         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
22878         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
22879         draft (Draft 13, August 2005) of Ada Amendment 1.
22880
22881 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
22882
22883         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
22884         Note that the platform-specific version of g-soccon.ads for VMS is now
22885         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
22886         really is a package spec).
22887         Replace s-taspri-linux.ads by s-taspri-posix.ads
22888         Remove references to s-mastop-x86.adb
22889
22890         * system-vxworks-xscale.ads: Removed, no longer used.
22891         * s-vxwork-xscale.ads: Removed, no longer used.
22892
22893 2005-09-01  Robert Dewar  <dewar@adacore.com>
22894
22895         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
22896         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
22897         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
22898         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
22899         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
22900         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
22901         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
22902         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
22903         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
22904         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
22905         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
22906         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
22907         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
22908         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
22909         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
22910         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
22911         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
22912         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
22913         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
22914         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
22915         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
22916
22917 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
22918
22919         PR ada/23187
22920         * adaint.c
22921         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
22922
22923 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
22924             Doug Rupp  <rupp@adacore.com>
22925
22926         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
22927         when needed.
22928         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
22929         this code in the GNAT run-time.
22930
22931         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
22932
22933         PR ada/21053
22934         * init.c (__gnat_error_handler [many]): Mark "msg" as const
22935         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
22936
22937         (__gnat_inside_elab_final_code): Moved here from
22938         Standard_Library and only defined for the compiler.
22939         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
22940         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
22941         using RTPs because directly vectored Interrupt routines are not
22942         supported on this configuration.
22943         (getpid): Do not redefine this function on VxWorks when using RTPs
22944         because this primitive is well supported by the RTP libraries.
22945         (copy_msg): Correct the code that checks for buffer overflow.
22946         Discovered during code reading.
22947
22948 2005-08-29  Olivier Hainque  <hainque@adacore.com>
22949
22950         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
22951         a library level mutable variable with an initializer, tell
22952         build_allocator to ignore the initializer's size. It may not be large
22953         enough for all the values that might be assigned to the variable later
22954         on.
22955
22956 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
22957             Eric Botcazou  <ebotcazou@adacore.com>
22958
22959         * trans.c: Protect < in error msg with quote
22960         Replace GCC_ZCX by Back_End_Exceptions.
22961         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
22962         has been sufficiently aligned in the record.
22963
22964 2005-08-15  James E. Wilson  <wilson@specifix.com>
22965
22966         * system-linux-alpha.ads: Change ia64 to alpha.
22967
22968 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
22969
22970         * decl.c, utils.c: Fix comment typos.
22971
22972 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
22973
22974         * decl.c, init.c, initialize.c: Fix comment typos.
22975
22976 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
22977
22978         Make CONSTRUCTOR use VEC to store initializers.
22979         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
22980         CONSTRUCTOR_ELTS.
22981         * trans.c (extract_values): Likewise.
22982         * utils.c (convert, remove_conversions): Likewise.
22983         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
22984         gnat_build_constructor): Likewise.
22985
22986 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
22987
22988         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
22989         DECL_SECTION_NAME.
22990         (compare_field_bitpos): Likewise.
22991
22992 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
22993
22994         * utils.c (create_var_decl): Only set DECL_COMMON on
22995         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
22996         VAR_OR_FUNCTION_DECL_P.
22997
22998 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
22999
23000         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
23001         removed.
23002
23003 2005-07-07  Pascal Obry  <obry@adacore.com>
23004
23005         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
23006         returned type on Windows.
23007
23008         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
23009         routine.
23010
23011         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
23012         exception in this case.
23013         Simplify the code as "Image (Image'Range)" = "Image".
23014
23015 2005-07-07  Vincent Celier  <celier@adacore.com>
23016
23017         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
23018         the destructor/constructor attributes for <lib>final/<lib>init.
23019
23020         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
23021
23022 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
23023
23024         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
23025         type if the parameter is not passed by copy but reference by default.
23026
23027 2005-07-07  Javier Miranda  <miranda@adacore.com>
23028
23029         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
23030         Reimplementation of the support for abstract interface types in order
23031         to leave the code more clear and easy to maintain.
23032
23033         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
23034         abstract interface types in order to leave the code clearer and easier
23035         to maintain.
23036
23037         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
23038         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
23039         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
23040         appropriate entry of the secondary dispatch table.
23041         (Make_DT): Add code to inherit the secondary dispatch tables of
23042         the ancestors.
23043
23044         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
23045         implementing both functionalities by means of a common routine, each
23046         routine has its own code.
23047
23048 2005-07-07  Javier Miranda  <miranda@adacore.com>
23049
23050         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
23051
23052         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
23053         types:
23054         --
23055           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23056         --
23057
23058         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
23059         use of tag incomplete types.
23060
23061         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
23062         give support to tagged incomplete types.
23063
23064         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
23065         expression is a discriminant reference and its type is private, as can
23066         happen within a stream operation for a mutable record, use the full
23067         view of the type to resolve the case alternatives.
23068         (Analyze_Assignment): Check wrong dereference of incomplete types.
23069
23070         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
23071         types.
23072
23073         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
23074         incomplete types.
23075
23076         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
23077         N_Incomplete_Type_Declaration nodes.
23078
23079         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
23080         Tag_Present to give support to tagged incomplete types:
23081         --
23082           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23083         --
23084
23085 2005-07-07  Olivier Hainque  <hainque@adacore.com>
23086
23087         PR ada/22301
23088         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
23089         definitions for the Unwind wrappers in the compiler case.
23090
23091 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
23092             Javier Miranda  <miranda@adacore.com>
23093
23094         * par-load.adb (Load): If a child unit is loaded through a limited_with
23095         clause, each parent must be loaded as a limited unit as well.
23096
23097         * sem_ch10.adb (Previous_Withed_Unit): Better name for
23098         Check_Withed_Unit. Return true if there is a previous with_clause for
23099         this unit, whether limited or not.
23100         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
23101         the current unit.
23102         (Is_Visible_Through_Renamings): New local subprogram of install_limited
23103         _withed_unit that checks if some package installed through normal with
23104         clauses has a renaming declaration of package whose limited-view is
23105         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
23106         of the current Draft document for Ada 2005.
23107         (Analyze_Context): Complete the list of compilation units that
23108         are allowed to contain limited-with clauses. It also contains
23109         checks that were previously done by Install_Limited_Context_Clauses.
23110         This makes the code more clear and easy to maintain.
23111         (Expand_Limited_With_Clause) It is now a local subprogram of
23112         Install_Limited_Context_Clauses, and contains the code that adds
23113         the implicit limited-with clauses for parents of child units.
23114         This functionality was prevously done by Analyze_Context.
23115
23116         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
23117         incomplete type.
23118
23119         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
23120         been erroneously named in a limited-with clause of its own context.
23121         In this case the error has been previously notified by Analyze_Context.
23122
23123 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
23124
23125         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
23126         generic package that contains local declarations with the same name.
23127         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
23128
23129 2005-07-07  Bernard Banner  <banner@adacore.com>
23130
23131         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
23132         ia64 platform only on platforms that you the GCC unwind library
23133         rather than the system unwind library.
23134
23135 2005-07-07  Thomas Quinot  <quinot@adacore.com>
23136
23137         * expect.c: Minor reformatting
23138
23139 2005-07-07  Sergey Rybin  <rybin@adacore.com>
23140
23141         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
23142         --no-separate-is
23143
23144         * gnat_ugn.texi: Add description for new gnatpp option
23145         (--no-separate-is)
23146
23147 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23148
23149         * g-expect-vms.adb, g-expect.ads, g-expect.adb
23150         (Get_Command_Output): New subprogram to launch a process and get its
23151         standard output as a string.
23152
23153 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23154             Olivier Hainque  <hainque@adacore.com>
23155
23156         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
23157         fetch a code-range descriptor associated with the machine state. On
23158         failure set the machine state's PC to 0; on success, pass the
23159         descriptor to exc_virtual_unwind.
23160
23161         * init.c (Tru64 section): New function __gnat_set_code_loc.
23162
23163 2005-07-04  Vincent Celier  <celier@adacore.com>
23164
23165         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23166         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23167         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
23168         Remove all auto-initialization code, as this is now done through the
23169         constructor mechanism.
23170
23171         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
23172         __gnat_sals_init_using_constructors): New functions.
23173
23174         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
23175         Linker_Constructor and Linker_Destructor when switch -a is used.
23176
23177         * bindusg.adb: Add line for new switch -a
23178
23179         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
23180         (Gnatbind): When switch -a is used, check if it is allowed
23181
23182         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
23183
23184 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
23185
23186         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
23187         This prevents us from hitting a limitation during the debug info
23188         generation when using stabs.
23189         (Prims_Ptr): Likewise.
23190
23191 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
23192             Ed Schonberg  <schonberg@adacore.com>
23193             Javier Miranda  <miranda@adacore.com>
23194
23195         * checks.adb (Null_Exclusion_Static_Checks): In the case of
23196         N_Object_Declaration, only perform the checks if the Object_Definition
23197         is not an Access_Definition.
23198
23199         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
23200         where the parent of an the access definition is an N_Object_Declaration
23201         when determining the Associated_Node_For_Itype and scope of an
23202         anonymous access-to-subprogram type.
23203
23204         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
23205         Corresponding_Spec on the body created for a null procedure. Add ???
23206         comment. Remove New_Copy_Tree call on body argument to
23207         Set_Body_To_Inline.
23208
23209         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
23210         discriminants, use the type of the actual as well, because the
23211         discriminants may be read by the called subprogram.
23212
23213         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
23214         access type we do not need to handle non-limited views.
23215         (Build_Derived_Record_Type): Additional check to check that in case of
23216         private types, interfaces are only allowed in private extensions.
23217
23218 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23219
23220         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
23221         <Pragma_Linker_Destructor>: Likewise.
23222
23223         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
23224         Pragma_Linker_Destructor.
23225
23226         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
23227         ATTR_LINK_DESTRUCTOR.
23228         (static_ctors, static_dtors): New variables.
23229
23230         * misc.c (gnat_expand_body): Output current function as constructor
23231         and destructor if requested.
23232
23233         * par-prag.adb: Add processing for pragma Linker_Constructor and
23234         Linker_Destructor.
23235
23236         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
23237         extracted from Check_Interrupt_Or_Attach_Handler.
23238         (Check_Interrupt_Or_Attach_Handler): Invoke it.
23239         Implement pragma Linker_Constructor and Linker_Destructor with the
23240         help of Find_Unique_Parameterless_Procedure.
23241         Replace Name_Alias with Name_Target for pragma Linker_Alias.
23242
23243         * snames.h, snames.ads, snames.adb:
23244         Add Name_Linker_Constructor and Name_Linker_Destructor.
23245         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
23246         * snames.adb: Remove Name_Alias.
23247
23248         * trans.c: Include cgraph.h.
23249         (build_global_cdtor): New function.
23250         (Compilation_Unit_to_gnu): Build global constructor and destructor if
23251         needed.
23252         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
23253         of objects too.
23254         (addressable_p) <COMPONENT_REF>: Unconditionally test
23255         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
23256
23257         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
23258         variable if it is external.
23259
23260         (static_ctors, static_dtors): New global variables.
23261         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
23262         <ATTR_LINK_DESTRUCTOR>: Likewise.
23263         (end_subprog_body): Chain function as constructor and destructor
23264         if requested.
23265
23266         * exp_util.adb (Force_Evaluation): Unconditionally invoke
23267         Remove_Side_Effects with Variable_Ref set to true.
23268         (Remove_Side_Effects): Handle scalar types first. Use a renaming
23269         for non-scalar types even if Variable_Ref is true and for class-wide
23270         expressions.
23271
23272 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23273
23274         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
23275         to prevent spurious warnings.
23276
23277 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23278
23279         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
23280         Itypes. Itypes are really unexpected there.
23281         (Build_TypeCode_Function): Generalise special processing for Itypes to
23282         handle the case of numeric implicit base types as well as enumerated
23283         ones.
23284
23285 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23286
23287         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
23288         controlled, indicate the expected type of the dereference that is
23289         created for the call to Deep_Finalize, to prevent spurious errors when
23290         the designated type is private and completed with a derivation from
23291         another private type.
23292
23293 2005-07-04  Vincent Celier  <celier@adacore.com>
23294
23295         * make.adb (Change_To_Object_Directory): When unable to change the
23296         current dir to the object directory, output the full path of the
23297         directory.
23298
23299 2005-07-04  Matthew Gingell  <gingell@adacore.com>
23300
23301         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
23302
23303         * indepsw-linux.adb: Replace by...
23304
23305         * indepsw-gnu.adb: ...this new file
23306
23307 2005-07-04  Vincent Celier  <celier@adacore.com>
23308
23309         * mlib-prj.adb (Auto_Initialize): New constant String
23310         (SALs_Use_Constructors): New Boolean function
23311         (Build_Library): Call gnatbind with Auto_Initialize switch when
23312         SALs_Use_Constructors returns True.
23313
23314         * mlib-tgt.ads: Minor reformatting
23315
23316         * mlib-utl.ads: Minor reformatting
23317
23318         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
23319
23320 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23321
23322         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
23323         single protected declarations can have an interface list.
23324         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
23325         with seriously malformed entry declarations, and lead to compilation
23326         abandoned messages.
23327
23328 2005-07-04  Javier Miranda  <miranda@adacore.com>
23329
23330         * par-load.adb: Load the context items in two rounds.
23331
23332 2005-07-04  Robert Dewar  <dewar@adacore.com>
23333
23334         * scng.adb: Do not consider Mod used as an attribute to be a keyword
23335
23336 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23337             Javier Miranda  <miranda@adacore.com>
23338
23339         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
23340         type extension needs a limited view.
23341         Remove previous restriction on private types available through the
23342         limited-view (only tagged private types were previously allowed).
23343         (Install_Withed_Unit): In the code that implements the
23344         legality rule given in AI-377, exclude a child unit with the name
23345         Standard, because it is a homonym of the Standard environment package.
23346
23347 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23348
23349         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
23350         overloaded function call, carry interpretations from the original tree
23351         to the copy.
23352
23353 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23354
23355         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
23356         types check whether some designated type is a limited view, and use
23357         the non-limited view if available.
23358
23359 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
23360
23361         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
23362         constraint of full view of a private view T1 if present, when T2 is a
23363         discriminated full view.
23364
23365 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23366
23367         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
23368         actual that is a view conversion of a bit packed array reference.
23369
23370 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23371
23372         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
23373         present before checking whether an interface type covers a synchronized
23374         type.
23375
23376 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
23377
23378         * sem_util.adb (Is_Object_Reference): An indexed or selected component
23379         whose prefix is an implicit dereference is an object reference. Removes
23380         spurious errors when compiling with -gnatc.
23381
23382 2005-07-04  Robert Dewar  <dewar@adacore.com>
23383
23384         PR ada/22039
23385         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
23386
23387 2005-07-04  Matthew Gingell  <gingell@adacore.com>
23388
23389         * tracebak.c: Enable tracebacks on ia64 platforms
23390
23391 2005-07-04  Vincent Celier  <celier@adacore.com>
23392
23393         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
23394         the GNAT BIND command, as gnatbind accepts multiples ALI files with
23395         the -L or -n switches.
23396
23397 2005-07-04  Vincent Celier  <celier@adacore.com>
23398
23399         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
23400         correctly computed and the main project data is not modified while
23401         doing so.
23402         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
23403         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
23404         c++linker as this does not work on some platforms.
23405
23406 2005-07-04  Matthew Heaney  <heaney@adacore.com>
23407
23408         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
23409         was changed.
23410         * a-coinve.adb: Perform constraint checks explicitly.
23411
23412 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23413             Thomas Quinot  <quinot@adacore.com>
23414
23415         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
23416         new target gen-soccon.
23417
23418 2005-07-04  Robert Dewar  <dewar@adacore.com>
23419
23420         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
23421
23422 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23423
23424         * g-socket.ads (Check_Selector): Minor rewording of comment.
23425
23426 2005-07-04  Vincent Celier  <celier@adacore.com>
23427
23428         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
23429
23430 2005-07-04  Thomas Quinot  <quinot@adacore.com>
23431
23432         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
23433
23434 2005-07-04  Sergey Rybin  <rybin@adacore.com>
23435
23436         * gnat_ugn.texi: Add description of --eol gnatpp option
23437
23438 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
23439             Thomas Quinot  <quinot@adacore.com>
23440
23441         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
23442         if the user wants all calls of a subprogram to be flagged,
23443         independently of whether they are made from within the same unit or
23444         another unit.
23445         Mention restriction for pragma Linker_Alias on some platforms.
23446         Document pragma Linker_Constructor and Linker_Destructor.
23447         Rewrite documentation of Weak_External, Linker_Section and
23448         Linker_Alias pragmas.
23449
23450 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
23451
23452         * s-stausa.ads, s-stausa.adb: New files.
23453
23454 2005-06-30  Kelley Cook
23455
23456         * all files:  Update FSF address in copyright headers.
23457         * gen-soccon.co (main): Output new FSF address in generated files.
23458
23459 2005-06-28  Paul Brook  <paul@codesourcery.com>
23460
23461         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
23462
23463 2005-06-14  Olivier Hainque  <hainque@adacore.com>
23464             Eric Botcazou  <ebotcazou@adacore.com>
23465
23466         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
23467         exc_unwind, now that we are generating proper .debug_frame output for
23468         that target.
23469
23470         * tracebak.c: Remove the mips-irix section, as we are now using the
23471         s-mastop based unwinder again.
23472         Under SPARC/Solaris, take into account the stack bias to compute the
23473         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
23474         ABI.
23475
23476 2005-06-14  Doug Rupp  <rupp@adacore.com>
23477
23478         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
23479
23480         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
23481
23482 2005-06-14  Pascal Obry  <obry@adacore.com>
23483
23484         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
23485         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
23486         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
23487         package name).
23488
23489         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
23490         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
23491         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
23492         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23493         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
23494         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
23495         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
23496         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
23497         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
23498         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
23499         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
23500         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
23501         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
23502         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
23503         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
23504         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
23505         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
23506         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
23507         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
23508         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
23509         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
23510         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
23511         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
23512         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
23513         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
23514         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
23515         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
23516         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
23517         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
23518         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
23519         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23520         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
23521         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
23522         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
23523         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
23524         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
23525         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23526         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
23527         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
23528         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23529         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
23530         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
23531         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
23532         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
23533         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
23534         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
23535         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23536         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
23537         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
23538         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
23539         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23540         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
23541         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
23542         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23543         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
23544         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23545         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
23546         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
23547         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23548         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
23549         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
23550         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23551         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
23552         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
23553         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
23554         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
23555         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
23556         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
23557         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
23558         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
23559         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
23560         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
23561         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
23562         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23563         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
23564         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
23565         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
23566         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
23567         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
23568         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23569         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
23570         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
23571         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
23572         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23573         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
23574         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
23575         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
23576         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23577         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
23578         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
23579         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
23580         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23581         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
23582         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
23583         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
23584         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23585         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
23586         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
23587         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
23588         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23589         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
23590         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
23591         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
23592         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23593         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
23594         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
23595         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
23596         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
23597         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23598         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
23599         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23600         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
23601         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23602         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
23603         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
23604         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
23605         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
23606         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23607         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
23608         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
23609         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
23610         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
23611         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
23612         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
23613         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
23614         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
23615         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
23616         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
23617         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
23618         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
23619         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
23620         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
23621         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
23622
23623 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
23624             Arnaud Charlet  <charlet@adacore.com>
23625
23626         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
23627         longer protected objects. They have been replaced by lower-level
23628         suspension objects made up by a mutex and a condition variable (or
23629         their equivalent given a particular OS) plus some internal data to
23630         reflect the state of the suspension object.
23631         (Initialize, Finalize): Add this initialization procedure for
23632         Suspension_Object, which is a controlled type.
23633         (Finalize): Add the finalization procedure for Suspension_Object,
23634         which is a controlled type.
23635
23636         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
23637         Ada.Synchronous_Task_Control because there is no longer a need for a
23638         VxWorks specific version of this package. Target dependencies
23639         has been moved to System.Task_Primitives.Operations.
23640
23641         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
23642         longer needed.
23643         (InitializeCriticalSection, EnterCriticalSection,
23644         LeaveCriticalSection, DeleteCriticalSection): Replace the type
23645         pCriticalSection by an anonymous access type so that we avoid problems
23646         of accessibility to local objects.
23647
23648         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
23649         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23650         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
23651         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
23652         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
23653         set the environment task mask here.
23654         (Current_State): Add this function that returns the state of the
23655         suspension object.
23656         (Set_False): Add this procedure that sets the state of the suspension
23657         object to False.
23658         (Set_True): Add this procedure that sets the state of the suspension
23659         object to True, releasing the task that was suspended, if any.
23660         (Suspend_Until_True): Add this procedure that blocks the calling task
23661         until the state of the object is True. Program_Error is raised if
23662         another task is already waiting on that suspension object.
23663         (Initialize): Add this procedure for initializing the suspension
23664         object. It initializes the mutex and the condition variable which are
23665         used for synchronization and queuing, and it sets the internal state
23666         to False.
23667         (Finalize): Add this procedure for finalizing the suspension object,
23668         destroying the mutex and the condition variable.
23669
23670         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23671         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
23672         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
23673         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
23674         which provides a low-level abstraction (using operating system
23675         primitives) for Ada.Synchronous_Task_Control.
23676         This object is made up by a mutex (for ensuring mutual exclusion), a
23677         condition variable (for queuing threads until the condition is
23678         signaled), a Boolean (State) indicating whether the object is open,
23679         and a Boolean (Waiting) reflecting whether there is a task already
23680         suspended on this object.
23681
23682         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
23683         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
23684         s-intman-vms.ads, s-intman-mingw.adb,
23685         (Initialize_Interrupts): Removed, no longer used.
23686
23687         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
23688         (Setup_Interrupt_Mask): New procedure.
23689
23690         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
23691
23692         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
23693
23694         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
23695         this is no longer done in the body of s-taprop
23696         (Server_Task): Explicitely test for Pending_Action in case
23697         System.Parameters.No_Abort is True.
23698
23699         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
23700         is no longer done in the body of s-taprop
23701
23702 2005-06-14  Robert Dewar  <dewar@adacore.com>
23703
23704         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
23705         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
23706         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23707         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
23708         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
23709         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
23710         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
23711         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
23712         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
23713         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
23714         system-linux-hppa.ads, system-vms_64.ads,
23715         system-vxworks-alpha.ads: Minor comment update for
23716         AI-362 (unit is Pure).
23717
23718         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
23719         Add pragma Pure_05 for AI-362
23720         Make remaining conversion functions obsolescent in Ada 95
23721
23722         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23723         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
23724         Add entries for a-wichun and a-zchuni
23725         Add a-widcha a-zchara for AI-395
23726         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
23727
23728         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23729         Add entries for a-wichun.o and a-zchuni.o
23730         Entries for a-widcha.o and a-zchara.o
23731         Add entry for a-chacon.o
23732
23733         * a-ztenau.adb: Add with of Ada.Characters.Conversions
23734
23735         * a-chacon.ads, a-chacon.adb: New files.
23736
23737         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
23738         categorization violations.
23739
23740         * a-strmap.ads: Add pragma Pure_05 for AI-362
23741         * a-strmap.ads: Add note on implicit categorization for AI-362
23742
23743         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
23744
23745         * par-prag.adb: Dummy entry for pragma Persistent_BSS
23746         Set Ada_Version_Explicit, for implementation of AI-362
23747         Add processing for pragma Pure_05 and Preelaborate_05
23748         Add entry for Assertion_Policy pragma
23749
23750         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
23751         when needed for proper processing of categorization stuff
23752
23753         * sem_cat.adb:
23754         For several cases, make errors in preealborate units warnings,
23755         instead of errors, if GNAT_Mode is set. For AI-362.
23756
23757         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
23758         preelaborate unit is now warning if in GNAT mode
23759
23760         * s-stoele.ads: Document AI-362 for pragma preelaborate
23761
23762 2005-06-14  Doug Rupp  <rupp@adacore.com>
23763
23764         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
23765         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
23766         Default_Exception_Msg_Max_Length: new parameter.
23767
23768         * a-except.ads: (Exception_Msg_Max_Length): Set to
23769         System.Parameters.Default_Exception_Msg_Max_Length
23770         Add pragma Preelaborate_05 for AI-362
23771         Add warnings off to allow categorization violations for AI-362
23772
23773 2005-06-14  Vincent Celier  <celier@adacore.com>
23774
23775         * gnatsym.adb: Adapt to modification of package Symbols: procedure
23776         Process is now in package Processing.
23777
23778         * symbols.ads, symbols.adb:
23779         (Processing): New package, containing procedure Process
23780
23781         * symbols-vms-alpha.adb:
23782         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
23783
23784         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
23785         symbols-processing-vms-ia64.adb: New files.
23786
23787 2005-06-14  Pascal Obry  <obry@adacore.com>
23788
23789         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
23790         implementation. This new version generates the proper DllMain routine
23791         to initialize the SAL. The DllMain is generated in Ada and compiled
23792         before being added as option to the library build command.
23793
23794 2005-06-14  Doug Rupp  <rupp@adacore.com>
23795             Pascal Obry  <obry@adacore.com>
23796
23797         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
23798         call to decc$translate_vms.
23799         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
23800         need to remove those quotes before catenating the filename.
23801         (__gnat_locate_exec_on_path): improvements to the Win32 section:
23802         * avoid allocating the memory twice for better efficiency;
23803         * allocate 32K buffer for environment expansion as suggested by MSDN;
23804         * prepend ".;" to the path so that current directory is searched too.
23805
23806 2005-06-14  Robert Dewar  <dewar@adacore.com>
23807
23808         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
23809         instead of raising CE (AI-241)
23810         Add warnings off to allow categorization violations for AI-362
23811
23812 2005-06-14  Robert Dewar  <dewar@adacore.com>
23813
23814         * ali-util.adb, gnatbind.adb: Remove references to
23815         Force_RM_Elaboration_Order.
23816
23817         * switch-b.adb: Remove recognition of -f switch
23818
23819 2005-06-14  Pascal Obry  <obry@adacore.com>
23820
23821         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
23822         implementation which is slightly more efficient.
23823
23824 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23825             Javier Miranda  <miranda@adacore.com>
23826             Ed Schonberg  <schonberg@adacore.com>
23827             Hristian Kirtchev  <kirtchev@adacore.com>
23828
23829         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
23830         allocator's designated type is a class-wide type, and compiling for
23831         Ada 2005, emit a run-time check that the accessibility level of the
23832         type given in the allocator's expression is not deeper than the level
23833         of the allocator's access type.
23834
23835         (Tagged_Membership): Modified to gives support to abstract interface
23836         types.
23837
23838         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
23839         Access_Level.
23840         (Descendant_Tag): New predefined function
23841         (Is_Descendant_At_Same_Level): New predefined function
23842         (Get_Access_Level): New private function
23843         (Set_Access_Level): New private procedure
23844         (IW_Membership): New function. Given the tag of an object and the tag
23845         associated with an interface, evaluate if the object implements the
23846         interface.
23847         (Register_Interface_Tag): New procedure used to initialize the table of
23848         interfaces used by the IW_Membership function.
23849         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
23850         of the dispatch table.
23851         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
23852         table of interfaces of the parent.
23853         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
23854         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
23855         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
23856         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
23857         Ada 2005 semantics for the new predefined function.
23858
23859         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
23860         call to Descendant_Tag rather than Internal_Tag.
23861         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
23862         the accessibility level of the attribute's Item parameter is not deeper
23863         than the level of the attribute's prefix type. Tag_Error is raised if
23864         the check fails. The check is only emitted for Ada_05.
23865         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
23866         requested stream attribute, use it.
23867         (Expand_N_Attribute_Reference): If the designated type is an interface
23868         then rewrite the referenced object as a conversion to force the
23869         displacement of the pointer to the secondary dispatch table.
23870         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
23871         is a dereference of an object with a constrained partial view.
23872
23873         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
23874         type is a class-wide type, emit a run-time check that the accessibility
23875         level of the returned object is not deeper than the level of the
23876         function's master (only when compiling for Ada 2005).
23877
23878         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
23879         Action_Nb_Arg): Add entries for new Get_Access_Level and
23880         Set_Access_Level routines in these tables.
23881         (Make_DT): Generate a call to set the accessibility level of the
23882         tagged type in its TSD.
23883         (Make_DT): Code cleanup. The functionality of generating all the
23884         secondary dispatch tables has been moved to freeze_record_type.
23885         (Make_Abstract_Interface_DT): Minor code cleanup.
23886         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
23887         this subprogram implements a new algorithm that provides the
23888         same functionality and it is more clear in case of primitives
23889         associated with abstract interfaces.
23890         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
23891         clean up, the functionality of this subprogram is now provided
23892         by Set_All_DT_Position.
23893         (Write_DT): New subprogram: a debugging procedure designed to be called
23894         within gdb to display the dispatch tables associated with a tagged
23895         type.
23896         (Collect_All_Interfaces): New subprogram that collects the whole list
23897         of interfaces that are directly or indirectly implemented by a tagged
23898         type.
23899         (Default_Prim_Op_Position): New subprogram that returns the fixed
23900         position in the dispatch table of the default primitive operations.
23901         (Expand_Interface_Actuals): New subprogram to generate code that
23902         displaces all the actuals corresponding to class-wide interfaces to
23903         reference the interface tag of the actual object.
23904         (Expand_Interface_Conversion): New subprogram. Reference the base of
23905         the object to give access to the interface tag associated with the
23906         secondary dispatch table.
23907         (Expand_Interface_Thunk): New subprogram that generates the code of the
23908         thunk. This is required for compatibility with the C+ ABI.
23909         (Make_Abstract_Interface_DT): New subprogram that generate the
23910         declarations for the secondary dispatch tables associated with an
23911         abstract interface.
23912         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
23913         attribute for each primitive operation covering interface subprograms
23914         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
23915         These subprograms were upgraded to give support to abstract interfaces
23916
23917         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
23918         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
23919         RE_Set_Access_Level.
23920         (RE_Unit_Table): Add entries for new Ada.Tags operations.
23921         Add support to call the followig new run-time subprograms:
23922         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
23923
23924         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
23925         match its full declaration when both have an access definition with
23926         statically matching designated subtypes.
23927         (Analyze_Component_Declaration): Delete commented out code that was
23928         incorrectly setting the scope of an anonymous access component's type.
23929         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
23930         an access discriminant when the containing type is nonlimited.
23931         (Make_Incomplete_Type_Declaration): Create an incomplete type
23932         declaration for a record type that includes self-referential access
23933         components.
23934         (Check_Anonymous_Access_Types): Before full analysis of a record type
23935         declaration, create anonymous access types for each self-referential
23936         access component.
23937         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
23938         an access component in this context is a Local_Anonymous_Access, for
23939         proper accessibility checks.
23940         (Access_Definition): Set properly the scope of the anonymous access type
23941         created for a stand-alone access object.
23942         (Find_Type_Of_Object): An object declaration may be given with an access
23943         definition.
23944         (Complete_Subprograms_Derivation): New subprogram used to complete
23945         type derivation of private tagged types implementing interfaces.
23946         In this case some interface primitives may have been overriden
23947         with the partial-view and, instead of re-calculating them, they
23948         are included in the list of primitive operations of the full-view.
23949         (Build_Derived_Record_Type): Modified to give support to private
23950         types implemening interfaces.
23951         (Access_Definition): Reject ALL on anonymous access types.
23952         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
23953         type derivation to occur at a deeper accessibility level than the
23954         parent type.
23955         For the case of derivation within a generic body however, disallow the
23956         derivation if the derived type has an ancestor that is a formal type
23957         declared in the formal part of an enclosing generic.
23958         (Analyze_Object_Declaration): For protected objects, remove the check
23959         that they cannot contain interrupt handlers if not declared at library
23960         level.
23961         (Add_Interface_Tag_Components): New subprogram to add the tag components
23962         corresponding to all the abstract interface types implemented by a
23963         record type or a derived record type.
23964         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23965         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23966         Process_Full_View, Record_Type_Declaration): Modified to give
23967         support to abstract interface types
23968         (Collect_Interfaces): New subprogram that collects the list of
23969         interfaces that are not already implemented by the ancestors
23970         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
23971         when partial view has no discriminants and full view has defaults.
23972         (Constrain_Access): Reject a constraint on a general access type
23973         if the discriminants of the designated type have defaults.
23974         (Access_Subprogram_Declaration): Associate the Itype node with the inner
23975         full-type declaration or subprogram spec. This is required to handle
23976         nested anonymous declarations.
23977         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23978         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23979         Process_Full_View, Record_Type_Declaration): Modified to give
23980         support to abstract interface types
23981         (Derive_Subprograms): Addition of a new formal to indicate if
23982         we are in the case of an abstact-interface derivation
23983         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
23984         to the specification because it is requied to analyze all the
23985         identifiers found in a list of interfaces
23986
23987         * debug.adb: Complete documentation of flag "-gnatdZ"
23988
23989         * exp_ch3.adb: Implement config version of persistent_bss pragma
23990         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
23991         testing for TSS presence to properly enforce visibility rules.
23992         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
23993         Make_Abstract_Interfaces_DT to generate the secondary tables
23994         associated with abstract interfaces.
23995         (Build_Init_Procedure): Modified to initialize all the tags
23996         corresponding.
23997         (Component_Needs_Simple_Initialization): Similar to other tags,
23998         interface tags do not need initialization.
23999         (Freeze_Record_Type): Modified to give support to abstract interface
24000         types.
24001         (Expand_N_Object_Declaration): Do not generate an initialization for
24002         a scalar temporary marked as internal.
24003
24004         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
24005         in-out parameter that is a component in an initialization procedure,
24006         whose constraint might depend on discriminants, and that may be
24007         misaligned because of packing or representation clauses.
24008         (Is_Legal_Copy): New predicate to determine whether a possibly
24009         misaligned in-out actual can actually be passed by copy/return. This
24010         is an error in case the type is by_reference, and a warning if this is
24011         the consequence of a DEC import pragma on the subprogram.
24012         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
24013         interface types
24014         (Expand_Inlined_Call): Mark temporary generated for the return value as
24015         internal, so that no useless scalar normalization is generated for it.
24016         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
24017         null procedure can always be inlined.
24018         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
24019         procedure, generate an explicit empty body for it.
24020
24021         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
24022         Given a type implementing an interface, returns the corresponding
24023         access_disp_table value.
24024         (Find_Interface_Tag): New subprogram. Given a type implementing an
24025         interface, returns the record component containing the tag of the
24026         interface.
24027         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
24028         previous ones that return the corresponding tag and access_disp_table
24029         entities.
24030         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
24031         is a predefined primitive operation.
24032         (Expand_Subtype_From_Expr): If the expression is a selected component
24033         within an initialization procedure, compute its actual subtype, because
24034         the component may depend on the discriminants of the enclosing record.
24035
24036         * i-cpp.ads, i-cpp.adb:
24037         This package has been left available for compatibility with previous
24038         versions of the frontend. As part of the new layout this is now a
24039         dummy package that uses declarations available at a-tags.ads
24040
24041         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
24042         "constant access" and "aliased [constant] access" when not compiling
24043         with -gnat05.
24044         Suppress Ada 2005 keyword warning if -gnatwY used
24045         (P_Identifier_Declarations): Add support for object declarations with
24046         access definitions.
24047         (Private_Extension_Declaration): Complete the documentation
24048         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
24049         attribute in case of private extension declaration
24050         (P_Type_Declaration): Mark as "abstract" the type declarations
24051         corresponding with protected, synchronized and task interfaces
24052         (P_Declarative_Items): "not" and "overriding" are overriding indicators
24053         for a subprogram or instance declaration.
24054
24055         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
24056         instantiation that is a dispatching operation has controlling access
24057         parameters that are null excluding.
24058         Save and restore Ada_Version_Explicit, for implementation of AI-362
24059         (Validate_Derived_Type_Instance): Add check for abstract interface
24060         types.
24061         (Analyze_Formal_Package): Establish Instantiation source for the copy of
24062         the generic that is created to represent the formal package.
24063         (Analyze_Package_Instantiation): Instantiate body immediately if the
24064         package is a predefined unit that contains inlined subprograms, and
24065         we are compiling for a Configurable_Run_Time.
24066         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
24067         If the program has a null default, generate an empty body for it.
24068
24069         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
24070         error message condition, null procedures are correctly detected now.
24071         (New_Overloaded_Entity): Bypass trivial overriding indicator check
24072         for subprograms in the context of protected types. Instead, the
24073         indicator is examined in Sem_Ch9 while analysing the subprogram
24074         declaration.
24075         (Check_Overriding_Indicator): Check consistency of overriding indicator
24076         on subprogram stubs as well.
24077         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
24078         the library level.
24079         (Analize_Subprogram_Specification): When analyzing a subprogram in which
24080         the type of the first formal is a concurrent type, replace this type
24081         by the corresponding record type.
24082         (Analyze_Subprogram_Body): Undo the previous work.
24083         (Analyze_Procedure_Call): If the call has the form Object.Op, the
24084         analysis of the prefix ends up analyzing the call itself, after which
24085         we are done.
24086         (Has_Interface_Formals): New subprogram subsidiary to analyze
24087         subprogram_specification that returns true if some non
24088         class-wide interface subprogram is found
24089         (New_Overloaded_Entity): Modified to give support to abstract
24090         interface types
24091         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
24092         access to subprograms must be recursive.
24093         (Is_Unchecked_Conversion): Improve the test that recognizes
24094         instantiations of Unchecked_Conversion, and allows them in bodies that
24095         are to be inlined by the front-end. When the body comes from an
24096         instantiation, a reference to Unchecked_Conversion will be an
24097         Expanded_Name, even though the body has not been analyzed yet.
24098         Replace Is_Overriding and Not_Overriding in subprogram_indication with
24099         Must_Override and Must_Not_Override, to better express intent of AI.
24100         (Analyze_Subprogram_Body): If an overriding indicator is given, check
24101         that it is consistent with the overrinding status of the subprogram
24102         at this point.
24103         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
24104         always inlined.
24105         If the subprogram is a null procedure, indicate that it does not need
24106         a completion.
24107
24108         * sem_disp.adb (Check_Controlling_Type): Give support to entities
24109         available through limited-with clauses.
24110         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
24111         allowed as the last primitive of a tagged type if it has no previous
24112         spec.
24113         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
24114         to give support to abstract interface types
24115
24116         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
24117         in the case where the target type is an anonymous access type of an
24118         object or component (that is, when Is_Local_Anonymous_Access is true).
24119         Prevent the special checks for conversions of access discriminants in
24120         the case where the discriminant belongs to a nonlimited type, since
24121         such discriminants have their accessibility level defined in the same
24122         way as a normal component of an anonymous access type.
24123         (Resolve_Allocator): When an allocator's designated type is a class-wide
24124         type, check that the accessibility level of type given in the
24125         allocator's expression or subtype indication is not statically deeper
24126         than the level of the allocator's access type.
24127         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
24128         name in a discriminant constraint of a record component.
24129         (Resolve_Explicit_Dereference): Do not check whether the type is
24130         incomplete when the dereference is a use of an access discriminant in
24131         an initialization procedure.
24132         (Resolve_Type_Conversion): Handle conversions to abstract interface
24133         types.
24134         (Valid_Tagged_Conversion): The conversion of a tagged type to an
24135         abstract interface type is always valid.
24136         (Valid_Conversion): Modified to give support to abstract interface types
24137         (Resolve_Actuals): Enable full error reporting on view conversions
24138         between unrelated by_reference array types.
24139         The rule for view conversions of arrays with aliased components is
24140         weakened in Ada 2005.
24141         Call to obsolescent subprogram is now considered to be a violation of
24142         pragma Restrictions (No_Obsolescent_Features).
24143         (Check_Direct_Boolean_Operator): If the boolean operation has been
24144         constant-folded, there is nothing to check.
24145         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
24146         check on possible violation of restriction No_Direct_Boolean_Operators
24147         until after expansion of operands, to prevent spurious errors when
24148         operation is constant-folded.
24149
24150         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
24151         Has_Compatible_Type): Modified to give support to abstract interface
24152         types.
24153         (Interface_Present_In_Ancestor): New function to theck if some ancestor
24154         of a given type implements a given interface
24155
24156         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
24157         prefix is a parameterless function that returns an access_to_procedure.
24158         (Transform_Object_Operation): Handle properly function calls of the
24159         form Obj.Op (X), which prior to analysis appear as indexed components.
24160         (Analyze_One_Call): Complete the error notification to help new Ada
24161         2005 users.
24162         (Analyze_Allocator): For an allocator without an initial value, where
24163         the designated type has a constrained partial view, a discriminant
24164         constraint is illegal.
24165
24166 2005-06-14  Robert Dewar  <dewar@adacore.com>
24167
24168         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
24169         do with treatment of Set_Col when positioned at end of line character.
24170
24171 2005-06-14  Robert Dewar  <dewar@adacore.com>
24172
24173         * atree.adb: (Elist*): Protect against uninitialized field
24174
24175 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24176
24177         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
24178         for an attribute reference that returns an access type.
24179         (Apply_Discriminant_Check): No need for check if (designated) type has
24180         constrained partial view.
24181
24182         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
24183         both bound checks, rather than a conjunction.
24184         (Insert_Valid_Check): If the expression is an actual that is an indexed
24185         component of a bit-packed array, force expansion of the packed element
24186         reference, because it is specifically inhibited elsewhere.
24187
24188 2005-06-14  Vincent Celier  <celier@adacore.com>
24189
24190         * clean.adb (Clean_Project): Correctly delete executable specified as
24191         absolute path names.
24192
24193         * make.adb (Gnatmake): Allow relative executable path names with
24194         directory information even when project files are used.
24195         (Change_To_Object_Directory): Fail gracefully when unable to change
24196         current working directory to object directory of a project.
24197         (Gnatmake): Remove exception handler that could no longer be exercized
24198         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
24199         may be deallocated by Normalize_Arguments.
24200         (Collect_Arguments): Eliminate empty arguments
24201
24202         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
24203         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
24204         (Check_Project): Return False when Project is No_Project. Return True
24205         when All_Projects is True.
24206         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
24207         All_Projects to True.
24208         Minor reformatting
24209
24210 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24211             Javier Miranda  <miranda@adacore.com>
24212             Thomas Quinot  <quinot@adacore.com>
24213             Robert Dewar  <dewar@adacore.com>
24214             Hristian Kirtchev  <kirtchev@adacore.com>
24215             Gary Dismukes  <dismukes@adacore.com>
24216
24217         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
24218         anonymous access types, to indicate that the accessibility level of
24219         the type is determined by that of the enclosing declaration.
24220         (Has_Persistent_BSS): New flag
24221         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
24222         of this attribute with functions.
24223         (Is_Primitive_Wrapper): Remove the barrier.
24224         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
24225         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
24226         New subprograms.
24227         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
24228         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
24229         New subprograms.
24230         (Is_Pure_Unit_Access_Type): New flag
24231         (Abstract_Interfaces): Complete the assertion to cover all usages.
24232         (Set_Is_Interface): Complete the assertion to cover all usages.
24233         (Is_Primitive_Wrapper): New attribute.
24234         (Is_Obsolescent): Now applies to all entities (though it is only set
24235         for subprograms currently)
24236         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
24237         which solves various problems concerning access subtypes.
24238         (Has_Persistent_BSS): New flag
24239         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
24240         Remove these subprograms because this attribute is currently
24241         not used.
24242         New entity flags:
24243         Has_Specified_Stream_Input (Flag190)
24244         Has_Specified_Stream_Output (Flag191)
24245         Has_Specified_Stream_Read (Flag192)
24246         Has_Specified_Stream_Write (Flag193)
24247         Present in all type and subtype entities. Set for a given view if the
24248         corresponding stream-oriented attribute has been defined by an
24249         attribute definition clause. When such a clause occurs, a TSS is set
24250         on the underlying full view; the flags are used to track visibility of
24251         the attribute definition clause for partial or incomplete views.
24252         (Is_Pure_Unit_Access_Type): New flag
24253         Clarify use of Is_Internal.
24254         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
24255         internally generated to wrap the invocation of tasks and protected
24256         types that implement interfaces.
24257         (Implementation_Base_Type): Documentation correction
24258         (Is_Obsolescent): Now applies to all entities (though it is only set
24259         for subprograms currently)
24260         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
24261         which solves various problems concerning access subtypes.
24262
24263         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
24264         for examined parameters. Identify unequal parameter list lengths as
24265         non-conformant parameters.
24266         (Overriding_Possible): Do not check for "All" qualifier in declaration
24267         of controlling access parameter, following prescription of AI-404.
24268         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
24269         that build the procedure body that wraps an entry invocation
24270         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
24271         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
24272         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
24273         give support to abstract interface types
24274
24275         * freeze.adb (Freeze_Entity): Issue error message if
24276         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
24277         type has no storage pool (Ada 2005) AI-366.
24278         Also modified to give support to abstract interface types
24279         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
24280         Inline_Always pragma.
24281
24282         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
24283         now begin an entry declaration.
24284         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
24285         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
24286         a subprogram declaration preceded by an overriding indicator.
24287         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
24288         declarations or subprogram declarations preceded by reserved words
24289         "not" or "overriding".
24290         (P_Entry_Declaration): Update comment. Parse and check overriding
24291         indicator, set semantic flags of entry declarations.
24292         (P_Task): New error message in case of private applied
24293         to a task type declaration.
24294         (P_Protected): New error message in case of private applied
24295         to a task type declaration.
24296
24297         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
24298         in which the full view of a type implementing an interface is a
24299         concurrent type.
24300         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
24301         Declare_Inherited_Private_Subprograms): If an explicit operation
24302         overrides an operation that is inherited in the private part, mark the
24303         explicit one as overriding, to enable overriding indicator checks.
24304         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
24305         full view to partial view, to simplify handling in back-end.
24306
24307         * sprint.adb: Print interface lists where needed: derived types,
24308         protected types, task types.
24309         output "is null" for null procedures. Part of implementation of
24310
24311         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
24312         relaxation of rules for access types in pure, shared passive partitions.
24313
24314         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
24315         first read discriminants into temporary objects, performing checks on
24316         the read values, then possibly performing discriminant checks on the
24317         actual (if it is constrained), and only finally reading the components
24318         into a constrained temporary object.
24319         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
24320         case of reading discriminants of a mutable record type to recognize
24321         the new form of the code generated by
24322         Build_Mutable_Record_Read_Procedure.
24323
24324         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
24325         of a simple call to Make_TSS_Name.
24326         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
24327         buffer, in order for Is_TSS to work correctly on local TSS names.
24328
24329         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
24330         Is_Local_Anonymous_Access to check legaliy of attributes in the
24331         context of  access components and stand-alone access objects.
24332         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
24333         treated as available for a limited private type if there is an
24334         attribute_definition_clause that applies to its full view, but not in
24335         other cases where the attribute is available for the full view
24336         (specifically, the sole fact that the full view is non-limited does not
24337         make the attribute available for the partial view).
24338         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
24339         non-overloaded intrinsic subprogram.
24340         (Check_Stream_Attribute): Reject an attribute reference for an
24341         unavailable stream attribute even if the prefix is not a limited type
24342         (case of a 'Input attribute reference for an abstract, non-classwide
24343         type)
24344         (Stream_Attribute_Available): New function to determine whether a stream
24345         attribute is available at a place.
24346         (Check_Attribute): Use Stream_Attribute_Available instead of just
24347         testing for TSS presence on the implementation base type.
24348         (Analyze_Attribute): Modified to give support to task interfaces.
24349         (Analyze_Access_Attribute): Add error check for use of an Access (or
24350         Unrestricted_Access) attribute with a subprogram marked as
24351         Inline_Always.
24352         (Analyze_Attribute, case Attribute_Address): Add error check for use of
24353         an Address attribute with a subprogram marked as Inline_Always.
24354         Update Eval_Attribute to handle new value of Width from AI-395
24355
24356         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
24357         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
24358         Factor common code across the stream-oriented attribute circcuits into
24359         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
24360         processing is functionally identical to the previous duplicated one,
24361         except that an expression that denotes an abstract subprogram will now
24362         be rejected, as mandated by AI-195 item 5.
24363
24364         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
24365         Is_Local_Anonymous_Access to apply accessibility checks to access
24366         components and stand-alone access objects.
24367         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
24368         elsewhere.
24369         (Is_Potentially_Persistent_Type): New function
24370         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
24371         a heap-object whose type has a constrained partial view, the object is
24372         unconstrained and the component may depend on a discriminant, making its
24373         renaming illegal.
24374
24375         * sinfo.ads, sinfo.adb
24376         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
24377         (Must_Override): Flag applicable to N_Entry_Declaration.
24378         Indicate that interface_list can appear in single task and single
24379         protected declarations.
24380         Replace Is_Overriding and Not_Overriding with Must_Override and
24381         Must_Not_Override, to better express intent of AI.
24382         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
24383         of an overriding indicator in a subprogram or instance.
24384         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
24385         Add the overriding indicator [[not] overriding] construct to the
24386         following grammar productions:
24387          ENTRY_DECLARATION
24388          GENERIC_INSTANTIATION
24389          SUBPROGRAM_SPECIFICATION
24390
24391         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
24392         can start with an overriding indicator.
24393
24394         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
24395         flags accordingly on subrogram specifications or instances.
24396
24397         * sem_ch8.adb:
24398         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
24399         overriding_indicator, if present, is consistent with status of spec.
24400         Improve error message for null-excluding checks on controlling access
24401         parameters.
24402         (Check_In_Previous_With_Clause): Protect the frontend against
24403         previously reported critical errors in the context clauses.
24404         Save and restore Ada_Version_Explicit, for implementation of AI-362
24405         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
24406         operation verify that controlling formals of the renamed entity that
24407         are access parameters are explicitly non-null.
24408         (Find_Expanded_Name): Improve error message when prefix is an illegal
24409         reference to a private child unit.
24410
24411         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
24412         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
24413         Rewrite to correspond to new wide character names in AI-395
24414
24415         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
24416         default procedures.
24417
24418 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24419             Robert Dewar  <dewar@adacore.com>
24420
24421         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
24422         code, not on the bodies of predefined operations, to cut down on
24423         spurious noise.
24424
24425 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24426
24427         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
24428         be expanded in place. The size computation does not require a
24429         subtraction, which would raise an exception on a compiler built with
24430         assertions when the upper bound is Integer'first.
24431         (Flatten): For an array of composite components, take into account the
24432         size of the components to determine whether it is safe to expand the
24433         array into a purely positional representation.
24434
24435 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24436
24437         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
24438         denoting a formal parameter into account.
24439
24440 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24441
24442         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
24443         the entry_call alternative of a conditional entry call, wrap the
24444         conditional entry call itself.
24445
24446 2005-06-14  Nicolas Setton  <setton@adacore.com>
24447             Ed Schonberg  <schonberg@adacore.com>
24448
24449         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
24450         the "simple_choice" member in a variant record, in accordance with the
24451         description in the package spec: the information output for a constant
24452         should be "S number", not "SS number".
24453         (Get_Encoded_Name): Return at once if not generating code. Avoids name
24454         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
24455
24456 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24457
24458         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
24459         RACW without any primitives, do not generate the if statement for
24460         dispatching by name in the PolyORB/DSA case, as it would be malformed
24461         (it would have an Elsif_Parts list that is not No_List, but with a
24462         length of 0).
24463
24464 2005-06-14  Robert Dewar  <dewar@adacore.com>
24465
24466         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
24467
24468 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
24469
24470         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
24471         can determine whether pragma Suppress_Exception_Locations is in effect.
24472
24473         * utils2.c (build_call_raise): Do not pass the file name to the
24474         exception handler if pragma Suppress_Exception_Locations is in effect.
24475         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
24476
24477 2005-06-14  Emmanuel Briot  <briot@adacore.com>
24478
24479         * g-debpoo.adb (Deallocate, Dereference): Improve output.
24480
24481 2005-06-14  Nicolas Roche  <roche@adacore.com>
24482
24483         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
24484         to ""
24485         (Next_Level): Fix minor bug in handling of ../dir case
24486         (Read): Add dir separator to Directory name so that "" is understood as
24487          "/"
24488
24489 2005-06-14  Pascal Obry  <obry@adacore.com>
24490
24491         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
24492         releasing the items.
24493
24494 2005-06-14  Vincent Celier  <celier@adacore.com>
24495             Cyrille Comar  <comar@adacore.com>
24496
24497         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
24498         with output file descriptor and with output file name.
24499         (Dup, Dup2): Now global procedures as they are used by two subprograms
24500         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
24501
24502 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24503
24504         PR ada/6717
24505         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
24506         broadcast address.
24507         (Create_Selector): Bind listening socket used to create the signalling
24508         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
24509         Set listen backlog to 1 to ensure that we detect socket theft by a
24510         failure of our own connect(2) call.
24511         (Check_Selector): Improve documentation of the selector mechanism.
24512         (Broadcast_Inet_Addr): New constant.
24513
24514 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
24515
24516         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
24517         type which turns out to be an incomplete and incorrect fix.
24518         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
24519         of the type is declared in a record (for determination of insertion
24520         type).
24521         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
24522         a private type and ensure that the primary entity is used for the type
24523         of the newly created function's V formal by taking the Etype of the
24524         view.
24525
24526 2005-06-14  Javier Miranda  <miranda@adacore.com>
24527             Jose Ruiz  <ruiz@adacore.com>
24528             Robert Dewar  <dewar@adacore.com>
24529             Ed Schonberg  <schonberg@adacore.com>
24530
24531         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
24532         that indicates if we are parsing a compilation unit found in a
24533         limited-with clause.
24534         It is use to avoid the circularity check.
24535
24536         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
24537         we are parsing a compilation unit found in a limited-with clause. This
24538         is use to avoid the circularity check.
24539
24540         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
24541         unit as a consequence of parsing a limited-with clause. This is used
24542         to avoid the circularity check.
24543
24544         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
24545         (Analyze_Context): Limited-with clauses are now allowed
24546         in more compilation units.
24547         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
24548         againts previously reported critical errors in context clauses
24549         (Install_Limited_Withed_Unit): Code cleanup plus static detection
24550         of two further errors: renamed subprograms and renamed packages
24551         are not allowed in limited with clauses.
24552         (Install_Siblings): Do not install private_with_clauses on the package
24553         declaration for a non-private child unit.
24554         (Re_Install_Parents): When a parent of the subunit is reinstalled,
24555         reset visibility of child units properly.
24556         (Install_Withed_Unit): When a child unit appears in a with_clause of its
24557         parent, it is immediately visible.
24558
24559 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24560             Emmanuel Briot  <briot@adacore.com>
24561
24562         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
24563         declared within an inlined body as referenced, to prevent spurious
24564         warnings.
24565         (Output_One_Ref): If an entity renames an array component, indicate in
24566         the ALI file that this aliases (renames) the array. Capture as well
24567         function renamings that rename predefined operations.
24568         Add information about generic parent for package and subprogram
24569         instances.
24570         (Get_Type_Reference): For a subtype that is the renaming of an actual in
24571         an instantiation, use the first_subtype to ensure that we don't generate
24572         cross-reference information for internal types.
24573         For objects and parameters of a generic private type, retain the '*'
24574         indicator to distinguish such an entity from its type.
24575
24576         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
24577         to store information about instantiated entities.
24578
24579         * ali.adb (Scan_ALI): Add support for parsing the reference to the
24580         generic parent
24581
24582         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
24583         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
24584         information.
24585
24586 2005-06-10  Doug Rupp  <rupp@adacore.com>
24587             Arnaud Charlet  <charlet@adacore.com>
24588             Olivier Hainque  <hainque@adacore.com>
24589             Jose Ruiz  <ruiz@adacore.com>
24590
24591         * Make-lang.in: Add initialize.o when needed.
24592         Remove obsolete references to RT_FLAGS.
24593         Add missing dependencies for sdefault.o
24594
24595         * initialize.c: New file.
24596
24597         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
24598         [VMS] cond_signal_table: Fix problem in declaration.
24599         [VMS] __gnat_error_handler: rewrite.
24600         Move all __gnat_initialize() routines to initialize.c
24601         Specialize the former "hpux" section to "hppa hpux", as this is what the
24602         section really is here for and we now have other hpux ports that need
24603         different contents.
24604         (__gnat_adjust_context_for_raise) i386-linux: First version of this
24605         function for this target. Adjust PC by one in the machine context. This
24606         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
24607         it is more reliable to do that in the signal handler itself.
24608         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
24609         flags, so that the handler is passed the context structure to adjust
24610         prior to the raise.
24611         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
24612         SA_SIGINFO sigaction should look like. Call
24613         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
24614         Machine_State_Operations stuff.
24615         Add conditional code so that the x86_64 is also supported.
24616
24617 2005-06-14  Pascal Obry  <obry@adacore.com>
24618
24619         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
24620         the library name.
24621
24622 2005-06-14  Robert Dewar  <dewar@adacore.com>
24623
24624         * opt.ads, opt.adb: New flags for persistent_bss mode
24625         Add Ada_Version_Explicit, for implementation of AI-362
24626         Add Assertions_Enabled_Config and associated handling
24627         Needed since setting can be changed with Assertion_Policy pragma
24628         Add new flag Warn_On_Ada_2005_Compatibility
24629
24630         * switch-c.adb: Recognize -gnatwy/Y
24631         Set Ada_Version_Explicit, for implementation of AI-362
24632         The -gnatg switch now includes -gnatyu
24633
24634         * usage.adb: Add -gnatwy/Y
24635         Remove wrong asterisk on -gnatwX line
24636         Add line for -gnatyu switch
24637
24638 2005-06-14  Vincent Celier  <celier@adacore.com>
24639
24640         * osint.adb (Add_Default_Search_Dirs): Put source and object
24641         directories of project files before directories coming from
24642         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
24643
24644 2005-06-14  Robert Dewar  <dewar@adacore.com>
24645
24646         PR ada/15613
24647         * par-ch2.adb (Scan_Pragma_Argument): New procedure
24648         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
24649
24650 2005-06-14  Vincent Celier  <celier@adacore.com>
24651
24652         * prep.adb (Preprocess): Ignore error when scanning the first token of
24653         a line.
24654
24655 2005-06-14  Vincent Celier  <celier@adacore.com>
24656
24657         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
24658         (Check_Stand_Alone_Library): If the specified reference symbol file does
24659         not exist, only issue a warning when the symbol policy is not
24660         Controlled. And, when symbol policy is Compliant, set the symbol
24661         policy to Autonomous.
24662
24663 2005-06-14  Vincent Celier  <celier@adacore.com>
24664
24665         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
24666         when the project file in a with clause is not the last one, that is the
24667         project file name is followed by a comma.
24668         * prj-pp.adb: (First_With_In_List): New Boolean global variable
24669         (Print): Issue list of project files separated by commas in with clauses
24670         according to the values returned by Is_Not_Last_In_List.
24671         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
24672         (Set_Is_Not_Last_In_List): New procedure
24673
24674 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
24675
24676         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
24677
24678 2005-06-14  Robert Dewar  <dewar@adacore.com>
24679
24680         * scng.adb: Add call to new Check_EOF routine
24681         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
24682         Add some comments regarding wide character handling
24683
24684         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
24685
24686         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
24687
24688         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
24689         characters are now considered graphic characters and hence yield false
24690         in this call.
24691
24692         * nmake.adt: Modify header so that xnmake does not generate output
24693         files with multiple blank lines.
24694
24695         * treeprs.adt: Remove a blank line so that output from xtreeprs does
24696         not have an extra blank line
24697
24698 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
24699
24700         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
24701         expression when the component type is an anonymous access type to
24702         ensure that appropriate accessibility checks are done.
24703
24704         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
24705         expression of an assignment when the target object is of an anonymous
24706         access type. This ensures that required accessibility checks are done.
24707         (One_Bound): Move the check for type Universal_Integer to
24708         Process_Bounds.
24709         (Process_Bounds): Check whether the type of the preanalyzed range is
24710         Universal_Integer, and in that case set Typ to Integer_Type prior
24711         to setting the type of the original range and the calls to One_Bound.
24712
24713 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24714
24715         * sem_case.adb (Expand_Others_Choice): Improve warning.
24716
24717 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24718
24719         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
24720         constraint of full view if present, when other type is discriminated.
24721         (Eval_Relational_Op): Recognize tests of pointer values against Null,
24722         when the pointer is known to be non-null, and emit appropriate warning.
24723
24724 2005-06-14  Robert Dewar  <dewar@adacore.com>
24725             Ed Schonberg  <schonberg@adacore.com>
24726
24727         PR ada/10671
24728         * sem_prag.adb: Implement pragma Persistent_BSS
24729         Remove obsolete pragma Persistent_Data, Persistent_Object
24730         Set Ada_Version_Explicit, for implementation of AI-362
24731         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
24732         Add processing for pragma Pure_05 and Preelaborate_05
24733         Add processing for Assertion_Policy pragma
24734         Add pragma identifiers for Assert
24735         (Analyze_Pragma, case Assert): Check number of arguments
24736         (Process_Inline): Additional guard against an illegal program, where the
24737         argument of the pragma is undefined, and warnings on redundant
24738         constructs are enabled.
24739         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
24740         Ada_05 to this pragma, specifying that the pragma is only active in
24741         Ada_05 mode.
24742         (Check_Arg_Order): New procedure
24743         Add appropriate calls to this procedure throughout
24744         Also throughout, check entity name before doing any other checks
24745
24746         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
24747         Remove obsolete pragma Persistent_Data, Persistent_Object
24748         Add entries for pragma Pure_05 and Preelaborate_05
24749         Add entries for Assertion_Policy pragma and associated names
24750         Add some names for pragma argument processing
24751
24752         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
24753
24754 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
24755
24756         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
24757         appears within a negation (either from source or as a rewriting of
24758         inequality) adjust text of warning accordingly.
24759
24760 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24761
24762         * s-strxdr.adb: Follow AI95-00132
24763
24764 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
24765
24766         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
24767
24768 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
24769             Jose Ruiz  <ruiz@adacore.com>
24770
24771         * s-tposen.adb, s-tpobop.adb
24772         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
24773         the exception id.
24774         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
24775         there is no violation of the Max_Entry_Queue_Length restriction (if it
24776         has been set); Program_Error is raised otherwise.
24777         (Requeue_Call): Before requeuing the task on the target entry queue we
24778         check that there is no violation of the Max_Entry_Queue_Length
24779         restriction (if it has been set); Program_Error is raised otherwise.
24780
24781 2005-06-14  Robert Dewar  <dewar@adacore.com>
24782
24783         * styleg.adb: Fix several remaining problems in -gnatyu switch
24784         Blank line count not reset at start
24785         Scanning outside source buffer in some cases
24786         Confusing message for blanks at end of file
24787         Non-empty blank lines not recognized
24788
24789         * nmake.adt: Modify header so that xnmake does not generate output
24790         files with multiple blank lines.
24791
24792         * treeprs.adt: Remove a blank line so that output from xtreeprs does
24793         not have an extra blank line
24794
24795 2005-06-14  Sergey Rybin  <rybin@adacore.com>
24796
24797         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
24798
24799 2005-06-14  Doug Rupp  <rupp@adacore.com>
24800             Vincent Celier  <celier@adacore.com>
24801
24802         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
24803         Update copyright.
24804
24805         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24806         Remove "Library" command.
24807         Change keyword for style check -gnatyd from NOCRLF to
24808         DOS_LINE_ENDINGS.
24809         Remove useless second style check keyword NONE
24810         Remove help documentation for inexistent style check keyword
24811         RM_COLUMN_LAYOUT.
24812         Add help documentation for style check keywords DOS_LINE_ENDINGS,
24813         UNNECESSARY_BLANK_LINES and XTRA_PARENS
24814         Add UNNECESSARY_BLANK_LINES for -gnatyu
24815         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
24816
24817         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24818
24819 2005-06-14  Vincent Celier  <celier@adacore.com>
24820
24821         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
24822         gprmake was invoked with -d.
24823         (Compile_Sources): If -d was used, output the "completed ..." message
24824         for each compilation.
24825         (Scan_Arg): Recognize new switch -d
24826         When -c and at least one main is specified, set
24827         Unique_Compile to True to guarantee that no other sources will be
24828         compiled.
24829
24830 2005-06-14  Matthew Heaney  <heaney@adacore.com>
24831
24832         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
24833         * a-swuwha.ads, a-swuwha.adb: New files
24834
24835         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
24836         * a-szuzha.ads, a-szuzha.adb: New files.
24837
24838         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
24839         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
24840         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
24841         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
24842         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
24843         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
24844         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
24845         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
24846         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
24847         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
24848         Ada 2005 RM.
24849
24850 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
24851             Olivier Hainque  <hainque@adacore.com>
24852             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24853             Pascal Obry  <obry@adacore.com>
24854
24855         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
24856
24857         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
24858         making a temporary around a procedure call because of non-addressable
24859         actual parameter.
24860         (process_freeze_entity): If entity is a private type, capture size
24861         information that may have been computed for the full view.
24862         (tree_transform, case N_Allocator): If have initializing expression,
24863         check type for Has_Constrained_Partial_View and pass that to
24864         build_allocator.
24865         (tree_transform, case N_Return_Statement): Pass extra arg to
24866         build_allocator.
24867
24868         * decl.c (annotate_value): Remove early return if -gnatR is not
24869         specified.
24870         (gnat_to_gnu_field): Don't make a packable type for a component clause
24871         if the position is byte aligned, the field is aliased, and the clause
24872         size isn't a multiple of the packable alignment. It serves no useful
24873         purpose packing-wise and would be rejected later on.
24874         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
24875
24876         PR ada/20515
24877         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
24878         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
24879         instead.
24880         (create_concat_name): Idem.
24881
24882 2005-06-10  Robert Dewar  <dewar@adacore.com>
24883             Eric Botcazou  <ebotcazou@adacore.com>
24884             Ben Brosgol  <brosgol@adacore.com>
24885             Cyrille Comar  <comar@adacore.com>
24886             Sergey Rybin  <rybin@adacore.com>
24887             Pascal Obry  <obry@adacore.com>
24888
24889         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
24890         Document second argument (Ada_05) of pragma Obsolescent
24891         Add note that call to subprogram marked with pragma Obsolescent
24892         is now considered to be a violation of program Restrictions
24893         (No_Obsolescent_Features).
24894         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
24895         that only machine-dependent attributes are supported.
24896
24897         * gnat_ugn.texi:
24898         Commented out menu lines and empty section for gnatclean examples
24899         Document -gnatwy/Y
24900         Fix some over long lines
24901         Clarify and enhance documentation of ADA_PROJECT_PATH.
24902         Rework section 2.11.2(3) about linking with a non-GNU compiler.
24903         Mention new switch -fcallgraph-info.
24904         Mention new switch -fstack-usage.
24905         For gnatpp, replace '-notab' with '-N' and add this option to Index
24906         Corrected VMS example.
24907         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
24908         Minor reformatting
24909         Add documentation for -gnatyu switch (unnecessary blank lines)
24910         Document new switch -U for GNAT PRETTY and GNAT METRIC
24911         Add note about Stdcall being handled as C convention on non Windows OS.
24912         Remove some junk typo in description of gnatbind -S switch
24913         Remove reference to Extensions_Allowed pragma
24914         Document the new order of the directories to be searched (source and
24915         object directories of project files before directories in ADA_*_PATH
24916         environment variables.
24917
24918         * g-trasym.ads: Document that IRIX is supported
24919
24920 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
24921
24922         * Makefile.in: Add initialize.o when needed.
24923         Adapt to new VMS package body Symbols and subunits
24924         No specialized version of a-sytaco is needed for VxWorks.
24925
24926         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
24927         * a-zchara.ads, a-widcha.ads: New files.
24928
24929         * system-hpux-ia64.ads: New file.
24930
24931         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
24932         is imported from the VxWorks kernel.
24933
24934 2005-06-14  Robert Dewar  <dewar@adacore.com>
24935
24936         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
24937         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
24938         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
24939         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
24940         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
24941         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
24942         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
24943         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
24944         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
24945         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
24946         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
24947         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
24948
24949 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24950
24951         * xeinfo.adb: Fix typo in comment
24952
24953 2005-06-14  Javier Miranda  <miranda@adacore.com>
24954
24955         * repinfo.ads: Fix typo in comment
24956
24957 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
24958
24959         * s-finimp.adb (Parent_Tag): Delete this imported function (function
24960         Parent_Tag is now in the visible part of Ada.Tags).
24961         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
24962         using imported function.
24963
24964 2005-06-14  Bernard Banner  <banner@adacore.com>
24965
24966         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
24967         also apply for handling support for VxSim 653.
24968
24969 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
24970
24971         * xsnames.adb: Add automatic generation of snames.h.
24972
24973 2005-06-14  Thomas Quinot  <quinot@adacore.com>
24974
24975         * gen-soccon.c: Add IP_MULTICAST_IF constant
24976         Minor reformatting and adjustments to prevent warnings.
24977
24978 2005-06-14  Pascal Obry  <obry@adacore.com>
24979
24980         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
24981
24982 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
24983
24984         * trans.c (gnat_gimplify_expr): Call
24985         recompute_tree_invarant_for_addr_expr when we change
24986         the operand of the ADDR_EXPR.
24987
24988 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24989
24990         * misc.c: Don't include errors.h.
24991
24992 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24993
24994         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
24995
24996 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
24997
24998         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
24999         comment typos.
25000         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
25001
25002 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
25003
25004         PR ada/20270
25005         * Makefile.in: Make TGT_LIB behave correctly.
25006
25007 2005-04-23  DJ Delorie  <dj@redhat.com>
25008
25009         * misc.c: Adjust warning() callers.
25010
25011 2005-04-16  Laurent Guerby  <laurent@guerby.net>
25012
25013         PR ada/18847
25014         * a-nudira.adb (Value): Check for valid string.
25015         * a-nuflra.adb (Value): Likewise.
25016
25017 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
25018
25019         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
25020
25021 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
25022
25023         * adaint.c, init.c, tracebak.c: Fix comment typos.
25024         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
25025
25026 2005-04-07  Laurent Guerby  <laurent@guerby.net>
25027             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25028
25029         * Makefile.in: Add make ifeq define for hppa linux tasking support.
25030         * system-hpux.ads: Define Signed_Zeros to be True.
25031         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
25032
25033 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
25034
25035         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
25036         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
25037         typos.
25038
25039 2005-03-30  Tom Tromey  <tromey@redhat.com>
25040
25041         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
25042
25043 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25044
25045         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
25046
25047 2005-03-29  Robert Dewar  <dewar@adacore.com>
25048
25049         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
25050         fixed-point expression has value that is not a multiple of the Small
25051         value.
25052
25053         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
25054
25055         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
25056         nanoseconds.
25057
25058         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
25059
25060 2005-03-29  Vincent Celier  <celier@adacore.com>
25061
25062         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
25063         (Build_Dynamic_Library.Version_String): Return the empty string when
25064         Lib_Version is empty or when the symbol policy is not Autonomous.
25065
25066         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
25067         a symbol is not in the reference symbol file, increase the Major ID
25068         and set the Minor ID to 0.
25069         Use gsmatch=lequal instead of gsmatch=equal
25070
25071 2005-03-29  Doug Rupp  <rupp@adacore.com>
25072
25073         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
25074         name and translate.
25075
25076 2005-03-29  Javier Miranda  <miranda@adacore.com>
25077
25078         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
25079         (Inherit_DT): The first formal has been redefined as a Tag.
25080         This allows us the removal of the subprogram Get_TSD.
25081         (TSD): Replace the call to Get_TSD by the actual code.
25082
25083         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
25084         (Make_DT): Upgrade the call to Inherit_TSD according to the
25085         new interface: the first formal is now a Tag.
25086
25087         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
25088         redefined as a Tag.
25089         This change allows us to remove the subprogram Get_TSD.
25090         (CPP_Get_TSD): Subprogram removed.
25091         (TSD): Replace the call to CPP_Get_TSD by the actual code.
25092
25093         * rtsfind.ads: Remove support to call the run-time
25094         subprogram Get_TSD
25095
25096 2005-03-29  Robert Dewar  <dewar@adacore.com>
25097
25098         * errutil.adb, errout.adb:
25099         Minor comment updates on Line_Terminator references
25100
25101         * par-ch10.adb: Add ??? comment about line terminator
25102
25103         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
25104         (check dos line terminator).
25105         (Check_Line_Max_Length): New procedure, split off from the existing
25106         Check_Line_Terminator routine. Separating this out allows -gnatyf to
25107         be properly recognized.
25108
25109         * styleg.adb: Add ??? comment for line terminator reference
25110
25111         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
25112         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
25113
25114         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
25115         (check dos line terminator).
25116         (Check_Line_Max_Length): New procedure, split off from the existing
25117         Check_Line_Terminator routine. Separating this out allows -gnatyf to
25118         be properly recognized.
25119
25120         * stylesw.ads, stylesw.adb:
25121         Add handling for new -gnatyd switch (check dos line terminator)
25122
25123         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
25124         Recognize -gnatwb/-gnatwB switches
25125         Include Warn_On_Bad_Fixed_Value for -gnatg
25126
25127         * usage.adb:
25128         Add line for new -gnatyd switch (check dos line terminator)
25129
25130         * usage.adb: Add lines for -gnatwb/-gnatwB
25131
25132         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
25133
25134         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
25135
25136         * gnat_ugn.texi: Fix overlong lines
25137         Document new -gnatyd switch
25138         Document new -gnatwb/-gnatwB switches
25139
25140 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25141
25142         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
25143         order to retrieve the component list of the type, before examining
25144         individual components.
25145
25146         * sem_type.adb (Covers): Types are compatible if one is the base type
25147         of the other, even though their base types might differ when private
25148         views are involved.
25149
25150 2005-03-29  Thomas Quinot  <quinot@adacore.com>
25151
25152         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
25153         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
25154         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
25155         analyzed if expansion is disabled (which could otherwise cause spurious
25156         error messages if expansion has been disabled due to previous
25157         (unrelated) errors).
25158
25159         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
25160         is disabled, the entity denoted by the argument is the access type
25161         itself, not an underlying record type, so there is no need to go back
25162         to the Corresponding_Remote_Type.
25163
25164 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
25165             Robert Dewar  <dewar@adacore.com>
25166
25167         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
25168         expand a call to an instance of
25169         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
25170         Constructor actual of the instance. A class-wide membership
25171         check is also generated, to ensure that the tag passed to the instance
25172         denotes a type in the class.
25173         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
25174         of Name_Generic_Dispatching_Constructor.
25175
25176         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
25177         05 unit for AI-260-02).
25178
25179         * a-tgdico.ads: New file.
25180
25181         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
25182         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
25183
25184         * snames.ads, snames.adb (Preset_Names): Add entry for
25185         Generic_Dispatching_Constructor.
25186
25187         PR ada/20300
25188         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
25189         character type cases.
25190         (Analyze_Subprogram_Renaming): Add special handling for
25191         the case of renaming of stream attributes when the renaming denotes a
25192         generic formal subprogram association for an abstract formal subprogram.
25193         Check that the attribute is a primitive stream attribute (and not
25194         a class-wide stream attribute) and then rewrite the attribute name
25195         as the name of the appropriate compiler-generated stream primitive.
25196
25197 2005-03-29  Robert Dewar  <dewar@adacore.com>
25198
25199         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
25200         recursive calls.
25201         (Is_Possibly_Unaligned_Object): Correct typo that
25202         resulted in inaccurate result for unaligned scalars within records.
25203
25204 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25205
25206         * freeze.adb (Freeze_Record_Type): If the type of the component is an
25207         itype whose parent is controlled and not yet frozen, do not create a
25208         freeze node for the itype if expansion is disabled.
25209
25210 2005-03-29  Vincent Celier  <celier@adacore.com>
25211
25212         * make.adb (Gnatmake): Don't fail if the main project file is declared
25213         as having no Ada sources. Do not display message "no sources to
25214         compile" in quiet output.
25215
25216 2005-03-29  Doug Rupp  <rupp@adacore.com>
25217
25218         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
25219         extra tools.
25220
25221 2005-03-29  Robert Dewar  <dewar@adacore.com>
25222
25223         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
25224         child.
25225
25226 2005-03-29  Robert Dewar  <dewar@adacore.com>
25227
25228         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
25229         missing TYPE Improve the error message generated when compiling a
25230         limited interface in Ada83 or Ada95 mode.
25231
25232 2005-03-29  Robert Dewar  <dewar@adacore.com>
25233
25234         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
25235         rather than proceed ahead using a junk attribute name.
25236
25237 2005-03-29  Vincent Celier  <celier@adacore.com>
25238
25239         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
25240
25241         * prj-part.adb (Parse_Single_Project): Set the location of a project
25242         on its defining identifier, rather than on the reserved word "project".
25243
25244         * prj-proc.adb (Expression): Adapt to the fact that default of external
25245         references may be string expressions, not always literal strings.
25246         (Recursive_Process): Set Display_Name equal to Name
25247         when Location is No_Location, that is when there is no actual file.
25248         Get the Display_Name of the project from the source, when it is not a
25249         virtual project.
25250         (Process): Use the Display_Name in error messages
25251
25252         * prj-strt.adb (External_Reference): Allow default to be string
25253         expressions, not only literal strings.
25254
25255 2005-03-29  Vincent Celier  <celier@adacore.com>
25256
25257         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
25258         file and the reference symbol file to be the same file.
25259
25260 2005-03-29  Thomas Quinot  <quinot@adacore.com>
25261
25262         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
25263         forbid conversion of a local access-to-subprogram type to a remote one.
25264
25265         * sem_util.adb (Wrong_Type): For a record type that is the expanded
25266         equivalent type for a remote access-to-subprogram type, go back to the
25267         original RAS entity when displaying an error message, so the casing is
25268         the original source casing.
25269
25270 2005-03-29  Robert Dewar  <dewar@adacore.com>
25271
25272         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
25273         on param update.
25274
25275 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25276
25277         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
25278         subtype if code is being pre-analyzed, to prevent un-expanded
25279         references to protected formals, among others.
25280         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
25281         interpretation that can be a call, include the result of the call as a
25282         possible interpretation of the dereference.
25283
25284         * sem_ch5.adb (Process_Bounds): Determine type of range by
25285         pre-analyzing a copy of the original range, and then analyze the range
25286         with the expected type.
25287
25288         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
25289         with an overloaded prefix where not all interpretations yield an
25290         access to subprogram, do not rewrite node as a call.
25291         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
25292         the node as a call once the context identifies the interpretation of
25293         the prefix whose call yields the context type.
25294         (Valid_Conversion): For the case of a conversion between
25295         local access-to-subprogram types, check subtype conformance using
25296         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
25297         detailed error message.
25298
25299 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
25300
25301         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
25302         indicator, indicate that the formal can never be null.
25303         (Process_Formals): If a formal has a non_null indicator, insert the
25304         resulting subtype immediately before the enclosing subprogram decl,
25305         and not at the beginning of the corresponding declarative part, to
25306         prevent access before elaboration (Ada2005).
25307
25308 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25309
25310         PR ada/19956
25311         * utils.c (finish_record_type): Use variable_size when setting sizes.
25312
25313 2005-03-29  Robert Dewar  <dewar@adacore.com>
25314
25315         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
25316         guarantee Unix style line terminators for the output files, even when
25317         running on windows.
25318
25319 2005-03-29  Robert Dewar  <dewar@adacore.com>
25320
25321         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
25322         buffer if an exception is raised.
25323
25324 2005-03-29  Ed Falis  <falis@adacore.com>
25325
25326         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
25327         VxWorks 653 1.4
25328
25329 2005-03-29  Robert Dewar  <dewar@adacore.com>
25330
25331         * sem_util.ads: Minor reformatting
25332         * gnat_rm.texi: Minor editing.
25333
25334 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
25335
25336         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
25337         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
25338
25339 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25340
25341         * adaint.c (__gnat_portable_spawn): Adjust cast.
25342
25343 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
25344
25345         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
25346
25347 2005-03-17  Pascal Obry  <obry@adacore.com>
25348
25349         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
25350         used.
25351
25352         * expect.c (__gnat_waitpid): Moved here from adaint.c.
25353         Reimplement under Win32 using Win32 API.
25354
25355         (__gnat_kill) [Win32]: Properly close the process handle before leaving
25356         this routine.
25357
25358 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
25359
25360         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
25361         (DECL_RENAMED_OBJECT): New accessor macro.
25362         (SET_DECL_RENAMED_OBJECT): New setter macro.
25363
25364         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
25365         object in all cases.  Attach the renamed object to the VAR_DECL.
25366         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
25367         field is not prescribed.
25368
25369         * misc.c (gnat_handle_option): Handle -gnatO separately.
25370         (gnat_print_decl) <VAR_DECL>: New case.
25371         Print the DECL_RENAMED_OBJECT node.
25372
25373         * lang.opt:  Declare separate -gnatO option.
25374
25375         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
25376         pointer, replace it with the renamed object.
25377         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
25378         pointer type if the source is not a fat pointer type whose underlying
25379         array has the same non-zero alias set as that of the destination array.
25380
25381 2005-03-17  Javier Miranda  <miranda@adacore.com>
25382
25383         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
25384         (Get_Inheritance_Depth): Removed.
25385         (Set_Inheritance_Depth): Removed.
25386
25387         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
25388         subprogram Get_Expanded_Name because it is not referenced by the
25389         frontend.
25390
25391         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
25392         (CPP_Get_Inheritance_Depth): Removed.
25393         (CPP_Set_Inheritance_Depth): Removed.
25394
25395         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
25396
25397 2005-03-17  Robert Dewar  <dewar@adacore.com>
25398
25399         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
25400         3, since we now expect GCC 3 to do all the work.
25401
25402 2005-03-17  Javier Miranda  <miranda@adacore.com>
25403
25404         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
25405         of one barrier to avoid wrong usage of this attribute.
25406
25407         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
25408         First_Private_Entity.
25409
25410         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
25411         the subprogram against wrong usage.
25412         Adapt the code to traverse the entities in the
25413         scope of a record_type because in addition to its usage regarding
25414         packages, this subprogram is also called by Expand_N_Freeze_Entity
25415         to install the visible declarations of the enclosing scope of a
25416         record_type_with_private to establish the proper visibility before
25417         freezing the entity and related subprograms.
25418
25419 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
25420
25421         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
25422         entry formals.
25423
25424 2005-03-17  Thomas Quinot  <quinot@adacore.com>
25425
25426         * exp_ch3.adb (Check_Attr): New subprogram.
25427         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
25428         into a new Check_Attr subprogram, in order to provide a more
25429         explanatory error message (including the name of the missing attribute).
25430         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
25431         subprogram determines whether a default implementation exists for a
25432         given stream attribute.
25433         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
25434         Determine whether to generate a default implementation for each stream
25435         attribute separately, as this depends on the specific attribute.
25436
25437         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
25438         limited extension where a stream attribute is missing for a limited
25439         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
25440         generate a bogus reference to the missing attribute to prevent
25441         cascaded errors. Instead, generate a null statement.
25442
25443         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
25444         available for a limited type if it has been specified for an ancestor
25445         of the type.
25446
25447 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
25448
25449         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
25450         entity is an operator.
25451
25452 2005-03-17  Thomas Quinot  <quinot@adacore.com>
25453
25454         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25455         spec, to make this predicate available to other units.
25456
25457         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
25458         reimplementing it.
25459
25460         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
25461         when no distribution runtime library is available.
25462
25463         * sem_res.adb, sem_dist.adb: Disable expansion of remote
25464         access-to-subprogram types when no distribution runtime library is
25465         available.
25466         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
25467         predicate available to other units.
25468
25469         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25470         spec, to make this predicate available to other units.
25471
25472 2005-03-17  Vincent Celier  <celier@adacore.com>
25473
25474         * make.adb (Insert_Project_Sources): Make sure the Q is always
25475         initialized.
25476
25477         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
25478         the default for the tree, not the global default naming.
25479
25480         * prj-proc.adb (Recursive_Process): No need to put the default naming
25481         in the project data, it's already there.
25482
25483 2005-03-17  Doug Rupp  <rupp@adacore.com>
25484
25485         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
25486
25487         * 5xcrtl.ads: Renamed to...
25488         * s-crtl-vms64.ads: ...this new file
25489
25490 2005-03-17  Robert Dewar  <dewar@adacore.com>
25491
25492         PR ada/19519
25493         * namet.adb (Copy_One_Character): Set proper wide character encoding
25494         for upper half character if we have upper half encoding.
25495
25496 2005-03-17  Robert Dewar  <dewar@adacore.com>
25497
25498         * par.adb (Par): Improved msg for attempt to recompile predefined unit
25499
25500 2005-03-17  Thomas Quinot  <quinot@adacore.com>
25501
25502         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
25503         tagged limited type, the TSS is a newly built renaming declaration:
25504         insert it using Set_TSS, not Copy_TSS.
25505
25506 2005-03-17  Javier Miranda  <miranda@adacore.com>
25507
25508         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
25509         Try_Object_Operation): Analyze the object that is accessible
25510         through the prefix of the subprogram call before we apply
25511         the transformation of the object-operation notation.
25512
25513 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
25514
25515         * s-taprob.adb (Initialize_Protection): Initialize the protected
25516         object's owner to Null_Task.
25517         (Lock): If pragma Detect_Blocking is in effect and the caller of this
25518         procedure is already the protected object's owner then Program_Error
25519         is raised. In addition the protected object's owner is updated.
25520         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
25521         of this procedure is already the protected object's owner then
25522         Program_Error is raised.
25523         In addition the protected object's owner is updated.
25524         (Unlock): Remove the ownership of the protected object.
25525
25526         * s-taprob.ads (Protection): Add the field Owner, used to store the
25527         protected object's owner.
25528         This component is needed for detecting one type of potentially blocking
25529         operations (external calls on a protected subprogram with the same
25530         target object as that of the protected action). Document the rest of
25531         the components.
25532
25533         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
25534         Initialize the protected object's owner to Null_Task.
25535         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
25536         caller of this procedure is already the protected object's owner then
25537         Program_Error is raised.
25538         Do not raise Program_Error when this procedure is called from a
25539         protected action.
25540         (Unlock_Entries): Remove the ownership of the protected object.
25541         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
25542         of this procedure is already the protected object's owner then
25543         Program_Error is raised.
25544         Do not raise Program_Error when this procedure is called from
25545         a protected action.
25546
25547         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
25548         used to store the protected object's owner.
25549
25550         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
25551         effect and this procedure (a potentially blocking operation) is called
25552         from whithin a protected action, Program_Error is raised.
25553         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
25554         and this procedure (a potentially blocking operation) is called from
25555         whithin a protected action, Program_Error is raised.
25556
25557 2005-03-17  Vincent Celier  <celier@adacore.com>
25558             Nicolas Setton  <setton@adacore.com>
25559
25560         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
25561         switch, not supported by the linker on Darwin. Add '_' before
25562         <library>init, as this character is added unconditionally by the
25563         compiler.
25564         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
25565         correct one ".dylib". This fixes detection of the archive files when
25566         building library projects.
25567
25568 2005-03-17  Vincent Celier  <celier@adacore.com>
25569
25570         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
25571         -gnat83, -gnat95 and -gnat05.
25572
25573 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
25574
25575         * gnat_ugn.texi: Document gnatmem restriction
25576
25577 2005-03-17  Thomas Quinot  <quinot@adacore.com>
25578
25579         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
25580         cleanup
25581
25582 2005-03-17  Robert Dewar  <dewar@adacore.com>
25583
25584         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
25585         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
25586         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
25587
25588         * casing.adb: Comment improvements
25589
25590 2005-03-17  Pascal Obry  <obry@adacore.com>
25591
25592         * g-expect.adb: Minor reformatting.
25593
25594 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
25595
25596         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
25597         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
25598         to dependencies.
25599
25600 2005-03-15  Vincent Celier  <celier@adacore.com>
25601
25602         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
25603         Add new parameter In_Tree to specify the project tree: needed
25604         by the project manager. Adapt to changes in project manager
25605         using new parameter In_Tree.
25606
25607 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
25608
25609         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
25610         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
25611         ada/bldtools to avoid make -jN failures.
25612
25613 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
25614
25615         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
25616         to NULL_TREE on entry.
25617
25618 2005-03-15  Robert Dewar  <dewar@adacore.com>
25619
25620         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25621         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25622         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25623         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25624         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25625         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
25626         system-interix.ads, system-solaris-sparc.ads,
25627         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25628         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
25629         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
25630         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
25631         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
25632         Compiler_System_Version to be False.
25633
25634         * opt.ads: Add new flag Opt.Address_Is_Private
25635
25636         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
25637         Add new parameter Compiler_System_Version to avoid checking for
25638         completeness of parameters when compiler is compiling itself.
25639         Allows old versions of GNAT to be compiled with new compiler.
25640
25641 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
25642
25643         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
25644         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
25645         calling thread.
25646         (Stack_Base_Available): New flag.
25647         (Get_Page_Size): New overloaded functions imported from C.
25648         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
25649         PROT_ON, PROT_OFF): New constants.
25650         (mprotect): New function imported from C.
25651         (pthread_teb_t): New record type.
25652
25653         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
25654         (Create_Task): Account for the Yellow Zone and the guard page.
25655
25656 2005-03-15  Vincent Celier  <celier@adacore.com>
25657
25658         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25659         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25660         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25661         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
25662         Library_File_Name_For): Add new parameter In_Tree
25663         to specify the project tree: needed by the project manager.
25664         Adapt to changes in project manager using new parameter In_Tree.
25665         Remove local imports, use functions in System.CRTL.
25666
25667         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
25668         to use the project manager.
25669
25670         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
25671         In_Tree to designate the project tree. Adapt to changes in the project
25672         manager, using In_Tree.
25673
25674         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
25675         Copy_Interface_Sources): Add new parameter In_Tree to specify the
25676         project tree: needed by the project manager.
25677         (Build_Library): Check that Arg'Length >= 6 before checking if it
25678         contains "--RTS=...".
25679
25680         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
25681         Library_File_Name_For): Add new parameter In_Tree to specify the
25682         project tree: needed by the project manager.
25683
25684         * prj.ads, prj.adb: Major modifications to allow several project trees
25685         in memory at the same time.
25686         Change tables to dynamic tables and hash tables to dynamic hash
25687         tables. Move tables and hash tables from Prj.Com (in the visible part)
25688         and Prj.Env (in the private part). Move some constants from the visible
25689         part to the private part. Make other constants deferred.
25690         (Project_Empty): Make it a variable, not a function
25691         (Empty_Project): Add parameter Tree. Returns the data with the default
25692         naming data of the project tree Tree.
25693         (Initialize): After updating Std_Naming_Data, copy its value to the
25694         component Naming of Project Empty.
25695         (Register_Default_Naming_Scheme): Use and update the default naming
25696         component of the project tree, instead of the global variable
25697         Std_Naming_Data.
25698         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
25699         Tree is not defaulted, return the default naming data of the Tree.
25700         (Initial_Buffer_Size): Constant moved from private part
25701         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
25702         variables initialized in procedure Initialize.
25703         (Add_To_Buffer): Add two in out parameters to replace global variables
25704         Buffer and Buffer_Last.
25705         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
25706         functions.
25707         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
25708         hash tables.
25709         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25710         for the project tree.
25711         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
25712         constant at the beginning of the package spec, so that they cane be used
25713         in subprograms before their full declarations.
25714         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
25715         (Empty_Project): Add parameter of type Project_Node_Ref
25716         (Private_Project_Tree_Data): Add component Default_Naming of type
25717         Naming_Data.
25718         (Buffer, Buffer_Last): remove global variables
25719         (Add_To_Buffer): Add two in out parameters to replace global variables
25720         Buffer and Buffer_Last.
25721         (Current_Packages_To_Check): Remove global variable
25722         (Empty_Name): Move to private part
25723         (No-Symbols): Make it a constant
25724         (Private_Project_Tree_Data): New type for the private part of the
25725         project tree data.
25726         (Project_Tree_Data): New type for the data of a project tree
25727         (Project_Tree_Ref): New type to designate a project tree
25728         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25729         for the project tree.
25730
25731         * prj-attr.ads: Add with Table; needed, as package Prj no longer
25732         imports package Table.
25733
25734         * prj-com.adb: Remove empty, no longer needed body
25735
25736         * prj-com.ads: Move most of the content of this package to package Prj.
25737
25738         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
25739         designate the project node tree and Packages_To_Check to replace
25740         global variable Current_Packages_To_Check.
25741         Add new parameters In_Tree and Packages_To_Check to local subprograms,
25742         when needed. Adapt to changes in project manager with project node tree
25743         In_Tree.
25744
25745         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
25746         project tree to most subprograms. Move tables and hash tables to
25747         private part of package Prj.
25748         Adapt to changes in project manager using project tree In_Tree.
25749
25750         * prj-makr.adb (Tree): New constant to designate the project node tree
25751         Adapt to change in project manager using project node tree Tree
25752
25753         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
25754         display the Library_Src_Dir and the Library_Dir.
25755         Add new parameter In_Tree to designate the project node tree to most
25756         subprograms. Adapt to changes in the project manager, using project tree
25757         In_Tree.
25758         (Check_Naming_Scheme): Do not alter the casing on platforms where
25759         the casing of file names is not significant.
25760         (Check): Add new parameter In_Tree to designate the
25761
25762         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
25763         designate the project tree.
25764         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
25765
25766         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
25767         to replace those that were in the private part of package Prj.
25768         Add new parameter In__Tree to designate the project node tree to most
25769         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25770         (Post_Parse_Context_Clause): When specifying the project node of a with
25771         clause, indicate that it is a limited with only if there is "limited"
25772         in the with clause, not necessarily when In_Limited is True.
25773         (Parse): Add new parameter In_Tree to designate the project node tree
25774
25775         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
25776         designate the project node tree. Adapt to change in Prj.Tree with
25777         project node tree In_Tree.
25778
25779         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
25780         tree In_Tree in the call to function Empty_Process to give its initial
25781         value to the project data Processed_Data.
25782         Add new parameters In_Tree to designate the project tree and
25783         From_Project_Node_Tree to designate the project node tree to several
25784         subprograms. Adapt to change in project manager with project tree
25785         In_Tree and project node tree From_Project_Node_Tree.
25786
25787         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
25788         to replace those that were in the private part of package Prj.
25789         Add new parameter In_Tree to designate the project node tree to most
25790         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25791
25792         * prj-tree.ads, prj-tree.adb: Add new parameter of type
25793         Project_Node_Tree_Ref to most subprograms.
25794         Use this new parameter to store project nodes in the designated project
25795         node tree.
25796         (Project_Node_Tree_Ref): New type to designate a project node tree
25797         (Tree_Private_Part): Change table to dynamic table and hash tables to
25798         dynamic hash tables.
25799
25800         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
25801         the project tree to most subprograms. Adapt to changes in project
25802         manager using project tree In_Tree.
25803
25804         * makegpr.adb (Project_Tree): New constant needed to use project
25805         manager.
25806
25807 2005-03-15  Olivier Hainque  <hainque@adacore.com>
25808
25809         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
25810         for sigactions with SA_SIGINFO set. Call
25811         __gnat_adjust_context_for_raise before raising, to perform the
25812         potentially required adjustments to the machine context for the GCC
25813         unwinder.
25814
25815         * raise.h (__gnat_adjust_context_for_raise): New prototype.
25816
25817         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
25818         Adjust PC by one in the provided machine context.
25819         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
25820         so that the handler is passed the context structure to adjust prior to
25821         the raise.
25822         (__gnat_error_handler) HPUX: Adjust the signature to match what an
25823         SA_SIGINFO sigaction should look like. Call
25824         __gnat_adjust_context_for_raise before actually raising.
25825         (__gnat_adjust_context_for_raise): Default noop to help PC
25826         adjustments before raise from signal handlers.
25827         (__gnat_error_handler): Indirectly call a predicate function to
25828         determine if a condition should be resignaled or not.
25829         (__gnat_set_resignal_predicate): User interface to modify the predicate.
25830         (__gnat_default_resignal_p): Default GNAT predicate.
25831
25832 2005-03-15  Doug Rupp  <rupp@adacore.com>
25833
25834         * adaint.c: Prefix #include of VMS system header files with vms/
25835         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
25836         Do not define a dummy function "convert_addresses" under Darwin,
25837         not needed.
25838
25839         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
25840         with vms/
25841
25842 2005-03-15  Nicolas Setton  <setton@adacore.com>
25843
25844         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
25845         PPC/AIX.
25846
25847 2005-03-15  Robert Dewar  <dewar@adacore.com>
25848
25849         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
25850         AI-386.
25851
25852         * a-retide.ads: Minor comment changes
25853
25854 2005-03-15  Robert Dewar  <dewar@adacore.com>
25855
25856         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
25857         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
25858         Realloc_For_Chunk to private part of package.
25859         New subprograms for AI-301
25860
25861         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
25862         Get_Line procedure.
25863         Avoid unnecessary use of Get/Set_Wide_String
25864
25865 2005-03-15  Robert Dewar  <dewar@adacore.com>
25866
25867         PR ada/13470
25868         * a-stunau.ads, a-stunau.adb:
25869         Change interface to allow efficient (and correct) implementation
25870         The previous changes to allow extra space in unbounded strings had
25871         left this interface a bit broken.
25872
25873         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
25874
25875         * g-spipat.ads, g-spipat.adb: New interface for Get_String
25876         Minor reformatting (function specs)
25877
25878         * g-spitbo.adb: New interface for Get_String
25879
25880         * g-spitbo.ads: Minor reformatting
25881
25882         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
25883
25884         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
25885
25886 2005-03-15  Javier Miranda  <miranda@adacore.com>
25887             Robert Dewar  <dewar@adacore.com>
25888             Thomas Quinot  <quinot@adacore.com>
25889             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25890
25891         * atree.ads, atree.adb: Add support for Elist24 field
25892
25893         * atree.h: Fix wrong definition of Field27
25894         Add support for Elist16 field
25895         Add support for Elist24 field
25896
25897         * einfo.ads, einfo.adb (Abstract_Interfaces,
25898         Set_Abstract_Interfaces): New subprograms.
25899         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
25900         subprograms.
25901         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
25902         entities rather than a single node.
25903         (Is_Interface, Set_Is_Interface): New subprogram
25904         (First_Tag_Component): New syntesized attribute
25905         (Next_Tag_Component): New synthesized attribute
25906         (Write_Entity_Flags): Upgraded to write Is_Interface
25907         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
25908         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
25909         (Task_Body_Procedure): New subprogram to read this attribute.
25910         (Set_Task_Body_Procedure): New subprogram to set this attribute.
25911         (Has_Controlled_Component): Now applies to all entities.
25912         This is only a documentation change, since it always worked to apply
25913         this to other than composite types (yielding false), but now this is
25914         official.
25915         Update documentation on Must_Be_Byte_Aligned for new spec
25916
25917         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
25918         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
25919         uses of the Access_Disp_Table attribute to reference the first dispatch
25920         table associated with a tagged type. As
25921         part of the implementation of abstract interface types,
25922         Access_Disp_Table has been redefined to contain a list of dispatch
25923         tables (rather than a single dispatch table).
25924         Similarly, upgrade all the references to Tag_Component by the
25925         new attribute First_Tag_Component.
25926         (Find_Inherited_TSS): Moved to exp_tss.
25927         Clean up test in Expand_N_Object_Declaration for cases
25928         where we need to do a separate assignment of the initial value.
25929         (Expand_N_Object_Declaration): If the expression in the
25930         declaration of a tagged type is an aggregate, no need to generate an
25931         additional tag assignment.
25932         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
25933         is to be deleted.
25934         Bit packed array ops are only called if operands are known to be
25935         aligned.
25936         (Component_Equality): When returning an N_Raise_Program_Error statement,
25937         ensure that its Etype is set to Empty to avoid confusing GIGI (which
25938         expects that only expressions have a bona fide type).
25939         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
25940         determine the amount of data to be copied.
25941
25942         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
25943         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
25944             INTERFACE_TYPE_DEFINITION ::=
25945               [limited | task | protected | synchronized] interface
25946                 [AND interface_list]
25947
25948         * par-ch3.adb (P_Type_Declaration): Modified to give support to
25949         interfaces.
25950         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
25951         interfaces.
25952         (P_Interface_Type_Definition): New subprogram that parses the new
25953         syntax rule of Ada 2005 interfaces
25954         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
25955         messages by the correct RENAMES (quotes removed).
25956
25957         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
25958         attribute First_Tag_Component.
25959
25960         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
25961         (Interface_List, Set_Interface_List): New subprograms.
25962         (Interface_Present, Set_Interface_Present): New subprograms.
25963         (Limited_Present, Set_Limited_Present): Available also in derived
25964         type definition nodes.
25965         (Protected_Present, Set_Protected_Present): Available also in
25966         record type definition and
25967         derived type definition nodes.
25968         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
25969         (Task_Present, Set_Task_Present): New subprogram.
25970         (Task_Body_Procedure): Removed.
25971         (Set_Task_Body_Procedure): Removed.
25972         These subprogram have been removed because the attribute
25973         Task_Body_Procedure has been moved to the corresponding task type
25974         or task subtype entity to leave a field free to store the list
25975         of interfaces implemented by a task (for AI-345)
25976         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
25977         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
25978         expression flag Do_Range_Check
25979         (Exception_Junk): Change to Flag7 to accomodate above change
25980         (Box_Present, Default_Name, Specification, Set_Box_Present,
25981         Set_Default_Name, Set_Specification): Expand the expression
25982         "X in N_Formal_Subprogram_Declaration" into the corresponding
25983         two comparisons. Required to use the csinfo tool.
25984
25985         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
25986         "with string" given.
25987
25988         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
25989         expression given.
25990
25991         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
25992         in 2005 mode
25993
25994         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
25995         attribute Task_Body_Procedure rather than the old semantic field that
25996         was available in the task_type_declaration node.
25997
25998         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
25999         interface type definitions.
26000         (P_Formal_Derived_Type_Definition): Modified to handle the list of
26001         interfaces.
26002
26003         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
26004         task type declaration.
26005         (P_Protected): Modified to handle the list of interfaces in a
26006         protected type declaration.
26007
26008 2005-03-15  Doug Rupp  <rupp@adacore.com>
26009             Vincent Celier  <celier@adacore.com>
26010
26011         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
26012         (Gen_Output_File_C): Likewise.
26013         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
26014
26015 2005-03-15  Thomas Quinot  <quinot@adacore.com>
26016
26017         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
26018         is an N_Raise_Constraint_Error node, create a new copy of it without
26019         going through a call to Duplicate_Subexpr.
26020
26021 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26022             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26023             Nicolas Setton  <setton@adacore.com>
26024             Ed Schonberg  <schonberg@adacore.com>
26025
26026         PR ada/19900
26027         PR ada/19408
26028         PR ada/19140
26029         PR ada/20255
26030         * decl.c (gnat_to_gnu_field): Reject aliased components with a
26031         representation clause that prescribes a size not equal to the rounded
26032         size of their types.
26033         (gnat_to_gnu_entity, case E_Component): Always look at
26034         Original_Record_Component if Present and not the entity.
26035         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
26036         of tagged extension types by not making field for components that are
26037         inside the parent.
26038         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
26039         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
26040         expression to the type of the object when the object is constant.
26041         Reverse defer_debug_incomplete_list before traversing it, so that trees
26042         are processed in the order at which they were added to the list. This
26043         order is important when using the stabs debug format.
26044         If we are deferring the output of debug information, also defer this
26045         output for a function return type.
26046         When adding fields to a record, prevent emitting debug information
26047         for incomplete records, emit the information only when the record is
26048         complete.
26049         (components_to_record): New parameter defer_debug.
26050         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
26051         (gnat_to_gnu_field_decl): New function.
26052         (substitution_list, annotate_rep): Call it.
26053         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
26054         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
26055         No longer update discriminants to not be a COMPONENT_REF.
26056         (copy_alias_set): Strip padding from input type; also handle
26057         unconstrained arrays properly.
26058
26059         * gigi.h (write_record_type_debug_info): New function.
26060         Convert to use ANSI-style prototypes. Remove unused
26061         declarations for emit_stack_check, elab_all_gnat and
26062         set_second_error_entity.
26063         (gnat_to_gnu_field_decl): New decl.
26064
26065         * utils.c (write_record_type_debug_info): New function.
26066         (finish_record_type): Delegate generation of debug information to
26067         write_record_type_debug_info.
26068         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
26069         (update_pointer_to): Fix pasto.
26070         (convert) <UNION_TYPE>: Accept slight type variations when
26071         converting to an unchecked union type.
26072
26073         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
26074         replace the N_Freeze_Entity with a null statement.
26075
26076         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
26077         within a constrained subcomponent of an enclosing record, place the
26078         freeze nodes in the scope stack entry for the enclosing record.
26079         (Undelay_Type): New Subprogram.
26080         (Set_Small_Size): Pass T, the type to modify; all callers changed.
26081         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
26082         within records; allow them to have freeze nodes if their base types
26083         aren't frozen yet.
26084
26085         * exp_util.adb (Remove_Side_Effects): Properly test for
26086         Expansion_Delayed and handle case when it's inside an
26087         N_Qualified_Expression.
26088
26089         * sem_ch3.adb (Derived_Type_Declaration): New predicate
26090         Comes_From_Generic, to recognize accurately that the parent type in a
26091         derived type declaration can be traced back to a formal type, because
26092         it is one or is derived from one, or because its completion is derived
26093         from one.
26094         (Constrain_Component_Type): If component comes from source and has no
26095         explicit constraint, no need to constrain in in a subtype of the
26096         enclosing record.
26097         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
26098         Minor change to propagate Is_Ada_2005 flag
26099
26100         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
26101         Expansion_Delayed is False.
26102         (assoc_to_constructor): Ignore fields that have a
26103         Corresponding_Discriminant.
26104         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
26105         function returns "by target", dereference the target pointer using the
26106         type of the actual return value.
26107         <all>: Be prepared for a null gnu_result.
26108         (processed_inline_subprograms): Check flag_really_no_inline
26109         instead of flag_no_inline.
26110         (set_second_error_entity): Remove unused function.
26111         (gnat_to_gnu, case N_Selected_Component): Call
26112         gnat_to_gnu_field_decl.
26113         (assoc_to_constructor): Likewise.
26114
26115 2005-03-15  Robert Dewar  <dewar@adacore.com>
26116             Ed Schonberg  <schonberg@adacore.com>
26117             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26118
26119         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
26120         Must_Be_Byte_Aligned for cases where we do not need to use a
26121         System.Pack_nn unit.
26122
26123         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
26124         as procedures.
26125         Needed now that we do some processing for IN parameters as well. This
26126         may well fix some unrelated errors.
26127         (Expand_Call): Handle case of unaligned objects (in particular those
26128         that come from packed arrays).
26129         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
26130         renamed entity is an inherited operation, re-expand the call using the
26131         original operation, which is the one to call.
26132         Detect attempt to inline parameterless recursive subprogram.
26133         (Represented_As_Scalar): Fix to work properly with private types
26134         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
26135         accurate estimate. Yields True in far fewer cases than before,
26136         improving the quality of code that depends on this test.
26137
26138         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
26139         over both visible and private declarations to remove them from tree,
26140         and mark subprograms declared in package as eliminated, to prevent
26141         spurious use in subsequent compilation of generic units in the context.
26142
26143         * exp_util.ads: Minor cleanup in variable names
26144
26145         * sem_eval.ads, sem_eval.adb: Minor reformatting
26146         (Compile_Time_Known_Bounds): New function
26147
26148 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26149
26150         * exp_ch7.adb (Convert_View): Use base types of underlying types when
26151         determining whether an unchecked conversion is needed for the argument
26152         of an initialization call.
26153
26154 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26155
26156         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
26157         that appears in the instantiation rather than the internal subtype
26158         generated in the wrapper package, to avoid anomalies in gigi when the
26159         target is derived from a private type whose full view is an access type.
26160
26161 2005-03-15  Robert Dewar  <dewar@adacore.com>
26162
26163         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
26164         not needed.
26165         Add documentation to replace the use of this flag
26166         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
26167         the x86_64.
26168
26169 2005-03-15  Thomas Quinot  <quinot@adacore.com>
26170
26171         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
26172         here from exp_attr so it can be shared between exp_attr and exp_dist.
26173         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
26174         all TSS names, not a subset thereof, and the previous name introduced
26175         an unnecessarily confusion that a distinction might exist between
26176         "OK" TSS names and some "not OK" TSS names.
26177
26178 2005-03-15  Doug Rupp  <rupp@adacore.com>
26179
26180         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
26181         Command_Name.
26182
26183 2005-03-15  Pascal Obry  <obry@adacore.com>
26184             Eric Botcazou  <ebotcazou@adacore.com>
26185
26186         PR ada/20226
26187         PR ada/20344
26188         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
26189         when IN_RTS. This is to work around a bootstrap path problem.
26190
26191         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
26192         table and pass it to __gnat_install_SEH_handler().
26193         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
26194
26195         * lang.opt: Fix specification of -fRTS=.
26196
26197 2005-03-15  Doug Rupp  <rupp@adacore.com>
26198             Bernard Banner  <banner@adacore.com>
26199             Vincent Celier  <celier@adacore.com>
26200             Arnaud Charlet  <charlet@adacore.com>
26201
26202         PR ada/6852
26203         This change works fine when gnatlib is built from the gcc directory,
26204         but does not work when using the libada Makefile, since GCC_FOR_TARGET
26205         is not passed to ada/Makefile.in, so more work is needed by a
26206         Makefile/configure expert.
26207
26208         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
26209         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
26210         Setup gnatlink switch -M for x86_64 linux, as it is already setup
26211         for Linux x86.
26212         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
26213         Run ranlib on libgccprefix.a
26214         Define PREFIX_OBJS for Darwin, to build libgccprefix.
26215         (ADA_INCLUDE_SRCS): Split Ada packages.
26216
26217 2005-03-15  Robert Dewar  <dewar@adacore.com>
26218
26219         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
26220
26221         * impunit.adb: Add GNAT.UTF_32
26222
26223         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
26224
26225         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
26226         now uses GNAT.UTF_32).
26227
26228         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
26229         capabilities for categorizing characters using Unicode categories
26230
26231 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26232
26233         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
26234         instantiation that has been rewritten as a package body, retrieve spec
26235         to generate proper name for implicit_with_clause.
26236         (Install_Parents): Recognize a parent that is an instantiation but has
26237         been rewritten as a package declaration during analysis.
26238
26239 2005-03-15  Javier Miranda  <miranda@adacore.com>
26240             Ed Schonberg  <schonberg@adacore.com>
26241
26242         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
26243         parameter reported some error we immediately return. This improves the
26244         behaviour of the frontend in case of errors.
26245         (Install_Parent, Remove_Parent): Introduce new flag
26246         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
26247         ancestor of a generic child unit, when the child is being instantiated.
26248         (Inline_Instance_Body): If we are compiling the private
26249         part or the body of a child unit, restore the proper visibility of the
26250         parents after compiling the instance body.
26251
26252 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26253             Javier Miranda  <miranda@adacore.com>
26254
26255         PR ada/15608
26256         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
26257         of a private type, in which case it is underlying_type that denotes
26258         the proper task. Also modified to use the new entity attribute
26259         that is directly available in the task type and task subtype entities
26260         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
26261         arrays when other dimensions than the first are constrained by
26262         discriminants of an enclosing record.
26263         (Insert_Explicit_Dereference): If the prefix is an indexed component or
26264         a combination of indexed and selected components, find ultimate entity
26265         and generate the appropriate reference for it, to suppress spurious
26266         warnings.
26267         (Note_Possible_Modification): If an entity name has no entity, return.
26268         (Is_Variable): A function call never denotes a variable.
26269         (Requires_Transient_Scope): For record types, recurse only on
26270         components, not on internal subtypes that may have been generated for
26271         constrained components.
26272
26273 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26274
26275         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
26276         Eliminated as candidates for resolution. Both efficient, and avoids
26277         anomalies with operators declared in deleted code.
26278         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
26279         expansion is disabled (as when compiling a generic) to prevent spurious
26280         warnings on prefixes of selected components.
26281
26282 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26283
26284         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
26285         attached to a list before checking whether it appears in the private
26286         declarations of the current package.
26287         (Make_Inequality_Operator): Insert declaration in proper declarative
26288         list rather than just setting the Parent field, so that
26289         Is_Private_Declaration can handle it properly.
26290
26291 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
26292
26293         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
26294         a renaming a body, check that the renamed subprogram in not intrinsic.
26295         (Find_Direct_Name): If several use_visible entities hide
26296         each other, and the context is a predefined file compiled through
26297         rtsfind, keep only the entity that comes from a predefined file.
26298
26299 2005-03-15  Geert Bosch  <bosch@adacore.com>
26300
26301         * s-fatgen.adb (Valid): Extend special exceptions to account for long
26302         long float padding to also cover AMD64 and IA64.
26303
26304 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
26305
26306         * s-imgwch.adb: Add with and use of Interfaces.
26307         (Img_Wide_Character): Change type of Val to Unsigned_16.
26308         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
26309
26310 2005-03-15  Matthew Gingell  <gingell@adacore.com>
26311
26312         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
26313
26314 2005-03-15  Robert Dewar  <dewar@adacore.com>
26315
26316         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
26317
26318         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
26319
26320         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
26321
26322 2005-03-15  Robert Dewar  <dewar@adacore.com>
26323
26324         * s-bitops.adb, s-bitops.ads,
26325         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
26326         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
26327         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
26328         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
26329         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
26330         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
26331         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
26332         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
26333         reformatting.
26334
26335 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26336
26337         * utils2.c (build_binary_op): Fix typo.
26338
26339 2005-03-15  Doug Rupp  <rupp@adacore.com>
26340
26341         * s-crtl.ads (popen,pclose): New imports.
26342
26343 2005-03-15  Cyrille Comar  <comar@adacore.com>
26344
26345         * comperr.adb (Compiler_Abort): remove references to obsolete
26346         procedures in the bug boxes for various GNAT builds.
26347
26348 2005-03-15  Vincent Celier  <celier@adacore.com>
26349
26350         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
26351
26352 2005-03-15  Geert Bosch  <bosch@adacore.com>
26353             Arnaud Charlet  <charlet@adacore.com>
26354             Robert Dewar  <dewar@adacore.com>
26355             Cyrille Comar  <comar@adacore.com>
26356             Sergey Rybin  <rybin@adacore.com>
26357
26358         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
26359         too specific and long-winded to be appropriate for the GNAT User's
26360         Guide.
26361         Warn about use of GCC switches not documented in the GNAT User's Guide,
26362         as these may cause generated code to not conform to Ada semantics.
26363         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
26364         Add documentation for -gnat95 and -gnat05 switches
26365         Remove paragraph documenting obsolete way to refer to third party
26366         libraries.
26367         Add a few references to Ada_05 that were missing.
26368         Update documentation on -gnatZ/-gnatL.
26369         Document limitation when using -m64 under Solaris.
26370         Change the "Name Casing" subsection of the pretty-printer section
26371         according to the changes in the dictionary processing.
26372
26373         * gnat_rm.texi: Document the Ada_05 pragma.
26374         Section on record representation clauses describes the new more
26375         relaxed rules about placement of large packed bit array components.
26376         Add documentation of GNAT.UTF_32
26377
26378 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
26379
26380         * misc.c (gnat_post_options): Turn off structural
26381         aliasing for now.
26382
26383 2005-03-08  Laurent Guerby  <laurent@guerby.net>
26384
26385         * system-linux-sparc.ads: Fix typo in previous commit.
26386
26387 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
26388             Laurent Guerby  <laurent@guerby.net>
26389
26390         PR ada/20035
26391         * system-linux-sparc.ads: New.
26392         * Makefile.in: Add sparc linux entry.
26393
26394 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
26395
26396         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
26397         parameters as unused.
26398
26399 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
26400         Partial merge from libada-gnattools-branch:
26401
26402         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
26403         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
26404         into code in gnattools/Makefile.in.  Remove direct dependencies on
26405         stamp-tools by tools clauses.
26406         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
26407         * config-lang.in: Add gnattools to $lang_dirs.
26408
26409 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
26410
26411         PR ada/19942
26412         * utils.c (gnat_type_for_mode): Return null instead of ICE because
26413         we asked for an unknown mode.
26414
26415 2005-02-12  Richard Henderson  <rth@redhat.com>
26416
26417         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
26418         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
26419
26420 2005-02-10  Andreas Jaeger  <aj@suse.de>
26421
26422         * init.c (__gnat_initialize): Mark parameter as unused.
26423
26424 2005-02-09  Doug Rupp  <rupp@adacore.com>
26425
26426         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
26427         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
26428
26429 2005-02-09  Doug Rupp  <rupp@adacore.com>
26430
26431         * gnatchop.adb (dup, dup2),
26432         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
26433
26434         * gnatlbr.adb (mkdir),
26435         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
26436
26437         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
26438
26439 2005-02-09  Doug Rupp  <rupp@adacore.com>
26440
26441         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
26442
26443 2005-02-09  Robert Dewar  <dewar@adacore.com>
26444             Thomas Quinot  <quinot@adacore.com>
26445             Javier Miranda  <miranda@adacore.com>
26446             Pascal Obry  <obry@adacore.com>
26447             Ed Schonberg  <schonberg@adacore.com>
26448             Doug Rupp  <rupp@adacore.com>
26449             Gary Dismukes  <dismukes@adacore.com>
26450             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26451
26452         * g-zstspl.ads: New file.
26453
26454         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
26455
26456         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
26457         Ada 95 mode
26458         Add definition of Wide_Wide_Space for AI-285
26459
26460         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
26461         interface (to support Ada 95 and Ada 2005 units).
26462         Add Unbounded_IO files
26463         Add entries for Wide_Wide packages for AI-285
26464         Add list of containers packages to Ada 2005 unit list
26465
26466         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
26467         support new Unbounded_IO package cleanly.
26468
26469         * g-utf_32.ads, g-utf_32.adb: New files.
26470
26471         * Makefile.rtl: Add entry for g-utf_32
26472         Add new files for Unbounded_IO
26473         Adjust make file for new AI-285 wide wide packages
26474         Add AI-302 containers to the run time.
26475
26476         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
26477         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
26478         subprograms for AI-301.
26479
26480         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
26481
26482         * a-stunau.ads: Minor comment correction
26483
26484         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
26485         etc.
26486         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
26487         (Check_RPC): Update to match changes in expanded code.
26488         Clean up unused entity.
26489
26490         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
26491         was not taken into account.
26492         This includes proper initialization with Normalize_Scalars.
26493         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
26494         normalize scalars cases (particularly the latter) to do a better job
26495         of finding invalid representations.
26496
26497         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
26498
26499         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
26500         used
26501
26502         * exp_dist.adb: Add support for wide wide character type
26503         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
26504         private part, generate stub bodies at the end of the private part,
26505         not the visible part.
26506         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
26507         PolyORB support.
26508         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
26509         generic wrapper to execute final processing after completing the
26510         expansion of the RPC receiver for an RACW.
26511
26512         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
26513         packages and attributes.
26514         (Preset_Names): Addition of the new reserved words of Ada 2005,
26515         that is interface, overriding and synchronized.
26516         (Get_Pragma_Id): Give support to the use of the new reserved word
26517         "interface" as a pragma name.
26518         (Is_Pragma_Name): Give support to the use of the new reserved word
26519         "interface" as a pragma name.
26520         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
26521         attribute implementation.
26522
26523         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
26524         checks to entities that are output parameters of Asm operations.
26525         Handle the Stream_Size attribute.
26526         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
26527
26528         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
26529
26530         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
26531         for second parameter being 0.0.
26532         Add support for wide wide character type.
26533         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
26534
26535         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
26536         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
26537         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
26538         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
26539         for wide wide character cases.
26540
26541         * cstand.adb: Create entities for Wide_Wide_Character and
26542         Wide_Wide_String.
26543
26544         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
26545         accordance with AI-258.
26546         Add new declarations for 16/32 bit C character types (Part of AI285)
26547
26548         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
26549         (Obsolescent_Warning): New field
26550         (Rep_Clause): New local subprogram used to share code. Returns the rep
26551         clause for which the name is given in parameter.
26552         (Has_Stream_Size_Clause): New routine.
26553         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
26554         (Address_Clause): Implementation is now using Rep_Clause.
26555         (Alignment_Clause): Idem.
26556         (Size_Clause): Idem.
26557
26558         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
26559         entity in non-Ada 2005 mode and generate warning.
26560
26561         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
26562         (Prag): Code cleanup. Remove old gnat pragma "overriding"
26563
26564         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
26565         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
26566         on the named unit if the pragma is not in the current compilation unit,
26567         so that elaboration calls in the current unit can set up an elaboration
26568         dependency on the named unit, as needed.
26569         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
26570         subprogram as well as for subprograms declared within a package.
26571         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
26572         pragma overriding.
26573
26574         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
26575         to z) to avoid some instances of duplication for Wide_Wide packages.
26576
26577         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
26578         characters.
26579
26580         * scn.adb: Char_Literal_Value field is now a Uint
26581
26582         * scng.adb: Significant rewrite to handle new Ada 2005 features
26583         allowing wide and wide wide characters in program text, e.g. for
26584         identifiers, as described in AI-285.
26585         (Set_Reserved): New procedure, makes setting up keywords cleaner.
26586         (Initialize_Scanner): Register the new reserved words of Ada 2005.
26587         (Scan): Give support to the new reserved words.
26588
26589         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
26590         warning notifying that interface, overriding, and synchronized are
26591         new reserved words.
26592         (P_Pragma): Allow the use of the new reserved word "interface" as
26593         a pragma name.
26594
26595         * gnatls.adb, gnatbind.adb,
26596         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
26597         identifiers named "interface" to "SAL_Interface".
26598
26599         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
26600         (Structured Exception handling).
26601         (Gen_Main_C): Idem.
26602
26603         * bindgen.adb:
26604         (Gen_Main_Ada): Set the default exit code if specified.
26605         (Gen_Main_C): Likewise.
26606         Part of *DC20-006.
26607         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
26608         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
26609
26610         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
26611         new -Xnnn switch.
26612
26613         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
26614         has a collision with the new Ada 2005 "interface" reserved word.
26615
26616         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
26617         generate a warning notifying that interface, overriding, and
26618         synchronized are new reserved words.
26619
26620         * scans.ads (Token_Type): Addition of the tokens corresponding to the
26621         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
26622         and Tok_Synchronized.
26623
26624         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
26625         "dispatching" rather than "primitive" operations, since dispatching
26626         calls are now allowed to abstract formal subprograms (which are not
26627         primitive).
26628         Char_Literal_Value field is now a Uint
26629         (Resolve_Slice): If the prefix is an access to an unconstrained array,
26630         compute the actual subtype of the designated object to impose the proper
26631         index constraints.
26632         (Resolve_Selected_Component): Do not insert an access check if the
26633         prefix is an access type: such a node is expanded into an explicit
26634         dereference, on which the access check is performed anyway. Removes
26635         expensive duplicate checks.
26636         (Resolve_Call): Use new flag Is_Obsolescent and field
26637         Obsolescent_Warning so that pragma Obsolescent works on library
26638         subprograms.
26639         Add support for wide wide character type
26640         (Resolve_Allocator): Replace the error message on wrong null-exclusion
26641         value by a warning message.
26642         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
26643         as fixed-point, and one of the operands is non-static and universal, it
26644         can only be an illegal exponentiation operation, in which case there is
26645         no real value to retrieve.
26646
26647         * exp_strm.adb: Add support for wide wide character type
26648         (Build_Elementary_Input_Call): Compute the size of the stream element by
26649         querying the rep chain to find the Stream_Attribute attribute value.
26650         (Build_Elementary_Write_Call): Ditto.
26651
26652         * sem_aggr.adb: Char_Literal_Value field is now a Uint
26653         Add support for wide wide character type
26654         Replace the error messages on wrong null-exclusion value by warnings
26655         as described in Ada 2005.
26656         (Resolve_Extension_Aggregate): Document the fact that the error
26657         message on class-wide expressions in extensions aggregates.
26658
26659         * sem_case.adb: Add support for wide wide character type
26660
26661         * sem_ch13.adb: Add support for wide wide character type
26662         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
26663
26664         * sem_ch3.adb: Add support for wide wide character type
26665         (Process_Subtype): If constraint is illegal for the type, set Ekind of
26666         now-useless Itype, to prevent cascaded errors on a compiler built
26667         without -gnatp.
26668
26669         * sem_ch8.adb: Add with and use of Sem_Disp.
26670         (Analyze_Subprogram_Renaming): Replace unclean uses of
26671         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
26672         of Corresponding_Spec to Empty).
26673         (Attribute_Renaming): Replace use of Corresponding_Spec with
26674         Corresponding_ Formal_Spec and simplify condition.
26675         (Use_One_Package): Check that scope of homonym of identifier is defined,
26676         before checking whether it is a wrapper package.
26677         Add support for wide wide character type
26678
26679         * sem_eval.adb: Add support for wide wide character type.
26680         (Eval_Arithmetic_Op): Check for compile time known signed integer
26681         overflow in the non-static case.
26682         (Subtypes_Statically_Match): A formal scalar type and its base type do
26683         not statically match.
26684
26685         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
26686         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
26687         subtype).
26688         (Unit_Declaration_Node): Ditto.
26689         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
26690         has a packed array type, the prefix has been rewritten into a type
26691         conversion. Determine variable-ness from the converted expression.
26692         Handle wide wide character cases.
26693
26694         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
26695
26696         * stringt.ads, stringt.adb: Handle full UTF-32 range.
26697         Remove ["0A"] from comment, since it can look like a line terminator.
26698         Currently we don't permit this, but this is under discussion by the
26699         ARG, and it is easy enough to use a different example.
26700
26701         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
26702         handling UTF-32 encoding for wide wide character.
26703         Implement new brackets coding ["hhhhhhhh"]
26704         Add UTF-8 encodings for full UTF-32 range
26705
26706         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
26707
26708         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
26709         bit range Add full UTF-32 support.
26710         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
26711         notify that constraint error will be raised at run-time
26712         because a null value is assigned to a null-excluding object.
26713         Remove some obsolete declarations and make Char_Code
26714         unsigned.
26715
26716         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
26717         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
26718         Rcheck subprograms.
26719
26720         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
26721         wrong null-exclusion value by a warning message.
26722         (Enable_Range_Check): Do range check if the prefix is an
26723         explicit dereference whose designated object is an unconstrained array.
26724         Current algorithm for removing duplicate checks is over-eager in this
26725         case.
26726
26727         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
26728         null-exclusion value by a warning message
26729
26730         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
26731         completely. Add support for Uint2 field
26732
26733         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
26734         exp_prag.adb: Char_Literal_Value field is now a Uint.
26735
26736         * exp_util.adb (Insert_Actions): Replace
26737         N_Formal_Subprogram_Declaration by
26738         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
26739         Char_Literal_Value field is now a Uint.
26740
26741         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
26742         defined for subprogram renaming declarations. When set, the field
26743         indicates the defining entity of a corresponding formal subprogram
26744         when the renaming corresponds to a formal subprogram association in an
26745         instantiation.
26746         (Set_Corresponding_Formal_Spec): New procedure to return
26747         Corresponding_Formal_Spec field.
26748         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
26749         (which is now a subtype).
26750         Char_Literal_Value field is now a Uint
26751
26752         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
26753         pointer to the base of the dispatch table.
26754         Minor changes to comments.
26755         (Controlling_Type): New function for determining the tagged type
26756         associated with a tagged primitive subprogram.
26757         (Expand_Dispatching_Call): Add support for a controlling actual that is
26758         directly a value of type Ada.Tag rather than a tagged object.
26759
26760         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
26761         describing the new layout.
26762         (Dispatch_Table): The expander computes the actual array size, allocates
26763         the Dispatch_Table record accordingly, and generates code that displaces
26764         the base of the record after the Typeinfo_Ptr component. The access to
26765         these components is done by means of local functions.
26766         (Offset_To_Top): New function.
26767         (Typeinfo_Ptr): New function.
26768         (Get_TSD): Modified to access the new position of the TSD.
26769         (Set_TSD): Modified to save the TSD in its new position.
26770
26771         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
26772         case of formal abstract subprograms. Add check and message for -gnat05.
26773         Update comments.
26774
26775         * sem_ch12.adb: Add with and use for Sem_Disp.
26776         (Analyze_Associations): Minor change from "=" to "in" for use of
26777         N_Formal_Subtype_Declaration (which is now a subtype).
26778         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
26779         N_Formal_Subtype_Declaration (which is now a subtype).
26780         (Analyze_Formal_Subprogram): Add handling for
26781         N_Formal_Abstract_Subprogram, marking the formal as abstract and
26782         dispatching, setting the controlling status of the formal parameters
26783         and result, and issuing an error if there is no controlling type for
26784         the formal subprogram.
26785         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
26786         which is an unclean use of that field, we set the new field
26787         Corresponding_Formal_Spec to make the formal subprogram available to
26788         processing in Analyze_Subprogram_Declaration.
26789         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
26790         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
26791         Constrained, so that it is is does not statically match its anonymous
26792         base type.
26793
26794         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
26795         abstract formal subprograms in error check for functions returning
26796         abstract types. Set scope of new designator for
26797         a parameterless subprogram, so that it is available when checking the
26798         body for nested subprograms, before full analysis of said body.
26799         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
26800         subprogram only if inner one comes from source.
26801         (Analyze_Function_Call): If the call is given in object notation, the
26802         analysis of the name rewrites the node and analyzes it with the proper
26803         argument list. After analyzing the name, if the call has been rewritten
26804         and the result type is set, no further analysis is needed.
26805         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
26806         mark in function specification, in a context where the formals are
26807         visible and hide outer homographs.
26808
26809         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
26810         as the tagged type for the cases of abstract formal subprograms and
26811         renamings of those.  Clean up spec comments.
26812         (Check_Dispatching_Context): Add error message to indicate "abstract
26813         procedure", covering the case of a call to a formal abstract procedure
26814         that has statically tagged operands.
26815         (Check_Dispatching_Call): Check for the case of an actual given by
26816         a tag-indeterminate function call whose type is an ancestor of the
26817         containing call's associated tagged type. This situation can occur
26818         for inherited primitives with function defaults. In this case we
26819         use the tagged type's tag directly as the controlling argument for
26820         the calls.
26821         (Expand_Call): Name change on call to Expand_Dispatch_Call.
26822
26823         * sprint.adb (Sprint_Node_Actual): Split
26824         N_Formal_Subprogram_Declaration into two alternatives for the new
26825         cases N_Formal_Abstract_Subprogram_Declaration and
26826         N_Formal_Concrete_Subprogram_Declaration.
26827         Char_Literal_Value field is now a Uint.
26828
26829         * trans.c: Get rid of junk Uint2 reference.
26830         Char_Literal_Value field is now a Uint.
26831         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
26832         (gigi): Correct third arg to gimplify_body.
26833
26834         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
26835         (TYPE_LANG_FLAG_0): Check for record or union.
26836
26837         * treepr.adb: Char_Literal_Value field is now a Uint
26838
26839         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
26840         UI_From_CC.
26841
26842         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
26843         Add full UTF-32 support
26844         Char_Code is now 32 bits
26845
26846         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
26847         wide character UTF_32 line terminators.
26848         Initialize Main_Source_File to avoid error when no main
26849         source is loaded.
26850
26851         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
26852         (Main_Source_File) when no main source has been loaded, to avoid
26853         potential crash.
26854
26855 2005-02-09  Robert Dewar  <dewar@adacore.com>
26856
26857         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
26858         Fix name of Set routine
26859
26860         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
26861         fixed packages.
26862
26863         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
26864         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
26865         fixed packages
26866
26867         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
26868         forms of Get_Line subprograms for AI-301.
26869
26870         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
26871         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
26872         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
26873         a-stwima.ads: Minor reformatting.
26874
26875 2005-02-09  Doug Rupp  <rupp@adacore.com>
26876             Thomas Quinot  <quinot@adacore.com>
26877
26878         * adaint.c, adaint.h
26879         [VMS] (to_ptr32): New function.
26880         (MAYBE_TO_PTR32): New macro.
26881         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
26882         for pointer size.
26883         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
26884         [VMS] (#define fork()): Remove since unneccessary.
26885         (__gnat_set_close_on_exec): New routine to support
26886         GNAT.OS_Lib.Set_Close_On_Exec.
26887
26888         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
26889         the parent side as close-on-exec so that they are not inherited by the
26890         child.
26891
26892         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
26893         set or clear the FD_CLOEXEC flag on a file descriptor.
26894
26895 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
26896             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26897
26898         PR ada/19386
26899         * decl.c:
26900         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
26901         on the field if Pragma Component_Alignment (Storage_Unit).
26902         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
26903         side-effects as if it were a constant; also make SAVE_EXPR to protect
26904         side-effects.
26905         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
26906         UNION_TYPE.
26907         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
26908         (components_to_record): Test it.
26909         Fix improper usage of REFERENCE_CLASS_P.
26910
26911         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
26912         RECORD_TYPE.
26913
26914         * utils2.c: Minor reformatting.
26915
26916         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
26917         handle other cases like RECORD_TYPE.
26918
26919         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
26920
26921 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
26922
26923         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
26924         component of an array of arrays in an assignment context, and the
26925         aggregate has component associations that require sliding on
26926         assignment, force reanalysis of the aggregate to generate a temporary
26927         before the assignment.
26928         (Must_Slide): Make global to the package, for use in Gen_Assign.
26929
26930 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
26931
26932         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
26933         unchecked union with no inferable discriminants, return a
26934         Raise_Program_Error node, rather than inserting it at the point the
26935         type is frozen.
26936         (Expand_Record_Equality, Component_Equality): Handle properly the case
26937         where some subcomponent is an unchecked union whose generated equality
26938         code raises program error.
26939
26940 2005-02-09  Doug Rupp  <rupp@adacore.com>
26941
26942         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
26943         [VMS] (#define exit hack): Remove.
26944
26945 2005-02-09  Pascal Obry  <obry@adacore.com>
26946             Arnaud Charlet  <charlet@adacore.com>
26947
26948         * init.c (__gnat_initialize): Add a new parameter eh which contains the
26949         address of the exception registration. The Win32 version of this
26950         routine calls __gnat_install_SEH_handler() to initialize the SEH
26951         (Structured Exception Handling) handler.
26952         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
26953         SEH (Structured Exception Handling) now.
26954         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
26955         (__gnat_initialize for ppc-vxworks): Adjust comments and the
26956         preprocessor condition protecting the call to the extra eh setup
26957         subprogram, which is only available for the ppc target.
26958         (__gnat_clear_exception_count): replaced reference to
26959         variable taskIdCurrent by call to taskIdSelf(), cleaner.
26960
26961         * seh_init.c: New file.
26962
26963         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
26964         (GNATBIND_OBJS): Idem.
26965
26966         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
26967         routine takes a new parameter (a pointer to the exception registration
26968         for the SEH (Structured Exception Handling) support.
26969
26970         * raise.h: (__gnat_install_SEH_handler): New prototype.
26971         Update copyright notice.
26972
26973         * s-tassta.adb (Task_Wrapper): Declare the exception registration
26974         record and initialize it by calling __gnat_install_SEH_handler.
26975
26976 2005-02-09  Vincent Celier  <celier@adacore.com>
26977
26978         * make.adb (Gnatmake): Do not fail when the main project has no object
26979         directory.
26980
26981 2005-02-09  Doug Rupp  <rupp@adacore.com>
26982
26983         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
26984         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
26985         [VMS]: Add translations for g-enblsp.adb.
26986
26987         * s-asthan-vms.adb: Removed.
26988         * s-asthan-vms-alpha.adb: Added.
26989
26990 2005-02-09  Pascal Obry  <obry@adacore.com>
26991
26992         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
26993         (LIBGNAT_OBJS): Add seh_init.o.
26994
26995 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
26996
26997         PR ada/16592
26998         * Makefile.in: Link all gnat tools with -static-libgcc, since
26999         -shared-libgcc is now used by default on some systems (e.g. linux with
27000         recent binutils).
27001         Remove references to Makefile.prolog/generic, no longer used.
27002
27003 2005-02-09  Vincent Celier  <celier@adacore.com>
27004
27005         * prj-makr.adb (Process_Directory): Put file name in canonical case
27006         before matching against the patterns.
27007         If gnatname has been invoked as <prefix>-gnatname
27008         then invoke the compiler as <prefix>-gcc, not just "gcc".
27009
27010 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27011
27012         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
27013         with expansion disabled. The actual subtype is needed among other
27014         places when the selected component appears in the context of a loop
27015         bound, and denotes a packed array.
27016         (Operator_Check): Always use the first subtype in the
27017         error message, to avoid the appearance of internal base types.
27018         (Transform_Object_Operation): Copy each actual in full
27019         to the parameter associations of the constructed call, rather than
27020         using the shallow copy mechanism of New_Copy_List. This ensures that
27021         the chaining of named associations is done properly.
27022         (Complete_Object_Operation): Rewrite node, rather than
27023         replacing it, so that we can trace back to the original selected
27024         component.
27025
27026         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
27027         and calls that use object notation, if the called function is not
27028         declared  in a withed unit, place the elaboration constraint on the
27029         unit in the context that makes the function accessible.
27030         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
27031         imposes an elaboration constraint between two packages.
27032
27033 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
27034
27035         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
27036         views of a private type after handling its private dependents, to
27037         maintain proper stack discipline between entry and exit from the
27038         package.
27039
27040 2005-02-09  Cyrille Comar  <comar@adacore.com>
27041
27042         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
27043         Minor reformatting.
27044
27045 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27046
27047         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
27048         fields for foreign threads.
27049
27050 2005-02-09  Doug Rupp  <rupp@adacore.com>
27051
27052         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
27053         recursion warnings when compiled with -gnatdm.
27054
27055 2005-02-09  Robert Dewar  <dewar@adacore.com>
27056
27057         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
27058         Slight fix to documentation of -gnaty with no parameters
27059
27060         * xr_tabls.ads: Add ??? comment for missing overall comment
27061
27062         * xsinfo.adb: Make default file name be sinfo.h, since this is what
27063         we now use by default.
27064
27065         * xsnames.adb: Adjust end of file test to look for five space followed
27066         by '#' instead of six spaces. The format of xsnames.adb was modified
27067         in the last update.
27068
27069         * a-numeri.ads: Add reference to AI-388 for greek letter pi
27070         identifier.
27071
27072         * clean.adb: Minor reformatting.
27073
27074         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
27075         gnatname.adb: Minor reformatting
27076         Add 2005 to copyright output when utility is run
27077
27078         * csets.adb: Eliminate obsolete comment
27079
27080         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
27081         Update comments.
27082
27083         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
27084
27085 2005-02-09  Sergey Rybin  <rybin@adacore.com>
27086
27087         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
27088         the difference between compact and incompact layout and add the record
27089         representation clause to the example illustrating different layouts.
27090         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
27091         component clauses").
27092
27093 2005-02-09  Florian Villoing  <villoing@adacore.com>
27094
27095         * gnat_ugn.texi: Fix typos.
27096         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
27097         @file.
27098         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
27099         in the generated documentation.
27100
27101 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27102
27103         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
27104         longer supported.
27105         Update linker wrapper when linking with non GNU C++.
27106
27107 2005-02-09  Pascal Obry  <obry@adacore.com>
27108
27109         * gnat_ugn.texi:
27110         Document the procedure to debug the DllMain routine on Windows.
27111         Add note about -funwind-tables and mixed Ada and C/C++ programming in
27112         ZCX mode.
27113         Document new BIND qualifer /RETURN_CODES=VMS.
27114
27115 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
27116
27117         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
27118         Edited gnatmetric chapter
27119
27120 2005-02-09  Robert Dewar  <dewar@adacore.com>
27121
27122         * gnat_rm.texi:
27123         Changes to document new wide wide character support
27124         For AI-285
27125         Update documentation on Normalize_Scalars and Initialize_Scalars
27126
27127 2005-02-09  Pascal Obry  <obry@adacore.com>
27128
27129         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
27130
27131 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
27132
27133         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
27134         from the VxWorks kernel) that is needed for getting the active
27135         priority of the different tasks.
27136
27137         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
27138         Use a pragma Elaborate_Body in the spec file instead.
27139         Noticed by code reading.
27140
27141 2005-02-09  Thomas Quinot  <quinot@adacore.com>
27142
27143         * exp_util.ads: Minor correction in comment.
27144
27145 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27146
27147         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
27148         since this procedure is now too complex to be worth inlining.
27149
27150 2005-02-09  Richard Henderson  <rth@redhat.com>
27151
27152         * utils.c (gnat_define_builtin): Remove.
27153         (gnat_install_builtins): Use build_common_builtin_nodes.
27154
27155 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
27156
27157         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
27158         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
27159         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
27160         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
27161         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
27162         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
27163         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
27164         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
27165         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
27166         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
27167         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
27168         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
27169         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
27170         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
27171         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
27172         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
27173         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
27174         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
27175         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
27176         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
27177         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
27178         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
27179         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
27180         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
27181         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
27182         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
27183         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
27184         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
27185         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
27186         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
27187         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
27188         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
27189         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
27190         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
27191         library.
27192
27193 2005-01-27  Laurent Guerby  <laurent@guerby.net>
27194
27195         * Makefile.in: Fix a-intnam.ads from previous commit,
27196         add 2005 to copyright.
27197         * a-intman-rtems.ads: Renamed to...
27198         * a-intnam-rtems.ads:
27199
27200 2005-01-27  Laurent Guerby  <laurent@guerby.net>
27201
27202         * Makefile.in: Rename GNAT RTEMS specific files.
27203         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
27204         5rosinte.ads, 5rparame.adb: Replaced by files below.
27205         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
27206         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
27207
27208 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
27209             Laurent Guerby  <laurent@guerby.net>
27210
27211         PR ada/19488
27212         * 5rosinte.ads: Add No_Key constant.
27213         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
27214         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
27215
27216 2005-01-26  Laurent Guerby  <laurent@guerby.net>
27217
27218         PR ada/19414
27219         * i-cobol.adb (Valid_Numeric): Handle zero length case.
27220
27221 2005-01-20  Richard Henderson  <rth@redhat.com>
27222
27223         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
27224         a-intnam-linux.ads and system-linux-alpha.ads.
27225         * a-intnam-linux-alpha.ads: Remove file.
27226         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
27227         * system-linux-alpha.ads: New file.
27228
27229 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
27230
27231         PR ada/13470
27232         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
27233         set to the new string.
27234
27235 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
27236
27237         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
27238         to True.
27239
27240 2005-01-18  Richard Henderson  <rth@redhat.com>
27241
27242         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
27243         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
27244         for alpha-linux.
27245         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
27246
27247 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
27248
27249         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
27250         (GCC_ZCX_Support): Likewise.
27251
27252 2005-01-11  Bastian Blank  <waldi@debian.org>
27253
27254         * system-linux-s390.ads: Define Preallocated_Stacks.
27255         * system-linux-s390x.ads: Likewise.
27256
27257 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
27258
27259         * gnat_ugn.texi: Fix texi errors with null variables.
27260
27261 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27262
27263         * gen-soccon.c: New utility program to generate g-soccon.ads
27264         automatically.
27265
27266         * socket.c, gsocket.h: Split inclusion of system header files into a
27267         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
27268
27269         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
27270         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27271         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
27272         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27273         should not be edited by hand anymore, but should be regenerated using
27274         gen-soccon.
27275
27276 2005-01-03  Robert Dewar  <dewar@adacore.com>
27277             Ed Schonberg  <schonberg@adacore.com>
27278             Vincent Celier  <celier@adacore.com>
27279
27280         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
27281         on/off, since this is an obsolescent feature, for which we now generate
27282         a warning.
27283
27284         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
27285         warning mode is set and obsolescent usage of this attribute occurs.
27286         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
27287         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
27288         predates, and partly motivates, the adoption of the AI.
27289         Implement new Ada 2005 attribute Mod
27290
27291         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
27292         attribute Mod.
27293
27294         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
27295
27296         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
27297         pragma restrictions.
27298         New entry for Ada 2005 attribute Mod.
27299
27300         * par-prag.adb:
27301         Add recognition of new pragma Restrictions No_Dependence
27302         Recognize restriction No_Obsolescent_Features at parse time
27303
27304         * bcheck.adb: Add circuitry for checking for consistency of
27305         No_Dependence restrictions.
27306
27307         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
27308         restrictions.
27309
27310         * restrict.ads, restrict.adb: Add subprograms to deal with
27311         No_Dependence restrictions.
27312
27313         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
27314         restrictions.
27315
27316         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
27317         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
27318
27319         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
27320         dummy parameter to scng instantiation.
27321         Needed for new restriction No_Obsolescent_Features
27322
27323         * scn.adb: (Obsolescent_Check): New procedure
27324         Needed for new restriction No_Obsolescent_Features
27325
27326         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
27327         specified by AI-285, needed for implementation of AI-388 (adding greek
27328         pi to Ada.Numerics).
27329         Add new generic formal to scng, needed for new restriction
27330         No_Obsolescent_Features.
27331
27332         * s-rident.ads: Add new restriction No_Obsolescent_Features.
27333
27334         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
27335         restrictions lines.
27336         (Scan_ALI): When finding an unexpected character on an R line, raise
27337         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
27338         Ignore_Errors is True, default restrictions are set and scanning of the
27339         ALI file continues with the next line. Also, when Bad_R_Line is raised
27340         and Ignore_Errors is True, skip to the end of le line.
27341
27342         * sem_ch10.adb: Check that explicit with's do not violate
27343         No_Dependence restrictions.
27344         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
27345         illegal context clauses containing child units of instance.
27346
27347         * sem_prag.adb: Processing and checking for new No_Dependence
27348         restrictions.
27349         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
27350         analyze and check the External argument.
27351
27352         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
27353
27354 2005-01-03  Robert Dewar  <dewar@adacore.com>
27355
27356         * atree.adb: Add a fifth component to entities
27357         This allows us to add 32 flags and four new fields
27358
27359         * atree.ads: Add a fifth component to entities
27360         This allows us to add 32 flags and four new fields
27361
27362         * einfo.ads, einfo.adb: Document new fields and new flags now available
27363         Add routines for printing new fields
27364
27365         * treepr.adb: Call routines to print out additional fields if present
27366
27367 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27368
27369         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
27370         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
27371
27372         * Makefile.in: Add support to build shared Ada libraries on solaris x86
27373         Remove gpr2make, replaced by gprmake.
27374         Remove references to gnatmem and libaddr2line.
27375         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
27376         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
27377         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
27378         a-numaux-darwin.ads and a-numaux-darwin.adb
27379         Enable mlib-tgt-lynxos.adb on lynxos.
27380
27381         * Make-lang.in: Remove rules for gpr2make.
27382         When generating sdefault.adb, do not call Relocate_Path
27383         on S3 for function Target_Name, as it is not a path.
27384         Remove references to gnatmem and libaddr2line.
27385
27386         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
27387         files.
27388
27389 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
27390
27391         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
27392         address is incompatible with its base type alignment constraints when
27393         this can be decided statically.
27394
27395 2005-01-03  Olivier Hainque  <hainque@adacore.com>
27396
27397         * decl.c (compatible_signatures_p): New function. The intended purpose
27398         is to check if two function signatures for a call-site and a callee are
27399         compatible enough for the call to be valid. The underlying purpose is
27400         to check if a call to a mapped builtin is using the right interface.
27401         The current code actually does not check antyhing - this a placeholder
27402         for future refinements.
27403         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
27404         builtin calls for convention Intrinsic.
27405
27406         * gigi.h (builtin_decl_for): Declare (new function).
27407
27408         * utils.c (gnat_install_builtins): Install the target specific builtins.
27409         (builtin_decl_for): New function, provide a dummy body for now.
27410
27411 2005-01-03  Geert Bosch  <bosch@adacore.com>
27412
27413         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
27414         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27415         (Pred): Implement in terms of Succ.
27416
27417         * trans.c (convert_with_check): Reimplement conversion of float to
27418         integer.
27419
27420 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27421             Vincent Celier  <celier@adacore.com>
27422
27423         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
27424         bounds can be negative, and must be declared Int, not Nat.
27425
27426         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
27427         array is checked after using the index in the array.
27428
27429         * makegpr.adb (Add_Switches): Check if there is a package for the
27430         processor. If there is no package, do not look for switches.
27431
27432 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27433
27434         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
27435         generation of predefined stream operations (specs and bodies) should
27436         proceed. Under various restrictions these subprograms must not be
27437         generated.
27438
27439 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27440
27441         * exp_dist.adb:
27442         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
27443         amount of PCS-specific code in RACW stubs generation.
27444         (Copy_Specification): Set Etype on copied formal parameter entities, as
27445         this information is needed for PolyORB stubs generation.
27446         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
27447         variable Dynamic_Async.
27448         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
27449         (Build_RPC_Receiver_Specification): Make generic again, as recent
27450         changes have allowed RPC receivers to have the same profile for both
27451         variants of the PCS.
27452         Reorganise RPC receiver generation to reduce differences between the
27453         structure of GARLIC and PolyORB RPC receivers.
27454         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
27455         PCS-specific.
27456         Simplify elaboration code for RCI packages.
27457
27458         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
27459         generation to reduce differences between the structure of GARLIC and
27460         PolyORB RPC receivers.
27461
27462         * s-stratt.adb: Fix typo in comment.
27463
27464 2005-01-03  Thomas Quinot  <quinot@adacore.com>
27465
27466         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
27467         copied from Make_Init_Call).
27468
27469         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
27470         reads and assignments on a temporary variable declared with appropriate
27471         discriminants.
27472
27473 2005-01-03  Robert Dewar  <dewar@adacore.com>
27474
27475         * i-c.adb (To_C): Raise CE if string is null and Append_Null
27476
27477 2005-01-03  Robert Dewar  <dewar@adacore.com>
27478
27479         * i-cstrin.adb (Update): Do not append a null in form called with a
27480         String. This avoids unintended behavior.
27481
27482 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27483
27484         PR ada/17527
27485         * init.c: Fix warnings on Free BSD section.
27486
27487 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27488
27489         PR ada/16949
27490         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
27491         xsinfo.adb).
27492
27493 2005-01-03  Vincent Celier  <celier@adacore.com>
27494
27495         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
27496         libraries when Unique_Compile is True (-u switch).
27497         (Gnatmake): ditto.
27498
27499 2005-01-03  Robert Dewar  <dewar@adacore.com>
27500
27501         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
27502         upper case letter or underscore after W, as allowed by spec.
27503
27504 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27505
27506         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
27507         darwin port by using proper type definitions from header files.
27508         Use SIGTERM instead of SIGABRT for SIGADAABORT.
27509
27510 2005-01-03  Robert Dewar  <dewar@adacore.com>
27511
27512         * par.adb: Enhance error message handling for configuration file
27513         pragmas.
27514
27515 2005-01-03  Robert Dewar  <dewar@adacore.com>
27516
27517         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
27518         removed during the previous update (test properly for case of dividing
27519         largest negative number by -1, which generates overflow).
27520
27521 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27522             Sergey Rybin  <rybin@adacore.com>
27523
27524         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
27525         to use as the defining identifier for a formal package.
27526         (Remove_Parent): If the instance takes place within (an instance of)
27527         a sibling, preserve private declarations of common parent.
27528
27529 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27530
27531         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
27532         to determine whether one of the operands is a fixed-point type for
27533         which a user-defined multiplication or division operation might be
27534         defined.
27535
27536         * sem_res.adb (Valid_Conversion): The legality rules for conversions
27537         of access types are symmetric in Ada 2005: either designated type can
27538         be unconstrained.
27539
27540 2005-01-03  Vincent Celier  <celier@adacore.com>
27541
27542         * s-fileio.adb (Temp_File_Record): Change length of string component
27543         Name from L_tmpnam + 1 to max_path_len + 1.
27544
27545 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
27546
27547         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
27548         Self_Id.Deferral_Level = 0.
27549         (Do_Pending_Action): Move this function to the spec.
27550
27551         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
27552         Do_Pending_Action explicitely when needed, in case we're using
27553         No_Abort restrictions.
27554
27555         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
27556         deferral level since it will not get changed by the generated code.
27557         Keeping a default value of 1 would prevent some operations (e.g.
27558         select or delay) to proceed successfully.
27559
27560 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
27561             Robert Dewar  <dewar@adacore.com>
27562             Cyrille Comar  <comar@adacore.com>
27563
27564         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
27565         porting guide chapter (vms version).
27566         Revised doc title (removed "for native platforms") and subtitle.
27567         Add discussion on warning flag for obsolescent features. First we
27568         note that it applies to obsolete GNAT features, which was previously
27569         omitted. Second we contrast the behavior with that of the new
27570         Ada 2005 AI-368 restriction No_Obsolescent_Features.
27571         Preliminary rewriting of GNAT & libraries chapter in order to take
27572         into account default project locations & new project manager
27573         capabilities.
27574
27575 2005-01-03  Robert Dewar  <dewar@adacore.com>
27576
27577         * cstand.adb (Create_Operators): Clean up format and documentation of
27578         unary and binary operator result tables. No change in code, just
27579         reformatting and addition of comments.
27580
27581         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
27582         sem_ch2.adb: Minor reformatting
27583
27584         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
27585         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
27586         comments for Tree_Read and Tree_Write.
27587
27588 2005-01-03  Pascal Obry  <obry@adacore.com>
27589
27590         * exp_attr.ads: Minor reformatting.
27591
27592 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
27593
27594         * comperr.adb (Compiler_Abort): Add specialized message for GAP
27595         versions.
27596
27597 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
27598
27599         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
27600         whether the ancestor type is private, as may be the case with nested
27601         instantiations.
27602
27603 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
27604
27605         PR ada/19128
27606         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
27607
27608 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
27609
27610         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
27611         * utils2.c (build_unary_op): Likewise.
27612
27613 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27614
27615         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
27616
27617 2004-12-19  Richard Henderson  <rth@redhat.com>
27618
27619         * trans.c (gigi): Update gimplify_body call.
27620
27621 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
27622
27623         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
27624
27625 2004-12-07  Ed Falis  <falis@adacore.com>
27626
27627         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
27628         current task being suspended.
27629
27630         * init.c (__gnat_clear_exception): added to reset VxWorks exception
27631         count.
27632         (__gnat_map_signal): removed test for current task being suspended.
27633
27634 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
27635
27636         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
27637         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
27638         targets (such as AAMP).
27639
27640 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
27641
27642         * atree.adb (Visit_Itype): Create a new name for the generated itype,
27643         because the back-end may otherwise treat it as a redefinition of the
27644         old symbol.
27645
27646 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
27647
27648         * back_end.adb (Scan_Back_End_Switches): Accept --param.
27649
27650         * lang-specs.h: Accept --param.
27651
27652 2004-12-07  Vincent Celier  <celier@adacore.com>
27653
27654         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
27655         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
27656         Current_Body_Suffix => Ada_Body_Suffix).
27657         Take into account Externally_Built attribute.
27658
27659         * clean.adb (In_Extension_Chain): Always return False when one of the
27660         parameter is No_Project.
27661         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
27662         Ada_Language_Index).
27663         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
27664         Process_Languages for procedure Parse).
27665
27666         * gnatcmd.adb (Carg_Switches): New table.
27667         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
27668         Adapt to name changes in package Prj (Current_Spec_Suffix =>
27669         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
27670
27671         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
27672         Header_Num and function Hash are now declared in package Prj,
27673         not Prj.Com.
27674
27675         * prj.adb (Suffix_Of): New function.
27676         (Set (Suffix)): New procedure.
27677         (Hash): One function moved from Prj.Com
27678         (Is_Present, Language_Processing_Data_Of): New functions
27679         (Set): Two new procedures
27680         (Add_Language_Name, Display_Language_Name): New procedures
27681
27682         * prj.ads: (Suffix_Of): New function
27683         (Set (Suffix)): New procedure
27684         Add several types and tables for multi-language support.
27685         (Header_Num): Type moved from Prj.Com
27686         (Hash): Two functions moved from Prj.Com
27687         (Is_Present, Language_Processing_Data_Of): New functions
27688         (Set): Two new procedures
27689         (Add_Language_Name, Display_Language_Name): New procedures
27690         (Naming): Component name changes:
27691         Current_Spec_Suffix => Ada_Spec_Suffix,
27692         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
27693         Impl_Suffixes, Supp_Suffixes.
27694         (Project_Data): New components: Externally_Built, Supp_Languages,
27695         First_Language_Processing, Supp_Language_Processing, Default_Linker,
27696         Default_Linker_Path.
27697
27698         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
27699         new package Language_Processing with its attributes (Compiler_Driver,
27700         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
27701         Binder_Driver, Default_Linker).
27702
27703         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
27704         (Header_Num): Type moved to package Prj
27705
27706         * prj-env.adb: Adapt to name changes in package Prj
27707         (Current_Spec_Suffix => Ada_Spec_Suffix,
27708         Current_Body_Suffix => Ada_Body_Suffix).
27709
27710         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
27711         default to the project path, except the "-" is one of the directories
27712         in env var ADA_PROJECT_PATH.
27713         (Current_Project_Path): Global variable, replacing Project_Path
27714         that was in the body of Prj.Part.
27715         (Project_Path): New function
27716         (Set_Project_Path): New procedure
27717         Initialize Current_Project_Path during elaboration of the package
27718         Remove dependency on Prj.Com, no longer needed
27719
27720         * prj-ext.ads (Project_Path): New function
27721         (Set_Project_Path): New procedure
27722
27723         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
27724         suffix is defined for language <lang>.
27725         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
27726         accessing directly the components of Naming.
27727         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
27728         Reorganise of this package.
27729         Break procedure Check in several procedures.
27730
27731         * prj-nmsc.ads: Replace all procedures (Ada_Check,
27732         Other_Languages_Check and Language_Independent_Check) with a single
27733         procedure Check.
27734
27735         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
27736         Process_Languages, no longer needed.
27737
27738         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
27739         Current_Project_Path.
27740         Remove elaboration code, moved to the body of Prj.Ext
27741         Use new function Prj.Ext.Project_Path instead of old variable
27742         Project_Path.
27743         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
27744         When comparing with project paths on the stack, first put the resolved
27745         path in canonical case.
27746         (Parse_Single_Project): Set the path name of the project file in the
27747         tree to the normalized path.
27748
27749         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
27750         parameter Process_Languages, no longer needed.
27751         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
27752         Other_Languages_Check.
27753
27754         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
27755         to store the resolved canonical path of the project file.
27756         Remove dependency to Prj.Com, no longer needed
27757
27758         * prj-util.adb: Adapt to name changes in package Prj
27759         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
27760         Ada_Body_Suffix).
27761
27762         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
27763         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
27764         Externally_Built, Include_Option, Language_Processing.
27765
27766         * makegpr.adb: Numerous changes due to changes in packages
27767         Prj and Prj.Nmsc.
27768
27769         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
27770         default to the project path, except whe "-" is one of the directories
27771         in env var ADA_PROJECT_PATH.
27772         (Gnatls): In verbose mode, add the new section "Project Search Path:"
27773
27774 2004-12-07  Robert Dewar  <dewar@adacore.com>
27775
27776         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
27777
27778         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
27779         set -gnatR3m mode.
27780
27781         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
27782         flag. No longer needed now that we handle this in gnat1drv.adb.
27783
27784         * repinfo.ads: Minor reformatting
27785
27786 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27787             Olivier Hainque  <hainque@adacore.com>
27788             Eric Botcazou  <ebotcazou@adacore.com>
27789
27790         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
27791         TYPE_SIZE_UNIT of result type if SIZE is not specified.
27792         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
27793         of a bitfield, which we know is useless and causes trouble because of
27794         alignment implications.
27795
27796         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
27797         BSS sections.
27798         (process_attributes): Clear DECL_COMMON again when a section attribute
27799         is present.
27800         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
27801         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
27802         (create_field_decl): Special case ADDRESSABLE negative to mean
27803         "no bitfield creation", to be used by make_aligning_type. Don't
27804         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
27805         fields claimed addressable still have to be bitfields. Use
27806         value_factor_p instead of a raw binop construction to check for the
27807         position's alignment.
27808
27809 2004-12-07  Geert Bosch  <bosch@adacore.com>
27810
27811         * eval_fat.adb: Revert previous change.
27812
27813 2004-12-07  Thomas Quinot  <quinot@adacore.com>
27814             Ed Schonberg  <schonberg@adacore.com>
27815
27816         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
27817         with an implicit dereference as its prefix, use
27818         Insert_Explicit_Dereference instead of merely rewriting the prefix into
27819         an explicit dereference. This ensures that a reference to the original
27820         prefix is generated, if appropriate.
27821
27822         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
27823         dereference is rewritten to an explicit one, generate a reference to
27824         the entity denoted by its prefix using the original prefix node, so
27825         the dereference can be properly recorded as a read of the denoted
27826         access value, if appropriate.
27827
27828         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
27829         emitting 'assigned but never read' warning on a variable on the basis
27830         that it has an access type.
27831         (Check_References): Emit unreferenced warning when the scope is a
27832         subprogram body.
27833
27834 2004-12-07  Robert Dewar  <dewar@adacore.com>
27835             Ed Schonberg  <schonberg@adacore.com>
27836
27837         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
27838         intrinsic
27839
27840         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
27841         leaving call unchanged.
27842         This deals with the case where the pragma Import specified
27843         an external name, to be handled by the back end.
27844
27845         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
27846         subprogram which is Imported with convention Intrinsic if an
27847         External_Name argument is specified.
27848         (Process_Import_Or_Interface): Properly diagnose link name argument.
27849         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
27850         with Sem_Ch6.Cannot_Inline.
27851         (Process_Inline): Provide separate warning for inapplicable inline
27852         pragma.
27853         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
27854         treatment is uniform on different targets.
27855
27856 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
27857
27858         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
27859         construct is rewritten, preserve end label to permit source navigation.
27860
27861 2004-12-07  Thomas Quinot  <quinot@adacore.com>
27862
27863         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
27864         Specific_Build_Stub_Target): New subprograms.
27865         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
27866         the PCS implementation used, using the above PCS-customized subprograms.
27867         Minor reformatting.
27868         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
27869         for generation of DSA code targeted to the PolyORB PCS.
27870         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
27871         implementation of the partition communication subsystem in ancillary
27872         subprograms.
27873         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
27874         PolyORB_Support.Build_Stub_Type): New subrograms containing the
27875         PCS-specific part of Add_Stub_Type.
27876         (Insert_Partition_Check): Use runtime library function to perform
27877         E.4(19) check.
27878
27879         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
27880         (RE_Same_Partition): New entity, from s-parint.
27881
27882         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
27883
27884 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
27885
27886         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
27887         Output the copyright message on a separate line from the version
27888         message.
27889
27890 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
27891
27892         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
27893         compile-time warning.
27894
27895 2004-12-07  Robert Dewar  <dewar@adacore.com>
27896
27897         * g-regpat.adb: (Match): Change a misuse of or to or else
27898
27899 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
27900
27901         * lib-xref.adb:
27902         (Generate_Reference): Handle properly a reference to an entry formal,
27903          when an accept statement has a pragma Unreferenced for it.
27904
27905         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
27906         and the Has_Pragma_Unreferenced flag for each formal before analyzing
27907         the body, to ensure that warnings are properly emitted for each accept
27908         statement of a given task entry.
27909
27910 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
27911
27912         * Makefile.in: Add support for foreign threads on VMS.
27913
27914 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27915
27916         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
27917         Remove.
27918         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
27919
27920         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
27921
27922         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
27923         exception.
27924         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
27925
27926 2004-12-07  Robert Dewar  <dewar@adacore.com>
27927
27928         * nlists.adb (Prepend_Debug): Remove parameters and nest within
27929         Prepend.
27930         (Remove_Next_Debug): Same fix
27931
27932         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
27933         maintain back pointers now, though we did not used to, and comments
27934         were out of date).
27935         (Prepend): Remove pragma Inline.
27936         (Remove_Next): Same cleanup
27937
27938 2004-12-07  Thomas Quinot  <quinot@adacore.com>
27939
27940         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
27941         used to record an implicit dereference as a read operation on its
27942         prefix when operating under -gnatc. Necessary to avoid spurious
27943         'variable assigned but never read' warnings in that mode.
27944         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
27945         is a non-overloaded implicit dereference, call the above subprogram to
27946         ensure proper recording of references.
27947
27948 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
27949
27950         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
27951         to be resolved later as part of Analyze_Iteration_Scheme's call to
27952         Make_Index.
27953
27954 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
27955
27956         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
27957         prefix is not a scalar type, place error message on prefix, not on
27958         type entity.
27959
27960 2004-12-07  Bernard Banner  <banner@adacore.com>
27961
27962         * vxaddr2line.adb: Add support for x86 vxworks
27963
27964 2004-12-07  Thomas Quinot  <quinot@adacore.com>
27965
27966         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
27967         documentation of the behaviour of these functions when passed an IP
27968         address that has no record in the system hosts database and no reverse
27969         record in the DNS.
27970
27971         * cstand.adb, a-tags.ads: Fix typos in comment.
27972
27973 2004-12-07  Robert Dewar  <dewar@adacore.com>
27974
27975         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
27976         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
27977         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
27978         s-poosiz.ads: Minor reformatting
27979
27980         * make.adb: Minor reformatting
27981         Add some ??? comments asking for more comments
27982
27983         * s-poosiz.adb: Minor reformatting
27984         Add comments on alignment requirement
27985
27986         * sinfo.ads: Remove obsolete comment and fix typo.
27987
27988 2004-12-07  Vincent Celier  <celier@adacore.com>
27989             Sergey Rybin  <rybin@adacore.com>
27990
27991         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
27992         Files" with the new tool and package names.
27993         Reformatting to suppress most of the warnings for line too long
27994         Document the new section "Project Search Path:" in the output of
27995         gnatls -v.
27996         Add gnatmetric section
27997
27998 2004-12-07  Vincent Celier  <celier@adacore.com>
27999
28000         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
28001         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
28002         and -eit to -ept. Added qualifier
28003         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
28004
28005 2004-11-27  Andreas Schwab  <schwab@suse.de>
28006
28007         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
28008
28009 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
28010
28011         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
28012         internal implementation unit GNAT.Sockets.Thin,
28013         as their usage for sockets is non-portable (using the read and write
28014         functions from the system runtime library is fine on UNIX but won't
28015         work under Windows).
28016
28017         * mingw32.h: Update copyright notice.
28018
28019 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
28020
28021         * ada-tree.h: Minor reformatting of previous change to avoid lines
28022         longer than 79 characters.
28023
28024 2004-11-25  Olivier Hainque  <hainque@adacore.com>
28025
28026         * tb-gcc.c: GCC infrastructure based implementation of
28027         __gnat_backtrace.
28028
28029 2004-11-24  Steven Bosscher  <stevenb@suse.de>
28030
28031         * misc.c (gnat_post_options): Don't clear
28032         flag_inline_functions.
28033
28034 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
28035
28036         PR ada/17986
28037         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
28038         tree.
28039
28040 2004-11-21  Andreas Jaeger  <aj@suse.de>
28041
28042         * stylesw.adb: Change Style_Check_Subprogram_Order to
28043         Style_Check_Order_Subprograms.
28044
28045 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
28046
28047         * adaint.h, adaint.c
28048         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
28049         to avoid warnings.
28050         Add also a cast to kill another warning.
28051         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
28052         parameter with the priority class of the parent process instead of
28053         always using the NORMAL_PRIORITY_CLASS.
28054         (__gnat_dup): New function.
28055         (__gnat_dup2): New function.
28056         (__gnat_is_symbolic_link): Enable the effective body of this
28057         function when __APPLE__ is defined.
28058
28059         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
28060         Update comments.
28061
28062 2004-11-18  Olivier Hainque  <hainque@adacore.com>
28063
28064         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
28065         address of which may be used to represent "others" and "all others"
28066         choices in exception tables, instead of the current harcoded
28067         (void *)0 and (void *)1.
28068         (Setup_Exception): Do nothing in the GNAT SJLJ case.
28069
28070         * gigi.h (others_decl, all_others_decl): New decls representing the
28071         new Others_Value and All_Others_Value objects.
28072         (struct attrib): Rename "arg" component as "args", since GCC expects a
28073         list of arguments in there.
28074
28075         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
28076         corresponding objects exported by a-exexpr, instead of hardcoded dummy
28077         addresses.
28078
28079         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
28080         others_decl and all_others_decl instead of hardcoded dummy addresses
28081         to represent "others" and "all others" choices, which is cleaner and
28082         more flexible with respect to the possible eh pointer encoding policies.
28083
28084         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
28085         (process_attributes): Account for the naming change of the "args"
28086         attribute list entry component.
28087
28088         * decl.c (build_attr_list): Rename into prepend_attributes to allow
28089         cumulating attributes for different entities into a single list.
28090         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
28091         attributes for the current entity and propagate first subtype
28092         attributes to other subtypes.
28093         <E_Procedure>: Attribute arguments are attr->args and not
28094         attr->arg any more.
28095         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
28096         argument provided, as this is what GCC expects. Use NULL_TREE instead
28097         of 0 for trees.
28098
28099 2004-11-18  Robert Dewar  <dewar@adacore.com>
28100
28101         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
28102         Minor reformatting througout (including new function specs)
28103         Add ??? comments asking for clarification.
28104
28105 2004-11-18  Thomas Quinot  <quinot@adacore.com>
28106
28107         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
28108         incomplete duplicate implementation of this subprogram from butil.
28109
28110 2004-11-18  Thomas Quinot  <quinot@adacore.com>
28111
28112         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
28113         procedures factors the common processing for building an RPC receiver
28114         for an RCI package or an RACW type.
28115         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
28116         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
28117         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
28118         in use.
28119         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
28120         Add_RACW_Features.
28121         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
28122         Add_RAST_Features.
28123         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
28124         distribution subprogram identifiers that are either subprogram numbers
28125         or strings.
28126         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
28127         string distribution identifiers assigned to a given subprogram.
28128         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
28129         (Add_RAS_Dereference_TSS): Add comments.
28130         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
28131         is not referenced yet because it will be used by the PolyORB DSA
28132         implementation.
28133         (Insert_Partition_Check): Remove fossile code.
28134         (First_RCI_Subprogram_Id): Document this constant.
28135         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
28136         RAS_Access TSS.
28137         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
28138         replaced with calls to Get_Library_Unit_Name_String. Previously there
28139         were several instances of the same code in different locations in the
28140         compiler; this checkin completes the replacement of all of these
28141         instances with calls to a common subprogram.
28142         Minor reformatting.
28143
28144         * sem_dist.adb: Remove comment noting that RPC receiver generation
28145         should be disabled for RACWs that implement RASs.
28146         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
28147
28148         * sem_util.ads, sem_util.adb (Has_Stream): New function
28149         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
28150         qualified name of a library unit into the name buffer.
28151         (Note_Possible_Modification): Generate a reference only
28152         if the context comes from source.
28153
28154         * snames.ads (PCS_Names): New subtype corresponding to names of
28155         supported implementations of the Partition Communication Subsystem
28156         (PCS) (i.e. the runtime library support modules for the distributed
28157         systems annex).
28158
28159 2004-11-18  Robert Dewar  <dewar@adacore.com>
28160             Ed Schonberg  <schonberg@adacore.com>
28161
28162         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
28163         (Has_Rep_Pragma): New function
28164         (Has_Attribute_Definition_Clause): New function
28165         (Record_Rep_Pragma): Moved here from sem_ch13.adb
28166         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
28167
28168         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
28169
28170         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
28171         (Expand_Pragma_Psect_Object): New procedure
28172         These procedures contain the revised and cleaned up processing for
28173         these two pragmas. This processing was formerly in Sem_Prag, but
28174         is more appropriately moved here. The cleanup involves making sure
28175         that the pragmas are properly attached to the tree, and that no
28176         nodes are improperly shared.
28177
28178         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
28179         pragmas to Exp_Prag, which is more appropriate.
28180         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
28181         check for duplicates Remove use of Is_Psected flag, no longer needed.
28182         Use new Make_String_Literal function with string.
28183
28184         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
28185         that are functions return universal values, that have to be converted
28186         to the context type.
28187         Use new Make_String_Literal function with string.
28188         (Get_Stream_Convert_Pragma): New function, replaces the use of
28189         Get_Rep_Pragma, which had to be kludged to work in this case.
28190
28191         * freeze.adb: Use new Has_Rep_Pragma function
28192
28193         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
28194         function with string.
28195         Use new Has_Rep_Pragma function.
28196
28197         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
28198         string argument.
28199
28200 2004-11-18  Robert Dewar  <dewar@adacore.com>
28201
28202         * errout.ads, errout.adb: (First_Sloc): New function
28203
28204         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
28205         check (-gnatyx) instead of being included as a redundant construct
28206         warning.
28207
28208         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
28209         Style_Check_Order_Subprograms.
28210
28211         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
28212         stylesw.adb: Add Style_Check_Xtra_Parens
28213
28214         * usage.adb: Add line for -gnatyx (check extra parens)
28215
28216         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
28217
28218 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28219             Robert Dewar  <dewar@adacore.com>
28220
28221         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
28222         discriminant of a constrained subtype, analyze the copy of the
28223         corresponding constraint, because in some cases it may be only
28224         partially analyzed.
28225         Removes long-lived ??? comments.
28226
28227         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
28228         handled controlled or secondary-stack expressions within the
28229         iteration_scheme of a loop.
28230
28231         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
28232         bounds that may contain functions calls, to prevent memory leaks when
28233         the bound contains a call to a function that uses the secondary stack.
28234         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
28235         generate temporaries for loop bounds that might contain function calls
28236         that require secondary stack and/or finalization actions.
28237
28238         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
28239         selected component and the selector is overloadable (not just a
28240         function) treat as function call, Analyze_Call will disambiguate if
28241         necessary.
28242         (Analyze_Selected_Component): Do not generate an actual subtype for the
28243         selected component if expansion is disabled. The actual subtype is only
28244         needed for constraint checks.
28245         (Analyze_Allocator): If restriction No_Streams is set, then do
28246         not permit objects to be declared of a stream type, or of a
28247         composite type containing a stream.
28248
28249         * restrict.ads: Remove the a-stream entry from Unit_Array, since
28250         No_Streams no longer prohibits with'ing this package.
28251
28252         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
28253         discriminants, but the parent base has unknown discriminants, there is
28254         no discriminant constraint to inherit. Such a discrepancy can arise
28255         when the actual for a formal type with unknown discriminants is a
28256         similar private type whose full view has discriminants.
28257         (Analyze_Object_Declaration): If restriction No_Streams is set, then
28258         do not permit objects to be declared of a stream type, or of a
28259         composite type containing a stream.
28260
28261 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28262
28263         * exp_dbug.ads: Update documentation to reflect simpler encoding for
28264         protected operations.
28265
28266         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
28267         generated name, it complicates decoding in gdb and hinders debugging
28268         of protected operations.
28269         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
28270         flag for the protected entry barrier function.
28271         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
28272         flag for the protected entry function.
28273
28274 2004-11-18  Nicolas Setton  <setton@adacore.com>
28275
28276         * expect.c: Define __unix__ when __APPLE__ is defined.
28277
28278         * Makefile.in: Inform the value of the variable GMEM_LIB in the
28279         Darwin-specific section.
28280
28281         * lang-specs.h: Change the placement of the %1 marker.
28282         Works around the fact that gcc adds -fPIC by default under Darwin.
28283
28284 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
28285
28286         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
28287         type of the object with the packed array type, set the Analyzed flag
28288         on the object if it is an entity or simple indexed component, to avoid
28289         spurious type errors.
28290
28291 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
28292
28293         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
28294         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
28295         separate line from the version message.
28296
28297 2004-11-18  Ed Falis  <falis@adacore.com>
28298
28299         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
28300         vthreads.
28301         (init_float): Eliminate initialization of floating point status for
28302         AE653. The instructions have no effect for vThreads.
28303
28304 2004-11-18  Vincent Celier  <celier@adacore.com>
28305
28306         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
28307         gnatbind is invoked with -shared.
28308
28309 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
28310
28311         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
28312         for Detect_Blocking which is redundant with the check done within the
28313         procedure Protected_Single_Entry_Call.
28314         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
28315         Detect_Blocking which is redundant with the check done within the
28316         procedure Protected_Single_Entry_Call.
28317
28318 2004-11-18  Vincent Celier  <celier@adacore.com>
28319
28320         * makegpr.adb (Compile): Put the compiling switches (in package
28321         Compiler and on the command line) immediately after "-c", instead of
28322         at the end of the command line invocation of the compiler, when
28323         compiling a non-Ada file.
28324         (Build_Global_Archive): When there is no need to rebuild the archive,
28325         set Global_Archive_Exists, so that the archive is passed to the linker
28326         if one is needed.
28327
28328 2004-11-18  Robert Dewar  <dewar@adacore.com>
28329             Sergey Rybin  <rybin@adacore.com>
28330
28331         * gnat_ugn.texi:
28332         Remove extra paren check from list of checks for redundant constructs
28333         Add documentation of new -gnatyx style check (check extra parens)
28334         Remove paragraph about gnatelim debug options.
28335
28336         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
28337         objects rather than forbidding dependencies on the package Ada.Streams.
28338
28339         * sinfo.ads: Add ??? note that we should document pragmas passed to
28340         back end.
28341
28342         * g-expect.ads: Fix a few typos in the comments.
28343
28344 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
28345
28346         * misc.c (gnat_handle_option): Use %< and %> for quoting in
28347         warning message.
28348
28349 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28350
28351         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
28352
28353 2004-11-07  Andreas Schwab  <schwab@suse.de>
28354
28355         * Makefile.in (install-gnatlib): Remove spurious hyphen.
28356
28357 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
28358
28359         PR ada/18228
28360         * Makefile.in (darwin): Set soext to .dylib.
28361
28362 2004-10-26  Vincent Celier  <celier@gnat.com>
28363             Thomas Quinot   <quinot@act-europe.fr>
28364
28365         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
28366         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
28367         there is no use of GNAT.Sockets.Constants.
28368         Remove remaining pragma Import for C_Write
28369         Remove C_Read and C_Write from internal implementation unit
28370         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
28371         the read and write functions from the system runtime library is fine
28372         on UNIX but won't work under Windows).
28373
28374         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
28375         (Check_Selector): Use C_Recv instead of C_Read.
28376         Selectors are the GNAT.Sockets abstraction to perform a select()
28377         call on a set of descriptors. To allow abortion of an ongoing
28378         select operation, some data is written to a dedicated socket that
28379         is always monitored.
28380         Under Windows, the write and read library functions cannot operate
28381         on sockets, so we need to use send and recv instead, which is portable
28382         across all supported platforms.
28383
28384         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
28385         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
28386         (using the read and write functions from the system runtime library is
28387         fine on UNIX but won't work under Windows).
28388
28389 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
28390
28391         * mlib-tgt-darwin.adb: New file.
28392
28393         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28394         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28395         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
28396         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
28397         subprogram body.
28398
28399         * Makefile.in: Add support for building shared libraries under Darwin.
28400         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
28401         the low level EH init subprogram to be called from __gnat_initialize.
28402
28403         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
28404         indicates which options to pass to the archive indexer.
28405
28406         * mlib-utl.adb: Add support for calling ranlib with additional
28407         options. This is needed for instance under Mac OS X.
28408         (Ranlib_Options): New global variable, used to store the potential
28409         options to pass to ranlib.
28410         (Ar): Use Ranlib_Options when spawning ranlib.
28411         (Initialize): Set the value of ranlib option.
28412
28413 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
28414
28415         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
28416         instead of 8K, to reflect the real potential needs for stack-checking
28417         in the ZCX case.
28418
28419 2004-10-26  Pascal Obry  <obry@gnat.com>
28420
28421         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
28422
28423         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
28424         Windows only the initial thread stack size can be set so it is good to
28425         start we a low stack size.
28426         The OS will adjust the size as needed.
28427
28428 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
28429             Nicolas Setton  <setton@act-europe.fr>
28430
28431         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
28432         "__unix__" instead of "unix".
28433         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
28434         sections were just mistakenly ignored. The former is
28435         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
28436         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
28437         of hpux. This prevents an unwanted definition of the symbol
28438         convert_addresses in adaint.o.
28439
28440 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
28441
28442         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
28443         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
28444
28445 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
28446
28447         * a-filico.ads, a-filico.adb: fix incorrect header.
28448
28449 2004-10-26  Javier Miranda  <miranda@gnat.com>
28450
28451         * a-ststio.ads: Fix typo in identifier
28452
28453 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
28454
28455         * sem_ch4.adb: Minor reformatting.
28456
28457 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28458
28459         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
28460         enabled, check the result of unary and binary operations when the
28461         expression is the right-hand side of an assignment.
28462
28463 2004-10-26  Vincent Celier  <celier@gnat.com>
28464
28465         * clean.adb (Delete): Do not output warnings when in quiet output and
28466         not in verbose mode.
28467         (Force_Deletions): New Boolean flag, defaulted to False
28468         (Delete): Only delete a file if it is writable, and when
28469         Force_Deletions is True.
28470         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
28471         (Usage): Line for new switch -f
28472         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
28473         own.
28474
28475 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
28476
28477         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
28478         JM type only if its size matches that of the wrapper.  When a size is
28479         prescribed and the field is not aliased, remove the wrapper of a JM
28480         type only if the size is not greater than that of the packed array.
28481         (gnat_to_gnu_entity): Change the extension of packed array wrappers
28482         from LJM to JM.
28483
28484 2004-10-26  Geert Bosch  <bosch@gnat.com>
28485
28486         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
28487         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28488         (Pred): Implement in terms of Succ.
28489
28490 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28491
28492         * exp_aggr.adb (Safe_Component): An aggregate component that is an
28493         unchecked conversion is safe for in-place use if the expression of the
28494         conversion is safe.
28495         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
28496         be expandable in place even if the aggregate does not come from source.
28497         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
28498         designated object of an allocator in place, rather than building it
28499         first on the stack. The previous scheme forces a full copy of the array,
28500         and may be altogether unsusable if the size of the array is too large
28501         for stack allocation.
28502
28503 2004-10-26  Robert Dewar  <dewar@gnat.com>
28504
28505         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
28506         compares if the component is atomic.
28507
28508         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
28509         array assignment if the component type is atomic.
28510
28511 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28512             Eric Botcazou  <ebotcazou@act-europe.fr>
28513
28514         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
28515         is aliased and is a by_reference type, do not pass by copy.
28516         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
28517         detect whether the call is in the right side of an assignment or
28518         the expression of an object declaration.  Recurse on component
28519         association within aggregates.
28520         Call it in the condition that determines whether the temporary is
28521         necessary for correct stack-checking.
28522
28523 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
28524
28525         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
28526         RACW_Type, used in the PolyORB version.
28527         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
28528         version and the GARLIC version.
28529
28530         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
28531         Rename RCI_Info to RCI_Locator for better consistency between the
28532         GARLIC and PolyORB versions of the distributed systems annex.
28533         (DSA_Implementation_Name): This enumeration lists the possible
28534         implementations of the Partition Communication Subsystem for the
28535         Distributed Systems Annex (DSA). The three available implementations
28536         are the dummy stub implementation (No_DSA), and two versions based on
28537         two different distribution runtime libraries: GARLIC and PolyORB. Both
28538         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
28539         technology.
28540         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
28541         that organization.
28542
28543         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
28544         between the GARLIC and PolyORB versions of the distributed systems
28545         annex.
28546         Remove RE_Unbounded_Reclaim_Pool since it is unused.
28547
28548 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
28549
28550         * gnat1drv.adb: Suppress calling the back end when
28551         Frontend_Layout_On_Target is true.
28552
28553 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
28554
28555         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
28556         Set_Read_Only): New subprograms.
28557         These new routines allow the user to set or unset the Owner execute
28558         and Owner write permission flags on a file.
28559
28560         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
28561         GNAT.OS_Lib.Set_Executable instead of rolling our own.
28562
28563 2004-10-26  Matthew Gingell  <gingell@gnat.com>
28564
28565         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
28566
28567 2004-10-26  Pascal Obry  <obry@gnat.com>
28568
28569         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
28570         memory before the faulting page we properly test the process read
28571         access for this address using appropriate Win32 routine.
28572         (HPUX sections): guard with "__hpux__" instead of "hpux".
28573
28574 2004-10-26  Robert Dewar  <dewar@gnat.com>
28575
28576         * lib-xref.adb (Generate_Reference): Don't complain about reference to
28577         entry parameter if pragma Unreferenced set, since we do not properly
28578         handle the case of multiple parameters.
28579
28580 2004-10-26  Vincent Celier  <celier@gnat.com>
28581
28582         * prj-env.adb: (Contains_ALI_Files): New Boolean function
28583         (Ada_Objects_Path.Add): For a library project, add to the object path
28584         the library directory only if there is no object directory or if the
28585         library directory contains ALI files.
28586         (Set_Ada_Paths.Add.Recursive_Add): Ditto
28587
28588 2004-10-26  Vincent Celier  <celier@gnat.com>
28589
28590         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
28591         extension of library projects.
28592
28593         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
28594         path defaults to ".:<prefix>/lib/gnat".
28595         (Parse): For an extending all project, allow direct import of a project
28596         that is virtually extended.
28597
28598         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
28599         the specified name is directly imported, return its ID. Otherwise, if
28600         an extension of this project is imported, return the ID of the
28601         extension.
28602
28603 2004-10-26  Robert Dewar  <dewar@gnat.com>
28604
28605         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
28606         (Sub3): New procedure, used by Scaled_Divide
28607         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
28608         correct more than one instance of failure to propagate carries
28609         correctly.
28610         (Double_Divide): Handle overflow case of largest negative number
28611         divided by minus one.
28612
28613         * s-arit64.ads (Double_Divide): Document that overflow can occur in
28614         the case of a quotient value out of range.
28615         Fix comments.
28616
28617 2004-10-26  Robert Dewar  <dewar@gnat.com>
28618
28619         * s-bitops.adb (Bit_Eq): Remove redundant check.
28620
28621         * s-bitops.ads: Minor comment updates
28622         Change some occurrences of Address to System.Address
28623
28624         * s-carsi8.ads: Fix minor cut-and-paste error in comments
28625
28626 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28627
28628         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
28629         accessibility check to prefix that is a protected operation.
28630
28631 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28632
28633         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
28634         empty, post message on stub.
28635
28636 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28637             Javier Miranda  <miranda@gnat.com>
28638
28639         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
28640         current instance appears within a unit that is directly in the context
28641         of the main unit.
28642         Used to determine whether the body of the instance should be analyzed
28643         immediately after its spec, to make its subprogram bodies available
28644         for front-end inlining.
28645         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
28646         constraint is not allowed on the component type (AARM 12.5.3(3))
28647
28648 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
28649
28650         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
28651         'Storage_Pool): enhance, document & limit detection of non-sharable
28652         internal pools.
28653
28654         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
28655
28656         * s-pooglo.ads: Add more documentation now that this pool is properly
28657         documented.
28658
28659 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28660
28661         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
28662         or protected type with discriminants, do not constrain the
28663         corresponding record type if the subtype declaration has no
28664         discriminant constraints. This can be the case in source code, or in
28665         the subtype declaration created to rename an actual type within an
28666         instantiation.
28667
28668 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28669
28670         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
28671         different kind of stub (possibly wrong name for file), do not check
28672         for conformance.
28673         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
28674         includes call to some function that returns an unconstrained type, do
28675         not inline.
28676
28677 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
28678
28679         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
28680         appear in the code for the main unit. Dependencies among units in the
28681         context of the main unit are established when those other units are
28682         compiled. Otherwise spurious elaboration constraints can generate
28683         incorrect elaboration circularities.
28684
28685 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
28686             Ed Schonberg   <schonberg@gnat.com>
28687
28688         * sem_util.adb (Is_Aliased_View): Defend against the case where this
28689         subprogram is called with a parameter that is not an object name. This
28690         situation arises for some cases of illegal code, which is diagnosed
28691         later, and in this case it is wrong to call Is_Aliased, as that might
28692         cause a compiler crash.
28693         (Explain_Limited_Type): Refine previous fix to include
28694         inherited components of derived types, to provide complete information.
28695
28696         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
28697         is the prival for a protected object.
28698         It is necessary to mark this entity as a variable, in addition to
28699         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
28700         modified to avoid checking the Aliased flag on entities that are not
28701         objects. (Checking that flag for non-objects is erroneous and could
28702         lead to a compiler crash).
28703
28704 2004-10-26  Robert Dewar  <dewar@gnat.com>
28705
28706         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
28707         X_Frac = 0.5, then we know that the number X must be positive.
28708         (Succ): Remove the same redundant test, and also fix the primary test
28709         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
28710         Minor reformatting
28711         (Decompose): Add fuller comments to spec
28712
28713 2004-10-26  Pascal Obry  <obry@gnat.com>
28714
28715         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
28716         validity (process must have read access). Set to 0 in all other cases.
28717         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
28718         violation on Win32.
28719         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
28720         segmentation violation.
28721
28722 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
28723
28724         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
28725         whose type is a constructed subtype of an aliased object with an
28726         unconstrained nominal subtype, convert the actual to the constructed
28727         subtype before taking its address.
28728
28729 2004-10-26  Vincent Celier  <celier@gnat.com>
28730
28731         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
28732         (Is_Path_Name_Case_Sensitive): New function
28733
28734         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
28735         (Base_Name, Simple_Name, Current_Directory, Compose,
28736         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
28737         the result.
28738
28739 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
28740             Vasiliy Fofanov  <fofanov@act-europe.fr>
28741             Vincent Celier   <celier@gnat.com>
28742
28743         * gnat_ugn.texi: Generalize "finding memory problems" section into a
28744         "memory management issues" section and document some of the useful
28745         memory pools provided as part of the GNAT library.
28746         Remove "virtual" from declaration of A::method2 in
28747         the simple example of Ada/C++ mixed system.
28748         Library Projects may be virtually extended: their virtual extensions
28749         are not Library Projects.
28750         Added section on extending project hierarchies.
28751
28752 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
28753
28754         * adaint.c (__gnat_get_libraries_from_registry): Cast value
28755         to LPBYTE.
28756         (__gnat_portable_spawn): Remove const.
28757
28758         * mingw32.h (MAXPATHLEN): Check for previous definition.
28759
28760 2004-10-17  Matthias Klose  <doko@debian.org>
28761
28762         * gnatvsn.ads: Set gnat library version to 4.0.
28763
28764 2004-10-05  Vincent Celier  <celier@gnat.com>
28765
28766         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
28767
28768 2004-10-04  Laurent Guerby  <laurent@guerby.net>
28769
28770         PR ada/15156
28771         * Makefile.in: Define and use RANLIB_FLAGS.
28772
28773 2004-10-04  Pascal Obry  <obry@gnat.com>
28774
28775         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
28776         other x86 platforms).
28777
28778 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
28779
28780         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
28781         in general and triggers stack alignment adjustment for thread entry
28782         points on targets where this is necessary.
28783
28784 2004-10-04  Bernard Banner  <banner@gnat.com>
28785
28786         PR ada/13897
28787         * Makefile.in: Add section for powerpc linux
28788         Add variant i-vxwork-x86.ads
28789
28790         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
28791
28792 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
28793
28794         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
28795         table registration calls when need be. Ensures no reference to the crt
28796         ctors symbol are issued in the SJLJ case, which avoids possible
28797         undefined symbol errors in the case of modules to be statically linked
28798         with the kernel.
28799
28800 2004-10-04  Javier Miranda  <miranda@gnat.com>
28801
28802         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
28803         in-line the code corresponding to subprogram Analyze_Actuals. In
28804         addition, analyze the actuals only in case of subprogram call.
28805
28806 2004-10-04  Ed Falis  <falis@gnat.com>
28807
28808         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
28809
28810 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
28811
28812         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
28813         in the documentation.
28814
28815 2004-10-04  Robert Dewar  <dewar@gnat.com>
28816
28817         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
28818         IF and CASE.
28819         (Analyze_Block_Statement): Add circuitry to detect following dead code
28820         (Check_Unreachable_Code): Handle case of block exit
28821
28822 2004-10-04  Robert Dewar  <dewar@gnat.com>
28823
28824         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
28825         (XMatchD): Avoid warning for Logic_Error call
28826
28827 2004-10-04  Robert Dewar  <dewar@gnat.com>
28828
28829         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
28830         consider expressions buried within a procedure actual to be an actual.
28831         This caused some blowups with uses of packed slices within a procedure
28832         actual.
28833
28834 2004-10-04  Robert Dewar  <dewar@gnat.com>
28835
28836         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
28837         longer need to be initialized to zero.
28838         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
28839         initialized to zero.
28840
28841         * checks.adb (Expr_Known_Valid): Packed arrays are now always
28842         considered valid, even if the representation is modular. That's correct
28843         now that we no longer initialize packed modular arrays to zero.
28844
28845         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
28846         suffixes. These are now documented as the only cases in which the
28847         debugger ignores outer records.
28848         Previously, the spec allowed arbitrary suffixes for this purpose.
28849         Change name of LJM to JM for packed array pad records
28850         Create separate section on packed array handling, and add a whole new
28851         set of comments to this section describing the situation with packed
28852         modular types and justification requirements depending on endianness.
28853
28854 2004-10-04  Robert Dewar  <dewar@gnat.com>
28855
28856         * a-except.adb: Add a comment for last change
28857
28858         * einfo.ads: Minor spelling correction in comment
28859
28860         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
28861
28862         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
28863         messages.
28864
28865         * sem_util.ads: Minor comment update
28866
28867 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
28868
28869         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
28870         Inline_Always when in Configurable_Run_Time mode.
28871
28872         * sem_prag.adb (Process_Convention): If entity is an inherited
28873         subprogram, apply convention to parent subprogram if in same scope.
28874         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
28875         when in Configurable_Run_Time mode.
28876
28877 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
28878
28879         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
28880         class_wide type after component list has been inherited.
28881
28882 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
28883
28884         * sem_ch12.adb (Check_Generic_Actuals): New predicate
28885         Denotes_Previous_Actual, to handle properly the case of a private
28886         actual that is also the component type of a subsequent array actual.
28887         The visibility status of the first actual is not affected when the
28888         second is installed.
28889         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
28890         make fully recursive the treatment of formals of packages declared
28891         with a box.
28892         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
28893         the above on exit from an instantiation.
28894         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
28895         current instantiation which is now complete.
28896         (Analyze_Package_Instantiation): No instantiated body is needed if the
28897         main unit is generic. Efficient, and avoid anomalies when a instance
28898         appears in a package accessed through rtsfind.
28899
28900 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
28901
28902         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
28903         do not generate a declaration for a temporary if the call is part of a
28904         library-level instantiation.
28905
28906 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
28907
28908         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
28909         searching for a limited component to flag.
28910
28911         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
28912         expansion of Input, to account for the fact that the implicit call
28913         generated by the attribute reference must freeze the user-defined
28914         stream subprogram. This is only relevant to 'Input, because it can
28915         appear in an object declaration, prior to the body of the subprogram.
28916
28917         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
28918         expansion can proceed and further errors uncovered.
28919         (Minor clean up): Fix cases of using | instead of \ for continuation
28920         messages.
28921
28922 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28923
28924         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
28925
28926         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
28927         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
28928         Use gcc_assert and gcc_unreachable.
28929
28930         * decl.c (gnat_to_gnu_entity, case object): Check and process a
28931         specified alignment before validating size.
28932         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
28933         stripped-down declaration for the type of the inner field when making
28934         a JM type.
28935
28936         * utils.c (finish_record_type): Do not compute the size in units
28937         incrementally. Instead compute it once for the rep clause case.
28938         Use gcc_assert and gcc_unreachable.
28939
28940 2004-10-04  Vincent Celier  <celier@gnat.com>
28941
28942         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
28943         in file name.
28944         (Is_Valid_Path_Name): Take '/' as a directory separator.
28945
28946 2004-10-04  Vincent Celier  <celier@gnat.com>
28947
28948         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
28949         (Extended_Project) only if Extended_Project is defined, to avoid
28950         assertion error.
28951         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
28952         resolved path.
28953         (Parse_Single_Project): Ditto.
28954
28955         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
28956         Add_To_Project_Path for virtual projects.
28957
28958 2004-10-04  Vincent Celier  <celier@gnat.com>
28959
28960         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28961         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28962         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
28963         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
28964         parameter Options_2.
28965
28966         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
28967         Build_Dynamic_Library with an empty Options_2.
28968
28969         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
28970         default anymore.
28971
28972         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
28973         directory separator, if any.
28974         (Gprmake): Do not allow mains on the command line for library projects.
28975         Do not attempt to link when the project is a library project.
28976         (Library_Opts): New table to store Library_Options.
28977         (Build_Library): If Library_Options is specified, pass these options
28978         when building a shared library.
28979
28980 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
28981
28982         * s-tposen.adb (Service_Entry): The object must be always unlocked at
28983         the end of this procedure now that the unlock operation was inserted
28984         by the expander.
28985
28986 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
28987
28988         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
28989         corresponding to the Preallocated_Stacks flags in System.
28990         (Get_Target_Parameters): Including the processing for
28991         Preallocated_Stacks.
28992
28993         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
28994         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
28995         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
28996         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
28997         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
28998         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
28999         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
29000         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
29001         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
29002         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
29003         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
29004         used to signal whether the compiler creates the required stacks and
29005         descriptors for the different tasks (when True) or it is done by the
29006         underlying operating system at run time (when False).
29007         It is initially set to False in all targets.
29008
29009         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
29010         if it is supported by the target.
29011         (Make_Task_Create_Call): Pass the stack address if it has been
29012         previously created. Otherwise pass a Null_Address.
29013
29014         * snames.adb: Add _stack.
29015
29016         * snames.ads: Add Name_uStack. Required to allow the expander to
29017         statically allocated task stacks.
29018
29019         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
29020         Stack_Address argument.
29021         Check that its value is equal to Null_Address because this target does
29022         not support the static stack allocation.
29023
29024 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29025
29026         * usage.adb: Change "pragma inline" to "pragma Inline" in information
29027         and error messages
29028
29029 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29030
29031         * exp_dist.adb: Split declaration of asynchronous flag out of
29032         Add_RACW_Read_Attribute.
29033         Minor reformatting for better alignment with PolyORB version.
29034         Store the entity for the asynchronous flag of an RACW, rather than the
29035         expression, in the asynchronous flags table. This will allow this flag
29036         to be used in other subprograms beside Add_RACW_Read_Attribute.
29037
29038 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
29039
29040         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
29041         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
29042         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
29043         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
29044         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
29045         sockets constant MSG_NOSIGNAL (Linux-specific).
29046         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
29047         all Send operations.
29048         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
29049         from trigerring SIGPIPE.
29050         Rename components to avoid clash with Ada 2005 possible reserved
29051         word 'interface'.
29052         (Check_Selector): When the select system call returns with an error
29053         condition, propagate Socket_Error to the caller.
29054
29055 2004-10-01  Jan Hubicka  <jh@suse.cz>
29056
29057         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
29058
29059 2004-09-23  Robert Dewar  <dewar@gnat.com>
29060
29061         PR ada/17540
29062         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
29063         instead do this at freeze time (we won't do it if there is an address
29064         clause).
29065         Change "pragma inline" to "pragma Inline" in information and error
29066         messages.
29067         Minor reformatting.
29068
29069         * freeze.adb (Check_Address_Clause): Remove previous change, not the
29070         right way of doing things after all.
29071         (Freeze_Entity): For object, set Is_Public for imported entities
29072         unless there is an address clause present.
29073
29074 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
29075
29076         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
29077         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
29078         ensures proper handling of types with rep clauses, which might have
29079         their TYPE_SIZE set already.
29080
29081 2004-09-21  Robert Dewar  <dewar@gnat.com>
29082
29083         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
29084         packed array types in both little- and big-endian cases. This change
29085         ensures that we no longer count on the unused bits being initialized
29086         for such types (and in particular ensures that equality testing will
29087         only read the relevant bits).
29088         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29089         These changes mean that we no longer need to initialize small packed
29090         arrays.
29091         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
29092         optimization to an LJM field as to its parent field.
29093
29094         * ada-tree.h, trans.c, utils.c, utils2.c:
29095         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29096
29097 2004-09-20  Jan Hubicka  <jh@suse.cz>
29098
29099         * utils.c (gnat_finalize): Remove.
29100         (end_subprog_body): Directly call cgraph_finalize_function;
29101         do not lower the nested functions.
29102
29103 2004-09-20  Robert Dewar  <dewar@gnat.com>
29104
29105         PR ada/17540
29106         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
29107         if an address clause is present, since that means that the Import
29108         should be ignored.
29109
29110 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
29111
29112         * 5tsystem.ads: Removed, no longer used.
29113
29114 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
29115             Zack Weinberg  <zack@codesourcery.com>
29116
29117         * ada-tree.def: Use tree_code_class enumeration constants
29118         instead of code letters.
29119         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
29120         Update for new tree-class enumeration constants.
29121
29122 2004-09-17  Vincent Celier  <celier@gnat.com>
29123
29124         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
29125         capabilities of the general project manager.
29126
29127 2004-09-09  Vincent Celier  <celier@gnat.com>
29128
29129         * a-direct.ads: Add pragma Ada_05
29130         (Directory_Entry_Type): Give default value to component Kind to avoid
29131         not initialized warnings.
29132
29133         * a-direct.adb (Current_Directory): Remove directory separator at the
29134         end.
29135         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
29136         an existing directory.
29137         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
29138         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
29139         Convert the result to File_Size.
29140
29141         * prj.ads: (Project_Error): New exception
29142
29143         * prj-attr.adb: Except in procedure Initialize, Fail comes from
29144         Prj.Com, not from Osint.
29145         (Attrs, Package_Attributes): Tables moved to private part of spec
29146         (Add_Attribute, Add_Unknown_Package): Moved to new child package
29147         Prj.Attr.PM.
29148         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
29149         Prj.Project_Error after call to Fail.
29150         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
29151         Fail. Check that package name is not already in use.
29152
29153         * prj-attr.ads: Comment updates to indicate that all subprograms may be
29154         used by tools, not only by the project manager, and to indicate that
29155         exception Prj.Prj_Error may be raised in case of problem.
29156         (Add_Unknown_Package, Add_Attribute): Moved to new child package
29157         Prj.Attr.PM.
29158         (Attrs, Package_Attributes): Table instantiations moved from the body to
29159         the private part to be accessible from Prj.Attr.PM body.
29160
29161         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
29162         from new package Prj.Attr.PM.
29163         (Parse_Attribute_Declaration): Call Add_Attribute from new package
29164         Prj.Attr.PM.
29165
29166         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
29167
29168         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
29169         instead of Elaboration_Checks).
29170
29171         * a-calend.adb: Minor reformatting
29172
29173 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29174
29175         * gigi.h (maybe_pad_type): New declaration.
29176         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
29177
29178         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
29179
29180         * cuintp.c: Convert to use buildN.
29181
29182         * decl.c (maybe_pad_type): No longer static.
29183         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
29184         target pointer.
29185         Convert to use buildN.
29186
29187         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
29188         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
29189         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
29190         RHS.
29191         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
29192         (gnat_gimplify_expr, case ADDR_EXPR): New case.
29193         Convert to use buildN.
29194
29195         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
29196         TREE_READONLY for const.
29197         Convert to use buildN.
29198
29199         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
29200         (create_var_decl): Refine when TREE_STATIC is set.
29201         Convert to use buildN.
29202
29203 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
29204
29205         * gnat_ugn.texi: Delete text relating to checking of ali and object
29206         consistency.
29207
29208         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
29209         routines.
29210
29211 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
29212
29213         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
29214         pragmas recognized by GNAT.
29215
29216         * gnat_rm.texi: Document pragma Detect_Blocking.
29217
29218         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
29219         raise Program_Error if called from a protected operation.
29220
29221         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
29222         the protected action nesting level.
29223         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
29224         protected action nesting level.
29225         (Unlock): When pragma Detect_Blocking is active decrease the protected
29226         action nesting level.
29227
29228         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
29229         Protected_Action_Nesting.
29230
29231         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
29232         Common_ATCB record. It contains the dynamic level of protected action
29233         nesting for each task. It is needed for checking whether potentially
29234         blocking operations are called from protected operations.
29235         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
29236         Detect_Blocking is active or not in the partition.
29237
29238         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
29239         raise Program_Error if called from a protected operation.
29240         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
29241         Program_Error if called from a protected operation.
29242         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
29243         Program_Error if called from a protected operation.
29244
29245         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
29246         raise Program_Error if called from a protected operation.
29247
29248         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
29249         raise Program_Error if called from a protected operation, and increase
29250         the protected action nesting level.
29251         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
29252         Program_Error if called from a protected operation, and increase the
29253         protected action nesting level.
29254         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
29255         protected action nesting level.
29256
29257         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
29258         raise Program_Error if called from a protected operation, and increase
29259         the protected action nesting level.
29260         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
29261         Program_Error if called from a protected operation, and increase the
29262         protected action nesting level.
29263         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
29264         raise Program_Error if called from a protected operation.
29265         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
29266         active, raise Program_Error if called from a protected operation.
29267         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
29268         protected action nesting level.
29269
29270         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
29271         insertion of the statement raising Program_Error. The run time
29272         contains the required machinery for handling that.
29273
29274         * sem_util.ads: Change comment associated to procedure
29275         Check_Potentially_Blocking_Operation.
29276         This procedure does not insert a call for raising the exception because
29277         that is currently done by the run time.
29278
29279         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
29280
29281         * init.c: Add the global variable __gl_detect_blocking that indicates
29282         whether pragma Detect_Blocking is active (1) or not (0). Needed for
29283         making the pragma available at run time.
29284         (__gnat_set_globals): Pass and update the detect_blocking parameter.
29285
29286         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
29287         pragma Detect_Blocking is active.
29288
29289         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
29290
29291         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
29292         DB is found in the ali file. Any unit compiled with pragma
29293         Detect_Blocking active forces its effect in the whole partition.
29294
29295         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
29296         Detect_Blocking is active and delay is called from a protected
29297         operation.
29298
29299         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
29300         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
29301         Detect_Blocking is active (0 otherwise).
29302         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
29303         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
29304         otherwise).
29305
29306 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
29307
29308         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
29309         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
29310         package.
29311
29312         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
29313         (Register_Receiving_Stub): Add Subp_Info formal parameter.
29314         Update API in placeholder implemetation of s-parint to reflect changes
29315         in distribution runtime library.
29316
29317         * sem_ch3.adb (Expand_Derived_Record): Rename to
29318         Expand_Record_Extension.
29319
29320         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
29321         primitive operations of potentially distributed object types that have
29322         non-controlling anonymous access formals.
29323
29324         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
29325         subprogram.
29326         New implementation of expansion for remote access-to-subprogram types,
29327         based on the RACW infrastructure.
29328         This version of sem_dist is compatible with PolyORB/DSA as well as
29329         GLADE.
29330
29331         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
29332         Asynchrronous that applies to a remote access-to-subprogram type, mark
29333         the underlying RACW type as asynchronous.
29334
29335         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
29336          __gnat_using_gnu_linker to 1.
29337
29338         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
29339         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
29340         GNAT.Perfect_Hash_Generators, and remove the empty
29341         GNAT.Perfect_Hash package.
29342
29343         * atree.adb: Minor reformatting
29344
29345         * exp_ch3.adb (Expand_Derived_Record): Rename to
29346         Expand_Record_Extension.
29347         (Build_Record_Init_Proc.Build_Assignment): The default expression in
29348         a component declaration must remain attached at that point in the
29349         tree so New_Copy_Tree copies it if the enclosing record type is derived.
29350         It is therefore necessary to take a copy of the expression when building
29351         the corresponding assignment statement in the init proc.
29352         As a side effect, in the case of a derived record type, we now see the
29353         original expression, without any rewriting that could have occurred
29354         during expansion of the ancestor type's init proc, and we do not need
29355         to go back to Original_Node.
29356
29357         * exp_ch3.ads (Expand_Derived_Record): Rename to
29358         Expand_Record_Extension.
29359
29360         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
29361         Returns the RACW type used to implement a remote access-to-subprogram
29362         type.
29363         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
29364         New subprograms. Used to create a proxy tagged object for a remote
29365         subprogram. The proxy object is used as the designated object
29366         for RAS values on the same partition (unless All_Calls_Remote applies).
29367         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
29368         System.Partition_Interface.Get_Unique_Remote_Pointer.
29369         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
29370         Renamed from Add_RAS_*_Attribute.
29371         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
29372         subprograms.
29373         New implementation of expansion for remote access-to-subprogram types,
29374         based on the RACW infrastructure.
29375
29376         * exp_dist.ads (Copy_Specification): Update comment to note that this
29377         function can copy the specification from either a subprogram
29378         specification or an access-to-subprogram type definition.
29379
29380 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
29381
29382         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
29383         in an instance, between an explicit subprogram an one inherited from a
29384         type derived from an actual.
29385
29386         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
29387         add a polling call if the subprogram is to be inlined by the back-end,
29388         to avoid repeated calls with multiple inlinings.
29389
29390         * checks.adb (Apply_Alignment_Check): If the expression in the address
29391         clause is a call whose name is not a static entity (e.g. a dispatching
29392         call), treat as dynamic.
29393
29394 2004-09-09  Robert Dewar  <dewar@gnat.com>
29395
29396         * g-trasym.ads: Minor reformatting
29397
29398         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
29399         packed arrays, since unused bits are expected to be zero for a
29400         comparison.
29401
29402 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
29403
29404         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
29405         comment.
29406
29407 2004-09-09  Pascal Obry  <obry@gnat.com>
29408
29409         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
29410         enable map file generation. Add the right option to generate the map
29411         file if Map_File is set to True.
29412
29413         * gnatdll.adb (Gen_Map_File): New variable.
29414         (Syntax): Add info about new -m (Map_File) option.
29415         (Parse_Command_Line): Add support for -m option.
29416         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
29417         Minor reformatting.
29418
29419 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
29420
29421         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
29422         new gnatdist implementation.
29423         Define a subpackage isolating the output routines specific to this
29424         verbose mode.
29425
29426 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
29427
29428         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
29429
29430         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
29431
29432 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
29433
29434         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
29435         internal unit.
29436
29437         * opt.ads: Add Ada_Version_Runtime constant used to decide which
29438         version of the language is used to compile the run time.
29439
29440 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
29441
29442         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
29443         of variable length temporaries for function return now that the
29444         back-end and gigi support it.
29445
29446 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29447
29448         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
29449
29450         * trans.c (struct stmt_group): Delete field GLOBAL.
29451         (gnat_init_stmt_group): Do not initialize it.
29452         (call_to_gnu): Use save_expr, not protect_multiple_eval.
29453         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
29454         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
29455         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
29456         (start_stmt_group): Likewise.
29457         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
29458
29459         * utils2.c (ggc.h): Include.
29460         (build_call_raise): Call build_int_cst, not build_int_2.
29461
29462         * utils.c (gnat_init_decl_processing): Fix arg to
29463         build_common_tree_nodes.
29464         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
29465         (gnat_define_builtin): Set built_in_decls.
29466         (init_gigi_decls): Call build_int_cst, not build_int_2.
29467
29468         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
29469         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
29470         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
29471         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
29472         SET_TYPE_MODULE): Use them.
29473         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
29474         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
29475         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
29476         SET_TYPE_ADA_SIZE): Likewise.
29477         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
29478         (DECL_CONST_CORRESPONDING_VAR,
29479         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
29480         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
29481         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
29482         (TYPE_RM_SIZE_NUM): New macro.
29483         (TYPE_RM_SIZE): Modified to use above.
29484
29485         * cuintp.c: (build_cst_from_int): New function.
29486         (UI_To_gnu): Use it.
29487
29488         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
29489         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
29490         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
29491         MIN_EXPR for the size, copy it into new.
29492
29493 2004-09-01  Robert Dewar  <dewar@gnat.com>
29494
29495         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
29496         packed indexed component where array is an IN OUT formal. This
29497         generated garbage code previously.
29498
29499         * gnat_ugn.texi: Document -fverbose-asm
29500
29501         * gnat-style.texi: Minor updates (note that boolean constants and
29502         variables are joined with AND/OR rather than short circuit forms).
29503
29504 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
29505
29506         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
29507         it is an upward conversion of an untagged type with no representation
29508         change.
29509
29510 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
29511
29512         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
29513         System.Partition_Interface.
29514
29515         * checks.adb (Apply_Access_Checks): Do not generate checks when
29516         expander is not active (but check for unset reference to prefix of
29517         dereference).
29518
29519         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
29520         pragma Debug as an if statement with a constant condition, for
29521         consistent treatment of entity references contained within the
29522         enclosed procedure call.
29523
29524 2004-09-01  Vincent Celier  <celier@gnat.com>
29525
29526         * bindgen.adb: (Set_EA_Last): New procedure
29527         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
29528         Set_EA_Last.
29529         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
29530         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
29531         linked without errors.
29532         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
29533         ST and EA.
29534         (Gen_Exception_Table_C): Correct same bugs
29535
29536         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
29537
29538         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
29539         on Windows, make sure that the drive letter is in upper case.
29540
29541         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
29542         Windows, when the drive letter is added and Case_Sensitive is True, the
29543         drive letter is forced to upper case.
29544
29545         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
29546         to Options_2 for the call to MLib.Utl.Gcc.
29547
29548         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
29549         directory separator when defining BASE_DIR.
29550
29551 2004-09-01  Pascal Obry  <obry@gnat.com>
29552
29553         * gprcmd.adb (Extend): Do not output trailing directory separator. This
29554         is not needed and it confuses Windows GNU/make which does not report
29555         directory terminated by a slash as a directory.
29556         (gprcmd): Idem for "pwd" internal command.
29557
29558         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
29559         target names rewrite to fix regressions with recent version of
29560         GNU/make. Starting with GNU/make 3.80 the pipe character was not
29561         handled properly anymore.
29562
29563 2004-09-01  Andreas Schwab  <schwab@suse.de>
29564
29565         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
29566         * raise.c [!IN_RTS]: Undef abort.
29567
29568 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
29569
29570         * utils2.c (build_allocator): Use ssize_int.
29571
29572         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
29573
29574 2004-08-27  Andreas Schwab  <schwab@suse.de>
29575
29576         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
29577
29578 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
29579             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29580
29581         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
29582
29583 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
29584
29585         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
29586         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29587         * utils.c (init_gigi_decls): Likewise.
29588         * utils2.c (build_call_raise, build_allocator): Likewise.
29589
29590 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
29591
29592         * utils.c (gnat_init_decl_processing): Adjust
29593         build_common_tree_nodes call.
29594
29595 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
29596
29597         * utils2.c (build_allocator): Use build_int_cst for negative
29598         size types.
29599
29600 2004-08-18  Richard Henderson  <rth@redhat.com>
29601
29602         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
29603
29604 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
29605
29606         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
29607         call.s
29608         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
29609         (gnat_to_gnu): Likewise.
29610
29611 2004-08-16  Pascal Obry  <obry@gnat.com>
29612
29613         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
29614         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
29615         option and not mdll anymore. Update comment.
29616
29617 2004-08-16  Pascal Obry  <obry@gnat.com>
29618
29619         * bld.adb (Put_Include_Project): Properly handle directory separators
29620         on Windows.
29621
29622 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
29623
29624         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
29625         decreasing the number of allocated junk nodes while searching for the
29626         appropriate subprogram.
29627
29628 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
29629
29630         * cuintp.c (UI_To_gnu): Use build_int_cst..
29631         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29632         * utils.c (init_gigi_decls): Likewise.
29633         * utils2.c (build_call_raise): Likewise.
29634
29635 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
29636
29637         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
29638         for a global aliased object with a variable size and an unconstrained
29639         nominal subtype, pretend there is no initializer if the one we have is
29640         incomplete, and avoid referencing an inexistant component in there. The
29641         part we have will be rebuilt anyway and the reference may confuse
29642         further operations.
29643
29644 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
29645
29646         * einfo.ads: Minor reformatting
29647
29648         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
29649         restrictions in the ALI if we only want to warn about violations.
29650
29651 2004-08-13  Vincent Celier  <celier@gnat.com>
29652
29653         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
29654         when creating a new Unit_Record in table Units.
29655
29656         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
29657         that are violated, if any.
29658
29659         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
29660         add directory separator if path already ends with a directory separator.
29661
29662 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
29663
29664         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
29665         unit, this is an attempt to inline a construct that is not available in
29666         the current restricted mode, so abort rather than trying to continue.
29667
29668         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
29669         discriminants that rename those of the parent, recover names of
29670         original discriminants for the constraint on the full view of the
29671         parent.
29672         (Complete_Private_Subtype): Do not create a subtype declaration if the
29673         subtype is an itype.
29674
29675         * gnat_rm.texi: Added section on implementation of discriminated
29676         records with default values for discriminants.
29677
29678 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
29679
29680         PR ada/15601
29681         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
29682         the second operand is overloaded.
29683
29684 2004-08-10  Richard Henderson  <rth@redhat.com>
29685
29686         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
29687         add __builtin_alloca.
29688
29689 2004-08-10  Richard Henderson  <rth@redhat.com>
29690
29691         * config-lang.in (boot_language): Yes.
29692
29693 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
29694
29695         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
29696         from complaining on potential uninitialized reference.
29697         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
29698         new specification and test explicitly for non-zero return value.
29699
29700         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
29701         returning C.int, to avoid using a derived boolean type.
29702
29703         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
29704         Duplicate_Subexpr_No_Checks in preference to direct use of
29705         Remove_Side_Effects and New_Copy_Tree.
29706         Clear Comes_From_Source on prefix of 'Size attribute reference.
29707
29708         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
29709         g-socthi-vxworks.adb: Change calls to
29710         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
29711         and test explicitly for non-zero return value.
29712
29713         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
29714         (Is_Socket_In_Set): Declare imported function as returning C.int, to
29715         avoid using a derived boolean type.
29716
29717 2004-08-09  Albert Lee  <lee@gnat.com>
29718
29719         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
29720
29721 2004-08-09  Pascal Obry  <obry@gnat.com>
29722
29723         * gnat_ugn.texi: Document new way to build DLLs on Windows using
29724         GCC's -shared option.
29725
29726         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
29727         Options_2 parameter (options put after object files).
29728
29729 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
29730
29731         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
29732         ignore overflows on low and high bounds of an index to also account for
29733         differences in signedness between sizetype and gnu_index_subtype.
29734         These are as legitimate as the ones caused by a lower TYPE_PRECISION
29735         on sizetype.
29736
29737 2004-08-09  Robert Dewar  <dewar@gnat.com>
29738
29739         * s-solita.ads, s-solita.adb: Minor reformatting
29740
29741         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
29742         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
29743         obsolescent section
29744         Add note that No_Implicit_Conditionals does not suppress
29745         run time constraint checks.
29746
29747         * vms_conv.ads: Minor reformatting
29748
29749         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
29750         and necessary for following change).
29751         (Mark): Return new format Mark_Id containing sec stack address
29752         (Release): Use sec stack address from Mark_Id avoiding Self call
29753
29754         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
29755         pointer (cleanup and necessary for following change).
29756         Define Mark_Id as record containing address of secondary stack, that way
29757         Release does not need to find the stack again, decreasing the number of
29758         calls to Self and improving efficiency.
29759
29760         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
29761
29762         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
29763         case variable into the individual case branches when possible.
29764
29765         * sem_ch11.adb: Minor reformatting
29766
29767         * prj.ads: Correct spelling of suffixs
29768
29769         * prj-nmsc.adb: Minor reformatting
29770         Correct spelling suffixs throughout (also in identifiers)
29771
29772         * freeze.adb: Minor spelling correction
29773
29774         * exp_ch2.adb: Cleanups to handling of Current_Value
29775         (no functional effect).
29776
29777         * bld.adb: Correct spelling of suffixs
29778
29779         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
29780
29781 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
29782
29783         PR ada/15408
29784         * sem_ch7.adb (Install_Private_Declarations): In the body of the
29785         package or of a child, private entities are both immediately_visible
29786         and not hidden.
29787
29788 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
29789
29790         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
29791         there are no range checks on the value of the literal.
29792
29793         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
29794         wrapped is the triggering alternative of an asynchronous select, action
29795         statements mustbe inserted before the select itself.
29796
29797         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
29798         case where the prefix is a protected function call.
29799         (Resolve_Attribute, case 'Access): The attribute reference on a
29800         subprogram is legal in a generic body if the subprogram is declared
29801         elsewhere.
29802
29803 2004-08-09  Vincent Celier  <celier@gnat.com>
29804
29805         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
29806         languages, otherwise building the library may fail with unresolved
29807         symbols.
29808         (Compile_Sources): Do not build libraries if -c switch is used
29809
29810         * gnatlink.adb (Process_Args): New switches -M and -Mmap
29811         (Write_Usage): If map file creation is supported, output new switches
29812         -M and -Mmap.
29813         (Gnatlink): When -M is specified, add the necessary switch(es) to the
29814         gcc call, when supported.
29815
29816         * Makefile.in: Added indepsw.o to the object list for gnatlink
29817         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
29818
29819         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
29820         indepsw.adb, indepsw.ads: New files.
29821
29822 2004-08-09  Bernard Banner  <banner@gnat.com>
29823
29824         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
29825
29826         * Makefile.in: add section for vxworks x86
29827
29828 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
29829
29830         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
29831         per-object constrained components where the discriminant is of an
29832         Access type.
29833         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
29834         the parent initialization procedure for derived Unchecked_Unions.
29835         Instead, derived Unchecked_Unions build their own initialization
29836         procedure.
29837         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
29838         Check the body of the subprogram for details.
29839         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
29840         functions for derived Unchecked_Union types by introducing a condition.
29841         Allow the creation of TSS equality functions for Unchecked_Unions.
29842         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
29843         Add formal parameter Discr to function signature. Discr is used to
29844         control the generated case statement for Unchecked_Union types.
29845         (Make_Eq_If): Rename formal parameter Node to E in function signature.
29846
29847         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
29848         Unchecked_Unions.
29849         Check the body of the subprogram for details.
29850         (Expand_Composite_Equality): Augment composite type equality to include
29851         correct handling of Unchecked_Union components.
29852         (Expand_N_In): Add condition to detect illegal membership tests when the
29853         subtype mark is a constrained Unchecked_Union and the expression lacks
29854         inferable discriminants, and build a Raise_Program_Error node.
29855         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
29856         to detect types that contain components of unconstrained Unchecked_Union
29857         subtype. Add condition to detect equality between types that have an
29858         unconstrained Unchecked_Union component, and build a Raise_Program_Error
29859         node. Add condition to detect equality between Unchecked_Union types
29860         that lack inferable discriminants, and build a Raise_Program_Error node.
29861         Otherwise build a TSS equality function call.
29862         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
29863         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
29864         with the operand lacking inferable discriminants, and build a Raise_
29865         Program_Error node.
29866         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
29867         composite equality.
29868         (Has_Inferable_Discriminants): Implement new predicate for objects and
29869         expressions of Unchecked_Union type. Check the body of subprogram for
29870         details.
29871         (Has_Unconstrained_UU_Components): Add function
29872         Component_Is_Unconstrained_UU. It is used to detect whether a single
29873         component is of an unconstrained Unchecked_Union subtype. Add function
29874         Variant_Is_Unconstrained_UU. It is used to detect whether a single
29875         component inside a variant is of an unconstrained Unchecked_Union type.
29876
29877         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
29878         inferred discriminant values. Add condition to generate a case
29879         statement with an inferred discriminant as the switch.
29880         (Make_Component_List_Assign): Introduce a Boolean flag that determines
29881         the behaviour of the subprogram in the presence of an Unchecked_Union.
29882         Add condition to trigger the usage of the inferred discriminant value
29883         as the generated case statement switch.
29884         (Make_Field_Assign): Introduce a Boolean flag that determines the
29885         behaviour of the subprogram in the presence of an Unchecked_Union. Add
29886         condition to trigger the usage of the inferred discriminant value as
29887         the right-hand side of the generated assignment.
29888
29889         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
29890         parameter generation when dealing with Unchecked_Unions.
29891
29892         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
29893         checks for Unchecked_Unions.
29894
29895         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
29896
29897         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
29898         Raise_Program_Error nodes for the execution of Read and Write
29899         attributes of Unchecked_Union types and the execution of Input and
29900         Output attributes of Unchecked_Union types that lack default
29901         discriminant values.
29902
29903         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
29904         Unchecked_Union. Add procedure Check_Component. It is used to inspect
29905         per-object constrained components of Unchecked_Unions for being
29906         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
29907         check individual components withing a variant.
29908
29909         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
29910         comparison of Unchecked_Unions.
29911         (Resolve_Equality_OP): Remove guard that prevents equality between
29912         Unchecked_Unions.
29913
29914         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
29915         of component subtypes for Unchecked_Union components.
29916         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
29917         since it is the actual subtype.
29918
29919         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
29920         pass of Unchecked_Union subtypes as generic actuals to formal types
29921         that lack known_discriminant_parts or that are derived Unchecked_Union
29922         types, and do nothing. In any other case, produce an error message.
29923
29924         * sem_ch3.adb (Analyze_Component_Declaration): Add function
29925         Contains_POC. It determines whether a constraint uses the discriminant
29926         of an enclosing record type.
29927         Add condition to detect per-object constrained component and set the
29928         appropriate flag.
29929         (Derived_Type_Declaration): Remove guard that prevents derivation from
29930         Unchecked_Union types.
29931         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
29932         Union subtypes.
29933
29934         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
29935         references to Unchecked_Union discriminants.
29936
29937         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
29938         formal generation when dealing with Unchecked_Unions.
29939         (Set_Actual_Subtypes): Add condition to prevent generation of actual
29940         subtypes for Unchecked_Unions.
29941
29942         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
29943         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
29944         completions of discriminated partial views by Unchecked_Unions and
29945         produce an error message.
29946
29947 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29948
29949         * trans.c (struct stmt_group): New field, GLOBAL.
29950         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
29951         (struct elab_info): New struct.
29952         (elab_info_list, gnu_elab_proc_stack): New variables.
29953         (Compilation_Unit_to_gnu): New procedure.
29954         (gigi): Call it and also handle elaboration procs we've saved.
29955         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
29956         global field from parent.
29957         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
29958         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
29959         (start_stmt_group): Initialize global field from parent.
29960         (add_decl_expr): Set to global for current statement group.
29961         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
29962         post.
29963
29964         * utils.c (global_bindings_p): True when no current_function_decl; no
29965         longer check current_binding_level.
29966
29967 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
29968
29969         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
29970         choice.
29971
29972         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
29973
29974 2004-08-06  Andreas Schwab  <schwab@suse.de>
29975
29976         * utils.c (gnat_define_builtin): Remove second parameter of
29977         make_decl_rtl.
29978         (begin_subprog_body): Likewise.
29979
29980 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
29981
29982         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
29983         optimization, not supported by the tree-ssa back-end.
29984
29985 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
29986
29987         * s-mastop-irix.adb: Update comments.
29988
29989         * a-except.adb (Exception_Information): Raise Constraint_Error if
29990         exception Id is Null_Id.
29991         This is required behavior, which is more reliably and clearly checked
29992         at the top level interface level.
29993
29994 2004-07-26  Javier Miranda  <miranda@gnat.com>
29995
29996         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
29997         call if a component has no default_expression and the box is used.
29998
29999         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
30000         default_expression and you use box, it behaves as if you had declared a
30001         stand-alone object.
30002         (Resolve_Record_Aggregate): If a component has no default_expression and
30003         you use box, it behaves as if you had declared a stand-alone object.
30004
30005         * sem_ch10.adb (Install_Siblings): Do not make visible the private
30006         entities of private-with siblings.
30007
30008 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30009
30010         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
30011         for a component of an itype, set the parent pointer for analysis,
30012         there is no list in which to insert it.
30013
30014         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
30015         bona-fide renamings, not for inherited operations.
30016
30017         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
30018         actual for a formal that is an access parameter, create local
30019         finalization list even if the expression is not an aggregate.
30020
30021 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30022
30023         PR ada/16213
30024         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
30025         Diagnose properly illegal subprogram renamings that are library units.
30026
30027 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
30028
30029         PR ada/15588
30030         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
30031         conversion rewritten as an unchecked conversion, check that original
30032         expression is a variable.
30033
30034         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
30035         unchecked_conversion, create new node rather than rewriting in place,
30036         to preserve original construct.
30037
30038 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30039
30040         * gigi.h (gnat_expand_body): Deleted.
30041
30042         * Make-lang.in: (trans.o): Depends on function.h.
30043
30044         * misc.c: (gnat_expand_body): Moved to here.
30045
30046         * trans.c (gnat_expand_body_1): Deleted.
30047         (gnat_expand_body): Moved from here.
30048         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
30049         (add_stmt): Check for marked visited with global_bindings_p.
30050         (gnat_gimplify_expr, case COMPONENT_REF): New case.
30051         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
30052
30053         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
30054         VIEW_CONVERT_EXPR if not operation type.
30055
30056         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
30057         fat pointer.
30058
30059         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
30060         changes: reformatting of negation operators, removing unneeded
30061         inequality comparison with zero, converting equality comparisons with
30062         zero to negations, changing int/0/1 to bool/false/true, replace calls
30063         to gigi_abort with abort, and various other similar changes.
30064
30065 2004-07-26  Vincent Celier  <celier@gnat.com>
30066
30067         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
30068         "setup".
30069
30070         * make.adb (Gnatmake): Fail when a library is not present and there is
30071         no object directory.
30072
30073         * mlib-prj.adb (Check_Library): No need to check if the library needs
30074         to be rebuilt if there is no object directory, hence no object files
30075         to build the library.
30076
30077         * opt.ads (Setup_Projects): New Boolean flag.
30078
30079         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
30080         Location.
30081         Create directory when Kind /= "" and in "gnat setup". Report error if
30082         directory cannot be created.
30083         (Ada_Check): Create library interface copy dir if it does not exist
30084         and we are in "gnat setup".
30085         (Find_Sources): No error if in "gnat setup" and no Ada sources were
30086         found.
30087         (Language_Independent_Check): Create object directory, exec directory
30088         and/or library directory if they do not exist and we are in
30089         "gnat setup".
30090
30091         * vms_conv.ads: (Command_Type): New command Setup.
30092
30093         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
30094
30095         * vms_data.ads: Add qualifiers/switches for new built-in command
30096         "setup".
30097
30098 2004-07-25  Richard Henderson  <rth@redhat.com>
30099
30100         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
30101         DECL_IGNORED_P on RESULT_DECL.
30102
30103 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
30104
30105         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
30106         allocation and potentially overflowing update with
30107         Tailored_Exception_Information. Use the sec-stack free procedural
30108         interface to output Exception_Information instead.
30109
30110         * a-except.adb (To_Stderr): New subprogram for character, and string
30111         version moved from a-exextr to be visible from other separate units.
30112         (Tailored_Exception_Information): Remove the procedural version,
30113         previously used by the default Last_Chance_Handler and not any more.
30114         Adjust various comments.
30115
30116         * a-exexda.adb: Generalize the exception information procedural
30117         interface, to minimize the use of secondary stack and the need for
30118         local buffers when the info is to be output to stderr:
30119         (Address_Image): Removed.
30120         (Append_Info_Character): New subprogram, checking for overflows and
30121         outputing to stderr if buffer to fill is of length 0.
30122         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
30123         (Append_Info_Address, Append_Info_Exception_Name,
30124         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
30125         Append_Info_Basic_Exception_Traceback,
30126         Append_Info_Exception_Information): New subprograms.
30127         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
30128         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
30129         Exception_Info_Maxlength, Exception_Name_Length,
30130         Exception_Message_Length): New subprograms.
30131         (Exception_Information): Use Append_Info_Exception_Information.
30132         (Tailored_Exception_Information): Use
30133         Append_Info_Basic_Exception_Information.
30134         Export services for the default Last_Chance_Handler.
30135
30136         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
30137         other separate units.
30138
30139 2004-07-20  Vincent Celier  <celier@gnat.com>
30140
30141         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
30142
30143 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30144
30145         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
30146         emit itype references for the designated types of component types that
30147         are declared outside of the full record declaration, and that may
30148         denote a partial view of that record type.
30149
30150 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30151
30152         PR ada/15607
30153         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
30154         which is the designated type in an access component declaration, to the
30155         list of incomplete dependents of the parent type, to avoid elaboration
30156         issues with out-of-scope subtypes.
30157         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
30158         full view of the parent.
30159
30160 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
30161
30162         PR ada/15610
30163         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
30164         entities that are hidden, such as references to generic actuals
30165         outside an instance.
30166
30167 2004-07-20  Javier Miranda  <miranda@gnat.com>
30168
30169         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
30170         support to the new notation.
30171         (Analyze_Selected_Component): Add call to Try_Object_Operation.
30172
30173 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
30174
30175         * s-taprob.adb: Adding the elaboration code required for initializing
30176         the tasking soft links that are common to the full and the restricted
30177         run times.
30178
30179         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
30180         restricted run time has been moved to the package
30181         System.Soft_Links.Tasking.
30182
30183         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
30184         restricted run time has been moved to the package
30185         System.Soft_Links.Tasking.
30186
30187         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
30188
30189         * s-solita.ads, s-solita.adb: New files.
30190
30191 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30192
30193         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
30194         Case_Statement_to_gnu): Split off from gnat_to_gnu.
30195         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
30196         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
30197         Exception_Handler_to_gnu_zcx): Likewise.
30198
30199 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
30200
30201         * gigi.h (builtin_function): Declare.
30202
30203 2004-07-15  Robert Dewar  <dewar@gnat.com>
30204
30205         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
30206         reformatting
30207
30208         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
30209         access values as an example of a warning.
30210
30211         * gnat_rm.texi: Document new attribute Has_Access_Values
30212
30213         * gnat-style.texi: Document that box comments belong on nested
30214         subprograms
30215
30216         * sem_util.ads (Has_Access_Values): Improved documentation
30217
30218         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
30219
30220         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
30221         (Process_Interface_Name): Call to this new procedure
30222         (Set_Extended_Import_Export_External_Name): Call to this new procedure
30223
30224         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
30225
30226         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
30227
30228         * einfo.ads: Minor comment typo fixed
30229
30230 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
30231
30232         * snames.adb: Add _atcb.
30233
30234         * snames.ads: Add Name_uATCB.
30235
30236         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
30237         (in the expanded code) when using the restricted run time.
30238
30239         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
30240         a in parameter in order to allow ATCBs to be preallocated (in the
30241         expanded code).
30242
30243         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
30244         order to allow ATCBs to be preallocated. In case of error, the ATCB is
30245         deallocated in System.Tasking.Stages.
30246
30247         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
30248         order to allow ATCBs to be preallocated.
30249
30250         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
30251         here. It was previously done in Initialize_ATCB.
30252
30253         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
30254
30255         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
30256         Restricted run time.
30257
30258         * exp_ch3.adb: When using the Restricted run time, pass the
30259         preallocated Ada_Task_Control_Block when creating a task.
30260
30261 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
30262
30263         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
30264         function call that is itself an actual in an enclosing call, diagnose
30265         problem here rather than assuming that resolution will catch it.
30266
30267         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
30268         the local copy of a generic unit for a formal package, and the generic
30269         is a child unit, install private part of ancestors before compiling
30270         private part of spec.
30271
30272         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
30273         use scope entities rather than tree structures, to handle properly
30274         parent units that are instances rewritten as bodies for inlining
30275         purposes.
30276
30277         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
30278         Remove_Parents): Handle properly a parent unit that is an
30279         instantiation, when the unit has been rewritten as a body for inlining
30280         purposes.
30281
30282         * par.adb (Goto_List): Global variable to collect goto statements in a
30283         given unit, for use in detecting natural loops.
30284
30285         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
30286         use in detecting natural loops.
30287
30288         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
30289         backwards goto's, and rewrite as a infinite loop, to improve locality
30290         of temporaries.
30291
30292         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
30293         subcomponent that includes an indexed reference, to prevent the
30294         generation of copies that would miscompile the desired assignment
30295         statement.
30296         (Build_Task_Image_Decls): Add a numeric suffix to
30297         generated name for string variable, to avoid spurious conflicts with
30298         the name of the type of a single protected object.
30299
30300         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
30301         loop with an explicit exit statement, to avoid generating an
30302         out-of-range value with 'Succ leading to spurious constraint_errors
30303         when compiling with -gnatVo.
30304
30305 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
30306
30307         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
30308         might not be analyzed yet, even if its Etype is already set (case of an
30309         unchecked conversion built using Unchecked_Convert_To, for example).
30310         If the prefix has already been analyzed, this will be a nop anyway.
30311
30312         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
30313         controller type, or an assignment of a record type with controlled
30314         components, copy only user data, and leave the finalization chain
30315         pointers untouched.
30316
30317 2004-07-15  Vincent Celier  <celier@gnat.com>
30318
30319         * make.adb (Collect_Arguments): Improve error message when attempting
30320         to compile a source not part of any project, when -x is not used.
30321
30322         * prj.ads: (Defined_Variable_Kind): New subtype
30323
30324         * prj-attr.adb (Register_New_Package): Two new procedures to register
30325         a package with or without its attributes.
30326         (Register_New_Attribute): Mew procedure to register a new attribute in a
30327         package.
30328         New attribute oriented subprograms: Attribute_Node_Id_Of,
30329         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30330         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30331         Next_Attribute.
30332         New package oriented subprograms: Package_Node_Id_Of,
30333         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30334
30335         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
30336         type.
30337         (Package_Node_Id): Now a private, self initialized type
30338         (Register_New_Package): New procedure to register a package with its
30339         attributes.
30340         New attribute oriented subprograms: Attribute_Node_Id_Of,
30341         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30342         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30343         Next_Attribute.
30344         New package oriented subprograms: Package_Node_Id_Of,
30345         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30346
30347         * prj-dect.adb (Parse_Attribute_Declaration,
30348         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
30349
30350         * prj-makr.adb (Make): Parse existing project file before creating
30351         other files. Fail if there was an error during parsing.
30352
30353         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
30354         new spec of Prj.Attr.
30355
30356         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
30357         to new spec of Prj.Attr.
30358
30359 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30360
30361         * utils2.c: Fix typo in comment.
30362
30363 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30364
30365         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
30366         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
30367
30368 2004-07-14  Andreas Schwab  <schwab@suse.de>
30369
30370         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
30371
30372 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30373
30374         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
30375         object type.
30376         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
30377         TYPE_STUB_DECL.
30378
30379         * misc.c (gnat_types_compatible_p): New function.
30380         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
30381         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
30382
30383         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
30384         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
30385         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
30386         (mark_visited): Don't mark dummy type.
30387         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
30388         parameter, we must remove any LJM building from GNU_NAME.
30389         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
30390         (pos_to_constructor): Use int_const_binop.
30391         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
30392         PARM_DECL.
30393
30394         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
30395         (gnat_pushlevel): Set TREE_USE on BLOCK node.
30396         (gnat_install_builtins): Add __builtin_memset.
30397
30398 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
30399
30400         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
30401         for a renaming, stabilize the initialization expression if we are at a
30402         local level.  At the local level, uses of the renaming may be performed
30403         by a direct dereference of the initializing expression, and we don't
30404         want possible variables there to be evaluated for every use.
30405
30406         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
30407         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
30408         them on the way.  Account for the fact that we may introduce side
30409         effects in the process.
30410
30411 2004-07-13  Richard Henderson  <rth@redhat.com>
30412
30413         * misc.c (default_pass_by_ref): Use pass_by_reference.
30414
30415 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
30416
30417         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
30418         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
30419
30420 2004-07-08  Richard Henderson  <rth@redhat.com>
30421
30422         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
30423         commentary.
30424
30425 2004-07-06  Vincent Celier  <celier@gnat.com>
30426
30427         * vms_conv.ads: Minor reformatting.
30428         Alphabetical order for enumerated values of type Command_Type, to have
30429         the command in alphabetical order for the usage.
30430
30431         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
30432         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
30433
30434         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
30435
30436         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
30437         (Add_Archive_Path): Only add the global archive if there is one.
30438         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
30439         or not any object file to put in the global archive, and don't build
30440         a global archive if there is none.
30441         (X_Switches): New table
30442         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
30443         in the X_Switches table, if any.
30444         (Initialize): Make sure the X_Switches table is empty
30445         (Scan_Arg): Record -X switches in table X_Switches
30446
30447         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
30448
30449         * make.adb: Minor comment fix
30450
30451         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
30452         invoked with directory information, add the directory in front of the
30453         path.
30454
30455         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
30456         invoked with directory information, add the directory in front of the
30457         path.
30458
30459         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
30460         when Keep_Temporary_Files is False.
30461         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
30462         directory information, add the directory in front of the path.
30463         When not on VMS, handle new switch -dn before the command to set
30464         Keep_Temporary_Files to True.
30465         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
30466         everywhere.
30467
30468         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
30469         invoked with directory information, add the directory in front of the
30470         path.
30471
30472 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
30473
30474         * snames.ads, snames.adb (Name_Stub): New name for the distributed
30475         systems annex.
30476
30477         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
30478         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
30479
30480         * g-socket.adb (To_Timeval): Fix incorrect conversion of
30481         Selector_Duration to Timeval for the case of 0.0.
30482
30483         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
30484         documentation from Evolve_And_Then.
30485
30486 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
30487
30488         * s-taprop-tru64.adb, s-taprop-os2.adb,
30489         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
30490
30491 2004-07-06  Robert Dewar  <dewar@gnat.com>
30492
30493         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
30494         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
30495         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
30496         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
30497         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
30498         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
30499         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
30500         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
30501         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
30502         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
30503         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
30504         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
30505         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
30506         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
30507         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
30508         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
30509         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
30510         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
30511         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
30512         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
30513         vms_data.ads: Minor reformatting,
30514         Fix bad box comment format.
30515
30516         * gnat_rm.texi: Fix minor grammatical error
30517
30518         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
30519
30520         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
30521         more cases of discriminated records to be recognized as not needing a
30522         secondary stack.
30523         (Has_Access_Values): New function.
30524
30525         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
30526
30527         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
30528         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
30529         with LRM terminology).
30530         Change terminology in comments primitive type => elementary type.
30531
30532 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
30533
30534         PR ada/15602
30535         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
30536         parameters do not impose any requirements on the presence of a body.
30537
30538 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
30539
30540         PR ada/15593
30541         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
30542         compilation unit and is in an open scope at the point of instantiation,
30543         assume that a body may be present later.
30544
30545 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
30546
30547         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
30548         Improve error message when specified size is not supported.
30549
30550         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
30551         is never a primitive operation.
30552
30553 2004-07-05  Andreas Schwab  <schwab@suse.de>
30554
30555         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
30556         RECORD_OR_UNION_CHECK.
30557         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
30558
30559 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
30560
30561         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
30562         dependency on xgnatugn, instead build it via a submake.
30563         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
30564
30565 2004-07-04  Richard Henderson  <rth@redhat.com>
30566
30567         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
30568
30569 2004-07-01  Richard Henderson  <rth@redhat.com>
30570
30571         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
30572         * utils.c (max_size): Likewise.
30573
30574 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30575
30576         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
30577         and rest_of_type_compilation; add arg to create_*_decl.
30578         (annotate_decl_with_node): Deleted.
30579         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
30580         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
30581         (get_current_block_context, gnat_pushdecl): New declarations.
30582         (gnat_init_stmt_group): Likewise.
30583         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
30584         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
30585         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
30586         (gnat_init): Call gnat_init_stmt_group.
30587         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
30588         (gnu_pending_elaboration_list): Deleted.
30589         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
30590         (gigi): Rearrange initialization calls and move some to last above.
30591         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
30592         Delete calls to add_decl_expr; add arg to create_*_decl.
30593         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
30594         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
30595         begin_subprog_body and call it.
30596         Don't push and pop ggc context.
30597         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
30598         (add_stmt): Remove handling of DECL_EXPR from here.
30599         If not in function, mark visited.
30600         (add_decl_expr): Put global at top level.
30601         Check for cases of DECL_INITIAL we have to handle here.
30602         (process_type): Add extra arg to create_type_decl.
30603         (build_unit_elab): Rework to just gimplify.
30604         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
30605         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
30606         (get_pending_elaborations, pending_elaborations_p): Likewise.
30607         (push_pending_elaborations, pop_pending_elaborations): Likewise.
30608         (get_elaboration_location, insert_elaboration_list): Likewise.
30609         (gnat_binding_level): Renamed from ada_binding_level.
30610         (init_gnat_to_gnu): Don't clear pending_elaborations.
30611         (global_bindings_p): Treat as global if no current_binding_level.
30612         (set_current_block_context): New function.
30613         (gnat_pushdecl): Renamed from pushdecl; major rework.
30614         All callers changed.
30615         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
30616         (finish_record_type): Call call pushdecl for stub decl.
30617         (function_nesting_depth): Deleted.
30618         (begin_subprog_body): Delete obsolete code.
30619         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
30620
30621 2004-06-28  Robert Dewar  <dewar@gnat.com>
30622
30623         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30624         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
30625         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
30626         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30627         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
30628
30629         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
30630         deal with problem of inefficient slices on machines with strict
30631         alignment, when the slice is a component of a composite.
30632
30633         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
30634         machines, we need the check there as well.
30635
30636 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
30637
30638         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
30639         determine safe copying direction for overlapping slice assignments
30640         when component is controlled.
30641
30642         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
30643         formal derived type in the actual for a formal package are visible in
30644         the enclosing instance.
30645
30646 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
30647
30648         PR ada/15600
30649         * sem_util.adb (Trace_Components): Diagnose properly an illegal
30650         circularity involving a private type whose completion includes a
30651         self-referential component.
30652         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
30653         renaming or an instantiation from an implicit derived operation.
30654
30655 2004-06-28  Pascal Obry  <obry@gnat.com>
30656
30657         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
30658         DLL.
30659         (Library_File_Name_For): Idem.
30660
30661 2004-06-28  Matthew Gingell  <gingell@gnat.com>
30662
30663         * g-traceb.ads: Add explanatory note on the format of addresses
30664         expected by addr2line.
30665
30666 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
30667
30668         * Makefile.in: Force debugging information on s-tasdeb.adb,
30669         a-except.adb and s-assert.adb needed by the debugger.
30670
30671 2004-06-28  Vincent Celier  <celier@gnat.com>
30672
30673         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
30674         Need_To_Build_Lib.
30675         (Gnatmake): Ditto.
30676
30677         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
30678
30679         * prj.adb: Minor reformatting
30680         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
30681
30682         * prj.ads: Comment updates
30683         Minor reformatting
30684         (Project_Data): Change Flag1 to Need_To_Build_Lib.
30685         Remove Flag2: not used.
30686
30687         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
30688         declaration.
30689
30690         * gnat_ugn.texi: Put a "null;" declaration in one project file example
30691
30692         * gnat_rm.texi: Document Empty declarations "null;".
30693
30694         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
30695         front of the linker options.
30696         (Link_Foreign): Put the global archives and the libraries in front of
30697         the linker options.
30698
30699 2004-06-28  Javier Miranda  <miranda@gnat.com>
30700
30701         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
30702         (RTU_Loaded): Code cleanup
30703         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
30704         withed predefined units.
30705
30706         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
30707         explicitly withed predefined units.
30708         Fix typo in comment
30709
30710         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
30711         explicitly withed predefined units.
30712
30713 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30714
30715         * ada-tree.def (DECL_STMT): Deleted.
30716         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
30717         (DECL_STMT_VAR): Deleted.
30718         * decl.c: add_decl_stmt now add_decl_expr.
30719         * gigi.h: Likewise.
30720         * trans.c: Likewise.
30721         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30722         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
30723         (add_stmt): Only handle padded type here.
30724         (add_stmt_with_node): Allow gnat_node to not be present.
30725         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
30726         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
30727         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
30728         make a SAVE_EXPR for the entire fat pointer.
30729         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
30730         (create_index_type): Make a DECL_EXPR.
30731         (end_subprog_body): Don't call allocate_struct_function here but
30732         do clear cfun.
30733
30734 2004-06-25  Pascal Obry  <obry@gnat.com>
30735
30736         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
30737         Relocatable from Build_Dynamic_Library call.
30738
30739         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
30740         Relocatable are now synonym.
30741
30742         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
30743
30744         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
30745         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
30746         call.
30747
30748         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
30749         Lib_Address and Relocatable.
30750         (Default_DLL_Address): Removed.
30751
30752         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30753         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30754         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
30755         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
30756         (Default_DLL_Address): Removed.
30757
30758         * mlib-tgt-mingw.adb: Ditto.
30759         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
30760
30761         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
30762         the initial thread stack size.
30763
30764         * a-strmap.ads: Move package L to private part as it is not used in
30765         the spec. Found while reading code.
30766
30767 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
30768
30769         * tracebak.c: Introduce support for a GCC infrastructure based
30770         implementation of __gnat_backtrace.
30771
30772         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
30773         any more. Use accessors instead. This eases maintenance and relaxes
30774         some alignment constraints.
30775         (_GNAT_Exception structure): Remove the Ada specific fields
30776         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
30777         a-exexpr.adb.
30778         (is_handled_by, __gnat_eh_personality): Replace component references to
30779         exception structure by use of the new accessors.
30780
30781         * init.c (__gnat_initialize): Adjust comments to match the just
30782         reverted meaning of the -static link-time option.
30783
30784         * adaint.c (convert_addresses): Arrange not to define a stub for
30785         mips-irix any more, as we now want to rely on a real version from a
30786         recent libaddr2line.
30787
30788         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
30789         the personality routine can use them and not have to rely on a C
30790         counterpart of the record anymore. This simplifies maintenance and
30791         relaxes the constraint of having Standard'Maximum_Alignment match
30792         BIGGEST_ALIGNMENT.
30793         Update comments, and add a section on the common header alignment issue.
30794
30795 2004-06-25  Geert Bosch  <bosch@gnat.com>
30796
30797         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
30798         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
30799
30800 2004-06-25  Robert Dewar  <dewar@gnat.com>
30801
30802         * gnat_rm.texi: Fix section on component clauses to indicate that the
30803         restriction on byte boundary placement still applies for bit packed
30804         arrays.
30805         Add comment on stack usage from Initialize_Scalars
30806
30807         * gnat_ugn.texi: Add documentation for -gnatyLnnn
30808
30809         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
30810         limiting nesting level.
30811
30812         * usage.adb: Add line for -gnatyLnnn switch
30813
30814         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
30815         sem_ch13.adb, exp_aggr.adb: Minor reformatting
30816
30817         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
30818         type as well as on the subtype. This corrects a problem in freeze in
30819         setting alignments of atomic types.
30820
30821         * sem_eval.ads: Minor comment typo fixed
30822
30823         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
30824         level.  Minor reformatting.
30825
30826         * fname.adb (Is_Predefined_File_Name): Require a letter after the
30827         minus sign. This means that file names like a--b.adb will not be
30828         considered predefined.
30829
30830         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
30831         record Test new flag and give diagnostic for bad component clause.
30832         (Freeze_Entity): Set alignment of array from component alignment in
30833         cases where this is safe to do.
30834
30835         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
30836         arrays.
30837
30838         * cstand.adb: (Create_Standard): Set alignment of String to 1
30839
30840         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
30841
30842         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
30843         code in the common constrained array cases.
30844
30845         * a-storio.adb: Change implementation to avoid possible alignment
30846         problems on machines requiring strict alignment (data should be moved
30847         as type Buffer, not type Elmt).
30848
30849         * checks.adb (Apply_Array_Size_Check): Improve these checks by
30850         killing the overflow checks which we really do not need (64-bits is
30851         enough).
30852
30853 2004-06-25  Vincent Celier  <celier@gnat.com>
30854
30855         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
30856         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
30857         inconditionally for the main project.
30858         (Recursive_Add_Archives.Add_Archive_Path): New procedure
30859         (Link_Executables.Check_Time_Stamps): New procedure
30860         (Link_Executables.Link_Foreign): New procedure
30861         Changes made to reduce nesting level of this package
30862         (Check): New procedure
30863         (Add_Switches): When not in quiet output, check that a switch is not
30864         the concatenation of several valid switches. If it is, issue a warning.
30865         (Build_Global_Archive): If the global archive is rebuilt, linking need
30866         to be done.
30867         (Compile_Sources): Rebuilding a library archive does not imply
30868         rebuilding the global archive.
30869         (Build_Global_Archive): New procedure
30870         (Build_Library): New name for Build_Archive, now only for library
30871         project
30872         (Check_Archive_Builder): New procedure
30873         (Create_Global_Archive_Dependency_File): New procedure
30874         (Gprmake): Call Build_Global_Archive before linking
30875         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
30876         throughout.
30877         (Scan_Arg): Display the Copyright notice when -v is used
30878
30879         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
30880         for gnatls.
30881
30882         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
30883         COMPILE.
30884         Add new GNAT LIST qualifier /FILES=
30885         Added qualifier /DIRECTORY= to GNAT METRIC
30886         Added qualifier /FILES= to GNAT METRIC
30887         Added qualifier /FILES to GNAT PRETTY
30888
30889         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
30890         to take into account both versions of the switch.
30891
30892         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
30893         always be the last switch to the gcc driver. Disable switch storing so
30894         that switches automatically added by the gcc driver are not put in the
30895         ALI file.
30896
30897         * prj.adb (Project_Empty): Take into account changes in components of
30898         Project_Data.
30899
30900         * prj.ads (Languages_Processed): New enumaration value All_Languages.
30901
30902         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
30903         used. Split Boolean component Ada_Sources_Present in two Boolean
30904         components Ada_Sources_Present and Other_Sources_Present.
30905         Minor reformatting
30906
30907         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
30908         instead of Sources_Present.
30909         (Set_Ada_Paths.Add.Recursive_Add): Ditto
30910
30911         * prj-nmsc.adb: Minor reformatting
30912         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
30913         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
30914         Check_Ada_Naming_Scheme.
30915         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
30916         throughout.
30917
30918         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
30919         In_Limited.
30920         Make sure that all cycles where there is at least one "limited with"
30921         are detected.
30922         (Parse_Single_Project): New Boolean parameter In_Limited
30923
30924         * prj-proc.adb (Recursive_Check): When Process_Languages is
30925         All_Languages, call first Prj.Nmsc.Ada_Check, then
30926         Prj.Nmsc.Other_Languages_Check.
30927
30928         * prj-proc.adb (Process): Use Ada_Sources_Present or
30929         Other_Sources_Present (instead of Sources_Present) depending on
30930         Process_Languages.
30931
30932         * lang-specs.h: Keep -g and -m switches in the same order, and as the
30933         last switches.
30934
30935         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
30936         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
30937         False.
30938         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
30939         False.
30940
30941         * lib.ads (Disable_Switch_Storing): New procedure.
30942
30943         * make.adb: Modifications to reduce nesting level of this package.
30944         (Check_Standard_Library): New procedure
30945         (Gnatmake.Check_Mains): New procedure
30946         (Gnatmake.Create_Binder_Mapping_File): New procedure
30947         (Compile_Sources.Compile): Add switch -gnatez as the last option
30948         (Display): Never display -gnatez
30949
30950         * Makefile.generic:
30951         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
30952
30953         * gnatcmd.adb (Check_Project): New function
30954         (Process_Link): New procedure to reduce nesting depth
30955         (Check_Files): New procedure to reduce the nesting depth.
30956         For GNAT METRIC, include the inherited sources in extending projects.
30957         (GNATCmd): When GNAT LS is invoked with a project file and no files,
30958         add the list of files from the sources of the project file. If this list
30959         is too long, put it in a temp text files and use switch -files=
30960         (Delete_Temp_Config_Files): Delete the temp text file that contains
30961         a list of source for gnatpp or gnatmetric, if one has been created.
30962         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
30963         in the project file is too large, create a temporary text file that
30964         list them and pass it to the tool with "-files=<temp text file>".
30965         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
30966
30967         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
30968         generated file is in not in Ada.
30969
30970         * gnatls.adb: Remove all parameters And_Save that are no longer used.
30971         (Scan_Ls_Arg): Add processing for -files=
30972         (Usage): Add line for -files=
30973
30974         * g-os_lib.adb (On_Windows): New global constant Boolean flag
30975         (Normalize_Pathname): When on Windows and the path starts with a
30976         directory separator, make sure that the resulting path will start with
30977         a drive letter.
30978
30979         * clean.adb (Clean_Archive): New procedure
30980         (Clean_Project): When there is non-Ada code, delete the global archive,
30981         the archive dependency files, the object files and their dependency
30982         files, if they exist.
30983         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
30984
30985 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
30986
30987         * sinfo.ads: Fix typo in comment.
30988
30989         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
30990         the TSS for remote access-to-subprogram types, since these TSS are
30991         always present once the type has been analyzed.
30992         (RAS_E_Dereference): Same.
30993
30994         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
30995         reference raises Bad_Attribute, mark the reference as analyzed so the
30996         node (and any children resulting from rewrites that could have occurred
30997         during the analysis that ultimately failed) is not analyzed again.
30998
30999         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
31000
31001         * exp_dist.adb: Minor comment fix.
31002
31003         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
31004         type is an anonymous access type, no unchecked deallocation of the
31005         allocated object can occur. If the object is controlled, attach it with
31006         a count of 1. This allows attachment to the Global_Final_List, if
31007         no other relevant list is available.
31008         (Get_Allocator_Final_List): For an anonymous access type that is
31009         the type of a discriminant or record component, the corresponding
31010         finalisation list is the one of the scope of the type.
31011
31012 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
31013
31014         * sem_ch3.adb (Replace_Type): When computing the signature of an
31015         inherited subprogram, use the first subtype if the derived type
31016         declaration has no constraint.
31017
31018         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
31019         before applying previous optimization. Minor code cleanup.
31020
31021         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
31022         placed at the beginning of an unpacked record without explicit
31023         alignment, a slice of it will be aligned and does not need a copy when
31024         used as an actual.
31025
31026 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
31027
31028         PR ada/15591
31029         PR ada/15592
31030         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
31031         reference is written with expressions mimicking parameters.
31032
31033 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
31034
31035         PR ada/15589
31036         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
31037         STEP 2a. The constraints of a full type declaration of a derived record
31038         type are checked for conformance with those declared in the
31039         corresponding private extension declaration. The message
31040         "not conformant with previous declaration" is emitted if an error is
31041         detected.
31042
31043 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
31044
31045         * g-traceb.ads: Document the need for -E binder switch in the spec.
31046
31047         * g-trasym.ads: Document the need for -E binder switch in the spec.
31048
31049 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
31050
31051         * sem_prag.adb: Add handling of pragma Detect_Blocking.
31052
31053         * snames.h, snames.ads, snames.adb: Add entry for pragma
31054         Detect_Blocking.
31055
31056         * s-rident.ads: Change reference to pragma Detect_Blocking.
31057
31058         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
31059         system.ads.
31060
31061         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
31062         to indicate whether pragma Detect_Blocking is active.
31063
31064         * par-prag.adb: Add entry for pragma Detect_Blocking.
31065
31066         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
31067         of not handling WITH.
31068         Note that this replaces the previous update which was incorrect.
31069
31070 2004-06-25  Javier Miranda  <miranda@gnat.com>
31071
31072         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
31073         use-clauses to have a clean environment.
31074
31075         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
31076         the installation of the use-clauses to stablish a clean environment in
31077         case of compilation of a separate unit; otherwise the call to
31078         use_one_package is protected by the barrier Applicable_Use.
31079
31080         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
31081         the installation of the use-clauses to stablish a clean environment in
31082         case of compilation of a separate unit.
31083         (End_Use_Clauses): Minor comment cleanup.
31084
31085 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
31086
31087         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
31088
31089 2004-06-23  Richard Henderson  <rth@redhat.com>
31090
31091         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
31092
31093 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31094
31095         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
31096         now bool instead of int.
31097         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
31098         * trans.c (gnu_switch_label_stack): New function.
31099         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
31100         elaboration of renamed entity returns.
31101         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
31102         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
31103         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
31104         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
31105         DECL_SIZE_UNIT and simplify variable-sized case.
31106         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31107         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
31108         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
31109         (build_unit_elab): Disable for now.
31110         * utils.c (mark_visited): New function.
31111         (pushdecl): Walk tree to call it for global decl.
31112         (update_pointer_to): Update all variants of pointer and ref types.
31113         Add arg to COMPONENT_REF.
31114         (convert): Likewise.
31115         Move check for converting between variants lower down.
31116         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
31117         (build_allocator): Don't force type of MODIFY_EXPR.
31118         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
31119         put_var_into_stack.
31120
31121 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31122
31123         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
31124         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
31125         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
31126         subprograms.
31127         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
31128         all callers changed.
31129         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
31130         the way that EXIT_STMT finds the loop label.
31131         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
31132         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
31133         (add_stmt): Use annotate_with_locus insted of setting directly.
31134         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
31135         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
31136         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
31137         (build_vms_descriptor): Add extra args to ARRAY_REF.
31138         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
31139         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
31140         New cases.
31141         (build_binary_op): Don't make explicit CONVERT_EXPR.
31142         Add extra rgs to ARRAY_REF.
31143
31144 2004-06-14  Pascal Obry  <obry@gnat.com>
31145
31146         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
31147         Windows.  Fix minor typo.
31148
31149         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
31150         which is now supported on Windows. With this implementation using the
31151         Library Project feature is no different on Windows than on UNIX.
31152
31153 2004-06-14  Vincent Celier  <celier@gnat.com>
31154
31155         * makegpr.adb (Compile_Sources): Nothing to do when there are no
31156         non-Ada sources.
31157
31158         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
31159
31160         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
31161         found, show the project name and the path of the previously parsed
31162         project file.
31163
31164 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
31165
31166         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
31167         array, avoid copying the actual before the call.
31168
31169 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
31170
31171         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
31172         Instead, allocate memory on worst-case alignment assumptions, and then
31173         return an aligned address within the allocated zone.
31174
31175 2004-06-14  Robert Dewar  <dewar@gnat.com>
31176
31177         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
31178         elab entities in predefined units in No_Run_Time_Mode.
31179         (Gen_Adainit_C): Same fix
31180         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
31181         units in No_Run_Time_Mode
31182         (Gen_Elab_Calls_C): Same fix
31183
31184         * symbols-vms-alpha.adb: Minor reformatting
31185
31186         * g-debpoo.ads: Minor reformatting
31187
31188         * lib.adb (In_Same_Extended_Unit): Version working on node id's
31189
31190         * lib.ads (In_Same_Extended_Unit): Version working on node id's
31191
31192         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
31193         working on nodes.
31194
31195         * make.adb: Minor reformatting
31196
31197         * par-ch12.adb: Minor reformatting
31198
31199         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
31200
31201         * prj-strt.adb: Minor reformatting
31202
31203         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
31204         be more general.
31205
31206         * sem_attr.adb: Minor reformatting
31207
31208         * sem_ch7.adb: Minor reformatting
31209
31210         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
31211         for type in the same unit as the object declaration.
31212
31213         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
31214         static string expressions and not just string literals.
31215         Minor reformatting
31216         (Set_Warning): Reset restriction warning flag for restriction pragma
31217         Implement pragma Profile_Warnings
31218         Implement pragma Profile (Restricted)
31219         Give obolescent messages for old restrictions and pragmas
31220
31221         * snames.h, snames.ads, snames.adb: Add new entry for pragma
31222         Profile_Warnings.
31223
31224         * s-rident.ads: Add declarations for restrictions required by profile
31225         Restricted and profile Ravenscar.
31226
31227         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
31228
31229         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
31230         configuration pragmas.
31231
31232 2004-06-11  Vincent Celier  <celier@gnat.com>
31233
31234         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
31235         gnatsym, when symbol policy is Restricted.
31236
31237         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
31238         gnatsym, when symbol policy is Restricted.
31239
31240         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
31241         read the symbol file.
31242         (Finalize): Fail in symbol policy Restricted if a symbol in the original
31243         symbol file is not in the object files. Do not create a new symbol file
31244         when symbol policy is Restricted.
31245
31246         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
31247         in Scng.
31248
31249         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
31250         Restricted.
31251         (Usage): Line for new switch -R
31252
31253         * make.adb (Initialize): When the platform is not VMS, add the
31254         directory where gnatmake is invoked in the front of the path, if
31255         gnatmake is invoked with directory information.  Change the Scan_Args
31256         while loop to a for loop.
31257         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
31258         if Depth is equal or greater than the proposed depth, there is nothing
31259         to do.
31260         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
31261         instead of 0.
31262
31263         * prj.ads: Add new symbol policy Restricted.
31264
31265         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
31266         with the new parameters Check_All_Labels and Case_Location.
31267
31268         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
31269         (Library_Symbol_File needs to be defined).
31270
31271         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
31272         and Case_Location If Check_All_Labels is True, check that all values of
31273         the string type are used, and output warning(s) if they are not.
31274
31275         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
31276         and Case_Location.
31277
31278         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
31279
31280         * gnat_ugn.texi: Update documentation about the library directory in
31281         Library Projects.
31282
31283         * makegpr.adb (Display_Command): In verbose mode, also display the
31284         value of the CPATH env var, when the compiler is gcc.
31285         (Initialize): Change the Scan_Args while loop to a for loop
31286         (Compile_Individual_Sources): Change directory to object directory
31287         before compilations.
31288
31289         * symbols.ads: New symbol policy Restricted.
31290
31291 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
31292
31293         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
31294         is now taken care of internally in the Exception_Propagation package
31295         and does not require clients assistance any more.
31296
31297         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
31298         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
31299         functions. Helpers to maintain a predicate required in the handling of
31300         occurrence transfer between tasks.
31301         This is now handled internally and does not require clients assistance
31302         for the setup/propagate separation anymore.
31303         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
31304         allocation strategy, handle the Setup_And_Not_Propagated predicate and
31305         document.
31306
31307         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
31308         raise_after_setup, now that everything is handled internally within the
31309         setup/propagation engine.
31310
31311 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
31312
31313         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
31314         Add additional conditions for the case of an actual being a simple
31315         name or literal. Improve inlining by preventing the generation
31316         of temporaries with a short lifetime (one use).
31317
31318 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
31319
31320         PR ada/15587
31321         * einfo.ads: Minor comment updates for Has_Completion and
31322         E_Constant list of flags.
31323
31324         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
31325         and constant redeclarations now set the Has_Completion flag of their
31326         defining identifiers.
31327
31328         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
31329         Inspect_Deferred_Constant_Completion.
31330         Used to detect private deferred constants that have not been completed
31331         either by a constant redeclaration or pragma Import. Emits error message
31332         "constant declaration requires initialization expression".
31333
31334         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
31335         completes a deferred constant.
31336
31337 2004-06-11  Geert Bosch  <bosch@gnat.com>
31338
31339         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
31340
31341         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
31342         calculating exponent for scaling denormal numbers.
31343         (Leading_Part): Properly raise Constraint_Error for zero or negative
31344         Adjustment.
31345         (Remainder): Properly raise Constraint_Error for zero divisor.
31346
31347 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
31348
31349         * sem_util.adb: Minor reformatting.
31350
31351         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
31352         dereference when accessing the entry parameter record.
31353         (Check_Array_Type): Always check for possible implicit dereference.
31354         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31355         Abort if a pointer is still present (denoting that an implicit
31356         dereference was left in the tree by the front-end).
31357
31358         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
31359         dereference when accessing the entry parameter record.
31360         (Check_Array_Type): Always check for possible implicit dereference.
31361         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31362         Abort if a pointer is still present (denoting that an implicit
31363         dereference was left in the tree by the front-end).
31364
31365 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
31366
31367         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
31368         message, like the compiler itself does. Easier to parse the output.
31369
31370         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
31371
31372         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
31373         be base names, and not includes directories.
31374
31375 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
31376
31377         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
31378         so that dependencies are properly taken into account by make.
31379
31380 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
31381
31382         PR ada/15622
31383         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
31384         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
31385
31386 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
31387
31388         * Makefile.in (install-gnatlib): install target-specific run-time files.
31389
31390         * Make-lang.in: Remove obsolete targets.
31391
31392 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
31393
31394         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
31395         specification, to catch misuses of program unit names.
31396
31397         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
31398         superfluous conversions in an instance.
31399
31400 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
31401
31402         PR ada/15403
31403         * sem_ch12.adb (Save_References): If operator node has been folded to
31404         enumeration literal, associated_node must be discarded.
31405
31406 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
31407
31408         * s-stchop-vxworks.adb: Add required pragma Convention to
31409         Task_Descriptor because it is updated by a C function.
31410
31411 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
31412
31413         PR ada/15568
31414         * Makefile.in: Remove target specific SO_OPT on IRIX
31415
31416 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31417
31418         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
31419         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
31420         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
31421         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
31422         (STMT_STMT, USE_STMT): New statement codes.
31423         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
31424         * ada-tree.h: Reflect above changes.
31425         (struct tree_loop_id): Deleted.
31426         (union lang_tree_node, struct lang_decl, struct lang_type):
31427         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
31428         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
31429         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
31430         (IS_ADA_STMT): New macro.
31431         * decl.c (annotate_decl_with_node): New function.
31432         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
31433         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
31434         Call add_stmt_with_node to do needed assignments.
31435         Add call to update setjmp buffer directly, not via EXPR_STMT.
31436         (maybe_variable): Argment GNAT_NODE deleted.
31437         * gigi.h (maybe_variable): Likewise.
31438         (make_transform, add_stmt_with_node, set_block_for_group): New.
31439         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
31440         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
31441         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
31442         (set_lineno, set_lineno_from_sloc): Likewise.
31443         (record_code_position, insert_code_for): Likewise.
31444         (gnat_poplevel): Now returns void.
31445         (end_subprog_body): Now takes argument.
31446         * misc.c (cgraph.h, tree-inline.h): New includes.
31447         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
31448         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
31449         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
31450         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
31451         (gnat_parse_file): Don't set immediate_size_expand.
31452         Call cgraph functions.
31453         (gnat_expand_expr): Remove most cases.
31454         (record_code_position, insert_code_for): Remove from here.
31455         * trans.c (toplev.h, tree-gimple.h): Now included.
31456         (discard_file_names): Deleted.
31457         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
31458         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
31459         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
31460         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
31461         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
31462         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
31463         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
31464         (set_block_for_group, add_stmt_list): Likewise.
31465         (start_stmt_group): Renamed from start_block_stmt.
31466         (end_stmt_group): Likewise, from end_block_stmt.
31467         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
31468         (gigi): Don't set discard_file_names or call set_lineno.
31469         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
31470         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
31471         Numerous changes throughout to reflect new names and complete
31472         function-at-a-time implementation.
31473         (gnat_expand_stmt): Delete or comment out all cases.
31474         (process_inlined_subprograms): Use add_stmt.
31475         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
31476         call set_lineno; also remove unneeded block handling.
31477         (process_type): Remove unneeded block handling.
31478         (build_unit_elab): Remove calls to deleted functions.
31479         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
31480         (tree-dump.h): Likewise.
31481         (struct ada_binding_level): Add field jmpbuf_decl.
31482         (gnat_define_builtin, gnat_install_builtins): New.
31483         (gnat_gimplify_function, gnat_finalize): Likewise.
31484         (gnat_poplevel): No longer return BLOCK, set it instead.
31485         Remove code dealing with nested functions.
31486         (gnat_init_decl_processing): Also set size_type_node.
31487         Call gnat_install_builtins.
31488         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
31489         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
31490         Remove special-case for "main".
31491         (end_subprog_body): Add arg and rework for tree-ssa.
31492         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
31493         Add case for BOOLEAN_TYPE.
31494         * utils2.c (rtl.h): Now include.
31495         (build_call_raise): Test Debug_Flag_NN directly.
31496         (build_call_alloc_dealloc): Don't use local stack allocation for now.
31497         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
31498         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
31499
31500 2004-06-07  Robert Dewar  <dewar@gnat.com>
31501
31502         * a-direct.ads, einfo.ads: Minor comment updates
31503
31504         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
31505         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31506         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
31507         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
31508         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
31509
31510         * s-interr-sigaction.adb: Remove unreferenced variable
31511         (Attached_Interrupts).  Minor reformatting.
31512         Avoid use of variable I (replace by J).
31513
31514         * par-ch10.adb: Fix text of one error message
31515
31516         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
31517         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
31518         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
31519         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
31520         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
31521         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
31522         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
31523         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
31524         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
31525         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
31526         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
31527         2005 support.
31528
31529 2004-06-07  Doug Rupp  <rupp@gnat.com>
31530
31531         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
31532
31533         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
31534
31535         * mlib-tgt-vms-ia64.adb: New file.
31536
31537         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
31538         Add mlib-tgt-vms-ia64.adb
31539         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
31540         Move to alpha specific ifeq section.
31541         Add VMS specific versions of symbols.adb
31542         Renaming of 5q vms files.
31543
31544         * 5qsystem.ads renamed to system-vms_64.ads.
31545
31546 2004-06-07  Vincent Celier  <celier@gnat.com>
31547
31548         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
31549         explain that when a time of day corresponding to the non existing hour
31550         on the day switching to DST is specified, Split may return a different
31551         value for Seconds.
31552
31553         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
31554         to GNAT PRETTY.
31555
31556         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
31557         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
31558
31559         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
31560         to False.
31561         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
31562         the linking options.
31563         (Build_Library.Check_Libs): On VMS, if there is a dependency on
31564         g-trasym.ads, set Gtrasymobj_Needed to True.
31565
31566         * prj-attr.adb: Add new package Metrics for gnatmetric
31567
31568         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
31569         canonical case to take into account files with upper case characters on
31570         Windows.
31571         (Ada_Check): Load the reference symbol file name in the name buffer to
31572         check it, not the symbol file name.
31573
31574         * snames.ads, snames.adb: Add standard name Metrics (name of project
31575         file package for gnatmetric).
31576
31577         * vms_conv.ads: Add Metric to Comment_Type
31578
31579         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
31580
31581         * vms_data.ads: Add qualifiers for GNAT METRIC
31582
31583         * makegpr.adb (Link_Executables): Take into account the switches
31584         specified in package Linker of the main project.
31585
31586 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
31587
31588         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
31589         the index of the last element is Units.Last, not Units.Table'Last
31590         (which is usually not a valid index within the actually allocated
31591         storage for the table).
31592
31593         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
31594         determines whether to generate a call to a checked storage pool
31595         Dereference action.
31596         Generate such a call only for a dereference that either comes from
31597         source, or is the result of rewriting a dereference that comes from
31598         source.
31599
31600 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
31601
31602         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
31603
31604 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
31605
31606         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
31607         file level, elaborate the stride for inner dimensions in alignment
31608         units, not bytes.
31609
31610         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
31611         in a comment.
31612
31613 2004-06-07  Javier Miranda  <miranda@gnat.com>
31614
31615         * exp_ch6.adb: Correct wrong modification in previous patch
31616
31617 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
31618
31619         * g-trasym.ads: Corrected comment to properly reflect level of support
31620         on VMS.
31621
31622 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
31623
31624         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
31625         includes case of a variable referenced on the left hand side of an
31626         assignment, therefore remove redundant code. Variables and prefixes of
31627         indexed or selected components are now marked as referenced on left
31628         hand side. Warnings are now properly emitted when variables or prefixes
31629         are assigned but not read.
31630
31631         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
31632         left hand side referenced variables. Private access types do not
31633         produce the warning "variable ... is assigned but never read".
31634         Add also additional checks to left hand side referenced variables.
31635         Aliased, renamed objects and access types do not produce the warning
31636         "variable ... is assigned but never read" since other entities may read
31637         the memory location.
31638
31639 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
31640
31641         * Makefile.in: In the powerpc/vxworks-specific section, restore
31642         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
31643         by mistake).
31644
31645 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
31646
31647         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
31648         predefined operators.
31649         Removes spurious type errors from g-trasym-vms.adb.
31650
31651         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
31652         distinct from the operator appearing in the source, call appropriate
31653         routine to insert conversions when needed, and complete resolution of
31654         node.
31655         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
31656         interpretations for rewritten right operand.
31657         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
31658         the other operand is overloaded and the context is a type conversion.
31659
31660 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31661
31662         * ada-tree.def (BLOCK_STMT): Now has two operands.
31663         (BREAK_STMT): New.
31664
31665         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
31666
31667         * gigi.h: (gnat_poplevel): Now returns a tree.
31668
31669         * trans.c (end_block_stmt): Add arg; all callers changed.
31670         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
31671         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
31672         (add_stmt): Set TREE_TYPE.
31673         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
31674         (gnat_expand_stmt, case BREAK_STMT): New case.
31675
31676         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
31677
31678 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
31679
31680         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
31681         procedure Set_Stack_Size that is not needed.
31682
31683 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
31684
31685         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
31686         used for gnatpp input file and for the files upon which it depends
31687
31688 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
31689
31690         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31691
31692 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
31693
31694         * gnatvsn.ads: Bump version numbers appropriately.
31695         Add new build type.
31696
31697 2004-06-07  Pascal Obry  <obry@gnat.com>
31698
31699         * gnat_ugn.texi: Improve comments about imported names and link names
31700         on Windows. Add a note about the requirement to use -k gnatdll's option
31701         when working with a DLL which has stripped stdcall symbols (no @nn
31702         suffix).
31703
31704 2004-05-27  Vincent Celier  <celier@gnat.com>
31705
31706         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
31707         COMMENTS_LAYOUT=UNTOUCHED
31708
31709         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
31710         symbols-vms-alpha.adb
31711
31712 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
31713
31714         * sem.ads: Clarify documentation on checks suppression.
31715
31716         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
31717
31718 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
31719
31720         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
31721         the case of multiple derivations.
31722         (Is_Object_Reference): For a selected component, verify that the prefix
31723         is itself an object and not a value.
31724
31725         * sem_ch12.adb (Same_Instantiated_Constant): New name for
31726         Same_Instantiated_Entity.
31727         (Same_Instantiated_Variable): Subsidiary to
31728         Check_Formal_Package_Instance, to recognize actuals for in-out generic
31729         formals that are obtained from a previous formal package.
31730         (Instantiate_Subprogram_Body): Emit proper error when
31731         generating code and the proper body of a stub is missing.
31732
31733         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
31734         has a universal interpretation, do the disambiguation here.
31735
31736         * exp_ch4.adb (Expand_N_Type_Conversion,
31737         Expand_N_Unchecked_Type_Conversion): Special handling when target type
31738         is Address, to avoid typing anomalies when Address is a visible integer
31739         type.
31740
31741         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
31742         to determine whether a subprogram should not be marked Pure, even when
31743         declared in a pure package.
31744
31745 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
31746
31747         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
31748
31749         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
31750         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
31751         Update the documentation about the Ravenscar profile, following the
31752         definition found in AI-249.
31753
31754         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
31755         setting the Profile (Ravenscar). This must be done in addition to
31756         setting the required restrictions.
31757
31758         * rtsfind.ads: Add the set of operations defined in package
31759         Ada.Interrupts.
31760
31761         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
31762         restriction.
31763
31764 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
31765
31766         lang-specs.h: Always require -c or -S and always redirect to /dev/null
31767         if -gnatc or -gnats is passed.
31768
31769 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
31770
31771         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
31772         a significant reference. Warnings are now properly emitted when a
31773         discriminated type is not referenced.
31774
31775         * lib-xref.adb (Generate_Reference): A deferred constant completion,
31776         record representation clause or record type discriminant does not
31777         produce a reference to its corresponding entity. Warnings are now
31778         properly emitted when deferred constants and record types are not
31779         referenced.
31780
31781 2004-05-27  Geert Bosch  <bosch@gnat.com>
31782
31783         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
31784         Fixes ACATS Annex G tests.
31785
31786 2004-05-27  Robert Dewar  <dewar@gnat.com>
31787
31788         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
31789         handling WITH
31790
31791 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
31792
31793         * s-interr.adb (Server_Task): Take into account case of early return
31794         from sigwait under e.g. linux.
31795
31796 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
31797
31798         * gnat_ugn.texi: Add description for the new gnatpp options:
31799          -rnb - replace the original source without creating its backup copy
31800          -c0 - do not format comments
31801
31802 2004-05-24  Geert Bosch  <bosch@gnat.com>
31803
31804         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
31805         with 192 bits of precision, sufficient to reduce a double-extended
31806         arguments X with a maximum relative error of T'Machine_Epsilon, for X
31807         in -2.0**32 .. 2.0**32.
31808         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
31809         reduction by the processor, which only uses a 68-bit approximation of
31810         Pi.
31811         (Tan): Always reduce arguments and compute function either using
31812         the processor's fptan instruction, or by dividing sin and cos as needed.
31813
31814 2004-05-24  Doug Rupp  <rupp@gnat.com>
31815
31816         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
31817         gcc error on 32/64 bit VMS.
31818
31819 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
31820
31821         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
31822         since this is what we get for stack overflows although not documented
31823         as such.
31824         Document the issues which may require adjustments to our signal
31825         handlers.
31826
31827 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
31828
31829         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
31830         enclosing dynamic scope if the instantiation is within a generic unit.
31831
31832 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
31833
31834         * exp_dbug.ads: Fix typo.
31835
31836         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
31837         Rename it to its proper name: system-linux-ia64.ads
31838         (stamp-gnatlib1): Remove extra target specific run time files when
31839         setting up the rts directory.
31840
31841 2004-05-24  Javier Miranda  <miranda@gnat.com>
31842
31843         * einfo.ads, einfo.adb (Limited_Views): Removed.
31844         (Limited_View): New attribute that replaces the previous one. It is
31845         now a bona fide package with the limited-view list through the
31846         first_entity and first_private attributes.
31847
31848         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
31849         limited-private-with clause.
31850         (Install_Limited_Withed_Unit): Install the private declarations of a
31851         limited-private-withed package. Update the installation of the shadow
31852         entities according to the new structure (see Build_Limited_Views)
31853         (Build_Limited_Views): Replace the previous implementation of the
31854         limited view by a package entity that references the first shadow
31855         entity plus the first shadow private entity (required for limited-
31856         private-with clause)
31857         (New_Internal_Shadow_Entity): Code cleanup.
31858         (Remove_Limited_With_Clause): Update the implementation to undo the
31859         new work carried out by Build_Limited_Views.
31860         (Build_Chain): Complete documentation.
31861         Replace Ada0Y by Ada 0Y in comments
31862         Minor reformating
31863
31864         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
31865         types the level of accessibility depends on the enclosing type
31866         declaration.
31867
31868         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
31869         entities. Complete documentation of previous change.
31870
31871 2004-05-24  Robert Dewar  <dewar@gnat.com>
31872
31873         * namet.adb: Minor reformatting
31874         Avoid use of name I (replace by J)
31875         Minor code restructuring
31876
31877         * sem_ch6.adb: Minor reformatting
31878
31879         * lib-writ.adb: Do not set restriction as active if this is a
31880         Restriction_Warning case.
31881
31882         * sem_prag.adb: Reset restriction warning flag if real pragma
31883         restriction encountered.
31884
31885         * s-htable.adb: Minor reformatting
31886         Change rotate count to 3 in Hash (improves hash for small strings)
31887
31888         * 5qsystem.ads: Add comments for type Address (no literals allowed).
31889
31890         * gnat_ugn.texi: Add new section of documentation "Code Generation
31891         Control", which describes the use of -m switches.
31892
31893 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
31894
31895         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
31896         through the DECL_INITIAL for renamed variables.
31897
31898 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
31899
31900         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
31901
31902 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
31903
31904         * exp_dbug.ads: Correct comments concerning handling of overloading,
31905         since we no longer use $ anymore.
31906
31907 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
31908
31909         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
31910         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
31911         with illegal subunits.
31912
31913 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
31914
31915         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
31916         body with front-end inlining enabled, check whether an inline pragma
31917         appears immediately after the body and applies to it.
31918
31919         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
31920         enabled and the pragma appears after the body of the subprogram.
31921
31922 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31923
31924         Part of function-at-a-time conversion
31925
31926         * misc.c (adjust_decl_rtl): Deleted.
31927         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
31928         Define.
31929
31930         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
31931         (add_decl_stmt, add_stmt, block_has_vars): New functions.
31932         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
31933
31934         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
31935         when making a decl.
31936         (gnat_to_gnu_entity): Likewise.
31937         Use add_stmt to update setjmp buffer.
31938         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
31939         flush_addressof.
31940         No longer call adjust_decl_rtl.
31941         (DECL_INIT_BY_ASSIGN_P): New macro.
31942         (DECL_STMT_VAR): Likewise.
31943
31944         * trans.c (gigi): Call start_block_stmt to make the outermost
31945         BLOCK_STMT.
31946         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
31947         Call start_block_stmt and end_block_stmt temporarily.
31948         Use gnat_expand_stmt instead of expand_expr_stmt.
31949         (add_decl_stmt): New function.
31950         (tree_transform): Call it.
31951         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
31952         (end_block_stmt): Set type and NULL_STMT.
31953         (gnat_expand_stmt): Make recursize call instead of calling
31954         expand_expr_stmt.
31955         (gnat_expand_stmt, case DECL_STMT): New case.
31956         (set_lineno_from_sloc): Do nothing if global.
31957         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
31958         (start_block_stmt, add_stmt, end_block_stmt): New functions.
31959         (build_block_stmt): Call them.
31960         (gnat_to_code): Don't expand NULL_STMT.
31961         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
31962         args.
31963         (tree_transform): Likewise.
31964         (tree_transform, case N_Null_Statement): Return NULL_STMT.
31965         (gnat_expand_stmt, case NULL_STMT): New case.
31966         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
31967         IF_STMT_TRUE.
31968
31969         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
31970         TREE_ADDRESSABLE.
31971
31972         * utils.c (create_var_decl): Do not call expand_decl or
31973         expand_decl_init.
31974         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
31975         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
31976         here.
31977         (struct e_stack): Add chain_next to GTY.
31978         (struct binding_level): Deleted.
31979         (struct ada_binding_level): New struct.
31980         (free_block_chain): New.
31981         (global_binding_level, clear_binding_level): Deleted.
31982         (global_bindings_p): Rework to see if no chain.
31983         (kept_level_p, set_block): Deleted.
31984         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
31985         new data structure and work directly on BLOCK node.
31986         (gnat_poplevel): Similarly.
31987         (get_decls): Look at BLOCK_VARS.
31988         (insert_block): Work directly on BLOCK node.
31989         (block_has_var): New function.
31990         (pushdecl): Rework for new binding structures.
31991         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
31992         poplevel.
31993         (build_subprog_body): Likewise.
31994         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
31995
31996         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
31997
31998         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
31999         (DECL_STMT_VAR): Likewise.
32000
32001 2004-05-17  Robert Dewar  <dewar@gnat.com>
32002
32003         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
32004         procedure
32005
32006         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
32007         of restriction synonyums by using
32008         Restrict.Process_Restriction_Synonyms.
32009
32010         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
32011
32012         * s-restri.ads (Tasking_Allowed): Correct missing comment
32013
32014         * s-rident.ads: Add entries for restriction synonyms
32015
32016         * ali.adb: Fix some problems with badly formatted ALI files that can
32017         result in infinite loops.
32018
32019         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
32020         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
32021         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32022         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
32023         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
32024         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
32025         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
32026         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
32027         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
32028         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
32029         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
32030         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
32031         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
32032         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32033         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32034         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32035         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32036         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32037         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
32038         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
32039         to Task_Id (minor cleanup).
32040
32041 2004-05-17  Vincent Celier  <celier@gnat.com>
32042
32043         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
32044         directory separator.
32045
32046         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
32047         project being extended, if Languages is not declared in extending
32048         project.
32049
32050 2004-05-17  Javier Miranda  <miranda@gnat.com>
32051
32052         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
32053         limited view of a visible sibling.
32054
32055 2004-05-14  Robert Dewar  <dewar@gnat.com>
32056
32057         * gnat_ugn.texi: Minor change to -gnatS documentation
32058
32059         * sprint.adb: Remove some instances of Assert (False) and for this
32060         purpose replace them by output of a ??? string.
32061
32062         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
32063         Assert (False).
32064
32065         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
32066         flag processing. This was suppressing required dependencies in
32067         No_Run_Time mode and is not needed since the binder does not generate
32068         references for things in libgnat anyway.
32069
32070         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
32071         warning.
32072
32073 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
32074
32075         * gnat_ugn.texi: Document AIX-specific issue with initialization of
32076         resolver library.
32077
32078         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
32079         action for the case of an actual parameter in an init proc call.
32080
32081 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
32082
32083         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
32084         subtype, check visible entities in base type.
32085
32086         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
32087         actions if the object is a renaming.
32088
32089         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
32090         Check_Formal_Package_Instance, to determine more precisely when the
32091         formal and the actual denote the same entity.
32092
32093 2004-05-14  Javier Miranda  <miranda@gnat.com>
32094
32095         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
32096
32097         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
32098         corresponding to a private_with must be removed from visibility; it
32099         will be made visible later, just before we analyze the private part of
32100         the package.
32101         (Check_Private_Child_Unit): Allow private_with clauses in public
32102         siblings.
32103         (Install_Siblings): Make visible the private entities of private-withed
32104         siblings.
32105         (Install_Withed_Unit): Do not install the private withed unit if we
32106         are compiling a package declaration and the Private_With_OK flag was
32107         not set by the caller. These declarations will be installed later,
32108         just before we analyze the private part of the package.
32109
32110         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
32111         during the evaluation of the expression that initializes the object,
32112         decorate it with the expected type to avoid cascade errors.
32113         Code cleanup.
32114
32115         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
32116         subprogram we have to install the private_with clauses after its
32117         specification has been analyzed (as documented in AI-262.TXT).
32118
32119         * sem_ch8.adb (Has_Private_With): New function. Determines if the
32120         current compilation unit has a private with on a given entity.
32121         (Find_Direct_Name): Detect the Beaujolais problem described in
32122         AI-262.TXT
32123
32124         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
32125         provides the functionality of the function Is_Ancestor that was
32126         previously available in sem_ch10. It has been renamed to avoid
32127         overloading.
32128
32129         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
32130
32131 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32132
32133         * utils.c (build_vms_descriptor): Use SImode pointers.
32134
32135 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
32136
32137         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
32138
32139 2004-05-14  GNAT Script  <nobody@gnat.com>
32140
32141         * Make-lang.in: Makefile automatically updated
32142
32143 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
32144
32145         Renaming of target specific files for clarity
32146
32147         * Makefile.in: Rename GNAT target specific files.
32148
32149         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
32150         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
32151         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
32152         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
32153         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
32154         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
32155         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
32156         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
32157         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
32158         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
32159         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
32160         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
32161         51osinte.adb, 51osinte.ads, 51system.ads,
32162         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
32163         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
32164         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
32165         56tpopsp.adb, 57system.ads, 58system.ads,
32166         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
32167         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32168         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
32169         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
32170         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
32171         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32172         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
32173         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32174         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32175         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
32176         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
32177         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
32178         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
32179         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
32180         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
32181         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32182         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32183         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32184         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
32185         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
32186         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
32187         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
32188         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
32189         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32190         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
32191         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
32192         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32193         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
32194         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32195         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
32196         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
32197         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
32198         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
32199         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
32200         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
32201         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
32202         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
32203         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
32204         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
32205         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
32206
32207         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
32208         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
32209         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
32210         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
32211         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
32212         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
32213         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
32214         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
32215         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
32216         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
32217         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
32218         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
32219         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
32220         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
32221         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
32222         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
32223         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
32224         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
32225         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
32226         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
32227         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
32228         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
32229         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
32230         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
32231         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
32232         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
32233         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
32234         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
32235         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
32236         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
32237         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
32238         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
32239         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
32240         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
32241         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
32242         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
32243         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
32244         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
32245         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
32246         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
32247         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
32248         s-osinte-vms.ads, s-osinte-vxworks.adb,
32249         s-osinte-vxworks.ads, s-osprim-mingw.adb,
32250         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
32251         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
32252         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
32253         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
32254         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
32255         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
32256         s-stchop-vxworks.adb, s-taprop-dummy.adb,
32257         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
32258         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
32259         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
32260         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32261         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
32262         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
32263         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
32264         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
32265         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
32266         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
32267         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
32268         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
32269         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
32270         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
32271         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
32272         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
32273         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
32274         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
32275         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
32276         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
32277         system-irix-o32.ads, system-linux-x86_64.ads,
32278         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32279         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
32280         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
32281         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
32282         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
32283         system-vxworks-mips.ads, system-vxworks-ppc.ads,
32284         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
32285         above.
32286
32287 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
32288
32289         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
32290
32291 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
32292
32293         Merge from tree-ssa-20020619-branch.
32294
32295         * config-lang.in (boot_language, build_by_default): Set
32296         to no.
32297         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
32298         (max_size): Add static chain op for call_expr.
32299
32300 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
32301
32302         PR target/15331
32303         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
32304
32305 2004-05-11  Roger Sayle  <roger@eyesopen.com>
32306
32307         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
32308         COND_EXPR.
32309
32310 2004-05-10  Doug Rupp  <rupp@gnat.com>
32311
32312         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
32313         system.aux_dec.
32314
32315         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
32316
32317         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
32318
32319         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
32320         Fixes undefined symbols in IA64 gnatlib.
32321
32322         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
32323
32324         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
32325         Short_Address). This will be moved to system.auxdec.
32326
32327 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
32328
32329         * sem_util.adb: Replace test for presence of a node that is always
32330         present with a call to Discard_Node.
32331
32332         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
32333         Analyze on the library unit node after generation of distribution stub
32334         constructs.  The call was a no-op because Unit_Node has already been
32335         Analyzed, and the tree fragments for the distribution stubs are
32336         analyzed as they are inserted in Exp_Dist.
32337         Update comment regarding to distribution stubs to reflect that we
32338         do not generate stub in separate files anymore.
32339
32340         * einfo.ads: Clarify the fact that a tagged private type has the
32341         E_Record_Type_With_Private Ekind.
32342
32343         * erroutc.adb: Minor reformatting
32344
32345         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
32346         values if line length is increased using -gnatyM (noticed during code
32347         reading).
32348
32349         * eval_fat.adb: Minor reformatting
32350         Put spaces around exponentiation operator
32351
32352 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
32353
32354         PR ada/15005
32355         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
32356         has been rewritten as an explicit dereference, retrieve type of
32357         original node to check for possibly unconstrained record type.
32358
32359 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
32360
32361         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
32362         overriding, use the operation of the parent unconditionally.
32363
32364         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
32365         operation when either operand is a literal, to avoid further
32366         ambiguities.
32367
32368         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
32369         overridden by a previous explicit declaration, mark the previous entity
32370         as overriding.
32371
32372         * sem_disp.adb (Check_Dispatching_Operation): New predicate
32373         Is_Visibly_Controlled, to determine whether a declaration of a
32374         primitive control operation for a derived type overrides an inherited
32375         one. Add warning if the explicit declaration does not override.
32376
32377 2004-05-10  Vincent Celier  <celier@gnat.com>
32378
32379         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
32380         some cases when the sources are no longer present.
32381
32382         * make.adb (Collect_Arguments): Fail if an external source, not part
32383         of any project need to be compiled, when switch -x has not been
32384         specified.
32385
32386         * makeusg.adb: Document new switch -x
32387
32388         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
32389         defaulted to False.
32390
32391         * switch-m.adb (Scan_Make_Switches): New switch -x
32392
32393         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
32394         gnatmake switch -x.
32395
32396         * gnat_ugn.texi: Document new gnatmake switch -x
32397
32398 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
32399
32400         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
32401
32402         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
32403         (process_attributes): Likewise.
32404
32405 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
32406
32407         * s-inmaop.ads: Fix spelling mistake in one of the comments.
32408
32409 2004-05-10  Robert Dewar  <dewar@gnat.com>
32410
32411         * gnat_ugn.texi: Document that for config pragma files, the maximum
32412         line length is always 32767.
32413
32414         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
32415         literals is now allowed.
32416
32417         * gnat-style.texi: Remove statement about splitting long lines before
32418         an operator rather than after, since we do not follow this rule at all.
32419         Clarify rule (really lack of rule) for spaces around exponentiation
32420
32421         * sem_elim.adb: Allow concatenation of string literals as well as a
32422         single string literal for pragma arguments.
32423
32424         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
32425
32426         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
32427         written for append case.
32428
32429         * frontend.adb: Changes to avoid checking max line length in config
32430         pragma files.
32431
32432         * g-os_lib.ads: Minor reformatting
32433
32434         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
32435         wrong in any case. Instead use standard value. Noticed during code
32436         reading.
32437
32438         * opt.ads (Max_Line_Length): New field, used to implement removal of
32439         limitation on length of lines when scanning config pragma files.
32440
32441         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
32442         makeutl.ads, makeutl.adb: Minor reformatting
32443
32444         * scn.adb: Do not check line length while scanning config pragma files
32445         Do not check line length while scanning out license information
32446
32447         * scng.adb: Changes to avoid line length checks while parsing config
32448         pragma files.
32449
32450 2004-05-10  GNAT Script  <nobody@gnat.com>
32451
32452         * Make-lang.in: Makefile automatically updated
32453
32454 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
32455
32456         * osint.adb (Find_Program_Name): Fix handling of VMS version
32457         number.
32458
32459 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
32460
32461         * g-os_lib.ads (Invalid_Time): New constant
32462
32463         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
32464         return OS_Time instead of time_t to match what is imported by Ada.
32465         Now return -1 if the file doesn't exist, instead of a random value
32466
32467 2004-05-05  Robert Dewar  <dewar@gnat.com>
32468
32469         * usage.adb: Add line for -gnatR?s switch
32470
32471         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
32472
32473         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
32474         and for Match (Data_First, Data_last)
32475
32476         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
32477         written when we are dealing with multi-unit files.
32478
32479 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
32480
32481         * Makefile.in: Remove unused targets and variables.
32482
32483 2004-05-05  Vincent Celier  <celier@gnat.com>
32484
32485         * switch-m.adb: New gnatmake switch -eI
32486
32487         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
32488         of new gnatmake switch -eInnn.
32489
32490         * makegpr.adb: Take into account new parameters Index and Src_Index in
32491         Prj.Util.
32492
32493         * clean.adb: Implement support for multi-unit sources, including new
32494         switch -i.
32495
32496         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
32497         Src_Index.
32498
32499         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
32500         (Extract_From_Q): New out parameter Index
32501         (Mark, Is_Marked): Subprograms moved to Makeutl
32502         (Switches_Of): New parameter Source_Index
32503         (Add_Switch): New parameter Index
32504         (Check): New parameter Source_Index
32505         (Collect_Arguments): New parameter Source_Index
32506         (Collect_Arguments_And_Compile): New parameter Source_Index
32507         (Compile): New parameter Source_Index
32508         Put subprograms in alphabetical order
32509         Add support for multi-source sources, including in project files.
32510
32511         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
32512         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
32513         Make.
32514
32515         * makeusg.adb: New gnatmake switch -eInnn
32516
32517         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
32518         Prj.Util.Value_Of.
32519
32520         * opt.ads (Main_Index): New variable, defaulted to 0.
32521
32522         * osint.ads, osinte.adb (Add_File): New parameter Index
32523         (Current_Source_Index): New function
32524
32525         * prj.adb: Take into account new components Index and Src_Index
32526
32527         * prj.ads (String_Element): New component Index
32528         (Variable_Value): New component Index
32529         (Array_Element): New component Src_Index
32530
32531         * prj-attr.adb: Indicate that optional index may be specified for
32532         attributes Main, Executable, Spec, Body and some of Switches.
32533
32534         * prj-attr.ads (Attribute_Kind): New values for optional indexes
32535         (Attribute_Record): New component Optional_Index
32536
32537         * prj-com.ads (File_Name_Data): New component Index
32538
32539         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
32540
32541         * prj-env.adb (Put): Output optional index
32542
32543         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
32544         attributes Spec and Body.
32545
32546         * prj-nmsc.adb: Process optional indexes
32547
32548         * prj-pp.adb: Ouput "at" for optional indexes
32549
32550         * prj-proc.adb: Take into account optional indexes
32551
32552         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
32553         Optional_Index. For string literal,
32554         process optional index when Optional_Index is True.
32555         (Parse_Expresion): New Boolean parameter Optional_Index
32556
32557         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
32558         (Set_Source_Index_Of): New procedure
32559
32560         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
32561         index.
32562
32563         * prj-util.ads (Executable_Of): New parameter Index
32564         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
32565         New parameter Src_Index, defaulted to 0.
32566
32567 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
32568
32569         PR ada/15257
32570         * sem_ch3.adb (Access_Definition): If this is an access parameter
32571         whose designated type is imported through a limited_with clause, do
32572         not add the enclosing subprogram to the list of private dependents of
32573         the type.
32574
32575 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
32576
32577         PR ada/15258
32578         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
32579         a limited_with clause, and the other is its non-limited view.
32580
32581 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
32582
32583         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
32584
32585         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
32586         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
32587         Stand.Boolean_Literals to produce references to entities
32588         Standard_False and Standard_True from compile-time computed boolean
32589         values.
32590
32591         * stand.ads (Boolean_Literals): New variable, provides the entity
32592         values for False and True, for use by the expander.
32593
32594 2004-05-05  Doug Rupp  <rupp@gnat.com>
32595
32596         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
32597         5vinmaop.adb: Unchecked convert Short_Address vice Address
32598
32599         * adaint.c, raise.c: Caste CRTL function return value
32600         to avoid gcc error on 32/64 bit IVMS.
32601
32602         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
32603         target = IA64/VMS.
32604
32605         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
32606
32607         * 5qsystem.ads (Address): Declare as Long_Integer
32608         (Short_Address): Declare as 32 bit subtype of Address
32609         Declare  abstract address operations to avoid gratuitous ambiguities.
32610
32611 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
32612
32613         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
32614         instead of the old Boolean_Entry_Barriers.
32615         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
32616
32617 2004-05-05  GNAT Script  <nobody@gnat.com>
32618
32619         * Make-lang.in: Makefile automatically updated
32620
32621 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
32622
32623         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
32624
32625 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
32626
32627         PR ada/15152
32628         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
32629         alone. Replacing object references by literals is inappropriate in a
32630         so low level context.
32631
32632 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
32633
32634         * a-exexpr.adb: Add comments
32635
32636 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
32637
32638         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
32639         declare the Ancestor_Tags array in Type_Specific_Data with a small size
32640         without risking a bounds check error when accessing one of its
32641         components.
32642         (Type_Specific_Data): Define Ancestor_Tags as a small array.
32643         This prevents us from hitting a limitation during the debug info
32644         generation when using stabs.
32645
32646         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
32647         small array.
32648         This prevents us from hitting a limitation during the debug info
32649         generation when using stabs.
32650
32651 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
32652
32653         lang-specs.h: Remove -gnatz* from specs.
32654
32655 2004-05-03  Vincent Celier  <celier@gnat.com>
32656
32657         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
32658
32659         * Make-lang.in, Makefile.in: Add gprmake
32660
32661 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
32662
32663         * sem_aggr.adb: Fix typo in comment.
32664
32665 2004-05-03  Robert Dewar  <dewar@gnat.com>
32666
32667         * make.adb: Minor reformatting
32668
32669         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
32670
32671         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
32672         so that it works when address is not a private type.
32673
32674         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
32675         properly with rewritten unchecked conversions. This prevents
32676         order-of-elaboration issues that can otherwise arise.
32677         (Minimum_Size): Don't check size of access types under VMS
32678
32679         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
32680         interpretations of integer literals as type System.Address.
32681
32682         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
32683         (Is_Descendent_Of): New function
32684
32685 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
32686
32687         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32688         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
32689         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
32690
32691         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
32692         of the old Max_Entry_Queue_Depth.
32693
32694         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32695         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
32696         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
32697
32698         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
32699         New entry for proper handling of Max_Entry_Queue_Depth.
32700         New entry for proper handling of No_Dynamic_Interrupts.
32701
32702         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
32703         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32704         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
32705         the GNAT specific restriction Max_Entry_Queue_Depth.
32706         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
32707         the GNAT specific restriction No_Dynamic_Interrupts.
32708
32709         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
32710         instead of the old Boolean_Entry_Barriers.
32711         Use the new restriction No_Dynamic_Attachment instead of the old
32712         No_Dynamic_Interrupts.
32713
32714         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
32715         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32716
32717         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
32718         of the old Max_Entry_Queue_Depth.
32719
32720 2004-05-03  GNAT Script  <nobody@gnat.com>
32721
32722         * Make-lang.in: Makefile automatically updated
32723
32724 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
32725
32726         * checks.adb (Enable_Range_Check): If the prefix of an index component
32727         is an access to an unconstrained array, perform check unconditionally.
32728
32729 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32730
32731         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
32732         Component_Clause.
32733
32734 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
32735
32736         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
32737         alternate stack setting. There was no support for the tasking cases
32738         and the changes eventually caused a number of side-effect failures in
32739         the non-tasking case too.
32740
32741 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
32742
32743         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
32744         -gnats is passed.
32745
32746 2004-04-29  Vincent Celier  <celier@gnat.com>
32747
32748         * make.adb (Gnatmake): Increase max size of argument array for
32749         gnatbind for the potential addition of -F.
32750         If there are Stand-Alone Library projects, invoke gnatbind with -F to
32751         be sure that elaboration flags will be checked.
32752
32753         * switch-c.adb: Correct call to Scan_Pos for -gnateI
32754
32755 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
32756
32757         * sem_warn.adb (Check_References): Move '<access-variable> may be
32758         null' warning out of under Warn_On_No_Value_Assigned.
32759
32760 2004-04-29  Ed Falis  <falis@gnat.com>
32761
32762         * gnat_ugn.texi: Fixed texi error
32763
32764 2004-04-29  Robert Dewar  <dewar@gnat.com>
32765
32766         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
32767         abstract operations if they come from predefined files.
32768
32769         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
32770         Dynamic, not RM).
32771
32772         * s-addope.adb: Correct obvious error in mod function
32773
32774 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
32775
32776         * Makefile.in: Add target pairs for powerpc darwin*
32777         tasking support.
32778
32779         * a-intnam-darwin.ads, s-osinte-darwin.adb,
32780         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
32781
32782 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
32783
32784         * Makefile.in: Add target macro definitions for s390*-linux*.
32785         * system-linux-s390.ads: New file.
32786         * system-linux-s390x.ads: New file.
32787
32788 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
32789
32790         * gnat_ugn.texi: Correct argument to @setfilename.
32791
32792 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
32793
32794         * a-exexpr.adb (Unwind_Word): New data type.
32795         (Unwind_Exception): Use it as type of Private1 and Private2.
32796
32797         * raise.c (db_action_for): Fix debug printf.
32798
32799 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
32800
32801         * a-wtmoio.ads: Formal type must be a modular type, not a signed
32802         integer type.
32803
32804 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32805
32806         * decl.c (gnat_to_gnu_entity, case object): Call
32807         __builtin_update_setjmp_buf.
32808
32809         * gigi.h (update_setjmp_buf): Deleted.
32810         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
32811
32812         * misc.c: (update_setjmp_buf): Deleted.
32813
32814         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
32815         around block of RTL.
32816
32817         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
32818
32819 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
32820
32821         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
32822         subprogram for which no pragma All_Calls_Remote applies, store the
32823         address of the real subprogram in the underlying record type, so local
32824         dereferences do not go through the PCS.
32825
32826 2004-04-26  Robert Dewar  <dewar@gnat.com>
32827
32828         * i-c.ads: Add some type qualifications to avoid ambiguities when
32829         compiling with s-auxdec.ads and a non-private address type.
32830
32831 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
32832
32833         * Makefile.rtl: Fix error in previous check-in:
32834         Add s-addope.o to non tasking object list (rather than tasking object
32835         list).
32836
32837 2004-04-26  Javier Miranda  <miranda@gnat.com>
32838
32839         * sem_aggr.adb: Fix typo in comments
32840         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
32841         Required to check the null-exclusion attribute.
32842
32843         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
32844         case of anonymous access types in record and array components. For a
32845         component definition the level is the same of the enclosing composite
32846         type.
32847
32848         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
32849         that are anonymous access types the level of accessibility depends on
32850         the enclosing type declaration. In order to have this information, set
32851         the scope of the anonymous access type to the enclosing record type
32852         declaration.
32853         (Array_Type_Declaration): In case of components that are anonymous
32854         access types the level of accessibility depends on the enclosing type
32855         declaration. In order to have this information, set the scope of the
32856         anonymous access type to the enclosing array type declaration.
32857
32858         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
32859         access type.
32860
32861         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
32862         renaming of anonymous access-to-constant types allowed if and only if
32863         the renamed object is access-to-constant.
32864
32865         * sem_util.adb (Type_Access_Level): In case of anonymous access types
32866         that are component_definition or discriminants of a nonlimited type,
32867         the level is the same as that of the enclosing component type.
32868
32869 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
32870
32871         * sem_elim.adb: Some minor code reorganization from code reading. Fix
32872         misprint in the function name (File_Name_Match).
32873
32874 2004-04-23  Laurent Guerby  <laurent@guerby.net>
32875
32876         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
32877         install.
32878
32879 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32880
32881         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
32882
32883 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
32884
32885         * adaint.c (__gnat_try_lock): No longer requires that the parent
32886         directory be writable, the directory itself is enough.
32887         (gnat_is_absolute_path): Change profile, so that the call from
32888         GNAT.OS_Lib can be made more efficient.
32889
32890         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
32891         from GNAT.OS_Lib can be made more efficient.
32892
32893         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
32894         one copy of the file name. Found by code reading.
32895
32896 2004-04-23  Vincent Celier  <celier@gnat.com>
32897
32898         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
32899         Correct documentation on gnatmake switches transmitted to the compiler
32900
32901         * ali.ads: Minor comment fix
32902
32903 2004-04-23  Javier Miranda  <miranda@gnat.com>
32904
32905         * sem_ch6.adb: (Confirming Types): Code cleanup
32906
32907         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
32908         subprogram types: E_Anonymous_Access_Subprogram_Type and
32909         E_Anonymous_Access_Protected_Subprogram_Type.
32910
32911 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
32912
32913         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32914         whether a pragma All_Calls_Remote applies to the subprogram on which
32915         'Access is taken.
32916         No functional change is introduced by this revision; the new parameter
32917         will be used to allow calls to local RCI subprograms to be optimized
32918         to not use the PCS in the case where no pragma All_Calls_Remote applies,
32919         as is already done in the PolyORB implementation of the DSA.
32920
32921         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32922         whether a pragma All_Calls_Remote applies to the subprogram on which
32923         'Access is taken.
32924         No functional change is introduced by this revision; the new parameter
32925         will be used to allow calls to local RCI subprograms to be optimized
32926         to not use the PCS in the case where no pragma All_Calls_Remote applies,
32927         as is already done in the PolyORB implementation of the DSA.
32928
32929 2004-04-23  Robert Dewar  <dewar@gnat.com>
32930
32931         * Makefile.rtl: Add entry for s-addope.o in run time library list
32932         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
32933         * s-addope.ads, s-addope.adb: New files.
32934
32935         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
32936         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
32937         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
32938         System.Address to be non-private and signed.
32939
32940         * sem_elim.adb: Minor reformatting (fairly extensive)
32941         Some minor code reorganization from code reading
32942         Add a couple of ??? comments
32943
32944 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32945
32946         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
32947         (tree_transform, case N_If_Statement): Remove non-determinism.
32948
32949         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
32950
32951 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
32952
32953         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
32954         Eliminate' section.
32955
32956         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
32957         no longer used as a parameter name for Eliminate pragma).
32958
32959 2004-04-22  Laurent Guerby  <laurent@guerby.net>
32960
32961         PR optimization/14984
32962         PR optimization/14985
32963         * trans.c (gigi): Fix non determinism leading to bootstrap
32964         comparison failures.
32965
32966 2004-04-21  Pascal Obry  <obry@gnat.com>
32967
32968         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
32969         passed to spawnvp() to properly handle program pathname with spaces on
32970         Win32.
32971
32972 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
32973
32974         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
32975         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
32976         unlocked in case of exceptions.
32977
32978 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
32979
32980         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
32981         This function does not exist anymore.
32982
32983 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
32984
32985         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
32986
32987         * link.c: Move variables to the __gnat name space.
32988
32989         * Makefile.in: list link.o explicitly when needed.
32990
32991         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
32992
32993 2004-04-21  Javier Miranda  <miranda@gnat.com>
32994
32995         * einfo.adb (Original_Access_Type): New subprogram
32996         (Set_Original_Access_Type): New subprogram
32997         (Write_Field21_Name): Write the name of the new field
32998
32999         * einfo.ads (Original_Access_Type): New field present in access to
33000         subprogram types.
33001         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
33002         E_Anonymous_Access_Protected_Subprogram_Type.
33003
33004         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
33005         subprogram types.
33006
33007         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
33008         to anonymous access to subprogram types.
33009
33010         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
33011         to subprogram types.
33012
33013         * sem_ch3.adb (Access_Definition): Complete decoration of entities
33014         corresponding to anonymous access to subprogram types.
33015         (Analyze_Component_Declaration): Add new actual to the call to
33016         subprogram replace_anonymous_access_to_protected_subprogram.
33017         (Array_Type_Declaration): Add new actual to the call to subprogram
33018         replace_anonymous_access_to_protected_subprogram.
33019         (Process_Discriminants): Add new actual to the call to subprogram
33020         replace_anonymous_access_to_protected_subprogram.
33021         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
33022
33023         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33024         formal.
33025
33026         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
33027         access to subprogram types.
33028
33029         * sem_util.adb (Has_Declarations): Addition of package_specification
33030         nodes.
33031
33032 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
33033
33034         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
33035         inlined flags to renamed entity only if in current unit.
33036
33037 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
33038
33039         * s-parint.ads: Add DSA implementation marker.
33040
33041         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
33042         value of System.Partition_Interface.DSA_Implementation to determine
33043         what version of the distributed systems annex is available (no
33044         implementation, GLADE, or PolyORB).
33045
33046 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
33047
33048         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
33049
33050 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33051
33052         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
33053         with new type if alias sets differ.
33054         Fixes ACATS c41103b.
33055
33056 2004-04-21  Vincent Celier  <celier@gnat.com>
33057
33058         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
33059         Add array Lang_Args for the language specific compiling argument
33060         switches.
33061
33062         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
33063
33064 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
33065
33066         * gnat_rm.texi: Update the descripton of the Eliminate pragma
33067         according to the recent changes in the format of the parameters of the
33068         pragma (replacing Homonym_Number with Source_Location).
33069
33070 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
33071
33072         * 5isystem.ads: Removed, unused.
33073
33074         * gnat_rm.texi: Redo 1.13 change.
33075
33076 2004-04-19  Robert Dewar  <dewar@gnat.com>
33077
33078         * s-stoele.ads: Clean up definition of Storage_Offset (the new
33079         definition is cleaner, avoids the kludge of explicit Standard operator
33080         references, and also is consistent with a visible System.Address with
33081         no visible operations.
33082
33083         * s-geveop.adb: Add declarations to avoid assumption of visible
33084         operations on type System.Address (since these might not be available
33085         if Address is a non-private type for which the operations
33086         are made abstract).
33087
33088         * sem_eval.adb: Minor reformatting
33089
33090         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
33091         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
33092         reformatting (new function spec format).
33093
33094         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
33095         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
33096         s-caun64.adb: Add declarations to avoid assumption of visible
33097         operations on type System.Address (since these might not be available
33098         if Address is a non-private type for which the operations are made
33099         abstract).
33100
33101         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
33102
33103         * exp_intr.adb: Minor comment update
33104
33105         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
33106
33107         * 5omastop.adb: Add declarations to avoid assumption of visible
33108         operations on type System.Address (since these might not be available
33109         if Address is a non-private type for which the operations
33110         are made abstract).
33111
33112 2004-04-19  Vincent Celier  <celier@gnat.com>
33113
33114         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
33115
33116         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
33117         defaulted to Ada.
33118
33119         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
33120         defaulted to Ada.
33121         Call Check with Process_Languages.
33122         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
33123         with Process_Languages.
33124         (Recursive_Check): New Boolean parameter Process_Languages. Call
33125         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
33126         Process_Languages.
33127
33128         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
33129
33130         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
33131         parameter Ada_Main, defaulted to True.
33132         Check for Ada specific characteristics only when Ada_Main is True.
33133
33134         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
33135
33136         * prj.adb: (Project_Empty): Add new Project_Data components.
33137
33138         * prj.ads: New types and tables for non Ada languages.
33139         (Project_Data): New components Languages, Impl_Suffixes,
33140         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
33141         Include_Path, Include_Data_Set.
33142
33143         * prj-env.ads, prj-env.adb: Minor reformatting
33144
33145         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
33146         Put subprograms in alphabetical order
33147
33148         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
33149         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
33150         Opt.Follow_Links.
33151
33152         * mlib-prj.adb: Back out modification in last version, as they are
33153         incorrect.
33154         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
33155
33156         * make.adb: (Mains): Moved to package Makeutl
33157         (Linker_Opts): Moved to package Makeutl
33158         (Is_External_Assignment): Moved to package Makeutl
33159         (Test_If_Relative_Path): Moved to package Makeutl
33160         (Gnatmake): Move sorting of linker options to function
33161         Makeutl.Linker_Options_Switches.
33162
33163         * makeutl.ads, makeutl.adb: New files.
33164
33165         * Makefile.in: Add makeutl.o to the object files for gnatmake
33166
33167         * makeusg.adb: Add line for new switch -eL.
33168
33169         * gnatls.adb (Image): New function.
33170         (Output_Unit): If in verbose mode, output the list of restrictions
33171         specified by pragmas Restrictions.
33172
33173         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
33174         Text_IO.
33175
33176         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
33177         needed, to put it in the range 1970 (included) - 2026 (excluded).
33178         (Time_Of): Do not shift Unix_Min_Year (1970).
33179         Shift the date by multiple of 56 years, if needed, to put it in the
33180         range 1970 (included) - 2026 (excluded).
33181
33182         * adaint.h, adaint.c (__gnat_set_executable): New function.
33183
33184 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33185
33186         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
33187         and pop GC context.
33188         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
33189         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
33190         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
33191         (tree_transform, case N_Code_Statement): Likewise.
33192         (gnat_expand_stmt, case LABEL_STMT): Don't look at
33193         LABEL_STMT_FIRST_IN_EH.
33194         (gnat_expand_stmt, case ASM_STMT): New case.
33195
33196         * utils2.c (build_unary_op): Properly set TREE_READONLY of
33197         UNCONSTRAINED_ARRAY_REF.
33198
33199         * utils.c (poplevel): Temporarily push/pop GC context around inline
33200         function expansion.
33201
33202         * decl.c (maybe_variable): Properly set TREE_READONLY of
33203         UNCONSTRAINED_ARRAY_REF.
33204         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
33205
33206         * ada-tree.def: (ASM_STMT): New.
33207
33208         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
33209         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
33210         ASM_STMT_INPUT): New.
33211         (ASM_STMT_CLOBBER): Likewise.
33212
33213 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
33214
33215         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
33216         general rcheck mechanism to raise Program_Error for E.4(18), instead
33217         of a custom raiser in System.Partition_Interface.
33218         Part of general cleanup work before PolyORB integration.
33219
33220         * snames.ads, snames.adb: Add new runtime library entities and names
33221         for PolyORB DSA.
33222
33223         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33224         exp_dist.
33225         (Build_Subprogram_Id): New subprogram provided by exp_dist
33226         Code reorganisation in preparation for PolyORB integration.
33227
33228         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33229         exp_dist.
33230         (Build_Subprogram_Id): New subprogram provided by exp_dist
33231
33232         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
33233         actual parameter types for call to dereference of an
33234         access-to-subprogram type.
33235
33236         * rtsfind.ads: Add new runtime library entities and names for PolyORB
33237         DSA.
33238
33239         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
33240         instead, which has the same behaviour here since we never pass it a
33241         NULL pointer.
33242
33243         * link.c (run_path_option, Solaris case): Use -Wl, as for other
33244         platforms.
33245
33246         * Makefile.in: adjust object file lists for gnatlink and gnatmake
33247         to account for new dependency upon Interfaces.C.Strings + link.o
33248         For x86 FreeBSD, use 86numaux.
33249
33250         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
33251         from Mlib.Tgt to Mlib.
33252
33253         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
33254         target-independent.
33255
33256         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
33257         target-specific versions of this subprogram, now implemented as a
33258         target-independent function in Mlib.
33259
33260         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
33261         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
33262         (Linker_Library_Path_Option): Remove target-specific versions of this
33263         subprogram, now implemented as a target-independent function in Mlib.
33264
33265         * atree.adb: (Allocate_Initialize_Node): New subprogram.
33266         Factors out node table slots allocation.
33267         (Fix_Parents): New subprogram.
33268         Encapsulate the pattern of fixing up parent pointers for syntactic
33269         children of a rewritten node.
33270         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
33271         (Rewrite): Use New_Copy when creating saved copy of original node.
33272         (Replace): Use Copy_Node to copy nodes.
33273
33274 2004-04-19  Javier Miranda  <miranda@gnat.com>
33275
33276         * sprint.adb (Sprint_Node_Actual): Give support to the new
33277         Access_To_Subprogram node available in Access_Definition nodes. In
33278         addition, give support to the AI-231 node fields: null-exclusion,
33279         all-present, constant-present.
33280
33281         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
33282
33283         * sinfo.ads, sinfo.adb:
33284         New field Access_To_Subprogram_Definition in Access_Definition nodes
33285
33286         * sem_ch6.adb (Process_Formals): Move here the code that creates and
33287         decorates internal subtype declaration corresponding to the
33288         null-excluding formal. This code was previously in Set_Actual_Subtypes.
33289         In addition, carry out some code cleanup on this code. In case of
33290         access to protected subprogram call
33291         Replace_Anonymous_Access_To_Protected_Subprogram.
33292         (Set_Actual_Subtypes): Code cleanup.
33293
33294         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
33295         Find_Type in case of anonymous access renamings. Add warning in case of
33296         null-excluding attribute used in anonymous access renaming.
33297
33298         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33299         subprogram
33300
33301         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
33302         subprogram.
33303         (Access_Definition): In case of anonymous access to subprograms call
33304         the corresponding semantic routine to decorate the node.
33305         (Access_Subprogram_Declaration): Addition of some comments indicating
33306         some code that probably should be added here. Detected by comparison
33307         with the access_definition subprogram.
33308         (Analyze_Component_Declaration): In case of access to protected
33309         subprogram call Replace_Anonymous_Access_To_Protected.
33310         (Array_Type_Declaration): In case of access to protected subprogram call
33311         Replace_Anonymous_Access_To_Protected_Subprogram.
33312         (Process_Discriminants): In case of access to protected subprogram call
33313         Replace_Anonymous_Access_To_Protected_Subprogram.
33314
33315         * par.adb (P_Access_Definition): New formal that indicates if the
33316         null-exclusion part was present.
33317         (P_Access_Type_Definition): New formal that indicates if the caller has
33318         already parsed the null-excluding part.
33319
33320         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
33321         (P_Identifier_Declarations): Code cleanup and give support to renamings
33322         of anonymous access to subprogram types.
33323         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
33324         (P_Array_Type_Definition): Give support to AI-254.
33325         (P_Component_Items): Give support to AI-254.
33326         (P_Access_Definition): New formal that indicates if the header was
33327         already parsed by the caller.
33328         (P_Access_Type_Definition): New formal that indicates if the caller has
33329         already parsed the null-excluding part.
33330
33331         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
33332         call to P_Access_Definition.
33333
33334 2004-04-19  Geert Bosch  <bosch@gnat.com>
33335
33336         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
33337         the delicate semantics of floating-point to integer conversion.
33338         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
33339
33340         * eval_fat.adb (Machine_Mantissa): Moved to spec.
33341         (Machine_Radix): New function.
33342
33343         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
33344         conversion checks.
33345         (Machine_Radix): New function also for use in conversion checks.
33346
33347 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
33348
33349         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
33350
33351         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
33352         to decorate the access-to-protected subprogram and the equivalent type.
33353
33354         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
33355         to anonymous access to subprogram types.
33356
33357         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
33358         constant-folding, for legality checks in contexts that require an RM
33359         static expression.
33360
33361         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
33362         temporary but stack checking is not enabled, increment serial number
33363         to so that symbol generation is consistent with and without stack
33364         checking.
33365
33366         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
33367         independent on whether stack checking is enabled, caller must check
33368         the corresponding flag.
33369
33370         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
33371         range checks.
33372         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
33373         parent if it has discriminants.
33374         (Build_Derived_Private_Type): Constructed full view does
33375         not come from source.
33376         (Process_Discriminants): Default discriminants on a tagged type are
33377         legal if this is the internal completion of a private untagged
33378         derivation.
33379
33380         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
33381         no constraint checks, because it corresponds to an existing object.
33382
33383         * sem_prag.adb (Process_Convention): Pragma applies
33384         only to subprograms in the same declarative part, i.e. the same unit,
33385         not the same scope.
33386
33387         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
33388         ignore type mismatch on a numeric conversion if expression comes from
33389         expansion.
33390
33391 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
33392
33393         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
33394         Homonym_Number parameter, add processing for Source_Location parameter
33395         corresponding.
33396         (Check_Eliminated): Remove the check for homonym numbers, add the check
33397         for source location traces.
33398
33399         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
33400         with Arg_Source_Location corresponding to the changes in the format of
33401         the pragma.
33402
33403         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
33404         Eliminate pragma corresponding to the changes in the format of the
33405         pragma: Homonym_Number is replaced with Source_Location, two ways of
33406         distinguishing homonyms are mutially-exclusive.
33407
33408 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
33409
33410         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
33411
33412         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
33413         No_Dollar_In_Label, no longer necessary, as it is always True.
33414         (Strip_Suffixes): Likewise.
33415
33416 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
33417
33418         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
33419         modulus for compatibility with size clause on targets with 16-bit
33420         Integer.
33421
33422         * layout.adb (Discrimify): In the case of private types, set Vtyp to
33423         full type to fix type mismatches on calls to size functions for
33424         discriminant-dependent array components.
33425
33426 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
33427
33428         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
33429         lib.
33430
33431 2004-04-19  Pascal Obry  <obry@gnat.com>
33432
33433         * mdll-utl.adb (Locate): New version is idempotent.
33434
33435 2004-04-17  Laurent Guerby  <laurent@guerby.net>
33436
33437         PR ada/14988 (partial)
33438         * impunit.adb: Fix typo.
33439
33440 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
33441
33442         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
33443         and install-rts-cert targets.  Remove all gnatlib and gnattools
33444         targets and all other rts-* targets (moved to libada).  Remove (now)
33445         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
33446         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
33447
33448 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33449
33450         * trans.c (tree_transform): Shortcut returning error_mark_node for
33451         statements in annotate_only_mode.
33452         (tree_transform, case N_Label, case N_Return_Statement,
33453         N_Goto_Statement): Make statement tree instead of generating code.
33454         (tree_transform, case N_Assignment_Statement): No longer check
33455         type_annotate_only.
33456         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
33457         RETURN_STMT): New.
33458         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
33459         New fcns.
33460         (gnat_to_gnu): Collect any RTL generated and deal with it.
33461         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
33462         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
33463         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
33464
33465         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
33466
33467         * ada-tree.def (EXPR_STMT): Fix typo in name.
33468         (BLOCK_STMT, IF_STMT): New nodes.
33469
33470         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
33471         LABEL_STMT_FIRST_IN_EH): New macros.
33472         (RETURN_STMT_EXPR): Likewise.
33473
33474         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
33475         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
33476
33477 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
33478
33479         * atree.ads: Correct documentation on extended nodes.
33480
33481         * link.c: Set run_path_option for FreeBSD.
33482
33483 2004-04-08  Vincent Celier  <celier@gnat.com>
33484
33485         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
33486         one of the ALI file, do not link with DEC lib.
33487
33488         * par.adb Remove the last two characters ("%s" or "%b") when checking
33489         if a language defined unit may be recompiled.
33490
33491 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
33492
33493         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
33494         removal of abstract operation leaves no possible interpretation for
33495         expression.
33496
33497         * sem_eval.adb (Eval_Qualified_Expression): Use
33498         Set_Raises_Constraint_Error on node when needed, so that it does not
33499         get optimized away by subsequent optimizations.
33500
33501         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
33502         operands even when they are not wrapped in a type conversion.
33503
33504 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
33505
33506         * sem_prag.adb (Set_Exported): Warn about making static as result of
33507         export only when the export is coming from source. This may be not
33508         be true e.g. on VMS where we expand export pragmas for exception codes
33509         together with imported or exported exceptions, and we don't want the
33510         user to be warned about something he didn't write.
33511
33512 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
33513
33514         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
33515         duplication between normal entities and those declared as renamings.
33516         No functional change.
33517
33518         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
33519         inline functions returning an unconstrained result.
33520
33521 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
33522
33523         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
33524         conform to what other front-ends do.
33525
33526 2004-04-08  Doug Rupp  <rupp@gnat.com>
33527
33528         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
33529         libraries.
33530
33531 2004-04-06  Pascal Obry  <obry@gnat.com>
33532
33533         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
33534
33535         * osint.adb (Program_Name): Do not look past a directory separator.
33536
33537 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
33538
33539         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
33540
33541         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
33542         requirement for preserving a copy of the original assignment node.
33543
33544         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
33545
33546 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
33547
33548         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
33549         when supported.
33550
33551 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
33552
33553         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
33554         operator calls in functional notation, and apply
33555         Universal_Interpretation to operands, not to their type.
33556
33557 2004-04-06  Robert Dewar  <dewar@gnat.com>
33558
33559         * 5wdirval.adb: Minor reformatting
33560
33561 2004-04-06  Ed Falis  <falis@gnat.com>
33562
33563         * gnat_rm.texi: Improve a reference to the GCC manual
33564
33565 2004-04-05  Vincent Celier  <celier@gnat.com>
33566
33567         * adaint.h, adaint.c: Add function __gnat_named_file_length
33568
33569         * impunit.adb: Add Ada.Directories to the list
33570
33571         * Makefile.in: Add VMS and Windows versions of
33572         Ada.Directories.Validity package body.
33573
33574         * Makefile.rtl: Add a-direct and a-dirval
33575
33576         * mlib-tgt.ads: Minor comment update.
33577
33578         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
33579         a-direct.ads, a-direct.adb: New files.
33580
33581 2004-04-05  Vincent Celier  <celier@gnat.com>
33582
33583         PR ada/13620
33584         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
33585         just to the compiler.
33586
33587 2004-04-05  Robert Dewar  <dewar@gnat.com>
33588
33589         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
33590         returned string is 1.
33591
33592         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
33593
33594         * eval_fat.ads: Minor reformatting
33595
33596         * g-curexc.ads: Document that lower bound of returned string values
33597         is always one.
33598
33599         * gnatlink.adb: Add ??? comment for previous change
33600         (need to document why this is VMS specific)
33601
33602         * s-stoele.ads: Minor reformatting
33603
33604         * tbuild.ads: Minor reformatting throughout (new function specs)
33605
33606         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
33607         after WITH.
33608
33609         * scng.adb: Minor reformatting
33610
33611 2004-04-05  Geert Bosch  <bosch@gnat.com>
33612
33613         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
33614         (Leading_Part): Still perform truncation to machine number if the
33615         specified radix_digits is greater or equal to machine_mantissa.
33616
33617 2004-04-05  Javier Miranda  <miranda@gnat.com>
33618
33619         * par-ch3.adb: Complete documentation of previous change
33620         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
33621         (aliased must appear before constant).
33622
33623         * par-ch4.adb: Complete documentation of previous change.
33624
33625         * par-ch6.adb: Complete documentation of previous change.
33626
33627         * sinfo.ads: Fix typo in commment.
33628
33629 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
33630
33631         * sem_ch3.adb (Inherit_Components): If derived type is private and has
33632         stored discriminants, use its discriminants to constrain parent type,
33633         as is done for non-private derived record types.
33634
33635         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
33636         Ada 2005 AI-310: an abstract non-dispatching operation is not a
33637         candidate interpretation in an overloaded call.
33638
33639         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
33640         expression is Null and target type is not an access type (e.g. a
33641         non-private address type).
33642
33643 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
33644
33645         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
33646         statement whose right-hand side is an inlined call, save a copy of the
33647         original assignment subtree to preserve enough consistency for
33648         Analyze_Assignment to proceed.
33649
33650         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
33651         complete assignment subtree which is now unnecessary, as the expansion
33652         of inlined call has been improved to preserve a consistent assignment
33653         tree.  Note_Possible_Modification must be called only
33654         after checks have been applied, or else unnecessary checks will
33655         be generated.
33656
33657         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
33658         of explicit dereferences that do not Come_From_Source:
33659          - be selective on cases where we must go back to the dereferenced
33660            pointer (an assignment to an implicit dereference must not be
33661            recorded as modifying the pointer);
33662          - do not rely on Original_Node being present (Analyze_Assignment
33663            calls Note_Possible_Modification on a copied tree).
33664
33665         * sem_warn.adb (Check_References): When an unset reference to a pointer
33666         that is never assigned is encountered, prefer '<pointer> may be null'
33667         warning over '<pointer> is never assigned a value'.
33668
33669 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
33670
33671         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
33672         the ABI.
33673
33674 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
33675
33676         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
33677         libexc. We currently don't reference anything in this library and
33678         linking it in triggers linker warnings we don't want to see.
33679
33680         * init.c: Update comments.
33681
33682 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33683
33684         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
33685         * utils.c (create_field_decl): Likewise.
33686         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
33687
33688 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
33689
33690         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
33691         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
33692         Add info directory entry and category.
33693
33694 2004-04-02  Jan Hubicka  <jh@suse.cz>
33695
33696         * utils.c: Include function.h
33697         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
33698
33699 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
33700
33701         PR ada/14150
33702         * Make-lang.in: Clean up generation of documentation
33703
33704         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
33705
33706         * xgnatug.adb: Removed, replaced by xgnatugn.adb
33707
33708         * xgnatugn.adb: Replaces xgnatug.adb
33709
33710         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
33711
33712         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
33713
33714         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33715         gnat_ug_wnt.texi: Removed.
33716
33717 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
33718
33719         * utils2.c: Update copyright notice.
33720
33721 2004-04-01  Robert Dewar  <dewar@gnat.com>
33722
33723         * checks.adb: Minor reformatting throughout
33724         Note that prev checkin added RM reference to alignment warning
33725
33726 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
33727
33728         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
33729         non-static when building aggregate for bit-packed array.
33730
33731         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
33732         function call that is itself the actual in a procedure call, build
33733         temporary for it.
33734
33735         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
33736         a string literal, create a temporary for it, constant folding only
33737         handles scalars here.
33738
33739 2004-04-01  Vincent Celier  <celier@gnat.com>
33740
33741         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
33742         Error_Msg_SP): New empty procedures to instantiate the Scanner.
33743         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
33744         tokens.
33745         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
33746         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
33747         and get the checksum.
33748
33749         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
33750         already in the Q.
33751         Increase the Marking_Label at the end of the Multiple_Main_Loop,
33752         instead of at the beginning.
33753
33754         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
33755         directly.
33756         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
33757         on VMS.
33758
33759         * osint.ads (Multi_Unit_Index_Character): New Character global variable
33760
33761         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
33762         not '~' directly.
33763
33764         * par.adb: Remove test on file name to detect language defined units.
33765         Add test on unit name, after parsing, to detect language defined units
33766         that are not compiled with -gnatg (except System.RPC and its children)
33767
33768         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
33769         following units without style checking.
33770
33771         * switch-c.adb: Change -gnatC to -gnateI
33772
33773         * usage.adb: Document new switch -gnateInnn
33774
33775         * scng.adb (Accumulate_Token_Checksum): New procedure
33776         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
33777         word or literal number.
33778         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
33779         numbers.
33780
33781 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
33782
33783         * a-tasatt.adb,
33784         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
33785         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
33786         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
33787         5vtpopde.adb: Add missing 'constant' keywords.
33788
33789 2004-04-01  Javier Miranda  <miranda@gnat.com>
33790
33791         * par-ch4.adb: (P_Allocator): Code cleanup
33792
33793         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
33794         attribute.
33795
33796         * sinfo.ads: Complete documentation of previous change
33797
33798 2004-04-01  Pascal Obry  <obry@gnat.com>
33799
33800         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
33801         only on VMS.  This special handling was done because an old GNU/ld bug
33802         on Windows which has been fixed.
33803
33804 2004-04-01  GNAT Script  <nobody@gnat.com>
33805
33806         * Make-lang.in: Makefile automatically updated
33807
33808 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33809
33810         * decl.c (gnat_to_gnu_entity, make_type_from_size):
33811         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
33812         * trans.c (tree_transform, convert_with_check): Likewise.
33813         * utils.c (gnat_signed_or_unsigned_type): Likewise.
33814         (build_vms_descriptor, unchecked_convert): Likewise.
33815         * utils2.c (nonbinary_modular_operation): Likewise.
33816
33817 2004-03-29  Javier Miranda  <miranda@gnat.com>
33818
33819         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
33820         (Install_Null_Excluding_Check): Local subprogram that determines whether
33821         an access node requires a runtime access check and if so inserts the
33822         appropriate run-time check.
33823         (Apply_Access_Check): Call Install_Null_Excluding check if required
33824         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
33825
33826         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
33827
33828         * einfo.ads: Fix typo in comment
33829
33830         * exp_ch3.adb (Build_Assignment): Generate conversion to the
33831         null-excluding type to force the corresponding run-time check.
33832         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
33833         type to force the corresponding run-time check.
33834
33835         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
33836         the null-excluding type to force the corresponding run-time check.
33837
33838         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
33839         case of access types unless they have the null-excluding attribute.
33840
33841         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
33842         part.
33843
33844         * exp_util.ads: Fix typo in comment
33845
33846         * par.adb (P_Null_Exclusion): New subprogram
33847         (P_Subtype_Indication): New formal that indicates if the null-excluding
33848         part has been scanned-out and it was present
33849
33850         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
33851
33852         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
33853         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
33854         type to force the corresponding run-time check
33855         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
33856         components
33857         (Resolve_Array_Aggregate): Carry out some static checks
33858         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
33859
33860         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
33861         attribute must be set only if specified by means of the null-excluding
33862         part. In addition, we must also propagate the access-constant attribute
33863         if present.
33864         (Access_Subprogram_Declaration, Access_Type_Declaration,
33865         Analyze_Component_Declaration, Analyze_Object_Declaration,
33866         Array_Type_Declaration, Process_Discriminants,
33867         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
33868         and carry out some static checks.
33869         (Build_Derived_Access_Type): Set the null-excluding attribute
33870         (Derived_Type_Declaration, Process_Subtype): Carry out some static
33871         checks.
33872
33873         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
33874
33875         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
33876
33877         * sem_ch6.adb (Process_Formals): Carry out some static checks.
33878         (Set_Actual_Subtypes): Generate null-excluding subtype if the
33879         null-excluding part was present; it is not required to be done here in
33880         case of anonymous access types.
33881         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
33882         value.
33883
33884         * sem_res.adb (Resolve_Actuals): Carry out some static check
33885         (Resolve_Null): Allow null in anonymous access
33886
33887         * sinfo.adb: New subprogram Null_Exclusion_Present
33888         All_Present and Constant_Present available on access_definition nodes
33889
33890         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
33891         object_declaration, derived_type_definition, component_definition,
33892         discriminant_specification, access_to_object_definition,
33893         access_function_definition, allocator, access_procedure_definition,
33894         access_definition, parameter_specification, All_Present and
33895         Constant_Present flags available on access_definition nodes.
33896
33897 2004-03-29  Robert Dewar  <dewar@gnat.com>
33898
33899         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
33900         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
33901         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
33902         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
33903         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
33904         sem_prag.adb: Updates to handle multiple units/file
33905
33906         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
33907
33908         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
33909         sem_util.adb: Minor reformatting
33910
33911         * sem_ch12.adb: Add comment for previous change
33912
33913 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
33914
33915         * osint.adb (Executable_Prefix): Set Exec_Name to the current
33916         executable name when not initialized. Otherwise, use its current value.
33917
33918         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
33919         initialize it to another executable name than the current one. This
33920         allows to configure paths for an executable name (gnatmake) different
33921         from the current one (gnatdist).
33922
33923 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
33924
33925         * exp_ch6.adb (Expand_Call): A call to a function declared in the
33926         current unit cannot be inlined if it appears in the body of a withed
33927         unit, to avoid order of elaboration problems in gigi.
33928
33929         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
33930         information for protected (wrapper) operation as well, to simplify gdb
33931         use.
33932
33933         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
33934         protected body, indicate that the entity for the generated spec comes
33935         from source, to ensure that references are properly generated for it.
33936         (Build_Body_To_Inline): Do not inline a function that returns a
33937         controlled type.
33938
33939         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
33940         apply convention to homonyms that are declared explicitly.
33941
33942         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
33943         that renames an equality operator and the operands are overloaded,
33944         resolve them with the declared formal types, before rewriting as an
33945         operator.
33946
33947 2004-03-29  GNAT Script  <nobody@gnat.com>
33948
33949         * Make-lang.in: Makefile automatically updated
33950
33951 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
33952
33953         * memtrack.adb: Log realloc calls, which are treated as free followed
33954         by alloc.
33955
33956 2004-03-25  Vincent Celier  <celier@gnat.com>
33957
33958         * prj-makr.adb (Process_Directories): Detect when a file contains
33959         several units. Do not include such files in the config pragmas or
33960         in the naming scheme.
33961
33962         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
33963         Resolve links only when not in Trusted_Mode.
33964         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
33965         Do not resolve links for the display names.
33966
33967         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
33968         resolve links when computing the display names.
33969
33970 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
33971
33972         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
33973         attribute reference does not denote a subtype, it can be any
33974         expression that has a classwide type, potentially after an implicit
33975         dereference.  In particular, the prefix can be a view conversion for
33976         a classwide type (for which Is_Object_Reference holds), but it can
33977         also be a value conversion for an access-to-classwide type. In the
33978         latter case, there is an implicit dereference, and the original node
33979         for the prefix does not verify Is_Object_Reference.
33980
33981         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
33982         conversion of a discriminant-dependent component of a mutable object
33983         is one itself.
33984
33985 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
33986
33987         * freeze.adb (Freeze_Entity): When an inherited subprogram is
33988         inherited, has convention C, and has unconstrained array parameters,
33989         place the corresponding warning on the derived type declaration rather
33990         than the original subprogram.
33991
33992         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
33993         indication on renaming declaration, if formal has a box and actual
33994         is absent.
33995
33996         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
33997         determine whether to generate an implicit or explicit reference to
33998         the renamed entity.
33999
34000         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
34001         subprogram renaming comes from a defaulted formal subprogram in an
34002         instance.
34003
34004 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
34005
34006         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
34007         value expressions to ensure that calls within a component definition
34008         will be checked (since those are evaluated during the record type's
34009         elaboration).
34010
34011 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
34012
34013         * s-tpobop.adb: Code clean up:
34014         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
34015         code.
34016         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
34017
34018 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
34019
34020         * Makefile.in: Clean up in the ravenscar run time.
34021
34022 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34023
34024         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
34025         of No_Strict_Aliasing to build_pointer_type_for_mode.
34026         * utils.c (update_pointer_to): Walk pointer and ref chains.
34027
34028 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
34029
34030         * ali.ads: Fix Comment about Dynamic_Elab.
34031
34032         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
34033         Has_RACW, Is_Generic, etc.)
34034         (Output_Object, Gnatls): Take into account ALI files not attached to
34035         an object.
34036
34037 2004-03-22  Vincent Celier  <celier@gnat.com>
34038
34039         * gprep.adb: Change all String_Access to Name_Id
34040         (Is_ASCII_Letter): new function
34041         (Double_File_Name_Buffer): New procedure
34042         (Preprocess_Infile_Name): New procedure
34043         (Process_Files): New procedure
34044         (Gnatprep): Check if output and input are existing directories.
34045         Call Process_Files to do the real job.
34046
34047 2004-03-22  Robert Dewar  <dewar@gnat.com>
34048
34049         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
34050         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
34051
34052 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
34053
34054         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
34055         case when the source contains only comments.
34056
34057 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
34058
34059         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
34060         declaration for a child subprogram body that acts as a spec, indicate
34061         that the entity in the declaration needs debugging information.
34062
34063         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
34064         full view if the subtype is created for a constrained record component;
34065         gigi has enough information to construct the record, and there is no
34066         place in the tree for the declaration.
34067
34068         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
34069         serial number for the dummy body that is built for analysis, to avoid
34070         inconsistencies in the generation of internal names when compiling
34071         with -gnatN.
34072
34073 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
34074
34075         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
34076         object.
34077
34078 2004-03-22  GNAT Script  <nobody@gnat.com>
34079
34080         * Make-lang.in: Makefile automatically updated
34081
34082 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34083
34084         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34085         * trans.c (tree_transform, emit_index_check): Likewise.
34086         * utils.c (build_template): Likewise.
34087         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
34088         (maybe_unconstrained_array, unchecked_convert): Likewise.
34089         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
34090         (build_unary_op): Likewise.
34091         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34092         (fill_vms_descriptor): Likewise.
34093         (build_call_alloc_dealloc): Likewise.
34094         ALIGN is unsigned.
34095         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
34096
34097 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
34098
34099         PR other/14630
34100         * gnat_ug.texi: Add info directory category and entry.
34101         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34102         gnat_ug_wnt.texi: Regenerate.
34103
34104 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
34105
34106         * ada-tree.h: Update copyright notice.
34107         Minor reformatting.
34108
34109 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
34110
34111         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
34112         as regular exception objects and not as mere integers representing the
34113         condition code.  The latter approach required some dynamics to mask off
34114         severity bits, which did not fit well into the GCC table based model.
34115         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
34116         exception data objects. We don't it and it would conflict with the other
34117         external symbol we have to generate for such exceptions.
34118
34119         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
34120         the special code for VMS exceptions, since these are now represented
34121         as regular exceptions objects.
34122
34123 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34124
34125         * decl.c (debug_no_type_hash): Remove.
34126         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
34127         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
34128
34129 2004-03-19  Laurent Guerby  <laurent@guerby.net>
34130
34131         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
34132         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
34133
34134 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34135
34136         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
34137         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
34138         (TYPE_RM_SIZE_INT): Directly use type.values.
34139         (TREE_LOOP_ID): Clean up check.
34140         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
34141         TYPE_VALUES, not TYPE_FIELDS.
34142         * trans.c (convert_with_check): Delay access of bounds of basetype
34143         until sure is numeric.
34144
34145 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
34146
34147         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
34148
34149         Code clean up:
34150         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
34151         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
34152         Specific.Set instead of direct call to e.g pthread_setspecific.
34153
34154 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
34155
34156         * adaint.c: Update comments.
34157
34158         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
34159         GNATLIB_SHARED for FreeBSD.
34160
34161 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
34162
34163         * init.c [VxWorks]: Do not fix the stack size for the environment task.
34164         When needed (stack checking) the stack size is retrieved
34165         from the VxWorks kernel.
34166
34167         * Makefile.in: Flag -nostdinc is required when building the run time
34168         for avoiding looking for files in the base compiler.
34169         Add the VxWorks specific version of the package body for
34170         System.Stack_checking.Operations (5zstchop.adb).
34171
34172         * Make-lang.in: Add the object file for
34173         System.Stack_Checking.Operations.
34174
34175         * Makefile.rtl: Add object file for the package
34176         System.Stack_Checking.Operations.
34177
34178         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
34179
34180         * s-stache.ads, s-stache.adb: Move the operations related to stack
34181         checking from this package to package System.Stack_Checking.Operations.
34182         This way, stack checking operations are only linked in the final
34183         executable when using the -fstack-check flag.
34184
34185 2004-03-18  Doug Rupp  <rupp@gnat.com>
34186
34187         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
34188         Reorganize ifeq's.
34189
34190         * 5qsystem.ads, 5xcrtl.ads: New files.
34191
34192 2004-03-18  Vincent Celier  <celier@gnat.com>
34193
34194         * prj.adb (Reset): Reset hash table Files_Htable
34195
34196         * prj-env.adb (Source_Paths, Object_Paths): New tables.
34197         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
34198         the procedures Add_To_Path_File.
34199         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
34200         making sure that each directory is present only once and, for object
34201         dirs, when a directory already present is added, the duplicate is
34202         removed and the directory is always put as the last in the table.
34203         Write the path files at the end of these accumulations.
34204
34205         * prj-nmsc.adb (Record_Source): Add source file name in hash table
34206         Files_Htable for all sources.
34207
34208         * prj-proc.adb (Process): Remove restrictions between not directly
34209         related extending projects.
34210
34211 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
34212
34213         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
34214         (Find_Sources): Minor speed optimization.
34215
34216         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
34217         parameter Trusted_Mode.
34218
34219 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
34220
34221         * scn.adb (Determine_License): Take into account a degenerated case
34222         when the source contains only comments.
34223
34224 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
34225
34226         * sem_warn.adb (Check_References): For a warning on a selected
34227         component that does not come from source, locate an uninitialized
34228         component of the record type to produce a more precise error message.
34229
34230 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
34231
34232         * 3zsoccon.ads: Fix multicast options.
34233
34234         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
34235         in the spec.
34236
34237 2004-03-15  Robert Dewar  <dewar@gnat.com>
34238
34239         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
34240         pragma used for a private type.
34241
34242         * lib-xref.adb (Generate_Reference): Do not generate warning if
34243         reference is in a different unit from the pragma Unreferenced.
34244
34245         * 5vtpopde.adb: Minor reformatting
34246         Fix casing of To_Task_ID
34247
34248         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
34249         flag if we have an unchecked conversion to an access type in the same
34250         unit.
34251
34252 2004-03-15  Geert Bosch  <bosch@gnat.com>
34253
34254         * a-ngcoty.adb (Modulus): In alternate formula for large real or
34255         imaginary parts, use Double precision throughout.
34256
34257         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
34258         we want to be able to compile run-time with -gnata for testing, but
34259         this may also be instantiated in user code that is compiled with -gnata.
34260
34261 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
34262
34263         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
34264         codes. Having a separate type for this is useful to enforce consistency
34265         throughout the various run-time units.
34266         (Exception_Data): Use Exception_Code for Import_Code.
34267
34268         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
34269         Natural and Integer in various places.
34270         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
34271         with the severity bits masked off.
34272         (Register_VMS_Exception): Handle the additional exception data pointer
34273         argument.
34274
34275         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
34276         component, now reflected by an exported accessor.
34277         (is_handled_by): New routine to compute whether the propagated
34278         occurrence matches some handler choice specification. Extracted out of
34279         get_action_description_for, and expanded to take care of the VMS
34280         specifities.
34281         (get_action_description_for): Use is_handled_by instead of an explicit
34282         complex condition to decide if the current choice at hand catches the
34283         propagated occurrence.
34284
34285         * raise.h (Exception_Code): New type for C.
34286
34287         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
34288         System.Standard_Library.Exception_Code, to allow references from the
34289         pragma import/export expander.
34290
34291         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
34292         New accessors to allow easy access to GNAT exception data
34293         characteristics.
34294         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
34295         redundant Handled_By_Others component, helper for the personality
34296         routine which will now be able to call the appropriate exception data
34297         accessor instead.
34298
34299         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
34300         component of Standard_Exception_Type to be the closest possible to
34301         Exception_Code in System.Standard_Library, that we cannot get at this
34302         point. Expand a ??? comment to notify that this type node should
34303         probably be rewritten later on.
34304
34305         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
34306         registration call to include a pointer to the exception object in the
34307         arguments.
34308
34309         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
34310         instead of int and explicit bitmasks.
34311
34312 2004-03-15  Vincent Celier  <celier@gnat.com>
34313
34314         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
34315         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
34316
34317         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
34318         longer needed now that it is in the spec of
34319         System.Tasking.Task_Attributes.
34320
34321         * adaint.h, adaint.c: (__gnat_create_output_file): New function
34322
34323         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
34324
34325         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
34326
34327         * make.adb (Gnatmake): Do not check the executable suffix; it is being
34328         taken care of in Scan_Make_Arg.
34329         (Scan_Make_Arg): Add the executable suffix only if the argument
34330         following -o, in canonical case, does not end with the executable
34331         suffix.  When in verbose mode and executable file name does not end
34332         with executable suffix, output the executable name, in canonical case.
34333
34334         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
34335         to avoid warnings when instantiating Ada.Task_Attributes.
34336         Minor reformating.
34337
34338         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
34339         in the correct order.
34340
34341         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
34342         redirect standard output and error to a file for the invocation of the
34343         compiler, then read the file.
34344
34345         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
34346         directory, instead of the Value.
34347         (Find_Source_Dirs): Remove useless code & comments.
34348
34349 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
34350
34351         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
34352         tagged type is inherited, and the parent operation is not frozen yet,
34353         force generation of a freeze node for the inherited operation, so the
34354         corresponding dispatch entry is properly initialized.
34355         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
34356         when looking for user-defined equality operation.
34357
34358         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
34359         boolean when locating primitive equality of tagged component.
34360
34361         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
34362         bit-aligned field and the right-hand side a string literal, introduce
34363         a temporary before expanding assignment into a loop.
34364
34365         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
34366         priority in full, to ensure that any expanded subepxressions of it are
34367         elaborated in the scope of the init_proc.
34368
34369         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
34370         after object declaration, skipping over code that may have been
34371         generated for validity checks.
34372
34373         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
34374         discriminants, ignore the known discriminants of its full view, if
34375         any, to check legality.
34376
34377         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
34378         component if type has unknown discriminants.
34379         (Analyze_Private_Extension_Declaration): Discriminant constraint is
34380         null if type has unknown discriminants.
34381
34382         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
34383         for end label when present.
34384
34385         * s-fileio.adb (Open): When called with a C_Stream, use given name for
34386         temporary file, rather than an empty string.
34387
34388 2004-03-15  Ed Falis  <falis@gnat.com>
34389
34390         * s-thread.adb: Removed, no longer used.
34391
34392 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34393
34394         * decl.c (target.h): Now include.
34395         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
34396         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
34397         (validate_size): For POINTER_TYPE, get smallest size permitted on
34398         machine.
34399
34400         * fe.h: Sort Einfo decls and add Set_Mechanism.
34401
34402         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
34403         (ada/decl.o): Depends on target.h.
34404
34405         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
34406         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
34407
34408 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
34409
34410         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
34411
34412         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
34413         Insert_Dereference_Action when rewriting an implicit dereference into
34414         an explicit one, this will be taken care of during expansion of the
34415         explicit dereference.
34416         (Expand_N_Slice): Same. Always do the rewriting, even for the case
34417         of non-packed slices, since the dereference action generated by
34418         expansion of the explicit dereference is needed in any case.
34419         (Expand_N_Selected_Component): When rewriting an implicit dereference,
34420         analyze and resolve the rewritten explicit dereference so it is seen
34421         by the expander.
34422         (Insert_Dereference_Action): This procedure is now called only for the
34423         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
34424         dereferences that do not come from source (including explicit
34425         dereferences resulting from rewriting implicit ones), but do not
34426         recursively insert a check for the dereference nodes contained within
34427         the check.
34428         (Insert_Dereference_Action): Clarify and correct comment.
34429
34430 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
34431
34432         PR ada/14131
34433         Move language detection to the top level.
34434         * config-lang.in: Build by default.
34435
34436 2004-03-05  Robert Dewar  <dewar@gnat.com>
34437
34438         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
34439
34440         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
34441         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
34442         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
34443         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
34444         unchecked conversion to spec to avoid warnings.
34445
34446         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
34447         to Task_ID
34448
34449         * 7stpopsp.adb: Correct casing in To_Task_ID call
34450
34451         * a-strsea.ads, a-strsea.adb: Minor reformatting
34452
34453         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
34454
34455         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
34456         Adjust Max_Msg_Length to be clearly large enough.
34457
34458         * fe.h: Define In_Same_Source_Unit
34459
34460         * osint.adb: Add pragma Warnings Off to suppress warnings
34461         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
34462         aliasing warnings.
34463
34464         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
34465
34466         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
34467
34468         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
34469
34470         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
34471
34472         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
34473
34474         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
34475         node. We now do generate them for gcc back end.
34476
34477         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
34478         warning.
34479
34480         * sinput-c.adb: Fix bad name in header.
34481         Add pragma Warnings Off to suppress aliasing warning.
34482
34483         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
34484
34485         * snames.h, snames.ads, snames.adb: Add entry for pragma
34486         No_Strict_Aliasing.
34487
34488 2004-03-05  Vincent Celier  <celier@gnat.com>
34489
34490         * prj-com.ads: Add hash table Files_Htable to check when a file name
34491         is already a source of another project.
34492
34493         * prj-nmsc.adb (Record_Source): Before recording a new source, check
34494         if its file name is not already a source of another project. Report an
34495         error if it is.
34496
34497         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
34498         source file name, call gnatpp with all the sources of the main project.
34499
34500         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
34501         of file names.
34502
34503         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
34504         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
34505         /RUNTIME_SYSTEM=, converted to --RTS=
34506         /NOTABS, converted to -notabs
34507
34508 2004-03-05  Pascal Obry  <obry@gnat.com>
34509
34510         * make.adb: Minor reformatting.
34511
34512 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
34513
34514         Part of implemention of AI-262.
34515         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
34516
34517         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
34518         procedure.
34519
34520         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
34521         when component type is a partially constrained class-wide subtype.
34522         (Constrain_Discriminated_Type): If parent type has unknown
34523         discriminants, a constraint is illegal, even if full view has
34524         discriminants.
34525         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
34526         with unknown discriminants whose full view is a discriminated record.
34527
34528         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
34529         flag, to handle properly derivations of tagged types with unknown
34530         discriminants.
34531         (Analyze_Package_Spec, Analyze_Package_Body): Install
34532         Private_With_Clauses before analyzing private part or body.
34533
34534         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
34535         Has_Discriminants can be true for a given type (documentation).
34536
34537 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
34538
34539         * s-restri.ads: Fix license (GPL->GMGPL).
34540
34541         * s-tassta.adb: Minor reformatting.
34542
34543         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34544         by calls to Exit_One_ATC_Level, since additional clean up is performed
34545         by this function.
34546
34547         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34548         by calls to Exit_One_ATC_Level, since additional clean up is performed
34549         by this function.
34550
34551 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34552
34553         * trans.c: Reflect GCC changes to fix bootstrap problem.
34554         Add warning for suspicious aliasing unchecked conversion.
34555
34556 2004-03-05  GNAT Script  <nobody@gnat.com>
34557
34558         * Make-lang.in: Makefile automatically updated
34559
34560 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
34561
34562         * ali.adb (Read_Instantiation_Instance): Do not modify the
34563         current_file_num when reading information about instantiations, since
34564         this corrupts files in later references.
34565
34566 2004-03-02  Vincent Celier  <celier@gnat.com>
34567
34568         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
34569         before checking if it is read-only.
34570
34571         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
34572         of SRC_DIRS and eliminate duplicates.
34573
34574         * gprcmd.adb: Replace command "path" with command "path_sep" to return
34575         the path separator.
34576         (Usage): Document path_sep
34577
34578         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
34579         C++ compiler. No need for a script.
34580         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
34581         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
34582         subst.
34583
34584         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
34585         where there are Ada sources.
34586         (Set_Ada_Paths): Only add to the include path the source dirs of project
34587         with Ada sources.
34588         (Add_To_Path): Add the Display_Values of the directories, not their
34589         Values.
34590
34591         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
34592         data.
34593
34594         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
34595         is not No_Name.
34596         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
34597         Value is canonicalized.
34598         (Language_Independent_Check): Do not copy Value to Display_Value when
34599         canonicalizing Value.
34600
34601         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
34602         path to find limited with cycles.
34603         (Parse_Single_Project): Use canonical cased path to find the end of a
34604         with cycle.
34605
34606 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
34607
34608         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
34609         and not a child unit.
34610
34611         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
34612         appear in a with_clause.
34613
34614         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
34615         only happen in type_annotate mode, do not try to elaborate it.
34616
34617         * exp_util.adb (Force_Evaluation): If expression is a selected
34618         component on the left of an assignment, use a renaming rather than a
34619         temporary to remove side effects.
34620
34621         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
34622         inlined instance body, which is analyzed before the end of the
34623         enclosing scope.
34624
34625 2004-03-02  Robert Dewar  <dewar@gnat.com>
34626
34627         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
34628         sem_ch4.adb: Use new feature for substitution of keywords in VMS
34629
34630         * errout.ads, errout.adb: Implement new circuit for substitution of
34631         keywords in VMS.
34632
34633         * sem_case.adb (Analyze_Choices): Place message properly when case is
34634         a subtype reference rather than an explicit range.
34635
34636         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
34637
34638 2004-03-02  Doug Rupp  <rupp@gnat.com>
34639
34640         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
34641
34642 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
34643
34644         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
34645
34646 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34647
34648         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
34649         BLKmode bitfield.
34650
34651 2004-02-25  Robert Dewar  <dewar@gnat.com>
34652
34653         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34654         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
34655         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
34656         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
34657         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
34658         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
34659         the defining instance of the type to avoid aliasing problems.
34660         Fix copyright header.  Fix bad comments in package header.
34661
34662         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
34663
34664 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
34665
34666         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
34667         rewritten as references when aliased through an address clause.
34668
34669         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
34670         whether call can be interpreted as an indirect call to the result of a
34671         parameterless function call returning an access subprogram.
34672
34673 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
34674
34675         Code clean up:
34676         * exp_ch7.adb (Make_Clean): Remove generation of calls to
34677         Unlock[_Entries], since this is now done by Service_Entries directly.
34678
34679         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
34680
34681         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
34682         Requeue_Call for better code readability. Change spec and update calls:
34683         PO_Service_Entries now unlock the PO on exit.
34684         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
34685         PO_Service_Entries.
34686
34687         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
34688
34689         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
34690
34691 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
34692
34693         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
34694         protected subprogram call and analyzing the result of such expanding
34695         in case when the called protected subprogram is eliminated.
34696
34697         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
34698         names.
34699
34700 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
34701
34702         * Makefile.in: Clean ups.
34703
34704 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
34705
34706         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
34707         protected operations if original subprogram is flagged as eliminated.
34708         (Expand_N_Subprogram_Body): For a protected operation, create
34709         discriminals for next operation before checking whether the operation
34710         is eliminated.
34711
34712         * exp_ch9.adb (Expand_N_Protected_Body,
34713         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
34714         for internal protected operations if the original subprogram is
34715         eliminated.
34716
34717         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
34718         declared in a single protected object.
34719
34720 2004-02-23  Vincent Celier  <celier@gnat.com>
34721
34722         * prj-attr.adb: Make attribute Builder'Executable an associative array,
34723         case insensitive if file names are case insensitive, instead of a
34724         standard associative array.
34725
34726         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
34727         them as case insensitive on platforms where the file names are case
34728         sensitive.
34729
34730         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
34731         project file has already been parsed that canonical path are compared.
34732
34733 2004-02-23  Robert Dewar  <dewar@gnat.com>
34734
34735         * sinput-c.ads: Correct bad unit title in header
34736
34737         * freeze.adb: Minor reformatting
34738
34739 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34740
34741         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
34742         nonaddressable COMPONENT_REF that is removing padding that we are
34743         taking the address of, take the address of the padded record instead
34744         if item is variable size.
34745
34746 2004-02-20  Robert Dewar  <dewar@gnat.com>
34747
34748         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
34749
34750 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
34751
34752         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
34753         itype references for the constrained designated type of a component
34754         whose base type is already frozen.
34755
34756 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
34757
34758         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
34759         avoid GCC warnings.
34760
34761 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
34762
34763         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
34764         identifier for a phantom package that rewrites the formal package
34765         declaration with a box. The Add semantic decorations for the defining
34766         identifier from the original node (that represents the formal package).
34767
34768 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
34769
34770         * Make-lang.in (ada/stamp-sdefault): Use the top level
34771         move-if-change.
34772
34773 2004-02-19  Richard Henderson  <rth@redhat.com>
34774
34775         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
34776
34777 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
34778
34779         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
34780         Scan_ALI can be used for multiple ALI files without reinitializing
34781         between calls.
34782
34783 2004-02-18  Robert Dewar  <dewar@gnat.com>
34784
34785         * debug.adb: Minor reformatting.
34786
34787 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34788
34789         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
34790         to zero if there is an address clause.
34791
34792 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
34793
34794         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
34795
34796 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
34797
34798         * layout.adb (Layout_Component_List): Revise generation of call to
34799         discriminant-checking function to pass selections of all of the type's
34800         discriminants rather than just the variant-controlling discriminant.
34801
34802 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
34803
34804         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
34805         fail in the current setup and triggers spurious system error messages.
34806         Pretend it occurred and failed instead.
34807
34808 2004-02-18  Vincent Celier  <celier@gnat.com>
34809
34810         * bld.adb: Mark FLDFLAGS as saved
34811         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
34812         it is not the root project.  Put each directory to be
34813         extended between double quotes to prevent it to be expanded on Windows.
34814         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
34815         the project file. Set them back to their initial values if they have not
34816         been set in the project file.
34817
34818         * gprcmd.adb: (Gprdebug, Debug): New global variables
34819         (Display_Command): New procedure
34820         (Usage): Document new command "linkopts"
34821         Call Display_Command when env var GPRDEBUG has the value "TRUE"
34822         Implement new command "linkopts"
34823         Remove quotes that may be around arguments for "extend"
34824         Always call Normalize_Pathname with arguments formatted for the platform
34825
34826         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
34827         Change @echo to @$(display) in target clean to be able to clean silently
34828
34829         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
34830
34831         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
34832         canonical case.
34833
34834         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
34835         = Extending_All when current project is an extending all project.
34836
34837         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
34838         set to True only for LINK command, after Unix switch -o.
34839         (Process_Arguments): Set Output_File_Expected to True for LINK command
34840         after Unix switch -o. When Output_File_Expected is True, never add an
34841         extension to a file name.
34842
34843         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
34844         option file name, only to the --for-linker= switch.
34845         (Option_File_Name): If option file name do not end with ".opt", append
34846         "/OPTIONS".
34847
34848 2004-02-18  GNAT Script  <nobody@gnat.com>
34849
34850         * Make-lang.in: Makefile automatically updated
34851
34852 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
34853
34854         * Make-lang.in (stamp-sdefault): Do not depend on
34855         move-if-change.
34856
34857 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
34858
34859         * config-lang.in: Disable Ada by default until probe logic for
34860         a bootstrap Ada compiler can be moved to the top level configure
34861         script.
34862
34863 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
34864
34865         * decl.c (components_to_record): Don't claim that the internal fields
34866         we make to hold the variant parts are semantically addressable, because
34867         they are not.
34868
34869         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
34870         adjust the comment describing the modular type form when we can use it.
34871         (Install_PAT): Account for the Esiz renaming.
34872
34873         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
34874         sc_onstack context indication before raising the exception to which
34875         the signal is mapped. Allows better handling of later signals possibly
34876         triggered by the resumed user code if the exception is handled.
34877
34878 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
34879
34880         * 5zinit.adb: Removed, no longer used.
34881
34882 2004-02-12  Robert Dewar  <dewar@gnat.com>
34883
34884         * ali.adb: Remove separating space between parameters on R line. Makes
34885         format consistent with format used by the binder for Set_Globals call.
34886
34887         * atree.ads, atree.adb: Minor reformatting (new function header format)
34888
34889         * bindgen.adb: Add Run-Time Globals documentation section containing
34890         detailed documentation of the globals passed from the binder file to
34891         the run time.
34892
34893         * gnatls.adb: Minor reformatting
34894
34895         * init.c (__gnat_set_globals): Add note pointing to documentation in
34896         bindgen.
34897
34898         * lib-writ.ads, lib-writ.adb: Remove separating space between
34899         parameters on R line.
34900         Makes format consistent with format used by the binder for Set_Globals
34901         call.
34902
34903         * osint.ads: Add 2004 to copyright notice
34904         Minor reformatting
34905
34906         * snames.ads: Correct capitalization of FIFO_Within_Priorities
34907         Noticed during code reading, documentation issue only
34908
34909         * usage.adb: Remove junk line for obsolete C switch
34910         Noticed during code reading
34911
34912 2004-02-12  Vincent Celier  <celier@gnat.com>
34913
34914         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
34915         extend for each directory, so that multiple /** directories are
34916         extended individually.
34917         (Recursive_Process): Set the default for LANGUAGES to ada
34918
34919         * gprcmd.adb: Define new command "ignore", to do nothing.
34920         Implement new comment "path".
34921
34922         * Makefile.generic: Suppress output when SILENT is set
34923         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
34924         used, so that the correct compiler is invoked.
34925         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
34926         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
34927
34928 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
34929
34930         * Makefile.in: Clean ups and remove obsolete targets.
34931
34932 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
34933
34934         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
34935         predicate declared in exp_util.
34936
34937         * exp_util.adb: Add comments.
34938
34939         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
34940         visibility before compiling context of the subunit.
34941
34942         * sem_res.adb (Check_Parameterless_Call): If the context expects a
34943         value but the name is a procedure, do not attempt to analyze as a call,
34944         in order to obtain more telling diagnostics.
34945
34946         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
34947         'Access on parameterless function calls.
34948         (Normalize_Actuals): For a parameterless function call with missing
34949         actuals, defer diagnostic until resolution of enclosing call.
34950
34951         * sem_util.adb (Wrong_Type): If the context type is an access to
34952         subprogram and the expression is a procedure name, suggest a missing
34953         'attribute.
34954
34955 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
34956             Nathanael Nerode  <neroden@gcc.gnu.org>
34957
34958         PR ada/6637
34959         PR ada/5911
34960         Merge with libada-branch:
34961         * config-lang.in: Build libada only when ada is built.
34962
34963 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
34964
34965         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
34966         for a tagged type, verify that both formals have the same type.
34967
34968         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
34969         temporary when the formal is an in-parameter and the actual a possibly
34970         unaligned slice.
34971
34972         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
34973         when expansion is disabled, to ensure proper name capture with
34974         overloaded literals.  Condition can be of any boolean type, resolve
34975         accordingly.
34976
34977         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
34978         renaming is for a formal subprogram with a default operator name, and
34979         there is a usable operator that is visible at the point of
34980         instantiation.
34981
34982 2004-02-09  Robert Dewar  <dewar@gnat.com>
34983
34984         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
34985         rewrite to ignore errors in ali files, intended to allow tools downward
34986         compatibility with new versions of ali files.
34987
34988         * ali.ads: Add new parameter Ignore_Errors
34989
34990         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
34991         duplicating the error message giving the file with restrictions.
34992
34993         * debug.adb: Add debug flag I for gnatbind
34994
34995         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
34996         operators for the case where the operator is a defining operator.
34997
34998         * exp_ch3.adb: Minor reformatting (new function spec format).
34999
35000         * exp_ch4.adb: Add comment for previous change, and make minor
35001         adjustment to loop to always check for improper loop termination.
35002         Minor reformatting throughout (new function spec format).
35003
35004         * gnatbind.adb: Implement -di debug flag for gnatbind
35005
35006         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
35007
35008         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
35009
35010         * lib-load.adb: Fix bad assertion.
35011         Found by testing and code reading.
35012         Minor reformatting.
35013
35014         * lib-load.ads: Minor reformatting.
35015
35016         * lib-writ.adb: There is only one R line now.
35017
35018         * lib-writ.ads: Add documentation on making downward compatible changes
35019         to ali files so old tools work with new ali files.
35020         There is only one R line now.
35021         Add documentation on format incompatibilities (with special GPS note)
35022
35023         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
35024
35025         * par-load.adb: Minor reformatting
35026
35027         * sem_ch8.adb: Fix to error message from last update
35028         Minor reformatting and restructuring of code from last update
35029
35030         * par-prag.adb, snames.adb, snames.ads, snames.h,
35031         sem_prag.adb: Implement pragma Profile.
35032
35033         * stylesw.adb: Implement -gnatyN switch to turn off all style check
35034         options.
35035
35036         * usage.adb: Add line for -gnatyN switch
35037
35038         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
35039
35040 2004-02-09  Albert Lee  <lee@gnat.com>
35041
35042         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
35043
35044 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
35045
35046         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
35047         slices.
35048
35049         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
35050         is nested in an instance that is not frozen yet, to avoid
35051         order-of-elaboration problems in gigi.
35052
35053         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
35054         body the attribute is legal.
35055
35056 2004-02-09  Robert Dewar  <dewar@gnat.com>
35057
35058         * s-rident.ads: Minor comment correction
35059
35060         * targparm.adb: Remove dependence on uintp completely. There was
35061         always a bug in Make in that it called Targparm before initializing
35062         the Uint package. The old code appeared to get away with this, but
35063         the new code did not! This caused an assertion error in gnatmake.
35064
35065         * targparm.ads: Fix bad comment, restriction pragmas with parameters
35066         are indeed fully supported.
35067
35068 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
35069
35070         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
35071
35072 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
35073
35074         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
35075         with targetm.calls.promote_prototypes.
35076
35077 2004-02-04  Robert Dewar  <dewar@gnat.com>
35078
35079         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
35080         ali.ads, gprcmd.adb: Minor reformatting
35081
35082         * bindgen.adb: Output restrictions string for new style restrictions
35083         handling
35084
35085         * impunit.adb: Add s-rident.ads (System.Rident) and
35086         s-restri (System.Restrictions)
35087
35088         * lib-writ.adb: Fix bug in writing restrictions string (last few
35089         entries wrong)
35090
35091         * s-restri.ads, s-restri.adb: Change name Restrictions to
35092         Run_Time_Restrictions to avoid conflict with package name.
35093         Add circuit to read and acquire run time restrictions.
35094
35095 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
35096
35097         * restrict.ads, restrict.adb: Use the new restriction
35098         No_Task_Attributes_Package instead of the old No_Task_Attributes.
35099
35100         * sem_prag.adb: No_Task_Attributes is a synonym of
35101         No_Task_Attributes_Package.
35102
35103         * snames.ads, snames.adb: New entry for proper handling of
35104         No_Task_Attributes.
35105
35106         * s-rident.ads: Adding restriction No_Task_Attributes_Package
35107         (AI-00249) that supersedes the GNAT specific restriction
35108         No_Task_Attributes.
35109
35110 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
35111
35112         * sem_prag.adb:
35113         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
35114          body, an identifier may be wrapped in an unchecked conversion.
35115
35116 2004-02-04  Vincent Celier  <celier@gnat.com>
35117
35118         * lib-writ.ads: Comment update for the W lines
35119
35120         * bld.adb: (Expression): An empty string list is static
35121
35122         * fname-uf.adb: Minor comment update
35123
35124         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
35125
35126         * gnatbind.adb: Initialize Cumulative_Restrictions with the
35127         restrictions on the target.
35128
35129 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
35130
35131         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
35132         gen_rtx.
35133
35134 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
35135
35136         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
35137
35138 2004-02-02  Vincent Celier  <celier@gnat.com>
35139
35140         * gprcmd.adb (Check_Args): If condition is false, print the invoked
35141         comment before the usage.
35142         Gprcmd: Fail when command is not recognized.
35143         (Usage): Document command "prefix"
35144
35145         * g-md5.adb (Digest): Process last block.
35146         (Update): Do not process last block. Store remaining characters and
35147         length in Context.
35148
35149         * g-md5.ads (Update): Document that several call to update are
35150         equivalent to one call with the concatenated string.
35151         (Context): Add fields to allow new Update behaviour.
35152
35153         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
35154         defaulted to False.
35155         When May_Fail is True and no existing file can be found, return No_File.
35156
35157         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
35158         functions.
35159
35160         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
35161         spec file name instead on the W line.
35162
35163 2004-02-02  Robert Dewar  <dewar@gnat.com>
35164
35165         * ali.adb: Read and acquire info from new format restrictions lines
35166
35167         * bcheck.adb: Add circuits for checking restrictions with parameters
35168
35169         * bindgen.adb: Output dummy restrictions data
35170         To be changed later
35171
35172         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
35173         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
35174         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
35175         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
35176         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
35177
35178         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
35179         the warning message on access to possibly uninitialized variable S)
35180         Minor changes for new restrictions handling.
35181
35182         * gnatbind.adb: Minor reformatting
35183         Minor changes for new restrictions handling
35184         Move circuit for -r processing here from bcheck (cleaner)
35185
35186         * gnatcmd.adb, gnatlink.adb: Minor reformatting
35187
35188         * lib-writ.adb: Output new format restrictions lines
35189
35190         * lib-writ.ads: Document new R format lines for new restrictions
35191         handling.
35192
35193         * s-restri.ads/adb: New files
35194
35195         * Makefile.rtl: Add entry for s-restri.ads/adb
35196
35197         * par-ch3.adb: Fix bad error messages starting with upper case letter
35198         Minor reformatting
35199
35200         * restrict.adb: Major rewrite throughout for new restrictions handling
35201         Major point is to handle restrictions with parameters
35202
35203         * restrict.ads: Major changes in interface to handle restrictions with
35204         parameters. Also generally simplifies setting of restrictions.
35205
35206         * snames.ads/adb: New entry for proper handling of No_Requeue
35207
35208         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
35209         restriction counting.
35210         Other minor changes for new restrictions handling
35211
35212         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
35213         Restriction_Warnings now allows full parameter notation
35214         Major rewrite of Restrictions for new restrictions handling
35215
35216 2004-02-02  Javier Miranda  <miranda@gnat.com>
35217
35218         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
35219         syntax rule for object renaming declarations.
35220         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
35221         component definitions.
35222
35223         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
35224         components.
35225         (Array_Type_Declaration): Give support to access components. In addition
35226         it was also modified to reflect the name of the object in anonymous
35227         array types. The old code did not take into account that it is possible
35228         to have an unconstrained anonymous array with an initial value.
35229         (Check_Or_Process_Discriminants): Allow access discriminant in
35230         non-limited types.
35231         (Process_Discriminants): Allow access discriminant in non-limited types
35232         Initialize the new Access_Definition field in N_Object_Renaming_Decl
35233         node.  Change Ada0Y to Ada 0Y in comments
35234
35235         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
35236         equality operators.
35237         Change Ada0Y to Ada 0Y in comments
35238
35239         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
35240         renamings Change Ada0Y to Ada 0Y in comments
35241
35242         * sem_type.adb (Find_Unique_Type): Give support to the equality
35243         operators for universal access types
35244         Change Ada0Y to Ada 0Y in comments
35245
35246         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
35247
35248         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
35249         field.
35250         (N_Object_Renaming_Declaration): Addition of Access_Definition field
35251         Change Ada0Y to Ada 0Y in comments
35252
35253         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
35254         component definition and object renaming nodes
35255         Change Ada0Y to Ada 0Y in comments
35256
35257 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
35258
35259         * restrict.adb: Use the new restriction identifier
35260         No_Requeue_Statements instead of the old No_Requeue for defining the
35261         restricted profile.
35262
35263         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
35264         No_Requeue_Statements.
35265
35266         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
35267         that supersedes the GNAT specific restriction No_Requeue. The later is
35268         kept for backward compatibility.
35269
35270 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
35271
35272         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
35273         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
35274         pragma and fix incorrect ones.
35275
35276         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
35277         warning if the pragma is redundant.
35278
35279 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
35280
35281         * 5staprop.adb: Add missing 'constant' keywords.
35282
35283         * Makefile.in: use consistent value for SYMLIB on
35284         platforms where libaddr2line is supported.
35285
35286 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35287
35288         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
35289         annotating types.
35290
35291 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
35292
35293         * init.c (__gnat_install_handler): Setup an alternate stack for signal
35294         handlers in the environment thread. This allows proper propagation of
35295         an exception on stack overflows in this thread even when the builtin
35296         ABI stack-checking scheme is used without support for a stack reserve
35297         region.
35298
35299         * utils.c (create_field_decl): Augment the head comment about bitfield
35300         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
35301         here, because the former is not accurate enough at this point.
35302         Let finish_record_type decide instead.
35303         Don't make a bitfield if the field is to be addressable.
35304         Always set a size for the field if the record is packed, to ensure the
35305         checks for bitfield creation are triggered.
35306         (finish_record_type): During last pass over the fields, clear
35307         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
35308         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
35309         from DECL_BIT_FIELD.
35310
35311 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
35312
35313         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
35314         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
35315         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
35316
35317 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35318
35319         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
35320
35321         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
35322         (ZCX_By_Default): Likewise.
35323         (Front_End_ZCX_Support): Likewise.
35324
35325         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
35326         (Initialize_Lock): Mark Level unreferenced.
35327         (Sleep): Mark Reason unreferenced.
35328         (Timed_Sleep): Likewise.
35329         (Wakeup): Likewise.
35330         (Exit_Task): Use Result.
35331         (Check_No_Locks): Mark Self_ID unreferenced.
35332
35333         * 5gtasinf.adb (New_Sproc): Make Attr constant.
35334         (Bound_Thread_Attributes): Make Sproc constant.
35335         (New_Bound_Thread_Attributes): Likewise.
35336
35337 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
35338
35339         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
35340         one-dimensional array an slice assignments, when component type is
35341         controlled.
35342
35343         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
35344         component type is controlled, and control_actions are in effect, use
35345         TSS procedure rather than generating inline code.
35346
35347         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
35348         arrays with controlled components.
35349
35350 2004-01-26  Vincent Celier  <celier@gnat.com>
35351
35352         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
35353         command line for the non VMS case.
35354
35355         * gnatlink.adb (Process_Binder_File): When building object file, if
35356         GNU linker is used, put all object paths between quotes, to prevent ld
35357         error when there are unusual characters (such as '!') in the paths.
35358
35359         * Makefile.generic: When there are sources in Ada and the main is in
35360         C/C++, invoke gnatmake with -B, instead of -z.
35361
35362         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
35363         from VMS_Conversion.
35364         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
35365         specification of argument file on the command line.
35366
35367 2004-01-26  Bernard Banner  <banner@gnat.com>
35368
35369         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
35370
35371 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
35372
35373         * snames.adb: Update copyright notice.
35374         Add info on slice assignment for controlled arrays.
35375
35376 2004-01-23  Robert Dewar  <dewar@gnat.com>
35377
35378         * exp_aggr.adb: Minor reformatting
35379
35380         * exp_ch9.adb: Minor code clean up
35381         Minor reformatting
35382         Fix bad character in comment
35383
35384         PR ada/13471
35385         * targparm.adb (Get_Target_Parameters): Give clean abort error on
35386         unexpected end of file, along with more detailed message.
35387
35388 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35389
35390         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
35391         PAT.
35392
35393         * decl.c (copy_alias_set): New function.
35394         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
35395
35396 2004-01-23  Doug Rupp  <rupp@gnat.com>
35397
35398         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
35399         lib$${file} in case subsequent character is not a separator.
35400
35401 2004-01-23  Vincent Celier  <celier@gnat.com>
35402
35403         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
35404         when the GCC version is at least 3.
35405
35406         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
35407         Remove all "Opt.", to prepare for opt split
35408
35409         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
35410         Extends_All. Set to True when the project parsed is an extending all
35411         project. Fails for importing an extending all project only when the
35412         imported project is an extending all project.
35413         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
35414         depending on the value of Extends_All returned.
35415
35416         * prj-proc.adb (Process): Check that no project shares its object
35417         directory with a project that extends it, directly or indirectly,
35418         including a virtual project.
35419         Check that no project extended by another project shares its object
35420         directory with another also extended project.
35421
35422         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
35423         Kind = N_With_Clause
35424
35425         * prj-tree.ads: Minor reformatting
35426         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
35427
35428 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
35429
35430         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
35431         applies to a type with an incomplete view, use full view in Name of
35432         clause, for consistency with uses of Get_Attribute_Definition_Clause.
35433
35434 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
35435
35436         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
35437         SCHED_RR, since other values are not supported by this policy.
35438         (Initialize): Move initialization of mutex attribute to package
35439         elaboration, to prevent early access to this variable.
35440
35441         * Makefile.in: Remove mention of Makefile.adalib, unused.
35442
35443         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35444         1ssecsta.ads: Removed, unused.
35445
35446 2004-01-21  Javier Miranda  <miranda@gnat.com>
35447
35448         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
35449         entity if already built in the current scope.
35450
35451         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
35452         reminder in internal scopes. Required for nested limited aggregates.
35453
35454 2004-01-21  Doug Rupp  <rupp@gnat.com>
35455
35456         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
35457         VMS. Replace all occurences of libgnat- and libgnarl- with
35458         libgnat$(hyphen) and libgnarl$(hyphen).
35459         Fixed shared library build problem on VMS.
35460
35461 2004-01-21  Robert Dewar  <dewar@gnat.com>
35462
35463         * mlib-prj.adb: Minor reformatting
35464
35465 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
35466
35467         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
35468         'constant' keywords for declaration of pointers that are not modified.
35469
35470         * exp_pakd.adb: Fix English in comment.
35471
35472 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
35473
35474         PR ada/10889
35475         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
35476         copy all attributes of the parent, including the foreign language
35477         convention.
35478
35479 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
35480
35481         PR ada/10565
35482         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
35483         for 'delay until' statement.
35484
35485 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
35486
35487         * Make-lang.in: Replace $(docdir) with doc.
35488         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
35489         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
35490         to use consistent MAKEINFO rule.
35491         (ada.man, ada.srcman): Dummy entry.
35492         (ADA_INFOFILES): Define.
35493         (ada.info, ada.srcinfo): New rules.
35494
35495 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
35496
35497         * utils.c: Update copyright notice, missed in previous change.
35498
35499 2004-01-19  Vincent Celier  <celier@gnat.com>
35500
35501         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
35502         args if Bind is True. Set First_ALI, if not already done.
35503         (Build_Library): For Stand Alone Libraries, extract from one ALI file
35504         an eventual --RTS switch, for gnatbind, and all backend switches +
35505         --RTS, for linking.
35506
35507 2004-01-19  Robert Dewar  <dewar@gnat.com>
35508
35509         * sem_attr.adb, memtrack.adb: Minor reformatting
35510
35511 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
35512
35513         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
35514         that rename enumeration literals. This is properly done in sem_eval.
35515
35516         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
35517         to functions that rename enumeration literals.
35518
35519         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
35520         functions that rename enumeration literals.
35521
35522 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
35523
35524         * Make-lang.in (utils.o): Depend on target.h.
35525         * utils.c: Include target.h.
35526         (process_attributes): Use targetm.have_named_sections instead
35527         of ASM_OUTPUT_SECTION_NAME.
35528
35529 2004-01-16  Andreas Jaeger  <aj@suse.de>
35530
35531         * Makefile.in: Add $(DESTDIR).
35532
35533 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
35534
35535         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
35536         also when not defining if a Size clause applies. That information is
35537         not to be ignored.
35538
35539 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
35540
35541         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
35542         symbolic links for the shared gnat run time when needed.
35543
35544 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
35545
35546         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
35547         for writing, and terminate with an error message if not.
35548
35549 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
35550
35551         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
35552         warning on an access to subprogram in an instance, when the target
35553         type is declared in the same generic unit.
35554         (Eval_Attribute): If 'access is known to fail accessibility check,
35555         rewrite as a raise statement.
35556
35557 2004-01-15  GNAT Script  <nobody@gnat.com>
35558
35559         * Make-lang.in: Makefile automatically updated
35560
35561 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
35562
35563         * Make-lang.in (ada.srcextra): Dummy entry.
35564
35565 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
35566
35567         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
35568
35569 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
35570
35571         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
35572         components that are initialized with aggregates.
35573
35574 2004-01-13  Vincent Celier  <celier@gnat.com>
35575
35576         * gnatlink.adb (Process_Binder_File): To find directory of shared
35577         libgcc, if "gcc-lib" is not a subdirectory, look for the last
35578         subdirectory "lib" in the path of the shared libgnat or libgnarl.
35579
35580         * make.adb (Gnatmake): If GCC version is at least 3, link with
35581         -shared-libgcc, when there is at least one shared library project.
35582
35583         * opt.ads (GCC_Version): New integer constant.
35584
35585         * adaint.c (get_gcc_version): New function.
35586
35587 2004-01-13  Robert Dewar  <dewar@gnat.com>
35588
35589         * sem_dist.adb, sem_res.adb, sem_util.adb,
35590         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
35591         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
35592
35593 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
35594
35595         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
35596         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
35597         declarations.
35598
35599 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
35600
35601         * misc.c: Remove trailing spaces.
35602         Update copyright notice missed in previous change.
35603
35604         PR ada/13572
35605         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
35606         prefix/share/make
35607
35608         * Makefile.generic: Update copyright.
35609         Add license notice.
35610
35611         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
35612         of prefix/share/make.
35613
35614         * Makefile.prolog: Update copyright.
35615         Add license notice.
35616
35617 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
35618
35619         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
35620         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
35621         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
35622         instead of String.
35623
35624         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
35625         signature.
35626
35627 2004-01-12  Javier Miranda  <miranda@gnat.com>
35628
35629         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
35630         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
35631         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
35632         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
35633         Component_Definition node.
35634
35635 2004-01-12  Ed Falis  <falis@gnat.com>
35636
35637         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
35638
35639 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
35640
35641         * link.c: Change default libgnat kind to STATIC for FreeBSD.
35642
35643 2004-01-12  Bernard Banner  <banner@gnat.com>
35644
35645         * Makefile.in: map 86numaux to a-numaux for x86_64
35646
35647 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
35648
35649         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
35650         generated to rename a generic actual, go to the actual itself, the
35651         subtype is not a user-visible entity.
35652
35653         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
35654         part is a private subtype, reset the visibility of its full view, if
35655         any, to be consistent.
35656
35657         PR ada/13417
35658         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
35659         to use a generic package G as a formal package for another generic
35660         declared within G.
35661
35662 2004-01-12  Robert Dewar  <dewar@gnat.com>
35663
35664         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
35665
35666         * usage.adb: Remove mention of obsolete -gnatwb switch
35667         Noticed during code reading
35668
35669 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
35670
35671         * 1ssecsta.adb: Minor changes for -gnatwa warnings
35672
35673 2004-01-12  GNAT Script  <nobody@gnat.com>
35674
35675         * Make-lang.in: Makefile automatically updated
35676
35677 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
35678
35679         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
35680
35681 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35682
35683         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
35684
35685 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
35686
35687         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
35688         Update comment and copyright date.
35689         * stamp-xgnatug: Delete.
35690
35691 2004-01-05  Robert Dewar  <dewar@gnat.com>
35692
35693         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
35694         be modified by the binder generated main program if the -D switch is
35695         used.
35696
35697         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
35698         imported functions (since now we expect this to be done for imported
35699         functions)
35700
35701         * 5vtaprop.adb: Add several ??? for sections requiring more comments
35702         Minor reformatting throughout
35703
35704         * 5zinit.adb: Minor reformatting
35705         Add 2004 to copyright date
35706         Minor changes to avoid -gnatwa warnings
35707         Correct some instances of using OR instead of OR ELSE (noted while
35708         doing reformatting)
35709
35710         * sprint.adb: Minor updates to avoid -gnatwa warnings
35711
35712         * s-secsta.ads, s-secsta.adb:
35713         (SS_Get_Max): New function to obtain high water mark for ss stack
35714         Default_Secondary_Stack is not a constant since it may be modified by
35715         the binder generated main program if the -D switch is used.
35716
35717         * switch-b.adb: New -Dnnn switch for binder
35718
35719         * switch-c.adb:
35720         Make -gnatg imply all warnings currently in -gnatwa
35721
35722         * vms_conv.adb: Minor reformatting
35723         Add 2004 to copyright notice
35724         Add 2004 to printed copyright notice
35725
35726         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
35727         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
35728         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
35729         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
35730         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
35731         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
35732         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
35733         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
35734         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
35735         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
35736         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
35737         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
35738         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
35739         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
35740         checks.adb, clean.adb, cstand.adb, einfo.ads,
35741         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
35742         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
35743         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
35744         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
35745         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
35746         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
35747         Minor reformatting and code clean ups.
35748         Minor changes to prevent -gnatwa warnings
35749
35750         * ali.adb: Minor reformatting and cleanup of code
35751         Acquire new SS indication of secondary stack use from ali files
35752
35753         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
35754         (since now we expect this to be done for imported functions)
35755
35756         * bindgen.adb: Generate call to modify default secondary stack size if
35757         -Dnnn switch given
35758
35759         * bindusg.adb: Add line for new -D switch
35760
35761         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
35762         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
35763         Add circuitry for both records and arrays to avoid gigi
35764         processing if the type involved has non-bit-aligned components
35765
35766         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
35767         N_String_Literal node always references an E_String_Literal_Subtype
35768         entity. This may not be true in the future.
35769         (Possible_Bit_Aligned_Component): Move processing of
35770         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
35771
35772         * exp_ch6.adb (Expand_Thread_Body): Pick up
35773         Default_Secondary_Stack_Size as variable so that we get value modified
35774         by possible -Dnnn binder parameter.
35775
35776         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
35777         (Type_May_Have_Bit_Aligned_Components): New function.
35778
35779         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
35780         (Type_May_Have_Bit_Aligned_Components): New function.
35781
35782         * fe.h: (Set_Identifier_Casing): Fix prototype.
35783         Add declaration for Sem_Elim.Eliminate_Error_Msg.
35784         Minor reformatting.
35785
35786         * freeze.adb (Freeze_Entity): Add RM reference to error message about
35787         importing constant atomic/volatile objects.
35788         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
35789         unless explicit Pure_Function pragma given, to avoid insidious bug of
35790         call to non-pure imported function getting eliminated.
35791
35792         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
35793         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
35794         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
35795         Add 2004 to printed copyright notice
35796
35797         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
35798         stack used.
35799
35800         * Makefile.rtl: Add entry for g-sestin.o
35801         g-sestin.ads: New file.
35802
35803         * mdll.adb: Minor changes to avoid -gnatwa warnings
35804
35805         * mlib-tgt.adb: Minor reformatting
35806
35807         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
35808         New switch Sec_Stack_Used (GNAT, GNATBIND)
35809         Make Default_Secondary_Stack_Size a variable instead of a constant,
35810         so that it can be modified by the new -Dnnn bind switch.
35811
35812         * rtsfind.adb (Load_Fail): Give full error message in configurable
35813         run-time mode if all_errors mode is set. This was not done in the case
35814         of a file not found, which was an oversight.
35815         Note if secondary stack unit is used by compiler.
35816
35817         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
35818         ineffective elaborate all pragmas on non-visible packages (this
35819         happened when a renamed subprogram was called). Now the elaborate all
35820         always goes on the package containing the renaming rather than the one
35821         containing the renamed subprogram.
35822
35823         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
35824         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
35825
35826         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
35827         has an Etype that references an E_String_Literal.
35828         (Eval_String_Literal): Avoid assumption that N_String_Literal node
35829         always references an E_String_Literal_Subtype entity. This may not
35830         be true in the future.
35831
35832         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
35833         pragma location.
35834
35835         * sem_res.adb (Resolve): Specialize msg for function name used in proc
35836         call.
35837
35838 2004-01-05  Ed Falis  <falis@gnat.com>
35839
35840         * g-debuti.adb: Replaced direct boolean operator with short-circuit
35841         form.
35842
35843 2004-01-05  Vincent Celier  <celier@gnat.com>
35844
35845         * bld.adb: Minor comment updates
35846         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
35847         of Item_Name).
35848
35849         * make.adb (Gnatmake): Special process for files to compile/check when
35850         -B is specified. Fail when there are only foreign mains in attribute
35851         Main of the project file and -B is not specified. Do not skip bind/link
35852         steps when -B is specified.
35853
35854         * makeusg.adb: Document new switch -B
35855
35856         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
35857
35858         * switch-m.adb: (Scan_Make_Switches): Process -B switch
35859
35860         * vms_data.ads: Add new GNAT PRETTY qualifier
35861         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
35862
35863 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35864
35865         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
35866         case.
35867
35868         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
35869         Set_Identifier_Casing.
35870
35871         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
35872         has size that overflows.
35873
35874 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
35875
35876         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
35877         -gnatwa warning on static condition.
35878
35879 2004-01-05  Doug Rupp  <rupp@gnat.com>
35880
35881         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
35882
35883 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
35884
35885         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
35886         all attributes, including read-only attribute.
35887
35888 2004-01-05  Pascal Obry  <obry@gnat.com>
35889
35890         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
35891         library naming scheme.
35892
35893         * mlib-prj.adb (Build_Library): Generate different names for the static
35894         or dynamic version of the GNAT runtime. This is needed to support the
35895         new shared library naming scheme.
35896         (Process_Binder_File): Add detection of shared library in binder file
35897         based on the new naming scheme.
35898
35899         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
35900         scheme for the shared runtime libraries.
35901
35902         * Makefile.in:
35903         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
35904         scheme.
35905         (install-gnatlib): Do not create symlinks for shared libraries.
35906         (gnatlib-shared-default): Idem.
35907         (gnatlib-shared-dual-win32): New target. Not used for now as the
35908         auto-import feature does not support arrays/records.
35909         (gnatlib-shared-win32): Do not create copy for the shared libraries.
35910         (gnatlib-shared-vms): Fix shared runtime libraries names.
35911
35912         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
35913         dependent runtime shared library name.
35914
35915 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
35916
35917         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
35918         than the object.
35919
35920 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
35921
35922         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
35923         protected objects when allocator has a subtype indication, not a
35924         qualified expression. Note that qualified expressions may have to be
35925         checked when limited aggregates are implemented.
35926
35927         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
35928         pure, emit warning.
35929         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
35930         subprogram is imported, remove warning.
35931
35932 2004-01-05  Geert Bosch  <bosch@gnat.com>
35933
35934         * s-poosiz.adb: Update copyright notice.
35935         (Allocate): Use Task_Lock to protect against concurrent access.
35936         (Deallocate): Likewise.
35937
35938 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
35939
35940         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
35941         comment.
35942
35943 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
35944
35945         * gnat_ug.texi: Force a CVS commit by updating copyright.
35946         * gnat_ug_vxw.texi: Regenerate.
35947         * gnat_ug_wnt.texi: Regenerate.
35948         * gnat_ug_vms.texi: Regenerate.
35949         * gnat_ug_unx.texi: Regenerate.
35950
35951 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
35952
35953         * trans.c: Remove uses of "register" specifier in
35954         declarations of local variables.
35955
35956 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
35957
35958         * stamp-xgnatug: New stamp file.
35959         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
35960         (ada/doctools/xgnatug): Add $(build_exeext).
35961         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
35962         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
35963
35964 2003-12-17  Ed Falis  <falis@gnat.com>
35965
35966         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
35967         eliminate warning.
35968
35969         * a-exextr.adb: Add context clause for
35970         Ada.Exceptions.Last_Chance_Handler.
35971
35972 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
35973
35974         * cstand.adb (Create_Standard): Change the way how the declaration of
35975         the Duration type is created (making it the same way as it is for all
35976         the other standard types).
35977
35978 2003-12-17  Robert Dewar  <dewar@gnat.com>
35979
35980         * s-crtl.ads: Fix header format
35981         Change Pure to Preelaborate
35982
35983 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
35984
35985         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
35986         the expression type only if it is declared in the current unit.
35987
35988         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
35989         are universal and already analyzed, as can occur in constrained
35990         subcomponents that depend on discriminants, when one constraint is a
35991         subtype mark.
35992
35993         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
35994         type Any_Fixed is legal as the argument of a conversion, if only one
35995         fixed-point type is in context.
35996
35997 2003-12-17  GNAT Script  <nobody@gnat.com>
35998
35999         * Make-lang.in: Makefile automatically updated
36000
36001 2003-12-15  Robert Dewar  <dewar@gnat.com>
36002
36003         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
36004         sec stack size.
36005
36006 2003-12-15  Vincent Celier  <celier@gnat.com>
36007
36008         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
36009         (Gnatchop): Do not set failure status when reporting the number of
36010         warnings.
36011
36012 2003-12-15  Doug Rupp  <rupp@gnat.com>
36013
36014         * s-ctrl.ads: New file.
36015
36016         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
36017
36018         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
36019         (GNATBIND_OBJS): Add ada/s-crtl.o.
36020
36021         * Makefile.in [VMS]: Clean up ifeq rules.
36022
36023         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
36024         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
36025         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
36026         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
36027         s-tasdeb.adb: Update copyright.
36028         Import System.CRTL.
36029         Make minor modifications to use System.CRTL declared functions instead
36030         of importing locally.
36031
36032 2003-12-15  GNAT Script  <nobody@gnat.com>
36033
36034         * Make-lang.in: Makefile automatically updated
36035
36036 2003-12-11  Ed Falis  <falis@gnat.com>
36037
36038         * 5zinit.adb: Clean up.
36039
36040         * 5zintman.adb (Notify_Exception): replaced case statement with a call
36041         to __gnat_map_signal, imported from init.c to support
36042         signal -> exception mappings that depend on the vxWorks version.
36043
36044         * init.c:
36045         Created and exported __gnat_map_signal to support signal -> exception
36046         mapping that is dependent on the VxWorks version.
36047         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
36048
36049 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
36050
36051         * 5wosinte.ads: Link with -mthreads switch.
36052
36053 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
36054
36055         * init.c (__gnat_install_handler [NetBSD]): Set
36056         __gnat_handler_installed, as done on all other platforms.
36057         Remove duplicated code.
36058
36059 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
36060
36061         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
36062
36063 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
36064
36065         * sinfo.ads: Fix inconsistent example code in comment.
36066
36067 2003-12-11  Robert Dewar  <dewar@gnat.com>
36068
36069         * a-tiinau.adb: Add a couple of comments
36070
36071         * sem_ch3.adb: Minor reformatting
36072
36073         * sem_prag.adb:
36074         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
36075         Minor reformatting throughout
36076
36077 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
36078
36079         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
36080         bounds of a loop, create a separate block in order to generate proper
36081         cleanup actions to prevent memory leaks.
36082
36083         * sem_res.adb (Resolve_Call): After a call to
36084         Establish_Transient_Scope, the call may be rewritten and relocated, in
36085         which case no further processing is needed.
36086
36087         * sem_util.adb: (Wrong_Type): Refine previous fix.
36088          Fixes ACATS regressions.
36089
36090         PR ada/13353
36091         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
36092         be inlined.
36093
36094 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
36095
36096         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
36097         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
36098         obsolete files.
36099
36100         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
36101         (rts-zfp): Ditto.
36102
36103 2003-12-08  Robert Dewar  <dewar@gnat.com>
36104
36105         * 7sintman.adb: Minor reformatting
36106
36107         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
36108         standard linker options to get standard libraries linked. We now plan
36109         to provide dummy versions of these libraries to match the appropriate
36110         configurable run-time (e.g. if a library is not needed at all, provide
36111         a dummy empty library).
36112
36113         * targparm.ads: Configurable_Run_Time mode no longer affects linker
36114         options (-L parameters and standard libraries). What we plan to do is
36115         to provide dummy libraries where the libraries are not required.
36116
36117         * gnatbind.adb: Minor comment improvement
36118
36119 2003-12-08  Javier Miranda  <miranda@gnat.com>
36120
36121         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
36122         aggregate in the parent. Otherwise constants with limited aggregates
36123         are not supported. Add new formal to pass the component type (Ctype).
36124         It is required to call the corresponding IP subprogram in case of
36125         default initialized components.
36126         (Gen_Assign): In case of default-initialized component, generate a
36127         call to the IP subprogram associated with the component.
36128         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
36129         of aggregate with default initialized components.
36130         (Has_Default_Init_Comps): Improve implementation to recursively check
36131         all the present expressions.
36132
36133         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
36134         to indicate that the initialization call corresponds to a
36135         default-initialized component of an aggregate.
36136         In case of default initialized aggregate with tasks this parameter is
36137         used to generate a null string (this is just a workaround that must be
36138         improved later). In case of discriminants, this parameter is used to
36139         generate a selected component node that gives access to the discriminant
36140         value.
36141
36142         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
36143         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
36144         allocated aggregates with default-initialized components.
36145
36146         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
36147         the box notation is used in positional aggregates.
36148
36149 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
36150
36151         * lib.ads: Fix typo in comment
36152
36153 2003-12-08  Vincent Celier  <celier@gnat.com>
36154
36155         * prj.adb (Project_Empty): New component Unkept_Comments
36156         (Scan): Remove procedure; moved to Prj.Err.
36157
36158         * prj.ads (Project_Data): New Boolean component Unkept_Comments
36159         (Scan): Remove procedure; moved to Prj.Err.
36160
36161         * prj-dect.adb: Manage comments for the different declarations.
36162
36163         * prj-part.adb (With_Record): New component Node
36164         (Parse): New Boolean parameter Store_Comments, defaulted to False.
36165         Set the scanner to return ends of line and comments as tokens, if
36166         Store_Comments is True.
36167         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
36168         comments are associated with these nodes. Store the node IDs in the
36169         With_Records.
36170         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
36171         With_Records.
36172         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
36173         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
36174         current project. Call Tree.Restore afterwards. Set the various nodes
36175         for comment storage (Next_End, End_Of_Line, Previous_Line,
36176         Previous_End).
36177
36178         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
36179         defaulted to False.
36180
36181         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
36182         to False. When Truncated is True, truncate the string, never go to the
36183         next line.
36184         (Write_End_Of_Line_Comment): New procedure
36185         (Print): Process comments for nodes N_With_Clause,
36186         N_Package_Declaration, N_String_Type_Declaration,
36187         N_Attribute_Declaration, N_Typed_Variable_Declaration,
36188         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
36189         Process nodes N_Comment.
36190
36191         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
36192         without comments and there are some comments, set the flag
36193         Unkept_Comments to True.
36194         (Scan): If there are comments, set the flag Unkept_Comments to True and
36195         clear the comments.
36196         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
36197         (Next_End_Nodes: New table
36198         (Comment_Zones_Of): New function
36199         (Scan): New procedure; moved from Prj. Accumulate comments in the
36200         Comments table and set end of line comments, comments after, after end
36201         and before end.
36202         (Add_Comments): New procedure
36203         (Save, Restore, Seset_State): New procedures
36204         (There_Are_Unkept_Comments): New function
36205         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
36206         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
36207         procedures.
36208         (First_Comment_After, First_Comment_After_End): New functions
36209         (First_Comment_Before, First_Comment_Before_End): New functions
36210         (Next_Comment): New function
36211         (End_Of_Line_Comment, Follows_Empty_Line,
36212         Is_Followed_By_Empty_Line): New functions
36213         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
36214         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
36215         (Set_Next_Comment): New procedure
36216         (Default_Project_Node): Associate comment before if the node can store
36217         comments.
36218
36219         * scans.ads (Token_Type): New enumeration value Tok_Comment
36220         (Comment_Id): New global variable
36221
36222         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
36223         defaulted to False.
36224         (Scan): Store position of start of comment. If comments are tokens, set
36225         Comment_Id and set Token to Tok_Comment when scanning a comment.
36226         (Set_Comment_As_Token): New procedure
36227
36228         * sinput-p.adb: Update Copyright notice
36229         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
36230         that no longer exists.
36231
36232 2003-12-08  Javier Miranda  <miranda@gnat.com>
36233
36234         * sem_aggr.adb: Add dependence on Exp_Tss package
36235         Correct typo in comment
36236         (Resolve_Aggregate): In case of array aggregates set the estimated
36237         type of the aggregate before calling resolve. This is needed to know
36238         the name of the corresponding IP in case of limited array aggregates.
36239         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
36240         in case of default initialized array components.
36241
36242         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
36243         types. Required to give support to limited aggregates in generic
36244         formals.
36245
36246 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
36247
36248         * sem_ch3.adb (Check_Initialization): For legality purposes, an
36249         inlined body functions like an instantiation.
36250         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
36251         until bounds are analyzed, to diagnose premature use of type.
36252
36253         * sem_util.adb (Wrong_Type): Improve error message when the type of
36254         the expression is used prematurely.
36255
36256 2003-12-08  GNAT Script  <nobody@gnat.com>
36257
36258         * Make-lang.in: Makefile automatically updated
36259
36260 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
36261
36262         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
36263         they are automatically generated by Make-lang.in and cause nothing but
36264         maintenance troubles.
36265
36266 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
36267
36268         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
36269         version of this unit).
36270
36271 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
36272
36273         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
36274         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
36275         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
36276         the body of System.Interrupt_Management common to several targets.
36277         Update copyright notice when appropriate.
36278
36279         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
36280         constant.
36281
36282         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
36283         to ensure that the kernel fills in the interrupted context structure
36284         before calling a signal handler, which is necessary to be able to
36285         unwind past it. Update the copyright notice.
36286
36287 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
36288
36289         * a-elchha.ads: New file.
36290
36291         * a-elchha.adb: New default last chance handler. Contents taken from
36292         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
36293
36294         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
36295         is moved to a-elchha.adb to provide a target-independent default last
36296         chance handler.
36297
36298         * Makefile.rtl: Add a-elchha.o
36299
36300         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
36301
36302 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
36303
36304         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
36305         declared in an instance, do not inline the call if the instance is not
36306         frozen yet, to prevent order of elaboration problems.
36307
36308         * sem_prag.adb: Add comments for previous fix.
36309
36310 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
36311
36312         * g-table.adb: Use the right variable in Set_Item.
36313         Update copyright notice.
36314
36315 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
36316
36317         * Makefile.in: Remove unused rules.
36318
36319 2003-12-05  Vincent Celier  <celier@gnat.com>
36320
36321         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
36322         -nostdlib. Not needed here after all.
36323
36324 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
36325
36326         PR ada/11724
36327         * adaint.h, adaint.c, g-os_lib.ads:
36328         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
36329         on some platforms (including FreeBSD), it is a 64 bit value.
36330         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
36331
36332 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
36333
36334         * gnatvsn.ads (Library_Version): Now contain only the relevant
36335         version info.
36336         (Verbose_Library_Version): New constant.
36337
36338         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
36339         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
36340         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
36341
36342         * gnatlbr.adb: Clean up: replace Library_Version by
36343         Verbose_Library_Version.
36344
36345         * make.adb, lib-writ.adb, exp_attr.adb:
36346         Clean up: replace Library_Version by Verbose_Library_Version.
36347
36348         * 5lintman.adb: Removed.
36349
36350         * Makefile.in:
36351         Update and simplify computation of LIBRARY_VERSION.
36352         Fix computation of GSMATCH_VERSION.
36353         5lintman.adb is no longer used: replaced by 7sintman.adb.
36354
36355 2003-12-03  Robert Dewar  <dewar@gnat.com>
36356
36357         * exp_ch5.adb:
36358         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
36359         name. Modified to consider small non-bit-packed arrays as troublesome
36360         and in need of component-by-component assigment expansion.
36361
36362 2003-12-03  Vincent Celier  <celier@gnat.com>
36363
36364         * lang-specs.h: Process nostdlib as nostdinc
36365
36366         * back_end.adb: Update Copyright notice
36367         (Scan_Compiler_Arguments): Process -nostdlib directly.
36368
36369 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
36370
36371         * Makefile.in:
36372         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
36373         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
36374         included in HIE_NONE_TARGET_PAIRS.
36375
36376 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
36377
36378         * sem_attr.adb:
36379         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
36380         is legal in an instance, because legality is cheched in the template.
36381
36382         * sem_prag.adb:
36383         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
36384         appplied to an unchecked conversion of a formal parameter.
36385
36386         * sem_warn.adb:
36387         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
36388         variables.
36389
36390 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
36391
36392         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
36393         routines. The second one is new functionality to deal with backtracing
36394         through signal handlers.
36395         (unwind): Split into the two separate subroutines above.
36396         Update the documentation, and deal properly with sizeof (REG) different
36397         from sizeof (void*).
36398
36399 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
36400
36401         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
36402         so that the debugger can reliably access the value of the parameter,
36403         and therefore is able to display the exception name when an exception
36404         breakpoint is reached.
36405
36406 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
36407
36408         * fmap.adb: Fix typo in warning message.
36409
36410         * g-socket.ads, g-socket.adb: Make Free a visible instance of
36411         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
36412
36413 2003-12-01  Vincent Celier  <celier@gnat.com>
36414
36415         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
36416         ther is no Afile.
36417         (Build_Library): Get the switches only if Default_Switches is declared
36418         in package Binder.
36419
36420 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
36421
36422         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
36423         actuals that are indexed components, reanalyze actual to ensure that
36424         packed array references are properly expanded.
36425
36426         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
36427         attempted assignment to a discriminant.
36428
36429 2003-12-01  Robert Dewar  <dewar@gnat.com>
36430
36431         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
36432         reformatting.
36433
36434         * switch-c.adb: Minor reformatting of comments
36435
36436 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
36437
36438         * Makefile.in: Clean ups.
36439
36440 2003-12-01  GNAT Script  <nobody@gnat.com>
36441
36442         * Make-lang.in: Makefile automatically updated
36443
36444 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
36445
36446         * 5wsystem.ads: Disable zero cost exception, not ready yet.
36447
36448 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
36449
36450         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
36451         to force serialization.
36452
36453 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
36454
36455         * g-socket.ads, g-socket.adb:
36456         Clarify documentation of function Stream. Introduce a Free procedure
36457         to release the returned Stream once it becomes unused.
36458
36459         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
36460
36461 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
36462
36463         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
36464         since NT 4 cannot handle timeout values that are too large,
36465         e.g. DWORD'Last - 1.
36466
36467 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
36468
36469         * exp_ch4.adb:
36470         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
36471         in procedure calls and whose expansion must be deferred.
36472
36473         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
36474         is in exp_ch4.
36475
36476         * sem_ch3.adb:
36477         (Build_Derived_Array_Type): Create operator for unconstrained type
36478         if ancestor is unconstrained.
36479
36480 2003-11-26  Vincent Celier  <celier@gnat.com>
36481
36482         * make.adb (Project_Object_Directory): New global variable
36483         (Change_To_Object_Directory): New procedure
36484         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
36485         of Change_Dir directly. Do not change working directory to object
36486         directory of main project after each compilation.
36487         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
36488         directly.
36489         Change to object directory of main project before binding step.
36490         (Initialize): Initialize Project_Object_Directory to No_Project
36491
36492         * mlib-prj.adb:
36493         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
36494         binding a Stand-Alone Library.
36495
36496         * output.adb: Update Copyright notice
36497         (Write_Char): Output buffer when full
36498
36499 2003-11-26  Robert Dewar  <dewar@gnat.com>
36500
36501         * sem_ch13.adb: (Check_Size): Reset size if size is too small
36502
36503         * sem_ch13.ads:
36504         (Check_Size): Fix documentation to include bit-packed array case
36505
36506         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
36507
36508         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
36509
36510         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
36511
36512 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
36513
36514         PR ada/13142
36515         * utils.c (init_gigi_decls): Change name of built-in setjmp to
36516         __builtin_setjmp, since this is apparently needed by recent
36517         non Ada changes.
36518
36519 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36520
36521         * adadecode.c: Only include ctype.h if not IN_GCC.
36522         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
36523
36524 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
36525
36526         * Makefile.in:
36527         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
36528         signals and interrupts.
36529
36530         * 5zintman.ads: New File.
36531
36532         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
36533         add exception signals to the set of unmasked signals.
36534
36535         * 5ztaprop.adb:
36536         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
36537         between signals and interrupts.
36538         Add to Unblocked_Signal_Mask the set of signals that are in
36539         Keep_Unmasked.
36540
36541         * 7sinmaop.adb:
36542         Adding a check to see whether the Interrupt_ID we want to unmask is in
36543         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
36544         reason is that the index type of the Keep_Unmasked array is not always
36545         Interrupt_ID; it may be a subtype of Interrupt_ID.
36546
36547 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
36548
36549         * exp_util.adb:
36550         (Remove_Side_Effects): Condition constantness of object created for a
36551          an unchecked type conversion on the constantness of the expression
36552          to ensure the correct value for 'Constrained when passing components
36553          of view-converted class-wide objects.
36554
36555 2003-11-24  Robert Dewar  <dewar@gnat.com>
36556
36557         * par-load.adb (Load): Improve handling of misspelled and missing units
36558         Removes several cases of compilation abandoned messages
36559
36560         * lib.adb: (Remove_Unit): New procedure
36561
36562         * lib.ads: (Remove_Unit): New procedure
36563
36564         * lib-load.adb: Minor reformatting
36565
36566 2003-11-24  Vincent Celier  <celier@gnat.com>
36567
36568         * make.adb:
36569         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
36570         (Marking_Label): Label to mark processed source files. Incremented for
36571         each executable.
36572         (Gnatmake): Increase Marking_Labet for each executable
36573         (Is_Marked): Compare against marking label
36574         (Mark): Mark with marking label
36575
36576 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
36577
36578         * s-thread.ads:
36579         Move the declaration of the TSD for System.Threads to System.Soft_Links.
36580         Add some comments.
36581
36582         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
36583         (rts-cert): build a single relocatable object for the run-time lib.
36584         Fix perms.
36585
36586 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
36587
36588         * Make-lang.in:
36589         Use gnatls rather than gcc to obtain the location of GNAT RTL for
36590         crosstools build.
36591
36592 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
36593
36594         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
36595         can not use it as before (that is, as a variable) when dumping it into
36596         the tree file. Add a local variable to store the result of this
36597         function and to be used as the string to be written into the tree.
36598
36599         * scn.adb (Initialize_Scanner): Add comments explaining the recent
36600         changes.
36601
36602         * sinput.adb (Source_First, Source_Last): In case of
36603         Internal_Source_File, replace returning attributes of
36604         Internal_Source_Ptr (which is wrong) with returning attributes of
36605         Internal_Source.
36606
36607 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
36608
36609         * sem_ch3.adb:
36610         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
36611         used for implicit concatenation operators.
36612         Code cleanup.
36613
36614         * sem_elab.adb:
36615         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
36616         task bodies that are in the scope of a Suppress pragma.
36617         (Check_A Call): Use the flag to prevent spurious elaboration checks.
36618
36619         * sinfo.ads, sinfo.adb:
36620         New flag No_Elaboration_Check on function/procedure calls, to properly
36621         suppress checks on calls in task bodies that are within a local suppress
36622         pragma.
36623
36624         * exp_ch4.adb:
36625         (Expand_Concatenate_Other): Use the proper integer type for the
36626         expression for the upper bound, to avoid universal_integer computations
36627         when possible.
36628
36629 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
36630
36631         * .cvsignore: Delete.
36632
36633 2003-11-21  Andreas Schwab  <schwab@suse.de>
36634
36635         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
36636
36637 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
36638
36639         * 5wsystem.ads: Enable zero cost exception.
36640
36641 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
36642
36643         * 5ztiitho.adb: Remove an unreferenced variable.
36644
36645 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
36646
36647         * adaint.c: For FreeBSD, use mkstemp.
36648
36649 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
36650
36651         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
36652
36653 2003-11-21  Robert Dewar  <dewar@gnat.com>
36654
36655         * bld.adb: Remove useless USE of gnatvsn
36656
36657         * gnatchop.adb: Minor reformatting
36658         Clean up version handling to be more consistent
36659
36660         * gnatxref.adb: Minor reformatting
36661
36662         * gprcmd.adb: Minor reformatting
36663         Fix output of copyright to be more consistent with other tools
36664
36665 2003-11-21  Vincent Celier  <celier@gnat.com>
36666
36667         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
36668
36669 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
36670
36671         * atree.adb (Initialize): Add initializations for global variables
36672         used in New_Copy_Tree.
36673
36674         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
36675         Internal_Source_File as the actual).
36676         Put the set of statements creating Any_Character before the set of
36677         statements creating Any_Array to have Any_Character fully initialized
36678         when it is used in creating Any_Array.
36679
36680         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
36681         not call Scan in case if the actual is Internal_Source_File
36682         Add 2003 to copyright note.
36683
36684         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
36685         processing Internal_Source_File.
36686
36687         * types.ads: Add the constant Internal_Source_File representing the
36688         source buffer for artificial source-code-like strings created within
36689         the compiler (the definition of Source_File_Index is changed).
36690
36691 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
36692
36693         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
36694         56system.ads: New file, FreeBSD version.
36695
36696 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
36697
36698         * Make-lang.in (ada.extraclean): Delete.
36699
36700 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
36701
36702         * gnatmem.adb: Clean up verbose output.
36703
36704         * gprcmd.adb: Change copyright to FSF.
36705
36706 2003-11-19  Vincent Celier  <celier@gnat.com>
36707
36708         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
36709         and Version (ignored).
36710
36711         * symbols.ads: (Policy): New type
36712         (Initialize): New parameter Reference, Symbol_Policy and
36713         Library_Version.
36714         Remove parameter Force.
36715         Minor reformatting.
36716
36717         * snames.ads, snames.adbadb: New standard names
36718         Library_Reference_Symbol_File and Library_Symbol_Policy
36719
36720         * mlib-prj.adb:
36721         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
36722         project.
36723
36724         * mlib-tgt.adb:
36725         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
36726
36727         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
36728
36729         * prj.adb: (Project_Empty): New component Symbol_Data
36730
36731         * prj.ads: (Policy, Symbol_Record): New types
36732         (Project_Data): New component Symbol_Data
36733
36734         * prj-attr.adb:
36735         New attributes Library_Symbol_File, Library_Symbol_Policy and
36736         Library_Reference_Symbol_File.
36737
36738         * prj-nmsc.adb:
36739         (Ada_Check): When project is a Stand-Alone library project, process
36740         attribute Library_Symbol_File, Library_Symbol_Policy and
36741         Library_Reference_Symbol_File.
36742
36743         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36744         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
36745         5sml-tgt.adb (Build_Dynamic_Library): New parameter
36746         Symbol_Data (ignored).
36747
36748         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
36749         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
36750         functions Option_File_Name and Version_String. Set new options of
36751         gnatsym related to symbol file, symbol policy and reference symbol
36752         file.
36753
36754         * 5vsymbol.adb:
36755         Extensive modifications to take into account the reference symbol file,
36756         the symbol policy, the library version and to put in the symbol file the
36757         minor and major IDs.
36758
36759         * bld.adb (Process_Declarative_Items): Put second argument of
36760         gprcmd to_absolute between single quotes, to avoid problems with
36761         Windows.
36762
36763         * bld-io.adb: Update Copyright notice.
36764         (Flush): Remove last character of a line, if it is a back slash, to
36765         avoid make problems.
36766
36767         * gnatsym.adb:
36768         Implement new scheme with reference symbol file and symbol policy.
36769
36770         * g-os_lib.ads: (Is_Directory): Clarify comment
36771
36772 2003-11-19  Robert Dewar  <dewar@gnat.com>
36773
36774         * atree.adb: Move New_Copy_Tree global variables to head of package
36775
36776         * errout.adb: Minor reformatting
36777
36778 2003-11-19  Javier Miranda  <miranda@gnat.com>
36779
36780         * sem_ch4.adb: (Diagnose_Call): Improve error message.
36781         Add reference to Ada0Y (AI-50217)
36782
36783         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
36784         sem_util.adb: Add reference to AI-50217
36785
36786         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
36787
36788         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
36789
36790         * sem_aggr.adb: Complete documentation of AI-287 changes
36791
36792         * par-ch4.adb: Document previous changes.
36793
36794         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
36795         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
36796         Ada0Y (AI-50217)
36797
36798         * exp_aggr.adb: Add references to AI-287 in previous changes
36799
36800 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
36801
36802         * exp_ch6.adb:
36803         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
36804         in the rewriting is the result of an inlined call.
36805
36806         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
36807         parameter is a type conversion, use original node to construct the
36808         post-call assignment, because expression may have been rewritten, e.g.
36809         if it is a packed array.
36810
36811         * sem_attr.adb:
36812         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
36813         body, just as it is in an instance.
36814         Categorization routines
36815
36816         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
36817         Instantiate_Object): Set proper sloc reference for message on missing
36818         actual.
36819
36820 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
36821
36822         * Makefile.in: Add FreeBSD libgnat pairs.
36823
36824         * usage.adb: Fix typo in usage message.
36825
36826 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
36827
36828         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
36829         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
36830         pragma Thread_Body.
36831         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
36832
36833         * s-thread.adb: This file is now a dummy implementation of
36834         System.Thread.
36835
36836 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
36837
36838         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
36839
36840 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
36841
36842         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36843         instanciation references in the parent type description.
36844
36845 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36846
36847         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
36848
36849         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
36850         TYPE_PRECISION directly from esize.
36851
36852 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
36853
36854         * cstreams.c:
36855         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
36856
36857         * init.c: Initialization routines for FreeBSD
36858
36859         * link.c: Link info for FreeBSD
36860
36861         * sysdep.c: Add the case of FreeBSD
36862
36863 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
36864
36865         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
36866         already called in System.Threads.
36867
36868         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
36869         environment task, as it has been moved to System.Threads.Initialization.
36870
36871 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
36872
36873         * adaint.c (__gnatlib_install_locks): Only reference
36874         __gnat_install_locks on VMS, since other platforms can avoid using
36875         --enable-threads=gnat
36876
36877 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36878
36879         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
36880
36881         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
36882         TYPE_PACKED_ARRAY_TYPE_P.
36883         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
36884
36885         Part of PR ada/12806
36886         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
36887         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
36888
36889 2003-11-17  Vincent Celier  <celier@gnat.com>
36890
36891         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
36892         to False.
36893         Do not set exit status to Failure when Warning is True.
36894         (Gnatchop): Make errors "no compilation units found" and
36895         "no source files written" warnings only.
36896
36897         * make.adb (Gnatmake): When using a project file, set
36898         Look_In_Primary_Dir to False.
36899         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
36900         and Local_Configuration_Pragmas in the project where they are declared
36901         not an extending project which might have inherited them.
36902
36903         * osint.adb (Locate_File): If Name is already an absolute path, do not
36904         look for a directory.
36905
36906         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
36907         -gnats (Check_Syntax) is used, issue only a warning, not an error.
36908
36909         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
36910         in objects of type Variable_Value.
36911
36912         * prj.ads: (Variable_Value): New component Project
36913
36914         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
36915         is in a project extended by Project.
36916
36917         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
36918         Project of Variable_Values to this new parameter value.
36919         (Expression): Set component Project of Variable_Values.
36920         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
36921         Set the component Project in array elements.
36922
36923 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
36924
36925         * errout.adb: (Initialize): Add initialization for error nodes.
36926
36927         * sem_ch12.adb (Initialize): Add missing initializations for
36928         Exchanged_Views and Hidden_Entities.
36929
36930 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
36931
36932         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
36933         already instantiated tree for use in subsequent inlining.
36934         (Analyze_Associations, Instantiate_Formal_Subprogram,
36935         Instantiate_Object): improve error message for mismatch in
36936         instantiations.
36937
36938         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
36939         instantiations of subprograms declared in instances.
36940
36941 2003-11-17  Javier Miranda  <miranda@gnat.com>
36942
36943         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
36944         executed only under the Extensions_Allowed flag.
36945
36946 2003-11-17  Robert Dewar  <dewar@gnat.com>
36947
36948         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
36949         zeroes suppressed.
36950         (Address_Image): Fix bug of returning 0x instead of 0x0
36951         Minor reformatting (function specs).
36952
36953         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
36954         (missed case of 33-63)
36955
36956         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
36957
36958         * s-thread.adb: Add comments for pragma Restriction
36959
36960         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
36961         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
36962
36963 2003-11-17  Ed Falis  <falis@gnat.com>
36964
36965         * s-thread.adb: Added No_Tasking restriction for this implementation.
36966
36967 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
36968
36969         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36970         instanciation references in the parent type description.
36971
36972 2003-11-17  GNAT Script  <nobody@gnat.com>
36973
36974         * Make-lang.in: Makefile automatically updated
36975
36976 2003-11-16  Jason Merrill  <jason@redhat.com>
36977
36978         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
36979         and TAGS files that include them for each front end.
36980
36981 2003-11-14  Andreas Jaeger  <aj@suse.de>
36982
36983         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
36984         is the canonical version.
36985         * misc.c (gnat_handle_option): Likewise.
36986
36987         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
36988
36989         * 5nsystem.ads: New file for x86_64-linux-gnu.
36990
36991 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
36992
36993         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
36994
36995         * comperr.adb: Fix logic in previous change.
36996
36997 2003-11-13  Vincent Celier  <celier@gnat.com>
36998
36999         * 5bml-tgt.adb (Build_Dynamic_Library): Use
37000         Osint.Include_Dir_Default_Prefix instead of
37001         Sdefault.Include_Dir_Default_Name.
37002
37003         * gnatlbr.adb: Update Copyright notice
37004         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
37005         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
37006         instead of Sdefault.Object_Dir_Default_Name
37007
37008         * gnatlink.adb:
37009         (Process_Binder_File): Never suppress the option following -Xlinker
37010
37011         * mdll-utl.adb:
37012         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
37013         Sdefault.Object_Dir_Default_Name.
37014
37015         * osint.ads, osint.adb:
37016         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
37017         Minor reformatting.
37018
37019         * vms_conv.ads: Minor reformating
37020         Remove GNAT STANDARD and GNAT PSTA
37021
37022         * vms_conv.adb:
37023         Allow GNAT MAKE to have several files on the command line.
37024         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
37025         Sdefault.Object_Dir_Default_Name.
37026         Minor Reformating
37027         Remove data for GNAT STANDARD
37028
37029         * vms_data.ads:
37030         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
37031         Remove data for GNAT STANDARD
37032         Remove options and documentation for -gnatwb/-gnatwB: these warning
37033         options no longer exist.
37034
37035 2003-11-13  Ed Falis  <falis@gnat.com>
37036
37037         * 5zthrini.adb: (Init_RTS): Made visible
37038
37039         * 5zthrini.adb:
37040         (Register): Removed unnecessary call to taskVarGet that checked whether
37041          an ATSD was already set as a task var for the argument thread.
37042
37043         * s-thread.adb:
37044         Updated comment to reflect that this is a VxWorks version
37045         Added context clause for System.Threads.Initialization
37046         Added call to System.Threads.Initialization.Init_RTS
37047
37048 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
37049
37050         * 5zthrini.adb:
37051         (Init_RTS): New procedure, for the initialization of the run-time lib.
37052
37053         * s-thread.adb:
37054         Remove dependancy on System.Init, so that this file can be used in the
37055         AE653 sequential run-time lib.
37056
37057 2003-11-13  Robert Dewar  <dewar@gnat.com>
37058
37059         * bindgen.adb: Minor reformatting
37060
37061 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
37062
37063         * checks.adb:
37064         (Apply_Discriminant_Check): Do no apply check if target type is derived
37065         from source type with no applicable constraint.
37066
37067         * lib-writ.adb:
37068         (Ensure_System_Dependency): Do not apply the style checks that may have
37069         been specified for the main unit.
37070
37071         * sem_ch8.adb:
37072         (Find_Selected_Component): Further improvement in error message, with
37073         RM reference.
37074
37075         * sem_res.adb:
37076         (Resolve): Handle properly the case of an illegal overloaded protected
37077         procedure.
37078
37079 2003-11-13  Javier Miranda  <miranda@gnat.com>
37080
37081         * exp_aggr.adb:
37082         (Has_Default_Init_Comps): New function to check the presence of
37083         default initialization in an aggregate.
37084         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
37085         extension aggregate of a limited record. In addition, a new formal
37086         was added to do not initialize the record controller (if any) during
37087         this recursive expansion of ancestors.
37088         (Init_Controller): Add support for limited record components.
37089         (Expand_Record_Aggregate): In case of default initialized components
37090         convert the aggregate into a set of assignments.
37091
37092         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
37093         describing the new syntax.
37094         Nothing else needed to be done because this subprogram delegates part of
37095         its work to P_Precord_Or_Array_Component_Association.
37096         (P_Record_Or_Array_Component_Association): Give support to the new
37097         syntax for default initialization of components.
37098
37099         * sem_aggr.adb:
37100         (Resolve_Aggregate): Relax the strictness of the frontend in case of
37101         limited aggregates.
37102         (Resolve_Record_Aggregate): Give support to default initialized
37103         components.
37104         (Get_Value): In case of default initialized components, duplicate
37105         the corresponding default expression (from the record type
37106         declaration). In case of default initialization in the *others*
37107         choice, do not check that all components have the same type.
37108         (Resolve_Extension_Aggregate): Give support to limited extension
37109         aggregates.
37110
37111         * sem_ch3.adb:
37112         (Check_Initialization): Relax the strictness of the front-end in case
37113         of aggregate and extension aggregates. This test is now done in
37114         Get_Value in a per-component manner.
37115
37116         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
37117         expression corresponds to a limited aggregate. This test is now done
37118         in Get_Value.
37119
37120         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
37121         Box_Present flag.
37122
37123         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
37124         present in an N_Component_Association node
37125
37126 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
37127
37128         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
37129         type-conformant entry only if they are homographs.
37130
37131 2003-11-13  GNAT Script  <nobody@gnat.com>
37132
37133         * Make-lang.in: Makefile automatically updated
37134
37135 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37136
37137         * adadecode.c: Use <> form of include for ctype.h.
37138         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
37139
37140 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37141
37142         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
37143         Works around PR middle-end/6552.
37144
37145 2003-11-10  Ed Falis  <falis@gnat.com>
37146
37147         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
37148
37149         * 5zinit.adb: (Install_Handler): Moved back to spec
37150         (Install_Signal_Handlers): Deleted
37151
37152         * 5zthrini.adb: Added context clause for System.Storage_Elements
37153         (Register): Only handles creation of taskVar; initialization moved to
37154         Thread_Body_Enter.
37155         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
37156         Added declaration of environment task secondary stack and
37157         initialization.
37158
37159         * s-thread.adb: Implement bodies for thread body processing
37160
37161         * s-thread.ads:
37162         Added comment identifying supported targets for pragma Thread_Body.
37163
37164 2003-11-10  Pascal Obry  <obry@gnat.com>
37165
37166         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
37167         GNAT_MAX_PATH_LEN.
37168
37169         * s-fileio.adb:
37170         (Open): Properly check for string length before copying into the buffer.
37171         Raises Name_Error if buffer is too small. Note that this was a potential
37172         buffer overflow.
37173
37174 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
37175
37176         * bindgen.adb, comperr.adb: Code clean ups.
37177         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
37178
37179 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
37180
37181         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
37182
37183 2003-11-10  Vincent Celier  <celier@gnat.com>
37184
37185         * gprcmd.adb:
37186         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
37187         installation.
37188
37189         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
37190
37191         * prj.adb: (Project_Empty): Add new boolean component Virtual
37192
37193         * prj.ads: (Virtual_Prefix): New constant string
37194         (Project_Data): New boolean component Virtual
37195
37196         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
37197         a library project is extended by a virtual extending project.
37198
37199         * prj-part.adb:
37200         Modifications throughout to implement extending-all project, including:
37201         (Virtual_Hash, Processed_Hash): New hash tables
37202         (Create_Virtual_Extending_Project): New procedure
37203         (Look_For_Virtual_Projects_For): New procedure
37204
37205         * prj-proc.adb:
37206         (Process): After checking the projects, if main project is an
37207         extending-all project, set the object directory of all virtual extending
37208         project to the object directory of the main project.
37209         Adjust error message when a virtual extending project has the same
37210         object directory as an project being extended.
37211         (Recursive_Process): If name starts with the virtual prefix, set Virtual
37212         to True in the project data.
37213
37214         * prj-tree.adb:
37215         (Default_Project_Node): Add new boolean component Extending_All
37216         (Is_Extending_All): New function
37217         (Set_Is_Extending_All): New procedure
37218
37219         * prj-tree.ads: (Is_Extending_All): New function
37220         (Set_Is_Extending_All): New procedure
37221         (Project_Node_Record): New boolean component Extending_All
37222
37223         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
37224
37225         * vms_data.ads:
37226         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
37227
37228         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
37229         "gprcmd prefix" to define it.
37230
37231 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
37232
37233         * einfo.ads: Fix a typo and remove an extraneous word in comments.
37234
37235         * lib-load.adb:
37236         (Create_Dummy_Package_Unit): Set the scope of the entity for the
37237         created dummy package to Standard_Standard, not to itself, to
37238         defend other parts of the front-end against encoutering a cycle in
37239         the scope chain.
37240
37241         * sem_ch10.adb:
37242         (Analyze_With_Clause): When setting the entities for the successive
37243         N_Expanded_Names that constitute the name of a child unit, do not
37244         attempt to go further than Standard_Standard in the chain of scopes.
37245         This case arises from the placeholder units created by
37246         Create_Dummy_Package_Unit in the case of a with_clause for a
37247         nonexistent child unit.
37248
37249 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
37250
37251         * exp_ch6.adb:
37252         (Expand_Thread_Body): Place subprogram on scope stack, so that new
37253         declarations are given the proper scope.
37254
37255         * sem_ch13.adb:
37256         (Check_Expr_Constants): Reject an expression that contains a constant
37257         created during expansion, and that appears after the object to which
37258         the address clause applies.
37259
37260         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
37261         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
37262         that uses 'Range of a function call with controlled components, so
37263         that the function result can be finalized before starting the loop.
37264
37265         * sem_ch8.adb:
37266         (Find_Selected_Component): Improve error message when prefix is
37267         an implicit dereference of an incomplete type.
37268
37269 2003-11-10  Robert Dewar  <dewar@gnat.com>
37270
37271         * opt.ads: New Print_Standard flag for -gnatS switch
37272
37273         * sem_ch13.adb: Remove some additional checks for unaligned arrays
37274
37275         * cstand.adb (Create_Standard): Print out package standard if -gnatS
37276         switch set
37277
37278         * debug.adb: Update doc for -gnatds to discuss relationship with new
37279         -gnatS flag
37280
37281         * sinfo.adb: Add new field Entity_Or_Associated_Node
37282
37283         * sinfo.ads: Add new field Entity_Or_Associated_Node
37284         Update documentation for Associated_Node and Entity fields to clarify
37285         relationship and usage.
37286
37287         * sprint.adb:
37288         (Write_Id): Properly process Associated_Node field in generic template
37289
37290         * switch-c.adb:
37291         Recognize new -gnatS switch for printing package Standard
37292         This replaces gnatpsta
37293
37294         * usage.adb:
37295         Add line for  new -gnatS switch for printing package Standard
37296         This replaces gnatpsta
37297
37298 2003-11-10  Andreas Jaeger  <aj@suse.de>
37299
37300         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
37301         integer.
37302
37303 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37304
37305         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
37306         by gnat1.
37307
37308 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37309
37310         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
37311         no longer needed.
37312
37313         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
37314
37315         * sysdep.c: Add handling of cygwin.
37316
37317 2003-11-10  GNAT Script  <nobody@gnat.com>
37318
37319         * Make-lang.in: Makefile automatically updated
37320
37321 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
37322
37323         PR 12950
37324         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
37325         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
37326         Replace GNAT_ROOT by GCC_ROOT.
37327
37328         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
37329
37330 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
37331
37332         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
37333         and update for changed meaning of GET_MODE_BITSIZE.
37334
37335 2003-11-04  Doug Rupp  <rupp@gnat.com>
37336
37337         * sysdep.c: Problem discovered during IA64 VMS port.
37338         [VMS] #include <unixio.h> to get proper prototypes.
37339
37340         * adaint.c:
37341         Issues discovered/problems fixed during IA64 VMS port.
37342         [VMS] #define _POSIX_EXIT for proper semantics.
37343         [VMS] #include <unixio.h> for proper prototypes.
37344         [VMS] (fork): #define IA64 version.
37345         (__gnat_os_exit): Remove unnecessary VMS specific code.
37346
37347 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37348
37349         Part of PR ada/12806
37350         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
37351         tree, not integer.
37352
37353         * decl.c:
37354         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
37355         not integer.
37356
37357         * targtyps.c, decl.c, misc.c,
37358         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
37359         routines to work around change in FP sizing semantics in GCC.
37360
37361         * utils.c:
37362         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
37363
37364         * gigi.h: (enumerate_modes): New function.
37365
37366         * Make-lang.in: (ada/misc.o): Add real.h.
37367
37368         * misc.c: (enumerate_modes): New function.
37369
37370 2003-11-04  Robert Dewar  <dewar@gnat.com>
37371
37372         * 3vtrasym.adb: Minor reformatting
37373         Use terminology encoded/decoded name, rather than C++ specific notion
37374         of mangling (this is the terminology used throughout GNAT).
37375
37376         * einfo.h: Regenerated
37377
37378         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
37379
37380         * exp_ch6.adb:
37381         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
37382
37383         * par-prag.adb: Add dummy entry for Thread_Body pragma
37384
37385         * rtsfind.ads:
37386         Add entries for System.Threads entities for thread body processing
37387
37388         * sem_attr.adb:
37389         (Analyze_Pragma, Access attributes): Check these are not applied to a
37390         thread body, since this is not permitted
37391
37392         * sem_prag.adb: Add processing for Thread_Body pragma.
37393         Minor comment fix.
37394
37395         * sem_res.adb:
37396         (Resolve_Call): Check for incorrect attempt to call a thread body
37397          procedure with a direct call.
37398
37399         * snames.ads, snames.adb: Add entry for Thread_Body pragma
37400         Add names associated with thread body expansion
37401
37402         * snames.h: Add entry for Thread_Body pragma
37403
37404         * s-thread.adb: Add entries for thread body processing
37405         These are dummy bodies so far
37406
37407         * s-thread.ads: Add documentation on thread body handling.
37408         Add entries for thread body processing.
37409
37410 2003-11-04  Javier Miranda  <miranda@gnat.com>
37411
37412         * sem_ch10.adb:
37413         (Build_Limited_Views): Return after posting an error in case of limited
37414         with_clause on subprograms, generics, instances or generic renamings
37415         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
37416         on subprograms, generics, instances or generic renamings
37417
37418 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
37419
37420         * raise.c (setup_to_install): Correct mistake in last revision; two
37421         arguments out of order.
37422
37423         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
37424         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
37425         notice, missed in previous change.
37426         Remove trailing blanks and other style errors introduced in previous
37427         change.
37428
37429 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
37430
37431         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
37432         rid of the wrapper for a LJM type, ensuring we don't do that if the
37433         field is addressable.  This avoids potential low level type view
37434         mismatches later on, for instance in a by-reference argument passing
37435         process.
37436
37437 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37438
37439         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
37440         aligned at byte boundary.
37441
37442 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
37443
37444         * decl.c (components_to_record): Do not delete the empty variants from
37445         the end of the union type.
37446
37447 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
37448
37449         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
37450         operation for a derived type, an explicit declaration may use a local
37451         subtype of Boolean.
37452
37453 2003-11-04  Vincent Celier  <celier@gnat.com>
37454
37455         * make.adb (Gnatmake): Allow main sources on the command line with a
37456         library project when it is only for compilation (no binding or
37457         linking).
37458
37459 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37460
37461         * Makefile.in: Remove many duplicate variables.
37462
37463 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
37464
37465         * Make-lang.in (dvi): Move targets to $(docobjdir).
37466         (gnat_ug_vms.dvi): Simplify rule and adjust target.
37467         (gnat_ug_wnt.dvi): Likewise.
37468         (gnat_ug_unx.dvi): Likewise.
37469         (gnat_ug_vxw.dvi): Likewise.
37470         (gnat_rm.dvi): Likewise.
37471         (gnat-style.dvi): Likewise.
37472
37473 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
37474
37475         * gigi.h: Missed commit from update for C90.
37476
37477 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
37478
37479         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
37480
37481 2003-10-31  Andreas Schwab  <schwab@suse.de>
37482
37483         * raise.c (get_action_description_for): Fix typo in last change.
37484
37485 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
37486
37487         PR ada/12761
37488         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
37489         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
37490
37491 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
37492
37493         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
37494         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
37495         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
37496         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
37497         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
37498
37499 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
37500
37501         * 3vtrasym.adb:
37502         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
37503         numbers when symbol name is too long.
37504
37505 2003-10-30  Ed Falis  <falis@gnat.com>
37506
37507         * g-signal.ads, g-signal.adb: New files
37508
37509         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
37510
37511         * Makefile.rtl: Introduce GNAT.Signals
37512
37513 2003-10-30  Robert Dewar  <dewar@gnat.com>
37514
37515         * freeze.adb: Minor reformatting
37516
37517         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
37518
37519         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
37520         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
37521         New handling of Id_Check parameter to improve recognition of keywords
37522         used as identifiers.
37523         Update copyright notice to include 2003
37524
37525 2003-10-29  Robert Dewar  <dewar@gnat.com>
37526
37527         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
37528         sem_ch10.adb: Minor reformatting
37529
37530         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
37531         (Expand_Assign_Record): Test right hand side for bit unaligned as well
37532
37533 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
37534
37535         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
37536         Support for TBK$SYMBOLIZE-based symbolic traceback.
37537
37538 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
37539
37540         * exp_disp.adb:
37541         Revert previous change, that did not work well when pragma No_Run_Time
37542         was used in conjunction with a run-time other than ZFP.
37543
37544 2003-10-29  Vincent Celier  <celier@gnat.com>
37545
37546         * make.adb:
37547         (Gnatmake): When there are no Ada mains in attribute Main, disable the
37548          bind and link steps only is switch -z is not used.
37549
37550 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
37551
37552         * Makefile.generic: Remove duplicated setting of CC.
37553
37554         * Makefile.prolog: Set CC to gcc by default, to override make's
37555         default (cc).
37556
37557         * einfo.h: Regenerated.
37558
37559 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
37560
37561         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
37562         current body, after compiling subunit.
37563
37564         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
37565         when in deleted code, because gigi needs properly ordered freeze
37566         actions to annotate types.
37567
37568         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
37569         prevent the premature freezing of record type that contains
37570         subcomponents with a private type that does not yet have a completion.
37571
37572 2003-10-29  Javier Miranda  <miranda@gnat.com>
37573
37574         * sem_ch12.adb:
37575         (Analyze_Package_Instantiation): Check that instances can not be used in
37576         limited with_clauses.
37577
37578         * sem_ch8.adb:
37579         (Analyze_Package_Renaming): Check that limited withed packages cannot
37580         be renamed. Improve text on error messages related to limited
37581         with_clauses.
37582
37583         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
37584
37585         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
37586         Update copyright notice.
37587
37588         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
37589         (Install_Limited_Context_Clauses): New subprogram that isolates all the
37590         checks required for limited context_clauses and installs the limited
37591         view.
37592         (Install_Limited_Withed_Unit): Complete its documentation.
37593         (Analyze_Context): Check that limited with_clauses are only allowed in
37594         package specs.
37595         (Install_Context): Call Install_Limited_Context_Clauses after the
37596         parents have been installed.
37597         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
37598         package as 'From_With_Type'; this mark indicates that the limited view
37599         is installed. Used to check bad usages of limited with_clauses.
37600         (Build_Limited_Views): Do not add shadow entities to the scope's list
37601         of entities. Do not add real entities to the Non_Limited_Views chain.
37602         Improve error notification.
37603         (Remove_Context_Clauses): Remove context clauses in two phases:
37604         limited views first and regular views later (to maintain the
37605         stack model).
37606         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
37607         its visible entities.
37608
37609 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
37610
37611         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
37612         with any type that Is_Fixed_Point_Type.
37613
37614         * sinfo.ads: Fix documentation for Associated_Node attribute.
37615
37616 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
37617
37618         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
37619         both '-gnatc' and '-gnatt' are specified.
37620
37621         * atree.adb (Initialize): Add initialization for Node_Count (set to
37622         zero).
37623
37624 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37625
37626         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
37627         do not consider as Pure.
37628
37629         Part of implementation of function-at-a-time:
37630
37631         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
37632         (tree_transform): Add new argument to build_component_ref.
37633         (tree_transform, case N_Assignment_Statement): Make and return an
37634         EXPR_STMT.
37635         (tree_transform): If result IS_STMT, set flags and return it.
37636         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37637
37638         * utils2.c (build_simple_component_ref, build_component_ref): Add new
37639         arg, NO_FOLD_P.
37640         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
37641         (build_allocator): Likewise.
37642
37643         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
37644         Add new arg to build_component_ref.
37645         (maybe_unconstrained_array, unchecked_convert): Likewise.
37646
37647         * ada-tree.def (EXPR_STMT): New code.
37648
37649         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
37650
37651         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
37652         build_component_ref calls.
37653
37654         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
37655
37656         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37657         (build_component_ref): Add new argument, NO_FOLD_P.
37658
37659 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
37660
37661         * Makefile.generic: Add missing substitution on object_deps handling.
37662
37663         PR ada/5909
37664         * Make-lang.in (check-ada): Enable ACATS test suite.
37665
37666 2003-10-27  Robert Dewar  <dewar@gnat.com>
37667
37668         * exp_ch3.adb:
37669         (Freeze_Array_Type): We do not need an initialization routine for types
37670         derived from String or Wide_String. They should be treated the same
37671         as String and Wide_String themselves. This caused problems with the
37672         use of Initialize_Scalars.
37673
37674         * exp_ch5.adb:
37675         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
37676         composites. This allows use of component clauses that are not byte
37677         aligned.
37678
37679         * sem_prag.adb:
37680         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
37681         is an attempt to pack an array of atomic objects.
37682
37683         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
37684
37685 2003-10-27  Pascal Obry  <obry@gnat.com>
37686
37687         * g-dirope.adb:
37688         (Basename): Check for drive letters in a pathname only on DOS based OS.
37689
37690 2003-10-27  Vincent Celier  <celier@gnat.com>
37691
37692         * make.adb:
37693         (Gnatmake): When unable to change dir to the object dir, display the
37694         content of the parent dir of the obj dir, to try to understand why this
37695         happens.
37696
37697 2003-10-27  GNAT Script  <nobody@gnat.com>
37698
37699         * Make-lang.in: Makefile automatically updated
37700
37701 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
37702
37703         * sem_ch12.adb:
37704         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
37705         should not be done in Save/Restore_Scope_Stack, because it is performed
37706         locally.
37707
37708         * sem_ch8.adb:
37709         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37710         whether use clauses should be removed/restored.
37711
37712         * sem_ch8.ads:
37713         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37714         whether use clauses should be removed/restored.
37715
37716 2003-10-26  Andreas Jaeger  <aj@suse.de>
37717
37718         * Makefile.in: Remove duplicated lines.
37719
37720 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
37721
37722         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
37723         minimize the differences with ACT tree.
37724
37725         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
37726         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
37727         Gnatvsn.Gnat_Static_Version_String to reduce differences between
37728         ACT and FSF trees.
37729
37730 2003-10-24  Pascal Obry  <obry@gnat.com>
37731
37732         PR ada/12014
37733         * adadecode.c (ostrcpy): New function.
37734         (__gnat_decode): Use ostrcpy of strcpy.
37735         (has_prefix): Set first parameter a const.
37736         (has_suffix): Set first parameter a const.
37737         Update copyright notice. Fix source name in header.
37738         Removes a trailing space.
37739
37740 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
37741
37742         * exp_disp.adb:
37743         Remove the test against being in No_Run_Time_Mode before generating a
37744         call to Register_Tag. It is redundant with the test against the
37745         availability of the function Register_Tag.
37746
37747 2003-10-24  Vincent Celier  <celier@gnat.com>
37748
37749         * g-catiio.adb: (Month_Name): Correct spelling of February
37750
37751         * make.adb: (Mains): New package
37752         (Initialize): Call Mains.Delete
37753         (Gnatmake): Check that each main on the command line is a source of a
37754         project file and, if there are several mains, each of them is a source
37755         of the same project file.
37756         (Gnatmake): When a foreign language is specified in attribute Languages,
37757         no main is specified on the command line and attribute Mains is not
37758         empty, only build the Ada main. If there is no Ada main, just compile
37759         the Ada sources and their closure.
37760         (Gnatmake): If a main is specified on the command line with directory
37761         information, check that the source exists and, if it does, that the path
37762         is the actual path of a source of a project.
37763
37764         * prj-env.adb:
37765         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
37766         Full_Path is True, return the full path instead of the simple file name.
37767         (Project_Of): New function
37768
37769         * prj-env.ads:
37770         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
37771         defaulted to False.
37772         (Project_Of): New function
37773
37774 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
37775
37776         * Makefile.generic:
37777         Ensure objects of main project are always checked and rebuilt if needed.
37778         Set CC to gcc by default.
37779         Prepare new handling of link by creating a global archive (not activated
37780         yet).
37781
37782         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37783         stringt.h: Update copyright notice. Remove trailing blanks.
37784         Fix source name in header.
37785
37786 2003-10-24  Robert Dewar  <dewar@gnat.com>
37787
37788         * sem_ch12.adb: Minor reformatting
37789
37790         * sem_ch3.adb:
37791         Minor reformatting (including new function return style throughout)
37792
37793         * sem_ch3.ads:
37794         Minor reformatting (including new function return style throughout)
37795
37796 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
37797
37798         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37799         stringt.h: Update copyright notice. Remove trailing blanks.
37800         Fix source name in header.
37801
37802 2003-10-24  GNAT Script  <nobody@gnat.com>
37803
37804         * Make-lang.in: Makefile automatically updated
37805
37806 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
37807
37808         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
37809         stringt.h: Convert to ISO C90 declarations and definitions.
37810
37811 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
37812
37813         PR ada/11978
37814         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
37815         External_Tag attribute definition clauses.
37816
37817 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
37818
37819         PR ada/7613
37820         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
37821         child unit, generate a fully qualified name to avoid spurious errors
37822         when the context contains renamings of different child units with
37823         the same simple name.
37824
37825         * exp_dbug.ads: Add documentation on name qualification for renamings
37826         of child units.
37827
37828 2003-10-23  Robert Dewar  <dewar@gnat.com>
37829
37830         * g-regpat.ads, g-regpat.adb: Minor reformatting
37831
37832 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
37833
37834         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
37835
37836 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
37837
37838         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
37839         Machine call.
37840
37841         * urealp.h: (Machine): Update to proper definition.
37842
37843 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
37844
37845         * init.c, adaint.c: Minor reformatting.
37846
37847 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
37848
37849         * adaint.c (w32_epoch_offset): Define static const at file level.
37850         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
37851         rather than t_create, t_access in call to GetFileTime. Use union
37852         to convert between FILETIME and  unsigned long long.
37853         (__gnat_file_time_name): Test for invalid file handle.
37854         (__gnat_set_filetime_name): Support win32 targets using
37855         w32api SetFileTime.
37856
37857 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
37858
37859         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
37860
37861         * ctrl_c.c (__gnat_int_handler): Remove declaration.
37862
37863         * decl.c (creat_concat_name):  Const-ify prefix.
37864
37865         * adaint.c: Include ctype.h if __MINGW32__.
37866         (__gnat_readlink): Mark arguments as possibly unused.
37867         (__gnat_symlink): Likewise.
37868         (__gnat_is_symbolic_link): Likewise.
37869         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
37870         declaration
37871         (__gnat_file_time_name): Don't declare struct stat statbuf when
37872         not needed.
37873         (__gnat_is_absolute_path): Add parenthesis around condition of
37874         'if' statement to avoid warning.
37875         (__gnat_plist_init): Specify void as parameter.
37876         (plist_enter): Likewise.
37877         (plist_leave): Likewise.
37878         (remove_handle): Make static. Initialize prev.
37879
37880 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
37881
37882         PR ada/10110
37883         * Makefile.in: Disable build of gnatpsta.
37884         * cstreams.c (__gnat_full_name): Minor improvements and clean up
37885         of previous change.
37886
37887 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37888
37889         * tracebak.c (MAX): Avoid redefinition warning.
37890
37891         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
37892         Change msg to const char *.
37893         (__gnat_install_handler): Remove ss, unused.
37894         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
37895         to const char *.
37896         * cstreams.c (__gnat_full_name): Declare p only when used.
37897         (__gnat_full_name) [sgi] Return buffer.
37898
37899 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
37900
37901         * mingw32.h: New file.
37902         * gnat_wrapper.adb: New file.
37903
37904 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
37905
37906         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
37907         string match a pre compiled regular expression (the corresponding
37908         version of the function working on a raw regular expression)
37909         Fix typos in various comments
37910         Update copyright notice in spec
37911
37912 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
37913
37914         * exp_ch3.adb:
37915         (Component_Needs_Simple_Initialization): Return False when the type is a
37916         packed bit array. Revise spec comments to document this case.
37917
37918         * exp_prag.adb:
37919         (Expand_Pragma_Import): Set any expression on the imported object to
37920         empty to avoid initializing imported objects (in particular this
37921         covers the case of zero-initialization of bit arrays).
37922         Update copyright notice.
37923
37924 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
37925
37926         * sem_ch12.adb:
37927         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
37928         a subunit is missing.
37929         (Instantiate_Subprogram_Body): If body of function is missing, set type
37930         of return expression explicitly in dummy body, to prevent cascaded
37931         errors when a subunit is missing.
37932         Fixes PR 5677.
37933
37934         * sem_ch3.adb:
37935         (Access_Subprogram_Declaration): Verify that return type is valid.
37936         Fixes PR 8693.
37937
37938         * sem_elab.adb:
37939         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
37940         generic.
37941         Fixes PR 12318.
37942
37943         * sem_util.adb:
37944         (Corresponding_Discriminant): If the scope of the discriminant is a
37945         private type without discriminant, use its full view.
37946         Fixes PR 8247.
37947
37948 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
37949
37950         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
37951         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
37952         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
37953         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
37954         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
37955         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
37956         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37957         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
37958         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
37959         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
37960         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
37961         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
37962         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
37963         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
37964         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
37965         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
37966         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
37967         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
37968         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
37969         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
37970         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
37971         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
37972         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
37973         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
37974         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
37975         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
37976         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
37977         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
37978         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
37979         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
37980         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
37981         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
37982         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
37983         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
37984         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
37985         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
37986         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
37987         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
37988         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
37989         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
37990         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
37991         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
37992         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
37993         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
37994         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
37995         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
37996         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
37997         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
37998         vms_conv.ads, vms_conv.adb, vms_data.ads,
37999         vxaddr2line.adb: Files added. Merge with ACT tree.
38000
38001         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
38002         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
38003         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
38004         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
38005         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
38006         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
38007         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38008         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
38009         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
38010         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
38011
38012         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38013         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38014         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38015         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38016         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
38017         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
38018         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38019         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
38020         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
38021         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
38022         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
38023         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
38024         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
38025         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
38026         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
38027         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
38028         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
38029         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38030         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
38031         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
38032         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
38033         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
38034         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
38035         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
38036         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
38037         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
38038         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
38039         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
38040         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
38041         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
38042         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
38043         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
38044         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38045         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
38046         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
38047         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
38048         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
38049         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
38050         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
38051         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
38052         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
38053         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
38054         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
38055         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
38056         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
38057         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
38058         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
38059         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
38060         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
38061         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
38062         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
38063         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
38064         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
38065         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
38066         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
38067         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
38068         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
38069         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
38070         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
38071         checks.adb, checks.ads, cio.c, comperr.adb,
38072         comperr.ads, csets.adb, cstand.adb, cstreams.c,
38073         debug_a.adb, debug_a.ads, debug.adb, decl.c,
38074         einfo.adb, einfo.ads, errout.adb, errout.ads,
38075         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
38076         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
38077         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
38078         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38079         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
38080         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
38081         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
38082         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
38083         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
38084         fe.h, fmap.adb, fmap.ads, fname.adb,
38085         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
38086         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
38087         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
38088         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38089         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38090         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38091         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
38092         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
38093         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
38094         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
38095         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
38096         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
38097         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
38098         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
38099         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
38100         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
38101         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
38102         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
38103         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
38104         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
38105         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
38106         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
38107         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
38108         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
38109         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
38110         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
38111         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
38112         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
38113         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
38114         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
38115         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
38116         layout.adb, lib.adb, lib.ads, lib-list.adb,
38117         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
38118         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38119         link.c, live.adb, make.adb, make.ads,
38120         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
38121         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
38122         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
38123         misc.c, mkdir.c, mlib.adb, mlib.ads,
38124         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
38125         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
38126         namet.adb, namet.ads, namet.h, nlists.ads,
38127         nlists.h, nmake.adt, opt.adb, opt.ads,
38128         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
38129         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
38130         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38131         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
38132         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
38133         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
38134         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
38135         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
38136         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
38137         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
38138         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
38139         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
38140         prj-util.adb, prj-util.ads, raise.c, raise.h,
38141         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
38142         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
38143         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
38144         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
38145         scans.ads, scn.adb, scn.ads, s-crc32.adb,
38146         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
38147         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38148         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
38149         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
38150         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
38151         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38152         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38153         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
38154         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
38155         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
38156         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
38157         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
38158         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
38159         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
38160         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38161         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
38162         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
38163         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
38164         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
38165         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
38166         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
38167         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
38168         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
38169         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
38170         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
38171         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
38172         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
38173         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
38174         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
38175         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
38176         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
38177         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
38178         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
38179         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
38180         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
38181         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
38182         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
38183         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
38184         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
38185         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
38186         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38187         stringt.adb, stringt.ads, stringt.h, style.ads,
38188         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
38189         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
38190         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
38191         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
38192         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
38193         table.adb, table.ads, targparm.adb, targparm.ads,
38194         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
38195         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
38196         ttypes.ads, types.ads, types.h, uintp.adb,
38197         uintp.ads, uintp.h, uname.adb, urealp.adb,
38198         urealp.ads, urealp.h, usage.adb, utils2.c,
38199         utils.c, validsw.adb, validsw.ads, widechar.adb,
38200         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
38201         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
38202         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
38203         gnatvsn.ads: Merge with ACT tree.
38204
38205         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
38206
38207 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
38208
38209         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
38210         (gnat_ug_vmx.info): Likewise.
38211         (gnat_ug_vxw.info): Likewise.
38212         (gnat_ug_wnt.info): Likewise.
38213         (gnat_rm.info): Likewise.
38214         (gnat-style.info): Likewise.
38215
38216         * Make-lang.in (ada.install-info): Remove target.
38217         (info): New target.
38218         (install-info): Likewise.
38219         (gnat_ug_unx.info): Simplify rule.
38220         (gnat_ug_vmx.info): Likewise.
38221         (gnat_ug_vxw.info): Likewise.
38222         (gnat_ug_wnt.info): Likewise.
38223         (gnat_rm.info): Likewise.
38224         (gnat-style.info): Likewise.
38225
38226 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
38227
38228         * Make-lang.in: Replace uses of $(target_alias) with
38229         $(target_noncanonical).
38230         * ada/Makefile.in: Remove unused mention of $(target_alias).
38231
38232 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
38233
38234         * Make-lang.in (ada.info): Replace with ...
38235         (info): ... this.
38236         (ada.dvi): Replace with ...
38237         (dvi): ... this.
38238
38239 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
38240
38241         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
38242         initialize dconstp5 and dconstmp5.
38243
38244 2003-09-28  Richard Henderson  <rth@redhat.com>
38245
38246         * trans.c (tree_transform): Update call to expand_asm_operands.
38247
38248 2003-09-21  Richard Henderson  <rth@redhat.com>
38249
38250         * trans.c, utils.c: Revert.
38251
38252 2003-09-21  Richard Henderson  <rth@redhat.com>
38253
38254         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
38255         change to const.
38256
38257 2003-09-04  Michael Matz  <matz@suse.de>
38258
38259         * misc.c: Include "target.h".
38260         * Make-lang.in (misc.o): Add dependency on target.h.
38261
38262 2003-09-03  DJ Delorie  <dj@redhat.com>
38263
38264         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
38265         hook.
38266
38267 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
38268
38269         * Makefile.in: Update substitutions to match changes to
38270         configure.  Use include directives instead of @-insertions
38271         to read in host and target fragments.  Add a rule to
38272         regenerate ada/Makefile.
38273
38274 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
38275
38276         * lang-options.h: Remove.
38277         * lang.opt: Add help text.
38278
38279 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
38280
38281         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
38282         calls.
38283
38284 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
38285
38286         * misc.c (gnat_handle_option): Don't handle filenames.
38287
38288 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
38289
38290         * Make-lang.in: Replace PWD with PWD_COMMAND.
38291         * Makefile.adalib: Likewise.
38292         * Makefile.in: Likewise.
38293
38294 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
38295
38296         * misc.c (gnat_argv): Revert last change.
38297         (gnat_handle_option, gnat_init_options): Copy arguments.
38298
38299 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
38300
38301         * misc.c (gnat_argv): Make const.
38302
38303 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
38304
38305         * misc.c (save_argc, save_argv): Keep non-static!
38306
38307 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
38308
38309         * misc.c (save_argc, save_argv): Make static.
38310         (gnat_init_options): New prototype.
38311         (gnat_init_options): Update.
38312
38313 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
38314
38315         * gnat_ug.texi: Remove unlikely characters from @vars.
38316         * gnat_ug_vms.texi: Regenerate.
38317
38318 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
38319
38320         * misc.c (record_code_position): Adjust emit_note call.
38321
38322 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
38323
38324         * misc.c (gnat_handle_option): Don't check for missing arguments.
38325
38326 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
38327
38328         * utils.c (end_subprog_body): Adjust expand_function_end call.
38329
38330 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
38331
38332         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
38333         Bind_Main_Program.
38334
38335 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
38336
38337         * lang.opt: Declare Ada.
38338         * misc.c (gnat_init_options): Update.
38339
38340 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
38341
38342         * utils.c (begin_subprog_body): Adjust init_function_start call.
38343
38344 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
38345
38346         * Make-lang.in: Update to use options.c and options.h.
38347         * misc.c: Include options.h not aoptions.h.
38348         (gnat_handle_option): Abort on unrecognized switch.
38349         (gnat_init_options): Request Ada switches.
38350
38351 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
38352
38353         * lang.opt: Add -Wall.
38354         * misc.c (gnat_handle_option): Handle it.
38355
38356 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
38357
38358         * misc.c (gnat_handle_option): Fix warnings.
38359
38360 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
38361
38362         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
38363
38364 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
38365
38366         * Make-lang.in: Update to handle command-line options.
38367         * lang.opt: New file.
38368         * misc.c: Include aoptions.h.
38369         (cl_options_count, cl_options): Remove.
38370         (gnat_handle_option): New.
38371         (gnat_decode_option): Remove.
38372         (LANG_HOOKS_DECODE_OPTION): Remove.
38373         (LANG_HOOKS_HANDLE_OPTION): Override.
38374
38375 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
38376
38377         * init.c, misc.c, trans.c, utils.c: Remove dead code.
38378
38379 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
38380
38381         * Makefile.in: Replace "host_canonical" with "host" for autoconf
38382         substitution.
38383
38384 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
38385
38386         * Make-lang.in: Update.
38387         * misc.c: Include opts.h. Define cl_options_count and cl_options.
38388
38389 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
38390
38391         * misc.c (gnat_init_options): Update.
38392
38393 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
38394
38395         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
38396         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
38397         __attribute__ ((__unused__)).
38398
38399 2003-06-05  Jan Hubicka  <jh@suse.cz>
38400
38401         * Make-lang.in:  Add support for stageprofile and stagefeedback
38402
38403 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
38404
38405         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
38406         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
38407
38408 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
38409
38410         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
38411         Remove non-VMS directive.
38412         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
38413         alternatives.
38414         (Examples of gnatls Usage): Remove VMS alternative.
38415
38416 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
38417
38418         PR ada/9953
38419         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
38420         and turn ZCX_By_Default back to False since the underlying support
38421         is not quite there yet.
38422
38423 2003-06-01  Andreas Jaeger  <aj@suse.de>
38424
38425         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
38426         and ROUND_TYPE_SIZE_UNIT.
38427
38428 2003-05-22   Geert Bosch  <bosch@gnat.com>
38429
38430         * gnat_rm.texi : Remove reference to Ada Core Technologies.
38431
38432 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
38433
38434         * trans.c (tree_transform): Use location_t and input_location
38435         directly.
38436         (build_unit_elab): Likewise.
38437         * utils.c (create_label_decl): Likewise.
38438
38439 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
38440
38441         * trans.c (tree_transform, build_unit_elab,
38442         set_lineno): Rename lineno to input_line.
38443         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
38444         end_subprog_body): Likewise.
38445         * utils2.c (build_call_raise): Likewise.
38446
38447 2003-05-01  Laurent Guerby  <guerby@acm.org>
38448
38449         PR ada/10546
38450         * 5iosinte.ads: Increase pthread_cond_t size to match recent
38451         LinuxThread and NPTL version, merge from ACT.
38452
38453 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
38454
38455         * utils.c (convert): No need to clear TREE_CST_RTL.
38456
38457 2003-04-23   Geert Bosch  <bosch@gnat.com>
38458
38459         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
38460         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38461         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38462         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38463         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38464         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
38465         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
38466         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
38467         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38468         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
38469         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
38470         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
38471         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
38472         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
38473         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
38474         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
38475         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
38476         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
38477         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
38478         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38479         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38480         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
38481         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38482         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
38483         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
38484         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
38485         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
38486         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
38487         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
38488         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
38489         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
38490         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
38491         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
38492         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
38493         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
38494         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
38495         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
38496         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
38497         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
38498         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
38499         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
38500         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
38501         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
38502         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
38503         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
38504         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
38505         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
38506         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
38507         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
38508         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
38509         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
38510         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
38511         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
38512         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
38513         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
38514         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
38515         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
38516         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
38517         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
38518         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
38519         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
38520         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
38521         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
38522         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
38523         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
38524         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
38525         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
38526         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
38527         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
38528         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
38529         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
38530         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
38531         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
38532         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
38533         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
38534         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
38535         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
38536         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
38537         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
38538         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
38539         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
38540         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
38541         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
38542         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
38543         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
38544         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
38545         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
38546         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
38547         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
38548         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
38549         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
38550         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
38551         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
38552         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
38553         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
38554         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
38555         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
38556         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
38557         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
38558         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
38559         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
38560         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
38561         ali.adb, ali.ads, alloc.ads, argv.c,
38562         atree.adb, atree.ads, atree.h, aux-io.c,
38563         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
38564         binde.adb, binde.ads, binderr.adb, binderr.ads,
38565         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
38566         butil.adb, butil.ads, cal.c, calendar.ads,
38567         casing.adb, casing.ads, ceinfo.adb, checks.adb,
38568         checks.ads, cio.c, comperr.adb, comperr.ads,
38569         config-lang.in, csets.adb, csets.ads, csinfo.adb,
38570         cstand.adb, cstand.ads, cuintp.c, debug.adb,
38571         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
38572         dec-io.ads, dec.ads, deftarg.c, directio.ads,
38573         einfo.adb, einfo.ads, elists.adb, elists.ads,
38574         elists.h, errno.c, errout.adb, errout.ads,
38575         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
38576         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
38577         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
38578         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
38579         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
38580         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
38581         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
38582         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
38583         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
38584         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
38585         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
38586         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
38587         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
38588         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
38589         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
38590         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
38591         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
38592         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
38593         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
38594         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
38595         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38596         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38597         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38598         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
38599         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
38600         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
38601         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
38602         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
38603         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
38604         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
38605         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
38606         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
38607         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
38608         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
38609         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
38610         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
38611         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
38612         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
38613         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
38614         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
38615         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
38616         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
38617         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
38618         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
38619         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
38620         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
38621         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
38622         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
38623         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
38624         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
38625         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
38626         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
38627         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
38628         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
38629         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
38630         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
38631         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
38632         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
38633         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
38634         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38635         lib.adb, lib.ads, live.adb, live.ads,
38636         machcode.ads, make.adb, make.ads, makeusg.adb,
38637         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
38638         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
38639         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
38640         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
38641         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
38642         mlib.ads, namet.adb, namet.ads, nlists.adb,
38643         nlists.ads, opt.adb, opt.ads, osint-b.adb,
38644         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
38645         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
38646         osint.ads, output.adb, output.ads, par-ch10.adb,
38647         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
38648         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38649         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
38650         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
38651         par-tchk.adb, par-util.adb, par.adb, par.ads,
38652         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
38653         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
38654         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
38655         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
38656         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
38657         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
38658         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
38659         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
38660         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
38661         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
38662         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
38663         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
38664         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
38665         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
38666         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
38667         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
38668         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
38669         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38670         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
38671         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
38672         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
38673         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
38674         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38675         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
38676         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
38677         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
38678         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
38679         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
38680         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
38681         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
38682         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
38683         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
38684         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
38685         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
38686         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
38687         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
38688         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
38689         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
38690         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
38691         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
38692         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
38693         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
38694         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
38695         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
38696         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
38697         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
38698         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
38699         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
38700         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
38701         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
38702         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
38703         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
38704         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
38705         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
38706         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
38707         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
38708         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
38709         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
38710         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
38711         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
38712         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
38713         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
38714         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
38715         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
38716         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
38717         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
38718         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
38719         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
38720         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
38721         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
38722         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
38723         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
38724         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
38725         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
38726         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
38727         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
38728         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
38729         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
38730         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
38731         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
38732         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
38733         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
38734         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
38735         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38736         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
38737         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
38738         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
38739         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
38740         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
38741         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
38742         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
38743         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
38744         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
38745         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
38746         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
38747         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
38748         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
38749         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
38750         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
38751         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
38752         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
38753         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
38754         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
38755         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
38756         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
38757         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
38758         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
38759         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
38760         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
38761         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
38762         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38763         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38764         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
38765         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
38766         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
38767         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
38768         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
38769         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
38770         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
38771         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
38772         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
38773         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
38774         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
38775         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
38776         snames.ads, sprint.adb, sprint.ads, stand.adb,
38777         stand.ads, stringt.adb, stringt.ads, style.adb,
38778         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
38779         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
38780         switch-m.ads, switch.adb, switch.ads, system.ads,
38781         table.adb, table.ads, targparm.adb, targparm.ads,
38782         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
38783         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
38784         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
38785         ttypef.ads, ttypes.ads, types.adb, types.ads,
38786         uintp.adb, uintp.ads, uname.adb, uname.ads,
38787         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
38788         usage.adb, usage.ads, validsw.adb, validsw.ads,
38789         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
38790         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
38791         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
38792         formatting and other trivial changes from ACT.
38793
38794 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
38795
38796         * gigi.h, utils2.c (build_constructor):
38797         Rename gnat_build_constructor. Use build_constructor.
38798         * decl.c (gnat_to_gnu_entity)
38799         * trans.c (tree_transform, pos_to_constructor, extract_values)
38800         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
38801         (unchecked_convert)
38802         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
38803         (fill_vms_descriptor):
38804         Update to match.
38805
38806 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
38807
38808         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
38809         * misc.c (gnat_tree_size): New function.
38810         (LANG_HOOKS_TREE_SIZE): Override.
38811
38812 2003-04-03  Jason Merrill  <jason@redhat.com>
38813
38814         * misc.c (gnat_adjust_rli): #if 0.
38815
38816 2003-03-31   Geert Bosch  <bosch@gnat.com>
38817
38818         PR ada/10020
38819         * link.c : Fix misspelled "const" keyword
38820
38821 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
38822
38823         PR c++/7086
38824         * utils2.c: Adjust calls to put_var_into_stack.
38825
38826 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
38827
38828         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
38829
38830 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
38831
38832         * misc.c (gnat_init): Update for new prototype.
38833
38834 2003-03-05  Olivier Hainque  <hainque@gnat.com>
38835
38836         ada/9961
38837         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
38838         warning, and fix return type for the IN_RTS && !SJLJ case.
38839
38840 2003-03-04  Tom Tromey  <tromey@redhat.com>
38841
38842         * Make-lang.in (ada.tags): New target.
38843
38844 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
38845
38846         ada/9911
38847         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
38848         wrapper, which name remains constant whatever underlying GCC
38849         scheme.
38850
38851         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
38852         the stable interface needed for a-except.
38853
38854 2003-03-02  Andreas Jaeger  <aj@suse.de>
38855
38856         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38857         gnat_ug_wnt.texi: Regenerate.
38858
38859 2003-03-02  Laurent Guerby  <guerby@acm.org>
38860
38861         * Makefile.in (install-gnatlib): Match previous change there
38862         so it works.
38863
38864 2003-02-28  Andreas Schwab  <schwab@suse.de>
38865
38866         * Make-lang.in (install-gnatlib): Change to ada directory before
38867         running make instead of using ada/Makefile directly.
38868
38869 2003-02-18  Ben Elliston  <bje@redhat.com>
38870
38871         Part of PR ada/9406
38872         * gnat_ug.texi (Binder output file): Grammar fix.
38873
38874 2003-02-18  Ben Elliston  <bje@redhat.com>
38875
38876         PR other/7350
38877         * 5qtaprop.adb (Sleep): Fix typo in comment.
38878
38879 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
38880
38881         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
38882         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38883         gnat_ug_wnt.texi: Regenerate.
38884
38885 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
38886
38887         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
38888         be created if necessary.
38889         (ada.install-common): Let $(DESTDIR)$(bindir) be created
38890         if necessary.  Remove erroneous and redundant gnatchop
38891         installation commands.  Test for gnatdll before attempting
38892         to install it.
38893         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
38894         and gnatdll from all plausible locations.
38895
38896 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
38897
38898         * utils2.c (build_unary_op): Don't check flag_volatile.
38899         * gnat_ug.texi: Remove -fvolatile from example.
38900         * gnat_ug_vxw.texi: Likewise.
38901
38902 2003-01-29  Laurent Guerby  <guerby@acm.org>
38903
38904         PR ada/8344
38905         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
38906         * Makefile.in: match previous change.
38907         * Make-lang.in: match previous change.
38908
38909 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
38910
38911         * 5rosinte.ads: Add SIGXCPU.
38912         * 5rtpopsp.adb: New file.
38913         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
38914         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
38915         specific file 5rtpopsp.adb.
38916         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
38917         is likely needed for all newlib targets.
38918         * init.c: Add RTEMS specific version of __gnat_initialize().
38919
38920 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38921
38922         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
38923
38924 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38925
38926         * init.c (__gnat_error_handler): Make msg const.
38927
38928         * gmem.c (convert_addresses): Move declaration ...
38929         * adaint.h: ... here.
38930         * adaint.c (convert_addresses): Adapt addrs type to match
38931         prototype.
38932
38933         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
38934
38935 2003-01-24  Andreas Schwab  <schwab@suse.de>
38936
38937         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
38938         size_t to avoid warning.
38939
38940 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
38941
38942         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
38943
38944 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
38945
38946         * gnat_rm.texi: Remove RCS version number.
38947
38948         * ada-tree.h (union lang_tree_node): Add chain_next option.
38949
38950 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
38951
38952         * Make-lang.in (ada.install-info, ada.install-common,
38953         ada.uninstall): Prepend $(DESTDIR) to the destination
38954         directory in all (un)installation commands.
38955         * Makefile.in (install-gnatlib, install-rts): Ditto.
38956
38957 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
38958
38959         * gnat_rm.texi, gnat_ug.texi: Use @copying.
38960         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38961         gnat_ug_wnt.texi: Regenerate.
38962
38963 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
38964
38965         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
38966         only.
38967         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
38968         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
38969         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
38970         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
38971         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
38972         $(srcdir)/doc/include/gcc-common.texi.
38973
38974 2002-12-15   Geert Bosch  <bosch@gnat.com>
38975
38976         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
38977
38978 2002-12-14   Geert Bosch  <bosch@gnat.com>
38979
38980         PR ada/5690
38981         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
38982         case of a body created for a Renaming_As_Body, on which
38983         conformance checks are not performed.
38984
38985 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
38986
38987         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
38988         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
38989         not already included.
38990         * Make-lang.in: Update dependencies.
38991
38992 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
38993         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
38994         solution to buffer overflow bug on GNU/Linux.
38995
38996 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
38997
38998         PR ada/5856
38999         PR ada/6919
39000         * bindgen.adb: Remove all references to Public_Version.
39001         * comperr.adb: Remove all references to Public_Version and
39002         GNATPRO_Version; correct bug reporting instructions.
39003         * comperr.ads: Change to match bug box.
39004         * gnatvsn.ads: Remove all references to Public version and
39005         GNATPRO version.
39006
39007 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
39008
39009         PR ada/6919
39010         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
39011         GNU/Linux.
39012
39013         PR ada/6558
39014         * config-lang.in: Remove diff_excludes.
39015
39016 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
39017
39018         PR ada/8358
39019         * trans.c (gnu_pending_elaboration_lists): New GC root.
39020         (build_unit_elab): Use..
39021
39022 2002-10-30   Geert Bosch  <bosch@gnat.com>
39023
39024         PR ada/6558
39025         * misc.c : Include optabs.h
39026
39027         * Make-lang.in (misc.o): Add dependency on optabs.h
39028
39029 2002-10-29   Geert Bosch  <bosch@gnat.com>
39030
39031         PR ada/6558
39032         * Make-lang.in (gnatbind): Depend on CONFIG_H
39033
39034 2002-10-29  Geert bosch  <bosch@gnat.com>
39035
39036         PR ada/6558
39037         * misc.c: Unrevert misc.c (1.13)
39038
39039 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
39040
39041         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
39042         maintainership comments.
39043
39044 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
39045
39046         PR ada/5904
39047         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
39048         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
39049         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
39050         7staprop.adb: Correct statements in comments about
39051         maintainership of GNAT.
39052
39053         PR ada/5904
39054         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
39055         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
39056         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
39057         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
39058         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
39059         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
39060         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
39061         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
39062         comments about maintainership of GNAT.
39063
39064         PR ada/6919 (forward port of patch for PR ada/5904)
39065         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
39066         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
39067         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
39068         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
39069         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
39070         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
39071         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
39072         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
39073         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
39074         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
39075         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
39076         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
39077         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
39078         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
39079         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
39080         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
39081         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
39082         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
39083         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
39084         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
39085         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
39086         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
39087         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
39088         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
39089         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
39090         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
39091         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
39092         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
39093         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
39094         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
39095         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
39096         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
39097         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
39098         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
39099         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
39100         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
39101         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
39102         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
39103         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
39104         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
39105         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
39106         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
39107         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
39108         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
39109         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
39110         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
39111         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
39112         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
39113         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
39114         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
39115         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
39116         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
39117         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
39118         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
39119         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
39120         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
39121         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
39122         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
39123         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
39124         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
39125         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
39126         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
39127         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
39128         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
39129         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
39130         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
39131         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
39132         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
39133         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
39134         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
39135         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
39136         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
39137         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
39138         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
39139         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
39140         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
39141         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
39142         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
39143         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
39144         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
39145         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
39146         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
39147         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
39148         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
39149         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
39150         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
39151         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
39152         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
39153         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
39154         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
39155         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
39156         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
39157         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
39158         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
39159         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
39160         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
39161         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
39162         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
39163         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
39164         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
39165         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
39166         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
39167         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
39168         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
39169         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
39170         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
39171         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
39172         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
39173         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
39174         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
39175         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
39176         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
39177         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
39178         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
39179         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
39180         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
39181         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
39182         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
39183         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
39184         par-endh.adb par-labl.adb par-load.adb par-prag.adb
39185         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
39186         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
39187         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
39188         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
39189         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
39190         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
39191         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
39192         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
39193         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
39194         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
39195         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
39196         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
39197         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
39198         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
39199         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
39200         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
39201         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
39202         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
39203         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
39204         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
39205         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
39206         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
39207         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
39208         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
39209         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
39210         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
39211         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
39212         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
39213         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
39214         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
39215         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
39216         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
39217         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
39218         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
39219         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
39220         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
39221         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
39222         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
39223         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
39224         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
39225         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
39226         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
39227         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
39228         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
39229         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
39230         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
39231         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
39232         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
39233         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
39234         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
39235         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
39236         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
39237         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
39238         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
39239         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
39240         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
39241         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
39242         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
39243         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
39244         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
39245         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
39246         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
39247         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
39248         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
39249         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
39250         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
39251         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
39252         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
39253         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
39254         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
39255         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
39256         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
39257         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
39258         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
39259         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
39260         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
39261         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
39262         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
39263         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
39264         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
39265         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
39266         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
39267         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
39268         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
39269         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
39270         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
39271         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
39272         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
39273         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
39274         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
39275         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
39276         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
39277         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
39278         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
39279         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
39280         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
39281         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
39282         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
39283         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
39284         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
39285         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
39286         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
39287         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
39288         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
39289         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
39290         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
39291         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
39292         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
39293         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
39294         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
39295         stringt.ads stringt.h style.adb style.ads stylesw.adb
39296         stylesw.ads switch.adb switch.ads sysdep.c system.ads
39297         table.adb table.ads targparm.adb targparm.ads targtyps.c
39298         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
39299         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
39300         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
39301         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
39302         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
39303         usage.ads utils.c utils2.c validsw.adb validsw.ads
39304         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
39305         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
39306         xtreeprs.adb: Correct statements in comments about maintainership
39307         of GNAT.
39308
39309 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
39310
39311         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
39312         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
39313         * gnatvsn.ads: Gnat_Version_String is now a function.
39314         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
39315         copy the C version_string into a String and return it.
39316         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
39317         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
39318         Remove pragma Ident (Gnat_Version_String).  If this was the
39319         sole use of package Gnatvsn, remove the with statement too.
39320         * gnat1drv.adb: Tweak -gnatv output.
39321
39322 2002-09-17  Richard Henderson  <rth@redhat.com>
39323
39324         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
39325         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
39326         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
39327         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
39328         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
39329         and real_2expN instead of a loop.
39330         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
39331         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
39332
39333 2002-08-25  Andre Leis  <a.leis@gmx.net>
39334             David Billinghurst  <David.Billinghurst@riotinto.com>
39335
39336         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
39337
39338 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39339
39340         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
39341         Remove $(CONFIG_H) dependency.
39342
39343 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
39344
39345         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
39346
39347 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39348
39349         * adadecode.c (ada_demangle): Use xstrdup in lieu of
39350         xmalloc/strcpy.
39351         * misc.c (gnat_decode_option): Likewise.
39352
39353 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
39354
39355         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
39356         function approach did not work well because of a side effect (the
39357         function call could reallocate the table which was being indexed
39358         using its result). Fixes ada/4851. [RESURRECTED]
39359
39360 2002-07-01  Roger Sayle  <roger@eyesopen.com>
39361
39362         * ada/utils.c (builtin_function): Accept an additional parameter.
39363
39364 2002-06-28  Andreas Jaeger  <aj@suse.de>
39365
39366         PR ada/7144
39367         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
39368         <adi@thur.de>.
39369
39370 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39371
39372         * Makefile.in (SHELL): Set to @SHELL@.
39373
39374 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39375
39376         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
39377         array size calculation.
39378
39379 2002-06-04  Andreas Jaeger  <aj@suse.de>
39380
39381         * Make-lang.in (gnatbind): Readd rule that has been lost in last
39382         patch.
39383
39384 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
39385
39386         Merge from pch-branch:
39387
39388         * config-lang.in (gtfiles): Add ada-tree.h.
39389         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
39390         (SET_TYPE_MODULUS): New.
39391         (SET_TYPE_INDEX): New.
39392         (SET_TYPE_DIGITS_VALUE): New.
39393         (SET_TYPE_RM_SIZE): New.
39394         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
39395         (SET_TYPE_ADA_SIZE): New.
39396         (SET_TYPE_ACTUAL_BOUNDS): New.
39397         (SET_DECL_CONST_CORRESPONDING_VAR): New.
39398         (SET_DECL_ORIGINAL_FIELD): New.
39399         (TREE_LOOP_ID): Correct typo.
39400         * decl.c: Use new macros.
39401         * utils.c: Include debug.h, use new macros.
39402         * utils2.c: Use new macros.
39403
39404         * ada-tree.h: Update all macros for new tree description.
39405         (struct tree_loop_id): New.
39406         (union lang_tree_node): New.
39407         (struct lang_decl): New.
39408         (struct lang_type): New.
39409         * misc.c (gnat_mark_tree): Delete.
39410         (LANG_HOOKS_MARK_TREE): Delete.
39411         * trans.c (tree_transform): No longer any need to cast
39412         for TREE_LOOP_ID.
39413
39414         * utils.c (struct language_function): New dummy structure.
39415
39416         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
39417         (misc.o): Likewise.
39418         (utils.o): Likewise; also gtype-ada.h.
39419         * Make-lang.in (gnat1): Add dependency on s-gtype.
39420         (gnatbind): Add dependency on $(CONFIG_H).
39421         * utils.c: Correct last #include.
39422         (stuct e_stack): Remove unnecessary 'static'.
39423         (mark_e_stack): Remove unused prototype.
39424
39425         * scn-nlit.adb: Remove whitespace after version number to
39426         keep lines under 80 chars.
39427         * snames.adb: Likewise.
39428         * treepr.ads: Likewise.
39429
39430         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
39431         (misc.o): Likewise.
39432         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
39433         * config-lang.in (gtfiles): New.
39434         * decl.c: Use gengtype for roots.
39435         * gigi.h: Use gengtype for roots.
39436         * trans.c: Use gengtype for roots.
39437         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
39438
39439 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
39440
39441         * misc.c (gnat_init): Adjust setting of internal_error_function.
39442
39443 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
39444
39445         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
39446         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39447         gnat_ug_wnt.texi: Regenerate.
39448
39449 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
39450
39451         * 5ntaprop.adb (with System.OS_Primitives): Remove.
39452
39453         * cstreams.c (max_path_len): Move from here ...
39454         * adaint.c (__gnat_max_path_len): ... to here.
39455         * adaint.c (__gnat_max_path_len): Declare.
39456         * g-dirope.adb (Max_Path): Adjust.
39457         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
39458         * i-cstrea.ads (max_path_len): Adjust.
39459         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
39460         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
39461
39462         * Makefile.in, Make-lang.in: Documentation is now built in
39463         Make-lang.in.  Store Info and generated Texinfo files in the
39464         source directory.
39465         * gnat_ug.texi: Remove CVS keywords, correct version number.
39466         Set file name correctly.
39467
39468         * gnat_ug_*.texi: Add.
39469         * .cvsignore: Ignore generated Texinfo files.
39470
39471 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
39472
39473         * ada.h: Add MI guard macro.
39474         (SUBTYPE): Define constants with an anonymous enum, not static
39475         const variables.
39476         (IN): Cast constants to appropriate type before use.
39477
39478 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
39479
39480         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
39481         (experimental)".
39482
39483 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39484
39485         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
39486         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
39487         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
39488         (ALL_ADA_CFLAGS): Likewise.
39489         (ADA_INCLUDES): Likewise.
39490         Adapt for new working dir.
39491         (GNATBIND): Use Makefile.in version.
39492         (.SUFFIXES): Copy from Makefile.in.
39493         (ada-warn): Define.
39494         (.adb.o, .ads.o): Copy from Makefile.in.
39495         Added $(OUTPUT_OPTION).
39496         (GNAT1_C_OBJS): Moved from Makefile.in.
39497         Prefix with ada subdir.
39498         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
39499         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
39500         Adapt for new working dir.
39501         (EXTRA_GNATBIND_OBJS): Likewise.
39502         (ADA_BACKEND): Moved from Makefile.in.
39503         Renamed to avoid conflict with global BACKEND.
39504         Use that one.
39505         (TARGET_ADA_SRCS): Moved from Makefile.in.
39506         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
39507         Use ADA_BACKEND.
39508         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
39509         (ada_extra_files): Moved from Makefile.in.
39510         Prefix with ada subdir.
39511         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
39512         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
39513         (ada/nmake.ads): Likewise.
39514         (update-sources): Moved from Makefile.in.
39515         Prefix with ada subdir.
39516         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
39517         (ADA_TREE_H): Likewise.
39518         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
39519         (ada/memtrack.o): Likewise.
39520         (ada/adadecode.o): Likewise.
39521         Update dependencies.
39522         (ada/adaint.o): New.
39523         (ada/argv.o): Moved from Makefile.in.
39524         Prefix with ada subdir.
39525         Update dependencies.
39526         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
39527         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
39528         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
39529         Prefix with ada subdir.
39530         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
39531         (GNAT DEPENDENCIES): Regenerate.
39532         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
39533         toplevel Makefile.in.
39534         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
39535         (TARGET_ADA_SRCS): Removed.
39536         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
39537         (GNATBIND_OBJS): Likewise.
39538         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
39539         (BACKEND): Removed.
39540         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
39541         (TREE_H): Likewise.
39542         (ada_extra_files): Likewise.
39543         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
39544         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
39545         (update-sources): Likewise.
39546         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
39547         (ADA_TREE_H): Likewise.
39548         (adadecoce.o): Likewise.
39549         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
39550         (GNAT DEPENDENCIES): Likewise.
39551
39552 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39553
39554         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
39555         * Makefile.in: Likewise.
39556
39557 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
39558
39559         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
39560         Restore $(CONFIG_H) and prefix.o dependencies.
39561         (ada.stage[1-4]): Depend on stage?-start.
39562
39563         * Makefile.in (b_gnatb.c): Depend on interfac.o.
39564
39565 2002-05-02  Jim Wilson  <wilson@redhat.com>
39566
39567         * utils.c (finish_record_type): Change record_size to record_type.
39568
39569 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
39570
39571         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
39572         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
39573         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
39574
39575 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
39576
39577         * misc.c (gnat_parse_file): Update.
39578
39579 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
39580
39581         * misc.c (gnat_init): Don't set lang_attribute_common.
39582
39583 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
39584
39585         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
39586
39587 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
39588
39589         * gnat_ug.texi: New file.
39590
39591         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
39592         instead of gfdl.texi
39593
39594         * xgnatug.adb, ug_words: New files.
39595
39596         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
39597         gnat_rm and gnat-style manuals.
39598
39599 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
39600
39601         * gigi.h (incomplete_type_error): Remove.
39602         * utils.c (incomplete_type_error): Remove.
39603
39604 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
39605
39606         * trans.c (tree_transform): Add has_scope argument to
39607         expand_start_stmt_expr.
39608
39609 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
39610
39611         * gigi.h (truthvalue_conversion): Rename.
39612         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
39613         * trans.c (tree_transform): Update.
39614         * utils2.c (truthvalue_conversion): Rename, update.
39615         (build_binary_op, build_unary_op): Update.
39616
39617 2002-04-04  Laurent Guerby  <guerby@acm.org>
39618
39619         * make.adb: Implement -margs, remove restriction about file name placement.
39620         * makeusg.adb: Documentation update.
39621         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
39622         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
39623
39624 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
39625
39626         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
39627         (builtin_function): Similarly.
39628
39629 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
39630
39631         * decl.c (gnat_to_gnu_entity): Update.
39632         * gigi.h (mark_addressable): Rename.
39633         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
39634         * trans.c (tree_transform): Update.
39635         * utils.c (create_var_decl): Update.
39636         * util2.c (build_binary_op, build_unary_op,
39637         fill_vms_descriptor): Update.
39638         (mark_addressable): Rename, update.
39639
39640 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
39641
39642         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
39643         Rename.
39644         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
39645         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
39646         * trans.c (tree_transform, convert_with_check): Update.
39647         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
39648         Rename.
39649
39650 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
39651
39652         * gigi.h (finish_incomplete_decl): Rename.
39653         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
39654         * utils.c (gnat_init_decl_processing): Don't set hook.
39655         (finish_incomplete_decl): Rename.
39656
39657 2002-03-29  Andreas Schwab  <schwab@suse.de>
39658
39659         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
39660         directory.
39661
39662 2001-03-28  Robert Dewar  <dewar@gnat.com>
39663
39664         * checks.ads:
39665         (Remove_Checks): New procedure
39666
39667         * checks.adb:
39668         (Remove_Checks): New procedure
39669
39670         * exp_util.adb:
39671         Use new Duplicate_Subexpr functions
39672         (Duplicate_Subexpr_No_Checks): New procedure
39673         (Duplicate_Subexpr_No_Checks_Orig): New procedure
39674         (Duplicate_Subexpr): Restore original form (checks duplicated)
39675         (Duplicate_Subexpr): Call Remove_Checks
39676
39677         * exp_util.ads:
39678         (Duplicate_Subexpr_No_Checks): New procedure
39679         (Duplicate_Subexpr_No_Checks_Orig): New procedure
39680         Add 2002 to copyright notice
39681
39682         * sem_util.adb: Use new Duplicate_Subexpr functions
39683
39684         * sem_eval.adb:
39685         (Eval_Indexed_Component): This is the place to call
39686         Constant_Array_Ref and to replace the value. We simply merge
39687         the code of this function in here, since it is now no longer
39688         used elsewhere. This fixes the problem of the back end not
39689         realizing we were clever enough to see that this was
39690         constant.
39691         (Expr_Val): Remove call to Constant_Array_Ref
39692         (Expr_Rep_Val): Remove call to Constant_Array_Ref
39693         Minor reformatting
39694         (Constant_Array_Ref): Deal with string literals (patch
39695         suggested by Zack Weinberg on the gcc list)
39696
39697 2001-03-28  Ed Schonberg  <schonber@gnat.com>
39698
39699         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
39700         Duplicate_Subexpr_Move_Checks.
39701
39702         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
39703         Duplicate_Subexpr_Move_Checks.
39704
39705         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
39706         value of array exists before retrieving it (it may a private
39707         protected component in a function).
39708
39709 2002-03-28   Geert Bosch  <bosch@gnat.com>
39710
39711         * prj-pp.adb : New file.
39712
39713         * prj-pp.ads : New file.
39714
39715 2002-03-28  Andreas Jaeger  <aj@suse.de>
39716
39717         * Makefile.in (stamp-sdefault): Fix path for Makefile.
39718
39719 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
39720
39721         * misc.c (gnat_expand_expr): Move prototype.
39722
39723 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
39724
39725         * misc.c (insert_default_attributes): Remove.
39726
39727 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
39728
39729         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
39730         (gnat_init): Don't set hook.
39731         (gnat_expand_expr): Fix prototype.
39732
39733 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
39734
39735         * misc.c (ggc_p): Remove.
39736
39737 2002-03-27  Geert Bosch  <bosch@gnat.com>
39738
39739         * prj-makr.ads, prj-makr.adb : New files.
39740
39741 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
39742
39743         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
39744         (lang_mark_tree): Make static, rename.
39745
39746 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
39747
39748         * misc.c (maybe_build_cleanup): Remove.
39749
39750 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
39751
39752         * gigi.h (yyparse): Remove.
39753
39754 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
39755
39756         From Ben Brosgol  <brosgol@gnat.com>
39757         * gnat_rm.texi: Sync with ACT version.
39758
39759 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
39760
39761         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
39762         (gnat_init): Remove old hook.
39763
39764 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
39765
39766         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
39767         (yyparse): Rename gnat_parse_file.
39768
39769 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
39770
39771         Delete all lines containing "$Revision:".
39772         * xeinfo.adb: Don't look for revision numbers.
39773         * xnmake.adb: Likewise.
39774         * xsinfo.adb: Likewise.
39775         * xsnames.adb: Likewise.
39776         * xtreeprs.adb: Likewise.
39777
39778 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39779
39780         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
39781         gnat_tree_code_name): Delete.
39782         (tree_code_type, tree_code_length, tree_code_name): Define.
39783         (gnat_init): Don't try to copy into the various tree_code
39784         arrays.
39785
39786 2002-03-11  Richard Henderson  <rth@redhat.com>
39787
39788         * Makefile.in (.NOTPARALLEL): Add fake tag.
39789
39790 2002-03-07  Geert Bosch  <bosch@gnat.com>
39791
39792         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
39793         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
39794         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
39795         switch-m.adb, switch-m.ads : New files.
39796
39797 2002-03-07  Geert Bosch  <bosch@gnat.com>
39798
39799         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
39800         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
39801         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
39802         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
39803         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
39804         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
39805         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
39806         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
39807         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
39808         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
39809         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
39810         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
39811         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
39812         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
39813         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
39814         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
39815         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
39816         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
39817         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39818         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
39819         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
39820         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
39821         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
39822         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
39823         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
39824         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
39825         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
39826         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
39827         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
39828         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
39829         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
39830         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
39831         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
39832         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
39833         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39834         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
39835         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39836         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
39837         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
39838         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
39839         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
39840         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
39841         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
39842         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
39843         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
39844         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
39845         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
39846         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
39847         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
39848         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
39849         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
39850         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
39851         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
39852         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
39853         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
39854         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
39855         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
39856         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
39857         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
39858         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
39859         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
39860         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
39861         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
39862         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
39863         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
39864         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
39865         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
39866         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
39867         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
39868         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
39869         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
39870         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
39871         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
39872         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
39873         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
39874         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39875         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
39876         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39877         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
39878         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39879         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
39880         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
39881         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
39882         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
39883         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
39884         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
39885         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
39886         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
39887         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
39888         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
39889         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
39890         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
39891         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
39892         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
39893         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
39894         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
39895         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
39896
39897         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
39898         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
39899         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
39900         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
39901
39902         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
39903         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
39904
39905         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
39906         to mdll-fil.ad[bs] and mdll-util.ad[bs]
39907
39908         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
39909         from mdllfile.ad[bs] and mdlltool.ad[bs]
39910
39911 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
39912
39913         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
39914         lieu of explicit sizeof/sizeof.
39915
39916 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
39917
39918         * misc.c (copy_lang_decl): Remove.
39919
39920 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
39921
39922         * misc.c: Delete traditional-mode-related code copied from the
39923         C front end but not used, or used only to permit the compiler
39924         to link.
39925
39926 2002-02-07  Richard Henderson  <rth@redhat.com>
39927
39928         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
39929         * adaint.h (__gnat_to_gm_time): Update prototype.
39930
39931 2002-01-30  Richard Henderson  <rth@redhat.com>
39932
39933         * trans.c (tree_transform) [N_Loop_Statement]: Use
39934         expand_exit_loop_top_cond.
39935
39936 2001-12-23  Richard Henderson  <rth@redhat.com>
39937
39938         * utils.c (end_subprog_body): Push GC context around
39939         rest_of_compilation for nested functions.
39940
39941 2001-12-23  Richard Henderson  <rth@redhat.com>
39942
39943         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
39944
39945 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
39946
39947         * gnat-style.texi (Declarations and Types): Remove ancient style
39948         rule which was mandated by code generation issues.
39949
39950         * gnat-style.texi (header): Add @dircategory, @direntry.
39951         (title page): Remove date.
39952         (general) Add @./@: where approriate, and two spaces after the
39953         full stop at the end of a sentence.  Use @samp markup when
39954         referring concrete lexical entities (keywords, attribute names
39955         etc.), and @syntax for ARM grammar elements. Use @r for English
39956         text in comments.  Use @emph for emphasis.  Change "if-statements"
39957         etc. to "if statements" (without @samp). Break long lines.  Make
39958         casing of section names consistent.
39959         (Identifiers): Use @samp markup for variable names.
39960         (Comments): Use @samp markup for comment characters. Line-end
39961         comments may follow any Ada code, not just statements.  Fix
39962         misspelling of "Integer" as "integer".
39963         (Loop statements): Do not use variable name "I", use "J".
39964         (Subprogram Declarations): Document alignment.
39965         (Subprogram Bodies, Block statements): Document empty line before
39966         "begin".
39967
39968 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
39969
39970         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
39971         function approach did not work well because of a side effect (the
39972         function call could reallocate the table which was being indexed
39973         using its result). Fixes ada/4851.
39974
39975 2001-12-19  Robert Dewar  <dewar@gnat.com>
39976
39977         * bindgen.adb: Minor reformatting
39978
39979         * cstand.adb: Minor reformatting
39980
39981         * fmap.adb: Minor reformatting
39982         Change name from Add for Add_To_File_Map (Add is much too generic)
39983         Change Path_Name_Of to Mapped_Path_Name
39984         Change File_Name_Of to Mapped_File_Name
39985         Fix copyright dates in header
39986
39987         * fmap.ads:
39988         Change name from Add for Add_To_File_Map (Add is much too generic)
39989         Change Path_Name_Of to Mapped_Path_Name
39990         Change File_Name_Of to Mapped_File_Name
39991         Fix copyright dates in header
39992
39993         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
39994         Add use clause for Fmap.
39995
39996         * make.adb: Minor reformatting
39997
39998         * osint.adb: Minor reformatting.  Change of names in Fmap.
39999         Add use clause for Fmap.
40000
40001         * prj-env.adb: Minor reformatting
40002
40003         * prj-env.ads: Minor reformatting
40004
40005         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
40006         error found (there were odd exceptions to this general rule in
40007         -gnatec/-gnatem processing)
40008
40009 2001-12-19  Olivier Hainque  <hainque@gnat.com>
40010
40011         * raise.c (__gnat_eh_personality): Exception handling personality
40012         routine for Ada.  Still in rough state, inspired from the C++ version
40013         and still containing a bunch of debugging artifacts.
40014         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
40015         inspired from the C++ library.
40016
40017         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
40018         exception handling integration.
40019
40020 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
40021
40022         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
40023         (HIE_SOURCES): Add s-secsta.ad{s,b}.
40024         (HIE_OBJS): Add s-fat*.o
40025         (RAVEN_SOURCES): Remove files that are no longer required. Add
40026         interrupt handling files.
40027         (RAVEN_MOD): Removed, no longer needed.
40028
40029 2001-12-19  Robert Dewar  <dewar@gnat.com>
40030
40031         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
40032         Add 2001 to copyright date
40033
40034         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
40035         need to force universal inlining for these cases.
40036
40037 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
40038
40039         * s-taprob.adb: Minor clean ups so that this unit can be used in
40040         Ravenscar HI.
40041
40042         * exp_ch7.adb: Allow use of secondary stack in HI mode.
40043         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
40044
40045 2001-12-19  Vincent Celier  <celier@gnat.com>
40046
40047         * prj-tree.ads (Project_Node_Record): Add comments for components
40048         Pkg_Id and Case_Insensitive.
40049
40050 2001-12-19  Pascal Obry  <obry@gnat.com>
40051
40052         * g-socket.adb: Minor reformatting. Found while reading code.
40053
40054 2001-12-19  Robert Dewar  <dewar@gnat.com>
40055
40056         * prj-tree.ads: Minor reformatting
40057
40058 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
40059
40060         * config-lang.in (diff_excludes): Remove.
40061
40062 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40063
40064         * sem_res.adb (Resolve_Selected_Component): do not generate a
40065         discriminant check if the selected component is a component of
40066         the argument of an initialization procedure.
40067
40068         * trans.c (tree_transform, case of arithmetic operators): If result
40069         type is private, the gnu_type is the base type of the full view,
40070         given that the full view itself may be a subtype.
40071
40072 2001-12-17  Robert Dewar  <dewar@gnat.com>
40073
40074         * sem_res.adb: Minor reformatting
40075
40076         * trans.c (tree_transform, case N_Real_Literal): Add missing third
40077         parameter in call to Machine (unknown horrible effects from this
40078         omission).
40079
40080         * urealp.h: Add definition of Round_Even for call to Machine
40081         Add third parameter for Machine
40082
40083 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40084
40085         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
40086         predefined units in No_Run_Time mode.
40087
40088 2001-12-17  Richard Kenner  <kenner@gnat.com>
40089
40090         * misc.c (insn-codes.h): Now include.
40091
40092 2001-12-17  Olivier Hainque  <hainque@gnat.com>
40093
40094         * a-except.adb: Preparation work for future integration of the GCC 3
40095         exception handling mechanism
40096         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
40097         to factorize previous code sequences and make them externally callable,
40098         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
40099         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
40100         Use the new notification routines.
40101
40102 2001-12-17  Emmanuel Briot  <briot@gnat.com>
40103
40104         * prj-tree.ads (First_Choice_Of): Document the when others case
40105
40106 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40107
40108         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
40109         HI-E mode, in order to support Ravenscar profile properly.
40110
40111         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
40112         mode on 32 bits targets.
40113
40114 2001-12-17  Vincent Celier  <celier@gnat.com>
40115
40116         * fmap.adb: Initial version.
40117
40118         * fmap.ads: Initial version.
40119
40120         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
40121         If search is successfully done, add to mapping.
40122
40123         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
40124
40125         * make.adb:
40126         (Gnatmake): Add new local variable Mapping_File_Name.
40127          Create mapping file when using project file(s).
40128          Delete mapping file before exiting.
40129
40130         * opt.ads (Mapping_File_Name): New variable
40131
40132         * osint.adb (Find_File): Use path name found in mapping, if any.
40133
40134         * prj-env.adb (Create_Mapping_File): New procedure
40135
40136         * prj-env.ads (Create_Mapping_File): New procedure.
40137
40138         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
40139         (Mapping_File)
40140
40141         * usage.adb: Add entry for new switch -gnatem.
40142
40143         * Makefile.in: Add dependencies for fmap.o.
40144
40145 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40146
40147         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
40148         is a package instantiation rewritten as a package body.
40149         (Install_Withed_Unit): Undo previous change, now redundant.
40150
40151 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
40152
40153         * layout.adb:
40154         (Compute_Length): Move conversion to Unsigned to callers.
40155         (Get_Max_Size): Convert Len expression to Unsigned after calls to
40156         Compute_Length and Determine_Range.
40157         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
40158         Compute_Length and Determine_Range.
40159         Above changes fix problem with length computation for supernull arrays
40160         where Max (Len, 0) wasn't getting applied due to the Unsigned
40161         conversion used by Compute_Length.
40162
40163 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40164
40165         * rtsfind.ads:
40166         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
40167          System.Secondary_Stack.
40168         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
40169          in HI-E mode.
40170         Remove unused entity RE_Exception_Data.
40171
40172         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
40173
40174         * rident.ads (No_Secondary_Stack): New restriction.
40175
40176 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
40177
40178         * gnat_rm.texi: Fix minor typos. Found while reading the section
40179         regarding "Bit_Order Clauses" that was sent to a customer.
40180         Very interesting documentation!
40181
40182 2001-12-17  Robert Dewar  <dewar@gnat.com>
40183
40184         * sem_case.adb (Choice_Image): Avoid creating improper character
40185         literal names by using the routine Set_Character_Literal_Name. This
40186         fixes bombs in certain error message cases.
40187
40188 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40189
40190         * a-reatim.adb: Minor reformatting.
40191
40192 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40193
40194         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
40195         case where the formal is an extension of another formal in the current
40196         unit or in a parent generic unit.
40197
40198 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
40199
40200         * s-tposen.adb: Update comments.  Minor reformatting.
40201         Minor code clean up.
40202
40203         * s-tarest.adb: Update comments.  Minor code reorganization.
40204
40205 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
40206
40207         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
40208         when Java_VM.
40209
40210 2001-12-17  Robert Dewa  <dewar@gnat.com>
40211
40212         * exp_attr.adb: Minor reformatting
40213
40214 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40215
40216         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
40217         derivations nested within a child unit: verify that the parent
40218         type is declared in an outer scope.
40219
40220 2001-12-17  Robert Dewar  <dewar@gnat.com>
40221
40222         * sem_ch12.adb: Minor reformatting
40223
40224 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40225
40226         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
40227         warning if current unit is a predefined one, from which bodies may
40228         have been deleted.
40229
40230 2001-12-17  Robert Dewar  <dewar@gnat.com>
40231
40232         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
40233         Fix header format. Add 2001 to copyright date.
40234
40235         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
40236         which caused CE during compilation if checks were enabled.
40237
40238 2001-12-17  Vincent Celier  <celier@gnat.com>
40239
40240         * make.adb:
40241         (Switches_Of): New function
40242         (Test_If_Relative_Path): New procedure
40243         (Add_Switches): Use new function Switches_Of
40244         (Collect_Arguments_And_Compile): Use new function Switches_Of.
40245         When using a project file, test if there are any relative
40246         search path. Fail if there are any.
40247         (Gnatmake): Only add switches for the primary directory when not using
40248         a project file. When using a project file, change directory to the
40249         object directory of the main project file. When using a project file,
40250         test if there are any relative search path. Fail if there are any.
40251         When using a project file, fail if specified executable is relative
40252         path with directory information, and prepend executable, if not
40253         specified as an absolute path, with the exec directory.  Make sure
40254         that only one -o switch is transmitted to the linker.
40255
40256         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
40257
40258         * prj-nmsc.adb:
40259         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
40260         when using a non standard naming scheme.
40261         (Check_Ada_Naming_Scheme): Make sure that error messages
40262         do not raise exceptions.
40263         (Is_Illegal_Append): Return True if there is no dot in the suffix.
40264         (Language_Independent_Check): Check the exec directory.
40265
40266         * prj.adb (Project_Empty): Add new component Exec_Directory
40267
40268         * prj.ads:
40269         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
40270         (Project_Data): Add component Exec_Directory
40271
40272         * snames.adb: Updated to match snames.ads revision 1.215
40273
40274         * snames.ads: Added Exec_Dir
40275
40276 2001-12-17  Robert Dewar  <dewar@gnat.com>
40277
40278         * make.adb: Minor reformatting
40279
40280         * prj-nmsc.adb: Minor reformatting
40281
40282         * snames.adb: Updated to match snames.ads
40283
40284         * snames.ads: Alphebetize entries for project file
40285
40286 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40287
40288         * trans.c (process_freeze_entity): Do nothing if the entity is a
40289         subprogram that was already elaborated.
40290
40291 2001-12-17  Richard Kenner  <kenner@gnat.com>
40292
40293         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
40294         and Esize if object is referenced via pointer.
40295
40296 2001-12-17  Ed Schonberg  <schonber@gnat.com>
40297
40298         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
40299         is discrete before analyzing choices.
40300
40301 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
40302
40303         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
40304         containing the name of the Ada Main Program. This string is mainly
40305         intended for the debugger.
40306         (Gen_Output_File_C): Do the equivalent change when generating a C file.
40307
40308 2001-12-17  Robert Dewar  <dewar@gnat.com>
40309
40310         * ali.adb: Set new Dummy_Entry field in dependency entry
40311
40312         * ali.ads: Add Dummy_Entry field to source dependency table
40313
40314         * bcheck.adb (Check_Consistency): Ignore dummy D lines
40315
40316         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
40317
40318         * lib-writ.ads: Document dummy D lines for missing files.
40319
40320         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
40321
40322 2001-12-17  Robert Dewar  <dewar@gnat.com>
40323
40324         * ali.adb: Type reference does not reset current file.
40325
40326         * ali.adb: Recognize and scan renaming reference
40327
40328         * ali.ads: Add spec for storing renaming references.
40329
40330         * lib-xref.ads: Add documentation for handling of renaming references
40331
40332         * lib-xref.adb: Implement output of renaming reference.
40333
40334         * checks.adb:
40335         (Determine_Range): Document local variables
40336         (Determine_Range): Make sure Hbound is initialized. It looks as though
40337          there could be a real problem here with an uninitialized reference
40338          to Hbound, but no actual example of failure has been found.
40339
40340 2001-12-17  Laurent Pautet  <pautet@gnat.com>
40341
40342         * g-socket.ads:
40343         Fix comment of Shutdown_Socket and Close_Socket. These functions
40344         should not fail silently because if they are called twice, this
40345         probably means that there is a race condition in the user program.
40346         Anyway, this behaviour is consistent with the rest of this unit.
40347         When an error occurs, an exception is raised with the error message
40348         as exception message.
40349
40350 2001-12-17  Robert Dewar  <dewar@gnat.com>
40351
40352         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
40353         that it happens before modification of Sloc values for -gnatD.
40354
40355         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
40356         so that it happens before modification of Sloc values for -gnatD.
40357
40358         * switch.adb: Minor reformatting
40359
40360 2001-12-15  Richard Henderson  <rth@redhat.com>
40361
40362         * sem_ch7.adb: Wrap comment.
40363
40364 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
40365
40366         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
40367         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
40368         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
40369         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
40370         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
40371         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
40372         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
40373         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
40374         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
40375         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
40376         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
40377         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
40378         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
40379         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
40380         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
40381         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
40382         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
40383         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
40384         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
40385         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
40386         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
40387         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
40388         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
40389         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
40390         spelling errors.
40391
40392 2001-12-14  Vincent Celier  <celier@gnat.com>
40393
40394         * osint.adb(Create_Debug_File): When an object file is specified,
40395         put the .dg file in the same directory as the object file.
40396
40397 2001-12-14  Robert Dewar  <dewar@gnat.com>
40398
40399         * osint.adb: Minor reformatting
40400
40401         * lib-xref.adb (Output_Instantiation): New procedure to generate
40402         instantiation references.
40403
40404         * lib-xref.ads: Add documentation of handling of generic references.
40405
40406         * ali.adb (Read_Instantiation_Ref): New procedure to read
40407         instantiation references
40408
40409         * ali.ads: Add spec for storing instantiation references
40410
40411         * bindusg.adb: Minor reformatting
40412
40413         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40414
40415         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40416
40417         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40418
40419         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40420
40421         * csets.ads:
40422         Fix header format
40423         Add 2001 to copyright date
40424         Add entry for Latin-5 (Cyrillic ISO-8859-5)
40425
40426 2001-12-14  Matt Gingell  <gingell@gnat.com>
40427
40428         * adaint.c: mktemp is a macro on Lynx and can not be used as an
40429         expression.
40430
40431 2001-12-14  Richard Kenner  <kenner@gnat.com>
40432
40433         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
40434         if operand is CONSTRUCTOR.
40435
40436 2001-12-14  Ed Schonberg  <schonber@gnat.com>
40437
40438         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
40439         before emiting check on right-hand side, so that exception information
40440         is correct.
40441
40442 2001-12-14  Richard Kenner  <kenner@gnat.com>
40443
40444         * utils.c (create_var_decl): Throw away initializing expression
40445         if just annotating types and non-constant.
40446
40447 2001-12-14  Vincent Celier  <celier@gnat.com>
40448
40449         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
40450         Default_Ada_...
40451
40452         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40453         Remove functions.
40454         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
40455
40456         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40457         Remove functions.
40458         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
40459
40460 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
40461
40462         * ChangeLog: Remove piece of diff output.
40463
40464 2001-12-14  Geert Bosch  <bosch@gnat.com>
40465
40466         * config-lang.in: Update copyright notice
40467
40468         * layout.adb: Remove commented out code.
40469
40470         * mdllfile.ads: Update copyright notice. Fix header format.
40471
40472         * sem_case.ads: Likewise.
40473
40474         * sem_ch3.adb: Minor reformatting.
40475
40476 2001-12-12  Geert Bosch  <bosch@gnat.com>
40477
40478         * freeze.ads: Update copyright date.
40479
40480         * g-comlin.ads: Minor reformatting.
40481
40482         * gnat-style.texi: Fix typo.
40483
40484 2001-12-12  Geert Bosch  <bosch@gnat.com>
40485
40486         *  einfo.h: Regenerate.
40487
40488 2001-12-12  Ed Schonberg  <schonber@gnat.com>
40489
40490         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
40491         on known node types, rather than untyped fields. Further cleanups.
40492
40493 2001-12-12  Robert Dewar  <dewar@gnat.com>
40494
40495         * sem_ch12.adb:
40496         (Save_Entity_Descendant): Minor comment update.
40497         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
40498          of an N_Attribute_Reference node. As per note below, this does not
40499         eliminate need for Associated_Node in attribute ref nodes.
40500         (Associated_Node): Documentation explicitly mentions attribute
40501         reference nodes, since this field is used in such nodes.
40502
40503         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
40504
40505 2001-12-12  Robert Dewar  <dewar@gnat.com>
40506
40507         * s-stalib.adb: Add more comments on with statements being needed
40508
40509         * par-ch12.adb: Minor reformatting
40510
40511         * prj-dect.ads: Fix copyright header
40512
40513         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
40514         inputs fit in 32 bits, but the result still overflows.
40515
40516         * s-fatgen.ads: Minor comment improvement
40517
40518 2001-12-12  Ed Schonberg  <schonber@gnat.com>
40519
40520         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
40521         formal derived type, look for an inherited component from the full
40522         view of the parent, if any.
40523
40524 2001-12-12  Robert Dewar  <dewar@gnat.com>
40525
40526         * checks.ads (Apply_Alignment_Check): New procedure.
40527
40528         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
40529         ensure that the alignment of objects with address clauses is
40530         appropriate, and raise PE if not.
40531
40532         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
40533         Exp_Pakd.Known_Aligned_Enough
40534
40535         * mdllfile.ads: Minor reformatting
40536
40537         * mlib-fil.ads: Minor reformatting
40538
40539 2001-12-12  Ed Schonberg  <schonber@gnat.com>
40540
40541         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
40542         fix to any component reference if enclosing record has non-standard
40543         representation.
40544
40545 2001-12-12  Vincent Celier  <celier@gnat.com>
40546
40547         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
40548         Iteration
40549
40550 2001-12-12  Ed Schonberg  <schonber@gnat.com>
40551
40552         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
40553         sem_attr.
40554
40555 2001-12-12  Robert Dewar  <dewar@gnat.com>
40556
40557         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
40558
40559 2001-12-12  Emmanuel Briot  <briot@gnat.com>
40560
40561         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
40562         and it adds dependencies to system.io.
40563
40564 2001-12-12  Pascal Obry  <obry@gnat.com>
40565
40566         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
40567         variable name.
40568
40569 2001-12-11  Ed Schonberg  <schonber@gnat.com>
40570
40571         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
40572         that is the parent of other generics, the instance body replaces the
40573         instance node.  Retrieve the instance of the spec, which is the one
40574         that is visible in clients and within the body.
40575
40576 2001-12-11  Vincent Celier  <celier@gnat.com>
40577
40578         * gnatmain.adb: Initial version.
40579
40580         * gnatmain.ads: Initial version.
40581
40582         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
40583
40584         * snames.adb: Updated to match snames.ads.
40585
40586         * snames.ads: Added Gnatstub.
40587
40588 2001-12-11  Vincent Celier  <celier@gnat.com>
40589
40590         * prj-attr.adb (Initialization_Data): Change name from
40591         Initialisation_Data.
40592
40593 2001-12-11  Emmanuel Briot  <briot@gnat.com>
40594
40595         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
40596         + and * applied to backslashed expressions like \r.
40597
40598 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
40599
40600         * g-os_lib.ads: String_List type added, Argument_List type is now
40601         subtype of String_List.
40602
40603 2001-12-11  Robert Dewar  <dewar@gnat.com>
40604
40605         * g-os_lib.ads: Change copyright to FSF
40606         Add comments for String_List type
40607
40608 2001-12-11  Vincent Celier  <celier@gnat.com>
40609
40610         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
40611         string to the buffer).
40612
40613 2001-12-11  Ed Schonberg  <schonber@gnat.com>
40614
40615         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
40616         sem_attr.
40617
40618         * sem_attr.adb: Simplify previous fix for Address.
40619         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
40620         to avoid anomalies where the bound of the type appears to raise
40621         constraint error.
40622
40623 2001-12-11  Robert Dewar  <dewar@gnat.com>
40624
40625         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
40626         handled.
40627
40628 2001-12-11  Ed Schonber   <schonber@gnat.com>
40629
40630         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
40631         renamed unit before checking for recursive instantiations.
40632
40633 2001-12-11  Emmanuel Briot  <briot@gnat.com>
40634
40635         * prj.ads: Add comments for some of the fields.
40636
40637 2001-12-11  Robert Dewar  <dewar@gnat.com>
40638
40639         * lib-xref.adb (Output_Refs): Don't output type references outside
40640         the main unit if they are not otherwise referenced.
40641
40642 2001-12-11  Ed Schonberg  <schonber@gnat.com>
40643
40644         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
40645         code and diagnose additional illegal uses
40646
40647         * sem_util.adb (Is_Object_Reference): An indexed component is an
40648         object only if the prefix is.
40649
40650 2001-12-11  Vincent Celier  <celier@gnat.com>
40651
40652         * g-diopit.adb: Initial version.
40653
40654         * g-diopit.ads: Initial version.
40655
40656         * g-dirope.adb:
40657         (Expand_Path): Avoid use of Unbounded_String
40658         (Find, Wildcard_Iterator): Moved to child package Iteration
40659
40660         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
40661
40662 2001-12-11  Robert Dewar  <dewar@gnat.com>
40663
40664         * sem_attr.adb: Minor reformatting
40665
40666 2001-12-11  Ed Schonberg  <schonber@gnat.com>
40667
40668         * sem_ch3.adb: Clarify some ???.
40669
40670 2001-12-11  Robert Dewar  <dewar@gnat.com>
40671
40672         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
40673         Exp_Pakd.Known_Aligned_Enough
40674
40675         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
40676         version is moved to Exp_Ch13.
40677
40678 2001-12-11  Robert Dewar  <dewar@gnat.com>
40679
40680         * einfo.ads: Minor reformatting
40681
40682         * exp_ch5.adb: Add comment for previous.change
40683
40684         * ali.adb: New interface for extended typeref stuff.
40685
40686         * ali.ads: New interface for typeref stuff.
40687
40688         * checks.adb (Apply_Alignment_Check): New procedure.
40689
40690         * debug.adb: Add -gnatdM for modified ALI output
40691
40692         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
40693
40694         * lib-xref.adb: Extend generation of <..> notation to cover
40695         subtype/object types. Note that this is a complete rewrite,
40696         getting rid of the very nasty quadratic algorithm previously
40697         used for derived type output.
40698
40699         * lib-xref.ads: Extend description of <..> notation to cover
40700         subtype/object types. Uses {..} for these other cases.
40701         Also use (..) for pointer types.
40702
40703         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
40704
40705         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
40706         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
40707
40708 2001-12-11  Vincent Celier  <celier@gnat.com>
40709
40710         * gnatcmd.adb:
40711         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
40712         Changed /BIND_ONLY to /ACTIONS=BIND
40713         Changed /LINK_ONLY to /ACTIONS=LINK
40714
40715 2001-12-11  Ed Schonberg  <schonber@gnat.com>
40716
40717         * sem_ch8.adb (Find_Selected_Component): improved search for a
40718         candidate package in case of error.
40719
40720         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
40721         chain back on scope stack before reinstalling use clauses.
40722
40723         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
40724         is enabled, do not kill the code for the condition, to preserve
40725         warning.
40726
40727 2001-12-11  Robert Dewar  <dewar@gnat.com>
40728
40729         * checks.adb (Insert_Valid_Check): Apply validity check to expression
40730         of conversion, not to result of conversion.
40731
40732 2001-12-11  Ed Schonberg  <schonber@gnat.com>
40733
40734         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
40735         before freezing parent. If the declarations are mutually recursive,
40736         an access to the current record type may be frozen before the
40737         derivation is complete.
40738
40739 2001-12-05  Vincent Celier  <celier@gnat.com>
40740
40741         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
40742         -c /COMPILE_ONLY, -l /LINK_ONLY
40743
40744         * opt.ads:
40745         (Bind_Only): New Flag
40746         (Link_Only): New flag
40747
40748         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
40749         and -l (Link_Only)
40750
40751         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
40752
40753         * make.adb:
40754         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
40755         (Gnatmake): Set the step flags. Only perform a step if the
40756         corresponding step flag is True.
40757         (Scan_Make_Arg): Reset the bind and link step flags when -u
40758         or -gnatc has been specified.
40759
40760 2001-12-05  Ed Schonberg  <schonber@gnat.com>
40761
40762         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
40763         get bounds from right operand.
40764
40765         * sem_eval.adb: Minor reformatting
40766
40767         * exp_util.adb (Make_Literal_Range): use bound of literal rather
40768         than Index'First, its lower bound may be different from 1.
40769
40770         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
40771         and C48009J
40772
40773 2001-12-05  Vincent Celier  <celier@gnat.com>
40774
40775         * prj-nmsc.adb Minor reformatting
40776
40777         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
40778         set and libraries are not supported.
40779
40780 2001-12-05  Ed Schonberg  <schonber@gnat.com>
40781
40782         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
40783         private view explicitly, so the back-end can treat as a global
40784         when appropriate.
40785
40786 2001-12-05  Ed Schonberg  <schonber@gnat.com>
40787
40788         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
40789          unit, always replace instance node with new body, for ASIS use.
40790
40791 2001-12-05  Vincent Celier  <celier@gnat.com>
40792
40793         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
40794         libraries are not supported and both attributes Library_Name and
40795         Library_Dir are specified.
40796
40797         * prj-proc.adb (Expression): Set location of Result to location of
40798         first term.
40799
40800         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
40801         (prj-nmsc is now importing MLib.Tgt)
40802
40803         * prj-proc.adb: Put the change indicated above that was forgotten.
40804
40805 2001-12-05  Robert Dewar  <dewar@gnat.com>
40806
40807         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
40808
40809 2001-12-05  Ed Schonberg  <schonber@gnat.com>
40810
40811         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
40812         constraint, introduce explicit subtype declaration and derive from it.
40813
40814         * sem_ch3.adb: Minor reformatting
40815
40816 2001-12-05  Robert Dewar  <dewar@gnat.com>
40817
40818         * checks.adb (Determine_Range): Increase cache size for checks.
40819         Minor reformatting
40820
40821         * exp_ch6.adb: Minor reformatting
40822         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
40823         a parameter whose root type is System.Address, since treating such
40824         subprograms as pure in the code generator is almost surely a mistake
40825         that will lead to unexpected results.
40826
40827         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
40828         change handling of conversions.
40829
40830         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
40831
40832 2001-12-05  Ed Schonberg  <schonber@gnat.com>
40833
40834         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
40835         aggregate with static wrong size, attach generated Raise node to
40836         declaration.
40837
40838 2001-12-05  Robert Dewar  <dewar@gnat.com>
40839
40840         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
40841         Fixes compilation abandoned bomb in B24009B.
40842
40843 2001-12-05  Ed Schonberg  <schonber@gnat.com>
40844
40845         * sem_ch12.adb:
40846         Document use of Associated_Node on Selected_Components.
40847         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
40848         to clarify use of untyped descendant fields.
40849
40850 2001-12-05  Robert Dewar  <dewar@gnat.com>
40851
40852         * prj-dect.ads: Add ??? comment
40853         Add 2001 to copyright notice (was not done in after all)
40854
40855         * prj-part.adb: Minor reformatting. Reword one awkward error message.
40856
40857         * prj.ads: Minor reformatting throughout, and add some ??? comments
40858
40859         * snames.ads: Minor reformatting
40860
40861 2001-12-05  Geert Bosch  <bosch@gnat.com>
40862
40863         * snames.adb: Autoupdate
40864
40865 2001-12-05  Vincent Celier  <celier@gnat.com>
40866
40867         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
40868
40869         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
40870
40871         * prj-env.adb: Minor comment changes (modifying -> extends).
40872
40873         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
40874
40875         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
40876         Tok_Extends.
40877
40878         * prj.adb (Initialize): Change Modifying to Extends.
40879
40880         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
40881
40882         * prj.ads: Minor comment change (Modifying -> extending).
40883
40884         * snames.ads: Change modifying to extends.
40885
40886 2001-12-05  Robert Dewar  <dewar@gnat.com>
40887
40888         * sem_warn.adb: Remove stuff for conditionals, we are not going to
40889         do this after all.
40890
40891         * sem_warn.ads: Remove stuff for conditionals, we are not going to
40892         do this after all.  Add 2001 to copyright notice
40893
40894 2001-12-04  Geert Bosch  <bosch@gnat.com>
40895
40896         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
40897
40898 2001-12-04  Robert Dewar  <dewar@gnat.com>
40899
40900         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
40901         location if we already have errors. Stops some cases of cascaded
40902         errors.
40903
40904         * errout.adb: Improve comment.
40905
40906 2001-12-04  Robert Dewar  <dewar@gnat.com>
40907
40908         * sem_ch12.adb:
40909         (Analyze_Formal_Type_Definition): Defend against Error.
40910         (Analyze_Formal_Subprogram): Defend against Error.
40911
40912         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
40913         remove following semicolon if present. Removes cascaded error.
40914
40915 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
40916
40917         * bindgen.adb:
40918         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
40919          exceptions equals 0.
40920         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
40921         Fixes PIWG E tests (which have to be run with -gnatL).
40922
40923 2001-12-04  Robert Dewar  <dewar@gnat.com>
40924
40925         * einfo.ads: Minor reformatting
40926
40927 2001-12-04  Ed Schonberg  <schonber@gnat.com>
40928
40929         * einfo.ads: Block_Node points to the identifier of the block, not to
40930         the block node itself, to preserve the link when the block is
40931         rewritten, e.g. within an if-statement with a static condition.
40932
40933         * inline.adb (Cleanup_Scopes): recover block statement from block
40934         entity using new meaning of Block_Node.
40935
40936         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
40937         identifier of block node, rather than to node itself.
40938
40939 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
40940
40941         * layout.adb:
40942         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
40943         (Discrimify): Go back to setting the Etypes of the selected component
40944         because the Vname component does not exist at this point and will
40945         fail name resolution. Also set Analyzed.
40946         Remove with and use of Sem_Res.
40947
40948 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
40949
40950         * Makefile.in: (HIE_SOURCES): add s-fat*.
40951
40952 2001-12-04  Robert Dewar  <dewar@gnat.com>
40953
40954         * sem_attr.adb:
40955         (Compile_Time_Known_Attribute): New procedure.
40956         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
40957          proper range check.
40958
40959 2001-12-04  Ed Schonberg  <schonber@gnat.com>
40960
40961         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
40962         processing discriminants to diagnose illegal default values.
40963
40964 2001-12-04  Ed Schonberg  <schonber@gnat.com>
40965
40966         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
40967         access discriminant within a type extension that constrains its
40968         parent discriminants.
40969
40970 2001-12-04  Ed Schonberg  <schonber@gnat.com>
40971
40972         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
40973         is malformed, use instance of Any_Id to allow analysis to proceed.
40974
40975         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
40976         type definition is illegal.
40977         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
40978         misplaced.
40979
40980 2001-12-04  Ed Schonberg  <schonber@gnat.com>
40981
40982         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
40983         constants.
40984
40985 2001-12-04  Robert Dewar  <dewar@gnat.com>
40986
40987         * errout.adb: Minor reformatting
40988
40989 2001-12-04  Robert Dewar  <dewar@gnat.com>
40990
40991         * exp_util.adb: Minor reformatting from last change
40992
40993         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
40994         which is a rewriting of an expression, traverse the original
40995         expression to remove warnings that may have been posted on it.
40996
40997 2001-12-04  Ed Schonberg  <schonber@gnat.com>
40998
40999         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
41000         record that has other packed components.
41001
41002 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
41003
41004         * adaint.c: Minor cleanups.
41005
41006 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
41007
41008         * adaint.c: Do not use utime.h on vxworks.
41009
41010 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
41011
41012         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
41013         more confusion than it solves.
41014
41015 2001-12-04  Geert bosch  <bosch@gnat.com>
41016
41017         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
41018
41019 2001-12-04  Geert Bosch  <bosch@gnat.com>
41020
41021         * Makefile.in (update-sources): New target.
41022         For use by gcc_release script.
41023
41024 2001-12-04  Ed Schonberg  <schonber@gnat.com>
41025
41026         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
41027         a configuration pragma, it is now legal wherever a pragma can appear.
41028
41029 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
41030
41031         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
41032         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
41033         is now @CROSS@ -DIN_GCC; update comment.
41034
41035 2001-12-04  Robert Dewar  <dewar@gnat.com>
41036
41037         * einfo.adb (Has_Pragma_Pure_Function): New flag.
41038         Fix problem that stopped ceinfo from working
41039
41040         * einfo.ads (Has_Pragma_Pure_Function): New flag.
41041
41042         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
41043
41044 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
41045
41046         * gnatchop.adb:
41047         (File_Time_Stamp): New procedure.
41048         (Preserve_Mode): New boolean.
41049         (Write_Unit): Pass time stamp.
41050         Implement -p switch (preserve time stamps).
41051
41052         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
41053
41054         * gnatchop.adb: Do usage info for -p switch
41055
41056         * adaint.h (__gnat_set_file_time_name): New function
41057
41058         * adaint.c (__gnat_set_file_time_name): Implement
41059
41060         * adaint.h: Fix typo
41061
41062 2001-12-03  Robert Dewar  <dewar@gnat.com>
41063
41064         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
41065         have Associated_Node.
41066
41067 2001-12-03  Robert Dewar  <dewar@gnat.com>
41068
41069         * prj-proc.adb: Minor reformatting
41070
41071         * make.adb: Minor reformatting
41072
41073 2001-12-03  Geert Bosch  <bosch@gnat.com>
41074
41075         * make.adb: Minor reformatting.
41076
41077 2001-12-03 Robert Dewar  <dewar@gnat.com>
41078
41079         * sem_ch12.adb: Minor reformatting
41080
41081 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41082
41083         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
41084         push Standard on the stack before analyzing the instance body,
41085         in order to have a clean visibility environment.
41086
41087         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
41088
41089 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41090
41091         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
41092         instantiation of a body that contains an inlined body.
41093
41094 2001-12-03  Ed Schonberg  <schonber@gnat.com>
41095
41096         * sem_ch12.adb:
41097         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
41098         to prevent freezing within formal packages.
41099         (Freeze_Subprogram_Body): If body comes from another instance that
41100         appeared before its own body, place freeze node at end of current
41101         declarative part, to prevent a back-end crash.
41102         (Inline_Instance_Body): Handle properly a package instance within
41103         a subprogram instance that is a child unit.
41104
41105 2001-12-01  Graham Stott  <grahams@redhat.com>
41106
41107         * Makefile.in (misc.o): Add missing $(srcdir) prefix
41108         and add optabs.h dependency.
41109
41110         * misc.c: Include optabs.h
41111         (gnat_tree_code_type): Make static and const.
41112         (gnat_tree_code_length): Likewise.
41113         (gnat_tree_code_name): Likewise.
41114         (update_setjmp_buf): Obtain operands mode from insn_data.
41115
41116 2001-11-29  Richard Henderson  <rth@redhat.com>
41117
41118         * init.c: Remove obsolete dwarf2 frame.h section.
41119
41120 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
41121
41122         * Make-lang.in (ada.generated-manpages): New dummy target.
41123
41124 2001-11-29  Ed Schonberg  <schonber@gnat.com>
41125
41126         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
41127         into Command, an array conversion is illegal here. Uncovered by
41128         ACATS B460005.
41129
41130 2001-11-28  Geert Bosch  <bosch@gnat.com>
41131
41132         * init.c: Minor whitespace changes.
41133
41134 2001-11-28  Doug Rupp  <rupp@gnat.com>
41135
41136         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
41137         signal stack.
41138
41139 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
41140
41141         * misc.c (gnat_expand_constant): Move declaration above
41142         definition of lang_hooks.
41143         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
41144         (gnat_init): lang_expand_constant no longer exists.
41145
41146         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
41147         always have vprintf.
41148         (gnat_init): Always call set_internal_error_function.
41149
41150 2001-11-27  Andreas Jaeger  <aj@suse.de>
41151
41152         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
41153
41154 2001-11-27  Laurent Guerby  <guerby@acm.org>
41155
41156         * Makefile.in: Regenerate Ada dependencies.
41157
41158 2001-11-26  Richard Henderson  <rth@redhat.com>
41159
41160         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
41161         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
41162         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
41163
41164 2001-11-25  Laurent Guerby  <guerby@acm.org>
41165
41166         * sysdep.c (rts_get_*): Fix style.
41167
41168 2001-11-19  Laurent Guerby  <guerby@acm.org>
41169
41170         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
41171         since it is of no apparent use and cause warnings.
41172
41173 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
41174
41175         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
41176         static too.
41177         (gnat_init): Don't return NULL.
41178         (finish_parse): Remove.
41179
41180 2001-11-17  Laurent Guerby  <guerby@acm.org>
41181
41182         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
41183         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
41184         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
41185         * lang-spec.h: Add missing struct field to silence warnings.
41186         * sysdep.c (rts_get_*): Provide K&R prototype.
41187         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
41188         * traceback.c (Unlock_Task, Lock_Task): Likewise.
41189         * tracebak.c (__gnat_backtrace): Remove unused variable.
41190         * utils.c (end_subprog_body): Move to K&R style.
41191
41192 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
41193
41194         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
41195
41196 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
41197
41198         * misc.c (gnat_init): Change prototype.  Include the
41199         functionality of the old init_parse and init_decl_processing.
41200         (gnat_init_decl_processing): New prototype.
41201         (init_parse): Remove.
41202         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
41203
41204 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
41205
41206         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
41207         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
41208         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
41209         set_yydebug): Remove.
41210
41211 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
41212
41213         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
41214         (struct lang_hooks): Constify.
41215         (language_string, lang_identify): Remove.
41216         * utils.c (init_decl_processing): Update.
41217
41218 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
41219
41220         * misc.c: Include langhooks-def.h.
41221         * Makefile.in: Update.
41222
41223 2001-10-30  Robert Dewar  <dewar@gnat.com>
41224
41225         * style.adb:
41226         (Check_Identifier): Rewrite circuit to be compatible with use of letters
41227         in the upper half of ASCII.
41228         (Check_Identifier): Minor reformatting
41229
41230 2001-10-30  Geert Bosch  <bosch@gnat.com>
41231
41232         * (Associated_Node, Set_Associated_Node): Do not check for
41233         Freeze_Entity.
41234
41235 2001-10-30  Robert Dewar  <dewar@gnat.com>
41236
41237         * a-reatim.ads: Minor reformatting
41238
41239 2001-10-30  Robert Dewar  <dewar@gnat.com>
41240
41241         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
41242         undocumented declarations.
41243
41244 2001-10-30  Pascal Obry  <obry@gnat.com>
41245
41246         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
41247         to the binder and linker.
41248         Minor style fix.
41249
41250         * mdll.ads: Fix layout.  Update copyright notice.
41251
41252         * mdll.adb: Fix layout.  Update copyright notice.
41253
41254 2001-10-30  Robert Dewar  <dewar@gnat.com>
41255
41256         * usage.adb: Minor fix to output for -gnaty.
41257
41258 2001-10-30  Ed Schonberg  <schonber@gnat.com>
41259
41260         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
41261         to accommodate all its possible values.
41262
41263         * a-reatim.adb (Split): Special-case handling of Time_Span_First
41264         and of small absolute values of T.
41265
41266 2001-10-30  Richard Kenner  <kenner@gnat.com>
41267
41268         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
41269         set_mem_attributes since not needed and wrong if RESULT if a REG;
41270         fixes ACATS failures.
41271
41272 2001-10-30  Geert Bosch  <bosch@gnat.com>
41273
41274         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
41275         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
41276
41277 2001-10-30  Robert Dewar  <dewar@gnat.com>
41278
41279         * bindusg.adb: Undocument -f switch.
41280
41281         * gnatcmd.adb: Remove /FULL_ELABORATION.
41282
41283         * opt.ads (Force_RM_Elaboration_Order): Document that this is
41284         obsolescent.
41285
41286         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
41287
41288         * gnatbind.adb: Minor update of warning msg.
41289
41290 2001-10-30  Vincent Celier  <celier@gnat.com>
41291
41292         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
41293         for project file switches (-P (/PROJECT_FILE=),
41294          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
41295         or MEDIUM or HIGH)
41296
41297 2001-10-30  Geert Bosch  <bosch@gnat.com>
41298
41299         * decl.c: Minor whitespace fixes.
41300
41301 2001-10-30  Richard Kenner  <kenner@gnat.com>
41302
41303         * utils2.c (build_allocator): Test for SIZE overflow in array case too
41304
41305 2001-10-30  Geert Bosch  <bosch@gnat.com>
41306
41307         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
41308         Found due to GCC 3.0 warning of using uninitialized value.
41309
41310         * layout.adb:
41311         (Get_Max_Size): Use variant record for tracking value/expression.
41312          Makes logic clearer and prevents warnings for uninitialized variables.
41313         (Layout_Array_Type): Use variant record for tracking value/expression.
41314          Makes logic clearer and prevents warnings for uninitialized variables.
41315
41316 2001-10-30  Robert Dewar  <dewar@gnat.com>
41317
41318         * lib.adb: Minor reformatting
41319
41320         * s-taprop.ads: Minor reformatting
41321
41322 2001-10-29  Laurent Guerby  <guerby@acm.org>
41323
41324         * init.c:
41325         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
41326         const.
41327         (_gnat_error_handler): Make MSG const.
41328
41329 2001-10-29  Richard Kenner  <kenner@gnat.com>
41330
41331         * sysdep.c: Fix localtime_r problem on LynxOS.
41332         Also remove #elif to avoid warnings.
41333
41334         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
41335         used by this.
41336
41337         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
41338
41339 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
41340
41341         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
41342         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
41343         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
41344         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
41345         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
41346         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
41347         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
41348         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
41349         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
41350         types.ads, urealp.adb: Fix spelling errors.
41351
41352 2001-10-27  Laurent Guerby  <guerby@acm.org>
41353
41354         * trans.c (gigi): Fix non determinism leading to bootstrap
41355         comparison failures for debugging information.
41356
41357 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
41358
41359         * gnat_rm.texi: Use @./@: where appropriate.
41360
41361 2001-10-26  Robert Dewar  <dewar@gnat.com>
41362
41363         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
41364
41365 2001-10-26  Richard Kenner  <kenner@gnat.com>
41366
41367         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
41368
41369 2001-10-26  Richard Kenner  <kenner@gnat.com>
41370
41371         * decl.c (validate_size): Modify message for bad size to avoid
41372         implication that compiler is modifying the size.
41373
41374 2001-10-26  Robert Dewar  <dewar@gnat.com>
41375
41376         * prj-util.adb: Minor reformatting. Fix bad header format.
41377
41378 2001-10-26  Robert Dewar  <dewar@gnat.com>
41379
41380         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
41381
41382         * sinfo.ads: Clarify use of Associated_Node (documentation only).
41383
41384         * sem_ch12.adb: Change Node4 to Associated_Node. Change
41385         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
41386         much more narrowly in places where needed. These are cleanups.
41387
41388 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
41389
41390         * 5zosinte.ads (null_pthread): new constant.
41391
41392         * 5ztaprop.adb:
41393         (Initialize_TCB): Initialize thread ID to null, to be able to verify
41394          later that this field has been set.
41395         (Finalize_TCB): ditto.
41396         (Suspend_Task): Verify that the thread ID is not null before using it.
41397         (Resume_Task): ditto.
41398
41399         * s-tasdeb.adb:
41400         (Resume_All_Tasks): Lock the tasks list before using it.
41401         (Suspend_All_Tasks): ditto.
41402
41403 2001-10-26  Richard Kenner  <kenner@gnat.com>
41404
41405         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
41406         Make constant variant of designated type for Is_Access_Constant.
41407         Call update_pointer_to with main variant.
41408
41409         * trans.c (process_freeze_entity, process_type):
41410         Call update_pointer_to on main variant.
41411
41412         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
41413         If main variant, update all other variants.
41414
41415         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
41416         TREE_STATIC.
41417
41418 2001-10-26  Robert Dewar  <dewar@gnat.com>
41419
41420         * prj-util.adb: Minor reformatting
41421
41422 2001-10-26  Robert Dewar  <dewar@gnat.com>
41423
41424         * prj-util.adb: Minor reformatting
41425
41426 2001-10-26  Robert Dewar  <dewar@gnat.com>
41427
41428         * prj-attr.adb: Minor reformatting throughout
41429
41430 2001-10-26  Robert Dewar  <dewar@gnat.com>
41431
41432         * prj-attr.ads: Minor reformatting
41433         Add ??? comment (this whole spec has almost no comments)
41434
41435 2001-10-26  Vincent Celier  <celier@gnat.com>
41436
41437         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
41438         ("//") that precede the drive letter on Interix.
41439
41440 2001-10-26  Geert Bosch  <bosch@gnat.com>
41441
41442         * gnat_rm.texi: Add GNAT Reference Manual.
41443
41444 2001-10-25  Robert Dewar  <dewar@gnat.com>
41445
41446         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
41447         is Error. Similar change for other renaming cases.
41448
41449 2001-10-25  Robert Dewar  <dewar@gnat.com>
41450
41451         * s-atacco.ads: Add pragma Inline_Always for functions.
41452         Fix header format. Add copyright 2001
41453
41454 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41455
41456         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
41457         return Error rather than Empty so that analysis can proceed.
41458
41459 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41460
41461         * sem_util.adb (Enter_Name): better handling of cascaded error
41462         messages when a unit appears in its own context.
41463
41464 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41465
41466         * sem_util.adb (Defining_Entity): in case of error, attach created
41467         entity to specification, so that semantic analysis can proceed.
41468
41469 2001-10-25  Robert Dewar  <dewar@gnat.com>
41470
41471         * sem_util.adb
41472         (Defining_Entity): Deal with Error.
41473         (Process_End_Label): Deal with bad end label for.
41474
41475 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41476
41477         * sem_elab.adb (Check_A_Call): refine message when call is in an
41478         instance but callee is not declared in the generic unit.
41479
41480 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41481
41482         * sem_elab.adb (Check_A_Call): check for renaming before finding the
41483         enclosing unit, which may already be different from the calling unit.
41484
41485 2001-10-25  Geert Bosch  <bosch@gnat.com>
41486
41487         * 4gintnam.ads: fix header format.
41488
41489 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41490
41491         * sem_res.adb (Resolve_Call): if the call is actually an indexing
41492         operation on the result of a parameterless call, perform elaboration
41493         check after the node has been properly rewritten.
41494
41495         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
41496         inlined within the generic tree, the defining identifier is not a
41497         compilation_unit.
41498
41499 2001-10-25  Ed Schonberg  <schonber@gnat.com>
41500
41501         * sem_res.adb (Resolve): special-case resolution of Null in an
41502          instance or an inlined body to avoid view conflicts.
41503
41504         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
41505          compatibility by retrieving the access type of the generic copy.
41506
41507 2001-10-25  Robert Dewar  <dewar@gnat.com>
41508
41509         * sem_ch3.adb:
41510         (Analyze_Number_Declaration): Handle error expression.
41511         (Signed_Integer_Type_Declaration): Handle error bound.
41512         (Analyze_Subtype_Indication): Handle error range.
41513
41514         * sem_util.adb (Get_Index_Bounds): Check for Error.
41515
41516 2001-10-25  Robert Dewar  <dewar@gnat.com>
41517
41518         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
41519         in no run time mode.
41520
41521 2001-10-25  Pascal Obry  <obry@gnat.com>
41522
41523         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
41524         mode case for ALLOC case.
41525
41526         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
41527         all platforms. Improvement of last change.
41528
41529 2001-10-25  Robert Dewar  <dewar@gnat.com>
41530
41531         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
41532
41533 2001-10-25  Geert Bosch  <bosch@gnat.com>
41534
41535         * osint.adb (Is_Relative): Remove duplicate.
41536
41537 2001-10-25  Pascal Obry  <obry@gnat.com>
41538
41539         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
41540         pathnames in UNIX and DOS style with drive letter.
41541         (Is_Relative): new routine.
41542
41543         * osint.adb: Minor reformatting
41544
41545         * osint.adb (Is_Relative): implementation using
41546         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
41547
41548 2001-10-25  Pascal Obry  <obry@gnat.com>
41549
41550         * g-dirope.adb (Basename): correctly compute offset between the
41551         original Path and the translated one.
41552
41553         * g-dirope.adb: (Base_Name): add some comments.
41554
41555 2001-10-25  Robert Dewar  <dewar@gnat.com>
41556
41557         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
41558         in HIE mode, avoids compilation abandoned message
41559
41560         * exp_imgv.adb: Correct typo in previous change
41561
41562         * exp_imgv.adb: Correct typo in previous change (not my day!)
41563
41564 2001-10-25  Robert Dewar  <dewar@gnat.com>
41565
41566         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
41567
41568 2001-10-25  Pascal Obry  <obry@gnat.com>
41569
41570         * g-awk.ads: Move all pragma inlines next to the routine
41571          declarations. This is more uniform with other GNAT spec.
41572
41573 2001-10-22  Geert Bosch  <bosch@gnat.com>
41574
41575         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
41576
41577 2001-10-19  Geert Bosch  <bosch@gnat.com>
41578
41579         * Makefile.in (tools, gnattools): Remove gnatmem.
41580
41581 2001-10-17  Richard Henderson  <rth@redhat.com>
41582
41583         * Makefile.in (misc.o): Depend on langhooks.h.
41584         * misc.c: Include it.
41585         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
41586         (LANG_HOOKS_DECODE_OPTION): New.
41587         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
41588
41589 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
41590
41591         * trans.c (tree_transform): Adjust to recent change in
41592         expand_asm_operands to implement named asm operands.
41593
41594 2001-10-11  Ed Schonberg  <schonber@gnat.com>
41595
41596         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
41597         renaming of discriminant for mutable record type.
41598
41599 2001-10-11  Robert Dewar  <dewar@gnat.com>
41600
41601         * validsw.adb: Properly save -gnatVn status.
41602
41603 2001-10-11  Robert Dewar  <dewar@gnat.com>
41604
41605         * usage.adb: Add lines for V switch.
41606
41607         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
41608         (/VALIDITY_CHECKING).
41609
41610 2001-10-11  Ed Schonberg  <schonber@gnat.com>
41611
41612         * sem_type.adb (Add_One_Interp): an operator for a type declared in
41613         an extension of System is known to be visible.
41614
41615 2001-10-11  Ed Schonberg  <schonber@gnat.com>
41616
41617         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
41618         properly. Fixes regression on ACATS C34005G.
41619
41620 2001-10-11  Robert Dewar  <dewar@gnat.com>
41621
41622         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
41623         loop in generic instance, since this is likely not very useful.
41624
41625 2001-10-11  Robert Dewar  <dewar@gnat.com>
41626
41627         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
41628         the error message for high integrity mode.
41629
41630         * rtsfind.adb (RTE): Give message if we try to find an entity that
41631         is not available in high integrity mode.
41632
41633         * rtsfind.ads:
41634         (OK_To_Use_In_HIE_Mode): New array.
41635         (RTE): May return Empty in high integrity mode.
41636
41637         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
41638         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
41639
41640         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
41641         unit if not inlined always and in no runtime mode. Fixes problem
41642         caused by new Rtsfind changes.
41643
41644         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
41645         body is deleted.
41646
41647         * rtsfind.adb (RTE): Make sure we do not try to load unit after
41648         giving message for entity not available in high integrity mode.
41649
41650 2001-10-11  Pascal Obry  <obry@gnat.com>
41651
41652         * impunit.adb: Add GNAT.CRC32.
41653
41654 2001-10-11  Ed Schonberg  <schonber@gnat.com>
41655
41656         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
41657         properly the case where one universal operand in a non-static
41658         exponentiation of a real literal.
41659
41660 2001-10-11  Ed Schonberg  <schonber@gnat.com>
41661
41662         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
41663         clause, return the gobal finalization list, for lack of anthing else.
41664
41665 2001-10-11  Ed Schonberg  <schonber@gnat.com>
41666
41667         * exp_ch7.adb (Make_Transient_Block): if statement is within
41668         exception handler, always use new transient scope to place Clean
41669         procedure.
41670
41671 2001-10-11  Pascal Obry  <obry@gnat.com>
41672
41673         * Makefile.in:
41674         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41675         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41676         (GNATLS_RTL_OBJS): add g-crc32.o
41677         (GNATMAKE_RTL_OBJS): add g-crc32.o
41678
41679         * ali-util.adb:
41680         (CRC_Match): new function.
41681         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
41682         instead of the previous simple checksum algorithm.
41683         (Time_Stamp_Mismatch): use CRC_Match for comparison.
41684         (Set_Source_Table): idem.
41685
41686         * ali-util.ads:
41687         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
41688         instead of simple checksum.
41689         (CRC_Match): new function.
41690         (CRC_Error): new constant.
41691
41692         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
41693         a CRC now and not a simple checksum. A CRC uses lower-case hex
41694         letters, fixes ambiguity in parsing.
41695
41696         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
41697         is what this variable will store.
41698
41699         * bcheck.adb: Change reference to chechsum in comments by CRC.
41700         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
41701         rename All_Checksum_Match to All_CRC_Match. Change due to API
41702         renaming since now GNAT does not use a simple checksum but a
41703         CRC using GNAT.CRC32.
41704
41705         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
41706         now and not anymore a simple checksum.
41707
41708         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
41709         places.
41710
41711         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
41712
41713         * scans.adb:
41714         (Restore_Scan_State): rename Checksum to CRC.
41715         (Save_Scan_State): idem.
41716
41717         * scans.ads:
41718         With GNAT.CRC32.
41719         (Checksum): rename to CRC.
41720         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
41721
41722         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
41723         GNAT.CRC32).  Update copyright notice.
41724
41725         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
41726         GNAT.CRC32).  Update copyright notice.
41727
41728         * scn.adb:
41729         (Accumulate_Checksum): removed.
41730         (Update): new procedure. Add a wide-character into the CRC.
41731
41732         * sinput-l.adb:
41733         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
41734         (Load_File): fix initialization of S (change Source_Checksum to
41735         Source_CRC)
41736
41737         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
41738         Source_CRC in S initialization.
41739
41740         * sinput.adb (Source_Checksum): renamed to Source_CRC.
41741
41742         * sinput.ads (Source_Checksum): renamed to Source_CRC.
41743         Update comments for the CRC.
41744
41745         * types.adb (Hex): Use lowercase for the letter part.
41746
41747         * types.ads (Get_Hex_String): Returns the hexadecimal representation
41748         for a word. This is currently used only for CRC. In previous version,
41749         the checksum was using a representation with all letter being
41750         upper-case. With the new implementation (using CRC) we do not remove
41751         the 32th bit of the CRC, so we can have an upper-case starting letter
41752         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
41753         It is ambigous since the CRC was optional and could be followed by
41754         options like EB, EE. So now this routines uses lower-case letter for
41755         the hexadecimal representation. Strange enough only lower case letters
41756         where checked in Scan_ALI (even if this was not a possible case).
41757
41758         * gnatvsn.ads (Library_Version): changed to 3.15a.
41759
41760         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
41761         for the compiler.
41762
41763         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
41764         for the compiler.
41765
41766         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
41767         Add 2001 to copyright notice
41768         (Accumulate_Checksum): Modify to use System.CRC32.
41769
41770         * ali-util.ads: Redo changes of previous revision to continue to use
41771         the word Checksum. Add 2001 to copyright notice.
41772
41773         * ali.adb: Undo some of previous changes, not needed.
41774         Keep the change for lower case letters in the checksum.
41775
41776         * ali.ads: Undo previous change not needed.
41777
41778         * bcheck.adb: Undo most of previous change, not needed.
41779         But do use Checksums_Match for checksum comparison.
41780
41781         * gnatls.adb: Undo most of previous change, not needed.
41782         But do use Checksums_Match for comparing checksums.
41783
41784         * lib-load.adb: Undo previous change, not needed.
41785
41786         * lib-writ.adb: Undo previous change, not needed.
41787
41788         * lib-writ.ads: Document that checksums use lower case,
41789         not upper case letters.
41790
41791         * scans.adb: Undo previous change, not needed
41792
41793         * scans.ads: Undo previous change, not needed.
41794
41795         * scn-nlit.adb: Undo previous changes, not needed.
41796
41797         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
41798
41799         * scn.adb:
41800         (Accumulate_Checksum): Use System.CRC32.
41801         (Initialize_Checksum): New procedure.
41802         Remove other changes of previous revision.
41803
41804         * sinput-p.adb: Undo previous change, not needed.
41805
41806         * sinput.adb: Undo previous change, not needed.
41807
41808         * sinput-l.adb: Undo previous change, not needed.
41809
41810         * sinput.ads: Undo previous change, not needed.  Keep only comment
41811         on new checksum algorithm
41812
41813         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
41814         Also remove a-tags and a-stream from GNAT sources.
41815
41816         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
41817
41818         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
41819
41820 2001-10-11  Geert Bosch  <bosch@gnat.com>
41821
41822         * einfo.h: Regenerate.
41823
41824         * nmake.ads: Regenerate.
41825
41826         * nmake.adb: Regenerate.
41827
41828         * sinfo.h: Regenerate.
41829
41830         * treeprs.adb: Regenerate.
41831
41832 2001-10-10  Geert Bosch  <bosch@gnat.com>
41833
41834         * gnat-style.texi: New file describing coding guidelines for Ada.
41835
41836 2001-10-10  Ed Schonberg  <schonber@gnat.com>
41837
41838         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
41839         is Flag174.
41840
41841 2001-10-10  Geert Bosch  <bosch@gnat.com>
41842
41843         * snames.ads: Add new names for project facility.
41844
41845         * snames.adb: Update to reflect snames.ads changes.
41846
41847         * snames.h: Update to reflect snames.ads changes.
41848
41849 2001-10-10  Vincent Celier  <celier@gnat.com>
41850
41851         * make.adb:
41852         (Add_Switches): reflect the changes for the switches attributes
41853         Default_Switches indexed by the programming language,
41854         Switches indexed by the file name.
41855         (Collect_Arguments_And_Compile): Idem.
41856         Reflect the attribute name changes.
41857
41858         * prj-attr.adb:
41859         (Initialisation_Data): Change the names of some packages and
41860         attributes.
41861         (Initialize): process case insensitive associative arrays.
41862
41863         * prj-attr.ads:
41864         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
41865
41866         * prj-dect.adb:
41867         (Parse_Attribute_Declaration): For case insensitive associative
41868          arrays, set the index string to lower case.
41869
41870         * prj-env.adb:
41871         Reflect the changes of the project attributes.
41872
41873         * prj-nmsc.adb:
41874         Replace Check_Naming_Scheme by Ada_Check and
41875         Language_Independent_Check.
41876
41877         * prj-nmsc.ads:
41878         Replaced Check_Naming_Scheme by 2 procedures:
41879         Ada_Check and Language_Independent_Check.
41880
41881         * prj-proc.adb:
41882         (Process_Declarative_Items): For case-insensitive associative
41883         arrays, set the index string to lower case.
41884         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
41885         Prj.Nmsc.Check_Naming_Scheme.
41886
41887         * prj-tree.adb:
41888         (Case_Insensitive): New function
41889         (Set_Case_Insensitive): New procedure
41890
41891         * prj-tree.ads:
41892         (Case_Insensitive): New function
41893         (Set_Case_Insensitive): New procedure
41894         (Project_Node_Record): New flag Case_Insensitive.
41895
41896         * prj-util.adb:
41897         (Value_Of): new function to get the string value of a single
41898         string variable or attribute.
41899
41900         * prj-util.ads:
41901         (Value_Of): new function to get the string value of a single
41902         string variable or attribute.
41903
41904         * prj.adb:
41905         (Ada_Default_Spec_Suffix): New function
41906         (Ada_Default_Impl_Suffix): New function
41907         Change definitions of several constants to reflect
41908         new components of record types.
41909
41910         * prj.ads:
41911         (Naming_Data): Change several components to reflect new
41912         elements of naming schemes.
41913         (Project_Data): New flags Sources_Present and
41914         Language_Independent_Checked.
41915         (Ada_Default_Spec_Suffix): New function.
41916         (Ada_Default_Impl_Suffix): New function.
41917
41918         * snames.ads:
41919         Modification of predefined names for project manager: added
41920         Implementation, Specification_Exceptions, Implementation_Exceptions,
41921         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
41922         Default_Switches, _Languages, Builder, Cross_Reference,
41923         Finder. Removed Body_Part, Specification_Append, Body_Append,
41924         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
41925         Gnatlink.
41926
41927         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41928         Add comments.
41929
41930         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
41931         not that it is Nil_Variable_Value.
41932
41933         * prj.ads: Add ??? for uncommented declarations
41934
41935 2001-10-10  Ed Schonberg  <schonber@gnat.com>
41936
41937         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
41938         constant, do not indicate possible modification, so that gigi can
41939         treat it as a bona fide constant.
41940
41941 2001-10-10  Robert Dewar  <dewar@gnat.com>
41942
41943         * sem_prag.adb: Add processing for pragma External.
41944
41945         * snames.ads: Add entry for pragma External.
41946
41947         * par-prag.adb: Add pragma External.
41948
41949         * snames.adb: Updated to match snames.ads.
41950
41951 2001-10-10  Ed Schonberg  <schonber@gnat.com>
41952
41953         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
41954         a dynamic task if the allocator appears in an indexed assignment
41955         or selected component assignment.
41956
41957         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
41958         For a dynamic task in an assignment statement, use target of
41959         assignment to generate meaningful name.
41960
41961 2001-10-10  Ed Schonberg  <schonber@gnat.com>
41962
41963         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
41964         a generic package.
41965
41966         * einfo.ads: Body_Entity is also defined for generic package.
41967         Documentation change only
41968
41969         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
41970         others_choice for a discriminated component initialization,
41971         convert discriminant references into the corresponding discriminals.
41972
41973         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
41974         only if original type is private and expression has to be wrapped
41975         in a conversion.
41976
41977         * checks.adb:
41978         (Apply_Constraint_Check): Do not perform length check
41979         if expression is an aggregate with only an others_choice.
41980         (Length_N_Cond): two references to the same in_parameter
41981         (typically the discriminal in an init_proc) denote the same value.
41982         Two useful optimization uncovered by bugfixes above.
41983
41984 2001-10-10  Robert Dewar  <dewar@gnat.com>
41985
41986         * xeinfo.adb: Change int to char in translation of enumeration types.
41987         This fixes a problem in the C representation of component alignment.
41988         Add 2001 to copyright notice
41989
41990 2001-10-10  Richard Kenner  <kenner@gnat.com>
41991
41992         * decl.c: (validate_size): Do check size of object of integral type
41993         if it is a packed array type.
41994
41995 2001-10-10  Richard Kenner  <kenner@gnat.com>
41996
41997         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
41998         VAR_DECL for constant if not Is_Public but -O0.
41999
42000 2001-10-10  Richard Kenner  <kenner@gnat.com>
42001
42002         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
42003
42004 2001-10-10  Geert Bosch  <bosch@gnat.com>
42005
42006         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
42007         use '/' as switch character, allowing for absolute file names.
42008
42009 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
42010
42011         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
42012         FSF address.
42013
42014 2001-10-08  Geert Bosch  <bosch@gnat.com>
42015
42016         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
42017         Automatically build utilities when files need to be regenerated.
42018
42019 2001-10-08  Geert Bosch  <bosch@gnat.com>
42020
42021         * xsnames.adb: New utility for updating snames.ads and snames.adb
42022
42023 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
42024
42025         * Make-lang.in (ADAFLAGS): Add -W -Wall.
42026         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
42027         (gnat1): Also depend on attribs.o.
42028         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
42029         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
42030         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
42031         (ADAFLAGS): Add -W -Wall.
42032         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
42033         take out CFLAGS.
42034
42035         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
42036         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
42037         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
42038         Use $(ADAC), not $(CC), as compilation command.
42039
42040         (gnattools): Depend directly on tools to build, don't use
42041         recursive make.
42042         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
42043
42044         * einfo.h, sinfo.h: New files (autogenerated).
42045
42046 2001-10-08  Richard Henderson  <rth@redhat.com>
42047
42048         * comperr.adb (Abort_In_Progress): New.
42049         (Compiler_Abort): Use it to prevent recursion.
42050
42051 2001-10-08  Robert Dewar  <dewar@gnat.com>
42052
42053         * atree.adb: Set Error_Posted in Error node, helps error recovery.
42054
42055         * par-endh.adb (Output_End_Expected): We should also not test
42056         Error_Posted on the Error node, since now it is always set.
42057
42058         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
42059         to help error recovery. Part of general work on 9407-004.
42060
42061         * par.adb: Add ??? for misuse of error
42062
42063         * sem_res.adb:
42064         (Resolve): Defend against Error, fixes 9407-003.
42065         (Resolve_Discrete_Subtype_Indication): Defend against Error.
42066
42067         * sinfo.ads (N_Error): Now has Etype field (which will be set
42068         to Any_Type to help error recovery).
42069
42070 2001-10-08  Richard Kenner  <kenner@gnat.com>
42071
42072         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
42073         Consistently set MEM attributes from expression; fixes
42074         bootstrap failure on x86.
42075
42076 2001-10-08  Geert Bosch  <bosch@gnat.com>
42077
42078         * 5oosinte.adb: Add 2001 to copyright notice.
42079
42080 2001-10-08  Geert Bosch  <bosch@gnat.com>
42081
42082         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
42083
42084         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
42085
42086 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
42087
42088         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
42089
42090 2001-10-05  Geert Bosch  <bosch@gnat.com>
42091
42092         * adaint.h: Small formatting fix.
42093
42094 2001-10-04  Geert Bosch  <bosch@gnat.com>
42095
42096         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
42097         Arg is int, not FILE *, in dummy version of functions.
42098
42099         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
42100         Arg is int, not FILE *.
42101
42102 2001-10-04  Geert Bosch  <bosch@gnat.com>
42103
42104         * 3lsoccon.ads: Added file, missed with initial check ins.
42105
42106         * 4lintnam.ads: Fix header format.
42107         Change Linux to GNU/Linux.
42108
42109         * 5iosinte.adb: Change Linux to GNU/Linux.
42110
42111         * 5iosinte.ads: Change Linux to GNU/Linux.
42112
42113         * 5itaprop.adb: Change Linux to GNU/Linux.
42114
42115         * 5itaspri.ads: Change Linux to GNU/Linux.
42116         Update copyright notice.
42117
42118         * 5lintman.adb: Change Linux to GNU/Linux.
42119
42120         * 5lml-tgt.adb: Change Linux to GNU/Linux.
42121
42122         * 5losinte.ads: Change Linux to GNU/Linux.
42123
42124         * 5lsystem.ads: Change Linux to GNU/Linux.
42125
42126         * 5qosinte.adb: Change Linux to GNU/Linux.
42127
42128         * 5qosinte.ads: Change Linux to GNU/Linux.
42129
42130         * 5qparame.ads: Change Linux to GNU/Linux.
42131
42132         * 5qtaprop.adb: Change Linux to GNU/Linux.
42133
42134         * 5qtaspri.ads: Change Linux to GNU/Linux.
42135         Add 2001 to copyright notice.
42136
42137         * 5vintman.ads: Change Linux to GNU/Linux.
42138         Fix header format.  Add 2001 to copyright notice.
42139
42140         * g-soccon.ads: Change Linux to GNU/Linux.
42141
42142         * g-trasym.ads: Change Linux to GNU/Linux.
42143         Add 2001 to copyright notice.
42144
42145         * memtrack.adb: Change Linux to GNU/Linux.
42146
42147         * s-intman.ads: Change Linux to GNU/Linux.
42148         Add 2001 to copyright notice.  Fix header format.
42149
42150         * s-stache.adb: Change Linux to GNU/Linux.
42151
42152         * adaint.c: Change Linux to GNU/Linux.
42153
42154         * cio.c: Change Linux to GNU/Linux.
42155
42156         * cstreams.c: Change Linux to GNU/Linux.
42157
42158         * init.c: Change Linux to GNU/Linux.
42159
42160         * gmem.c: Change Linux to GNU/Linux.
42161
42162         * tracebak.c: Change Linux to GNU/Linux.
42163
42164
42165 2001-10-02  Geert Bosch  <bosch@gnat.com>
42166
42167         * misc.c (insert_default_attributes): Add dummy version.